@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/dmserifdisplay/v17/-nFnOHM81r4j6k0gjAW3mujVU2B2G_5x0ujy.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/dmserifdisplay/v17/-nFnOHM81r4j6k0gjAW3mujVU2B2G_Bx0g.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofIO-aBXso.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofINeaB.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0e0e0e;
  --muted: #626277;
  --line: #dedced;
  --paper: #ffffff;
  --canvas: #fff6e9;
  --forest: #0b125c;
  --forest-deep: #070b3d;
  --emerald: #0b125c;
  --emerald-soft: #f1effe;
  --accent: #2fffba;
  --accent-hover: #5fd3c6;
  --cream: #fff6e9;
  --lavender: #f1effe;
  --amber: #d99023;
  --amber-soft: #fff3dc;
  --blue: #0b125c;
  --blue-soft: #f1effe;
  --danger: #bd3f4b;
  --danger-soft: #fff0f1;
  --shadow-sm: 0 1px 2px rgb(11 18 92 / 4%), 0 8px 24px rgb(11 18 92 / 7%);
  --shadow-lg: 0 24px 70px rgb(11 18 92 / 18%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.system-page { display: grid; min-height: 100vh; padding: 24px; place-items: center; }
.system-message { width: min(560px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-lg); }
.system-message main { margin: 0; }
.system-message h1 { margin-top: 0; }

.access-expiry-banner { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 0 22px; padding: 18px 22px; border: 1px solid #c6c0e2; border-radius: var(--radius); background: var(--lavender); box-shadow: var(--shadow-sm); }
.access-expiry-banner p { margin: 0; }
.access-expiry-banner strong { color: var(--forest); font-size: 17px; }
.access-expiry-banner > p { max-width: 540px; color: var(--muted); font-size: 15px; }

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

a { color: var(--emerald); text-decoration: none; }
a:hover { color: var(--forest-deep); }

h1, h2, h3, .brand {
  color: var(--forest);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -.04em; }
h2 { margin-bottom: 8px; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
h3 { margin-bottom: 8px; font-size: 17px; }
p { color: var(--muted); }

:focus-visible { outline: 3px solid rgb(47 255 186 / 55%); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--forest-deep);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.eyebrow {
  margin: 0 0 7px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: .01em;
}

.brand:hover { color: inherit; }
.brand strong { color: var(--accent); font-family: inherit; font-weight: 400; }

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 5px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 12px;
  background: rgb(255 255 255 / 10%);
}

.brand-mark img { display: block; width: 100%; height: 100%; }

/* Authentication */
.auth-page {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 85% 12%, rgb(47 255 186 / 20%), transparent 28%),
    var(--cream);
}

.auth-shell {
  display: grid;
  width: min(1180px, 100%);
  min-height: calc(100vh - 48px);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgb(11 18 92 / 10%);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
}

.brand-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(36px, 5vw, 70px);
  color: white;
  background:
    linear-gradient(155deg, rgb(47 255 186 / 12%), transparent 52%),
    var(--forest);
}

.brand-panel::before,
.brand-panel::after {
  position: absolute;
  content: "";
  border: 1px solid rgb(47 255 186 / 16%);
  border-radius: 50%;
}

.brand-panel::before { width: 460px; height: 460px; right: -260px; top: -110px; }
.brand-panel::after { width: 270px; height: 270px; left: -180px; bottom: 70px; }
.brand-panel > * { position: relative; z-index: 1; }

.brand-message { max-width: 480px; margin: auto 0; }
.brand-message .eyebrow { color: var(--accent); }
.brand-message h1 { margin-bottom: 24px; font-size: clamp(38px, 4.3vw, 63px); line-height: 1.05; letter-spacing: -.055em; }
.brand-message h1 { color: var(--cream); }
.brand-message > p:last-child { max-width: 430px; color: rgb(255 255 255 / 67%); font-size: 17px; }
.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 7vw, 90px);
}

.auth-card { width: min(420px, 100%); }
.auth-card-centered { text-align: center; }
.auth-heading { margin-bottom: 30px; }
.auth-heading h2 { font-size: clamp(27px, 3vw, 34px); }
.auth-heading p:last-child { margin: 0; }
.auth-note { margin: 26px 0 0; text-align: center; font-size: 15px; }

.mail-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 26px;
  place-items: center;
  border-radius: 17px;
  color: var(--emerald);
  background: var(--emerald-soft);
  font-size: 23px;
}

.back-link { display: inline-block; margin-bottom: 34px; color: var(--muted); font-size: 15px; }

.form-stack { display: grid; gap: 18px; }
.form-row { display: flex; justify-content: flex-end; font-size: 15px; }
.field { display: grid; gap: 7px; color: var(--forest); font-size: 15px; font-weight: 700; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cecae3;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 1px 2px rgb(11 18 92 / 3%);
  transition: border-color .15s, box-shadow .15s;
}

