:root {
  --bg: #f6efe6;
  --surface: #fffdf9;
  --surface-2: #f3ece1;
  --ink: #17202a;
  --muted: #5a6675;
  --line: rgba(23, 32, 42, 0.12);
  --accent: #ea580c;
  --accent-2: #0d9488;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(23, 32, 42, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Cascadia Mono", monospace;
}

body[data-time="dawn"] {
  --sky-top: #1e2952;
  --sky-mid: #d96b43;
  --sky-bot: #fbd38d;
  --land-a: #76c893;
  --land-b: #4ea876;
  --water-a: #38bdf8;
  --water-b: #0369a1;
}
body[data-time="day"] {
  --bg: #eef6fb;
  --surface: #ffffff;
  --surface-2: #e6f0f7;
  --sky-top: #0284c7;
  --sky-mid: #38bdf8;
  --sky-bot: #e0f2fe;
  --land-a: #86d99b;
  --land-b: #52b778;
  --water-a: #38bdf8;
  --water-b: #0284c7;
}
body[data-time="night"] {
  --bg: #0a1020;
  --surface: #121b30;
  --surface-2: #1a2640;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --sky-top: #020617;
  --sky-mid: #0f172a;
  --sky-bot: #1e293b;
  --land-a: #1e4635;
  --land-b: #122e24;
  --water-a: #0c2b4a;
  --water-b: #061729;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}
button, input, select, textarea {
  font-family: inherit;
  margin: 0;
}
button {
  -webkit-appearance: none;
  appearance: none;
}

/* APP SHELL WITH SIDEBAR */
.app-shell {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: 100vh;
}

/* LEFT SIDEBAR */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
  z-index: 40;
  overflow-y: auto;
}
.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.brand-crest {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.25);
}
.brand-name { font-weight: 800; font-size: 17.5px; letter-spacing: -0.02em; }
.brand-sub { font-size: 14px; color: var(--muted); }
.sb-close {
  display: none;
  margin-left: auto;
  border: 0;
  background: var(--surface-2);
  color: var(--ink);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 19.5px;
  cursor: pointer;
}

.sb-nav {
  display: grid;
  gap: 3px;
}
.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16.5px;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.sb-item svg { opacity: 0.72; flex-shrink: 0; }
.sb-item:hover { background: var(--surface-2); }
.sb-item.active {
  background: rgba(234, 88, 12, 0.12);
  border-color: rgba(234, 88, 12, 0.28);
  color: var(--accent);
}
.sb-item.active svg { opacity: 1; }
.sb-item.is-locked { opacity: 0.65; }
.sb-badge {
  margin-left: auto;
  font-style: normal;
  font-size: 13.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}
.sb-item.active .sb-badge {
  background: var(--accent);
  color: #fff;
}
.sb-lock {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(234, 88, 12, 0.12);
  color: var(--accent);
}
.sb-lock.open {
  background: rgba(16, 185, 129, 0.16);
  color: var(--accent-2);
}
.sb-sep {
  height: 1px;
  background: var(--line);
  margin: 8px 6px;
}

.sb-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.sb-foot-lbl {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.time-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface-2);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.ts-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 5px 4px;
  border-radius: 8px;
  cursor: pointer;
}
.ts-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.build-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(234, 88, 12, 0.35);
  background: rgba(234, 88, 12, 0.1);
  color: var(--accent);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.build-toggle.is-unlocked {
  background: #10b981;
  color: #fff;
  border-color: transparent;
}
.bt-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.sb-priv {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* MOBILE BAR */
.mob-bar { display: none; }
.sb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 35;
}
.sb-backdrop[hidden] { display: none; }

/* MAIN CONTENT */
.city-main {
  padding: 16px 22px 44px;
  display: grid;
  gap: 20px;
  align-content: start;
  max-width: 1420px;
  width: 100%;
  margin: 0 auto;
}

/* CITY STAGE */
.city-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.stage-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.stage-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  background: rgba(13, 148, 136, 0.12);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.stage-greeting h1 { margin: 0 0 4px; font-size: clamp(20px, 2.3vw, 27px); letter-spacing: -0.025em; }
.stage-greeting p { margin: 0; max-width: 670px; font-size: 16.5px; color: var(--muted); }
.stage-metrics { display: flex; gap: 10px; flex-shrink: 0; }
.sm-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 13px;
  min-width: 152px;
}
.sm-k { display: block; font-size: 14px; color: var(--muted); }
.sm-v { display: block; font-size: 17.5px; font-weight: 800; margin-top: 2px; }
.sm-v.sm-priv { font-size: 16.5px; color: var(--accent-2); }
.sm-hint { font-size: 14px; color: var(--muted); }
.sm-bar { height: 6px; border-radius: 999px; background: rgba(148, 163, 184, 0.25); margin-top: 6px; overflow: hidden; }
.sm-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea580c, #10b981);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(.2,.8,.2,1);
}

/* SVG CITY */
.svg-wrap { position: relative; width: 100%; overflow: hidden; line-height: 0; }
#citySvg { width: 100%; height: auto; display: block; user-select: none; }
.sky-top { stop-color: var(--sky-top); transition: stop-color 0.4s; }
.sky-mid { stop-color: var(--sky-mid); transition: stop-color 0.4s; }
.sky-bot { stop-color: var(--sky-bot); transition: stop-color 0.4s; }
.land-a { stop-color: var(--land-a); }
.land-b { stop-color: var(--land-b); }
.water-a { stop-color: var(--water-a); }
.water-b { stop-color: var(--water-b); }

.bldg-hit { cursor: pointer; transition: filter 0.2s ease; }
.bldg-hit:hover { filter: brightness(1.07); }
.bldg-hit.is-selected { filter: drop-shadow(0 0 11px rgba(234, 88, 12, 0.72)); }

