:root {
  color-scheme: dark;
  --bg: #061019;
  --bg-deep: #030a10;
  --panel: rgba(9, 24, 31, .94);
  --panel-soft: rgba(13, 33, 41, .84);
  --text: #f3faf8;
  --muted: #839b99;
  --muted-2: #536c6a;
  --cyan: #63e0c5;
  --cyan-strong: #8bffe6;
  --line: rgba(132, 221, 203, .14);
  --accent: var(--cyan);
  --accent-soft: rgba(99, 224, 197, .1);
  --accent-softer: rgba(99, 224, 197, .04);
  --accent-border: rgba(99, 224, 197, .25);
  --accent-border-strong: rgba(99, 224, 197, .48);
  --accent-gradient-start: #33c7aa;
  --accent-gradient-end: #26848d;
  --accent-shadow: rgba(19, 145, 127, .2);
  --body-glow: rgba(23, 97, 104, .17);
  --body-bg-start: #08131f;
  --body-bg-mid: #050c14;
  --body-bg-end: #07131a;
  --header-bg: rgba(4, 11, 17, .88);
  --catalog-glow-primary: rgba(155, 143, 224, .22);
  --catalog-glow-secondary: rgba(92, 132, 205, .16);
  --catalog-bg-start: #25274f;
  --catalog-bg-end: #16182f;
  --danger: #ff8e98;
  --map-surface: #0b1b25;
  --map-node-text: #d7e8e4;
  --map-region-copy: #78948f;
  --map-edge-opacity: .32;
  --header-height: 66px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg-deep);
}

:root[data-ui-theme="sky"] {
  --bg: #081725;
  --bg-deep: #030b13;
  --panel: rgba(8, 25, 38, .96);
  --panel-soft: rgba(11, 38, 54, .88);
  --muted: #8da9b8;
  --muted-2: #587181;
  --cyan: #62c8ff;
  --cyan-strong: #c1ecff;
  --line: rgba(98, 200, 255, .17);
  --accent-soft: rgba(98, 200, 255, .11);
  --accent-softer: rgba(98, 200, 255, .04);
  --accent-border: rgba(98, 200, 255, .28);
  --accent-border-strong: rgba(98, 200, 255, .52);
  --accent-gradient-start: #399bd7;
  --accent-gradient-end: #326ec0;
  --accent-shadow: rgba(39, 128, 195, .22);
  --body-glow: rgba(67, 163, 218, .18);
  --body-bg-start: #0a1b2b;
  --body-bg-mid: #06101b;
  --body-bg-end: #071826;
  --header-bg: rgba(4, 14, 23, .9);
  --catalog-glow-primary: rgba(76, 188, 237, .25);
  --catalog-glow-secondary: rgba(78, 113, 210, .18);
  --catalog-bg-start: #18344f;
  --catalog-bg-end: #0c192d;
}

:root[data-ui-theme="coral"] {
  --bg: #1a1116;
  --bg-deep: #0c080b;
  --panel: rgba(31, 17, 24, .96);
  --panel-soft: rgba(47, 25, 34, .88);
  --text: #fff7f4;
  --muted: #b49ca1;
  --muted-2: #7b6068;
  --cyan: #ff9299;
  --cyan-strong: #ffd7cc;
  --line: rgba(255, 146, 153, .17);
  --accent-soft: rgba(255, 146, 153, .11);
  --accent-softer: rgba(255, 146, 153, .04);
  --accent-border: rgba(255, 146, 153, .28);
  --accent-border-strong: rgba(255, 146, 153, .52);
  --accent-gradient-start: #e36f78;
  --accent-gradient-end: #af586f;
  --accent-shadow: rgba(192, 72, 91, .22);
  --body-glow: rgba(195, 75, 94, .17);
  --body-bg-start: #21131a;
  --body-bg-mid: #110a0f;
  --body-bg-end: #1a1018;
  --header-bg: rgba(18, 9, 14, .9);
  --catalog-glow-primary: rgba(238, 111, 130, .24);
  --catalog-glow-secondary: rgba(225, 161, 88, .15);
  --catalog-bg-start: #442536;
  --catalog-bg-end: #211321;
}

:root[data-ui-theme="amber"] {
  --bg: #17170f;
  --bg-deep: #0a0b08;
  --panel: rgba(27, 27, 17, .96);
  --panel-soft: rgba(42, 41, 24, .88);
  --text: #fffaf0;
  --muted: #aaa58e;
  --muted-2: #716e59;
  --cyan: #efc45b;
  --cyan-strong: #ffe8a6;
  --line: rgba(239, 196, 91, .17);
  --accent-soft: rgba(239, 196, 91, .11);
  --accent-softer: rgba(239, 196, 91, .04);
  --accent-border: rgba(239, 196, 91, .28);
  --accent-border-strong: rgba(239, 196, 91, .52);
  --accent-gradient-start: #d2a63d;
  --accent-gradient-end: #8f7c35;
  --accent-shadow: rgba(168, 132, 36, .22);
  --body-glow: rgba(176, 151, 67, .16);
  --body-bg-start: #1c1d12;
  --body-bg-mid: #0e100b;
  --body-bg-end: #171811;
  --header-bg: rgba(14, 15, 9, .9);
  --catalog-glow-primary: rgba(232, 188, 80, .22);
  --catalog-glow-secondary: rgba(92, 158, 130, .16);
  --catalog-bg-start: #3d3a21;
  --catalog-bg-end: #1b1d15;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, var(--body-glow), transparent 34%),
    linear-gradient(150deg, var(--body-bg-start) 0%, var(--body-bg-mid) 56%, var(--body-bg-end) 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.alpha-dialog {
  width: min(520px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(760px, calc(100dvh - 24px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
}

.alpha-dialog::backdrop { background: rgba(0, 8, 13, .72); backdrop-filter: blur(4px); }
.alpha-dialog-shell { position: relative; display: grid; gap: 13px; padding: 28px; }
.alpha-dialog h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.dialog-copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.dialog-field { display: grid; gap: 7px; color: #b9d1cc; font-size: 11px; }
.dialog-field input,
.account-inline-form input { min-width: 0; padding: 10px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--text); }
.dialog-actions, .account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dialog-message { min-height: 1.4em; margin: 0; color: var(--muted); font-size: 11px; }
.dialog-message[data-state="error"] { color: #ffadb5; }
.simulation-note { margin: 0; color: #efd171; font-size: 11px; }
.auth-phone-summary { margin: -3px 0 0; color: var(--muted); font-size: 11px; }
.auth-agreement { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.auth-agreement input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
.auth-agreement a { color: var(--accent); text-decoration: none; }
.auth-agreement a:hover { text-decoration: underline; }
.account-dialog {
  width: min(1040px, calc(100vw - 32px));
  overflow: hidden;
}
.account-dialog .alpha-dialog-shell { gap: 18px; padding: 24px; }
.account-dialog-heading { display: grid; gap: 3px; padding-right: 44px; }
.account-dialog-heading > span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}
.account-dialog-heading h2 { font-size: 24px; }
.account-dialog-heading p { margin: 0; color: var(--muted); font-size: 11px; }
#accountContent { min-width: 0; }
.account-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 530px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3, 12, 18, .54);
}
.account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 12px;
  border-right: 1px solid rgba(255,255,255,.065);
  background:
    radial-gradient(circle at 20% 0, var(--accent-soft), transparent 34%),
    rgba(255,255,255,.018);
}
.account-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 3px 8px 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.account-sidebar-profile > span {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--cyan-strong);
  font-size: 12px;
  font-weight: 800;
}
.account-sidebar-profile strong {
  overflow: hidden;
  color: #bdd5d0;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-navigation { display: grid; gap: 5px; }
.account-navigation button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #829a97;
  text-align: left;
  cursor: pointer;
}
.account-navigation button:hover { background: rgba(255,255,255,.035); color: #d8e8e4; }
.account-navigation button.is-active {
  border-color: var(--accent-border);
  background: linear-gradient(100deg, var(--accent-soft), var(--accent-softer));
  color: var(--cyan-strong);
}
.account-navigation button > span { font-size: 15px; text-align: center; }
.account-navigation button > strong { font-size: 11px; font-weight: 650; }
.account-navigation button > small {
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(239,209,113,.1);
  color: #efd171;
  font-size: 7px;
  white-space: nowrap;
}
.account-detail-panel {
  min-width: 0;
  max-height: min(590px, calc(100dvh - 188px));
  padding: 28px;
  overflow: auto;
  outline: none;
}
.account-section-heading { position: relative; display: grid; gap: 6px; margin-bottom: 22px; padding-right: 84px; }
.account-section-heading > span:first-child {
  color: #6e8f89;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .17em;
}
.account-section-heading h3 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.account-section-heading p { max-width: 620px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.account-coming-badge {
  position: absolute;
  top: 2px;
  right: 0;
  padding: 5px 9px;
  border: 1px solid rgba(239,209,113,.2);
  border-radius: 999px;
  background: rgba(239,209,113,.08);
  color: #efd171 !important;
  font-size: 8px !important;
  letter-spacing: .04em !important;
}
.account-profile-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(115deg, var(--accent-soft), rgba(120,191,233,.025));
}
.account-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  background: rgba(5,18,23,.72);
  color: var(--cyan-strong);
  font-size: 17px;
  font-weight: 850;
}
.account-profile-copy { display: grid; flex: 1; gap: 4px; min-width: 0; }
.account-profile-copy strong { font-size: 14px; }
.account-profile-copy span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-profile-edit {
  flex: 0 0 auto;
  padding: 7px 9px !important;
  border-color: rgba(99,224,197,.13) !important;
  color: #a9c7c1 !important;
  font-size: 8px !important;
}
.account-status-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--cyan);
  font-size: 8px;
}
.account-nickname-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 12px;
  margin-top: 10px;
  padding: 14px 15px;
  border: 1px solid rgba(99,224,197,.14);
  border-radius: 13px;
  background: rgba(99,224,197,.035);
}
.account-nickname-form label { display: grid; gap: 6px; color: #c8dcd8; font-size: 9px; }
.account-nickname-form input {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(2,10,15,.52);
  color: var(--text);
}
.account-nickname-form > p { grid-column: 1; margin: 0; color: var(--muted); font-size: 8px; }
.account-nickname-actions { display: flex; grid-row: 1 / span 2; grid-column: 2; gap: 7px; }
.account-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.account-metric {
  display: grid;
  gap: 3px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 13px;
  background: rgba(255,255,255,.018);
}
.account-metric strong { color: #eef9f6; font-size: 22px; }
.account-metric span { color: var(--muted); font-size: 9px; }
.account-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.account-card, .account-inline-form {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(255,255,255,.022);
}
.account-card h3 { margin: 0 0 10px; font-size: 12px; }
.account-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.account-creator-card { background: linear-gradient(135deg, rgba(128,105,196,.07), rgba(255,255,255,.018)); }
.account-text-action {
  margin-top: 12px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--cyan) !important;
  font-size: 9px !important;
}
.account-record-list { display: grid; gap: 9px; }
.account-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: rgba(255,255,255,.02);
}
.account-record > div { display: grid; gap: 5px; min-width: 0; }
.account-record > div > strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-record > div > span { color: var(--muted); font-size: 9px; }
.account-record-action { flex: 0 0 auto; }
.account-record-meta { flex: 0 0 auto; justify-items: end; }
.account-record-meta > strong { color: var(--cyan-strong); }
.account-redemption-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--account-line, rgba(28, 58, 48, .14));
  border-radius: 7px;
  background: rgba(255, 255, 255, .86);
}