.field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.field input:hover, .field select:hover, .field textarea:hover { border-color: #9690bd; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 4px rgb(47 255 186 / 20%); }
.field input[readonly] { border-color: #d8d4e8; color: var(--forest); background: var(--lavender); cursor: not-allowed; }
.field small { color: var(--muted); font-weight: 400; }
.field-grid { display: grid; gap: 13px; grid-template-columns: 1fr 1fr; }
.invitation-card { width: min(560px, 100%); }
.legal-consents { display: grid; gap: 9px; margin: 3px 0; padding: 0; border: 0; }
.legal-consents legend { margin-bottom: 4px; color: var(--forest); font-size: 15px; font-weight: 800; }
.legal-consents > p { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.legal-consent-list { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
.legal-consent-row { display: grid; align-items: start; gap: 11px; padding: 12px 13px; grid-template-columns: 18px minmax(0, 1fr); }
.legal-consent-row + .legal-consent-row { border-top: 1px solid var(--line); }
.legal-consent-row:hover { background: var(--lavender); }
.legal-consent-row > input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--forest); }
.legal-consent-row > label { min-width: 0; color: var(--ink); cursor: pointer; font-size: 13px; line-height: 1.45; }
.legal-consent-row a { color: var(--forest); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.legal-consent-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.legal-policy-card { width: min(680px, 100%); }
.legal-policy-heading { margin-bottom: 25px; }
.legal-policy-heading h2 { margin-bottom: 10px; font-size: clamp(28px, 3vw, 37px); }
.legal-policy-heading > p:not(.eyebrow) { margin-bottom: 13px; }
.legal-policy-heading > span { display: inline-flex; padding: 5px 8px; border-radius: 7px; color: var(--forest); background: var(--lavender); font-size: 11px; font-weight: 800; }
.legal-policy-sections { display: grid; gap: 0; border-top: 1px solid var(--line); }
.legal-policy-sections section { padding: 19px 0; border-bottom: 1px solid var(--line); }
.legal-policy-sections h3 { margin-bottom: 7px; font-family: inherit; font-size: 17px; }
.legal-policy-sections p { margin: 0; font-size: 14px; line-height: 1.65; }
.legal-policy-sections p + p { margin-top: 7px; }
.legal-policy-close { margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.check-card { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.check-card:hover { border-color: #b8b1d7; background: var(--lavender); }
.check-card input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--forest); }
.check-card span { display: grid; gap: 3px; }
.check-card strong { font-family: inherit; font-size: 14px; }
.check-card small { color: var(--muted); font-size: 12px; line-height: 1.45; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--forest); background: var(--accent); box-shadow: 0 9px 22px rgb(11 18 92 / 14%); }
.button-primary:hover { color: white; background: var(--forest); box-shadow: 0 12px 28px rgb(11 18 92 / 22%); }
.button:disabled { cursor: not-allowed; opacity: .52; box-shadow: none; }
.button-secondary { border-color: var(--line); color: var(--forest); background: white; box-shadow: var(--shadow-sm); }
.button-secondary:hover { color: var(--forest); border-color: #a9a2cc; background: var(--lavender); }
.button-full { width: 100%; }

.alert { margin-bottom: 20px; padding: 12px 14px; border: 1px solid; border-radius: var(--radius-sm); font-size: 15px; }
.alert-error { border-color: #f3c7cb; color: #8e2e38; background: var(--danger-soft); }
.alert-info { border-color: #cac5e6; color: var(--forest); background: var(--lavender); }
.alert-success { border-color: #a9ddcb; color: var(--forest); background: #f1fff9; }

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

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 250px;
  overflow: hidden;
  flex-direction: column;
  padding: 28px 18px 20px;
  color: white;
  background: var(--forest);
}

.brand-sidebar { flex: 0 0 auto; padding: 0 10px; }
.nav-primary {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  gap: 5px;
  margin-top: 32px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: rgb(255 255 255 / 25%) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
.nav-primary::-webkit-scrollbar { width: 7px; }
.nav-primary::-webkit-scrollbar-track { background: transparent; }
.nav-primary::-webkit-scrollbar-thumb { border-radius: 999px; background: rgb(255 255 255 / 25%); }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; color: rgb(255 255 255 / 62%); font-size: 15px; font-weight: 500; }
.nav-item > span { width: 20px; color: rgb(255 255 255 / 42%); text-align: center; font-size: 18px; }
.nav-item:hover { color: white; background: rgb(255 255 255 / 6%); }
.nav-item.is-active { color: var(--forest); background: var(--accent); }
.nav-item.is-active > span { color: var(--forest); }
.nav-label { margin: 26px 13px 8px; color: rgb(255 255 255 / 32%); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.app-content { min-width: 0; margin-left: 250px; grid-column: 2; }
.topbar { display: flex; height: 77px; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 4vw, 54px); border-bottom: 1px solid var(--line); background: rgb(255 246 233 / 88%); backdrop-filter: blur(15px); }
.topbar-context { display: grid; }
.topbar-context .eyebrow { margin-bottom: 1px; font-size: 11px; }
.topbar-context strong { font-family: inherit; font-size: 15px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { display: grid; width: 39px; height: 39px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: white; cursor: pointer; }
.avatar { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; color: var(--forest); background: var(--accent); font-size: 15px; font-weight: 800; }
.mobile-menu { display: none; }
.sidebar-close { display: none; }

.main-content { width: min(1440px, 100%); margin: 0 auto; padding: 44px clamp(22px, 4vw, 54px) 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.page-heading p:last-child { margin-bottom: 0; }
.page-heading-actions { display: flex; align-items: center; gap: 10px; }
.page-heading-actions form { margin: 0; }

.metric-grid { display: grid; gap: 16px; margin-bottom: 22px; grid-template-columns: repeat(3, 1fr); }
.metric-card { display: flex; align-items: center; gap: 16px; min-height: 134px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.metric-card > div:last-child { display: grid; min-width: 0; }
.metric-card span { color: var(--muted); font-size: 14px; }
.metric-card strong { margin: 2px 0; overflow-wrap: anywhere; font-size: 30px; letter-spacing: -.04em; }
.metric-card small { color: #85849b; font-size: 13px; }
.metric-icon { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 14px; font-size: 19px; }
.metric-icon.emerald { color: var(--forest); background: var(--accent); }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }

.content-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 27px; border-bottom: 1px solid var(--line); }
.card-heading h2 { margin: 0; font-size: 19px; }
.card-heading a { font-size: 15px; font-weight: 600; }

.empty-state { padding: 60px 24px 67px; text-align: center; }
.empty-state p { max-width: 470px; margin: 0 auto 24px; }
.empty-visual { display: flex; width: 68px; height: 58px; align-items: flex-end; justify-content: center; gap: 6px; margin: 0 auto 22px; padding: 13px; border-radius: 18px; background: var(--emerald-soft); }
.empty-visual span { width: 8px; border-radius: 5px 5px 2px 2px; background: var(--emerald); }
.empty-visual span:nth-child(1) { height: 15px; opacity: .55; }
.empty-visual span:nth-child(2) { height: 31px; }
.empty-visual span:nth-child(3) { height: 22px; opacity: .75; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 16px 23px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: #737188; background: var(--lavender); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
td { color: #454457; font-size: 15px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfaff; }
.cell-subtitle { display: block; margin-top: 2px; color: #85849b; }
.accumulation-value { color: #9b6315; white-space: nowrap; }
.badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; color: var(--forest); background: var(--lavender); font-size: 12px; font-weight: 800; }
.badge-muted { color: #68736f; background: #eef1f0; }
.badge-warning { color: #8b5d18; background: var(--amber-soft); }

.detail-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.padded-card { padding: 26px; }
.recommendation-admin-grid { align-items: start; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr); }
.recommendation-builder-card { min-width: 0; overflow: visible; }
.recommendation-builder-head, .recommendation-composition-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.recommendation-builder-head h2 { margin: 0; }
.recommendation-builder-intro { margin: 12px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.recommendation-composition { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaff; }
.recommendation-composition-head strong, .recommendation-composition-head small { display: block; }
.recommendation-composition-head strong { font-family: inherit; font-size: 15px; }
.recommendation-composition-head small, .recommendation-composition-head > span { color: var(--muted); font-size: 12px; }
.recommendation-composition .asset-row { background: white; }
.recommendation-settings { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recommendation-history-card { min-width: 0; }
.recommendation-version-list > div { gap: 5px; }
.recommendation-version-assets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.recommendation-version-assets > span { padding: 4px 7px; border-radius: 7px; color: var(--muted); background: var(--lavender); font-size: 11px; }
.recommendation-version-assets b { color: var(--ink); }
.card-heading-inline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.card-heading-inline h2 { margin: 0; }
.key-values { display: grid; gap: 0; margin: 0 0 24px; }
.key-values > div { display: grid; padding: 11px 0; border-bottom: 1px solid var(--line); grid-template-columns: 120px 1fr; }
.key-values dt { color: var(--muted); font-size: 14px; }
.key-values dd { margin: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; }
.compact-list { display: grid; gap: 0; }
.compact-list > div { display: grid; gap: 2px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.compact-list > div:last-child { border-bottom: 0; }
.compact-list strong { font-family: inherit; font-size: 15px; }
.compact-list small { color: var(--muted); font-size: 13px; }
.section-space { margin-top: 18px; }
.subtle-label { color: var(--muted); font-size: 13px; }
.text-button.danger { color: var(--danger); }
.inline-form { margin: 0; }
.user-actions { min-width: 190px; white-space: normal; }
.account-delete { position: relative; margin-top: 8px; white-space: normal; }
.account-delete summary { display: inline-block; list-style: none; }
.account-delete summary::-webkit-details-marker { display: none; }
.account-delete form { display: grid; width: min(320px, 70vw); gap: 12px; margin-top: 10px; padding: 14px; border: 1px solid #f0b8be; border-radius: 12px; background: var(--danger-soft); }
.account-delete p { margin: 0; color: #7f2630; font-size: 13px; line-height: 1.45; white-space: normal; }
.account-delete .field { font-size: 13px; }
.button-danger { color: white; background: var(--danger); }
.button-danger:hover { color: white; background: #8e2e38; }
.exchange-grid { grid-template-columns: minmax(380px, 1fr) minmax(300px, .85fr); }
.api-whitelist-card { display: grid; gap: 14px; padding: 17px; border: 1px solid #bbb5ec; border-radius: 15px; background: linear-gradient(135deg, #f3f1ff 0%, #fbfffd 100%); }
.api-whitelist-heading { display: flex; align-items: flex-start; gap: 12px; }
.api-whitelist-heading > div { min-width: 0; }
.api-whitelist-heading .eyebrow { margin: 1px 0 3px; }
.api-whitelist-heading h3 { margin: 0 0 5px; font-family: inherit; font-size: 17px; }
.api-whitelist-heading p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.api-whitelist-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: white; background: var(--forest); font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.api-whitelist-copy { display: grid; gap: 9px; grid-template-columns: minmax(0, 1fr) auto; }
.api-whitelist-copy input { min-width: 0; border-color: #9b94d7; color: var(--ink); background: white; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 17px; font-weight: 800; letter-spacing: .035em; }
.api-whitelist-copy .button { min-width: 116px; white-space: nowrap; }
.api-whitelist-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.api-whitelist-footer small { max-width: 430px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.api-whitelist-footer code { color: var(--ink); background: transparent; font-size: inherit; }
.api-whitelist-footer a { flex: 0 0 auto; color: var(--forest); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.api-whitelist-detection { display: grid; align-items: center; justify-content: start; column-gap: 7px; color: var(--forest); grid-template-columns: 8px auto; }
.api-whitelist-detection > span { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgb(47 255 186 / 17%); grid-row: 1 / span 2; }
.api-whitelist-detection strong { font-family: inherit; font-size: 12px; }
.api-whitelist-detection small { color: var(--muted); font-size: 11px; }
.api-whitelist-detection.is-fallback { color: #805611; }
.api-whitelist-detection.is-fallback > span { background: var(--amber); box-shadow: 0 0 0 4px rgb(216 151 48 / 14%); }
.api-ip-change-warning { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid #e3bc73; border-radius: 10px; color: #6e470c; background: var(--amber-soft); }
.api-ip-change-warning strong { font-family: inherit; font-size: 13px; }
.api-ip-change-warning small { font-size: 12px; line-height: 1.45; }
.api-ip-change-warning code { color: inherit; background: transparent; font-size: inherit; font-weight: 800; }
.api-whitelist-status { min-height: 18px; margin: -4px 0 0; color: var(--forest); font-size: 12px; font-weight: 800; }
.api-whitelist-status.is-error { color: var(--danger); }
.api-current-ip-card { margin-bottom: 18px; }
.api-current-ip-card .card-heading-inline { margin-bottom: 17px; }
.api-current-ip-card .card-heading-inline > div:first-child { min-width: 0; }
.api-current-ip-card .card-heading-inline h2 { margin-bottom: 5px; }
.api-current-ip-card .card-heading-inline p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 13px; }
.api-current-ip-card .api-whitelist-detection { flex: 0 0 auto; padding: 9px 11px; border-radius: 10px; background: var(--lavender); }
.api-current-ip-actions { display: grid; max-width: 560px; gap: 8px; }
.api-current-ip-actions > small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.api-current-ip-card .api-ip-change-warning { margin-top: 13px; }
.step-list { display: grid; gap: 18px; margin: 26px 0; padding: 0; list-style: none; }
.step-list li { display: flex; align-items: flex-start; gap: 13px; }
.step-list li > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--emerald); background: var(--emerald-soft); font-weight: 700; }
.step-list strong, .step-list small { display: block; }
.step-list strong { font-family: inherit; font-size: 15px; }
.step-list small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.connection-status { display: flex; align-items: center; gap: 16px; }
.connection-status > div:last-child { min-width: 0; }
.connection-status strong, .connection-status small { display: block; }
.connection-status h2, .connection-status p { margin-bottom: 2px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.action-row form { margin: 0; }
.compact-action-row { align-items: end; margin-top: 0; }
.wizard-stack { display: grid; gap: 18px; }
.wizard-section { overflow: visible; }
.wizard-title { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 27px; }
.wizard-title > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--emerald); background: var(--emerald-soft); font-weight: 800; }
.wizard-title h2, .wizard-title p { margin-bottom: 3px; }
.form-grid { display: grid; gap: 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schedule-grid { display: grid; gap: 17px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 48px; }
.input-suffix > span { position: absolute; top: 50%; right: 14px; color: var(--muted); font-size: 14px; transform: translateY(-50%); }
.currency-select { position: relative; }
.currency-native-select { width: 100%; font-weight: 700; }
.currency-select-trigger, .currency-select-menu { display: none; }
.currency-select.is-enhanced .currency-native-select { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.currency-select.is-enhanced .currency-select-trigger { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 11px; padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: white; cursor: pointer; text-align: left; }
.currency-select.is-enhanced .currency-select-trigger:hover, .currency-select.is-enhanced .currency-select-trigger:focus-visible, .currency-select.is-open .currency-select-trigger { border-color: #a9a2cc; box-shadow: 0 0 0 3px rgb(47 255 186 / 18%); outline: 0; }
.currency-select-trigger img, .currency-select-option img { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 1px 4px rgb(11 18 92 / 18%); }
.currency-select-trigger > span:not(.currency-select-chevron), .currency-select-option > span:not(.currency-select-check) { display: grid; line-height: 1.2; }
.currency-select-trigger strong, .currency-select-option strong { font-size: 15px; }
.currency-select-trigger small, .currency-select-option small { color: var(--muted); font-size: 12px; }
.currency-select-chevron { margin-left: auto; color: var(--muted); font-size: 19px; transition: transform .18s ease; }
.currency-select.is-open .currency-select-chevron { transform: rotate(180deg); }
.currency-select.is-open .currency-select-menu { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; display: grid; width: 100%; min-width: 250px; overflow: hidden; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow-lg); }
.currency-select-option { display: flex; width: 100%; align-items: center; gap: 11px; padding: 9px 10px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.currency-select-option:hover, .currency-select-option:focus-visible, .currency-select-option[aria-selected="true"] { background: var(--lavender); outline: 0; }
.currency-select-check { margin-left: auto; color: var(--forest); font-weight: 800; }
.helper-callout { margin-top: 22px; padding: 13px 15px; border-radius: 11px; color: var(--forest); background: var(--lavender); font-size: 14px; }
.asset-list { display: grid; gap: 11px; }
.asset-row { position: relative; display: grid; align-items: end; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fffdf9; grid-template-columns: minmax(260px, 1.8fr) minmax(140px, .7fr) 40px; }
.asset-row.asset-picker-row-open { z-index: 20; }
.asset-picker { position: relative; min-width: 0; }
.asset-picker-trigger { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; cursor: pointer; text-align: left; transition: border-color .16s ease, box-shadow .16s ease; }
.asset-picker-trigger:hover, .asset-picker-trigger:focus-visible, .asset-picker.is-open .asset-picker-trigger { border-color: #9188cf; outline: 0; box-shadow: 0 0 0 3px rgb(84 74 170 / 9%); }
.asset-picker.has-error .asset-picker-trigger { border-color: var(--danger); box-shadow: 0 0 0 3px rgb(185 54 68 / 9%); }
.asset-picker-selected { display: grid; min-width: 0; gap: 2px; }
.asset-picker-selected strong { overflow: hidden; font-family: inherit; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.asset-picker-selected small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.asset-picker-chevron { flex: 0 0 auto; color: var(--muted); font-size: 18px; transition: transform .16s ease; }
.asset-picker.is-open .asset-picker-chevron { transform: rotate(180deg); }
.asset-picker-menu { position: absolute; z-index: 40; top: calc(100% + 7px); left: 0; display: grid; width: max(100%, 430px); max-height: 390px; gap: 8px; padding: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 20px 50px rgb(24 20 84 / 20%); }
.asset-picker-search { display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #faf9ff; }
.asset-picker-search:focus-within { border-color: #9188cf; box-shadow: 0 0 0 3px rgb(84 74 170 / 9%); }
.asset-picker-search input { min-height: 42px; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; }
.asset-picker-options { display: grid; gap: 4px; max-height: 282px; overflow-y: auto; overscroll-behavior: contain; }
.asset-picker-option { display: grid; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; cursor: pointer; grid-template-columns: 36px minmax(0, 1fr) auto; text-align: left; }
.asset-picker-option:hover, .asset-picker-option:focus-visible, .asset-picker-option[aria-selected="true"] { background: var(--lavender); outline: 0; }
.asset-picker-option:disabled { cursor: not-allowed; opacity: .46; }
.asset-picker-symbol { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: white; background: var(--forest); font-size: 12px; font-weight: 900; letter-spacing: -.02em; }
.asset-picker-option-copy { display: grid; min-width: 0; gap: 2px; }
.asset-picker-option-copy strong { font-family: inherit; font-size: 15px; }
.asset-picker-option-copy small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.asset-picker-option-state { color: var(--emerald); font-size: 12px; font-weight: 800; white-space: nowrap; }
.asset-picker-empty { margin: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.asset-picker-hint { padding: 0 4px 2px; color: var(--muted); font-size: 12px; }
.asset-remove { margin-bottom: 5px; color: var(--danger); }
.allocation-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.allocation-foot strong { color: var(--emerald); font-size: 15px; }
.allocation-foot strong.is-invalid { color: var(--danger); }
.minimum-check { display: grid; align-items: center; gap: 14px; margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--canvas); grid-template-columns: 38px minmax(0, 1fr) auto; }
.minimum-check:focus-visible { outline: 3px solid rgb(84 74 170 / 14%); outline-offset: 2px; }
.minimum-check-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--forest); background: var(--lavender); font-size: 18px; font-weight: 900; }
.minimum-check-copy { min-width: 0; }
.minimum-check-copy strong { display: block; font-family: inherit; font-size: 15px; }
.minimum-check-copy p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.minimum-check-copy ul { display: grid; gap: 3px; margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; }
.minimum-check.is-valid { border-color: #a9ddcb; background: #f1fff9; }
.minimum-check.is-valid .minimum-check-icon { color: #fff; background: var(--emerald); }
.minimum-check.is-invalid { border-color: #efb8bd; background: #fff7f8; }
.minimum-check.is-invalid .minimum-check-icon { color: #fff; background: var(--danger); }
.minimum-check.is-unavailable { border-color: #ddd8bf; background: #fffdf3; }
.minimum-check.is-loading .minimum-check-icon { animation: minimum-check-pulse 1.1s ease-in-out infinite alternate; }
@keyframes minimum-check-pulse { to { opacity: .42; } }
.choice-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.choice-card { position: relative; display: flex; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.choice-card:hover { border-color: #a9a2cc; }
.choice-card:has(input:checked) { border-color: var(--forest); background: var(--lavender); box-shadow: 0 0 0 3px rgb(47 255 186 / 22%); }
.choice-card input { margin-top: 3px; accent-color: var(--forest); }
.choice-card span { display: grid; gap: 3px; }
.choice-card strong { font-family: inherit; font-size: 15px; }
.choice-card small { color: var(--muted); font-size: 13px; }
.mode-selector { min-width: 0; padding: 0; border: 0; }
.mode-selector legend { margin-bottom: 8px; color: var(--forest); font-size: 14px; font-weight: 700; }
.mode-choice-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mode-choice-card { position: relative; display: flex; gap: 13px; min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; cursor: pointer; }
.mode-choice-card:hover { border-color: #a9a2cc; }
.mode-choice-card:has(input:checked) { border-color: var(--forest); background: var(--lavender); box-shadow: 0 0 0 3px rgb(47 255 186 / 22%); }
.mode-choice-card input { margin-top: 4px; accent-color: var(--forest); }
.mode-choice-card > span { display: grid; align-content: start; justify-items: start; gap: 5px; }
.mode-choice-card strong { font-family: inherit; font-size: 16px; }
.mode-choice-card small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.mode-choice-card .badge { margin-bottom: 2px; }
.smart-dca-explainer { margin-top: 24px; padding: 22px; border: 1px solid #c6c0e2; border-radius: 16px; background: linear-gradient(135deg, var(--lavender) 0%, #fbfaff 100%); }
.smart-dca-explainer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.smart-dca-explainer h3 { margin: 8px 0 5px; font-size: 19px; }
.smart-dca-explainer p { max-width: 790px; margin: 0; }
.smart-dca-explainer-head .button { flex: 0 0 auto; }
.range-zone-grid { display: grid; gap: 10px; margin-top: 20px; grid-template-columns: repeat(3, 1fr); }
.range-zone { display: grid; gap: 4px; min-height: 106px; padding: 16px; border-radius: 12px; }
.range-zone strong { font-family: inherit; font-size: 14px; }
.range-zone span { color: var(--ink); font-size: 15px; font-weight: 700; }
.range-zone small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.range-low { background: #e7fff6; }
.range-neutral { background: var(--lavender); }
.range-high { background: #fff5e5; }
.range-accumulation { margin-top: 14px !important; padding: 12px 14px; border-radius: 11px; color: var(--forest); background: #fff8e8; font-size: 13px; }
.range-first-cycle { margin-top: 14px !important; color: var(--muted); font-size: 13px; }
.recommendation-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: 21px 22px; border-radius: 16px; color: white; background: var(--forest-deep); }
.recommendation-hero h3 { margin: 8px 0 4px; color: white; font-size: 19px; }
.recommendation-hero p { max-width: 580px; margin: 0; color: rgb(255 255 255 / 62%); }
.recommendation-hero .badge { color: var(--forest); background: var(--accent); }
.allocation-pills { display: flex; flex: 0 0 auto; gap: 8px; }
.allocation-pills > span { display: grid; min-width: 76px; gap: 2px; padding: 12px 14px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 12px; color: rgb(255 255 255 / 65%); background: rgb(255 255 255 / 6%); font-size: 13px; text-align: center; }
.allocation-pills strong { color: white; font-size: 16px; }
.recommendation-warning { margin: 0 0 20px; }
.sale-profile-intro { display: grid; gap: 3px; margin-bottom: 14px; }
.sale-profile-intro strong { font-family: inherit; font-size: 15px; }
.sale-profile-intro span { color: var(--muted); font-size: 13px; }
.sale-profile-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sale-profile-card { position: relative; display: flex; min-width: 0; min-height: 226px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fffdf9; cursor: pointer; }
.sale-profile-card:hover { border-color: #a9a2cc; transform: translateY(-1px); }
.sale-profile-featured { border-color: #c6c0e2; background: #fbfaff; }
.sale-profile-card:has(input:checked) { border-color: var(--forest); background: var(--lavender); box-shadow: 0 0 0 3px rgb(47 255 186 / 22%); }
.sale-profile-card > input { flex: 0 0 auto; margin: 4px 11px 0 0; accent-color: var(--forest); }
.sale-profile-body { display: grid; align-content: start; min-width: 0; gap: 12px; }
.sale-profile-name { display: grid; gap: 2px; }
.sale-profile-name strong { font-family: inherit; font-size: 16px; }
.sale-profile-name .badge { width: max-content; margin-bottom: 3px; }
.sale-profile-name small, .profile-description { color: var(--muted); font-size: 12px; line-height: 1.5; }
.profile-tier-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.profile-tier-pills > span { padding: 5px 7px; border-radius: 7px; color: var(--forest); background: var(--lavender); font-size: 11px; font-weight: 700; }
.profile-moonbag { color: var(--muted); font-size: 12px; }
.profile-moonbag strong { color: var(--ink); font-family: inherit; }
.sale-profile-none { grid-column: 1 / -1; min-height: 112px; background: white; }
.sale-profile-none .sale-profile-body { max-width: 600px; }
.selected-sale-profile { display: grid; gap: 2px; margin-bottom: 18px; padding: 14px 16px; border-radius: 11px; background: var(--emerald-soft); }
.selected-sale-profile span { color: var(--emerald); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.selected-sale-profile strong { font-family: inherit; font-size: 15px; }
.selected-sale-profile small { color: var(--muted); font-size: 12px; }
.asset-sale-customizer { margin-top: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fffdf9; }
.asset-sale-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 0 0 12px; }
.asset-sale-panel-head > div { display: grid; gap: 2px; }
.asset-sale-panel-head strong { font-family: inherit; font-size: 15px; }
.asset-sale-panel-head span, .asset-sale-panel-head > small { color: var(--muted); font-size: 12px; }
.asset-sale-list { display: grid; gap: 8px; }
.asset-sale-item { position: relative; overflow: visible; border: 1px solid var(--line); border-radius: 11px; background: white; }
.asset-sale-item.profile-menu-open { z-index: 10; }
.asset-sale-row { display: grid; align-items: center; gap: 14px; padding: 12px; grid-template-columns: minmax(90px, .4fr) minmax(250px, 1.2fr) minmax(110px, .6fr) auto; }
.asset-sale-row > span { display: grid; gap: 1px; }
.asset-sale-row strong { font-family: inherit; font-size: 14px; }
.asset-sale-row small { color: var(--muted); font-size: 11px; }
.asset-sale-row select { min-height: 38px; padding: 8px 10px; }
.asset-sale-profile-field { position: relative; margin: 0; }
.asset-sale-profile-field > span { font-size: 11px; }
.profile-dropdown-trigger { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; cursor: pointer; text-align: left; }
.profile-dropdown-trigger:hover, .profile-dropdown.is-open .profile-dropdown-trigger { border-color: #9c96d9; box-shadow: 0 0 0 3px rgb(84 74 170 / 9%); }
.profile-dropdown-selected { display: grid; min-width: 0; gap: 5px; }
.profile-dropdown-selected > strong { overflow: hidden; font-family: inherit; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-tier-pills { display: flex; min-width: 0; flex-wrap: wrap; gap: 4px; }
.profile-tier-pill { padding: 3px 6px; border-radius: 999px; color: var(--forest-deep); background: #eeecff; font-size: 11px; font-weight: 800; white-space: nowrap; }
.profile-dropdown-chevron { flex: 0 0 auto; color: var(--muted); font-size: 16px; transition: transform .16s ease; }
.profile-dropdown.is-open .profile-dropdown-chevron { transform: rotate(180deg); }
.profile-dropdown-menu { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; display: grid; width: max(100%, 370px); gap: 5px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 18px 45px rgb(24 20 84 / 18%); }
.profile-dropdown-option { display: grid; width: 100%; gap: 6px; padding: 10px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.profile-dropdown-option:hover, .profile-dropdown-option[aria-selected="true"] { background: #f2f0ff; }
.profile-dropdown-option > strong { font-family: inherit; font-size: 13px; }
.profile-dropdown-option[aria-selected="true"] > strong { color: var(--emerald); }
.asset-sale-custom-button { min-height: 38px; white-space: nowrap; }
.asset-sale-custom-fields { padding: 16px; border-top: 1px solid var(--line); background: #fbfaff; }
.asset-sale-custom-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.asset-sale-custom-heading > div { display: grid; gap: 2px; }
.asset-sale-custom-heading strong { font-family: inherit; font-size: 14px; }
.asset-sale-custom-heading small, .asset-custom-rule { color: var(--muted); font-size: 12px; }
.asset-custom-tier-grid { margin: 14px 0; }
.asset-custom-tier-grid .tier-card { background: white; }
.asset-custom-moonbag { width: min(300px, 100%); }
.asset-custom-rule { display: block; margin-top: 9px; }
.sale-settings { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.exchange-plan-context { display: grid; align-items: center; gap: 15px; padding: 17px 19px; border: 1px solid #c9c5ee; border-radius: 14px; background: linear-gradient(135deg, #f4f2ff, #fffdf9); grid-template-columns: auto 1fr auto; }
.exchange-plan-context > div { display: grid; gap: 2px; }
.exchange-plan-context .eyebrow { margin: 0; }
.exchange-plan-context h2 { margin: 0; font-family: inherit; font-size: 16px; }
.exchange-plan-context small { color: var(--muted); font-size: 12px; }
.exchange-plan-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: white; background: var(--forest); font-size: 21px; font-weight: 900; }
.tier-grid { display: grid; gap: 12px; margin: 18px 0; grid-template-columns: repeat(3, 1fr); }
.tier-card { display: grid; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fffdf9; }
.tier-card > span { color: var(--emerald); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.moonbag-field { width: min(250px, 100%); }
.tax-warning { margin-top: 17px; }
.wizard-submit { display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding: 12px 0 20px; }
.wizard-submit p { margin: 0; font-size: 14px; }
.summary-hero { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 28px; border-radius: var(--radius); color: white; background: var(--forest-deep); box-shadow: var(--shadow-sm); }
.summary-hero h2 { margin-bottom: 3px; color: white; font-size: 26px; }
.summary-hero p { margin: 0; color: rgb(255 255 255 / 55%); }
.summary-amount { display: grid; min-width: 210px; padding-left: 30px; border-left: 1px solid rgb(255 255 255 / 12%); }
.summary-amount span, .summary-amount small { color: rgb(255 255 255 / 55%); font-size: 12px; }
.summary-amount strong { font-size: 25px; }
.check-list { display: grid; gap: 9px; margin: 19px 0 0; padding: 0; list-style: none; }
.check-list li { color: #454457; font-size: 15px; }
.check-list li::before { margin-right: 9px; color: var(--emerald); content: "✓"; font-weight: 800; }
.tier-summary { display: grid; gap: 11px; margin-top: 20px; grid-template-columns: repeat(3, 1fr); }
.sale-asset-summary { margin-top: 22px; }
.sale-asset-summary + .sale-asset-summary { padding-top: 20px; border-top: 1px solid var(--line); }
.sale-asset-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.sale-asset-heading h3 { margin: 0; }
.sale-asset-meta { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.sale-asset-disabled { padding: 17px; border-radius: 12px; background: var(--canvas); }
.sale-asset-disabled + .sale-asset-summary { margin-top: 20px; }
.tier-summary > div { display: grid; gap: 2px; padding: 17px; border-radius: 12px; background: var(--canvas); }
.tier-summary span, .tier-summary small { color: var(--muted); font-size: 12px; }
.tier-summary strong { font-size: 20px; }
.confirm-card { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 27px; border: 1px solid #c6c0e2; border-radius: var(--radius); background: var(--lavender); }
.confirm-card > div { display: grid; max-width: 760px; gap: 10px; }
.confirm-card h2 { margin: 0; }
.metric-date { font-size: 19px !important; }
.action-panel { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.action-panel h2 { margin-bottom: 4px; }
.action-panel p { margin: 0; }
.close-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 23px; border: 1px solid #f1d7d9; border-radius: var(--radius); background: #fffafb; }
.close-panel strong, .close-panel small { display: block; }
.close-panel strong { font-family: inherit; font-size: 15px; }
.close-panel small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.operation-form { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(180px, 1.4fr) auto; align-items: end; gap: 8px; min-width: 430px; }
.operation-form input, .operation-form select { min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.operation-form .button { min-height: 38px; padding: 8px 12px; }
.search-form { display: flex; align-items: end; gap: 8px; }
.search-form .field { min-width: 260px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.badge-active { color: var(--forest); background: #d9fff1; }
.badge-paused, .badge-draft { color: #765c26; background: var(--amber-soft); }
.badge-error { color: var(--danger); background: var(--danger-soft); }
.badge-closed { color: #68736f; background: #eef1f0; }
.badge-filled, .badge-completed { color: var(--forest); background: #d9fff1; }
.badge-open, .badge-running, .badge-submitting { color: #315eaa; background: var(--blue-soft); }
.badge-cancelled, .badge-failed, .badge-rejected, .badge-ambiguous, .badge-dead { color: var(--danger); background: var(--danger-soft); }
.badge-partial, .badge-partially_filled, .badge-scheduled { color: #765c26; background: var(--amber-soft); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.notification-list, .incident-list { display: grid; gap: 12px; }
.notification-card { display: grid; align-items: start; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); grid-template-columns: 8px minmax(0, 1fr) auto; }
.notification-card.is-read { opacity: .68; }
.notification-mark { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--emerald); }
.notification-card span { color: var(--muted); font-size: 12px; }
.notification-card h2 { margin: 3px 0; font-size: 16px; }
.notification-card p { margin: 0; white-space: pre-line; }
.heartbeat-line { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; }
.incident-card { padding: 22px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.incident-card.severity-critical { border-left-color: var(--danger); }
.incident-card.severity-info { border-left-color: var(--blue); }
.incident-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.incident-head span:first-child { color: var(--muted); font-size: 12px; }
.incident-head h2 { margin: 4px 0 12px; font-size: 18px; }
.incident-card > p { max-width: 850px; margin-bottom: 5px; color: #454457; }
.incident-card > small { color: var(--muted); }
.resolve-form { display: grid; align-items: end; gap: 13px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); grid-template-columns: 1fr auto; }
.resolution-note { margin-top: 16px; padding: 12px; border-radius: 10px; color: var(--forest); background: var(--lavender); font-size: 14px; }
.resolution-note strong { margin-right: 9px; font-family: inherit; }
.segmented { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.segmented a { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.segmented a.is-active { color: white; background: var(--forest); }
.field textarea { resize: vertical; }
.smart-guide-heading > div { max-width: 760px; }
.smart-guide-hero { display: grid; align-items: stretch; gap: 28px; padding: 30px; border-radius: var(--radius); color: white; background: var(--forest-deep); box-shadow: var(--shadow-sm); grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); }
.smart-guide-hero h2 { margin: 10px 0 8px; color: white; font-size: 27px; line-height: 1.2; }
.smart-guide-hero p { max-width: 760px; margin: 0; color: rgb(255 255 255 / 60%); }
.smart-guide-hero .badge { color: var(--forest); background: var(--accent); }
.range-formula { display: grid; align-content: center; gap: 8px; padding: 22px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 14px; background: rgb(255 255 255 / 6%); }
.range-formula span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.range-formula strong { font-family: inherit; font-size: 16px; line-height: 1.45; }
.range-formula small { color: rgb(255 255 255 / 50%); font-size: 12px; line-height: 1.5; }
.guide-card-heading { margin-bottom: 0; }
.guide-card-heading p:last-child { max-width: 800px; }
.guide-zone-grid { margin-top: 5px; }
.guide-zone-grid .range-zone { min-height: 190px; padding: 22px; }
.range-zone-number { color: rgb(11 18 92 / 22%) !important; font-size: 25px !important; }
.guide-zone-grid .range-zone strong { font-size: 15px; }
.guide-zone-grid .range-zone > span:not(.range-zone-number) { margin-top: 8px; font-size: 16px; }
.guide-zone-grid .range-zone small { margin-top: 4px; font-size: 13px; }
.smart-example-list { display: grid; gap: 0; margin-top: 18px; }
.smart-example-list > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); grid-template-columns: 105px 1fr; }
.smart-example-list > div:last-child { border-bottom: 0; }
.smart-example-list span { color: var(--muted); font-size: 13px; }
.smart-example-list strong { font-family: inherit; font-size: 15px; }
.smart-example-list small { grid-column: 2; color: var(--muted); font-size: 12px; }
.smart-guide-list li { line-height: 1.55; }
.smart-guide-note { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 23px 25px; border: 1px solid #efd7a8; border-radius: var(--radius); background: #fff9ef; }
.smart-guide-note strong { font-family: inherit; font-size: 15px; }
.smart-guide-note p { max-width: 850px; margin: 4px 0 0; color: #6c6049; font-size: 13px; }
.smart-guide-note .button { flex: 0 0 auto; }

/* Subscription profile comparison */
.tier-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 92% 14%, rgb(47 255 186 / 24%), transparent 28%),
    linear-gradient(145deg, #070b3d, var(--forest));
  box-shadow: var(--shadow-lg);
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr);
}
.tier-hero::after { position: absolute; width: 310px; height: 310px; right: -170px; bottom: -210px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 50%; content: ""; }
.tier-hero-copy, .tier-current-summary { position: relative; z-index: 1; }
.tier-hero .eyebrow { color: var(--accent); }
.tier-hero h1 { max-width: 720px; margin-bottom: 14px; color: white; font-size: clamp(34px, 4vw, 54px); }
.tier-hero-copy > p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: rgb(255 255 255 / 68%); font-size: 17px; }
.tier-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.tier-hero-secondary { border-color: rgb(255 255 255 / 18%); color: white; background: rgb(255 255 255 / 7%); }
.tier-hero-secondary:hover { border-color: rgb(255 255 255 / 35%); color: white; background: rgb(255 255 255 / 12%); }
.tier-current-summary { display: grid; min-height: 210px; align-content: center; padding: 28px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 20px; background: rgb(255 255 255 / 8%); backdrop-filter: blur(8px); }
.tier-current-summary span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tier-current-summary strong { margin: 7px 0 1px; font-size: clamp(35px, 5vw, 55px); line-height: 1; letter-spacing: -.04em; }
.tier-current-summary small { color: rgb(255 255 255 / 58%); font-size: 14px; }

.tier-plan-grid { display: grid; gap: 16px; margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.tier-plan-card { position: relative; display: flex; min-height: 420px; overflow: hidden; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.tier-plan-card::before { position: absolute; height: 4px; inset: 0 0 auto; background: #c4c0d4; content: ""; }
.tier-plan-card:nth-child(2)::before { background: #d7a53d; }
.tier-plan-card:nth-child(3)::before { background: var(--accent); }
.tier-plan-card.is-current { border-color: #938ac8; box-shadow: 0 16px 45px rgb(11 18 92 / 14%); transform: translateY(-3px); }
.tier-plan-card-head { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; }
.tier-medallion { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #d8d5e4; border-radius: 15px; color: var(--forest); background: #f0eff5; font-family: "DM Serif Display", Georgia, serif; font-size: 23px; }
.tier-plan-card:nth-child(2) .tier-medallion { border-color: #efd7a8; color: #8b5d18; background: #fff8e9; }
.tier-plan-card:nth-child(3) .tier-medallion { border-color: #b3eedc; background: #e6fff7; }
.tier-plan-eyebrow { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.tier-plan-card h2 { margin: 20px 0 8px; font-size: 30px; }
.tier-plan-card > p { min-height: 68px; margin-bottom: 20px; font-size: 14px; }
.tier-asset-limit { display: flex; align-items: baseline; gap: 8px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--forest); font-family: inherit; font-size: 14px; }
.tier-asset-limit span { font-size: 28px; line-height: 1; }
.tier-feature-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.tier-feature-list li { display: flex; align-items: flex-start; gap: 9px; color: #454457; font-size: 14px; }
.tier-feature-list li span { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lavender); font-size: 11px; font-weight: 900; }

.comparison-card { scroll-margin-top: 24px; }
.comparison-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 28px; border-bottom: 1px solid var(--line); }
.comparison-heading h2 { margin: 0; }
.comparison-heading > p { max-width: 410px; margin: 0; font-size: 13px; text-align: right; }
.comparison-scroll-hint { display: none; }
.comparison-table-wrap { scrollbar-color: #bbb5d4 transparent; }
.comparison-table { min-width: 860px; table-layout: fixed; white-space: normal; }
.comparison-table th, .comparison-table td { padding: 17px 19px; }
.comparison-table thead th { width: 19%; text-align: center; }
.comparison-table thead th:first-child { width: 43%; text-align: left; }
.comparison-table thead th small { display: block; margin-top: 3px; color: var(--forest); font-size: 10px; letter-spacing: 0; text-transform: none; }
.comparison-table tbody th { position: sticky; z-index: 1; left: 0; color: #454457; background: white; font-size: 14px; font-weight: 700; letter-spacing: 0; line-height: 1.35; text-transform: none; }
.comparison-table tbody tr:hover th { background: #fbfaff; }
.comparison-table td { text-align: center; }
.comparison-table .is-current { background: #f4f2ff; }
.comparison-table tbody tr:hover .is-current { background: #efecff; }
.comparison-value { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #4f4d62; font-size: 13px; font-weight: 700; line-height: 1.35; }
.comparison-yes span[aria-hidden] { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: var(--forest); background: #d9fff1; font-size: 11px; }
.comparison-no { color: #9693a4; font-weight: 600; }

.tier-explainer-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier-explainer-grid article { position: relative; min-height: 215px; }
.tier-explainer-grid h2 { max-width: 440px; }
.tier-explainer-grid article > p:last-child { max-width: 560px; margin-bottom: 0; }
.tier-explainer-number { position: absolute; top: 18px; right: 24px; color: rgb(11 18 92 / 10%); font-size: 42px; font-weight: 900; }
.tier-important-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border: 1px solid #c6c0e2; border-radius: var(--radius); background: var(--lavender); }
.tier-important-note > div { display: flex; align-items: flex-start; gap: 13px; }
.tier-important-note > div > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: white; background: var(--forest); font-family: serif; font-weight: 800; }
.tier-important-note p { max-width: 850px; margin: 2px 0 0; font-size: 14px; }
.tier-important-note strong { color: var(--forest); font-family: inherit; }
.tier-important-note .button { flex: 0 0 auto; }

.logout-form { margin-top: 24px; text-align: right; }
.text-button { padding: 4px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 14px; }
.text-button:hover { color: var(--danger); }

/* User FAQ */
.faq-page { display: grid; min-width: 0; gap: 26px; }
.faq-page > *, .faq-search, .faq-browser { min-width: 0; }
.faq-search { padding: clamp(24px, 4vw, 38px); border: 1px solid #c6c0e2; border-radius: var(--radius-lg); background: linear-gradient(135deg, #f8f7ff, #eeebff); box-shadow: var(--shadow-sm); }
.faq-search label { display: block; margin-bottom: 13px; color: var(--forest); font-size: clamp(19px, 2.4vw, 25px); font-weight: 900; }
.faq-search-field { display: grid; min-height: 64px; overflow: hidden; align-items: center; border: 2px solid #b9b1de; border-radius: 14px; background: white; box-shadow: 0 10px 28px rgb(11 18 92 / 8%); grid-template-columns: 48px minmax(0, 1fr) auto; transition: border-color .16s ease, box-shadow .16s ease; }
.faq-search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(47 255 186 / 15%); }
.faq-search-field > span { color: var(--forest); text-align: right; font-size: 24px; }
.faq-search-field input { min-width: 0; height: 60px; padding: 0 14px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.faq-search-field input::placeholder { color: #8b899a; }
.faq-search-field button { margin-right: 7px; padding: 7px 10px; border: 0; border-radius: 8px; color: var(--forest); background: var(--lavender); cursor: pointer; font-size: 12px; font-weight: 800; }
.faq-search small { display: block; margin-top: 11px; color: var(--muted); font-size: 12px; }

.faq-browser { padding: clamp(23px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.faq-browser-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 23px; }
.faq-browser-heading h2 { margin-bottom: 0; font-size: 28px; }

.faq-browser { padding: 0; }
.faq-browser-heading { margin: 0; padding: 30px 32px 22px; }
.faq-result-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.faq-result-tools span { margin-right: 4px; color: var(--muted); font-size: 12px; }
.faq-result-tools button, .faq-empty button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--forest); background: white; cursor: pointer; font-size: 12px; font-weight: 800; }
.faq-result-tools button:hover, .faq-empty button:hover { border-color: #a9a1d3; background: var(--lavender); }
.faq-content-layout { display: grid; align-items: start; grid-template-columns: 245px minmax(0, 1fr); }
.faq-index { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px 22px; border-right: 1px solid var(--line); }
.faq-index > strong { display: block; margin-bottom: 13px; color: var(--forest); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.faq-index nav { display: grid; gap: 3px; }
.faq-index nav a { display: grid; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 9px; color: #55536a; font-size: 12px; line-height: 1.3; grid-template-columns: 24px 1fr; }
.faq-index nav a:hover { color: var(--forest); background: var(--lavender); }
.faq-index nav span { color: #a09caf; font-size: 10px; font-weight: 900; }
.faq-index-note { display: flex; gap: 9px; margin-top: 20px; padding: 12px; border-radius: 11px; background: var(--lavender); }
.faq-index-note > span { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 6px; color: white; background: var(--forest); font-family: serif; font-size: 11px; font-weight: 900; }
.faq-index-note p { margin: 0; font-size: 11px; line-height: 1.45; }
.faq-sections { min-width: 0; padding: 10px 32px 36px; }
.faq-category { padding: 30px 0 6px; scroll-margin-top: 20px; }
.faq-category + .faq-category { border-top: 1px solid var(--line); }
.faq-category > header { display: grid; gap: 16px; margin-bottom: 17px; grid-template-columns: 46px minmax(0, 1fr); }
.faq-category-number { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--forest); background: var(--lavender); font-size: 12px; font-weight: 900; }
.faq-category header .eyebrow { margin-bottom: 3px; font-size: 10px; }
.faq-category header h2 { margin-bottom: 4px; font-size: 27px; }
.faq-category header p:last-child { max-width: 760px; margin: 0; font-size: 13px; }
.faq-question-list { border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq-item { scroll-margin-top: 20px; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: grid; align-items: center; gap: 20px; padding: 18px 19px; color: #29283a; cursor: pointer; font-size: 15px; font-weight: 800; list-style: none; grid-template-columns: minmax(0, 1fr) 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--forest); background: #fbfaff; }
.faq-item[open] summary { color: var(--forest); background: var(--lavender); }
.faq-toggle { position: relative; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #d5d1e7; border-radius: 9px; background: white; }
.faq-toggle::before, .faq-toggle::after { position: absolute; width: 10px; height: 2px; border-radius: 2px; background: var(--forest); content: ""; transition: transform .16s ease; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(0); }
.faq-answer { padding: 18px 66px 22px 19px; border-top: 1px solid #e7e3f3; background: #fdfcff; }
.faq-answer p { max-width: 880px; margin-bottom: 11px; color: #55536a; font-size: 14px; }
.faq-answer p:last-of-type { margin-bottom: 0; }
.faq-answer ul { display: grid; max-width: 880px; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.faq-answer li { position: relative; padding-left: 23px; color: #55536a; font-size: 14px; }
.faq-answer li::before { position: absolute; top: .18em; left: 0; display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: var(--forest); background: #d9fff1; content: "✓"; font-size: 9px; font-weight: 900; }
.faq-answer-note { display: flex; align-items: flex-start; gap: 10px; max-width: 880px; margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: var(--amber-soft); font-size: 13px; }
.faq-answer-note strong { color: #7a5011; }
.faq-answer-note span { color: #6c5a3d; }
.faq-answer-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 11px; border-radius: 9px; color: var(--forest); background: var(--lavender); font-size: 12px; font-weight: 900; }
.faq-answer-action:hover { color: white; background: var(--forest); }
.faq-item:target { border-radius: 12px; box-shadow: 0 0 0 3px rgb(47 255 186 / 45%); }
.faq-empty { padding: 70px 25px; text-align: center; }
.faq-empty > span { display: grid; width: 52px; height: 52px; margin: 0 auto 17px; place-items: center; border-radius: 16px; color: var(--forest); background: var(--lavender); font-size: 27px; }
.faq-empty p { max-width: 540px; margin: 0 auto 18px; }
.faq-final-note { display: grid; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid #e8c788; border-radius: var(--radius); background: var(--amber-soft); grid-template-columns: 36px minmax(0, 1fr) auto; }
.faq-final-note > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: white; background: var(--amber); font-weight: 900; }
.faq-final-note strong { color: #6f4910; }
.faq-final-note p { margin: 2px 0 0; color: #78613f; font-size: 13px; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: .8fr 1.2fr; }
  .brand-panel { padding: 40px; }
  .brand-message h1 { font-size: 40px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 112px; }
  .detail-grid { grid-template-columns: 1fr; }
  .sale-profile-grid { grid-template-columns: 1fr 1fr; }
  .smart-guide-hero { grid-template-columns: 1fr; }
  .tier-hero { grid-template-columns: 1fr; }
  .tier-current-summary { min-height: 150px; }
  .faq-content-layout { grid-template-columns: 205px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .auth-page { padding: 0; background: white; }
  .auth-shell { display: block; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .brand-panel { min-height: 215px; padding: 27px 26px; }
  .brand-message { margin: 38px 0 0; }
  .brand-message h1 { margin: 0; font-size: 33px; }
  .brand-message > p:last-child, .brand-message .eyebrow { display: none; }
  .auth-content { padding: 43px 25px 55px; }
  .field-grid { grid-template-columns: 1fr; }
  .form-grid, .schedule-grid, .choice-grid, .tier-grid, .operation-form, .mode-choice-grid, .range-zone-grid, .sale-profile-grid { grid-template-columns: 1fr; }
  .operation-form { min-width: 250px; }
  .span-2 { grid-column: auto; }
  .asset-row { grid-template-columns: minmax(0, 1fr) 40px; }
  .asset-picker { grid-column: 1 / -1; }
  .asset-picker-menu { width: 100%; }
  .asset-allocation-field { grid-column: 1; }
  .recommendation-settings { grid-template-columns: 1fr; }
  .recommendation-composition { padding: 12px; }
  .recommendation-composition-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .summary-hero, .confirm-card, .action-panel { align-items: stretch; flex-direction: column; }
  .summary-amount { padding: 17px 0 0; border-top: 1px solid rgb(255 255 255 / 12%); border-left: 0; }
  .tier-summary { grid-template-columns: 1fr; }
  .wizard-submit { align-items: stretch; flex-direction: column; }
  .wizard-submit .button { width: 100%; }
  .smart-dca-explainer-head, .recommendation-hero, .smart-guide-note { align-items: stretch; flex-direction: column; }
  .smart-dca-explainer-head .button, .smart-guide-note .button { width: 100%; }
  .allocation-pills { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); }
  .allocation-pills > span { min-width: 0; }
  .minimum-check { align-items: start; grid-template-columns: 38px 1fr; }
  .minimum-check .button { width: 100%; grid-column: 1 / -1; }
  .sale-profile-none { grid-column: auto; }
  .asset-sale-panel-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .exchange-plan-context { align-items: stretch; grid-template-columns: auto 1fr; }
  .exchange-plan-context .button { grid-column: 1 / -1; width: 100%; }
  .asset-sale-row { grid-template-columns: 1fr; }
  .profile-dropdown-menu { width: 100%; }
  .asset-sale-custom-button { width: 100%; }
  .api-whitelist-copy { grid-template-columns: 1fr; }
  .api-whitelist-copy .button { width: 100%; }
  .api-whitelist-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .api-current-ip-card .card-heading-inline { align-items: flex-start; flex-direction: column; }
  .api-current-ip-card .api-whitelist-detection { width: 100%; }
  .notification-card { grid-template-columns: 8px 1fr; }
  .notification-card form { grid-column: 2; }
  .resolve-form { align-items: stretch; grid-template-columns: 1fr; }
  .tier-hero { padding: 27px 23px; border-radius: var(--radius); }
  .tier-hero-copy > p:not(.eyebrow) { font-size: 15px; }
  .tier-hero-actions, .tier-important-note, .comparison-heading { align-items: stretch; flex-direction: column; }
  .tier-hero-actions .button, .tier-important-note .button { width: 100%; }
  .tier-current-summary { min-height: 135px; padding: 22px; }
  .tier-plan-card { min-height: auto; }
  .tier-plan-card.is-current { transform: none; }
  .comparison-heading { gap: 8px; padding: 22px 20px; }
  .comparison-heading > p { max-width: none; text-align: left; }
  .comparison-scroll-hint { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--forest); background: #fbfaff; font-size: 12px; font-weight: 700; }
  .comparison-table { min-width: 720px; }
  .comparison-table thead th { width: 162px; }
  .comparison-table thead th:first-child { width: 234px; }
  .comparison-table tbody th { position: static; }
  .tier-explainer-grid { grid-template-columns: 1fr; }
  .faq-search { padding: 22px 18px; border-radius: var(--radius); }
  .faq-search-field { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .faq-browser-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .faq-browser-heading { padding: 24px 20px 18px; }
  .faq-result-tools { justify-content: flex-start; }
  .faq-result-tools span { width: 100%; margin-bottom: 3px; }
  .faq-content-layout { display: block; }
  .faq-index { display: none; }
  .faq-sections { padding: 5px 20px 28px; }
  .faq-category { padding-top: 25px; }
  .faq-category > header { grid-template-columns: 39px minmax(0, 1fr); }
  .faq-category-number { width: 36px; height: 36px; }
  .faq-category header h2 { font-size: 24px; }
  .faq-item summary { padding: 16px; font-size: 14px; }
  .faq-answer { padding: 16px 18px 19px; }
  .faq-final-note { align-items: start; grid-template-columns: 36px minmax(0, 1fr); }
  .faq-final-note .button { width: 100%; grid-column: 1 / -1; }

  .app-shell { display: block; }
  .sidebar { width: 258px; visibility: hidden; pointer-events: none; transform: translateX(-105%); box-shadow: 12px 0 45px rgb(11 18 92 / 25%); transition: transform .2s ease, visibility 0s linear .2s; }
  .sidebar.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
  .sidebar-close { position: absolute; top: 15px; right: 15px; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid rgb(255 255 255 / 12%); border-radius: 11px; color: white; background: rgb(255 255 255 / 8%); cursor: pointer; font-size: 22px; }
  .app-content { margin-left: 0; }
  .mobile-menu { display: grid; }
  .topbar { height: 68px; padding: 0 18px; }
  .topbar-context { margin-right: auto; margin-left: 12px; }
  .topbar-actions .icon-button { display: none; }
  .main-content { padding: 30px 18px 48px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 26px; }
  .page-heading .button { width: 100%; }
  .page-heading-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .metric-grid { gap: 11px; }
  .metric-card { padding: 18px; }
  .card-heading { padding: 20px; }
  .empty-state { padding: 45px 20px 52px; }
  th, td { padding: 14px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
