:root {
  color-scheme: dark;
  --titlebar-height: 38px;
  --sidebar-width: 252px;
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
  --bg: #080d18;
  --bg-elevated: #0c1220;
  --sidebar: #0b111f;
  --surface: #101829;
  --surface-2: #141e31;
  --surface-3: #18243a;
  --surface-hover: #1b2941;
  --input: #0d1525;
  --text: #edf1fb;
  --text-strong: #ffffff;
  --text-muted: #9ba8bd;
  --text-faint: #66738a;
  --border: rgba(159, 174, 202, 0.14);
  --border-strong: rgba(159, 174, 202, 0.24);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
  --accent: #8b91ff;
  --accent-strong: #a9adff;
  --accent-soft: rgba(139, 145, 255, 0.13);
  --accent-border: rgba(139, 145, 255, 0.35);
  --brand-core: #0b1020;
  --titlebar-dot: #0b1020;
  --success: #54c9a1;
  --success-soft: rgba(84, 201, 161, 0.13);
  --warning: #e9b968;
  --warning-soft: rgba(233, 185, 104, 0.13);
  --danger: #f17f8f;
  --danger-soft: rgba(241, 127, 143, 0.13);
  --info: #6eb7f1;
  --info-soft: rgba(110, 183, 241, 0.13);
  --indigo: #8b91ff;
  --violet: #a783e8;
  --teal: #5ccbb6;
  --blue: #6faff5;
  --rose: #ee8fa8;
  --amber: #e8b66d;
  --fuchsia: #d98fe9;
  --cyan: #62c4dc;
  --lime: #9ecb72;
  --emerald: #58c894;
  --sky: #72b7e8;
  --orange: #ec9e69;
  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 19px;
  --radius-xl: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f5fa;
  --bg-elevated: #f8faff;
  --sidebar: #f7f9fd;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #eef2f8;
  --surface-hover: #edf1f8;
  --input: #f8faff;
  --text: #263044;
  --text-strong: #111827;
  --text-muted: #667085;
  --text-faint: #98a2b3;
  --border: rgba(45, 55, 72, 0.12);
  --border-strong: rgba(45, 55, 72, 0.2);
  --shadow: 0 18px 44px rgba(34, 45, 68, 0.12);
  --shadow-soft: 0 8px 24px rgba(34, 45, 68, 0.08);
  --accent: #626ad9;
  --accent-strong: #4f57c7;
  --accent-soft: rgba(98, 106, 217, 0.1);
  --accent-border: rgba(98, 106, 217, 0.28);
  --brand-core: #f4f6ff;
  --titlebar-dot: #f4f6ff;
  --success: #288c6c;
  --success-soft: rgba(40, 140, 108, 0.1);
  --warning: #a76d17;
  --warning-soft: rgba(167, 109, 23, 0.1);
  --danger: #c84d62;
  --danger-soft: rgba(200, 77, 98, 0.1);
  --info: #337fb8;
  --info-soft: rgba(51, 127, 184, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: rgba(139, 145, 255, 0.3);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(140, 155, 181, 0.22);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(140, 155, 181, 0.36);
  border: 3px solid transparent;
  background-clip: padding-box;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  pointer-events: none;
}

.titlebar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--titlebar-height);
  display: flex;
  align-items: stretch;
  background: #070b13;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
}

:root[data-theme="light"] .titlebar {
  background: #eef1f7;
  border-bottom-color: rgba(15, 23, 42, 0.09);
}

.titlebar-drag {
  -webkit-app-region: drag;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #c9d1df;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}

:root[data-theme="light"] .titlebar-drag {
  color: #465268;
}

.titlebar-mark {
  display: grid;
  place-items: center;
  color: #9298ff;
}

.titlebar-context {
  color: rgba(201, 209, 223, .48);
  font-weight: 450;
}

:root[data-theme="light"] .titlebar-context {
  color: rgba(70, 82, 104, .52);
}

.window-controls {
  -webkit-app-region: no-drag;
  display: flex;
  margin-left: auto;
}

.window-control {
  width: 46px;
  height: var(--titlebar-height);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #bac3d2;
  cursor: default;
}

.window-control:hover {
  background: rgba(255, 255, 255, .08);
}

.window-control.window-close:hover {
  background: #c42b1c;
  color: white;
}

.window-control svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.4;
}

.app-shell {
  position: fixed;
  inset: var(--titlebar-height) 0 0 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  opacity: 1;
  transition: opacity 160ms ease;
}

.app-shell.loading {
  opacity: 0;
}

.sidebar {
  min-width: 0;
  padding: 20px 14px 14px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 25% 0%, rgba(105, 112, 230, .09), transparent 25%),
    var(--sidebar);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.brand-block {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
  margin-bottom: 15px;
}

.brand-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  border: 1px solid var(--accent-border);
  background: linear-gradient(145deg, rgba(139, 145, 255, .18), rgba(139, 145, 255, .06));
  border-radius: 13px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.brand-name {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.brand-tagline {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 11px;
}

.primary-action,
.secondary-action,
.ghost-action,
.danger-action,
.icon-button,
.text-button {
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 120ms var(--ease), background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.primary-action:active,
.secondary-action:active,
.ghost-action:active,
.danger-action:active,
.icon-button:active,
.text-button:active {
  transform: translateY(1px);
}

.primary-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #0a0e1b;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(72, 78, 180, .22), inset 0 1px rgba(255, 255, 255, .2);
}

:root[data-theme="light"] .primary-action {
  color: #fff;
}

.primary-action:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 24px rgba(72, 78, 180, .3), inset 0 1px rgba(255, 255, 255, .24);
}

.primary-action.small,
.secondary-action.small,
.ghost-action.small,
.danger-action.small {
  min-height: 33px;
  padding: 0 11px;
  font-size: 12px;
}

.secondary-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-weight: 600;
}

.secondary-action:hover {
  background: var(--surface-hover);
  border-color: var(--accent-border);
}

.ghost-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  font-weight: 600;
}

.ghost-action:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

.danger-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(241, 127, 143, .25);
  font-weight: 650;
}

.danger-action:hover {
  background: rgba(241, 127, 143, .2);
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.icon-button:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  background: transparent;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 650;
}

.text-button:hover {
  background: var(--accent-soft);
}

button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
}

.sidebar-create {
  justify-content: flex-start;
  width: 100%;
  margin: 0 0 17px;
  padding: 0 12px;
}

.sidebar-create kbd {
  margin-left: auto;
  color: rgba(10, 14, 27, .58);
}

:root[data-theme="light"] .sidebar-create kbd {
  color: rgba(255, 255, 255, .7);
}

kbd {
  min-width: 22px;
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-bottom-color: var(--border-strong);
  border-radius: 5px;
  color: var(--text-faint);
  background: rgba(255, 255, 255, .04);
  font-family: var(--font);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 1px rgba(0, 0, 0, .16);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-label {
  margin: 20px 10px 7px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  font-weight: 560;
  transition: background 110ms ease, color 110ms ease, border-color 110ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .035);
  color: var(--text);
}

:root[data-theme="light"] .nav-item:hover {
  background: rgba(32, 43, 67, .045);
}

.nav-item.active {
  color: var(--text-strong);
  background: var(--accent-soft);
  border-color: rgba(139, 145, 255, .18);
}

.nav-item.active .nav-icon {
  color: var(--accent-strong);
}

.nav-icon {
  width: 20px;
  display: grid;
  place-items: center;
  color: var(--text-faint);
}

.nav-count {
  min-width: 21px;
  height: 20px;
  margin-left: auto;
  display: none;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 10px;
  font-weight: 750;
}

.nav-count.visible {
  display: grid;
}

.nav-item kbd {
  margin-left: auto;
}

.sidebar-spacer {
  flex: 1;
  min-height: 16px;
}

.sidebar-status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 4px 11px;
  padding: 10px 9px;
  border-top: 1px solid var(--border);
}

.status-orb {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px var(--success-soft);
}

.status-orb.saving {
  background: var(--warning);
  box-shadow: 0 0 0 5px var(--warning-soft);
  animation: breathe 1.3s ease-in-out infinite;
}

.status-orb.warning {
  background: var(--warning);
  box-shadow: 0 0 0 5px var(--warning-soft);
}

.status-orb.error {
  background: var(--danger);
  box-shadow: 0 0 0 5px var(--danger-soft);
}

.status-title {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
}

.status-detail {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 10px;
}

.profile-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.profile-button:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

.profile-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(139, 145, 255, .24), rgba(94, 199, 185, .14));
  border: 1px solid rgba(139, 145, 255, .22);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.profile-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.profile-copy span {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 10px;
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr);
  background:
    radial-gradient(circle at 80% -10%, rgba(73, 83, 180, .08), transparent 30%),
    var(--bg);
  overflow: hidden;
}

.workspace-header {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 30px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 87%, transparent);
  backdrop-filter: blur(16px);
  z-index: 5;
}

.header-copy {
  min-width: 0;
}