.map-label { cursor: pointer; }
.map-label rect {
  fill: rgba(15, 23, 42, 0.88);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
  transition: fill 0.2s;
}
.map-label:hover rect, .map-label.selected rect { fill: #ea580c; }
.map-label.lbl-active rect { fill: #0d9488; }
.map-label.lbl-locked rect { fill: #92400e; }
.map-label.lbl-open rect { fill: #15803d; }
.map-label text { fill: #f8fafc; font-size: 14px; font-weight: 700; font-family: var(--font); }

.physics-chip {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.physics-chip b { color: #fde047; font-weight: 700; }

.city-toast {
  position: absolute;
  bottom: 14px;
  right: 16px;
  background: #0f172a;
  color: #fff;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 10;
}

/* ==================== PROFILE SCALES (5-CARD AURACITY ADAPTATION) ==================== */
.scales-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px 20px;
  box-shadow: var(--shadow);
}
.ss-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}
.ss-title-wrap h2 {
  margin: 0;
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.ss-title-wrap h2 span { color: var(--accent); }
.ss-title-wrap p {
  margin: 2px 0 0;
  font-size: 15.5px;
  color: var(--muted);
}
.ss-link {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.ss-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.scale-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.scale-cards-grid.show-all {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 13px;
  border: 1.5px solid var(--card-border, var(--line));
  background: var(--card-bg, var(--surface-2));
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sc-card:hover, .sc-card.is-selected {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  border-color: var(--card-accent, var(--accent));
}

/* Pastel Architectural Palettes matching the 7 City Buildings */
.sc-sky   { --card-bg: #e8f5fe; --card-border: rgba(2, 132, 199, 0.3);  --card-accent: #0284c7; }
.sc-amber { --card-bg: #fef6e4; --card-border: rgba(217, 119, 6, 0.32); --card-accent: #d97706; }
.sc-rose  { --card-bg: #feeef2; --card-border: rgba(225, 29, 72, 0.28); --card-accent: #e11d48; }
.sc-mint  { --card-bg: #e8faf3; --card-border: rgba(16, 185, 129, 0.32);--card-accent: #0d9488; }
.sc-violet{ --card-bg: #f3eefe; --card-border: rgba(124, 58, 237, 0.3); --card-accent: #7c3aed; }
.sc-orange{ --card-bg: #fff1e6; --card-border: rgba(234, 88, 12, 0.3);  --card-accent: #ea580c; }
.sc-slate { --card-bg: #eef2f6; --card-border: rgba(71, 85, 105, 0.28); --card-accent: #475569; }

body[data-time="night"] .sc-sky   { --card-bg: rgba(2, 132, 199, 0.16); }
body[data-time="night"] .sc-amber { --card-bg: rgba(217, 119, 6, 0.16); }
body[data-time="night"] .sc-rose  { --card-bg: rgba(225, 29, 72, 0.16); }
body[data-time="night"] .sc-mint  { --card-bg: rgba(16, 185, 129, 0.16); }
body[data-time="night"] .sc-violet{ --card-bg: rgba(124, 58, 237, 0.16); }
body[data-time="night"] .sc-orange{ --card-bg: rgba(234, 88, 12, 0.16); }
body[data-time="night"] .sc-slate { --card-bg: rgba(71, 85, 105, 0.2); }

.sc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.sc-num {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.sc-pct {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--card-accent);
  border: 1px solid var(--card-border);
}

/* Dotted blueprint window with circular icon */
.sc-blueprint {
  height: 70px;
  border-radius: 12px;
  border: 1.5px solid var(--card-border);
  background-color: var(--surface);
  background-image: radial-gradient(rgba(23, 32, 42, 0.16) 1px, transparent 1px);
  background-size: 10px 10px;
  display: grid;
  place-items: center;
  margin-bottom: 11px;
}
body[data-time="night"] .sc-blueprint {
  background-image: radial-gradient(rgba(241, 245, 249, 0.16) 1px, transparent 1px);
}
.sc-ic-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--card-accent);
  color: var(--card-accent);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.sc-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.sc-desc {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.38;
  flex: 1;
}

/* 10-segment architectural progress bar */
.sc-segs {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin-bottom: 8px;
}
.sc-seg {
  height: 9px;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--card-border);
}
.sc-seg.on {
  background: var(--card-accent);
  border-color: transparent;
}

.sc-conf {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.sc-dots { display: inline-flex; gap: 3px; }
.sc-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.2px solid var(--card-accent);
  display: inline-block;
}
.sc-dots i.on { background: var(--card-accent); }

/* 5th card: Locked / Under Construction Envelope */
.sc-locked {
  border: 1.5px dashed rgba(234, 88, 12, 0.45);
  background: repeating-linear-gradient(
    -45deg,
    var(--surface-2) 0px,
    var(--surface-2) 10px,
    var(--surface) 10px,
    var(--surface) 20px
  );
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px 14px;
}
.sc-qmark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px dashed var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}
.sc-locked h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.sc-locked p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.4;
}

/* BOTTOM DESK */
.city-desk { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; align-items: start; }
.desk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.card-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.ctab {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 15.5px; font-weight: 700;
  padding: 7px 11px; border-radius: 10px; cursor: pointer;
}
.ctab span { font-weight: 600; font-size: 14px; opacity: 0.7; margin-left: 4px; }
.ctab.active { background: var(--accent); color: #fff; border-color: transparent; }

.tab-pane { display: none; }
.tab-pane.active { display: block; }
.pane-kicker { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 4px; }
.tab-pane h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.pane-desc { margin: 0 0 14px; font-size: 16.5px; color: var(--muted); }

.quest-list { display: grid; gap: 8px; }
.q-opt {
  display: flex; align-items: center; gap: 10px; text-align: left;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 16.5px; padding: 11px 13px; border-radius: 12px;
  cursor: pointer; transition: all 0.2s;
}
.q-opt:hover, .q-opt.chosen {
  border-color: var(--accent); background: rgba(234, 88, 12, 0.08); transform: translateX(3px);
}
.q-key {
  width: 26px; height: 26px; border-radius: 8px; background: var(--surface);
  border: 1px solid var(--line); display: grid; place-items: center;
  font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.q-tag { margin-left: auto; font-style: normal; font-size: 14.5px; font-weight: 700; color: var(--accent-2); white-space: nowrap; }

.trial-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.timer-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 5px 8px 5px 12px; border-radius: 999px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.timer-pill button {
  border: 0; background: var(--accent); color: #fff; font: inherit;
  font-size: 15px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.trial-input {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 16.5px;
  padding: 10px 12px; border-radius: 12px; resize: vertical; margin-bottom: 12px;
}
.feel-row span { display: block; font-size: 15px; color: var(--muted); margin-bottom: 7px; }
.feel-btns { display: flex; flex-wrap: wrap; gap: 7px; }
.feel-btn {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 15.5px; font-weight: 700;
  padding: 7px 12px; border-radius: 10px; cursor: pointer;
}
.feel-btn.hi { border-color: rgba(13, 148, 136, 0.4); color: var(--accent-2); }
.feel-btn:hover, .feel-btn.picked { background: var(--accent-2); color: #fff; border-color: transparent; }

.chat-feed { display: grid; gap: 8px; max-height: 185px; overflow-y: auto; margin-bottom: 10px; }
.msg { font-size: 16px; padding: 9px 12px; border-radius: 12px; }
.msg.bot { background: var(--surface-2); }
.msg.user { background: rgba(13, 148, 136, 0.14); }
.chat-form { display: flex; gap: 8px; }
.chat-form input {
  flex: 1; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 16px; padding: 9px 12px; border-radius: 10px;
}
.chat-form button {
  border: 0; background: var(--accent); color: #fff; font: inherit;
  font-size: 16px; font-weight: 700; padding: 9px 14px; border-radius: 10px; cursor: pointer;
}

.prof-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ps-btn {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 15.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.ps-btn.active { background: var(--ink); color: var(--surface); }
.prof-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 15px; font-size: 16px;
}
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.prof-warn {
  margin-top: 10px; padding: 8px 10px; border-radius: 10px;
  background: rgba(234, 88, 12, 0.1); color: var(--accent); font-size: 15.5px;
}

.hall-banner {
  background: var(--surface-2); border: 1px dashed rgba(234, 88, 12, 0.45);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 16px;
}
.hall-banner.unlocked {
  border-style: solid; border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
}
.hb-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.hb-kicker { font-size: 13.5px; font-weight: 800; letter-spacing: 0.05em; color: var(--muted); }
.hb-pill {
  font-size: 14px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: rgba(234, 88, 12, 0.15); color: var(--accent);
}
.hall-banner.unlocked .hb-pill { background: #10b981; color: #fff; }
.hall-banner h3 { margin: 0 0 4px; font-size: 17.5px; }
.hall-banner p { margin: 0; font-size: 15.5px; color: var(--muted); }
.dir-chips { display: grid; gap: 6px; margin-top: 8px; }
.dir-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 15.5px; }
.dir-chip strong { color: var(--accent-2); }

.stages-head { font-size: 15.5px; font-weight: 800; margin-bottom: 8px; }
.stages-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.st {
  font-size: 13.5px; text-align: center; padding: 7px 4px; border-radius: 10px;
  background: var(--surface-2); color: var(--muted); font-weight: 600;
}
.st span { display: block; font-weight: 800; font-size: 15px; }
.st.done { background: rgba(16, 185, 129, 0.16); color: var(--accent-2); }

/* RESPONSIVE */
@media (max-width: 1180px) {
  .scale-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 268px;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sb-close { display: grid; place-items: center; }
  .mob-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .mob-burger, .mob-unlock {
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 9px;
    cursor: pointer;
  }
  .mob-unlock { background: rgba(234, 88, 12, 0.12); color: var(--accent); border-color: rgba(234, 88, 12, 0.3); }
  .mob-title { font-weight: 800; font-size: 15.5px; }
  .mob-title span { color: var(--accent); font-weight: 600; }

  .stage-overlay-top { flex-direction: column; }
  .stage-metrics { width: 100%; }
  .sm-box { flex: 1; min-width: 0; }
  .city-desk { grid-template-columns: 1fr; }
  .scale-cards-grid, .scale-cards-grid.show-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .city-main { padding: 10px 10px 28px; gap: 14px; }
  .stage-overlay-top { padding: 13px 14px; }
  .physics-chip { display: none; }
  .ss-head { flex-direction: column; align-items: flex-start; }
  .scale-cards-grid, .scale-cards-grid.show-all { grid-template-columns: 1fr; }
  .prof-grid { grid-template-columns: 1fr; }
}

/* ==================== FULL 9-PAGE SITE STYLES (16 · AURACITY) ==================== */
.sb-brand { cursor: pointer; }
.view-stack { display: grid; gap: 20px; align-content: start; }
.view-stack[hidden] { display: none; }

.city-toast {
  position: fixed;
  bottom: 20px;
  right: 22px;
  z-index: 90;
}

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.pri-btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.18s;
}
.pri-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(234, 88, 12, 0.28); }
.sec-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s;
}
.sec-btn:hover, .sec-btn.active {
  border-color: var(--accent);
  background: rgba(234, 88, 12, 0.1);
  color: var(--accent);
}

/* Page Banner Header for all sub-pages */
.page-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.page-banner h1 { margin: 4px 0 4px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.page-banner p { margin: 0; font-size: 16.5px; color: var(--muted); max-width: 680px; }

/* Chat Page */
.chat-shell { max-width: 860px; }
.chat-log-full {
  display: grid;
  gap: 10px;
  min-height: 240px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 4px;
}
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.c-chip {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.c-chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(234, 88, 12, 0.08); }

/* Tasks Grid */
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.task-tile {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.task-tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.task-tile h3 { margin: 0; font-size: 17.5px; }
.task-tile p { margin: 0; font-size: 16px; color: var(--muted); }
.t-meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 800; }
.t-pill { padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.t-pill.done { background: rgba(16, 185, 129, 0.16); color: var(--accent-2); }
.t-pill.rec { background: rgba(234, 88, 12, 0.14); color: var(--accent); }

/* Directions & Locked Scaffolding */
.locked-panel {
  text-align: center;
  padding: 36px 24px;
  border: 1.5px dashed rgba(234, 88, 12, 0.45);
  border-radius: 22px;
  background: repeating-linear-gradient(
    -45deg,
    var(--surface-2) 0px,
    var(--surface-2) 12px,
    var(--surface) 12px,
    var(--surface) 24px
  );
}
.locked-panel h2 { margin: 10px 0 8px; font-size: 22px; }
.locked-panel p { margin: 0 auto 16px; max-width: 540px; font-size: 15.5px; color: var(--muted); }
.locked-prog { max-width: 360px; margin: 0 auto 14px; }

.dir-list { display: grid; gap: 14px; }
.dir-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.dir-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.dir-rank {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(234, 88, 12, 0.12); color: var(--accent);
  font-weight: 900; font-size: 17.5px; display: grid; place-items: center; flex-shrink: 0;
}
.dir-fit { margin-left: auto; font-size: 22px; font-weight: 900; color: var(--accent-2); }
.dir-why { margin: 8px 0 12px; font-size: 16.5px; color: var(--muted); }
.dir-profs { display: flex; flex-wrap: wrap; gap: 7px; }

/* Map of 19 Professions */
.map-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.prof-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.p-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 15px 17px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  transition: transform 0.2s, border-color 0.2s;
}
.p-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.p-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; color: var(--accent-2); }
.p-card h3 { margin: 0; font-size: 17px; }
.p-card p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* Profile Extra Grids */
.profile-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.axis-item { margin-bottom: 12px; }
.axis-lbls { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.axis-line { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); }
.axis-pin {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Compare Page */
.cmp-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp-selects select {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 15.5px; font-weight: 700;
  padding: 11px 14px; border-radius: 12px;
}
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmp-col {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow);
  display: grid; gap: 10px;
}
.cmp-row { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 16px; }
.cmp-row small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 2px; }

/* Slide-over Profession Passport Sheet */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.48); z-index: 60;
}
.sheet-backdrop[hidden] { display: none; }
.prof-sheet {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 94vw);
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.22);
  z-index: 70; padding: 22px; overflow-y: auto; display: grid; gap: 14px; align-content: start;
}
.prof-sheet[hidden] { display: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-close {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  width: 34px; height: 34px; border-radius: 10px; font-size: 20px; cursor: pointer;
}

@media (max-width: 1020px) {
  .task-grid, .prof-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-two, .cmp-grid, .cmp-selects { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .task-grid, .prof-cards { grid-template-columns: 1fr; }
}

/* ==================== 4-COLUMN INTERACTIVE CAREER TREE (ORIGINAL MAP IN AURACITY STYLE) ==================== */
.city-tree {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.tree-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  min-width: 0;
}
.tree-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}
.tree-col-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.tree-step-num {
  font-size: 13.5px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.tree-node {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.28;
  padding: 9px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.tree-node > span {
  min-width: 0;
  overflow-wrap: break-word;
}
.tree-node:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}
.tree-node.on {
  background: rgba(234, 88, 12, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.tree-node.dim {
  opacity: 0.42;
}
.tree-node.dim:hover { opacity: 0.85; }
.tree-ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent-2);
}
.tree-node.on .tree-ico {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
.fit-mini {
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.tree-node.on .fit-mini {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.tree-leaf {
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.tree-empty {
  margin: 6px 0;
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  padding: 20px 10px;
  border-radius: 12px;
  background: var(--surface-2);
}

/* Rich 3-tier Salary & Checklist inside Sheet */
.money-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.money-3 > div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
}
.money-3 small { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 2px; }
.money-3 b { font-size: 16px; color: var(--ink); }

.plan-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 16px;
  cursor: pointer;
}
.plan-check input { margin-top: 3px; accent-color: var(--accent); }
.plan-check.done span { text-decoration: line-through; opacity: 0.65; }

@media (max-width: 1120px) {
  .city-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .city-tree { grid-template-columns: 1fr; }
  .money-3 { grid-template-columns: 1fr; }
}

/* ==================== ORIGINAL LOGO, ICONS & PROFESSION SHEET (MATCHING ORIGINAL AURAMIND) ==================== */
:root {
  --logo-spiral: #333333;
  --logo-dot: #1b0c35;
  --art-line: #2c2180;
  --art-v1: #ddd5ff;
  --art-v2: #a48fff;
  --art-t: #6fdccd;
  --art-o: #ffb65c;
  --art-o2: #ee8a2c;
  --art-w: #ffffff;
}
body[data-time="night"] {
  --logo-spiral: #eeecf8;
  --logo-dot: #f59e0b;
  --art-line: #f1edff;
  --art-v1: #4e3eb0;
  --art-v2: #7d68f4;
  --art-t: #1fae9b;
  --art-o: #ee9338;
  --art-o2: #ffb866;
  --art-w: #e6e0fb;
}

.brand-logo {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-block;
}
.brand-logo i {
  position: absolute;
  inset: 0;
  background: var(--logo-spiral);
  -webkit-mask: url("logo-spiral.png") center / contain no-repeat;
  mask: url("logo-spiral.png") center / contain no-repeat;
}
.brand-logo i + i {
  background: var(--logo-dot);
  -webkit-mask-image: url("logo-dot.png");
  mask-image: url("logo-dot.png");
}

.sb-ico {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: none;
}

.ic { display: inline-block; vertical-align: -0.2em; flex: none; }
.ic-f { fill: currentColor; stroke: none; opacity: var(--ic-fill, 0.16); }
.ic-d { opacity: 0.28; }
.art .a-v1 { fill: var(--art-v1); }
.art .a-v2 { fill: var(--art-v2); }
.art .a-t  { fill: var(--art-t); }
.art .a-o  { fill: var(--art-o); }
.art .a-o2 { fill: var(--art-o2); opacity: 0.55; }
.art .a-w  { fill: var(--art-w); }
.art .a-d  { fill: var(--art-line); }
.art .a-s  { stroke: var(--art-line); }
.art .a-so { stroke: var(--art-o2); }
.art .a-ws { stroke: #ffffff; opacity: 0.9; }

.itile {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: rgba(234, 88, 12, 0.12);
  color: var(--accent);
}
.itile.lg { width: 52px; height: 52px; border-radius: 14px; }
.itile.sm { width: 32px; height: 32px; border-radius: 10px; }
.itile.teal { background: rgba(13, 148, 136, 0.14); color: var(--accent-2); }

.h-ic {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
}

/* Original Profession Sheet Architecture */
.prof-sheet {
  width: min(560px, 95vw);
  padding: 24px 26px 32px;
  gap: 18px;
}
.sheet-top-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-right: 40px;
}
.sheet-eyebrow {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.sheet-top-row h1 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.22;
}
.sheet-close-abs {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sheet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.pill-accent {
  font-size: 15px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.14);
  color: var(--accent);
}
.pill-ok {
  font-size: 15px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--accent-2);
}
.chip-static {
  font-size: 15.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}
.sheet-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: grid;
  gap: 12px;
}
.sheet-soft {
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
}
.facts {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 7px 12px;
  margin: 0;
  font-size: 16px;
}
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }

.sheet-list {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 16.5px;
}
.timeline {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 18px;
  border-left: 2px solid rgba(234, 88, 12, 0.3);
  display: grid;
  gap: 10px;
  font-size: 16.5px;
}
.timeline li {
  position: relative;
  padding-left: 6px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}
.outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
}
.outline-btn:hover { background: rgba(234, 88, 12, 0.1); }
.pri-btn, .sec-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ==================== SEAMLESS CITY DIORAMA + PLATFORM OVERVIEW (HOME REDESIGN) ==================== */
body[data-time="dawn"] {
  --aura-core: #f7e4cf;
  --aura-mid: #fbf2e7;
  --aura-edge: #fffdf9;
  --land-a: #86cfa0;
  --land-b: #5bb482;
  --water-a: #60c5f1;
  --water-b: #2b8ec2;
}
body[data-time="day"] {
  --aura-core: #e0f0fb;
  --aura-mid: #f1f8fd;
  --aura-edge: #ffffff;
  --land-a: #8fd8a6;
  --land-b: #61bc84;
  --water-a: #5bc0eb;
  --water-b: #2589bd;
}
body[data-time="night"] {
  --aura-core: #1e2d4f;
  --aura-mid: #16223c;
  --aura-edge: #121b30;
  --land-a: #204b3b;
  --land-b: #143227;
  --water-a: #123357;
  --water-b: #0a1e36;
}

.aura-core { stop-color: var(--aura-core); transition: stop-color 0.4s; }
.aura-mid  { stop-color: var(--aura-mid);  transition: stop-color 0.4s; }
.aura-edge { stop-color: var(--aura-edge); transition: stop-color 0.4s; }

.city-stage-seamless {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 26px 8px;
}
.hero-copy h1 {
  margin: 4px 0 8px;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.hero-copy p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
  max-width: 640px;
}

.hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hf-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
}
.hf-item strong {
  display: block;
  font-size: 20px;
  font-weight: 850;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 3px;
}
.hf-item span {
  display: block;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.3;
}

.svg-seamless {
  padding: 0 8px 6px;
  background: var(--surface);
}

/* Info Sections (5 Steps + 6 Capabilities) */
.info-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 24px 24px;
  box-shadow: var(--shadow);
}
.info-head {
  margin-bottom: 16px;
}
.info-head h2 {
  margin: 3px 0 4px;
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: -0.02em;
}
.info-head p {
  margin: 0;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 680px;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.j-step {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.j-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.j-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 7px;
}
.j-step h3 {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.25;
}
.j-step p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.4;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.f-card {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.f-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.f-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.f-tag {
  font-size: 14px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent-2);
}
.f-card h3 {
  margin: 2px 0 0;
  font-size: 17.5px;
}
.f-card p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.42;
  flex: 1;
}
.f-go {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .hero-intro { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .hero-intro { padding: 16px 16px 6px; }
  .info-section { padding: 16px; }
  .journey-grid, .features-grid { grid-template-columns: 1fr; }
}

/* ==================== STRICT 5-COLOR AURAMIND PALETTE (#F5F4FA, #FFFFFF, #1C1B2E, #6C4CF5, #0F9F8F) ==================== */
:root {
  --bg: #f5f4fa;
  --surface: #ffffff;
  --surface-2: #f0eef8;
  --ink: #1c1b2e;
  --muted: #6b6a80;
  --line: #e6e3f0;
  --accent: #6c4cf5;
  --accent-2: #0f9f8f;
  --accent-soft: #ece7ff;
  --teal-soft: #dcf5f1;
  --shadow: 0 12px 32px rgba(28, 27, 46, 0.06);
  --logo-spiral: #1c1b2e;
  --logo-dot: #6c4cf5;
}

/* Light modes (Утро / День) — seamless lavender-white aura */
body[data-time="dawn"] {
  --bg: #f5f4fa;
  --surface: #ffffff;
  --surface-2: #f0eef8;
  --aura-core: #ece7ff;
  --aura-mid: #f7f5fd;
  --aura-edge: #ffffff;
  --land-a: #c2ebe4;
  --land-b: #8bd8cc;
  --water-a: #6fd3c8;
  --water-b: #0f9f8f;
}
body[data-time="day"] {
  --bg: #f5f4fa;
  --surface: #ffffff;
  --surface-2: #f0eef8;
  --aura-core: #dcf5f1;
  --aura-mid: #f2fbf9;
  --aura-edge: #ffffff;
  --land-a: #ccefe9;
  --land-b: #96ded3;
  --water-a: #7ce0d5;
  --water-b: #0f9f8f;
}
body[data-time="night"] {
  --bg: #0f0e17;
  --surface: #1a1926;
  --surface-2: #242233;
  --ink: #eeecf8;
  --muted: #a09eb6;
  --line: #2e2c40;
  --accent: #9b85ff;
  --accent-2: #3fd3bf;
  --accent-soft: #2a2450;
  --teal-soft: #15332f;
  --logo-spiral: #eeecf8;
  --logo-dot: #9b85ff;
  --aura-core: #2a2450;
  --aura-mid: #201d35;
  --aura-edge: #1a1926;
  --land-a: #1a4741;
  --land-b: #12332f;
  --water-a: #154542;
  --water-b: #0c2b2a;
}

/* Unify all leftover orange/warm tints into the 5-color system */
.sb-item.active {
  background: var(--accent-soft);
  border-color: rgba(108, 76, 245, 0.28);
  color: var(--accent);
}
.sb-lock {
  background: var(--accent-soft);
  color: var(--accent);
}
.sb-lock.open {
  background: var(--teal-soft);
  color: var(--accent-2);
}
.build-toggle {
  border-color: rgba(108, 76, 245, 0.32);
  background: var(--accent-soft);
  color: var(--accent);
}
.build-toggle.is-unlocked {
  background: var(--accent-2);
  color: #ffffff;
}
.mob-unlock {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(108, 76, 245, 0.28);
}
.stage-badge {
  color: var(--accent);
  background: var(--accent-soft);
}
.sm-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.pri-btn:hover {
  box-shadow: 0 8px 18px rgba(108, 76, 245, 0.28);
}
.sec-btn:hover, .sec-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.itile {
  background: var(--accent-soft);
  color: var(--accent);
}
.itile.teal {
  background: var(--teal-soft);
  color: var(--accent-2);
}
.f-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(28, 27, 46, 0.08);
}

/* Map labels in 5-color system */
.map-label rect {
  fill: rgba(28, 27, 46, 0.9);
}
.map-label:hover rect, .map-label.selected rect { fill: var(--accent); }
.map-label.lbl-active rect { fill: var(--accent-2); }
.map-label.lbl-locked rect { fill: #4a4668; }
.map-label.lbl-open rect { fill: var(--accent); }
.bldg-hit.is-selected {
  filter: drop-shadow(0 0 11px rgba(108, 76, 245, 0.65));
}

/* Interactive pages & sheets in strict 5-color system */
.q-opt:hover, .q-opt.chosen {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.c-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.t-pill.rec {
  background: var(--accent-soft);
  color: var(--accent);
}
.t-pill.done {
  background: var(--teal-soft);
  color: var(--accent-2);
}
.locked-panel {
  border-color: rgba(108, 76, 245, 0.36);
}
.hb-pill {
  background: var(--accent-soft);
  color: var(--accent);
}
.dir-rank {
  background: var(--accent-soft);
  color: var(--accent);
}
.tree-node.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.pill-accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.pill-ok {
  background: var(--teal-soft);
  color: var(--accent-2);
}
.sheet-soft {
  background: var(--accent-soft);
  border-color: rgba(108, 76, 245, 0.22);
}
.prof-warn {
  background: var(--accent-soft);
  color: var(--ink);
  border-left: 3px solid var(--accent);
}
.timeline {
  border-left-color: rgba(108, 76, 245, 0.32);
}
.outline-btn:hover {
  background: var(--accent-soft);
}
.city-toast {
  background: #1c1b2e;
}

/* Profile 7 scale cards unified to Violet / Teal / Slate from our 5-color system */
.sc-sky, .sc-violet, .sc-orange {
  --card-bg: var(--accent-soft);
  --card-border: rgba(108, 76, 245, 0.26);
  --card-accent: var(--accent);
}
.sc-mint, .sc-amber {
  --card-bg: var(--teal-soft);
  --card-border: rgba(15, 159, 143, 0.28);
  --card-accent: var(--accent-2);
}
.sc-rose, .sc-slate {
  --card-bg: var(--surface-2);
  --card-border: rgba(28, 27, 46, 0.16);
  --card-accent: var(--ink);
}

/* ==================== 2-BUTTON DAY/NIGHT SWITCH & AI COMPANION STUDIO ==================== */
.time-switch {
  grid-template-columns: repeat(2, 1fr);
}

/* 2-column Chat Layout: Chat on left, AI Character + Skin Builder on right */
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
  gap: 18px;
  align-items: start;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 540px;
}
.chat-panel .chat-log-full {
  flex: 1;
  min-height: 310px;
  max-height: 440px;
  align-content: start;
}

/* Companion Studio Card */
.companion-card {
  display: grid;
  gap: 14px;
}
.comp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.comp-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--accent-2);
}
.comp-status.thinking {
  background: var(--accent-soft);
  color: var(--accent);
}
.comp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Avatar Stage with architectural dot grid */
.avatar-stage {
  position: relative;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background-color: var(--surface-2);
  background-image: radial-gradient(rgba(108, 76, 245, 0.16) 1px, transparent 1px);
  background-size: 14px 14px;
  padding: 12px 10px 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.avatar-svg {
  width: 100%;
  max-width: 248px;
  height: auto;
  display: block;
}
.avatar-body-anim {
  animation: compFloat 3.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center bottom;
}
@keyframes compFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}
.avatar-stage.is-speaking .speak-waves {
  opacity: 1;
  animation: pulseWaves 0.7s ease-in-out infinite alternate;
}
.speak-waves { opacity: 0; transition: opacity 0.25s; }
@keyframes pulseWaves {
  from { transform: scale(0.92); opacity: 0.55; }
  to { transform: scale(1.06); opacity: 1; }
}

.avatar-name-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.avatar-name-row input {
  flex: 1;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 10px;
}
.avatar-name-row input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

/* Skin Builder Controls */
.skin-builder {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.skin-row {
  display: grid;
  gap: 5px;
}
.skin-lbl {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.skin-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sp-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 650;
  padding: 5px 9px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.sp-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sp-btn.on {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.swatch-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.skin-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--line);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.skin-swatch:hover { transform: scale(1.1); }
.skin-swatch.on {
  box-shadow: 0 0 0 2.5px var(--accent);
  transform: scale(1.1);
}

@media (max-width: 1020px) {
  .chat-layout { grid-template-columns: 1fr; }
}

/* ==================== 3D CANVAS STAGE & COLLAPSIBLE SKIN EDITOR ==================== */
.comp-3d-canvas {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  cursor: grab;
  touch-action: none;
}
.comp-3d-canvas:active { cursor: grabbing; }

.avatar-stage.is-compact {
  padding: 6px 8px 4px;
}
.avatar-stage.is-expanded {
  padding: 18px 10px 14px;
}
.avatar-stage.is-expanded .comp-3d-canvas {
  max-width: 340px;
}
.stage-3d-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0.85;
  pointer-events: none;
}
.skin-confirm-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.skin-confirm-row .pri-btn {
  flex: 1;
  justify-content: center;
}
.comp-collapsed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.comp-collapsed-meta {
  font-size: 15.5px;
  color: var(--muted);
}

/* ==================== PER-DEVICE PROGRESS & RESET CONTROLS ==================== */
.sb-prog-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 11px;
  display: grid;
  gap: 6px;
}
.sb-prog-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
}
.sb-prog-row strong {
  font-family: var(--mono);
  color: var(--accent);
}
.sb-prog-box.is-unlocked .sb-prog-row strong {
  color: var(--accent-2);
}
.sb-prog-bar {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.sb-prog-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.sb-prog-box.is-unlocked .sb-prog-bar span {
  background: var(--accent-2);
}
.sb-reset-btn {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.sb-reset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-2);
}
.sb-reset-btn.is-confirm {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}
.profile-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.profile-name-input {
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 16.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  min-width: 210px;
}
.profile-name-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

/* ==================== UPGRADED STORY QUEST (MISSIONS, MECHANICS, INSIGHTS) ==================== */
.q-hub-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 175px)) 1fr;
  gap: 12px;
  align-items: stretch;
}
.q-hub-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  display: grid;
  gap: 4px;
}
.q-hub-stat span {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 600;
}
.q-hub-stat strong {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
}
.q-hub-tip {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.q-hub-tip strong { color: var(--accent); white-space: nowrap; }

.q-missions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.q-mcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.q-mcard:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(28, 27, 46, 0.08);
}
.q-mcard.is-done {
  border-color: rgba(15, 159, 143, 0.42);
}
.q-art {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.q-mcard-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.q-mcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.q-mkicker {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.t-pill.prog {
  background: rgba(108, 76, 245, 0.14);
  color: var(--accent);
}
.q-mcard h3 {
  margin: 0;
  font-size: 19.5px;
  line-height: 1.25;
}
.q-mcard p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--muted);
}
.q-mech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.q-mech-pill {
  font-size: 14px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* Route Stepper */
.q-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 16px;
  overflow-x: auto;
}
.q-node {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.q-node i {
  font-style: normal;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-family: var(--mono);
  background: var(--surface-2);
  border: 1.5px solid var(--line);
}
.q-node.active { color: var(--accent); }
.q-node.active i { background: var(--accent); border-color: var(--accent); color: #fff; }
.q-node.done { color: var(--accent-2); }
.q-node.done i { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.q-node-line {
  flex: 1;
  min-width: 18px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}

/* 2-Column Play Layout */
.q-play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.q-stage-card {
  display: grid;
  gap: 12px;
}
.q-scene-art { margin-bottom: 2px; }
.q-scene-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}
.q-scene-prompt {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.q-back-row {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.q-back-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 0;
}
.q-back-link:hover { color: var(--accent); }

/* Custom Free-Text Answer */
.q-custom-wrap {
  margin-top: 4px;
  display: grid;
  gap: 8px;
}
.q-custom-toggle {
  justify-self: start;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.q-custom-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-2);
}
.q-custom-form {
  display: flex;
  gap: 8px;
}
.q-custom-form input {
  flex: 1;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 16.5px;
  padding: 10px 12px;
  border-radius: 11px;
}
.q-custom-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

/* Resource Allocator (10 hours / 10 chips) */
.q-alloc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 700;
}
.q-alloc-head strong {
  font-family: var(--mono);
  font-size: 17.5px;
  color: var(--accent);
}
.q-alloc-head strong.is-ready { color: var(--accent-2); }
.q-alloc-list {
  display: grid;
  gap: 10px;
}
.q-alloc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.q-alloc-info {
  flex: 1;
  display: grid;
  gap: 3px;
}
.q-alloc-info strong { font-size: 15.5px; }
.q-alloc-info small { font-size: 15px; color: var(--muted); }
.q-alloc-bar {
  height: 6px;
  margin-top: 5px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.q-alloc-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.18s ease;
}
.q-alloc-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.q-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 18.5px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.q-step-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.q-alloc-val {
  min-width: 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 17.5px;
  color: var(--ink);
}
.pri-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* Dilemma Sliders */
.q-dil-list {
  display: grid;
  gap: 16px;
}
.q-dil-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  display: grid;
  gap: 10px;
}
.q-dil-lbls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
}
.q-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Anti-Quest Card Sorter */
.q-sort-prog {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--muted);
}
.q-sort-card {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: center;
  display: grid;
  gap: 10px;
}
.q-sort-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}
.q-sort-card p {
  margin: 0 auto 6px;
  max-width: 460px;
  font-size: 16.5px;
  color: var(--muted);
}
.q-sort-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.q-sbtn {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16.5px;
  font-weight: 750;
  padding: 11px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.q-sbtn.drain:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}
