/* Shared visual rules. Tutorial illustrations and checkpoint geometry live in style.css. */
:root {
  --canvas: #f5f6f2;
  --surface: #fff;
  --ink: #203d32;
  --muted: #65766b;
  --brand: #285641;
  --brand-hover: #1c4332;
  --tint: #edf3e9;
  --accent: #789757;
  --line: #dfe6dc;
  --focus: #779a5e;
  --danger: #ab493e;
  --radius: 16px;
  --shadow: 0 8px 30px #233d3608;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea, select { transition: background-color .16s, border-color .16s, box-shadow .16s; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: 30px; letter-spacing: -1px; line-height: 1.25; margin: 0; }
h2 { font-size: 21px; letter-spacing: -.5px; line-height: 1.35; }
h3 { font-size: 18px; line-height: 1.45; }
p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.eyebrow { font-size: 10px; letter-spacing: 1.6px; font-weight: 700; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 4px; font-size: 31px; font-weight: 800; letter-spacing: -1.7px; }
.brand span { color: var(--accent); font-size: 37px; line-height: 1; }
.primary, .outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 16px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.primary { color: white; background: var(--brand); }
.primary:hover { background: var(--brand-hover); }
.outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.outline:hover { border-color: #b9cbb0; background: var(--tint); }
.primary:disabled:hover { background: var(--brand); }
.outline:disabled:hover { border-color: var(--line); background: var(--surface); }
.text { padding: 12px 0; font-size: 12px; color: var(--muted); }
.text:hover { color: var(--brand); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.shell { display: grid; grid-template-columns: 216px minmax(0,1fr); min-height: 100vh; }
.shell > aside { position: sticky; top: 0; height: 100vh; padding: 28px 18px 20px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 0; }
.shell > aside > .brand { margin: 0 12px; }
.nav-label { font-size: 9px; letter-spacing: 1.5px; font-weight: 600; color: #839184; margin: 38px 12px 12px; }
.workspace-nav { display: grid; gap: 6px; }
.workspace-nav button { display: flex; align-items: center; gap: 11px; padding: 13px 12px; min-height: 46px; text-align: left; font-size: 12px; font-weight: 550; border-radius: 10px; color: var(--muted); }
.workspace-nav button:hover { color: var(--ink); background: var(--canvas); }
.workspace-nav button.active { color: var(--brand); background: var(--tint); font-weight: 700; }
.nav-icon, .nav-icon svg { width: 19px; height: 19px; flex-shrink: 0; }
.workspace-nav small { margin-left: auto; padding: 1px 7px; border-radius: 6px; font-size: 10px; background: #dde8d6; }
.side-note { margin-top: auto; padding: 20px 15px; border: 1px solid #e8eddc; background: #f7f8f0; border-radius: 13px; }
.side-note > span { font-size: 31px; line-height: 1; color: var(--accent); }
.side-note > svg { width: 31px; height: 31px; color: var(--accent); }
.side-note h3 { font-size: 13px; margin: 12px 0 6px; }
.side-note p { font-size: 11px; line-height: 1.7; margin: 0; }
.sidebar-account { display: flex; align-items: center; gap: 9px; margin: 20px 5px 0; padding-top: 18px; border-top: 1px solid var(--line); min-width: 0; }
.sidebar-account > div { min-width: 0; }
.sidebar-account strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.sidebar-account small { display: block; font-size: 10px; color: var(--muted); }
.sidebar-account .avatar { flex-shrink: 0; }
.sidebar-account .text { margin-left: auto; padding: 7px 0 7px 4px; white-space: nowrap; font-size: 10px; }
.shell > aside > .text { text-align: left; margin: 18px 10px 0; }
#logout { display: flex; align-items: center; gap: 10px; }
#logout svg { width: 17px; height: 17px; }
.shell main { width: 100%; min-width: 0; max-width: 1400px; padding: 0 40px; margin: 0 auto; }
.workspace-topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .outline { min-height: 36px; padding: 8px 11px; font-size: 11px; }
.header-actions svg { width: 15px; height: 15px; }
.avatar { width: 33px; height: 33px; background: #e7eedf; border: 2px solid var(--surface); border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--brand); font-weight: 700; }
.profile-menu { position: relative; flex-shrink: 0; }
.profile-trigger { display: flex; align-items: center; gap: 5px; min-height: 38px; padding: 2px 4px; border: 1px solid transparent; border-radius: 24px; }
.profile-trigger > svg { width: 13px; height: 13px; color: var(--muted); }
.profile-trigger:hover, .profile-menu.is-open .profile-trigger { border-color: var(--line); background: var(--surface); }
.profile-menu.is-open::after { content: ""; position: absolute; right: 0; top: 100%; width: 100%; height: 12px; }
.profile-dropdown { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: min(280px,calc(100vw - 32px)); max-height: calc(100dvh - 170px); overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 14px 40px #203d321c; }
.profile-menu-heading { display: flex; align-items: center; gap: 11px; padding: 12px 10px 16px; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
.profile-menu-heading > div { min-width: 0; }
.profile-dropdown .avatar { width: 38px; height: 38px; flex-shrink: 0; font-size: 12px; }
.profile-menu-heading strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-menu-heading small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-menu-action { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 11px 10px; border-radius: 9px; color: var(--ink); text-align: left; font-size: 12px; font-weight: 600; }
.profile-menu-action:hover { background: var(--tint); }
.profile-menu-action > svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.profile-menu-action > svg:last-child { width: 14px; height: 14px; margin-left: auto; }
dialog.profile-settings-dialog { max-width: 560px; }
.profile-identity { display: flex; align-items: center; gap: 14px; padding-right: 24px; }
.profile-identity .avatar { width: 50px; height: 50px; flex-shrink: 0; font-size: 17px; }
.profile-identity h2 { margin: 4px 0 0; }
.profile-email { padding: 14px 16px; margin: 20px 0 24px; background: var(--canvas); border: 1px solid var(--line); border-radius: 11px; }
.profile-email > span { display: block; font-size: 10px; color: var(--muted); }
.profile-email > strong { display: block; font-size: 13px; margin: 5px 0; overflow-wrap: anywhere; }
.profile-email > small { font-size: 10px; color: var(--muted); }
.profile-email > small.positive { color: var(--brand); }
.profile-field-help { font-size: 11px; margin: -10px 0 18px; }
.profile-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.profile-form-actions button { min-height: 44px; }
.notification-count { background: var(--brand); color: white; padding: 1px 6px; border-radius: 12px; font-size: 10px; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 26px 0 20px; }
.page-intro > div:first-child { min-width: 0; }
.page-intro h1 { font-size: 29px; overflow-wrap: anywhere; }
.page-intro p { margin: 7px 0 0; font-size: 13px; }
.page-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.page-tools button { min-height: 40px; font-size: 11px; white-space: nowrap; padding: 10px 12px; }
.page-tools svg { width: 16px; height: 16px; flex-shrink: 0; }
.dashboard-tool-short { display: none; }
.dashboard-overview { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin: 0 0 25px; }
.dashboard-metric { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; text-align: left; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dashboard-metric-heading { display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; font-size: 11px; font-weight: 550; color: var(--muted); }
.dashboard-metric-heading svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
.dashboard-metric-heading svg:last-child:not(:first-child) { margin-left: auto; width: 13px; height: 13px; }
.dashboard-metric-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; max-width: 100%; font-size: 30px; font-weight: 650; line-height: 1.15; letter-spacing: -.7px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dashboard-metric-value em { font-size: 10px; font-weight: 400; font-style: normal; letter-spacing: 0; color: var(--muted); }
.dashboard-metric > small { font-size: 10px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.dashboard-wallet { color: white; background: var(--brand); border-color: var(--brand); }
.dashboard-wallet .dashboard-metric-heading, .dashboard-wallet .dashboard-metric-heading svg { color: #dae7cf; }
.dashboard-wallet .dashboard-metric-value em, .dashboard-wallet > small { color: #ccddc3; }
button.dashboard-metric:hover { border-color: #a9bf98; background: #f9fbf6; }
button.dashboard-wallet:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.dashboard-awaiting { color: #926726 !important; }
.dashboard-account-note { padding: 10px 14px; margin: 0 0 18px; background: #f8f3df; border: 1px solid #ece1b9; border-radius: 10px; font-size: 12px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.section-title h2 { font-size: 19px; margin: 0; }
.section-title > span, .discovery-list-meta > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.discovery-list-meta { display: flex; gap: 12px; align-items: center; }
.discovery-reward-hint { padding: 5px 9px; border-radius: 20px; background: var(--tint); font-size: 10px !important; color: var(--brand) !important; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge { font-size: 9px; letter-spacing: .7px; color: var(--muted); background: var(--canvas); padding: 6px 9px; border-radius: 20px; }
.reward { font-size: 11px; color: var(--brand); background: var(--tint); padding: 6px 9px; border-radius: 20px; font-weight: 600; }
.card h3 { font-size: 18px; line-height: 1.45; margin: 16px 0 8px; overflow-wrap: anywhere; }
.card > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 12px; white-space: pre-line; }
.meta { font-size: 11px; color: var(--muted); margin: 15px 0; }
.meta span { padding: 0 6px; }
.card .goal-progress { margin: 0 0 18px; }
.card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid #edf0e9; font-size: 11px; }
.card-author { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.card-bottom button { min-height: 40px; }
.card-bottom [data-answer] { background: var(--brand); color: white; border-color: var(--brand); }
.card-bottom [data-answer]:hover { background: var(--brand-hover); }
.owner-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-card .card-bottom { align-items: flex-start; }
.owner-card .card-author { width: 100%; }
.owner-card-actions .outline, .owner-card-actions .primary { font-size: 11px; padding: 9px 12px; }
.owner-card-actions svg { width: 14px; height: 14px; }
.owner-card-actions .danger { background: transparent; border-color: transparent; padding-left: 6px; padding-right: 6px; }
.owner-card-actions .danger:hover { background: #fcf0ed; border-color: #e7c3be; }
.empty { grid-column: 1/-1; padding: 40px 24px; text-align: center; background: var(--surface); border: 1px dashed #cad7c4; border-radius: var(--radius); }
.empty > span { color: var(--accent); font-size: 32px; }
.empty h3 { font-size: 17px; margin: 12px 0 7px; }
.empty p { font-size: 13px; margin: 0 auto; max-width: 450px; }
.wallet-panel .section-title { margin-bottom: 8px; }
.wallet-explainer { padding: 14px 17px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf5; margin: 20px 0 5px; }
.wallet-explainer { font-size: 12px; }
.ledger { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 0; border-bottom: 1px solid #edf0e9; font-size: 13px; }
.ledger:last-child { border-bottom: 0; padding-bottom: 0; }
.ledger > div { min-width: 0; overflow-wrap: anywhere; }
.ledger-description { flex: 1; }
.ledger-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--canvas); color: var(--muted); }
.ledger-icon.positive { background: var(--tint); }
.ledger-icon svg { width: 17px; height: 17px; }
.ledger small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.ledger > strong { flex-shrink: 0; padding: 6px 10px; border-radius: 8px; font-size: 15px; background: #f5f6f2; font-variant-numeric: tabular-nums; }
.ledger > strong > span { font-size: 10px; font-weight: 400; margin-left: 5px; }
.ledger > strong.positive { background: var(--tint); color: var(--brand); }
.positive { color: var(--brand); }
.shell main > footer { display: flex; justify-content: space-between; gap: 15px; padding: 30px 0; margin-top: 6px; font-size: 10px; color: #7d8b7d; }
dialog { border: 1px solid var(--line); border-radius: 20px; max-width: 640px; width: calc(100% - 32px); padding: 34px; color: var(--ink); background: var(--surface); max-height: calc(100dvh - 40px); box-shadow: 0 24px 100px #18352626; }
dialog::backdrop { background: #142e2866; backdrop-filter: blur(5px); }
.close { position: absolute; display: grid; place-items: center; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; font-size: 25px; line-height: 1; color: var(--muted); z-index: 2; }
.close:hover { color: var(--ink); background: var(--tint); }
dialog > h2 { padding-right: 25px; margin: 10px 0 12px; overflow-wrap: anywhere; }
dialog > .eyebrow { display: block; padding-right: 25px; }
label { display: block; font-size: 12px; font-weight: 600; margin: 19px 0; }
label small { display: block; font-size: 11px; color: var(--muted); margin: 5px 0; font-weight: 400; }
input, textarea, select { width: 100%; padding: 12px; border: 1px solid #d3ddce; background: #fcfdfb; border-radius: 9px; margin-top: 8px; color: var(--ink); font-size: 14px; }
input, textarea { display: block; }
textarea { resize: vertical; min-height: 85px; }
input::placeholder, textarea::placeholder { color: #9da99b; opacity: 1; }
input:focus::placeholder, textarea:focus::placeholder { color: transparent; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
.consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; font-weight: 400; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; }
.answer-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf5; cursor: pointer; }
.answer-navigation strong { display: block; font-size: 12px; font-weight: 600; }
.answer-navigation small { margin: 3px 0 0; font-size: 11px; font-weight: 400; color: var(--muted); }
.answer-navigation input { appearance: none; position: relative; width: 36px; height: 22px; flex-shrink: 0; margin: 0; padding: 0; border: 1px solid #bac9b1; border-radius: 15px; background: #dce5d6; cursor: pointer; }
.answer-navigation input::before { content: ""; position: absolute; width: 16px; height: 16px; top: 2px; left: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #203d3226; transition: transform .16s; }
.answer-navigation input:checked { border-color: var(--brand); background: var(--brand); }
.answer-navigation input:checked::before { transform: translateX(14px); }
[role=alert] { color: var(--danger); font-size: 12px; }
dialog:not(.google-setup-active):not(.import-guide-dialog) > form > button[type=submit] { min-height: 44px; }
dialog:not(.google-setup-active):not(.import-guide-dialog) .choice { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fcfdfb; margin: 9px 0; font-size: 13px; cursor: pointer; }
dialog:not(.google-setup-active):not(.import-guide-dialog) .choice:has(input:checked) { border-color: #9bb78a; background: var(--tint); }
dialog:not(.google-setup-active):not(.import-guide-dialog) .choice:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.dialog-heading { padding-right: 22px; margin-bottom: 23px; }
.dialog-heading h2 { margin: 8px 0; overflow-wrap: anywhere; }
.dialog-heading p { margin: 0; font-size: 13px; }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.dialog-toolbar svg { width: 16px; height: 16px; }
.dialog-toolbar > span { font-size: 11px; color: var(--muted); }
.result { border: 1px solid var(--line); border-radius: 13px; margin-top: 18px; padding: 20px; background: #fcfdfb; }
.result h3 { font-size: 13px; color: var(--brand); margin: 0 0 18px; }
.result dl { margin: 0; }
.result dt { font-size: 12px; font-weight: 650; white-space: pre-wrap; overflow-wrap: anywhere; }
.result dd { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.result dd:last-child { margin-bottom: 0; }
.notification { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 13px 0; background: #fcfdfb; }
.notification.unread { background: var(--tint); border-color: #c7d8ba; }
.notification h3 { font-size: 14px; margin: 0; }
.notification p { font-size: 13px; overflow-wrap: anywhere; margin: 8px 0; }
.notification small { color: var(--muted); font-size: 10px; }
.danger { color: var(--danger); border-color: #e7c3be; }
.danger:hover { background: #fcf0ed; }
.danger-button { background: var(--danger); }
.danger-button:hover { background: #8d372e; }
#toast:not(:empty) { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--brand); color: white; border: 1px solid #ffffff26; border-radius: 12px; padding: 15px 22px; box-shadow: 0 8px 30px #18352630; z-index: 100; font-size: 13px; line-height: 1.6; width: max-content; max-width: min(560px,90vw); }
.loading-state { padding: 35px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.loading-state p { margin: 0; }
.loading-state h2 { font-size: 18px; margin: 0; }
.loading-spinner { width: 30px; height: 30px; border: 3px solid var(--tint); border-top-color: var(--brand); border-radius: 50%; animation: app-spin .8s linear infinite; }
.primary[aria-busy=true]::before { content: ""; width: 15px; height: 15px; flex-shrink: 0; border: 2px solid #ffffff55; border-top-color: white; border-radius: 50%; animation: app-spin .8s linear infinite; }
@keyframes app-spin { to { transform: rotate(360deg); } }
.auth-shell { max-width: 1160px; padding: 28px 36px 40px; margin: auto; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-header > span { font-size: 11px; color: var(--muted); }
.auth-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; gap: 80px; min-height: calc(100vh - 130px); padding: 35px 0; }
.auth-story { order: -1; }
.auth-story h2 { font-size: clamp(36px,4vw,51px); line-height: 1.16; letter-spacing: -1.9px; margin: 18px 0; }
.auth-story > p { font-size: 16px; max-width: 370px; }
.auth-form-panel { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-form-panel h1 { margin: 9px 0; font-size: 26px; letter-spacing: -.7px; }
.auth-form-panel > p { margin: 0 0 22px; font-size: 13px; }
.auth-form-panel label { font-size: 12px; }
.auth-form-panel .primary { width: 100%; min-height: 44px; margin-top: 4px; }
.auth-form-panel .text { font-size: 12px; color: var(--brand); font-weight: 600; padding: 8px 0; }
.auth-form-panel [role=alert]:empty { margin: 0; }
.auth-switch { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.auth-field-hint { display: block; color: var(--muted); font-size: 11px; margin: -10px 0 12px; }
.auth-process { display: grid; gap: 12px; padding: 0; margin: 28px 0; list-style: none; }
.auth-process li { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff70; }
.auth-process-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; background: #e8eedf; color: var(--brand); border-radius: 10px; }
.auth-process-icon svg { width: 21px; height: 21px; }
.auth-process strong { display: block; font-size: 13px; font-weight: 600; }
.auth-process li div > span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.auth-process b { font-size: 11px; color: #9aa88e; margin-left: auto; font-weight: 500; }
.auth-story-note { display: flex; align-items: center; gap: 13px; }
.auth-story-note > span { font-size: 30px; color: var(--accent); }
.auth-story-note p { font-size: 11px; line-height: 1.6; }
.auth-footer { text-align: center; font-size: 10px; color: var(--muted); }
.verification-layout { max-width: 520px; margin: 70px auto; }
.verification-mark { display: grid; place-items: center; width: 55px; height: 55px; background: var(--tint); color: var(--brand); border-radius: 15px; margin-bottom: 23px; }
.verification-mark svg { width: 28px; height: 28px; }
.verification-back { display: block; text-align: center; margin-top: 12px; }
@media(min-width:1500px) { .shell main { padding: 0 56px; } }
@media(max-width:1150px) {
  .shell { grid-template-columns: 194px minmax(0,1fr); }
  .shell main { padding: 0 28px; }
  .page-intro { gap: 18px; }
  .page-tools { flex-direction: column; align-items: stretch; }
  .page-tools button { min-height: 35px; padding: 8px 11px; }
  .discovery-reward-hint { display: none; }
  .grid { grid-template-columns: 1fr; }
  .auth-layout { gap: 45px; }
}
@media(max-width:850px) {
  .shell { grid-template-columns: 180px minmax(0,1fr); }
  .shell > aside { padding-left: 12px; padding-right: 12px; }
  .shell main { padding: 0 23px; }
  .dashboard-metric { padding: 13px 12px; }
  .dashboard-metric-value { font-size: 27px; }
  .dashboard-metric-heading { font-size: 10px; gap: 5px; }
  .dashboard-metric-heading > svg:first-child { display: none; }
  .page-intro h1 { font-size: 26px; }
}
@media(max-width:700px) {
  .shell { display: block; }
  .shell > aside { position: relative; height: auto; display: block; padding: 11px 18px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .shell > aside > .brand { margin: 0; font-size: 27px; }
  .brand span { font-size: 31px; }
  .nav-label, .side-note { display: none; }
  .workspace-nav { display: grid; grid-template-columns: 1.3fr 1fr 1.15fr; gap: 4px; margin-top: 9px; }
  .workspace-nav button { justify-content: center; min-height: 38px; padding: 9px 6px; font-size: 10px; gap: 5px; white-space: nowrap; }
  .nav-icon, .nav-icon svg { width: 15px; height: 15px; }
  .workspace-nav small { padding: 1px 4px; font-size: 9px; margin-left: 0; }
  .sidebar-account { position: absolute; right: 18px; top: 12px; border: 0; padding: 0; margin: 0; }
  .sidebar-account .avatar, .sidebar-account > div { display: none; }
  .sidebar-account .text { font-size: 11px; }
  .shell > aside > .text { position: absolute; right: 18px; top: 13px; margin: 0; padding: 5px 0; }
  .shell main { padding: 0 18px; }
  .workspace-topbar { height: 51px; font-size: 10px; }
  .header-actions { gap: 9px; }
  .header-actions .outline { font-size: 10px; min-height: 32px; padding: 7px 9px; }
  .header-actions .avatar { width: 29px; height: 29px; font-size: 11px; }
  .page-intro { flex-direction: column; align-items: flex-start; gap: 13px; margin: 18px 0 15px; }
  .page-intro h1 { font-size: 24px; }
  .page-intro p { font-size: 12px; margin-top: 5px; }
  .page-tools { flex-direction: row; gap: 8px; }
  .page-tools button { min-height: 35px; padding: 8px 11px; font-size: 10px; }
  .page-tools svg { width: 14px; height: 14px; }
  .dashboard-tool-long { display: none; }
  .dashboard-tool-short { display: inline; }
  .dashboard-overview { gap: 8px; margin-bottom: 21px; }
  .dashboard-metric { border-radius: 11px; gap: 7px; padding: 11px 10px; }
  .dashboard-metric-heading { font-size: 10px; align-items: flex-start; gap: 4px; }
  .dashboard-metric-heading > svg:last-child:not(:first-child) { width: 11px; height: 11px; margin-top: 1px; }
  .dashboard-metric-value { font-size: 24px; gap: 3px; }
  .dashboard-metric-value em { font-size: 8px; }
  .dashboard-metric > small { font-size: 9px; }
  .section-title { margin-bottom: 13px; gap: 8px; }
  .section-title h2 { font-size: 18px; }
  .section-title > span, .discovery-list-meta > span { font-size: 10px; }
  .card { padding: 18px; }
  .card h3 { font-size: 16px; margin-top: 14px; }
  .card .goal-progress { margin-bottom: 16px; }
  .card-bottom [data-answer] { font-size: 11px; }
  .panel { padding: 21px; }
  .wallet-panel .section-title { align-items: baseline; }
  .wallet-explainer { padding: 12px; }
  .wallet-explainer { font-size: 11px; }
  .ledger { font-size: 12px; padding: 16px 0; }
  .ledger > strong { font-size: 13px; }
  .shell main > footer { font-size: 9px; padding: 25px 0; }
  dialog { padding: 28px 22px; border-radius: 16px; max-height: calc(100dvh - 24px); }
  .result { padding: 16px; }
  .dialog-heading h2 { font-size: 22px; }
  .profile-settings-dialog input { font-size: 16px; }
  .auth-shell { padding: 20px; }
  .auth-header > span { display: none; }
  .auth-layout { display: flex; flex-direction: column; align-items: stretch; gap: 22px; min-height: 0; padding: 26px 0 5px; }
  .auth-story { order: 0; padding: 15px 4px 0; }
  .auth-story h2 { font-size: 27px; letter-spacing: -.7px; margin: 9px 0; }
  .auth-story > p { font-size: 13px; max-width: none; margin: 8px 0 0; }
  .auth-story .eyebrow, .auth-process, .auth-story-note { display: none; }
  .auth-form-panel { padding: 23px; }
  .auth-form-panel h1 { font-size: 23px; }
  .auth-form-panel > p { margin-bottom: 15px; }
  .verification-layout { margin-top: 36px; }
}
@media(max-width:360px) {
  .shell > aside { padding-left: 12px; padding-right: 12px; }
  .shell main { padding: 0 13px; }
  .workspace-nav button { font-size: 9px; gap: 4px; }
  .workspace-nav .nav-icon { display: none; }
  .dashboard-metric { padding: 10px 8px; }
  .dashboard-metric-heading { font-size: 9px; }
  .dashboard-metric-value { font-size: 22px; }
  .dashboard-metric > small { font-size: 8px; }
  .section-title h2 { font-size: 17px; }
  .auth-shell { padding: 17px; }
  .auth-form-panel { padding: 20px; }
}
@media(max-height:570px) {
  .workspace-topbar { height: 48px; }
  .page-intro { margin: 14px 0 12px; }
  .page-intro h1 { font-size: 23px; }
  .dashboard-metric { padding-top: 9px; padding-bottom: 9px; gap: 5px; }
  .dashboard-metric-value { font-size: 23px; }
  .dashboard-overview { margin-bottom: 16px; }
  .section-title { margin-bottom: 12px; }
  .shell > aside { padding-top: 18px; }
  .side-note { display: none; }
  .shell > aside > #logout { margin-top: auto; }
}
@media(max-height:570px) and (max-width:700px) {
  .page-intro { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; margin: 13px 0 12px; }
  .page-intro h1 { font-size: 22px; }
  .page-intro p { display: none; }
  .page-tools button { width: 33px; height: 33px; min-height: 33px; padding: 0; }
  .page-tools span { display: none; }
  .dashboard-metric { padding-top: 9px; padding-bottom: 9px; gap: 5px; }
  .dashboard-overview { margin-bottom: 16px; }
  .auth-story { display: none; }
  .auth-layout { padding-top: 18px; }
  .shell > aside { padding-top: 11px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .loading-spinner, .primary[aria-busy=true]::before { animation: none; }
}