.account-redemption-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-muted, #5f6f69);
  font-size: 12px;
  font-weight: 700;
}

.account-redemption-form input {
  min-width: 0;
  min-height: 44px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-redemption-summary {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 15px 18px;
  border-left: 3px solid #299773;
  background: rgba(41, 151, 115, .07);
}

.account-redemption-summary span {
  color: var(--ink-muted, #5f6f69);
  font-size: 13px;
}

.account-referral-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(104,224,197,.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(38,132,110,.16), rgba(29,54,74,.12));
}

@media (max-width: 640px) {
  .account-redemption-form { grid-template-columns: 1fr; }
  .account-redemption-form .primary-button { width: 100%; }
}
.account-referral-hero > div:first-child { display: grid; gap: 7px; min-width: 0; }
.account-referral-hero span { color: #83b8ad; font-size: 9px; font-weight: 750; }
.account-referral-hero strong { color: #eefaf7; font-size: 27px; letter-spacing: .08em; }
.account-referral-hero p { max-width: 520px; margin: 0; color: #a9c5bf; font-size: 10px; line-height: 1.65; }
.account-referral-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.account-referral-metrics { margin-bottom: 12px; }
.account-referral-bound { margin: 0 0 12px; padding: 10px 12px; border-left: 2px solid var(--cyan-strong); color: #b8d8d1; font-size: 10px; }
.account-referral-claim { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.account-referral-claim input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  text-transform: uppercase;
}
.account-referral-claim-card, .account-referral-coupons { margin-top: 10px; }
.account-coupon-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.account-coupon-list article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px dashed rgba(104,224,197,.22);
  border-radius: 7px;
  background: rgba(82,177,153,.06);
}
.account-coupon-list strong { color: var(--cyan-strong); font-size: 18px; }
.account-coupon-list span { color: #c2d9d4; font-size: 9px; }
.account-coupon-list small { color: var(--muted); font-size: 8px; }
.account-empty-state {
  display: grid;
  min-height: 210px;
  place-content: center;
  gap: 7px;
  padding: 24px;
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 15px;
  text-align: center;
}
.account-empty-state strong { font-size: 13px; }
.account-empty-state p { max-width: 380px; margin: 0; color: var(--muted); font-size: 10px; }
.account-cocreate-hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(153,123,222,.18);
  border-radius: 17px;
  background:
    radial-gradient(circle at 95% 10%, rgba(99,224,197,.13), transparent 28%),
    linear-gradient(135deg, rgba(116,83,188,.12), rgba(10,26,34,.65));
}
.account-cocreate-hero > span { color: #a991df; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.account-cocreate-hero h4 { max-width: 520px; margin: 10px 0 8px; font-size: 20px; line-height: 1.35; }
.account-cocreate-hero > p { max-width: 610px; margin: 0; color: #a8bebb; font-size: 10px; line-height: 1.7; }
.account-cocreate-action { margin-top: 18px; }
.account-cocreate-action:disabled { opacity: .45; cursor: not-allowed; }
.account-development-note { margin-top: 8px !important; color: #efd171 !important; font-size: 8px !important; }
.account-cocreate-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.account-cocreate-steps article {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 13px;
  background: rgba(255,255,255,.018);
}
.account-cocreate-steps span { color: #6f928c; font-size: 8px; font-weight: 800; }
.account-cocreate-steps strong { font-size: 11px; }
.account-cocreate-steps p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.account-info-list { display: grid; gap: 1px; overflow: hidden; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; }
.account-info-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  background: rgba(255,255,255,.02);
}
.account-info-list span { color: var(--muted); font-size: 9px; }
.account-info-list strong { font-size: 10px; font-weight: 650; text-align: right; }
.account-security-card { margin-top: 10px; }
.account-device-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.account-device-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; color: #c5dfd9; font-size: 10px; }
.account-device-list li > div { display: grid; gap: 3px; }
.account-device-list li > div span { color: var(--muted); font-size: 8px; }
.account-security-actions { border-color: rgba(255,142,152,.1); }
.account-preference-list { display: grid; gap: 8px; }
.account-preference-list > section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}
.account-preference-list section > div { display: grid; gap: 5px; }
.account-preference-list strong { font-size: 11px; }
.account-preference-list p { max-width: 520px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.account-theme-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 7px;
  width: min(320px, 100%);
}
.account-theme-option {
  display: grid;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  gap: 4px;
  padding: 7px 6px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: pointer;
}
.account-theme-option:hover { border-color: var(--accent-border); color: var(--text); }
.account-theme-option[aria-checked="true"] {
  border-color: var(--accent-border-strong);
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: 0 0 0 2px var(--accent-softer);
}
.account-theme-option > span:last-child { font-size: 9px; }
.account-theme-swatch {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  box-shadow: 0 2px 9px rgba(0,0,0,.3);
}
.account-theme-option[data-theme-option="jade"] .account-theme-swatch { background: linear-gradient(135deg, #63e0c5 0 52%, #304b82 52%); }
.account-theme-option[data-theme-option="sky"] .account-theme-swatch { background: linear-gradient(135deg, #62c8ff 0 52%, #326ec0 52%); }
.account-theme-option[data-theme-option="coral"] .account-theme-swatch { background: linear-gradient(135deg, #ff9299 0 52%, #af586f 52%); }
.account-theme-option[data-theme-option="amber"] .account-theme-swatch { background: linear-gradient(135deg, #efc45b 0 52%, #527d69 52%); }
.account-switch[role="switch"] { min-width: 70px; }
.account-switch[aria-checked="true"] { border-color: var(--accent-border); background: var(--accent-soft); color: var(--cyan-strong); }
.account-reset-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(255,142,152,.18);
  border-radius: 13px;
  background: rgba(255,142,152,.045);
}
.account-reset-confirm > div { display: grid; flex: 1; gap: 3px; }
.account-reset-confirm strong { color: #ffd6d9; font-size: 10px; }
.account-reset-confirm span { color: #ba9699; font-size: 8px; }
.account-message { min-height: 16px; margin: 8px 4px 0; color: var(--muted); font-size: 9px; }
.account-message[data-state="error"] { color: #ffadb5; }
.account-inline-form { display: grid; gap: 9px; margin-top: 10px; }
.account-inline-form label { display: grid; gap: 6px; color: #b9d1cc; font-size: 11px; }
.account-inline-form p { margin: 0; color: var(--muted); font-size: 11px; }
.account-destructive-dialog {
  width: min(440px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 0;
  border: 1px solid rgba(255,142,152,.42);
  border-radius: 18px;
  background: #1b1117;
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0,0,0,.65);
}
.account-destructive-dialog::backdrop { background: rgba(0, 5, 9, .82); backdrop-filter: blur(6px); }
.account-destructive-form { display: grid; gap: 12px; padding: 24px; }
.account-destructive-form h3 { margin: 0; color: #ffd6d9; font-size: 22px; }
.account-destructive-form p { margin: 0; color: #d3aeb1; font-size: 11px; line-height: 1.65; }
.account-destructive-form label { display: grid; gap: 6px; color: #efdadd; font-size: 11px; }
.account-destructive-form input { min-width: 0; padding: 10px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--text); }

.alpha-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-height);
  padding: 0 28px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(0, 5, 9, .12);
}

.alpha-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
}

.alpha-brand-mark {
  width: 29px;
  height: 29px;
  border: 7px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#071019, #071019) padding-box,
    conic-gradient(from 35deg, #61dec5, #78bfe9, #bd83da, #e78c9f, #efd171, #61dec5) border-box;
}

.alpha-brand strong {
  font-size: 15px;
  letter-spacing: 0;
  white-space: nowrap;
}

.alpha-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 11px;
}

.alpha-nav > a,
.alpha-nav > span {
  min-width: 76px;
  padding: 8px 12px;
  border-radius: 6px;
  color: inherit;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.alpha-nav > a {
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.alpha-nav > a:hover,
.alpha-nav > a:focus-visible {
  background: var(--accent-soft);
  color: var(--cyan-strong);
}

.alpha-nav > [aria-current="page"] {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-border);
  color: var(--cyan-strong);
  font-weight: 700;
}

.nav-label-compact {
  display: none;
}

.alpha-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.alpha-header-purchase {
  appearance: none;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--accent-border-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  box-shadow: 0 8px 24px var(--accent-shadow);
  color: #f4fffd;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

.alpha-header-purchase:hover,
.alpha-header-purchase:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.alpha-header-purchase:disabled {
  box-shadow: none;
  cursor: default;
  filter: saturate(.45);
  opacity: .66;
  transform: none;
}

.alpha-header-progress {
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 2px;
}

.alpha-header-progress > span {
  display: grid;
  gap: 2px;
  min-width: 62px;
  padding: 0 12px;
  border-left: 1px solid rgba(255,255,255,.09);
}

.alpha-header-progress small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
}

.alpha-header-progress strong {
  color: var(--cyan);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.ghost-button.alpha-header-account {
  min-width: 58px;
  max-width: 150px;
  min-height: 38px;
  overflow: hidden;
  border-radius: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-chip,
.ghost-button,
.primary-button,
.danger-button {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
}

.header-chip {
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 11px;
}

.header-chip strong {
  margin-left: 5px;
  color: var(--cyan);
}

.ghost-button,
.primary-button,
.danger-button {
  appearance: none;
  padding: 9px 14px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.ghost-button {
  color: #9bb0ad;
  background: rgba(255,255,255,.025);
  font-size: 11px;
}

.primary-button {
  border-color: var(--accent-border-strong);
  background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  box-shadow: 0 10px 30px var(--accent-shadow);
  color: #f4fffd;
  font-weight: 700;
}

.danger-button {
  border-color: rgba(255,142,152,.3);
  background: rgba(255, 93, 108, .09);
  color: #ffadb5;
}

.ghost-button:hover,
.primary-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

#alphaApp {
  position: relative;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

.alpha-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Catalog */

#catalogView {
  background:
    radial-gradient(circle at 50% 42%, var(--catalog-glow-primary), transparent 38%),
    radial-gradient(circle at 18% 78%, var(--catalog-glow-secondary), transparent 34%),
    linear-gradient(180deg, var(--catalog-bg-start), var(--catalog-bg-end));
}

#catalogMount,
#catalogMount canvas,
#catalogLabels {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#catalogMount {
  z-index: 1;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#catalogMount:active { cursor: grabbing; }

#catalogLabels {
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.catalog-intro {
  position: absolute;
  z-index: 8;
  top: 30px;
  left: 34px;
  width: min(415px, 40vw);
  pointer-events: none;
}

.eyebrow {
  margin-bottom: 10px;
  color: #72d9c4;
  font-size: 10px;
  letter-spacing: .2em;
}

.catalog-intro h1 {
  max-width: 460px;
  margin: 0;
  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.catalog-intro p {
  max-width: 385px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.catalog-hint {
  position: absolute;
  z-index: 8;
  bottom: 18px;
  left: 50%;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 999px;
  background: rgba(3, 10, 15, .62);
  color: #667b7a;
  font-size: 10px;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.catalog-filing {
  position: absolute;
  z-index: 8;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6f8381;
  font-size: 9px;
  line-height: 1.5;
  white-space: nowrap;
}

.catalog-filing a {
  color: #7f9692;
  text-decoration: none;
  transition: color .18s ease;
}

.catalog-filing a:hover,
.catalog-filing a:focus-visible {
  color: #b7d8d1;
  text-decoration: underline;
}

.planet-label {
  position: absolute;
  appearance: none;
  min-width: 88px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: opacity .18s ease, background .18s ease, box-shadow .18s ease;
}

.planet-label strong {
  display: block;
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(10, 8, 32, .88);
}

.planet-label small {
  display: block;
  margin-top: 3px;
  color: #627675;
  font-size: 8px;
  letter-spacing: .06em;
}

.planet-label:not(.is-unlocked) small { color: #c3c5df; }

.planet-label.is-unlocked small { color: #b9ffe9; }

.planet-label:hover,
.planet-label.is-selected {
  background: rgba(5, 18, 24, .86);
  box-shadow: 0 0 0 1px rgba(99,224,197,.2), 0 10px 30px rgba(0,0,0,.25);
}

.planet-label.is-selected strong { color: var(--cyan-strong); }

#catalogMount[data-focus-active="true"] + #catalogLabels .planet-label.is-selected {
  background: rgba(38, 35, 78, .9);
  box-shadow:
    0 0 0 1px rgba(233, 226, 255, .45),
    0 12px 34px rgba(10, 8, 32, .34);
}

.domain-preview {
  position: absolute;
  z-index: 16;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 36px));
  max-height: calc(100% - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(116, 224, 202, .16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 0%, rgba(72, 210, 181, .12), transparent 34%),
    rgba(8, 21, 28, .95);
  box-shadow: 0 25px 70px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
  transform: translateX(calc(100% + 30px));
  transition: transform .36s cubic-bezier(.2,.8,.2,1);
}

.domain-preview[hidden] {
  display: none;
  pointer-events: none;
}

.domain-preview.is-open { transform: translateX(0); }

.panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  color: #879b99;
  cursor: pointer;
}

.domain-preview-kicker {
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: .17em;
}

.domain-preview h2 {
  margin: 10px 38px 4px 0;
  font-size: 27px;
  letter-spacing: -.04em;
}

.domain-preview-english {
  color: #55706e;
  font-size: 9px;
  letter-spacing: .12em;
}

.domain-preview-description {
  margin: 18px 0;
  color: #b4c8c5;
  font-size: 13px;
  line-height: 1.75;
}

.preview-outline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 18px;
}

.preview-outline span {
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: #91a8a5;
  font-size: 10px;
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #6c8582;
  font-size: 10px;
}

.preview-price {
  margin-bottom: 12px;
  font-size: 31px;
  font-weight: 800;
}

.preview-price small {
  color: #647d7a;
  font-size: 10px;
  font-weight: 400;
}

.domain-preview .primary-button { width: 100%; }

.preview-note {
  margin: 10px 0 0;
  color: #4d6361;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

.catalog-fallback-list {
  position: absolute;
  z-index: 3;
  inset: 150px 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: auto;
}

.catalog-fallback-list button {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-soft);
  color: #a9bfbb;
  cursor: pointer;
  text-align: left;
}

.catalog-fallback-list button strong { color: #effbf8; font-size: 15px; }
.catalog-fallback-list button span { font-size: 10px; line-height: 1.55; }
.catalog-fallback-list button small { margin-top: auto; color: var(--cyan); }

/* AI map header and toolbar */

#aiMapView {
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(23, 128, 119, .12), transparent 30%),
    #050d14;
}

.ai-map-header {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(5,14,20,.92);
}

.ai-map-back {
  flex: 0 0 auto;
}

.ai-map-heading {
  min-width: 0;
  margin-right: auto;
}

.ai-map-heading h1 {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-map-heading p {
  margin: 4px 0 0;
  color: #5e7774;
  font-size: 9px;
}

.map-toolbar {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  background: rgba(7, 18, 24, .9);
}

.node-search {
  position: relative;
  flex: 0 0 250px;
}

.node-search input {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #e6f7f3;
  font-size: 11px;
}

.node-search input::placeholder { color: #506664; }

.node-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: 320px;
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(116,224,202,.18);
  border-radius: 14px;
  background: rgba(7, 19, 25, .98);
  box-shadow: 0 20px 45px rgba(0,0,0,.4);
}

.node-search-results button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.node-search-results button:hover { background: rgba(99,224,197,.08); }
.node-search-results strong { color: #dff8f2; font-size: 11px; }
.node-search-results small { color: #607774; font-size: 8px; }

.map-mode-tabs,
.region-filters {
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-mode-tabs button,
.region-filters button {
  appearance: none;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #657b79;
  cursor: pointer;
  font-size: 9px;
  white-space: nowrap;
}

.map-mode-tabs button.is-active,
.region-filters button.is-active {
  border-color: rgba(99,224,197,.25);
  background: rgba(99,224,197,.08);
  color: #8be8d4;
}

.toolbar-separator {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.08);
}

.map-toolbar .toolbar-spacer { flex: 1; }

.alpha-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 365px);
  grid-template-rows: minmax(0, 1fr);
  height: calc(100% - 62px - 54px - 52px);
}

.map-viewport {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 48% 48%, rgba(25,109,106,.09), transparent 34%),
    var(--map-surface);
  background-size: 38px 38px, 38px 38px, auto, auto;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.map-viewport.is-dragging { cursor: grabbing; }

.map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: max(1800px, 100%);
  height: max(1200px, 100%);
  transform-origin: 0 0;
  will-change: auto;
}

.map-canvas.is-transforming { will-change: transform; }

.map-canvas.is-layout-pending #nodeLayer,
.map-canvas.is-layout-pending #edgeLayer {
  visibility: hidden;
}

.map-canvas::after {
  content: "";
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, transparent 58%, rgba(2,8,12,.4) 100%);
}

.knowledge-region {
  position: absolute;
  z-index: 1;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--region-color) 38%, transparent);
  border-radius: 38% 62% 56% 44% / 45% 42% 58% 55%;
  background: color-mix(in srgb, var(--region-color) 9%, transparent);
  pointer-events: none;
}

.region-copy {
  position: relative;
  z-index: 3;
  width: max-content;
  max-width: 160px;
}

.knowledge-region .region-index {
  color: color-mix(in srgb, var(--region-color) 76%, #6f8e89);
  font-size: 8px;
  letter-spacing: .12em;
}

.knowledge-region h3 {
  margin: 4px 0 0;
  color: color-mix(in srgb, var(--region-color) 78%, #9ab7b2);
  font-size: 11px;
  letter-spacing: .08em;
}

.knowledge-region p {
  max-width: 160px;
  margin: 4px 0 0;
  color: var(--map-region-copy);
  font-size: 8px;
}

#edgeLayer {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.knowledge-edge line {
  stroke: rgb(105 176 166 / var(--map-edge-opacity));
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.knowledge-edge text {
  display: none;
  fill: #77a69f;
  font-size: calc(8px * var(--inverse-scale, 1));
  text-anchor: middle;
}

.knowledge-edge.is-selected-edge line {
  stroke: rgba(94, 229, 200, .72);
  stroke-width: 1.8;
}

.knowledge-edge.is-selected-edge text { display: block; }
.knowledge-edge.is-route-edge line { stroke-dasharray: 6 6; }

#nodeLayer {
  position: absolute;
  z-index: 5;
  inset: 0;
}

.knowledge-node {
  position: absolute;
  appearance: none;
  min-width: 82px;
  max-width: 126px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--node-color) 45%, transparent);
  border-radius: 11px;
  background: rgba(11, 31, 39, .96);
  box-shadow: 0 7px 18px rgba(0,0,0,.2);
  cursor: pointer;
  text-align: center;
  transform:
    translate(-50%, -50%)
    scale(var(--inverse-scale, 1));
  transition: opacity .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.knowledge-node span {
  display: block;
  color: var(--map-node-text);
  font-size: 10px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.knowledge-node small {
  display: block;
  margin-top: 3px;
  color: #8ca6a1;
  font-size: 7px;
}

.knowledge-node:hover,
.knowledge-node.is-related {
  border-color: color-mix(in srgb, var(--node-color) 70%, white 10%);
  background: color-mix(in srgb, var(--node-color) 11%, #07151b);
}

.knowledge-node.is-selected {
  z-index: 8;
  border-color: var(--node-color);
  background: color-mix(in srgb, var(--node-color) 24%, #07151b);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--node-color) 10%, transparent), 0 12px 30px rgba(0,0,0,.34);
}

.knowledge-node.is-selected span { color: #f1fffb; }
.knowledge-node.is-route-node { border-style: dashed; }
.knowledge-node.is-dimmed { opacity: .18; }

.knowledge-node.is-undiscovered {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--node-color) 30%, rgba(255,255,255,.18));
  background: color-mix(in srgb, var(--node-color) 6%, rgba(9, 28, 35, .92));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 5px 14px rgba(0,0,0,.14);
}

.knowledge-node.is-undiscovered span { color: #abc1bc; }
.knowledge-node.is-undiscovered small { color: #718d87; }

/* Concept panel */

.concept-panel {
  position: relative;
  z-index: 10;
  overflow: auto;
  border-left: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(circle at 100% 0%, rgba(65, 191, 169, .08), transparent 28%),
    rgba(7, 18, 24, .98);
}

.concept-card {
  min-height: 100%;
  padding: 22px;
}

.concept-badge {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(99,224,197,.2);
  border-radius: 999px;
  background: rgba(99,224,197,.06);
  color: #6fd6bf;
  font-size: 8px;
  letter-spacing: .1em;
}

.concept-badge.is-current-case {
  border-color: rgba(239, 174, 96, .25);
  background: rgba(239, 174, 96, .07);
  color: #efb774;
}

.concept-card.is-undiscovered .concept-badge {
  border-color: rgba(246, 194, 92, .42);
  background: rgba(246, 194, 92, .12);
  color: #f2c76f;
}

.concept-card.is-undiscovered .concept-meta {
  color: color-mix(in srgb, var(--map-catalog-accent, #b8fff1) 72%, #8da9a4);
}

.concept-card > h2 {
  margin: 10px 0 5px;
  font-size: 29px;
  letter-spacing: 0;
}

.concept-meta {
  margin: 0 0 17px;
  color: #8da9a4;
  font-size: 9px;
}

.concept-question {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--map-catalog-base, #258b78) 34%, #d9e8e4);
  border-radius: 8px;
  background: #f7fbfa;
  box-shadow: 0 12px 30px rgba(2, 24, 31, .2);
}

.concept-question h3,
.concept-question p { margin: 0; }

.concept-question h3 {
  color: #173b39;
  font-size: 12px;
}

.concept-question-balance {
  justify-self: start;
  padding: 4px 7px;
  border: 1px solid #d6e5e1;
  border-radius: 999px;
  background: #edf5f2;
  color: #42655f;
  font-size: 9px;
}

.concept-question-prompt {
  color: #183431;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.concept-question-clue {
  padding: 11px 12px;
  border-left: 3px solid var(--map-catalog-base, #258b78);
  border-radius: 0 6px 6px 0;
  background: color-mix(in srgb, var(--map-catalog-accent, #33a88e) 9%, #edf7f8);
  color: #284744;
  font-size: 10px;
  line-height: 1.7;
}

.concept-discovery-guidance {
  max-width: 34em;
  margin: 14px 0 18px;
  color: #a9c2bc;
  font-size: 10px;
  line-height: 1.7;
}

.concept-question-options {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.concept-question-options label {
  display: grid;
  grid-template-columns: 18px 20px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 9px;
  border: 1px solid #d9e5e2;
  border-radius: 6px;
  background: #fff;
  color: #243d39;
  font-size: 10px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.concept-question-options input { accent-color: var(--map-catalog-base, #258b78); }

.concept-question-options label strong {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 4px;
  background: #e8f1f8;
  color: #24618c;
}

.concept-question-options label:nth-of-type(2) strong {
  background: #e8f5ee;
  color: #26704b;
}

.concept-question-options label:nth-of-type(3) strong {
  background: #fff2d9;
  color: #96610a;
}

.concept-question-options label:nth-of-type(4) strong {
  background: #fdebe7;
  color: #a34d3c;
}

.concept-question-options label:hover {
  border-color: color-mix(in srgb, var(--map-catalog-base, #258b78) 48%, #b9cbc6);
  box-shadow: 0 4px 12px rgba(21, 59, 55, .08);
}

.concept-question-options label:has(input:checked) {
  border-color: color-mix(in srgb, var(--map-catalog-base, #258b78) 72%, #59736e);
  background: color-mix(in srgb, var(--map-catalog-accent, #33a88e) 10%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--map-catalog-base, #258b78) 16%, transparent);
}

.concept-question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.concept-question-actions button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 9px;
}

.concept-question-actions .primary-button {
  border-color: color-mix(in srgb, var(--map-catalog-base, #258b78) 76%, #173f38);
  background: var(--map-catalog-base, #258b78);
  color: #fff;
}

.concept-question-actions .ghost-button {
  border-color: #ead49c;
  background: #fff8e8;
  color: #76510b;
}

.concept-question-actions .ghost-button:nth-of-type(3) {
  border-color: #d8d8e8;
  background: #f5f4fa;
  color: #55536c;
}

.concept-recharge-button {
  border: 0;
  background: transparent;
  color: #287468;
  cursor: pointer;
}

.concept-question-message,
.concept-question-loading,
.concept-question-error {
  color: #5c7771;
  font-size: 9px;
  line-height: 1.5;
}

.concept-question-message.is-correct {
  color: #147552;
  font-size: 13px;
  font-weight: 800;
}

.concept-question-answer {
  padding-top: 10px;
  border-top: 1px solid #d9e5e2;
  color: #173b35;
  font-size: 11px;
  font-weight: 700;
}

.concept-question-explanation {
  color: #496660;
  font-size: 10px;
  line-height: 1.65;
}

.points-dialog { width: min(560px, calc(100vw - 24px)); }
.points-dialog-shell { gap: 16px; }
.points-wallet-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 16px;
  border: 1px solid rgba(99,224,197,.18);
  border-radius: 8px;
  background: rgba(99,224,197,.055);
}
.points-wallet-summary span { color: #9eb9b3; font-size: 10px; }
.points-wallet-summary strong { color: #effffb; font-size: 26px; }
.points-wallet-summary small { grid-column: 1 / -1; color: #829e98; font-size: 9px; }
.points-recharge-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.points-amount-field { display: grid; gap: 7px; color: #b9d2cc; font-size: 10px; }
.points-amount-input-wrap { position: relative; display: block; }
.points-amount-input-wrap > span {
  position: absolute;
  top: 50%;
  left: 13px;
  color: #8fcfc0;
  font-size: 16px;
  font-weight: 700;
  transform: translateY(-50%);
}
.points-amount-input-wrap input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px 8px 34px;
  border: 1px solid rgba(143,207,192,.28);
  border-radius: 6px;
  background: rgba(2,12,18,.62);
  color: #effffb;
  font: inherit;
  font-size: 15px;
}
.points-amount-input-wrap input:focus { border-color: #63e0c5; outline: 2px solid rgba(99,224,197,.15); }
.points-recharge-preview { grid-column: 1; min-height: 18px; margin: 0; color: #8fcfc0; font-size: 10px; }
.points-recharge-preview[data-state="error"] { color: #ff9d91; }
.points-recharge-button { grid-column: 2; grid-row: 1 / span 2; min-height: 42px; padding-inline: 20px; }
.points-rule-note { margin: 0; color: #8da6a1; font-size: 9px; line-height: 1.6; }

.concept-block {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.065);
}

.concept-block h3,
.concept-sources h3 {
  margin: 0 0 6px;
  color: #a2c0ba;
  font-size: 8px;
  letter-spacing: .13em;
}

.concept-block p {
  margin: 0;
  color: #c9ddd8;
  font-size: 11px;
  line-height: 1.72;
}

.concept-relations > div {
  display: grid;
  gap: 5px;
}

.concept-relations button {
  padding: 8px 9px;
  border: 1px solid rgba(99,224,197,.12);
  border-radius: 8px;
  background: rgba(99,224,197,.035);
  color: #afe5da;
  cursor: pointer;
  font-size: 9px;
  line-height: 1.4;
  text-align: left;
}

.concept-more {
  margin: 4px 0 16px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px;
  background: rgba(255,255,255,.02);
}

.concept-more summary {
  color: #abc5c0;
  cursor: pointer;
  font-size: 9px;
}

.concept-more p {
  margin: 10px 0 0;
  color: #c1d6d1;
  font-size: 10px;
  line-height: 1.7;
}

.concept-sources {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.065);
}

.concept-sources ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.concept-sources a {
  color: #92d2c6;
  font-size: 9px;
  text-decoration: none;
}

.concept-sources a:hover { color: var(--cyan); text-decoration: underline; }

.concept-updated {
  display: block;
  margin-top: 14px;
  color: #8ba39e;
  font-size: 8px;
}

.route-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 52px;
  padding: 0 18px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(4, 12, 17, .95);
}

.route-footer button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6d8784;
  cursor: pointer;
  font-size: 10px;
}

.route-footer button:last-child { text-align: right; }
.route-footer button:disabled { opacity: .28; cursor: default; }
.route-footer strong { color: #88daca; font-size: 10px; }

/* Discovered concept reading view */

#conceptDetailView {
  overflow-y: auto;
  background: var(--domain-bg, #f7fbfa);
  color: var(--domain-text, #1d3040);
}

.concept-detail-header {
  position: sticky;
  z-index: 8;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 84px;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--domain-line, rgba(23, 107, 214, .18));
  background: color-mix(in srgb, var(--domain-panel, #fff) 94%, transparent);
  backdrop-filter: blur(18px);
}

.concept-detail-header > div { min-width: 0; }
.concept-detail-header span {
  color: var(--domain-accent, #176bd6);
  font-size: 10px;
  font-weight: 750;
}
.concept-detail-header h1 {
  overflow: hidden;
  margin: 3px 0 0;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.concept-detail-content {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.concept-detail-intro {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--domain-line, rgba(23, 107, 214, .18));
}
.concept-detail-badge {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid var(--domain-line, rgba(23, 107, 214, .2));
  border-radius: 999px;
  background: var(--domain-panel-soft, #edf7f6);
  color: var(--domain-accent, #176bd6);
  font-size: 10px;
  font-weight: 750;
}
.concept-detail-intro h1 {
  margin: 16px 0 8px;
  color: var(--domain-text, #1d3040);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.16;
}
.concept-detail-meta {
  margin: 0;
  color: var(--domain-muted, #65798a);
  font-size: 12px;
}

.concept-detail-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--domain-line, rgba(23, 107, 214, .15));
}
.concept-detail-block h2 {
  margin: 0 0 10px;
  color: var(--domain-accent, #176bd6);
  font-size: 13px;
}
.concept-detail-block p {
  max-width: 68em;
  margin: 0;
  color: var(--domain-text, #1d3040);
  font-size: 16px;
  line-height: 1.85;
}
.concept-detail-block.is-summary p {
  font-size: 20px;
  font-weight: 680;
  line-height: 1.65;
}
.concept-detail-block.is-misconception {
  border-left: 3px solid var(--domain-accent-3, #c78716);
  padding-left: 18px;
}
.concept-detail-relations > div {
  display: grid;
  gap: 8px;
}
.concept-detail-relations a {
  padding: 11px 0;
  border-bottom: 1px dashed var(--domain-line, rgba(23, 107, 214, .18));
  color: var(--domain-accent-strong, #0c4fa5);
  font-size: 13px;
  text-decoration: none;
}
.concept-detail-relations a:hover { color: var(--domain-accent, #176bd6); }
.concept-detail-sources ul { margin: 0; padding-left: 20px; }
.concept-detail-sources a { color: var(--domain-accent-strong, #0c4fa5); font-size: 12px; }
.concept-detail-empty { color: var(--domain-muted, #65798a) !important; font-size: 13px !important; }
.concept-detail-updated {
  display: block;
  margin-top: 22px;
  color: var(--domain-muted, #65798a);
  font-size: 10px;
}
.concept-detail-map-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--domain-accent-strong, #0c4fa5);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

/* Preview view */

#domainPreviewView {
  overflow: auto;
  padding: 32px;
  background:
    radial-gradient(circle at 75% 20%, rgba(60,140,134,.15), transparent 30%),
    #061019;
}

.locked-domain-page {
  width: min(760px, 100%);
  margin: 30px auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.locked-domain-page h1 { margin: 15px 0 8px; font-size: clamp(32px, 6vw, 55px); }
.locked-domain-page p { color: #9bb0ad; line-height: 1.75; }

.locked-outline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.locked-outline div {
  min-height: 96px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.locked-outline strong { display: block; margin-bottom: 6px; font-size: 12px; }
.locked-outline span { color: #607875; font-size: 10px; line-height: 1.5; }

.locked-geometry {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(99,224,197,.12);
  border-radius: 22px;
  background: radial-gradient(circle, rgba(65,183,164,.1), rgba(3,11,16,.8));
  overflow: hidden;
}

.locked-geometry::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle, transparent 35%, rgba(4,13,18,.38));
  pointer-events: none;
}

.locked-geometry span {
  display: grid;
  place-items: center;
  min-height: 90px;
  padding: 12px;
  border: 1px solid rgba(99,224,197,.15);
  border-radius: 45% 55% 58% 42% / 48% 42% 58% 52%;
  background: rgba(30,106,99,.13);
  color: #8cb4ad;
  filter: saturate(.55);
  font-size: 10px;
  text-align: center;
}

.locked-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}

.locked-facts div {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.locked-facts dt { color: var(--muted); font-size: 9px; }
.locked-facts dd { margin: 6px 0 0; color: #dff8f2; font-size: 14px; font-weight: 700; }
.locked-actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* Quiz, result, checkout and review */

#quizView { overflow: auto; background: #061019; }
#quizMount { min-height: 100%; }

.quiz-shell {
  display: grid;
  grid-template-columns: minmax(286px, 300px) minmax(0, 760px);
  justify-content: center;
  gap: 18px;
  min-height: 100%;
  padding: 28px;
}

.quiz-navigator,
.quiz-question-panel,
.quiz-overview-drawer,
.commerce-card {
  border: 1px solid rgba(116,224,202,.14);
  border-radius: 18px;
  background: var(--panel);
}

.quiz-navigator { align-self: start; padding: 18px; }
.quiz-navigator-heading { display: grid; gap: 5px; margin-bottom: 14px; }
.quiz-navigator-heading span { color: var(--muted); font-size: 9px; }
.quiz-navigator ol,
.quiz-overview-drawer ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quiz-nav-button {
  position: relative;
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: pointer;
}

.quiz-nav-button[data-state="current"] { border-color: var(--cyan); color: #effffb; box-shadow: 0 0 0 2px rgba(99,224,197,.12); }
.quiz-nav-button[data-state="answered"],
.quiz-nav-button.is-answered { background: rgba(99,224,197,.1); color: #9debd9; }
.quiz-nav-button[data-state="unanswered"],
.quiz-nav-button.is-unanswered { border-style: dashed; }
.quiz-nav-button[data-marked="true"],
.quiz-nav-button.is-marked { border-color: #efd171; }
.quiz-nav-button[data-marked="true"]::after { position: absolute; top: 3px; right: 4px; content: "•"; color: #efd171; }

.quiz-question-panel { align-self: start; min-height: 480px; padding: clamp(22px, 5vw, 48px); }
.quiz-question-count, .quiz-question-type { color: var(--muted); font-size: 10px; }
.quiz-question-panel h2 { margin: 14px 0 24px; font-size: clamp(22px, 3vw, 34px); line-height: 1.35; }
.quiz-answer-area { display: grid; gap: 10px; }
.quiz-answer-area > input { padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--text); }
.quiz-option { display: flex; gap: 10px; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; color: #c7dcd7; cursor: pointer; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.quiz-save-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}
.quiz-save-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #ffadb5;
}
.quiz-save-error button {
  padding: 6px 10px;
  border: 1px solid rgba(255,142,152,.34);
  border-radius: 999px;
  background: rgba(255,93,108,.09);
  color: #ffd6d9;
  cursor: pointer;
}
.quiz-overview-drawer { display: none; padding: 12px; }
.quiz-overview-drawer summary { cursor: pointer; }
.quiz-overview-drawer ol { margin-top: 12px; }
.quiz-result h2 { font-size: clamp(44px, 8vw, 76px); }
.quiz-score-components, .quiz-error-count, .quiz-best-price, .quiz-next-price { color: #a9c7c1; }
.quiz-history { display: grid; gap: 7px; padding-left: 20px; color: var(--muted); font-size: 10px; }
.quiz-review { display: grid; gap: 12px; padding: 22px; }
.quiz-review > h2 { margin: 0; }
.quiz-review-card {
  padding: 14px;
  border: 1px solid rgba(255,142,152,.16);
  border-radius: 12px;
  background: rgba(255,142,152,.035);
}
.quiz-review-card h3 { margin: 0 0 10px; font-size: 14px; }
.quiz-review-card p { margin: 5px 0; color: #bdd1cd; font-size: 10px; line-height: 1.6; }
.quiz-review-card .quiz-review-explanation { color: #e6f3f0; }
.quiz-review-card button { margin-top: 9px; }

.commerce-shell { display: grid; min-height: 100%; place-items: center; padding: 24px; }
.commerce-card { width: min(560px, 100%); padding: 28px; }
.commerce-amount { color: var(--cyan-strong); font-size: 42px; font-weight: 800; }
.commerce-discount { margin: -18px 0 18px; color: #17885a; font-size: 13px; font-weight: 750; }
.commerce-details { display: grid; gap: 8px; color: #b8cfca; }
.commerce-simulation { color: #efd171; font-weight: 700; }
.commerce-provider { color: #16894f; font-weight: 750; }
.commerce-referral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(99,224,197,.14);
  border-radius: 8px;
  background: rgba(99,224,197,.035);
}
.commerce-referral label { display: grid; gap: 7px; }
.commerce-referral label > span { color: #9fc7be; font-size: 11px; font-weight: 700; }
.commerce-referral input {
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  background: rgba(2,10,14,.42);
  color: var(--text);
  font: inherit;
  text-transform: uppercase;
}
.commerce-referral input:focus {
  border-color: var(--cyan);
  outline: 2px solid rgba(99,224,197,.12);
  outline-offset: 1px;
}
.commerce-referral .ghost-button {
  height: 40px;
  border-color: rgba(31,139,98,.34);
  background: rgba(31,139,98,.08);
  color: #146f4c;
  font-weight: 750;
}
.commerce-referral .ghost-button:hover {
  border-color: rgba(31,139,98,.52);
  background: rgba(31,139,98,.13);
}
.commerce-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(99,224,197,.16);
  border-radius: 8px;
  background: rgba(99,224,197,.04);
  color: #9fc7be;
  font-size: 11px;
  line-height: 1.7;
}
.commerce-consent input { flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--accent); }
.commerce-consent > span { display: inline; }
.commerce-consent a { margin: 0 2px; color: var(--cyan-strong); }
.commerce-consent-hint { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.commerce-wechat {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 22px 0 18px;
  padding: 20px;
  border: 1px solid rgba(22, 137, 79, .22);
  border-radius: 8px;
  background: #f7fcf9;
  color: #22332b;
  text-align: center;
}
.commerce-wechat p { margin: 0; color: #64736c; font-size: 13px; }
.commerce-qr {
  display: block;
  width: min(280px, 74vw);
  height: auto;
  aspect-ratio: 1;
  border: 10px solid #fff;
  box-shadow: 0 8px 26px rgba(19, 52, 36, .12);
}

@media (max-width: 720px) {
  .quiz-shell { display: block; padding: 12px; }
  .quiz-navigator { display: none; }
  .quiz-overview-drawer { display: block; margin-bottom: 10px; }
  .quiz-question-panel { min-height: 0; padding: 22px; }
  .locked-geometry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .locked-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commerce-referral { grid-template-columns: 1fr; }
  .commerce-referral .ghost-button { width: 100%; }
}

/* Toast */

#toastRegion {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
}

.alpha-toast {
  padding: 11px 14px;
  border: 1px solid rgba(99,224,197,.18);
  border-radius: 11px;
  background: rgba(8,22,28,.96);
  box-shadow: 0 15px 40px rgba(0,0,0,.35);
  color: #a9c7c1;
  font-size: 10px;
}

.boot-status {
  position: absolute;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  background: #050d14;
  color: #78908d;
  font-size: 12px;
}

.alpha-ready .boot-status { display: none; }

@media (max-width: 980px) {
  .alpha-header { gap: 14px; padding-inline: 20px; }
  .alpha-header-progress { display: none; }
  .alpha-map-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .region-filters { display: none; }
}

@media (max-width: 760px) {
  :root { --header-height: 58px; }
  .alpha-header { gap: 9px; padding: 0 12px; }
  .alpha-brand strong { font-size: 13px; }
  .alpha-brand-mark { width: 27px; height: 27px; }
  .alpha-nav { margin-right: auto; }
  .alpha-nav > a,
  .alpha-nav > span { min-width: 50px; padding: 8px 9px; }
  .nav-label-wide { display: none; }
  .nav-label-compact { display: inline; }
  .alpha-header-purchase { display: none; }
  .ghost-button.alpha-header-account { max-width: 78px; min-height: 34px; padding: 7px 10px; }
  .header-chip { padding: 7px 9px; font-size: 9px; }

  .catalog-intro {
    top: 26px;
    left: 18px;
    width: calc(100vw - 36px);
  }
  .catalog-intro h1 { max-width: 350px; font-size: 35px; }
  .catalog-intro p { display: none; }
  .catalog-hint {
    bottom: 38px;
    width: max-content;
    max-width: calc(100vw - 24px);
    font-size: 8px;
  }
  .catalog-filing {
    right: 10px;
    bottom: 7px;
    left: 10px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px 10px;
    font-size: 8px;
    white-space: normal;
  }
  .planet-label { min-width: 76px; }
  .planet-label strong { font-size: 10px; }
  .catalog-fallback-list {
    inset: 130px 12px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .catalog-fallback-list button { min-height: 110px; padding: 12px; }
  .domain-preview {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: 68%;
    border-radius: 18px;
    transform: translateY(calc(100% + 18px));
  }
  .domain-preview.is-open { transform: translateY(0); }

  .ai-map-header {
    height: 58px;
    gap: 9px;
    padding: 0 10px;
  }
  .ai-map-heading h1 { font-size: 13px; }
  .ai-map-heading p { display: none; }
  .ai-map-header .header-chip { display: none; }
  .map-toolbar {
    min-height: 114px;
    padding: 8px 10px;
    overflow: visible;
    flex-wrap: wrap;
  }
  .node-search {
    order: -2;
    flex: 1 0 calc(100% - 54px);
  }
  #resetMapViewButton {
    order: -1;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
  }
  #resetMapViewButton::after {
    content: "↺";
    font-size: 17px;
  }
  .map-toolbar .toolbar-spacer { display: none; }
  .map-mode-tabs {
    order: 2;
    width: 100%;
    overflow: visible;
  }
  .map-mode-tabs button {
    min-height: 44px;
  }
  .toolbar-separator,
  .region-filters { display: none; }
  .alpha-map-layout {
    position: relative;
    display: block;
    height: calc(100% - 58px - 114px - 48px);
  }
  .map-viewport {
    position: absolute;
    inset: 0;
  }
  .map-canvas {
    width: 1800px;
    height: 1200px;
  }
  .concept-panel {
    position: absolute;
    z-index: 25;
    right: 8px;
    bottom: 8px;
    left: 8px;
    max-height: 48%;
    border: 1px solid rgba(99,224,197,.15);
    border-radius: 18px;
    box-shadow: 0 -18px 50px rgba(0,0,0,.35);
  }
  .concept-card { padding: 18px; }
  .concept-card > h2 { font-size: 24px; }
  .concept-block { padding: 10px 0; }
  .route-footer { height: 48px; padding: 0 10px; }
  .route-footer button,
  .route-footer strong { font-size: 9px; }

  #domainPreviewView { padding: 12px; }
  .locked-domain-page { margin: 8px auto; padding: 22px; }
  .locked-outline { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .alpha-brand { gap: 0; }
  .alpha-brand strong { display: none; }
  .ghost-button.alpha-header-account { min-width: 52px; max-width: 68px; }
  .points-recharge-form { grid-template-columns: 1fr; }
  .points-recharge-button { grid-column: 1; grid-row: auto; width: 100%; }
}

@media (max-width: 720px) {
  .account-dialog { width: min(100vw - 16px, 1040px); max-width: calc(100vw - 16px); }
  .account-dialog .alpha-dialog-shell { gap: 12px; padding: 16px; }
  .account-dialog-heading { padding: 0 38px 0 2px; }
  .account-dialog-heading h2 { font-size: 21px; }
  .account-workspace { display: block; min-height: 0; }
  .account-sidebar { gap: 8px; padding: 8px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.065); }
  .account-sidebar-profile { display: none; }
  .account-navigation {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .account-navigation::-webkit-scrollbar { display: none; }
  .account-navigation button { grid-template-columns: 18px auto auto; flex: 0 0 auto; min-height: 38px; padding: 7px 9px; }
  .account-navigation button > span { font-size: 13px; }
  .account-detail-panel { max-height: calc(100dvh - 206px); min-height: 390px; padding: 20px 16px; }
  .account-section-heading { margin-bottom: 17px; }
  .account-section-heading h3 { font-size: 21px; }
  .account-overview-grid { grid-template-columns: 1fr; }
  .account-cocreate-steps { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .alpha-dialog { max-width: calc(100vw - 24px); }
  .alpha-dialog-shell { padding: 20px; }
  .account-dialog { max-width: calc(100vw - 12px); }
  .account-dialog .alpha-dialog-shell { padding: 12px; }
  .account-detail-panel { max-height: calc(100dvh - 188px); min-height: 360px; padding: 18px 13px; }
  .account-metrics { gap: 6px; }
  .account-metric { padding: 12px 10px; }
  .account-record { align-items: flex-start; flex-direction: column; }
  .account-record-meta { justify-items: start; }
  .account-referral-hero { align-items: stretch; flex-direction: column; padding: 18px; }
  .account-referral-actions { flex-wrap: wrap; }
  .account-referral-claim { grid-template-columns: 1fr; }
  .account-coupon-list { grid-template-columns: 1fr; }
  .account-profile-hero { align-items: flex-start; flex-wrap: wrap; }
  .account-profile-copy { flex-basis: calc(100% - 62px); }
  .account-profile-edit { margin-left: 57px; }
  .account-nickname-form { grid-template-columns: 1fr; align-items: stretch; }
  .account-nickname-form > p { grid-column: 1; }
  .account-nickname-actions { grid-row: auto; grid-column: 1; }
  .account-preference-list > section { align-items: flex-start; flex-direction: column; gap: 12px; }
  .account-reset-confirm { align-items: stretch; flex-direction: column; }
  .dialog-actions, .account-actions { align-items: stretch; flex-direction: column; }
}

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

/* About */

.about-view {
  overflow-x: hidden;
  overflow-y: auto;
  background: #030a10;
  color: #f4f7f6;
  scroll-behavior: smooth;
}

.about-hero {
  position: relative;
  min-height: clamp(600px, 70vh, 700px);
  overflow: hidden;
  background: #02070b;
}

.about-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.about-ai-network {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.about-ai-network li {
  position: absolute;
  color: rgba(224, 243, 246, .86);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 2px 8px #001018, 0 0 14px rgba(0, 16, 24, .94);
  white-space: nowrap;
}

.about-ai-label-math { top: 12%; right: 8%; }
.about-ai-label-philosophy { top: 18%; right: 20%; }
.about-ai-label-life { top: 24%; right: 2.5%; }
.about-ai-label-universe { top: 31%; right: 23%; }
.about-ai-label-technology { top: 42%; right: 18%; }
.about-ai-label-digital { top: 48%; right: 8%; color: #d8ffff !important; font-size: 11px !important; }
.about-ai-label-psychology { top: 37%; right: 1.5%; }
.about-ai-label-history { top: 43%; right: 1%; }
.about-ai-label-civilization { top: 51%; right: 10%; }
.about-ai-label-politics { top: 51%; right: 1.5%; }

.about-ai-core {
  position: absolute;
  z-index: 2;
  top: 29%;
  right: 10.5%;
  color: #e7faff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 10px rgba(117, 223, 255, .9), 0 0 28px rgba(44, 164, 255, .72);
  transform: translate(50%, -50%);
  pointer-events: none;
}

.about-hero-copy {
  position: relative;
  z-index: 2;
  width: min(610px, 48vw);
  padding: clamp(58px, 8vh, 92px) 0 132px clamp(34px, 5vw, 76px);
}

.about-eyebrow {
  margin: 0 0 20px;
  color: #e9b855;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.about-hero h1 {
  max-width: 600px;
  margin: 0;
  color: #f8f5ed;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: clamp(42px, 4.4vw, 68px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.22;
  text-wrap: balance;
}

.about-lead {
  max-width: 560px;
  margin: 26px 0 0;
  color: #c0c8ca;
  font-size: 15px;
  line-height: 1.85;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
}

.about-primary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(99, 200, 255, .48);
  border-radius: 6px;
  background: #248fd3;
  box-shadow: 0 12px 32px rgba(12, 100, 164, .24);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.about-primary-action span { margin-left: 10px; font-size: 17px; font-weight: 400; }
.about-secondary-action span { margin-left: 7px; font-size: 17px; }

.about-primary-action:hover,
.about-primary-action:focus-visible {
  background: #2ca0e9;
  transform: translateY(-1px);
}

.about-secondary-action {
  appearance: none;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e4e9e8;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.about-secondary-action:hover,
.about-secondary-action:focus-visible {
  color: #70d9ff;
}

.about-future-note {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 18px clamp(34px, 5vw, 76px);
  border-top: 1px solid rgba(122, 187, 209, .14);
  background: rgba(2, 8, 12, .86);
  color: #d4dcdd;
  font-size: 14px;
  line-height: 1.65;
}

.about-mission {
  padding: 20px clamp(28px, 6vw, 88px) 28px;
  background: #06111a;
}

.about-mission ol {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 0 0 34px;
  border-left: 1px solid rgba(127, 163, 177, .28);
  list-style: none;
}

.about-mission li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 42px;
  min-height: 84px;
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(127, 163, 177, .14);
}

.about-mission li::before {
  position: absolute;
  top: 50%;
  left: -43px;
  width: 13px;
  height: 13px;
  border: 3px solid #17354b;
  border-radius: 50%;
  background: #53aef0;
  box-shadow: 0 0 0 1px rgba(83, 174, 240, .5);
  content: "";
  transform: translateY(-50%);
}

.about-mission li:nth-child(2)::before { border-color: #17483f; background: #59cdbb; }
.about-mission li:nth-child(3)::before { border-color: #54372f; background: #f08e75; }

.about-mission li:first-child {
  border-top: 0;
}

.about-mission li > span {
  grid-column: 1;
  grid-row: 1;
  color: #53aef0;
  font-size: 12px;
  font-weight: 700;
}

.about-mission li:nth-child(2) > span { color: #59cdbb; }
.about-mission li:nth-child(3) > span { color: #f08e75; }

.about-mission h2 {
  grid-column: 1;
  grid-row: 2;
  margin: 8px 0 0;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.about-mission p {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  max-width: 720px;
  margin: 0;
  color: #9daeb2;
  font-size: 14px;
  line-height: 1.85;
}

.about-ai-literacy {
  padding: 76px clamp(28px, 6vw, 88px) 82px;
  border-top: 1px solid rgba(127, 163, 177, .16);
  border-bottom: 1px solid rgba(127, 163, 177, .16);
  background: #081720;
}

.about-ai-literacy-inner {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: clamp(52px, 8vw, 120px);
  width: min(1160px, 100%);
  margin: 0 auto;
}

.about-ai-literacy-heading h2 {
  max-width: 500px;
  margin: 0;
  color: #f1f4f3;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.32;
}

.about-ai-literacy-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
}

.about-ai-literacy-copy p {
  max-width: 720px;
  margin: 0;
  color: #aebdc0;
  font-size: 15px;
  line-height: 1.95;
}

.about-ai-literacy-copy strong {
  display: block;
  margin-top: 10px;
  padding-left: 18px;
  border-left: 2px solid #59cdbb;
  color: #e5f5f2;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

.about-contribute {
  width: min(1040px, calc(100% - 56px));
  margin: 0 auto;
  padding: 82px 0 96px;
  border-top: 1px solid rgba(127, 163, 177, .18);
}

.about-contribute h2 {
  max-width: 760px;
  margin: 0;
  color: #f1f4f3;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.about-contribute > p:not(.about-eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: #9daeb2;
  font-size: 15px;
  line-height: 1.9;
}

.about-contribute > span {
  display: inline-block;
  margin-top: 30px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(233, 184, 85, .55);
  color: #e9b855;
  font-size: 12px;
}

@media (max-width: 900px) {
  .about-hero-copy { width: min(620px, 76vw); }
  .about-hero-media { object-position: 58% center; opacity: .72; }
  .about-ai-network,
  .about-ai-core { display: none; }
}

@media (max-width: 760px) {
  .about-hero { min-height: calc(420px + (100vw - 15px) * 1.75); }
  .about-hero-media {
    inset: 320px 0 auto;
    height: calc((100vw - 15px) * 1.75);
    object-position: center;
    opacity: .9;
  }
  .about-hero-copy {
    width: auto;
    padding: 54px 22px 150px;
  }
  .about-hero h1 { font-size: 40px; line-height: 1.28; }
  .about-lead { max-width: 520px; font-size: 14px; }
  .about-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .about-future-note { padding: 16px 22px; font-size: 12px; }
  .about-mission { padding: 42px 22px 48px; }
  .about-mission ol { padding-left: 0; border-left: 0; }
  .about-mission li,
  .about-mission li:first-child {
    display: block;
    min-height: 0;
    padding: 26px 0;
    border-top: 1px solid rgba(127, 163, 177, .18);
    border-left: 0;
  }
  .about-mission li::before { display: none; }
  .about-mission li:first-child { border-top: 0; }
  .about-mission p { max-width: 560px; }
  .about-ai-literacy { padding: 56px 22px 62px; }
  .about-ai-literacy-inner { grid-template-columns: 1fr; gap: 34px; }
  .about-ai-literacy-heading h2 { font-size: 36px; }
  .about-ai-literacy-copy p { font-size: 14px; }
  .about-ai-literacy-copy strong { font-size: 15px; }
  .about-contribute { width: calc(100% - 44px); padding: 58px 0 72px; }
}