.header-eyebrow {
  margin-bottom: 3px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-title {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 710;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.header-subtitle {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-search-button {
  width: 240px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-faint);
  cursor: pointer;
  text-align: left;
}

.header-search-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.header-search-button span:nth-child(2) {
  flex: 1;
}

.workspace-content {
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.view-pad {
  width: min(1320px, calc(100% - 52px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.view-pad.narrow {
  width: min(1040px, calc(100% - 52px));
}

.view-pad.wide {
  width: min(1500px, calc(100% - 42px));
}

.hero-card {
  position: relative;
  min-height: 196px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: 32px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 18%, rgba(139, 145, 255, .20), transparent 24%),
    radial-gradient(circle at 76% 92%, rgba(84, 201, 161, .10), transparent 24%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-soft);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to right, transparent 10%, rgba(0,0,0,.45) 100%);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 760px;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(27px, 2.4vw, 39px);
  font-weight: 730;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.hero-description {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 150px;
}

.hero-orbit {
  position: relative;
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 145, 255, .18);
}

.hero-orbit::before {
  inset: 8px;
}

.hero-orbit::after {
  inset: 30px;
  border-color: rgba(84, 201, 161, .16);
}

.hero-orbit-core {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--accent-strong);
  background: rgba(139, 145, 255, .13);
  border: 1px solid rgba(139, 145, 255, .28);
  box-shadow: 0 0 45px rgba(139, 145, 255, .14);
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 12px currentColor;
}

.orbit-dot:nth-child(2) { top: 4px; left: 78px; color: var(--accent); }
.orbit-dot:nth-child(3) { top: 42px; right: 11px; color: var(--success); background: var(--success); }
.orbit-dot:nth-child(4) { bottom: 17px; right: 31px; color: var(--warning); background: var(--warning); }
.orbit-dot:nth-child(5) { bottom: 8px; left: 47px; color: var(--rose); background: var(--rose); }
.orbit-dot:nth-child(6) { top: 50px; left: 8px; color: var(--sky); background: var(--sky); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
}

.stat-card {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 650;
}

.stat-value {
  margin-top: 9px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -.03em;
}

.stat-note {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 16px;
  margin-top: 16px;
}

.dashboard-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 1px rgba(255, 255, 255, .015);
}

.panel-padding {
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 17px;
}

.panel-header-copy {
  min-width: 0;
}

.panel-title {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.panel-description {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.panel-header-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.atlas-map-wrap {
  display: grid;
  grid-template-columns: minmax(270px, .85fr) minmax(300px, 1.15fr);
  gap: 20px;
  align-items: center;
}

.atlas-wheel {
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: visible;
}

.atlas-segment {
  cursor: pointer;
  transition: opacity 130ms ease, filter 130ms ease, transform 130ms ease;
  transform-origin: 160px 160px;
}

.atlas-segment:hover {
  filter: brightness(1.15);
  transform: scale(1.018);
}

.atlas-wheel-center-number {
  fill: var(--text-strong);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 730;
  text-anchor: middle;
}

.atlas-wheel-center-label {
  fill: var(--text-muted);
  font-family: var(--font);
  font-size: 11px;
  text-anchor: middle;
}

.atlas-wheel-label {
  fill: var(--text-faint);
  font-family: var(--font);
  font-size: 9px;
  font-weight: 650;
  text-anchor: middle;
  pointer-events: none;
}

.domain-status-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.domain-status-row {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.domain-status-row:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

.domain-status-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--domain-color) 12%, transparent);
  color: var(--domain-color);
}

.domain-status-name {
  overflow: hidden;
  font-size: 11px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-status-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 10px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}

.status-dot.aligned { background: var(--success); }
.status-dot.gap { background: var(--danger); }
.status-dot.mixed { background: var(--warning); }
.status-dot.unassessed { background: var(--accent); }
.status-dot.ideal { background: var(--violet); }
.status-dot.not-scored { background: var(--info); }
.status-dot.empty { background: var(--text-faint); opacity: .45; }

.continue-card {
  padding: 22px;
}

.continue-principle {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.continue-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--text-faint);
  font-size: 10px;
}

.continue-title {
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.35;
}

.continue-excerpt {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.progress-track {
  height: 5px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(133, 149, 177, .12);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--success));
}

.continue-footer {
  display: flex;
  align-items: center;
  margin-top: 11px;
  color: var(--text-faint);
  font-size: 10px;
}

.continue-footer .text-button {
  margin-left: auto;
}

.repair-list,
.activity-list,
.queue-list,
.principle-list {
  display: flex;
  flex-direction: column;
}

.repair-row,
.activity-row,
.queue-row,
.principle-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.repair-row:first-child,
.activity-row:first-child,
.queue-row:first-child,
.principle-row:first-child {
  border-top: 0;
}

.repair-icon,
.activity-icon,
.queue-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text-muted);
}

.repair-icon {
  color: var(--warning);
  background: var(--warning-soft);
}

.row-copy {
  min-width: 0;
  flex: 1;
}

.row-title {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-subtitle {
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-time {
  color: var(--text-faint);
  font-size: 9px;
  white-space: nowrap;
}

.empty-mini {
  padding: 22px 12px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 30px 2px 13px;
}

.section-heading-row:first-child {
  margin-top: 0;
}

.section-heading-copy {
  flex: 1;
}

.section-heading {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.section-subheading {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
}

.search-field {
  position: relative;
  min-width: 220px;
  flex: 1;
}

.search-field .search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 39px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
}

.search-field input::placeholder {
  color: var(--text-faint);
}

.search-field input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.segment-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.segment-control button {
  height: 32px;
  min-width: 34px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}

.segment-control button:hover {
  color: var(--text);
}

.segment-control button.active {
  background: var(--surface-3);
  color: var(--text-strong);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

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

.domain-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: transform 150ms var(--ease), border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.domain-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -65px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--domain-color) 11%, transparent);
  filter: blur(2px);
  pointer-events: none;
}

.domain-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--domain-color) 35%, var(--border));
  background: color-mix(in srgb, var(--surface) 95%, var(--domain-color));
  box-shadow: var(--shadow-soft);
}

.domain-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.domain-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--domain-color) 25%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--domain-color) 11%, transparent);
  color: var(--domain-color);
}

.domain-card-number {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.domain-card-title {
  margin: 15px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.domain-card-description {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.domain-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
}

.domain-card-stats {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-faint);
  font-size: 10px;
}

.domain-card-arrow {
  margin-left: auto;
  color: var(--text-faint);
  transition: transform 150ms var(--ease), color 150ms ease;
}

.domain-card:hover .domain-card-arrow {
  color: var(--domain-color);
  transform: translateX(2px);
}

.atlas-list-view {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.domain-list-row {
  display: grid;
  grid-template-columns: 46px minmax(180px, .8fr) minmax(280px, 1.4fr) auto 28px;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 11px 16px;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.domain-list-row:first-child {
  border-top: 0;
}

.domain-list-row:hover {
  background: var(--surface-2);
}

.domain-list-row .domain-card-icon {
  width: 38px;
  height: 38px;
}

.domain-list-name {
  color: var(--text-strong);
  font-weight: 680;
}

.domain-list-description {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.domain-list-meta {
  color: var(--text-faint);
  font-size: 10px;
  white-space: nowrap;
}

.domain-hero {
  position: relative;
  overflow: hidden;
  padding: 27px 29px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--domain-color) 18%, transparent), transparent 26%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}

.domain-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.domain-hero-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--domain-color) 30%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--domain-color) 13%, transparent);
  color: var(--domain-color);
}

.domain-hero-copy {
  min-width: 0;
  flex: 1;
}

.domain-hero-kicker {
  color: var(--domain-color);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.domain-hero-title {
  margin: 5px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 730;
  letter-spacing: -.035em;
}

.domain-hero-description {
  max-width: 850px;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.domain-hero-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.domain-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 21px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--text-muted);
  font-size: 10px;
}

.metric-pill strong {
  color: var(--text);
  font-weight: 700;
}

.principle-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.principle-table-head,
.principle-table-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) minmax(140px, .8fr) 110px 110px 90px 32px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.principle-table-head {
  min-height: 39px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.principle-table-row {
  min-height: 67px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.principle-table-row:first-of-type {
  border-top: 0;
}

.principle-table-row:hover {
  background: var(--surface-2);
}

.principle-title-cell {
  min-width: 0;
}

.principle-title-cell strong {
  display: block;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 670;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.principle-title-cell small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-text {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge,
.gap-badge,
.type-badge,
.status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.gap-badge.aligned {
  color: var(--success);
  background: var(--success-soft);
  border-color: rgba(84, 201, 161, .22);
}

.gap-badge.gap {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(241, 127, 143, .22);
}

.gap-badge.unassessed,
.gap-badge.not-scored {
  color: var(--text-faint);
}

.gap-badge.ideal {
  color: var(--violet);
  background: color-mix(in srgb, var(--violet) 13%, transparent);
  border-color: color-mix(in srgb, var(--violet) 28%, transparent);
}

.status-badge.draft {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: rgba(233,185,104,.22);
}

.status-badge.active {
  color: var(--success);
  background: var(--success-soft);
  border-color: rgba(84,201,161,.22);
}

.question-bank {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.question-group {
  border-top: 1px solid var(--border);
}

.question-group:first-child {
  border-top: 0;
}

.question-group-button {
  width: 100%;
  min-height: 63px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.question-group-button:hover {
  background: var(--surface-2);
}

.question-group-number {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--domain-color) 10%, transparent);
  color: var(--domain-color);
  font-size: 10px;
  font-weight: 800;
}

.question-group-title {
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 680;
}

.question-group-description {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.4;
}

.question-group-count {
  color: var(--text-faint);
  font-size: 9px;
}

.question-group-chevron {
  color: var(--text-faint);
  transition: transform 150ms var(--ease);
}

.question-group.open .question-group-chevron {
  transform: rotate(90deg);
}

.question-list {
  display: none;
  padding: 0 16px 15px 68px;
}

.question-group.open .question-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.question-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
}

.question-mark {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
}

.question-text {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.spirit-card {
  padding: 22px;
  border: 1px solid rgba(139, 145, 255, .2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(139, 145, 255, .12), transparent 28%),
    var(--surface);
}

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

.spirit-question {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.018);
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 35px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  text-align: center;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-strong);
}

.empty-state h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 700;
}

.empty-state p {
  max-width: 560px;
  margin: 9px auto 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 19px;
}

.principle-editor-wrap {
  width: min(1520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.principle-overview-card {
  padding: 19px 21px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.principle-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.principle-domain-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--domain-color) 26%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--domain-color) 11%, transparent);
  color: var(--domain-color);
}

