/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f3f1ec;
  --panel: #ffffff;
  --panel-soft: #f8f6f1;
  --line: #ddd7cd;
  --line-strong: #c9c1b4;
  --text: #18212f;
  --muted: #687487;
  --accent: #8a5a2b;
  --accent-soft: #f7efe6;
  --success: #1f9d66;
  --warn: #d97706;
  --danger: #c2410c;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-y: scroll;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.app-shell {
  min-height: 100vh;
  max-width: 1460px;
  margin: 0 auto;
  padding: 16px;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.auth-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  margin-top: 22px;
}

.login-button {
  width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f4eee5 100%);
  font-weight: 800;
  color: var(--accent);
}

.brand-kicker,
.section-kicker {
  margin: 0 0 6px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.brand-title {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 1.8vw, 1.85rem);
  line-height: 1;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill,
.activity-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
}

.token-copy-field {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
}

.token-copy-main p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.token-copy-main strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.icon-chip {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
}

.workspace {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.sidebar,
.content-area {
  min-width: 0;
}

.sidebar {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  align-content: start;
}

.sidebar-card,
.dashboard-card,
.summary-card,
.hero-banner {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.sidebar-card {
  padding: 16px;
}

.sidebar-card-primary {
  background: linear-gradient(180deg, #ffffff 0%, #f5efe6 100%);
}

.sidebar-card h2,
.section-heading h2,
.hero-banner h2 {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.02;
}

.sidebar-copy,
.hero-copy,
.lesson-card p,
.stream-item p,
.stream-item small,
.field-help,
.empty-state,
.instruction-card p,
.checklist-card li {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.menu-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  font-weight: 700;
}

.side-nav,
.lesson-nav-list,
.lesson-card-list,
.stream-list,
.session-list,
.setup-layout,
.info-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.side-link,
.lesson-nav-item,
.lesson-card,
.info-tile,
.instruction-card,
.code-card,
.checklist-card,
.management-card,
.stream-card,
.session-card,
.token-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.side-link:hover {
  background: #faf7f2;
  border-color: var(--line-strong);
  color: var(--text);
}

.side-link.active {
  background: var(--accent-soft);
  border-color: #e5d1bb;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(138, 90, 43, 0.08);
}

.side-link svg,
.lesson-nav-item svg,
.lesson-card svg,
.summary-card svg,
.status-pill svg,
.icon-chip svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.lesson-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.lesson-nav-item:hover {
  background: #faf7f2;
  border-color: var(--line-strong);
}

.lesson-nav-item.active {
  border-color: #e5d1bb;
  background: var(--accent-soft);
}

.lesson-nav-icon,
.lesson-card-icon,
.summary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--accent);
}

.lesson-nav-icon,
.lesson-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.lesson-nav-copy {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.lesson-nav-copy strong,
.lesson-card h3,
.stream-item h4,
.instruction-title,
.session-card-head strong {
  margin: 0;
  font-weight: 700;
}

.lesson-nav-copy small,
.summary-card p,
.info-tile p {
  color: var(--muted);
}

.content-area {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  align-content: start;
}

.hero-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  grid-gap: 16px;
  gap: 16px;
  padding: 22px;
  align-items: stretch;
}

.hero-banner h2 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

.hero-copy {
  max-width: 58ch;
  margin: 10px 0 0;
}

.hero-actions {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-auto-rows: 1fr;
}

.hero-metric {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  align-content: center;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
}

.hero-metric span {
  color: var(--muted);
}

.hero-metric strong {
  font-size: 1rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  align-items: stretch;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 16px 18px;
}

.summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.65rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
}

.single-column-grid {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-card {
  padding: 18px;
}

.lessons-card,
.activity-card {
  min-height: 100%;
}

.create-card,
.setup-card,
.activity-card {
  align-self: start;
}

.ghost-inline-button,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  cursor: pointer;
}

.ghost-inline-button {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
}

