﻿:root {
  --ink: #16201b;
  --muted: #66736d;
  --soft: #f4f7f2;
  --surface: #ffffff;
  --surface-2: #eef3ed;
  --rail: #101713;
  --line: #dbe3dd;
  --mint: #2f9c7b;
  --mint-soft: #dff3ea;
  --amber: #b58122;
  --amber-soft: #fbefd9;
  --coral: #c85f4b;
  --coral-soft: #f7e2dd;
  --violet: #7167b5;
  --violet-soft: #e8e6f7;
  --sky: #327f9f;
  --sky-soft: #e0f0f6;
  --shadow: 0 16px 42px rgba(18, 31, 25, 0.12);
  --radius: 8px;
  --radius-sm: 6px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr) 360px;
  min-height: 100vh;
}

.rail {
  background: var(--rail);
  color: #f6faf6;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: #dff3ea;
  color: #123c30;
  font-weight: 800;
}

.brand-lockup h1,
.topbar h2,
.section-heading h3,
.ai-panel h3 {
  margin: 0;
  letter-spacing: 0;
}

.brand-lockup h1 {
  font-size: 1.2rem;
}

.brand-lockup p,
.eyebrow {
  margin: 0;
  color: var(--muted);
}

.rail .brand-lockup p,
.rail-footer {
  color: #b7c7bf;
}

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-stack {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: #d9e5de;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}

.nav-icon,
.refresh-icon {
  width: 17px;
  height: 17px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 4px;
  position: relative;
  flex: 0 0 auto;
}

.course-icon::before,
.memory-icon::before,
.studio-icon::before,
.refresh-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-top: 2px solid currentColor;
}

.memory-icon { border-radius: 50%; }
.studio-icon { transform: rotate(45deg); }
.refresh-icon { border-radius: 50%; border-left-color: transparent; }

.rail-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
}

.auth-panel {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form input {
  min-height: 34px;
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #f6faf6;
}

.auth-form input::placeholder {
  color: #b7c7bf;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.auth-actions .secondary-button,
.auth-logout {
  min-height: 34px;
  background: #f6faf6;
}

.auth-session {
  color: #d9e5de;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #65d6a3;
}

.workspace {
  padding: 24px;
  min-width: 0;
}

.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h2 {
  font-size: 2rem;
}

.profile-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metric-pill,
.student-chip,
.brain-badge {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  box-shadow: 0 8px 22px rgba(18, 31, 25, 0.06);
}

.metric-pill span {
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-pill strong {
  font-size: 1.05rem;
}

.metric-pill.wide-pill {
  min-width: 160px;
  justify-content: space-between;
}

.avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  color: #15533f;
  font-weight: 800;
}

.view { display: none; }
.view.active { display: block; }

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.8fr);
  gap: 18px;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.summary-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 13px;
  box-shadow: 0 8px 22px rgba(18, 31, 25, 0.06);
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 4px;
}