.principle-title-input-wrap {
  min-width: 0;
  flex: 1;
}

.principle-title-input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 710;
  letter-spacing: -.025em;
}

.principle-title-input:focus {
  outline: none;
}

.principle-id-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 9px;
}

.principle-top-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr .7fr;
  gap: 11px;
  margin-top: 16px;
}

.metadata-field label,
.form-field label,
.form-field .field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 650;
}

.metadata-field select,
.metadata-field input,
.form-field input,
.form-field textarea,
.form-field select,
.modal-field input,
.modal-field textarea,
.modal-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input);
  color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.metadata-field select,
.metadata-field input,
.form-field input,
.form-field select,
.modal-field input,
.modal-field select {
  height: 38px;
  padding: 0 10px;
}

.form-field textarea,
.modal-field textarea {
  min-height: 92px;
  padding: 10px 11px;
  resize: none;
  line-height: 1.55;
}

.metadata-field select:focus,
.metadata-field input:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.modal-field input:focus,
.modal-field textarea:focus,
.modal-field select:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.roles-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.roles-label {
  flex: 0 0 auto;
  margin-right: 2px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 650;
}

.role-chip,
.choice-chip,
.filter-chip {
  flex: 0 0 auto;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-faint);
  cursor: pointer;
  font-size: 9px;
  font-weight: 650;
}

.role-chip:hover,
.choice-chip:hover,
.filter-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.role-chip.active,
.choice-chip.active,
.filter-chip.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.editor-layout {
  display: grid;
  grid-template-columns: 190px minmax(500px, 1fr) minmax(270px, 330px);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.editor-section-rail,
.editor-panel,
.prompt-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.editor-section-rail {
  position: sticky;
  top: 15px;
  padding: 9px;
}

.editor-section-button {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) 9px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}

.editor-section-button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.editor-section-button.active {
  background: var(--accent-soft);
  border-color: rgba(139, 145, 255, .18);
  color: var(--text-strong);
}

.editor-section-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: var(--text-faint);
}

.editor-section-button.active .editor-section-icon {
  background: rgba(139,145,255,.14);
  color: var(--accent-strong);
}

.editor-section-name {
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-completion-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: .28;
}

.section-completion-dot.started {
  background: var(--warning);
  opacity: 1;
}

.section-completion-dot.complete {
  background: var(--success);
  opacity: 1;
}

.editor-panel {
  min-width: 0;
  padding: 23px 24px 27px;
}

.editor-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.editor-panel-heading-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.editor-panel-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 700;
}

.editor-panel-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 20px;
}

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

.form-field {
  min-width: 0;
}

.field-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.field-header label {
  margin: 0;
}

.field-help {
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.45;
}

.field-character-count {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 8px;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.callout.info {
  border-color: rgba(110, 183, 241, .2);
  background: var(--info-soft);
}

.callout.warning {
  border-color: rgba(233, 185, 104, .22);
  background: var(--warning-soft);
}

.callout.danger {
  border-color: rgba(241, 127, 143, .22);
  background: var(--danger-soft);
}

.callout strong {
  color: var(--text);
}

.scale-block {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
}

.scale-label-row {
  display: flex;
  align-items: center;
  margin-bottom: 11px;
}

.scale-label-row strong {
  color: var(--text-strong);
  font-size: 11px;
}

.scale-label-row span {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 9px;
}

.scale-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.scale-button {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--input);
  color: var(--text-muted);
  cursor: pointer;
}

.scale-button:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.scale-button.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(139,145,255,.06);
}

.scale-button.negative.active {
  border-color: rgba(241,127,143,.35);
  background: var(--danger-soft);
  color: var(--danger);
}

.scale-button.aligned.active {
  border-color: rgba(84,201,161,.35);
  background: var(--success-soft);
  color: var(--success);
}

.scale-number {
  font-size: 14px;
  font-weight: 750;
}

.scale-caption {
  font-size: 8px;
  text-align: center;
}

.scale-description {
  min-height: 37px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.5;
}

.direction-buttons,
.status-buttons,
.theme-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.direction-button,
.status-button,
.theme-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--input);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 620;
}

.direction-button:hover,
.status-button:hover,
.theme-button:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.direction-button.active,
.status-button.active,
.theme-button.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.prompt-panel {
  position: sticky;
  top: 15px;
  max-height: calc(100vh - var(--titlebar-height) - 115px);
  overflow: auto;
  padding: 17px;
}

.prompt-panel-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.prompt-panel-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.prompt-panel-title {
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 680;
}

.prompt-panel-subtitle {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 9px;
}

.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 13px;
}

.prompt-card {
  position: relative;
  padding: 10px 34px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.5;
}

.prompt-card:hover {
  border-color: var(--border-strong);
}

.prompt-card button {
  position: absolute;
  top: 7px;
  right: 6px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}

.prompt-card button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.prompt-divider {
  height: 1px;
  margin: 15px 0;
  background: var(--border);
}

.prompt-action-card {
  padding: 12px;
  border: 1px solid rgba(139, 145, 255, .2);
  border-radius: 11px;
  background: var(--accent-soft);
}

.prompt-action-card strong {
  display: block;
  color: var(--text-strong);
  font-size: 10px;
}

.prompt-action-card p {
  margin: 5px 0 10px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.45;
}

.reflection-notes {
  margin-top: 13px;
}

.reflection-notes textarea {
  width: 100%;
  min-height: 100px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input);
  color: var(--text);
  resize: vertical;
  font-size: 9px;
  line-height: 1.5;
}

.history-list {
  position: relative;
  margin-top: 20px;
  padding-left: 22px;
}

.history-list::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 7px;
  width: 1px;
  background: var(--border-strong);
}

.history-item {
  position: relative;
  padding: 0 0 18px 10px;
}

.history-item::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -19px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-border);
}

.history-date {
  color: var(--text-faint);
  font-size: 9px;
}

.history-summary {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}

.history-note {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.review-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.review-card {
  min-height: 115px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.review-card-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-muted);
}

.review-card-number {
  margin-top: 12px;
  color: var(--text-strong);
  font-size: 22px;
  font-weight: 720;
}

.review-card-label {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
}

.review-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.review-table-head,
.review-table-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) 120px 120px 130px 92px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.review-table-head {
  min-height: 40px;
  background: var(--surface-2);
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.review-table-row {
  min-height: 68px;
  border-top: 1px solid var(--border);
}

.review-principle-title {
  min-width: 0;
}

.review-principle-title strong {
  display: block;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-principle-title small {
  display: block;
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 9px;
}

.due-text {
  color: var(--text-muted);
  font-size: 10px;
}

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

.due-text.soon {
  color: var(--warning);
}

.tensions-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.tension-list-panel,
.tension-editor-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.tension-list-panel {
  position: sticky;
  top: 15px;
  overflow: hidden;
}

.tension-list-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.tension-list-header strong {
  color: var(--text-strong);
  font-size: 11px;
}

.tension-list-header button {
  margin-left: auto;
}

.tension-list-items {
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding: 7px;
}

.tension-list-item {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.tension-list-item:hover {
  background: var(--surface-2);
}

.tension-list-item.active {
  background: var(--accent-soft);
  border-color: rgba(139,145,255,.18);
}

.tension-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text-faint);
}

.tension-list-item.active .tension-symbol {
  background: rgba(139,145,255,.15);
  color: var(--accent-strong);
}

.tension-list-copy {
  min-width: 0;
}

.tension-list-title {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 10px;
  font-weight: 660;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tension-list-values {
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tension-editor-panel {
  padding: 22px 23px 27px;
}

.tension-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--border);
}

.tension-title-input {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 710;
}

.tension-title-input:focus {
  outline: none;
}

.value-versus-grid {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  gap: 10px;
  align-items: center;
}

.versus-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 800;
}

.tension-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.tension-template {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  font-size: 10px;
}

.tension-template:hover {
  color: var(--text);
  border-color: var(--accent-border);
}

.settings-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}

.settings-nav {
  position: sticky;
  top: 15px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.settings-nav button {
  width: 100%;
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  font-size: 10px;
  font-weight: 620;
}

.settings-nav button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.settings-nav button.active {
  background: var(--accent-soft);
  color: var(--text-strong);
  border-color: rgba(139,145,255,.18);
}

.settings-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.settings-section {
  padding: 23px 24px;
  border-top: 1px solid var(--border);
}

.settings-section:first-child {
  border-top: 0;
}

.settings-section-header {
  margin-bottom: 17px;
}

.settings-section-header h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 690;
}