.q-sbtn.norm:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.q-sbtn.spark {
  border-color: rgba(15, 159, 143, 0.4);
  color: var(--accent-2);
}
.q-sbtn.spark:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
}

/* Right Column: Live Observations & Companion */
.q-obs-card {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 18px;
}
.q-obs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.q-obs-sig {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
}
.q-comp-note {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 16px;
  line-height: 1.5;
  display: grid;
  gap: 4px;
}
.q-comp-note strong {
  font-size: 15px;
  color: var(--accent);
}
.q-obs-empty {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.q-insight-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 9px;
  font-size: 15.5px;
  line-height: 1.5;
}
.q-insight-list.compact {
  font-size: 16px;
  gap: 7px;
}

/* Post-Mission Result Breakdown */
.q-res-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.9fr);
  gap: 16px;
  align-items: start;
}
.q-res-side {
  display: grid;
  gap: 12px;
}
.q-res-scales {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.q-next-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  display: grid;
  gap: 4px;
}
.q-anti-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.q-anti-chip {
  font-size: 15px;
  font-weight: 650;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

@media (max-width: 980px) {
  .q-hub-bar { grid-template-columns: 1fr 1fr; }
  .q-hub-tip { grid-column: 1 / -1; }
  .q-missions-grid { grid-template-columns: 1fr; }
  .q-play-layout, .q-res-grid { grid-template-columns: 1fr; }
  .q-obs-card { position: static; }
}
@media (max-width: 600px) {
  .q-sort-btns { grid-template-columns: 1fr; }
  .q-custom-form { flex-direction: column; }
  .q-alloc-row { flex-direction: column; align-items: stretch; }
  .q-alloc-ctrl { justify-content: flex-end; }
}

/* ==================== BOARD GAME QUEST (24-STEP AURACITY ROUTE + DICE) ==================== */
.bg-top-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.bg-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 15px;
  display: grid;
  gap: 3px;
}
.bg-stat span {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--muted);
}
.bg-stat strong {
  font-family: var(--mono);
  font-size: 19px;
  color: var(--accent);
}
.bg-stat.is-teal strong { color: var(--accent-2); }