.summary-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card strong {
  font-size: 1rem;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.focus-board,
.agenda-board,
.assignment-board,
.onboarding-panel,
.memory-layout > section,
.studio-layout > section,
.ai-panel,
.contract-zone {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.focus-board,
.agenda-board,
.assignment-board,
.onboarding-panel,
.memory-layout > section,
.studio-layout > section {
  padding: 18px;
}

.focus-board,
.assignment-board { min-height: 310px; }
.focus-board { grid-row: span 2; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h3,
.ai-panel h3 {
  font-size: 1.04rem;
}

.section-heading.tight { margin-bottom: 10px; }

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.stack-list,
.source-list {
  display: grid;
  gap: 10px;
}

.item-card,
.course-card,
.source-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
  padding: 13px;
}

.item-card strong,
.course-card strong,
.source-card strong {
  display: block;
  margin-bottom: 4px;
}

.item-card p,
.course-card p,
.source-card p,
.result-box p,
.ai-response p {
  margin: 0;
  color: var(--muted);
}

.item-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.warning-copy {
  color: var(--amber);
}

.mini-history {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.tag {
  border-radius: 999px;
  min-height: 24px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.tag.high,
.tag.urgent { background: var(--coral-soft); color: #753122; }
.tag.medium { background: var(--amber-soft); color: #6d4a11; }
.tag.low { background: var(--mint-soft); color: #15533f; }
.tag.source { background: var(--sky-soft); color: #1d5268; }
.tag.covered { background: var(--mint-soft); color: #15533f; }
.tag.partially_covered { background: var(--amber-soft); color: #6d4a11; }
.tag.uncovered,
.tag.learning_required_first { background: var(--coral-soft); color: #753122; }
.tag.review_first_contract,
.tag.practice_test_ready { background: var(--violet-soft); color: #3d3675; }

.icon-button,
.text-button,
.primary-button,
.secondary-button,
.mini-action {
  min-height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
}

.icon-button {
  width: 38px;
  padding: 0;
  display: grid;
  place-items: center;
}

.text-button {
  font-weight: 700;
}

.primary-button {
  border-color: #1f6f58;
  background: #1f6f58;
  color: white;
  font-weight: 800;
}

.secondary-button {
  background: #f8faf8;
  font-weight: 800;
}

.mini-action {
  min-height: 30px;
  padding: 0 9px;
  font-size: 0.8rem;
  font-weight: 800;
  background: #f8faf8;
}

.wide { width: 100%; }

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

.course-card {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  border-top: 4px solid var(--mint);
}

.course-card[data-color="amber"] { border-top-color: var(--amber); }
.course-card[data-color="violet"] { border-top-color: var(--violet); }
.course-card[data-color="sky"] { border-top-color: var(--sky); }

.progress-track {
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 50%;
  background: var(--mint);
}

.memory-layout,
.studio-layout,
.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 18px;
}

.setup-layout {
  grid-template-columns: minmax(0, 860px);
}

.onboarding-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.onboarding-form {
  max-width: 820px;
}

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

.studio-layout > .studio-wide {
  grid-column: 1 / -1;
}

.inline-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  display: grid;
  gap: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfdfb;
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  outline: none;
}

textarea { resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(47, 156, 123, 0.12);
}

.result-box,
.ai-response {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #fbfdfb;
  border-radius: var(--radius);
  padding: 12px;
  min-height: 48px;
}

.rich-result {
  display: grid;
  gap: 12px;
}

.rich-result h4,
.rich-result h5 {
  margin: 0;
}

.rich-result h4 {
  font-size: 1rem;
}

.rich-result h5 {
  font-size: 0.88rem;
  color: var(--ink);
}

.rich-result ul,
.rich-result ol {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.result-section {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.result-grid,
.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diagram-box {
  border: 1px dashed #a9b9b0;
  border-radius: var(--radius-sm);
  background: #f5f8f5;
  color: #35433c;
  padding: 12px;
  overflow-x: auto;
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
}

.source-snippets {
  display: grid;
  gap: 9px;
}

.source-snippets blockquote {
  margin: 0;
  border-left: 3px solid var(--mint);
  padding: 9px 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.source-snippets cite {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.ai-panel {
  margin: 24px 24px 24px 0;
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.ai-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.brain-badge {
  box-shadow: none;
  background: var(--sky-soft);
  color: #1d5268;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.verb-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.verb-tab {
  border: 1px solid var(--line);
  background: #fbfdfb;
  border-radius: var(--radius-sm);
  min-height: 36px;
  font-weight: 800;
}

.verb-tab.active {
  border-color: #1f6f58;
  background: var(--mint-soft);
  color: #15533f;
}

.ai-form {
  display: grid;
  gap: 10px;
}

.contract-zone {
  margin-top: 14px;
  padding: 14px;
  box-shadow: none;
  background: #fbfdfb;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .ai-panel {
    grid-column: 2;
    margin: 0 24px 24px;
    position: static;
    max-height: none;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .rail {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .auth-panel {
    width: min(100%, 360px);
  }
  .nav-stack {
    display: flex;
    overflow-x: auto;
  }
  .rail-footer { margin-left: auto; margin-top: 0; }
  .workspace { padding: 18px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .overview-grid,
  .dashboard-summary,
  .memory-layout,
  .studio-layout,
  .setup-layout,
  .courses-grid,
  .inline-form,
  .form-row,
  .result-grid,
  .split-list {
    grid-template-columns: 1fr;
  }
  .focus-board { grid-row: auto; }
  .ai-panel { grid-column: 1; margin: 0 18px 18px; }
}

.operator-page {
  min-height: 100vh;
  background: var(--soft);
}

.operator-shell {
  display: grid;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.operator-header,
.operator-grid,
.operator-form {
  display: grid;
  gap: 14px;
}

.operator-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.operator-header h1,
.operator-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

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

.operator-panel,
.operator-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.operator-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}

.operator-form label,
.operator-review-form label,
.operator-execute-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.operator-form input,
.operator-review-form textarea,
.operator-review-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
}

.operator-list,
.operator-review-form,
.operator-execute-form {
  display: grid;
  gap: 10px;
}

.operator-item p {
  margin: 6px 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .operator-grid,
  .operator-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .rail { padding: 14px; }
  .brand-lockup { width: 100%; }
  .profile-strip { justify-content: flex-start; }
  .topbar h2 { font-size: 1.55rem; }
  .verb-tabs { grid-template-columns: repeat(2, 1fr); }
}

/* Pass 15: SentIQGPT ecosystem polish */
:root {
  --ink: #f4f6fb;
  --muted: #a6afc0;
  --soft: #080a0f;
  --surface: #10141d;
  --surface-2: #151b28;
  --rail: #090c13;
  --line: rgba(255,255,255,0.1);
  --mint: #8b5cf6;
  --mint-soft: rgba(139,92,246,0.16);
  --amber: #f7b955;
  --amber-soft: rgba(247,185,85,0.16);
  --coral: #f87171;
  --coral-soft: rgba(248,113,113,0.16);
  --violet: #a78bfa;
  --violet-soft: rgba(167,139,250,0.16);
  --sky: #38bdf8;
  --sky-soft: rgba(56,189,248,0.14);
  --shadow: 0 18px 42px rgba(0,0,0,0.32);
}

body {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent 28%),
    linear-gradient(135deg, #080a0f 0%, #0b0f18 48%, #080a0f 100%);
  color: var(--ink);
  color-scheme: dark;
}

.app-shell {
  background: transparent;
}

.rail {
  border-right: 1px solid var(--line);
  background: rgba(9,12,19,0.98);
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.03);
}

.brand-mark {
  background: linear-gradient(180deg, #8f62f4 0%, #7048d9 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(112,72,217,0.24);
}

.brand-lockup p,
.rail .brand-lockup p,
.rail-footer,
.auth-session,
.auth-help {
  color: #a6afc0;
}

.nav-item {
  color: #d7ddeb;
  border-color: transparent;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(139,92,246,0.14);
  border-color: rgba(167,139,250,0.25);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #8b5cf6;
}

.account-icon {
  border-radius: 50%;
}

.account-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 5px;
  border-top: 2px solid currentColor;
  border-radius: 50%;
}

.auth-panel,
.focus-board,
.agenda-board,
.assignment-board,
.onboarding-panel,
.memory-layout > section,
.studio-layout > section,
.ai-panel,
.contract-zone,
.account-panel,
.summary-card,
.item-card,
.course-card,
.source-card,
.result-box,
.ai-response,
.result-section,
.plan-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025)), var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.workspace {
  background: transparent;
}

.topbar {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 16px;
}

.topbar h2 {
  color: #ffffff;
  font-weight: 700;
}

.eyebrow {
  color: #9b8ff3;
}

.metric-pill,
.student-chip,
.brain-badge {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.1);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.plan-pill {
  border-color: rgba(167,139,250,0.32);
}

.avatar {
  background: var(--mint-soft);
  color: #ddd6fe;
}

.large-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
}

.summary-card,
.item-card,
.course-card,
.source-card {
  background: rgba(255,255,255,0.035);
}

.summary-card p,
.item-card p,
.course-card p,
.source-card p,
.result-box p,
.ai-response p,
.auth-help,
.quota-row span,
.account-summary p,
.plan-card p {
  color: var(--muted);
}

.tag {
  background: rgba(255,255,255,0.07);
  color: #dbe3ef;
}

.tag.high,
.tag.urgent { background: var(--coral-soft); color: #fecaca; }
.tag.medium { background: var(--amber-soft); color: #fde68a; }
.tag.low { background: rgba(52,211,153,0.14); color: #bbf7d0; }
.tag.source { background: var(--sky-soft); color: #bae6fd; }
.tag.covered { background: rgba(52,211,153,0.14); color: #bbf7d0; }
.tag.partially_covered { background: var(--amber-soft); color: #fde68a; }
.tag.uncovered,
.tag.learning_required_first { background: var(--coral-soft); color: #fecaca; }
.tag.review_first_contract,
.tag.practice_test_ready { background: var(--violet-soft); color: #ddd6fe; }

.icon-button,
.text-button,
.primary-button,
.secondary-button,
.mini-action,
.verb-tab {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.055);
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.icon-button:hover,
.text-button:hover,
.secondary-button:hover,
.mini-action:hover,
.verb-tab:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(167,139,250,0.28);
  transform: translateY(-1px);
}

.primary-button {
  border-color: rgba(167,139,250,0.4);
  background: linear-gradient(180deg, #8f62f4 0%, #7048d9 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 12px 26px rgba(112,72,217,0.22);
}

.primary-button:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 16px 30px rgba(112,72,217,0.28);
}

.subtle-action {
  min-height: 30px;
  color: #c4b5fd;
  background: transparent;
}

.danger-action {
  border-color: rgba(248,113,113,0.3);
  color: #fecaca;
}

input,
select,
textarea,
.auth-form input {
  background: #0f141e;
  color: var(--ink);
  border-color: rgba(255,255,255,0.11);
}

input::placeholder,
textarea::placeholder {
  color: #737d91;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.16);
}

.course-card {
  border-top-color: #8b5cf6;
}

.course-card[data-color="amber"] { border-top-color: #f7b955; }
.course-card[data-color="violet"] { border-top-color: #a78bfa; }
.course-card[data-color="sky"] { border-top-color: #38bdf8; }

.progress-track,
.quota-track {
  background: rgba(255,255,255,0.08);
}

.progress-fill,
.quota-track span {
  background: linear-gradient(90deg, #8b5cf6, #38bdf8);
}

.source-snippets blockquote,
.diagram-box {
  background: rgba(255,255,255,0.04);
  border-color: rgba(139,92,246,0.32);
  color: #dbe3ef;
}

.ai-panel {
  border-color: rgba(167,139,250,0.18);
}

.brain-badge {
  background: var(--sky-soft);
  color: #bae6fd;
}

.verb-tab.active {
  border-color: rgba(167,139,250,0.46);
  background: var(--mint-soft);
  color: #ddd6fe;
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-panel {
  border-radius: var(--radius);
  padding: 18px;
}

.account-wide {
  grid-column: 1 / -1;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.account-hero strong {
  display: block;
  font-size: 1.1rem;
}

.quota-panel {
  display: grid;
  gap: 12px;
}

.plan-card,
.quota-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.quota-row {
  display: grid;
  gap: 8px;
  background: rgba(255,255,255,0.03);
}

.quota-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quota-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.quota-track span {
  display: block;
  height: 100%;
}

.consent-form {
  display: grid;
  gap: 10px;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--ink);
  font-weight: 600;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #8b5cf6;
}

.account-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.muted-copy {
  color: var(--muted);
}

.lifecycle-status {
  margin-bottom: 12px;
}

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

.lifecycle-item {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
}

.lifecycle-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.auth-complete-page {
  min-height: 100vh;
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

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

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

.auth-complete-panel h1 {
  margin: 4px 0 8px;
  font-size: 1.65rem;
}

.completion-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  text-decoration: none;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
}

.pricing-card.active {
  border-color: rgba(167,139,250,0.5);
  box-shadow: inset 0 0 0 1px rgba(139,92,246,0.14);
}

.pricing-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.pricing-card button {
  align-self: end;
}

@media (max-width: 1180px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .pricing-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .account-wide,
  .account-actions-grid {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .pricing-panel {
    grid-template-columns: 1fr;
  }
  .lifecycle-grid {
    grid-template-columns: 1fr;
  }
}