.settings-section-header p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .7fr);
  gap: 20px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--border);
}

.setting-row:first-of-type {
  border-top: 0;
}

.setting-copy strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 660;
}

.setting-copy p {
  margin: 4px 0 0;
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.5;
}

.setting-control {
  justify-self: stretch;
}

.setting-control input,
.setting-control select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input);
  color: var(--text);
}

.storage-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.storage-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--success-soft);
  color: var(--success);
}

.storage-title {
  color: var(--text);
  font-size: 10px;
  font-weight: 660;
}

.storage-path {
  margin-top: 4px;
  overflow: hidden;
  color: var(--text-faint);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.about-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.about-copy h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 16px;
}

.about-copy p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  inset: var(--titlebar-height) 0 0 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 5, 10, .62);
  backdrop-filter: blur(8px);
  animation: fade-in 130ms ease both;
}

.modal {
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - var(--titlebar-height) - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: modal-in 170ms var(--ease) both;
}

.modal.large {
  width: min(790px, calc(100vw - 48px));
}

.modal.search-modal {
  width: min(680px, calc(100vw - 48px));
  align-self: start;
  margin-top: 55px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 21px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-heading {
  min-width: 0;
  flex: 1;
}

.modal-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.modal-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 20px 21px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 21px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

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

.modal-field {
  min-width: 0;
}

.modal-field.full {
  grid-column: 1 / -1;
}

.modal-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 650;
}

.modal-note {
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.5;
}

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

.template-card {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.template-card:hover {
  border-color: var(--accent-border);
  background: color-mix(in srgb, var(--surface-2) 92%, var(--accent));
}

.template-card.selected {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.template-domain {
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.template-title {
  margin-top: 6px;
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 680;
}

.template-excerpt {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.search-modal-field {
  position: relative;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.search-modal-field span {
  position: absolute;
  top: 50%;
  left: 27px;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  transform: translateY(-50%);
}

.search-modal-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 43px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
  font-size: 13px;
}

.search-results {
  max-height: 470px;
  overflow: auto;
  padding: 8px;
}

.search-group-label {
  padding: 10px 9px 5px;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-result {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.search-result:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

.search-result-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-faint);
}

.search-result-title {
  color: var(--text-strong);
  font-size: 10px;
  font-weight: 660;
}

.search-result-subtitle {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 9px;
}

.search-result-type {
  color: var(--text-faint);
  font-size: 8px;
  text-transform: uppercase;
}

.chatgpt-prompt-box {
  width: 100%;
  min-height: 260px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  line-height: 1.55;
}

.onboarding-backdrop {
  position: fixed;
  inset: var(--titlebar-height) 0 0 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 75% 15%, rgba(98, 106, 217, .19), transparent 28%),
    radial-gradient(circle at 20% 88%, rgba(84, 201, 161, .10), transparent 25%),
    var(--bg);
}

.onboarding-card {
  width: min(940px, calc(100vw - 48px));
  min-height: 590px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.onboarding-side {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 32px 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(139,145,255,.22), transparent 29%),
    linear-gradient(160deg, #111936, #0a1020 72%);
  color: #eef1ff;
}

.onboarding-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 95%);
  pointer-events: none;
}

.onboarding-brand,
.onboarding-side-copy,
.onboarding-steps,
.onboarding-privacy {
  position: relative;
  z-index: 1;
}

.onboarding-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
}

.onboarding-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(172,177,255,.3);
  border-radius: 14px;
  background: rgba(139,145,255,.14);
  color: #b7bbff;
}

.onboarding-side-copy {
  margin-top: 54px;
}

.onboarding-side-copy h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.onboarding-side-copy p {
  margin: 13px 0 0;
  color: rgba(230,235,255,.65);
  font-size: 11px;
  line-height: 1.65;
}

.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 42px;
}

.onboarding-step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(230,235,255,.42);
  font-size: 10px;
  font-weight: 620;
}

.onboarding-step-indicator .step-number {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230,235,255,.18);
  border-radius: 8px;
  font-size: 9px;
}

.onboarding-step-indicator.active {
  color: #fff;
}

.onboarding-step-indicator.active .step-number {
  background: rgba(139,145,255,.24);
  border-color: rgba(172,177,255,.45);
  color: #c7caff;
}

.onboarding-step-indicator.done {
  color: rgba(230,235,255,.72);
}

.onboarding-step-indicator.done .step-number {
  background: rgba(84,201,161,.15);
  border-color: rgba(84,201,161,.35);
  color: #7fdbbd;
}

.onboarding-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: rgba(230,235,255,.5);
  font-size: 9px;
  line-height: 1.4;
}

.onboarding-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 37px 41px 27px;
}

.onboarding-content {
  flex: 1;
}

.onboarding-kicker {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.onboarding-title {
  margin: 8px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 730;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.onboarding-description {
  max-width: 600px;
  margin: 13px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}

.onboarding-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 25px;
}

.onboarding-feature {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
}

.onboarding-feature-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.onboarding-feature strong {
  display: block;
  margin-top: 10px;
  color: var(--text-strong);
  font-size: 10px;
}

.onboarding-feature p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.5;
}

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

.model-column {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
}

.model-column-number {
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 800;
}

.model-column h3 {
  margin: 8px 0 0;
  color: var(--text-strong);
  font-size: 12px;
}

.model-column p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.5;
}

.onboarding-setup {
  max-width: 570px;
  margin-top: 23px;
}

.onboarding-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 17px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
}

.onboarding-check input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.onboarding-check strong {
  display: block;
  color: var(--text);
  font-size: 10px;
}

.onboarding-check small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.5;
}

.onboarding-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 21px;
  border-top: 1px solid var(--border);
}

.onboarding-progress {
  display: flex;
  gap: 5px;
}

.onboarding-progress span {
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
}

.onboarding-progress span.active {
  width: 34px;
  background: var(--accent);
}

.onboarding-footer-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: 390px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
  animation: toast-in 180ms var(--ease) both;
  pointer-events: auto;
}

.toast-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--success-soft);
  color: var(--success);
}

.toast.error .toast-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.toast.warning .toast-icon {
  background: var(--warning-soft);
  color: var(--warning);
}

.toast-title {
  color: var(--text-strong);
  font-size: 10px;
  font-weight: 670;
}

.toast-message {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.4;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.hidden {
  display: none !important;
}

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

.faint {
  color: var(--text-faint);
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent-strong); }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@media (max-width: 1280px) {
  :root { --sidebar-width: 228px; }
  .atlas-domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-layout { grid-template-columns: 174px minmax(460px, 1fr) 285px; }
  .metadata-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 330px; }
  .atlas-map-wrap { grid-template-columns: 290px minmax(260px, 1fr); }
}