.bg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.92fr);
  gap: 16px;
  align-items: start;
}
.bg-board-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.bg-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bg-board-head h2 {
  margin: 0;
  font-size: 18.5px;
}
.bg-board-sub {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}
.bg-board-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.bg-node-hit {
  cursor: pointer;
  transition: opacity 0.16s ease;
}
.bg-node-hit:hover { opacity: 0.9; }
#bgPawn {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.bg-pawn-pulse {
  animation: bgPawnPulse 1.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes bgPawnPulse {
  0%, 100% { transform: scale(1); opacity: 0.42; }
  50% { transform: scale(1.26); opacity: 0.12; }
}

/* Tile Legend */
.bg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.bg-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--muted);
}
.bg-leg-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(28, 27, 46, 0.18);
  flex-shrink: 0;
}
.bg-leg-dot.t-situation { background: #ece7ff; border-color: #6c4cf5; }
.bg-leg-dot.t-anti      { background: #f0eef8; border-color: #1c1b2e; }
.bg-leg-dot.t-myth      { background: #dcf5f1; border-color: #0f9f8f; }
.bg-leg-dot.t-dilemma   { background: #ffffff; border-color: #6c4cf5; border-style: dashed; }
.bg-leg-dot.t-event     { background: #6c4cf5; border-color: #6c4cf5; border-radius: 3px; transform: rotate(45deg) scale(0.85); }
.bg-leg-dot.t-fork      { background: #1c1b2e; border-color: #6c4cf5; }
.bg-leg-dot.t-trial     { background: #0f9f8f; border-color: #0f9f8f; border-radius: 3px; }
.bg-leg-dot.t-finish    { background: #1c1b2e; border-color: #0f9f8f; box-shadow: 0 0 0 2px #dcf5f1; }

/* Right Column: Dice + Active Tile + Companion */
.bg-side-col {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 16px;
}
.bg-dice-card {
  display: grid;
  gap: 12px;
}
.bg-dice-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bg-dice-box {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 15px;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 6px 16px rgba(108, 76, 245, 0.18), inset 0 -3px 0 rgba(108, 76, 245, 0.12);
  padding: 9px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  transition: transform 0.15s ease;
}
.bg-dice-box.is-rolling {
  animation: bgDiceTumble 0.45s ease-in-out infinite;
  border-color: var(--accent-2);
}
@keyframes bgDiceTumble {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(-14deg) scale(1.08); }
  50%  { transform: rotate(14deg) scale(0.96); }
  75%  { transform: rotate(-8deg) scale(1.06); }
  100% { transform: rotate(0deg) scale(1); }
}
.bg-pip {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
}
.bg-pip.on {
  background: var(--ink);
}
.bg-dice-info {
  flex: 1;
  display: grid;
  gap: 3px;
}
.bg-dice-info strong {
  font-size: 16.5px;
  line-height: 1.25;
}
.bg-dice-info span {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.4;
}
.bg-roll-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 15.5px;
}

/* Active Tile Event Card */
.bg-event-card {
  display: grid;
  gap: 12px;
}
.bg-tile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ece7ff;
  color: #5236cc;
}
.bg-tile-badge.t-anti    { background: #1c1b2e; color: #ffffff; }
.bg-tile-badge.t-fork    { background: #dcf5f1; color: #0a7569; }
.bg-tile-badge.t-myth    { background: #ece7ff; color: #6c4cf5; }
.bg-tile-badge.t-dilemma { background: #dcf5f1; color: #0a7569; }
.bg-tile-badge.t-event   { background: #6c4cf5; color: #ffffff; }
.bg-tile-badge.t-trial   { background: #0f9f8f; color: #ffffff; }
.bg-tile-badge.t-finish  { background: #6c4cf5; color: #ffffff; }

.bg-event-card h3 {
  margin: 0;
  font-size: 19.5px;
  line-height: 1.28;
}
.bg-event-desc {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Fork Branch Picker */
.bg-fork-grid {
  display: grid;
  gap: 10px;
}
.bg-fork-btn {
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: all 0.16s ease;
}
.bg-fork-btn:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-1px);
}
.bg-fork-btn.is-teal:hover { border-color: var(--accent-2); }
.bg-fork-btn strong { font-size: 16px; color: var(--ink); }
.bg-fork-btn span { font-size: 15.5px; color: var(--muted); line-height: 1.45; }

/* Myth vs Truth */
.bg-myth-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bg-myth-reveal {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  font-size: 16.5px;
  line-height: 1.5;
}
.bg-myth-reveal strong {
  font-size: 16px;
  color: var(--accent-2);
}

.bg-obs-card {
  display: grid;
  gap: 12px;
}
.bg-finish-card {
  display: grid;
  gap: 14px;
  border: 1.5px solid rgba(108, 76, 245, 0.35);
}

/* ==================== 3D ISOMETRIC 50-STEP BOARD VIEWPORT & CAMERA TOOLBAR ==================== */
.bg-canvas-wrap {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.bg-canvas-3d {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
.bg-canvas-3d:active { cursor: grabbing; }

.bg-cam-bar {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px 6px;
  box-shadow: 0 8px 20px rgba(28, 27, 46, 0.12);
  z-index: 4;
}
.bg-cam-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bg-cam-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface);
}
.bg-cam-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0.92;
  pointer-events: none;
}
.bg-run-pill {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dcf5f1;
  color: #0a7569;
}
.bg-myth-quote {
  margin: 0;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.48;
  color: var(--ink);
}
.bg-card-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}
.bg-card-desc {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--muted);
}
.bg-fork-tag {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.bg-fork-btn p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.45;
}
.bg-trial-foot {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.bg-finish-sec {
  display: grid;
  gap: 8px;
}

@media (max-width: 1060px) {
  .bg-layout { grid-template-columns: 1fr; }
  .bg-side-col { position: static; }
  .bg-canvas-wrap { height: 430px; }
}
@media (max-width: 680px) {
  .bg-top-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==================== INTERACTIVE PROFESSION TRIALS (12 PROFESSIONS × 3 SIMULATORS) ==================== */
.tr-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
}
.tr-prog {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  flex: 1;
}
.tr-prog strong {
  font-family: var(--mono);
  font-size: 16.5px;
  color: var(--accent);
  white-space: nowrap;
}
.tr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tr-filter-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.tr-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tr-filter-btn.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.tr-prof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tr-prof-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.tr-prof-card:hover {
  border-color: rgba(108, 76, 245, 0.45);
  box-shadow: 0 10px 24px rgba(28, 27, 46, 0.06);
}
.tr-prof-card.is-rec {
  border-color: rgba(15, 159, 143, 0.45);
}
.tr-prof-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.tr-prof-meta {
  flex: 1 1 130px;
  min-width: 0;
}
.tr-prof-meta h3 {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.2;
}
.tr-prof-meta span {
  font-size: 15px;
  color: var(--muted);
}
.tr-prof-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.48;
  color: var(--muted);
}
.tr-task-list {
  display: grid;
  gap: 7px;
  margin-top: auto;
}
.tr-task-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  padding: 9px 11px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.tr-task-btn:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateX(2px);
}
.tr-task-btn.is-done {
  border-color: rgba(15, 159, 143, 0.4);
  background: rgba(15, 159, 143, 0.07);
}
.tr-task-num {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tr-task-btn.is-done .tr-task-num {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #ffffff;
}
.tr-task-status {
  margin-left: auto;
  font-size: 14px;
  font-weight: 750;
  color: var(--accent-2);
  white-space: nowrap;
}

/* Active Trial Workspace */
.tr-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tr-sw-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.tr-sw-btn:hover { border-color: var(--accent); color: var(--accent); }
.tr-sw-btn.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.tr-sw-btn.done:not(.on) {
  border-color: rgba(15, 159, 143, 0.5);
  color: var(--accent-2);
}

.tr-play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.tr-sim-card {
  display: grid;
  gap: 14px;
}
.tr-eval-card {
  display: grid;
  gap: 13px;
  position: sticky;
  top: 16px;
}
.tr-reality-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.tr-reality-card h4 { margin: 0; font-size: 16px; }
.tr-reality-card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.tr-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tr-tag-chip {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tr-tag-chip:hover { border-color: var(--accent); }
.tr-tag-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tr-tag-chip.drain.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ==================== 10 INTERACTIVE SIMULATOR WIDGETS ==================== */
.sim-stage {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

/* 1. grid_bot */
.sim-grid-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.sim-grid {
  display: grid;
  grid-template-columns: repeat(5, 48px);
  grid-template-rows: repeat(5, 48px);
  gap: 5px;
  background: var(--surface);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.sim-cell {
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  position: relative;
}
.sim-cell.obs { background: var(--ink); border-color: var(--ink); }
.sim-cell.goal { background: #dcf5f1; border-color: #0f9f8f; color: #0a7569; }
.sim-cell.pickup { background: #ece7ff; border-color: #6c4cf5; color: #5236cc; }
.sim-cell.bot { background: #6c4cf5; border-color: #5236cc; color: #fff; box-shadow: 0 4px 12px rgba(108, 76, 245, 0.35); }
.sim-cmd-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sim-cmd-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 44px;
  padding: 9px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 12px;
  align-items: center;
}
.sim-cmd-pill {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 7px;
  background: #ece7ff;
  color: #5236cc;
}
.sim-cmd-pill.active { background: #0f9f8f; color: #fff; }

/* 2. data_lab */
.sim-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sim-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 9px;
  cursor: pointer;
}
.sim-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sim-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* 3. ui_builder */
.sim-ui-wrap {
  display: grid;
  grid-template-columns: 225px 1fr;
  gap: 16px;
  align-items: start;
}
.sim-phone {
  background: var(--ink);
  border-radius: 26px;
  padding: 12px 10px 14px;
  box-shadow: 0 12px 24px rgba(28, 27, 46, 0.18);
  display: grid;
  gap: 8px;
}
.sim-phone-top {
  text-align: center;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 2px 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.sim-phone-screen {
  background: var(--surface);
  border-radius: 16px;
  padding: 8px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sim-phone-block {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 9px;
  padding: 7px 9px;
  display: grid;
  gap: 2px;
}
.sim-phone-block strong { font-size: 14.5px; color: var(--ink); }
.sim-phone-block small { font-size: 13.5px; color: var(--muted); }
.sim-ui-list { display: grid; gap: 7px; }
.sim-ui-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
}
.sim-ui-row.is-on { border-color: var(--accent); }
.sim-ui-row label { flex: 1; font-size: 15.5px; font-weight: 650; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.sim-mini-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  width: 26px;
  height: 26px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
}
.sim-mini-btn:hover { border-color: var(--accent); color: var(--accent); }

/* 4. bridge_sim & 5. campaign_sim */
.sim-rig-svg {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sim-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}
.sim-opt-pill {
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 9px 11px;
  border-radius: 11px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  transition: all 0.15s ease;
}
.sim-opt-pill:hover { border-color: var(--accent); }
.sim-opt-pill.on { border-color: var(--accent); background: #ece7ff; color: #1c1b2e; }
.sim-opt-pill strong { font-size: 15.5px; }
.sim-opt-pill small { font-size: 14px; color: var(--muted); }
.sim-funnel { display: grid; gap: 9px; }
.sim-funnel-row { display: grid; gap: 4px; font-size: 15.5px; font-weight: 700; }

/* 6. dialog_sim */
.sim-dialog-log {
  display: grid;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sim-bubble {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.45;
  max-width: 90%;
}
.sim-bubble.partner { background: var(--surface-2); border: 1px solid var(--line); justify-self: start; }
.sim-bubble.me { background: var(--accent); color: #fff; justify-self: end; }
.sim-bubble.tip { background: #dcf5f1; color: #0a7569; font-size: 15px; font-weight: 650; justify-self: stretch; max-width: 100%; }

/* 7. bio_lab */
.sim-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.sim-tool-btn {
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 11px 13px;
  border-radius: 13px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  transition: all 0.16s ease;
}
.sim-tool-btn:hover { border-color: var(--accent); }
.sim-tool-btn.checked { border-color: var(--accent-2); }
.sim-tool-btn.crit { border-color: var(--ink); background: var(--surface); }
.sim-tool-status {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  justify-self: start;
  background: var(--surface-2);
  color: var(--muted);
}
.sim-tool-status.ok { background: #dcf5f1; color: #0a7569; }
.sim-tool-status.warn { background: #ece7ff; color: #5236cc; }
.sim-tool-status.crit { background: #1c1b2e; color: #ffffff; }

/* 8. bug_hunt */
.sim-app-box {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.sim-app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 800;
}
.sim-app-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sim-app-item:hover { border-color: var(--accent); }
.sim-app-item.bug-found { border-color: var(--accent); background: #ece7ff; color: #1c1b2e; }
.sim-app-item.clean-ok { border-color: var(--accent-2); background: #dcf5f1; color: #0a7569; }

/* 10. city_plan */
.sim-city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.sim-city-slot {
  min-height: 76px;
  border: 1.5px dashed var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  border-radius: 13px;
  padding: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 3px;
  transition: all 0.16s ease;
}
.sim-city-slot:hover { border-color: var(--accent); }
.sim-city-slot.filled { border-style: solid; border-color: var(--accent-2); background: #dcf5f1; color: #0a7569; }
.sim-city-slot strong { font-size: 15.5px; }
.sim-city-slot small { font-size: 14px; color: var(--muted); }

/* Result & Metrics */
.sim-result-box {
  background: var(--surface);
  border: 1.5px solid var(--accent-2);
  border-radius: 13px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  font-size: 16px;
  line-height: 1.48;
}
.sim-result-box.warn { border-color: var(--accent); }
.sim-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.sim-metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 11px;
  display: grid;
  gap: 3px;
}
.sim-metric span { font-size: 14px; color: var(--muted); font-weight: 700; }
.sim-metric strong { font-family: var(--mono); font-size: 17.5px; color: var(--accent); }

@media (max-width: 1020px) {
  .tr-prof-grid { grid-template-columns: 1fr; }
  .tr-play-layout { grid-template-columns: 1fr; }
  .tr-eval-card { position: static; }
}
@media (max-width: 720px) {
  .sim-grid-wrap, .sim-ui-wrap { grid-template-columns: 1fr; }
  .sim-tools-grid, .sim-city-grid, .sim-metrics { grid-template-columns: 1fr; }
}

/* ==================== MINI-IDE & UNIT TEST RUNNER (code_lab) ==================== */
.sim-ide {
  background: #1c1b2e;
  color: #f5f4fa;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #35334e;
  box-shadow: 0 10px 24px rgba(28, 27, 46, 0.16);
}
.sim-ide-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #141322;
  border-bottom: 1px solid #2d2b44;
  flex-wrap: wrap;
}
.sim-ide-dots {
  display: inline-flex;
  gap: 6px;
}
.sim-ide-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a4866;
}
.sim-ide-dots i:first-child { background: #6c4cf5; }
.sim-ide-dots i:nth-child(2) { background: #0f9f8f; }
.sim-ide-file {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #ece7ff;
}
.sim-ide-stat {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #b8b4cc;
}
.sim-ide-stat.ok { color: #3fd3bf; }
.sim-ide-stat.fail { color: #b8a6ff; }

.sim-ide-body {
  padding: 10px 0;
  display: grid;
  overflow-x: auto;
}
.sim-code-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  color: #e4e1f5;
  white-space: pre;
  text-align: left;
}
.sim-code-line code {
  font-family: inherit;
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
}
.sim-ln {
  min-width: 22px;
  text-align: right;
  color: #7c7999;
  user-select: none;
  flex-shrink: 0;
}
.sim-code-line.editable {
  width: 100%;
  border: 0;
  border-left: 3px solid #6c4cf5;
  background: rgba(108, 76, 245, 0.16);
  cursor: pointer;
  transition: background 0.15s ease;
}
.sim-code-line.editable:hover {
  background: rgba(108, 76, 245, 0.28);
}
.sim-code-line.editable.active {
  background: rgba(108, 76, 245, 0.36);
  border-left-color: #3fd3bf;
}
.sim-code-line.editable.patched {
  border-left-color: #0f9f8f;
  background: rgba(15, 159, 143, 0.18);
}
.sim-line-pill {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: #6c4cf5;
  color: #ffffff;
  flex-shrink: 0;
}
.sim-code-line.editable.patched .sim-line-pill {
  background: #0f9f8f;
}

.sim-patch-box {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.sim-patch-head {
  display: grid;
  gap: 4px;
}
.sim-patch-head strong { font-size: 15.5px; color: var(--ink); }
.sim-patch-head span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.sim-code-opt code {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  word-break: break-word;
}
.sim-patch-note {
  font-size: 14px;
  font-weight: 650;
  padding: 9px 12px;
  border-radius: 10px;
  background: #ece7ff;
  color: #1c1b2e;
}
.sim-patch-note.ok {
  background: #dcf5f1;
  color: #0a7569;
}

.sim-tests {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  display: grid;
  gap: 8px;
}
.sim-tests-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.sim-tests-head span {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}
.sim-test-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.sim-test-row.pass {
  border-color: rgba(15, 159, 143, 0.45);
  background: rgba(15, 159, 143, 0.08);
}
.sim-test-row.fail {
  border-color: rgba(108, 76, 245, 0.45);
  background: rgba(108, 76, 245, 0.08);
}
.sim-test-badge {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--line);
  color: var(--muted);
  flex-shrink: 0;
}
.sim-test-badge.pass { background: #0f9f8f; color: #ffffff; }
.sim-test-badge.fail { background: #1c1b2e; color: #ffffff; }
.sim-test-info {
  display: grid;
  gap: 2px;
}
.sim-test-info strong { font-size: 14.5px; }
.sim-test-info small { font-size: 13.5px; color: var(--muted); }

/* ==================== 1. DARK LANDING VIEW (#0B0B12, ZERO WHITE BOXES) ==================== */
.land-root {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(108, 76, 245, 0.22), transparent 60%),
    radial-gradient(740px 440px at 14% 26%, rgba(15, 159, 143, 0.14), transparent 62%),
    #0b0b12;
  color: #f4f3fb;
}
.land-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.land-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 18, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.land-header-in {
  min-height: 74px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.land-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: #f4f3fb;
}
.land-brand-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.land-brand-sub {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  color: #9e9cb8;
}
.land-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.land-nav a {
  color: #c9c7de;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.land-nav a:hover { color: #ffffff; }
.land-enter-btn {
  padding: 10px 18px;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}

.land-hero {
  padding: 58px 0 64px;
}
.land-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
}
.land-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(108, 76, 245, 0.18);
  border: 1px solid rgba(155, 133, 255, 0.34);
  color: #d4caff;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 18px;
}
.land-hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.land-lead {
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.6;
  color: #bcb9d4;
  max-width: 560px;
}
.land-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.land-pri-lg {
  padding: 14px 22px;
  font-size: 16px;
}
.land-ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f3fb;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.land-ghost-btn:hover {
  border-color: #9b85ff;
  background: rgba(108, 76, 245, 0.16);
  color: #ffffff;
}
.land-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.land-hero-metrics > div {
  min-width: 0;
}
.land-hero-metrics strong {
  display: block;
  font-size: 25px;
  line-height: 1.2;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  margin-bottom: 3px;
}
.land-hero-metrics span {
  display: block;
  font-size: 13.5px;
  line-height: 1.35;
  color: #9e9cb8;
}

.land-city-card {
  background: linear-gradient(180deg, #151526 0%, #10101c 100%);
  border: 1px solid rgba(155, 133, 255, 0.24);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
}
.land-city-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #a9a6c8;
}
.land-city-go {
  border: 1px solid rgba(15, 159, 143, 0.45);
  background: rgba(15, 159, 143, 0.16);
  color: #5eead4;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.land-city-go:hover { background: rgba(15, 159, 143, 0.3); }
.land-city-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.land-sec {
  padding: 68px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.land-sec-alt {
  background: rgba(255, 255, 255, 0.02);
}
.land-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9b85ff;
  margin-bottom: 10px;
}
.land-h2 {
  margin: 0 0 28px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.18;
  color: #ffffff;
  max-width: 760px;
}
.land-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.land-card {
  background: #131321;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  overflow-wrap: break-word;
}
.land-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  color: #3fd3bf;
}
.land-card h3 {
  margin: 0;
  font-size: 20px;
  color: #ffffff;
}
.land-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.58;
  color: #b7b4cf;
}
.land-principles {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 9px;
  font-size: 15px;
  line-height: 1.5;
  color: #c7c4de;
}
.land-principles strong { color: #ffffff; }

.land-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.land-trust-card {
  background: #131321;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  overflow-wrap: break-word;
}
.land-trust-tag {
  display: inline-block;
  justify-self: start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(108, 76, 245, 0.2);
  color: #c8bcff;
}
.land-trust-tag.is-teal {
  background: rgba(15, 159, 143, 0.22);
  color: #5eead4;
}
.land-trust-card h3 { margin: 0; font-size: 18px; color: #ffffff; }
.land-trust-card p { margin: 0; font-size: 15px; line-height: 1.55; color: #b5b2cc; }

.land-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.land-plan {
  background: #131321;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.land-plan.is-pro {
  background: linear-gradient(160deg, #1b1734 0%, #121524 100%);
  border-color: rgba(108, 76, 245, 0.55);
  box-shadow: 0 20px 46px rgba(108, 76, 245, 0.16);
}
.land-plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.land-price strong {
  font-size: 34px;
  font-family: var(--mono);
  color: #ffffff;
  margin-right: 8px;
}
.land-price span {
  font-size: 14px;
  color: #a9a6c4;
}
.land-plan-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.52;
  color: #d3d0e6;
  flex: 1;
}
.land-plan-list strong { color: #ffffff; }
.land-plan-btns {
  display: grid;
  gap: 10px;
}
.land-guarantee {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #5eead4;
  font-weight: 600;
}

.land-donate-bar {
  margin-top: 22px;
  background: #131321;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.land-donate-copy h3 { margin: 4px 0 6px; font-size: 20px; color: #ffffff; }
.land-donate-copy p { margin: 0; font-size: 15px; color: #b5b2cc; }
.land-donate-ctrl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.land-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #08080e;
  padding: 32px 0 40px;
}
.land-footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.land-foot-brand {
  display: block;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 6px;
}
.land-foot-meta {
  margin: 4px 0 0;
  font-size: 14px;
  color: #8f8ca8;
}
.land-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}
.land-foot-links a {
  color: #c8bcff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}
.land-foot-links a:hover { color: #ffffff; text-decoration: underline; }

.land-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.land-theme-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #dcd9ef;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.land-theme-btn:hover {
  border-color: #9b85ff;
  background: rgba(108, 76, 245, 0.18);
  color: #ffffff;
}

/* ==================== 1B. LIGHT / WHITE LANDING THEME (DEFAULT WHEN data-time="day") ==================== */
body:not([data-time="night"]) .land-root {
  background:
    radial-gradient(940px 520px at 84% 4%, rgba(108, 76, 245, 0.11), transparent 60%),
    radial-gradient(760px 440px at 10% 24%, rgba(15, 159, 143, 0.09), transparent 62%),
    #ffffff;
  color: #1c1b2e;
}
body:not([data-time="night"]) .land-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: #e6e3f0;
}
body:not([data-time="night"]) .land-brand { color: #1c1b2e; }
body:not([data-time="night"]) .land-brand-sub { color: #6b6a80; }
body:not([data-time="night"]) .land-nav a { color: #4c4a63; }
body:not([data-time="night"]) .land-nav a:hover { color: #6c4cf5; }
body:not([data-time="night"]) .land-theme-btn {
  border-color: #e2dfee;
  background: #f5f4fa;
  color: #1c1b2e;
}
body:not([data-time="night"]) .land-theme-btn:hover {
  border-color: #6c4cf5;
  background: #ece7ff;
  color: #6c4cf5;
}
body:not([data-time="night"]) .land-pill {
  background: #ece7ff;
  border-color: rgba(108, 76, 245, 0.24);
  color: #5b3ce0;
}
body:not([data-time="night"]) .land-hero-copy h1 { color: #1c1b2e; }
body:not([data-time="night"]) .land-lead { color: #56546c; }
body:not([data-time="night"]) .land-ghost-btn {
  border-color: #dcd8ea;
  background: #f5f4fa;
  color: #1c1b2e;
}
body:not([data-time="night"]) .land-ghost-btn:hover {
  border-color: #6c4cf5;
  background: #ece7ff;
  color: #6c4cf5;
}
body:not([data-time="night"]) .land-hero-metrics {
  border-top-color: #e6e3f0;
}
body:not([data-time="night"]) .land-hero-metrics strong { color: #1c1b2e; }
body:not([data-time="night"]) .land-hero-metrics span { color: #6b6a80; }

body:not([data-time="night"]) .land-city-card {
  background: #ffffff;
  border-color: #e6e3f0;
  box-shadow: 0 22px 54px rgba(28, 27, 46, 0.09);
}
body:not([data-time="night"]) .land-city-top { color: #6b6a80; }
body:not([data-time="night"]) .land-city-go {
  border-color: rgba(15, 159, 143, 0.34);
  background: #dcf5f1;
  color: #0a7569;
}
body:not([data-time="night"]) .land-city-go:hover {
  background: #0f9f8f;
  color: #ffffff;
}

body:not([data-time="night"]) .land-sec {
  border-top-color: #ece9f5;
}
body:not([data-time="night"]) .land-sec-alt {
  background: #f7f6fc;
}
body:not([data-time="night"]) .land-kicker { color: #6c4cf5; }
body:not([data-time="night"]) .land-h2 { color: #1c1b2e; }

body:not([data-time="night"]) .land-card {
  background: #ffffff;
  border-color: #e6e3f0;
  box-shadow: 0 10px 28px rgba(28, 27, 46, 0.05);
}
body:not([data-time="night"]) .land-num { color: #0f9f8f; }
body:not([data-time="night"]) .land-card h3 { color: #1c1b2e; }
body:not([data-time="night"]) .land-card p { color: #56546c; }
body:not([data-time="night"]) .land-principles { color: #43415a; }
body:not([data-time="night"]) .land-principles strong { color: #1c1b2e; }

body:not([data-time="night"]) .land-trust-card {
  background: #ffffff;
  border-color: #e6e3f0;
  box-shadow: 0 10px 26px rgba(28, 27, 46, 0.05);
}
body:not([data-time="night"]) .land-trust-tag {
  background: #ece7ff;
  color: #5b3ce0;
}
body:not([data-time="night"]) .land-trust-tag.is-teal {
  background: #dcf5f1;
  color: #0a7569;
}
body:not([data-time="night"]) .land-trust-card h3 { color: #1c1b2e; }
body:not([data-time="night"]) .land-trust-card p { color: #56546c; }

body:not([data-time="night"]) .land-plan {
  background: #ffffff;
  border-color: #e6e3f0;
  box-shadow: 0 12px 30px rgba(28, 27, 46, 0.06);
}
body:not([data-time="night"]) .land-plan.is-pro {
  background: linear-gradient(160deg, #f6f3ff 0%, #effbf9 100%);
  border-color: rgba(108, 76, 245, 0.48);
  box-shadow: 0 18px 42px rgba(108, 76, 245, 0.12);
}
body:not([data-time="night"]) .land-price strong { color: #1c1b2e; }
body:not([data-time="night"]) .land-price span { color: #6b6a80; }
body:not([data-time="night"]) .land-plan-list { color: #43415a; }
body:not([data-time="night"]) .land-plan-list strong { color: #1c1b2e; }
body:not([data-time="night"]) .land-guarantee { color: #0a7569; }

body:not([data-time="night"]) .land-root .pw-share-btn {
  background: #ffffff;
  border-color: #dcd8ea;
  color: #1c1b2e;
}
body:not([data-time="night"]) .land-root .pw-share-btn:hover {
  background: #ece7ff;
  border-color: #6c4cf5;
  color: #6c4cf5;
}
body:not([data-time="night"]) .land-donate-bar {
  background: #ffffff;
  border-color: #e6e3f0;
  box-shadow: 0 10px 28px rgba(28, 27, 46, 0.05);
}
body:not([data-time="night"]) .land-donate-copy h3 { color: #1c1b2e; }
body:not([data-time="night"]) .land-donate-copy p { color: #56546c; }
body:not([data-time="night"]) .land-root .pw-don-chip {
  border-color: #dcd8ea;
  background: #f5f4fa;
  color: #1c1b2e;
}
body:not([data-time="night"]) .land-root .pw-don-chip.on {
  border-color: #0f9f8f;
  background: #0f9f8f;
  color: #ffffff;
}
body:not([data-time="night"]) .land-root .pw-don-input {
  border-color: #dcd8ea;
  background: #f8f7fc;
  color: #1c1b2e;
}
body:not([data-time="night"]) .land-root .pw-don-input:focus {
  outline: none;
  border-color: #6c4cf5;
  background: #ffffff;
}

body:not([data-time="night"]) .land-footer {
  border-top-color: #e6e3f0;
  background: #f5f4fa;
}
body:not([data-time="night"]) .land-foot-brand { color: #1c1b2e; }
body:not([data-time="night"]) .land-foot-meta { color: #6b6a80; }
body:not([data-time="night"]) .land-foot-links a { color: #6c4cf5; }
body:not([data-time="night"]) .land-foot-links a:hover { color: #1c1b2e; }

/* ==================== 2. STREAMLINED SIDEBAR, HOME CLEANUP & LEGAL FOOTER ==================== */
.sb-pro-btn {
  width: 100%;
  justify-content: center;
  padding: 11px 12px;
  font-size: 14px;
}
.sb-pro-btn.is-active {
  background: #0f9f8f;
}
.sb-landing-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  padding: 4px 0;
  cursor: pointer;
  text-align: center;
}
.sb-landing-link:hover { color: var(--accent); }

.city-top-clean {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 6px;
}
.city-top-clean h1 {
  margin: 8px 0 6px;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.15;
}
.city-top-clean p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 15.5px;
}
.city-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.app-legal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.app-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.app-legal-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
}
.app-legal-links a:hover { text-decoration: underline; }

/* Sub-tabs inside Профессии & Практика */
.subtab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
}
.subtab-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.subtab-btn:hover { background: var(--surface-2); color: var(--ink); }
.subtab-btn.on {
  background: var(--accent);
  color: #ffffff;
}

/* AI Mentor v1.0 Honest Banner in Chat */
.ai-v1-banner {
  background: linear-gradient(135deg, rgba(108, 76, 245, 0.12), rgba(15, 159, 143, 0.12));
  border: 1.5px solid rgba(108, 76, 245, 0.3);
  border-radius: 16px;
  padding: 14px 18px;
  display: grid;
  gap: 6px;
}
.ai-v1-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ai-v1-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
}
.ai-v1-quota {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-2);
}
.ai-v1-banner p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}

/* Freemium Blurred Secret Sections inside Profession Sheet */
.pro-blur-wrap {
  position: relative;
  min-height: 230px;
  border-radius: 16px;
  border: 1.5px solid rgba(108, 76, 245, 0.28);
  overflow: hidden;
}
.pro-blur-inner {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}
.pro-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  background: rgba(11, 11, 18, 0.52);
  backdrop-filter: blur(2px);
  color: #ffffff;
}
.pro-blur-overlay strong {
  font-size: 15.5px;
  max-width: 340px;
}

/* City SVG "Скоро" sticker & locked district badge */
.map-label.lbl-soon rect {
  fill: #1c1b2e;
  stroke: #3fd3bf;
  stroke-width: 1.6;
  stroke-dasharray: 4 3;
}
.map-label.lbl-soon text {
  fill: #dcf5f1;
}
.map-label.lbl-pro rect {
  fill: #24194a;
  stroke: #9b85ff;
  stroke-width: 1.6;
}

/* ==================== 3. PAYWALL, SOON & LEGAL MODALS (DARK #0B0B12 THEME) ==================== */
.am-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 14, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 140;
}
.am-modal-backdrop.is-light {
  background: rgba(28, 27, 46, 0.38);
}
.am-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  z-index: 150;
  background: #121220;
  color: #f4f3fb;
  border: 1px solid rgba(155, 133, 255, 0.34);
  border-radius: 22px;
  padding: 26px 24px 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 14px;
}
.am-modal-top-ctrls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.am-modal-theme-btn {
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #dcd9ef;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.am-modal-theme-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.am-modal-x {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.am-modal-x:hover { background: rgba(255, 255, 255, 0.14); }

.pw-kicker {
  justify-self: start;
  max-width: calc(100% - 148px);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(108, 76, 245, 0.24);
  color: #d4caff;
}
.pw-kicker.is-teal {
  background: rgba(15, 159, 143, 0.18);
  color: #3fd3bf;
}
.pw-title {
  margin: 0;
  padding-right: 34px;
  font-size: 24px;
  line-height: 1.2;
  color: #ffffff;
}
.pw-lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: #c5c2dc;
}
.pw-reason {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(15, 159, 143, 0.16);
  border: 1px solid rgba(63, 211, 191, 0.35);
  color: #ccfbf1;
  font-size: 14.5px;
  font-weight: 600;
}
.pw-perks {
  display: grid;
  gap: 9px;
}
.pw-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.48;
  color: #dad8eb;
}
.pw-perk i {
  font-style: normal;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 159, 143, 0.24);
  color: #5eead4;
  font-weight: 900;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pw-price-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pw-price-lbl { display: block; font-size: 13px; color: #a9a6c4; }
.pw-price-val strong { font-size: 30px; font-family: var(--mono); color: #ffffff; margin-right: 8px; }
.pw-price-val span { font-size: 14px; color: #5eead4; font-weight: 700; }
.pw-yoo-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(108, 76, 245, 0.2);
  color: #d4caff;
}
.pw-actions {
  display: grid;
  gap: 10px;
}
.pw-main-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 18px;
  font-size: 16px;
}
.pw-share-btn {
  width: 100%;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f4f3fb;
  padding: 12px 16px;
  font-size: 15px;
}
.pw-share-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: #9b85ff;
  color: #ffffff;
}
.pw-guarantee {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #9e9cb8;
}

.pw-methods {
  display: grid;
  gap: 10px;
}
.pw-method {
  text-align: left;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f3fb;
  font: inherit;
  padding: 12px 14px;
  border-radius: 13px;
  cursor: pointer;
  display: grid;
  gap: 3px;
}
.pw-method.on {
  border-color: #6c4cf5;
  background: rgba(108, 76, 245, 0.2);
}
.pw-method strong { font-size: 15.5px; }
.pw-method span { font-size: 13.5px; color: #b7b4cf; }

.pw-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #c5c2dc;
}
.pw-field input {
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  padding: 10px 13px;
  border-radius: 11px;
}
.pw-demo-note {
  font-size: 13.5px;
  line-height: 1.48;
  color: #c5c2dc;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.pw-donate-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
}
.pw-donate-title { font-size: 16px; font-weight: 800; color: #ffffff; margin-bottom: 4px; }
.pw-donate-sub { margin: 0 0 12px; font-size: 14px; line-height: 1.48; color: #b5b2cc; }
.pw-donate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pw-don-chip {
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  padding: 9px 16px;
  border-radius: 11px;
  cursor: pointer;
}
.pw-don-chip.on {
  border-color: #0f9f8f;
  background: #0f9f8f;
  color: #ffffff;
}
.pw-don-input {
  width: 155px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font: inherit;
  font-size: 14.5px;
  padding: 9px 12px;
  border-radius: 11px;
}

.legal-body {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.58;
  color: #d4d1e6;
}
.legal-body p { margin: 0; }
.legal-body strong { color: #ffffff; }

/* ==================== 3B. LIGHT THEME FOR PAYWALL, CHECKOUT, SOON & LEGAL MODALS ==================== */
.am-modal.is-light {
  background: #ffffff;
  color: #1c1b2e;
  border: 1px solid #e6e3f0;
  box-shadow: 0 26px 64px rgba(28, 27, 46, 0.18);
}
.am-modal.is-light .am-modal-theme-btn,
.am-modal.is-light .am-modal-x {
  border-color: #e6e3f0;
  background: #f5f4fa;
  color: #1c1b2e;
}
.am-modal.is-light .am-modal-theme-btn:hover,
.am-modal.is-light .am-modal-x:hover {
  background: #ece7ff;
  border-color: #6c4cf5;
  color: #6c4cf5;
}
.am-modal.is-light .pw-kicker {
  background: #ece7ff;
  color: #6c4cf5;
}
.am-modal.is-light .pw-kicker.is-teal {
  background: #dcf5f1;
  color: #0a7569;
}
.am-modal.is-light .pw-title { color: #1c1b2e; }
.am-modal.is-light .pw-lead { color: #56546c; }
.am-modal.is-light .pw-reason {
  background: #dcf5f1;
  border-color: rgba(15, 159, 143, 0.35);
  color: #095c53;
}
.am-modal.is-light .pw-perk { color: #2b2940; }
.am-modal.is-light .pw-perk i {
  background: #dcf5f1;
  color: #0f9f8f;
}
.am-modal.is-light .pw-price-bar {
  background: #f5f4fa;
  border-color: #e6e3f0;
}
.am-modal.is-light .pw-price-lbl { color: #6b6a80; }
.am-modal.is-light .pw-price-val strong { color: #1c1b2e; }
.am-modal.is-light .pw-price-val span { color: #0f9f8f; }
.am-modal.is-light .pw-yoo-badge {
  background: #ece7ff;
  color: #6c4cf5;
}
.am-modal.is-light .pw-share-btn {
  background: #f5f4fa;
  border-color: #dedae9;
  color: #1c1b2e;
}
.am-modal.is-light .pw-share-btn:hover {
  background: #ece7ff;
  border-color: #6c4cf5;
  color: #6c4cf5;
}
.am-modal.is-light .pw-guarantee { color: #6b6a80; }
.am-modal.is-light .pw-method {
  border-color: #e6e3f0;
  background: #f8f7fc;
  color: #1c1b2e;
}
.am-modal.is-light .pw-method.on {
  border-color: #6c4cf5;
  background: #ece7ff;
}
.am-modal.is-light .pw-method span { color: #6b6a80; }
.am-modal.is-light .pw-field { color: #56546c; }
.am-modal.is-light .pw-field input {
  border-color: #dcd8ea;
  background: #f8f7fc;
  color: #1c1b2e;
}
.am-modal.is-light .pw-field input:focus {
  outline: none;
  border-color: #6c4cf5;
  background: #ffffff;
}
.am-modal.is-light .pw-demo-note {
  background: #f5f4fa;
  border-color: #d4cfe6;
  color: #56546c;
}
.am-modal.is-light .pw-donate-box {
  background: #f5f4fa;
  border-color: #e6e3f0;
}
.am-modal.is-light .pw-donate-title { color: #1c1b2e; }
.am-modal.is-light .pw-donate-sub { color: #6b6a80; }
.am-modal.is-light .pw-don-chip {
  border-color: #dcd8ea;
  background: #ffffff;
  color: #1c1b2e;
}
.am-modal.is-light .pw-don-chip.on {
  border-color: #0f9f8f;
  background: #0f9f8f;
  color: #ffffff;
}
.am-modal.is-light .pw-don-input {
  border-color: #dcd8ea;
  background: #ffffff;
  color: #1c1b2e;
}
.am-modal.is-light .legal-body { color: #43415a; }
.am-modal.is-light .legal-body strong { color: #1c1b2e; }

/* Settings box inside Мой портрет */
.settings-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

@media (max-width: 1220px) {
  .city-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1140px) {
  .land-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .land-hero-grid, .land-cards-3, .land-pricing-grid { grid-template-columns: 1fr; }
  .land-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-nav { display: none; }
}
@media (max-width: 620px) {
  .land-trust-grid { grid-template-columns: 1fr; }
  .land-hero-metrics { grid-template-columns: 1fr; }
}

[hidden] { display: none !important; }