.lesson-card {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.lesson-card:hover {
  background: #fcfaf7;
  border-color: var(--line-strong);
}

.lesson-card.selected {
  border-color: #e5d1bb;
  background: #fcf6ee;
}

.lesson-card-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.lesson-card-cost {
  justify-self: end;
  align-self: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.lesson-card-main h3 {
  font-size: 1.05rem;
}

.lesson-card-main p {
  margin: 4px 0 0;
}

.lesson-tag-row,
.meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lesson-tag-row span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 16px;
}

.field-group {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 600;
}

.field-input,
.field-textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.currency-input-wrap {
  position: relative;
}

.currency-prefix {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.currency-input {
  padding-left: 34px;
}

.field-textarea {
  resize: vertical;
  min-height: 96px;
}

.icon-select {
  position: relative;
}

.icon-select-trigger,
.icon-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.icon-select-trigger {
  justify-content: space-between;
}

.icon-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  width: 100%;
  max-height: 320px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.icon-select-option.selected,
.icon-select-option:hover,
.icon-select-trigger:hover {
  border-color: #e5d1bb;
  background: var(--accent-soft);
}

.icon-select-leading {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--accent);
  flex: 0 0 auto;
}

.icon-select-copy {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.icon-select-copy strong {
  font-size: 0.95rem;
}

.icon-select-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.icon-select-caret {
  color: var(--muted);
  font-size: 0.82rem;
}

.action-row {
  display: flex;
  justify-content: flex-start;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  border: 1px solid transparent;
}

.primary-button {
  background: var(--text);
  color: #fff;
}

.secondary-button {
  background: var(--accent-soft);
  border-color: #e5d1bb;
  color: var(--accent);
}

.ghost-button {
  background: #fff;
  border-color: var(--line);
  color: var(--muted);
}

.danger-button {
  background: #fff4f1;
  border-color: #f2c4b5;
  color: var(--danger);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.token-card,
.instruction-card,
.code-card,
.checklist-card,
.management-card,
.stream-card {
  padding: 16px;
}

.token-card {
  margin-top: 16px;
  background: #fcf6ee;
  border-color: #e5d1bb;
}

.token-value {
  margin: 8px 0 0;
  word-break: break-all;
}

.error-text {
  color: var(--danger);
}

.setup-layout {
  margin-top: 16px;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-tile {
  padding: 14px;
}

.info-tile strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.inline-icon {
  color: var(--accent);
}

.instruction-title {
  margin: 0 0 10px;
  font-weight: 700;
}

.instruction-card code,
.code-card pre {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.checklist-card ul {
  margin: 0;
  padding-left: 18px;
}

.activity-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-top: 16px;
}

.status-board {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 16px;
}

.status-row {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.status-row-main {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.status-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-title-wrap h3 {
  margin: 0;
  font-size: 1.05rem;
}

.status-title-wrap p {
  margin: 4px 0 0;
  color: var(--muted);
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.status-meta-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.status-meta-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-meta-item strong {
  display: block;
  line-height: 1.45;
}

.status-row-actions {
  padding-top: 2px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.status-dot-green {
  background: #1f9d66;
  box-shadow: 0 0 0 6px rgba(31, 157, 102, 0.14);
}

.status-dot-yellow {
  background: #d19a09;
  box-shadow: 0 0 0 6px rgba(209, 154, 9, 0.14);
}

.status-dot-red {
  background: #c2410c;
  box-shadow: 0 0 0 6px rgba(194, 65, 12, 0.12);
}

.status-dot-neutral {
  background: #7c8698;
  box-shadow: 0 0 0 6px rgba(124, 134, 152, 0.12);
}

.status-tone-green {
  border-color: rgba(31, 157, 102, 0.28);
}

.status-tone-yellow {
  border-color: rgba(209, 154, 9, 0.28);
}

.status-tone-red {
  border-color: rgba(194, 65, 12, 0.28);
}

.status-tone-neutral {
  border-color: var(--line);
}

.section-heading.compact h3 {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}

html.route-pending body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #8a5a2b 0%, #c58a51 50%, #8a5a2b 100%);
  background-size: 200% 100%;
  animation: route-progress 0.9s linear infinite;
}

.page-loading {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.loading-bar,
.loading-card {
  border-radius: 18px;
  background: linear-gradient(90deg, #efe8dd 0%, #f8f6f1 50%, #efe8dd 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.loading-bar {
  height: 4px;
  border-radius: 999px;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.loading-card {
  min-height: 120px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes route-progress {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.stream-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  grid-gap: 12px;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.stream-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.stream-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(31, 157, 102, 0.14);
}

.stream-dot.warning {
  background: var(--warn);
  box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.12);
}

.session-card {
  padding: 14px;
}

.session-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.decision-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.danger-wrap {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--panel-soft);
}

@media (max-width: 1180px) {
  .workspace,
  .dashboard-grid,
  .activity-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 14px;
  }

  .topbar,
  .hero-banner,
  .summary-grid,
  .create-form,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-grid {
    display: grid;
  }

  .side-link,
  .lesson-nav-item {
    min-height: auto;
  }

  .loading-grid {
    grid-template-columns: 1fr;
  }

  .status-row-head,
  .status-meta-grid {
    grid-template-columns: 1fr;
  }

  .status-row-head {
    display: grid;
  }

  .lesson-card-cost {
    justify-self: start;
  }
}