@media (max-width: 1120px) {
  :root { --sidebar-width: 210px; }
  .brand-tagline, .sidebar-status-card, .profile-copy small { display: none; }
  .header-search-button { width: 180px; }
  .editor-layout { grid-template-columns: 155px minmax(440px, 1fr); }
  .prompt-panel { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle-table-head, .principle-table-row { grid-template-columns: minmax(210px, 1.4fr) minmax(130px, .8fr) 100px 90px 32px; }
  .principle-table-head > :nth-child(4), .principle-table-row > :nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

:root[data-motion="reduced"] *,
:root[data-motion="reduced"] *::before,
:root[data-motion="reduced"] *::after {
  scroll-behavior: auto !important;
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}

/* Lightweight Windows shell: the browser supplies the native window frame. */
html.edge-shell {
  --titlebar-height: 0px;
}

html.edge-shell .titlebar {
  display: none;
}

/* Personal Atlas PWA */
.pwa-shell {
  --titlebar-height: 0px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}
.pwa-shell .titlebar { display: none !important; }
.pwa-shell .app-shell { inset: 0; }
.mobile-nav { display: none; }
.mobile-review-badge { display: none; }

@media (max-width: 760px) {
  :root { --radius-lg: 17px; --radius-xl: 21px; }
  html, body { height: 100dvh; overflow: hidden; font-size: 16px; }
  body { overscroll-behavior: none; }
  .app-shell { inset: 0; display: block; }
  .sidebar { display: none !important; }
  .workspace {
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
    background: var(--bg);
  }
  .workspace-header {
    min-height: 72px;
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    align-items: center;
    background: color-mix(in srgb, var(--bg) 93%, transparent);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
  }
  .header-copy { flex: 1; min-width: 0; }
  .header-eyebrow { display: none; }
  .header-title { font-size: 22px; line-height: 1.1; }
  .header-subtitle { display: none; }
  .header-actions { gap: 6px; margin-left: 0; }
  .header-search-button {
    width: 40px; height: 40px; padding: 0; justify-content: center;
    border-radius: 12px; background: var(--surface-2);
  }
  .header-search-button span:nth-child(2), .header-search-button kbd { display: none; }
  .header-actions .secondary-action.small { min-width: 40px; min-height: 40px; padding: 0 10px; }
  .header-actions .secondary-action.small svg { margin: 0; }
  .header-actions .secondary-action.small { font-size: 0; gap: 0; }
  .header-actions .primary-action.small { display: none; }
  .workspace-content { -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
  .view-pad, .view-pad.narrow, .view-pad.wide,
  .principle-editor-wrap { width: 100%; margin: 0; padding: 14px 14px 28px; }

  .mobile-nav {
    position: fixed; z-index: 850; left: 0; right: 0; bottom: 0;
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 7px 8px env(safe-area-inset-bottom);
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
    backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%);
  }
  .mobile-nav > button {
    position: relative; height: 54px; border: 0; background: transparent; color: var(--text-faint);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border-radius: 13px; font-size: 10px; font-weight: 650;
  }
  .mobile-nav > button > span:first-child { display: grid; place-items: center; min-height: 22px; }
  .mobile-nav > button small { font-size: 9px; }
  .mobile-nav > button.active { color: var(--accent-strong); background: var(--accent-soft); }
  .mobile-nav .mobile-create {
    width: 52px; height: 52px; align-self: center; justify-self: center; margin-top: -25px;
    border: 1px solid var(--accent-border); border-radius: 18px;
    background: linear-gradient(180deg, var(--accent-strong), var(--accent)); color: #080d18;
    box-shadow: 0 10px 28px rgba(70,77,180,.35), inset 0 1px rgba(255,255,255,.3);
  }
  :root[data-theme="light"] .mobile-nav .mobile-create { color: white; }
  .mobile-review-badge.visible {
    position: absolute; top: 4px; right: calc(50% - 22px); display: grid; place-items: center;
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    background: var(--warning); color: #111; font-size: 8px; font-weight: 800;
  }

  .hero-card { min-height: 0; grid-template-columns: 1fr; gap: 18px; padding: 23px 20px; border-radius: 20px; }
  .hero-title { font-size: 29px; }
  .hero-description { font-size: 13px; line-height: 1.55; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions > * { width: 100%; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }
  .dashboard-grid, .dashboard-stack { display: flex; flex-direction: column; gap: 12px; }
  .panel-padding, .continue-card { padding: 17px; }
  .panel-header { margin-bottom: 13px; }
  .atlas-map-wrap { grid-template-columns: 1fr; }
  .atlas-wheel { width: min(100%, 300px); }
  .domain-status-list { display: none; }

  .section-heading-row { align-items: flex-start; gap: 10px; }
  .section-heading { font-size: 18px; }
  .atlas-toolbar { flex-direction: column; align-items: stretch; gap: 9px; }
  .atlas-search { width: 100%; }
  .layout-switch { align-self: flex-end; }
  .atlas-domain-grid, .atlas-grid { grid-template-columns: 1fr !important; }
  .domain-card { min-height: 0; }
  .atlas-list-view { border-radius: 16px; }
  .domain-list-row { grid-template-columns: 40px minmax(0, 1fr) 24px; min-height: 70px; gap: 10px; padding: 12px; }
  .domain-list-description, .domain-list-meta { display: none; }

  .domain-hero { padding: 20px 18px; }
  .domain-hero-top { gap: 13px; }
  .domain-hero-icon { width: 48px; height: 48px; border-radius: 15px; }
  .domain-hero-title { font-size: 24px; }
  .domain-hero-description { font-size: 11px; }
  .domain-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .subcategory-grid { grid-template-columns: 1fr !important; }
  .spirit-grid { grid-template-columns: 1fr; }

  .principle-overview-card { padding: 16px; }
  .principle-title-row { flex-wrap: wrap; }
  .principle-domain-mark { width: 40px; height: 40px; }
  .principle-title-input { font-size: 20px; }
  .principle-top-actions { width: 100%; margin: 5px 0 0 52px; }
  .metadata-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .roles-row { margin-left: -2px; padding-bottom: 5px; }
  .editor-layout { display: flex; flex-direction: column; gap: 11px; }
  .editor-section-rail {
    position: static; width: calc(100vw - 28px); display: flex; gap: 6px; overflow-x: auto;
    padding: 7px; border-radius: 14px; scroll-snap-type: x proximity; scrollbar-width: none;
  }
  .editor-section-rail::-webkit-scrollbar { display: none; }
  .editor-section-button { width: auto; min-width: max-content; min-height: 40px; grid-template-columns: 25px auto 7px; padding: 5px 8px; scroll-snap-align: start; }
  .editor-section-name { font-size: 10px; overflow: visible; }
  .editor-section-icon { width: 25px; height: 25px; }
  .editor-panel { width: 100%; padding: 18px 16px 22px; }
  .editor-panel-heading { padding-bottom: 14px; }
  .form-stack { gap: 15px; margin-top: 16px; }
  .form-grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .form-field textarea, .modal-field textarea { min-height: 112px; font-size: 16px; }
  .metadata-field select, .metadata-field input, .form-field input, .form-field select, .modal-field input, .modal-field select { height: 44px; font-size: 16px; }
  .scale-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scale-button { min-height: 52px; }
  .prompt-panel { display: block; position: static; width: 100%; max-height: none; padding: 15px; }

  .review-grid, .review-list-grid { grid-template-columns: 1fr !important; }
  .tensions-layout { display: flex; flex-direction: column; gap: 12px; }
  .tension-list-panel { width: 100%; max-height: 210px; }
  .tension-editor { width: 100%; }
  .tension-template-grid { grid-template-columns: 1fr 1fr !important; }

  .settings-layout { display: flex; flex-direction: column; gap: 12px; width: 100%; min-width: 0; }
  .settings-nav {
    position: static; display: flex; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; gap: 6px; padding: 6px;
    border: 1px solid var(--border); border-radius: 14px; background: var(--surface); scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav button { width: auto; flex: 0 0 auto; min-width: max-content; }
  .settings-panel { width: 100%; min-width: 0; }
  .settings-section { padding: 17px !important; }
  .setting-row { grid-template-columns: 1fr !important; gap: 12px; align-items: start; }
  .setting-control { width: 100%; justify-content: flex-start !important; }
  .backup-actions { flex-direction: column; align-items: stretch; }
  .backup-actions > button { width: 100%; }
  .storage-card { grid-template-columns: 40px minmax(0,1fr); }

  .modal-backdrop { align-items: end; padding: 0; }
  .modal, .modal.large, .modal.search-modal {
    width: 100%; max-width: none; max-height: min(88dvh, 780px); margin: 0;
    border-radius: 22px 22px 0 0; border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .modal-header { padding: 17px 18px 12px; }
  .modal-body { padding: 0 16px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal-footer { padding: 12px 16px; gap: 8px; flex-wrap: wrap; }
  .modal-footer > button { flex: 1 1 auto; min-height: 44px; }
  .modal-form-grid { grid-template-columns: 1fr; }
  .search-results { max-height: 56dvh; }
  .chatgpt-prompt-box { min-height: 42dvh; font-size: 13px; }

  .onboarding-backdrop {
    inset: 0; display: block; padding: 0; overflow-y: auto;
    background: var(--bg); -webkit-overflow-scrolling: touch;
  }
  .onboarding-card {
    width: 100%; min-height: 100dvh; display: block; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  }
  .onboarding-side { min-height: 150px; padding: 24px 20px 18px; }
  .onboarding-side-copy { margin-top: 24px; }
  .onboarding-side-copy h2 { font-size: 24px; }
  .onboarding-side-copy p, .onboarding-steps { display: none; }
  .onboarding-privacy { margin-top: 18px; }
  .onboarding-main { min-height: calc(100dvh - 150px); padding: 24px 18px 18px; }
  .onboarding-title { font-size: 28px; }
  .onboarding-description { font-size: 13px; }
  .onboarding-feature-grid, .onboarding-principle-model { grid-template-columns: 1fr; gap: 10px; }
  .onboarding-feature strong, .model-column h3 { font-size: 12px; }
  .onboarding-feature p, .model-column p { font-size: 10px; }
  .onboarding-footer { position: sticky; bottom: 0; margin: 18px -18px -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(18px); }
  .onboarding-progress { display: none; }
  .onboarding-footer-actions { width: 100%; }
  .onboarding-footer-actions > button { flex: 1; min-height: 46px; }

  .toast-root { left: 12px; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; width: 100%; max-width: none; }
  .empty-state { min-height: 260px; padding: 28px 18px; }
  .empty-actions { flex-direction: column; }
  .empty-actions > * { width: 100%; }
  kbd { display: none !important; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  :root { --sidebar-width: 190px; }
  .view-pad { width: min(100% - 32px, 1100px); }
  .editor-layout { grid-template-columns: 170px minmax(0, 1fr); }
  .prompt-panel { display: block; grid-column: 2; position: static; max-height: none; }
  .metadata-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Privacy lock, update notices, and backup reminders — v0.3.0 */
body.atlas-locked {
  overflow: hidden;
}
body.atlas-locked .app-shell,
body.atlas-locked .mobile-nav,
body.atlas-locked #modal-root,
body.atlas-locked #popover-root,
body.atlas-locked #toast-root {
  visibility: hidden;
  pointer-events: none;
}

.lock-screen {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--accent) 19%, transparent), transparent 38%),
    linear-gradient(180deg, var(--bg-elevated), var(--bg));
}

.lock-card {
  width: min(100%, 420px);
  padding: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-xl);
  text-align: center;
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.lock-brand-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 21px;
  color: var(--accent-strong);
  background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--surface-2) 90%, transparent));
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}

.lock-kicker {
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lock-card h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(27px, 7vw, 34px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.lock-card > p {
  max-width: 32rem;
  margin: 12px auto 23px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.lock-form {
  text-align: left;
}

.lock-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lock-form input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  outline: none;
  background: var(--input-bg);
  color: var(--text);
  font: 700 21px/1 var(--font);
  letter-spacing: .28em;
  text-align: center;
  -webkit-text-security: disc;
}

.lock-form input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lock-form input:disabled,
.lock-form button:disabled {
  cursor: wait;
  opacity: .62;
}

.lock-help {
  margin-top: 7px;
  color: var(--text-faint);
  font-size: 10px;
  text-align: center;
}

.lock-error {
  min-height: 19px;
  margin: 9px 0 4px;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.lock-submit {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  margin-top: 5px;
}

.lock-footnote {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.55;
}

.system-notices {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.system-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--accent-border);
  border-radius: 15px;
  background: var(--accent-soft);
}

.system-notice.warning-notice {
  border-color: color-mix(in srgb, var(--warning) 34%, var(--border));
  background: color-mix(in srgb, var(--warning) 10%, var(--surface));
}

.system-notice-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.warning-notice .system-notice-icon {
  color: var(--warning);
}

.system-notice-copy strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.system-notice-copy p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.system-notice-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.backup-reminder-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--warning) 36%, var(--border));
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, color-mix(in srgb, var(--warning) 9%, var(--surface)), var(--surface));
  box-shadow: var(--shadow-sm);
}

.backup-reminder-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 13%, var(--surface-2));
}

.backup-reminder-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--warning);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.backup-reminder-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.backup-reminder-copy p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.55;
}

.backup-reminder-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

button:disabled,
select:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .58;
}

@media (max-width: 760px) {
  .lock-screen {
    align-items: center;
    padding-right: 16px;
    padding-left: 16px;
  }
  .lock-card {
    padding: 28px 21px 24px;
    border-radius: 24px;
  }
  .lock-form input {
    font-size: 20px;
  }
  .system-notice,
  .backup-reminder-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
  .system-notice-actions,
  .backup-reminder-actions {
    grid-column: 1 / -1;
    width: 100%;
    align-items: stretch;
  }
  .system-notice-actions > button,
  .backup-reminder-actions > button {
    flex: 1 1 0;
    min-height: 42px;
  }
  .backup-reminder-card {
    gap: 11px;
    padding: 15px;
  }
}

@media (max-width: 390px) {
  .system-notice-actions,
  .backup-reminder-actions {
    flex-direction: column-reverse;
  }
  .system-notice-actions > button,
  .backup-reminder-actions > button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .metadata-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Focused information architecture — v0.4.0
   -------------------------------------------------------------------------- */

.header-tool-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}

.header-tool-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text-strong);
  transform: translateY(-1px);
}

.calm-home,
.atlas-calm,
.domain-calm,
.guide-view,
.interview-home {
  width: min(1120px, calc(100% - 56px));
}

.calm-home {
  display: grid;
  gap: 18px;
}

.calm-hero {
  position: relative;
  overflow: hidden;
  min-height: 226px;
  display: flex;
  align-items: center;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 15%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 26%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 72%, var(--bg)), var(--surface));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .13);
}

.calm-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  bottom: -150px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 50%;
  opacity: .7;
}

.calm-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.calm-kicker,
.guide-kicker,
.interview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.calm-hero h2,
.guide-hero h2 {
  max-width: 780px;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.7vw, 52px);
  font-weight: 680;
  letter-spacing: -.045em;
  line-height: 1.03;
}

.calm-hero p,
.guide-hero > p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.calm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

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

.path-card {
  min-height: 84px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.path-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.path-card > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.path-card strong {
  color: var(--text-strong);
  font-size: 14px;
}

.path-card small {
  color: var(--text-muted);
  font-size: 11px;
}

.path-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.path-arrow {
  color: var(--text-faint);
}

.home-continue .continue-card {
  border-radius: 20px;
  box-shadow: none;
}

.progressive-panel,
.focus-block,
.interview-disclosure,
.guide-major-section,
.guide-group,
.guide-term,
.guide-domain {
  overflow: clip;
}

.progressive-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.progressive-panel > summary,
.focus-block > summary,
.guide-major-section > summary,
.guide-group > summary,
.guide-term > summary,
.guide-domain > summary,
.interview-disclosure > summary {
  list-style: none;
  cursor: pointer;
}

.progressive-panel > summary::-webkit-details-marker,
.focus-block > summary::-webkit-details-marker,
.guide-major-section > summary::-webkit-details-marker,
.guide-group > summary::-webkit-details-marker,
.guide-term > summary::-webkit-details-marker,
.guide-domain > summary::-webkit-details-marker,
.interview-disclosure > summary::-webkit-details-marker {
  display: none;
}

.progressive-panel > summary {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

.progressive-panel > summary > span:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.progressive-panel > summary strong {
  color: var(--text-strong);
  font-size: 13px;
}

.progressive-panel > summary small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 450;
}

.progressive-panel > summary > svg,
.focus-block-chevron,
.guide-major-section > summary > svg,
.guide-group > summary > svg,
.guide-term > summary > svg,
.guide-domain > summary > svg,
.interview-disclosure > summary > svg {
  color: var(--text-faint);
  transition: transform 180ms var(--ease);
}

.progressive-panel[open] > summary > svg,
.focus-block[open] .focus-block-chevron,
.guide-major-section[open] > summary > svg,
.guide-group[open] > summary > svg,
.guide-term[open] > summary > svg,
.guide-domain[open] > summary > svg,
.interview-disclosure[open] > summary > svg {
  transform: rotate(180deg);
}

.progressive-panel-body {
  padding: 0 18px 20px;
  border-top: 1px solid var(--border);
}

.summary-meta {
  color: var(--text-faint);
  font-size: 11px;
  white-space: nowrap;
}

.home-overview {
  margin-top: 2px;
}

.home-overview .progressive-panel-body {
  padding-top: 18px;
}

.compact-stats {
  margin-bottom: 18px;
}

.quiet-dashboard-grid {
  margin-top: 0;
}

.simple-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 2px 14px;
}

.simple-section-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 690;
  letter-spacing: -.025em;
}

.simple-section-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.atlas-search-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.atlas-search-row .search-field {
  flex: 1;
  max-width: none;
}

.atlas-options {
  position: relative;
}

.atlas-options > summary {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
}

.atlas-options > summary::-webkit-details-marker { display: none; }

.atlas-options-menu {
  position: absolute;
  z-index: 15;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.atlas-options-menu > span {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.simplified-domain-grid .domain-card {
  min-height: 176px;
  padding: 18px;
  box-shadow: none;
}

.simplified-domain-grid .domain-card-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.5;
}

.atlas-library,
.domain-about,
.domain-principles,
.spirit-disclosure {
  margin-top: 18px;
}

.inline-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 0;
}

.domain-focus-header {
  min-height: 144px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 25px 27px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--domain-color) 14%, transparent), transparent 34%),
    var(--surface);
}

.domain-focus-header .domain-hero-icon {
  width: 64px;
  height: 64px;
  color: var(--domain-color);
}

.domain-focus-header h2 {
  margin: 4px 0 7px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -.035em;
}

.domain-focus-header p {
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.domain-full-description {
  margin: 16px 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.compact-domain-metrics {
  margin: 0;
}

.quiet-question-bank {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.quiet-question-bank .question-group + .question-group {
  border-top: 1px solid var(--border);
}

/* Focused principle editor */

.principle-focus-shell {
  width: min(920px, calc(100% - 52px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.principle-focus-header {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 16px;
  border: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--domain-color) 13%, transparent), transparent 34%),
    var(--surface);
}

.principle-focus-main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
}

.principle-focus-header .principle-domain-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--domain-color);
  background: color-mix(in srgb, var(--domain-color) 11%, var(--surface-2));
}

.principle-focus-copy {
  min-width: 0;
}

.principle-focus-copy .principle-title-input {
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.principle-focus-copy .principle-title-input:focus {
  box-shadow: none;
}

.principle-context-line,
.principle-progress-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 10px;
}

.principle-focus-badges {
  display: flex;
  align-items: center;
  gap: 7px;
}

.principle-progress-line {
  height: 3px;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--surface-3);
}

.principle-progress-line > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--domain-color);
  transition: width 220ms var(--ease);
}

.principle-progress-caption {
  justify-content: space-between;
  margin-top: 7px;
}

.chapter-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.chapter-tab {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.chapter-tab:last-child { border-right: 0; }

.chapter-tab:hover { background: var(--surface-hover); color: var(--text); }

.chapter-tab.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.chapter-state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: .5;
}

.chapter-state-dot.started { background: var(--warning); opacity: .9; }
.chapter-state-dot.complete { background: var(--success); opacity: 1; }

.chapter-canvas {
  padding-top: 18px;
}

.chapter-stack {
  display: grid;
  gap: 11px;
}

.chapter-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 4px 15px;
}

.chapter-intro-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.chapter-intro h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -.03em;
}

.chapter-intro p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.focus-block {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

.focus-block[open] {
  border-color: color-mix(in srgb, var(--domain-color) 26%, var(--border));
}

.focus-block.attention {
  border-color: color-mix(in srgb, var(--warning) 32%, var(--border));
}

.focus-block > summary {
  min-height: 67px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}

.focus-block-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--domain-color, var(--accent-strong));
}

.focus-block-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.focus-block-copy strong {
  color: var(--text-strong);
  font-size: 13px;
}

.focus-block-copy small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-block-body {
  padding: 0 17px 19px;
  border-top: 1px solid var(--border);
}

.focus-block-body > .form-stack,
.focus-block-body > .callout:first-child {
  margin-top: 17px;
}

.compact-callout {
  padding: 11px 13px;
  font-size: 11px;
  line-height: 1.55;
}

.chapter-prompt-list {
  display: grid;
  gap: 7px;
  padding-top: 15px;
}

.chapter-prompt {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.mini-heading {
  margin-top: 13px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.focus-metadata-grid {
  margin-top: 16px;
}

.type-explanation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
}

.type-explanation strong { color: var(--text-strong); }

.focus-roles {
  margin-top: 16px;
}

.card-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
}

.card-status-row > div {
  display: grid;
  gap: 3px;
}

.card-status-row strong { color: var(--text-strong); font-size: 12px; }
.card-status-row small { color: var(--text-muted); font-size: 10px; }

.focus-chat-card {
  margin-top: 0;
}

.manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 16px;
}

/* Guided interview */

.interview-home {
  padding-top: 34px;
}

.interview-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 18px;
  max-width: 780px;
}

.interview-intro h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: -.035em;
}

.interview-intro p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.interview-card {
  position: relative;
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(24px, 4.5vw, 42px);
  border: 1px solid color-mix(in srgb, var(--domain-color) 28%, var(--border));
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 2%, color-mix(in srgb, var(--domain-color) 15%, transparent), transparent 30%),
    var(--surface);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .16);
}

.interview-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.interview-domain-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: color-mix(in srgb, var(--domain-color) 12%, var(--surface-2));
  color: var(--domain-color);
}

.interview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.interview-tags span {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 650;
}

.interview-question {
  margin: 34px 0 24px;
}

.interview-question-label,
.interview-reminder-label,
.finish-summary-label {
  display: block;
  margin-bottom: 10px;
  color: var(--domain-color, var(--accent-strong));
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.interview-question h3 {
  max-width: 700px;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 37px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.16;
}

.interview-question p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.interview-type-note {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-left: 2px solid var(--domain-color);
  background: color-mix(in srgb, var(--domain-color) 6%, var(--surface-2));
  color: var(--text-muted);
  font-size: 11px;
}

.interview-type-note strong { color: var(--text-strong); }

.interview-card-actions {
  display: grid;
  gap: 12px;
  margin-top: 27px;
}

.interview-start {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.interview-secondary-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.interview-progress-panel {
  max-width: 780px;
  margin: 15px auto 0;
}

.interview-overall-track,
.interview-progress-track {
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-3);
}

.interview-overall-track { margin: 18px 0; }

.interview-overall-track span,
.interview-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.interview-progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.interview-progress-grid > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
}

.interview-progress-grid strong {
  color: var(--text-strong);
  font-size: 20px;
}

.interview-progress-grid span,
.quiet-note {
  color: var(--text-muted);
  font-size: 10px;
}

.interview-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.quiet-note {
  margin: 13px 0 0;
  line-height: 1.55;
}

.interview-complete {
  max-width: 650px;
  margin: 70px auto 0;
  padding: 45px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  text-align: center;
}

.interview-complete-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: var(--success-soft);
  color: var(--success);
}

.interview-complete h2 { margin: 0; color: var(--text-strong); font-size: 26px; }
.interview-complete p { color: var(--text-muted); line-height: 1.6; }

.interview-wizard-shell {
  width: min(850px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 90px;
}

.interview-context-bar {
  display: grid;
  grid-template-columns: 38px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}

.interview-context-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--domain-color) 11%, var(--surface-2));
  color: var(--domain-color);
}

.interview-context-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.interview-context-copy strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interview-context-copy small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interview-prompt-reminder {
  margin: 12px 0;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: color-mix(in srgb, var(--domain-color) 5%, var(--surface));
}

.interview-prompt-reminder .interview-reminder-label { margin-bottom: 5px; }
.interview-prompt-reminder p { margin: 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; }

.interview-compact-step {
  display: none;
}

.interview-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin: 16px 0 8px;
}

.interview-step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  color: var(--text-faint);
}

.interview-step-marker > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font-size: 9px;
  font-weight: 750;
}

.interview-step-marker small { font-size: 9px; font-weight: 650; }
.interview-step-marker.active { color: var(--accent-strong); }
.interview-step-marker.active > span { border-color: var(--accent-border); background: var(--accent-soft); }
.interview-step-marker.done { color: var(--success); }
.interview-step-marker.done > span { border-color: color-mix(in srgb, var(--success) 35%, var(--border)); background: var(--success-soft); }

.interview-progress-track {
  margin-bottom: 14px;
}

.interview-wizard-page {
  min-height: 520px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.interview-step-content {
  display: grid;
  gap: 17px;
}

.step-question {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin-bottom: 3px;
}

.step-question > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--domain-color) 11%, var(--surface-2));
  color: var(--domain-color);
  font-size: 12px;
  font-weight: 800;
}

.step-question h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -.03em;
}

.step-question p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.interview-disclosure {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-2);
}

.interview-disclosure > summary {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}

.interview-disclosure > summary > span {
  display: grid;
  gap: 3px;
}

.interview-disclosure > summary strong { color: var(--text-strong); font-size: 12px; }
.interview-disclosure > summary small { color: var(--text-muted); font-size: 10px; font-weight: 450; }

.interview-disclosure-body {
  padding: 0 14px 16px;
  border-top: 1px solid var(--border);
}

.interview-disclosure-body > .form-stack,
.interview-disclosure-body > .form-field,
.interview-disclosure-body > .scale-block {
  margin-top: 15px;
}

.interview-scale {
  margin-top: 0;
}

.finish-summary {
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-2);
}

.finish-summary blockquote {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.finish-form {
  margin-top: 0;
}

.approval-status-choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  cursor: pointer;
}

.approval-status-choice input { margin-top: 2px; accent-color: var(--accent); }
.approval-status-choice span { display: grid; gap: 3px; }
.approval-status-choice strong { color: var(--text-strong); font-size: 12px; }
.approval-status-choice small { color: var(--text-muted); font-size: 10px; line-height: 1.45; }

.interview-wizard-footer {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .1);
}

.interview-footer-secondary,
.interview-footer-primary {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* Guide */

.guide-view {
  display: grid;
  gap: 16px;
}

.guide-hero {
  padding: clamp(26px, 4.5vw, 44px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 0%, var(--accent-soft), transparent 30%),
    var(--surface);
}

.guide-hero h2 {
  font-size: clamp(30px, 4vw, 43px);
}

.guide-search {
  max-width: 650px;
  min-height: 48px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  padding: 0 9px 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--input);
  color: var(--text-faint);
}

.guide-search:focus-within {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.guide-search input {
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.guide-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.guide-flow > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 3px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.guide-flow > div > span {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
}

.guide-flow strong { color: var(--text-strong); font-size: 11px; }
.guide-flow small { color: var(--text-muted); font-size: 9px; line-height: 1.4; }

.guide-sections,
.guide-glossary,
.guide-domain-list {
  display: grid;
  gap: 9px;
}

.guide-major-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.guide-major-section > summary {
  min-height: 70px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.guide-major-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.guide-major-section > summary > span:nth-child(2),
.guide-group > summary > span,
.guide-term > summary > span,
.guide-domain > summary > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.guide-major-section > summary strong,
.guide-group > summary strong,
.guide-term > summary strong,
.guide-domain > summary strong {
  color: var(--text-strong);
  font-size: 13px;
}

.guide-major-section > summary small,
.guide-group > summary small,
.guide-term > summary small,
.guide-domain > summary small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 450;
  line-height: 1.45;
}

.guide-major-body {
  padding: 0 16px 17px;
  border-top: 1px solid var(--border);
}

.guide-major-body > * { margin-top: 14px; }

.guide-group {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

.guide-group > summary {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
}

.guide-group-body {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
  border-top: 1px solid var(--border);
}

.guide-term {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.guide-term:first-child { margin-top: 9px; }

.guide-term > summary {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.guide-term > summary strong { font-size: 12px; }
.guide-term > summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.guide-term > p {
  margin: 0;
  padding: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.65;
}

.guide-domain {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

.guide-domain > summary {
  min-height: 62px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
}

.guide-domain-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface);
}

.guide-domain-body {
  padding: 0 13px 14px;
  border-top: 1px solid var(--border);
}

.guide-domain-body > p {
  margin: 13px 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}

.guide-subcategory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.guide-subcategory-list > div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.guide-subcategory-list strong { color: var(--text-strong); font-size: 10px; }
.guide-subcategory-list span { color: var(--text-muted); font-size: 9px; line-height: 1.45; }

.guide-scale-section + .guide-scale-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.guide-scale-section h3 { margin: 0; color: var(--text-strong); font-size: 15px; }
.guide-scale-section > p { color: var(--text-muted); font-size: 11px; line-height: 1.6; }

.guide-scale-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.guide-scale-list > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
}

.guide-scale-list > div > strong {
  width: 38px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
}

.guide-scale-list.ideal-list > div > strong {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.guide-scale-list > div > span {
  display: grid;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

.guide-scale-list b { color: var(--text-strong); font-size: 11px; }

.guide-safeguards {
  display: grid;
  gap: 8px;
}

.guide-safeguards > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.guide-safeguards svg { color: var(--success); }

.guide-search-results {
  display: grid;
  gap: 10px;
}

.guide-empty {
  padding: 50px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  text-align: center;
  color: var(--text-muted);
}

.guide-empty svg { color: var(--text-faint); }
.guide-empty h3 { color: var(--text-strong); }

@media (max-width: 1120px) {
  .simplified-domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calm-home, .atlas-calm, .domain-calm, .guide-view, .interview-home { width: min(100% - 38px, 1020px); }
}

@media (max-width: 760px) {
  .header-tool-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface-2);
  }

  .calm-home,
  .atlas-calm,
  .domain-calm,
  .guide-view,
  .interview-home,
  .principle-focus-shell,
  .interview-wizard-shell {
    width: 100%;
    margin: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  .calm-home,
  .guide-view {
    gap: 12px;
  }

  .calm-hero {
    min-height: 0;
    padding: 27px 21px;
    border-radius: 22px;
  }

  .calm-hero::after { display: none; }

  .calm-hero h2,
  .guide-hero h2 {
    font-size: 29px;
    line-height: 1.08;
  }

  .calm-hero p,
  .guide-hero > p {
    margin-top: 13px;
    font-size: 13px;
  }

  .calm-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 21px;
  }

  .calm-hero-actions > button { width: 100%; justify-content: center; min-height: 46px; }

  .path-grid { grid-template-columns: 1fr; gap: 8px; }
  .path-card { min-height: 70px; border-radius: 16px; }

  .progressive-panel > summary {
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr) 20px;
    padding: 12px 14px;
  }

  .progressive-panel > summary .summary-meta { display: none; }
  .progressive-panel-body { padding: 0 13px 15px; }

  .simple-section-heading { margin-top: 20px; }
  .simple-section-heading h2 { font-size: 19px; }

  .atlas-search-row { position: relative; }
  .atlas-options-menu { position: fixed; top: auto; right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 14px; min-width: 0; }
  .simplified-domain-grid { grid-template-columns: 1fr; gap: 9px; }
  .simplified-domain-grid .domain-card { min-height: 0; padding: 16px; }
  .inline-panel-actions { flex-direction: column; }
  .inline-panel-actions > button { width: 100%; }

  .domain-focus-header {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
  }

  .domain-focus-header .domain-hero-icon { width: 50px; height: 50px; }
  .domain-focus-header h2 { font-size: 24px; }
  .domain-focus-header p { font-size: 11px; }
  .domain-focus-header > .primary-action { grid-column: 1 / -1; width: 100%; justify-content: center; }

  .question-group-button {
    grid-template-columns: 30px minmax(0, 1fr) 24px;
    padding: 13px 11px;
  }

  .question-group-count { display: none; }
  .question-group-description { -webkit-line-clamp: 2; }

  .principle-focus-shell { padding-top: 12px; padding-bottom: 40px; }

  .principle-focus-header {
    padding: 15px;
    border-radius: 19px 19px 0 0;
  }

  .principle-focus-main {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .principle-focus-header .principle-domain-mark { width: 40px; height: 40px; }
  .principle-focus-copy .principle-title-input { font-size: 20px; }
  .principle-context-line { font-size: 9px; }
  .principle-focus-badges { grid-column: 1 / -1; margin-left: 50px; justify-content: flex-start; }

  .chapter-tabs {
    position: sticky;
    top: 0;
    overflow-x: auto;
    display: flex;
    scrollbar-width: none;
  }

  .chapter-tabs::-webkit-scrollbar { display: none; }

  .chapter-tab {
    flex: 1 0 auto;
    min-width: 94px;
    min-height: 48px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .chapter-canvas { padding-top: 12px; }
  .chapter-intro { padding: 5px 2px 10px; }
  .chapter-intro h2 { font-size: 21px; }
  .chapter-intro p { font-size: 11px; }

  .focus-block { border-radius: 16px; }
  .focus-block > summary {
    min-height: 62px;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 11px 12px;
  }
  .focus-block-icon { width: 36px; height: 36px; }
  .focus-block-copy strong { font-size: 12px; }
  .focus-block-copy small { font-size: 10px; }
  .focus-block-body { padding: 0 13px 15px; }
  .focus-block-body > .form-stack, .focus-block-body > .callout:first-child { margin-top: 14px; }
  .focus-metadata-grid { grid-template-columns: 1fr; }
  .type-explanation { grid-template-columns: 1fr auto; }
  .type-explanation > span { grid-column: 1 / -1; }
  .card-status-row { align-items: stretch; flex-direction: column; }
  .card-status-row > button { width: 100%; justify-content: center; }

  .interview-home { padding-top: 18px; }
  .interview-intro { align-items: flex-start; flex-direction: column; margin-bottom: 12px; }
  .interview-intro h2 { font-size: 23px; }
  .interview-intro p { font-size: 11px; }

  .interview-card {
    padding: 21px 18px;
    border-radius: 22px;
    box-shadow: none;
  }

  .interview-domain-icon { width: 44px; height: 44px; }
  .interview-tags { gap: 4px; }
  .interview-tags span { padding: 4px 7px; font-size: 9px; }
  .interview-question { margin: 25px 0 19px; }
  .interview-question h3 { font-size: 26px; line-height: 1.18; }
  .interview-question p { margin-top: 12px; font-size: 12px; }
  .interview-secondary-actions { justify-content: space-around; gap: 8px; }

  .interview-progress-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interview-control-row { flex-direction: column; }
  .interview-control-row > button { width: 100%; justify-content: center; }

  .interview-wizard-shell { padding-top: 10px; padding-bottom: 28px; }
  .interview-context-bar { grid-template-columns: 36px 36px minmax(0, 1fr); padding: 8px; }
  .interview-context-bar > .text-button { display: none; }
  .interview-context-icon { width: 36px; height: 36px; }
  .interview-prompt-reminder { padding: 11px 12px; }

  .interview-compact-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 2px 7px;
    color: var(--text-muted);
    font-size: 10px;
  }
  .interview-compact-step strong {
    color: var(--text-strong);
    font-size: 11px;
  }
  .interview-stepper { display: none; }

  .interview-wizard-page {
    min-height: 0;
    padding: 18px 14px;
    border-radius: 19px;
  }

  .step-question { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .step-question > span { width: 34px; height: 34px; }
  .step-question h2 { font-size: 21px; }
  .step-question p { font-size: 10px; }

  .interview-disclosure > summary { min-height: 54px; padding: 10px 12px; }
  .interview-disclosure-body { padding: 0 11px 13px; }
  .interview-scale .scale-buttons { display: flex; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .interview-scale .scale-buttons::-webkit-scrollbar { display: none; }
  .interview-scale .scale-button { flex: 0 0 108px; }

  .interview-wizard-footer {
    bottom: 0;
    margin-right: -2px;
    margin-left: -2px;
    padding: 9px;
    border-radius: 15px;
  }
  .interview-wizard-footer .primary-action,
  .interview-wizard-footer .secondary-action { min-height: 43px; }
  .interview-footer-primary { margin-left: auto; }
  .interview-footer-secondary .text-button { font-size: 10px; }

  .interview-complete { margin-top: 28px; padding: 28px 19px; border-radius: 22px; }
  .interview-complete h2 { font-size: 22px; }

  .guide-hero { padding: 23px 19px; border-radius: 21px; }
  .guide-search { margin-top: 19px; }
  .guide-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .guide-major-section { border-radius: 16px; }
  .guide-major-section > summary { min-height: 64px; grid-template-columns: 37px minmax(0, 1fr) 18px; padding: 12px; }
  .guide-major-icon { width: 37px; height: 37px; }
  .guide-major-body { padding: 0 11px 13px; }
  .guide-subcategory-list { grid-template-columns: 1fr; }
  .guide-term > summary small { white-space: normal; }

  .manage-actions { flex-direction: column; }
  .manage-actions > button { width: 100%; justify-content: center; }
}

@media (max-width: 390px) {
  .chapter-tab { min-width: 86px; padding-right: 8px; padding-left: 8px; }
  .principle-focus-badges { margin-left: 0; }
  .guide-flow { grid-template-columns: 1fr; }
  .interview-wizard-footer .secondary-action { padding-right: 10px; padding-left: 10px; }
  .interview-wizard-footer .primary-action { padding-right: 12px; padding-left: 12px; }
}

/* v0.4.0 calm-layout refinements */
.compact-path-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: end;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

.guide-search-panel .guide-kicker {
  margin-bottom: 8px;
}

.guide-search-panel h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 680;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.guide-search-panel p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.guide-search-panel .guide-search {
  max-width: none;
  margin-top: 0;
}

.guide-flow-panel .progressive-panel-body {
  padding: 12px;
}

.interview-prompt-reminder details {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
}

.interview-prompt-reminder details summary {
  width: fit-content;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 700;
}

.interview-prompt-reminder details span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .compact-path-grid {
    grid-template-columns: 1fr;
  }

  .guide-search-panel {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 18px;
    border-radius: 19px;
  }

  .guide-search-panel h2 {
    font-size: 25px;
  }

  .guide-search-panel .guide-search {
    min-height: 46px;
  }
}
