:root {
  --app-bg: #f5f8ff;
  --surface: #ffffff;
  --ink: #08152d;
  --muted: #697386;
  --surface-strong: color-mix(in srgb, var(--surface) 92%, var(--ink) 8%);
  --field-bg: color-mix(in srgb, var(--surface) 84%, var(--app-bg));
  --line: color-mix(in srgb, var(--ink) 13%, transparent);
  --primary: #1769f6;
  --primary-ink: #ffffff;
  --accent: #51d7c2;
  --violet-soft: #eee9ff;
  --blue-soft: #e8f0ff;
  --mint-soft: #e2f8f4;
  --orange-soft: #fff0eb;
  --danger: #c7342f;
  --radius: 22px;
  --safe-top: var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-bottom: var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
}
:root[data-color-scheme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--app-bg); color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--app-bg); color: var(--ink); }
button, input, textarea, select { color-scheme: light; font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100dvh; padding: var(--safe-top) 16px calc(28px + var(--safe-bottom)); background: radial-gradient(circle at 80% 5%, color-mix(in srgb, var(--violet-soft) 76%, transparent) 0, transparent 32rem), var(--app-bg); }
.topbar { max-width: 820px; height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 820; letter-spacing: -0.045em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(145deg, #7564f4, #4430bf); color: #ffffff; font: 820 20px/1 ui-sans-serif, sans-serif; box-shadow: 0 8px 18px rgb(91 71 224 / 24%); }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.credit-balance { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.credit-balance strong { color: var(--ink); }
.data-nav-button { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 8px 12px; font-size: 12px; font-weight: 760; cursor: pointer; }
.version { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--muted); font: 750 12px/1 ui-monospace, monospace; letter-spacing: 0.04em; }
.mode-banner { max-width: 820px; margin: 0 auto 8px; padding: 12px 14px; border: 1px solid #d1a100; border-radius: 14px; background: #fff2bd; color: #5c4800; font-size: 14px; font-weight: 680; line-height: 1.45; }

main { max-width: 820px; margin: 0 auto; }
.intro { padding: 34px 4px 30px; }
.eyebrow { display: inline-flex; margin: 0 0 18px; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: #243015; font-size: 12px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font-size: clamp(38px, 8vw, 64px); line-height: 0.99; letter-spacing: -0.06em; font-weight: 860; text-wrap: balance; }
.lede { max-width: 610px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }

.work-form { display: grid; gap: 14px; }
.agent-hub { display: grid; gap: 14px; padding: 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.agent-hub-form { display: grid; gap: 12px; }
.agent-hub-form label { font-size: 18px; font-weight: 800; letter-spacing: -0.025em; }
.agent-hub-form textarea { width: 100%; min-height: 128px; border: 1px solid var(--line); border-radius: 14px; background: var(--field-bg); color: var(--ink); -webkit-text-fill-color: var(--ink); caret-color: var(--primary); padding: 15px; outline: none; resize: vertical; line-height: 1.5; }
.agent-hub-form textarea:focus { border-color: var(--primary); background: var(--surface-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent); }
.agent-hub-form textarea::placeholder { color: color-mix(in srgb, var(--muted) 76%, transparent); -webkit-text-fill-color: color-mix(in srgb, var(--muted) 76%, transparent); }
.agent-examples { display: flex; flex-wrap: wrap; gap: 7px; }
.agent-examples button { border: 1px solid var(--line); border-radius: 999px; background: var(--field-bg); color: var(--ink); padding: 8px 11px; font-size: 10px; font-weight: 700; cursor: pointer; }
.hub-safety { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.product-selector { display: grid; gap: 20px; padding: 24px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 22px 60px rgb(48 38 120 / 8%); backdrop-filter: blur(16px); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.product-grid-four { grid-template-columns: repeat(2, 1fr); }
.product-card { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 5px 14px; min-height: 132px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color 140ms ease, transform 120ms ease, box-shadow 140ms ease; overflow: hidden; }
.product-card:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); box-shadow: 0 12px 28px rgb(64 50 160 / 10%); }
.product-card:active { transform: translateY(1px); }
.product-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--violet-soft); color: #4d36c9; font: 820 17px/1 ui-sans-serif, sans-serif; }
.product-icon-notes { background: var(--mint-soft); color: #107151; }
.product-icon-slides { background: var(--blue-soft); color: #14669d; }
.product-icon-agent { background: var(--orange-soft); color: #a84d14; }
.product-card strong { align-self: end; font-size: 17px; letter-spacing: -0.02em; }
.product-card small { align-self: start; color: var(--muted); font-size: 14px; line-height: 1.45; }
.product-card-coming { cursor: default; background: color-mix(in srgb, var(--surface) 64%, var(--app-bg)); border-style: dashed; }
.product-card-coming:hover { border-color: var(--line); box-shadow: none; }
.coming-badge { position: absolute; top: 12px; right: 12px; padding: 5px 8px; border-radius: 999px; background: var(--orange-soft); color: #8a4218; font-size: 11px; font-weight: 820; text-transform: uppercase; letter-spacing: 0.05em; }
.product-roadmap { margin: 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 7%, var(--surface)); color: var(--muted); font-size: 14px; line-height: 1.5; }
.product-card-savings { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.my-data-view { display: grid; gap: 16px; }
.billing-view { display: grid; gap: 18px; }
.billing-balance { display: grid; gap: 5px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-strong); }
.billing-balance span, .billing-balance small { color: var(--muted); }
.billing-balance strong { font-size: 28px; }
.billing-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.billing-package { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-strong); }
.billing-package strong { font-size: 18px; }
.billing-package span { color: var(--muted); font-weight: 700; }
.billing-package .primary-button, .billing-package .secondary-button { min-height: 44px; padding: 10px; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.billing-mode-note { margin: 0; color: var(--muted); line-height: 1.5; }
.billing-mock-confirm { padding: 16px; border: 1px solid var(--primary); border-radius: 18px; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.billing-mock-confirm p { color: var(--muted); }
.credit-history { display: grid; gap: 10px; }
.credit-history h3 { margin: 0; }
.credit-transaction { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.credit-transaction strong[data-positive="true"] { color: #099268; }
.credit-transaction small { color: var(--muted); }
.credit-price { color: var(--primary) !important; font-weight: 800; }
.data-retention-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 7%, var(--surface)); color: var(--muted); font-size: 13px; line-height: 1.45; }
.my-data-status { padding: 13px 14px; border-radius: 12px; background: var(--field-bg); color: var(--muted); font-size: 13px; line-height: 1.45; }
.my-data-status[data-state="error"] { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--danger); }
.my-data-status[data-state="success"] { background: color-mix(in srgb, #36a269 11%, var(--surface)); color: #1c7247; }
.my-data-list { display: grid; gap: 9px; }
.data-job-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--field-bg); }
.data-job-copy { display: grid; gap: 4px; min-width: 0; }
.data-job-copy strong { font-size: 14px; }
.data-job-copy span, .data-job-copy small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.data-job-filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-delete-button { border: 1px solid color-mix(in srgb, var(--danger) 38%, var(--line)); border-radius: 10px; background: transparent; color: var(--danger); padding: 9px 11px; font-size: 11px; font-weight: 760; cursor: pointer; }
.delete-all-zone { display: grid; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.danger-button { min-height: 46px; border: 1px solid var(--danger); border-radius: 13px; background: var(--danger); color: #ffffff; padding: 0 16px; font-weight: 760; cursor: pointer; }
.danger-button:disabled, .data-delete-button:disabled { cursor: wait; opacity: 0.62; }
.delete-confirmation { display: grid; gap: 9px; padding: 14px; border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--danger) 6%, var(--surface)); }
.delete-confirmation strong { font-size: 14px; }
.delete-confirmation p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.delete-confirmation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chooser-back { justify-self: start; border: 0; background: transparent; color: var(--primary); padding: 8px 2px; font-size: 14px; font-weight: 760; cursor: pointer; }
.form-section { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; padding: 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgb(255 255 255 / 55%) inset; }
.section-heading { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px; padding-bottom: 4px; }
.section-index { display: grid; place-items: center; flex: 0 0 auto; min-width: 44px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--ink); color: var(--surface); font: 750 11px/1 ui-monospace, monospace; }
.section-heading h2 { margin: -2px 0 4px; font-size: 22px; letter-spacing: -0.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span:first-child, .field legend { color: var(--ink); font-size: 14px; font-weight: 760; }
.field b { color: var(--primary); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--field-bg); color: var(--ink); -webkit-text-fill-color: var(--ink); caret-color: var(--primary); padding: 13px 14px; outline: none; resize: vertical; transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.field textarea { min-height: 88px; line-height: 1.48; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 76%, transparent); -webkit-text-fill-color: color-mix(in srgb, var(--muted) 76%, transparent); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); background: var(--surface-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent); }
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus, .field textarea:-webkit-autofill, .field textarea:-webkit-autofill:hover, .field textarea:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink); caret-color: var(--primary); box-shadow: 0 0 0 1000px var(--surface-strong) inset; }
.field small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.field-error { min-height: 0; color: var(--danger) !important; font-weight: 650; }
.field-error:empty { display: none; }
.input-with-suffix { position: relative; }
.input-with-suffix input { padding-right: 88px; }
.input-with-suffix em { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; font-style: normal; }

.segmented-field { margin: 0; padding: 0; border: 0; }
.segmented-field legend { margin-bottom: 8px; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--app-bg); }
.segmented-control label { cursor: pointer; }
.segmented-control input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.segmented-control span { display: block; padding: 10px 8px; border-radius: 9px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 720; }
.segmented-control input:checked + span { background: var(--surface-strong); color: var(--ink); box-shadow: 0 1px 4px rgb(20 20 18 / 9%); }

.template-field { margin: 0; padding: 0; border: 0; }
.template-field legend { margin-bottom: 8px; }
.template-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.template-option { position: relative; display: grid; gap: 5px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--field-bg); cursor: pointer; }
.template-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.template-option:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 13%, transparent); }
.template-option:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.template-option strong { font-size: 11px; line-height: 1.2; }
.template-option small { min-height: 27px; font-size: 9px; line-height: 1.35; }
.template-preview { display: grid; align-content: center; gap: 5px; aspect-ratio: 16 / 9; padding: 12px; border: 1px solid rgb(0 0 0 / 9%); border-radius: 8px; overflow: hidden; }
.template-preview i { display: block; height: 3px; border-radius: 999px; background: currentColor; opacity: 0.78; }
.template-preview i:first-child { width: 64%; height: 6px; opacity: 1; }
.template-preview i:nth-child(2) { width: 88%; }
.template-preview i:nth-child(3) { width: 72%; }
.template-preview-academic { background: #f7f8fb; color: #3156d9; }
.template-preview-minimal { background: #ffffff; color: #111111; }
.template-preview-contrast { background: #15202b; color: #75e6da; }
.template-preview-warm { background: #f8f1e7; color: #c4512d; }

.style-reference-field { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--field-bg); }
.style-reference-field.has-reference { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 10%, transparent); }
.style-reference-copy, .style-reference-warning, .style-reference-consent p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.style-upload-card { background: var(--surface); }
.style-reference-preview { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface); }
.style-reference-preview img { width: 104px; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; background: var(--app-bg); }
.style-reference-preview div { display: grid; gap: 3px; min-width: 0; }
.style-reference-preview strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.style-reference-preview small { color: var(--muted); font-size: 9px; }
.style-reference-preview span { justify-self: start; padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); font-size: 9px; font-weight: 800; }
.style-reference-preview button { border: 0; background: transparent; color: var(--danger); padding: 8px; font-size: 10px; font-weight: 750; cursor: pointer; }
.style-reference-warning { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.style-reference-consent { display: grid; gap: 9px; }

.uploads { grid-column: 1 / -1; display: grid; gap: 8px; }
.upload-card { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 11px; border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 13px; cursor: pointer; transition: border-color 140ms ease, background 140ms ease; }
.upload-card:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 4%, var(--surface)); }
.upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 11px; background: var(--app-bg); color: var(--primary); font-size: 19px; font-weight: 500; }
.upload-card > span:last-child { display: grid; gap: 4px; }
.upload-card strong { font-size: 13px; }
.upload-card small { color: var(--muted); font-size: 10px; }
.audio-upload-card { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.consent-field { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.consent-field input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.audio-warning { margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 7%, var(--surface)); color: var(--muted); font-size: 11px; line-height: 1.45; }
.file-list { grid-column: 1 / -1; display: grid; gap: 6px; }
.file-pill { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--app-bg); color: var(--muted); font-size: 10px; }

.privacy-note { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.privacy-note > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; font-weight: 800; }
.privacy-note p { display: grid; gap: 2px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.privacy-note strong { color: var(--ink); font-size: 12px; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; border: 0; border-radius: 15px; background: var(--primary); color: var(--primary-ink); padding: 0 20px; font-weight: 790; cursor: pointer; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 22%, transparent); transition: transform 120ms ease, filter 120ms ease; }
.primary-button:active { transform: translateY(1px) scale(0.995); }
.primary-button:disabled { cursor: wait; filter: grayscale(0.5); opacity: 0.68; }
.primary-button span:last-child { font-size: 21px; }
.submit-note { margin: -4px 0 18px; text-align: center; color: var(--muted); font-size: 10px; }
.state-view { padding: 24px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.state-kicker { margin: 0 0 8px; color: var(--primary); font-size: 10px; font-weight: 820; letter-spacing: 0.09em; text-transform: uppercase; }
.state-view h2 { margin: 0; font-size: 25px; letter-spacing: -0.035em; }
.state-copy { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.progress-list { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.progress-item { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; min-height: 38px; color: color-mix(in srgb, var(--muted) 64%, transparent); font-size: 12px; }
.progress-dot { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; font: 750 10px/1 ui-monospace, monospace; }
.progress-item[data-state="active"] { color: var(--ink); font-weight: 730; }
.progress-item[data-state="active"] .progress-dot { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); animation: pulse 1.5s ease-in-out infinite; }
.progress-item[data-state="done"] { color: var(--ink); }
.progress-item[data-state="done"] .progress-dot { border-color: var(--ink); background: var(--ink); color: var(--accent); }
.result-card { display: grid; gap: 18px; }
.result-badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--accent); color: #202419; font-size: 24px; font-weight: 850; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.result-stat { display: grid; gap: 4px; padding: 14px 8px; }
.result-stat + .result-stat { border-left: 1px solid var(--line); }
.result-stat strong { font-size: 16px; }
.result-stat span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em; }
.savings-totals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.saving-total { display: grid; gap: 4px; padding: 13px; border-radius: 12px; background: var(--field-bg); }
.saving-total strong { font-size: 17px; }
.saving-total span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; }
.savings-findings { display: grid; gap: 9px; }
.saving-finding { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--field-bg); }
.saving-finding-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.saving-finding h3 { margin: 0; font-size: 14px; }
.saving-finding-head span { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.saving-finding-head span[data-status="confirmed"] { background: color-mix(in srgb, #36a269 14%, var(--surface)); color: #1c7247; }
.saving-finding-head span[data-status="estimated"] { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); }
.saving-finding p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.saving-finding .saving-amounts { color: var(--ink); font-weight: 780; }
.saving-finding .saving-action { color: var(--ink); }
.savings-disclaimer { margin: 0; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--muted); font-size: 10px; line-height: 1.45; }
.concierge-section { display: grid; gap: 10px; }
.concierge-section h3 { margin: 0; font-size: 14px; }
.concierge-section ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.concierge-questions { padding: 14px; border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.concierge-options { display: grid; gap: 10px; }
.concierge-option { display: grid; gap: 9px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--field-bg); }
.concierge-option h4 { margin: 0; font-size: 15px; }
.concierge-option p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.concierge-option .concierge-option-meta { color: var(--ink); font-weight: 750; }
.concierge-link { display: grid; place-items: center; min-height: 40px; padding: 0 12px; text-decoration: none; font-size: 11px; }
.concierge-sources a { color: var(--primary); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.secondary-button { min-height: 46px; border: 1px solid var(--line); border-radius: 13px; background: transparent; color: var(--ink); font-weight: 730; cursor: pointer; }
.state-action { width: 100%; margin-top: 18px; }
.setup-box { border-color: color-mix(in srgb, var(--primary) 24%, var(--line)); }
.error-box { border-color: color-mix(in srgb, var(--danger) 32%, var(--line)); }
.error-box .state-kicker { color: var(--danger); }
.site-footer { max-width: 820px; margin: 30px auto 0; padding: 22px 4px 4px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer p { margin: 0 0 12px; font-size: 14px; line-height: 1.4; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.site-footer a { color: var(--muted); font-size: 14px; font-weight: 700; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--primary); }

.legal-main { max-width: 760px; }
.legal-hero { padding: 34px 4px 24px; }
.legal-hero h1 { max-width: 680px; font-size: clamp(36px, 8vw, 58px); overflow-wrap: anywhere; }
.legal-updated { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.legal-card { display: grid; gap: 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 20px 60px rgb(48 38 120 / 7%); }
.legal-card section { display: grid; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.legal-card h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.legal-card p, .legal-card li { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.legal-card ul { display: grid; gap: 8px; margin: 0; padding-left: 22px; }
.legal-card strong { color: var(--ink); }
.legal-callout { padding: 16px; border-radius: 15px; background: color-mix(in srgb, var(--primary) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); }
.legal-warning { background: #fff6d8; border-color: #e8c760; color: #5c4800 !important; }
.legal-back { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 15px; font-weight: 780; text-decoration: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 13%, transparent); } }

@media (max-width: 560px) {
  .billing-packages { grid-template-columns: 1fr; }
  .credit-transaction { grid-template-columns: auto 1fr; }
  .credit-transaction small { grid-column: 2; }
  .app-shell { padding-inline: 10px; }
  .topbar { padding-inline: 4px; }
  .topbar-actions { gap: 5px; }
  .credit-balance { max-width: 132px; padding: 6px 8px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
  .credit-balance:not([hidden]) ~ .version { display: none; }
  .data-nav-button { padding-inline: 9px; }
  .version { padding-inline: 8px; font-size: 10px; }
  .intro { padding: 24px 4px 22px; }
  .form-section { grid-template-columns: 1fr; padding: 18px 14px; }
  .field-wide, .section-heading { grid-column: 1; }
  .lede { font-size: 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-selector { padding: 18px 14px; }
  .product-card { min-height: 122px; padding: 16px; }
  .site-footer { padding-inline: 4px; }
  .legal-card { padding: 22px 18px; }
  .template-grid { grid-template-columns: 1fr 1fr; }
  .style-reference-preview { grid-template-columns: 78px minmax(0, 1fr); }
  .style-reference-preview img { width: 78px; }
  .style-reference-preview button { grid-column: 1 / -1; justify-self: start; }
  .data-job-card { grid-template-columns: 1fr; }
  .data-delete-button { justify-self: start; }
  .delete-confirmation-actions { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: 1fr; }
  .result-stat + .result-stat { border-left: 0; border-top: 1px solid var(--line); }
}

/* Mobile product shell inspired by familiar native utility apps. */
.app-shell {
  padding: var(--safe-top) 16px calc(106px + var(--safe-bottom));
  background: var(--app-bg);
}
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  max-width: 540px;
  height: 60px;
  padding: 0 6px;
  background: color-mix(in srgb, var(--app-bg) 88%, transparent);
  backdrop-filter: blur(18px);
}
.brand { gap: 0; font-size: 32px; font-weight: 900; letter-spacing: -0.065em; }
.profile-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--primary);
  cursor: pointer;
}
.profile-button svg, .bottom-nav svg, .product-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mode-banner {
  max-width: 540px;
  margin: 2px auto 10px;
  padding: 8px 11px;
  border-color: #eed36b;
  border-radius: 13px;
  background: #fff7d7;
  font-size: 10px;
}
main { max-width: 540px; }

.product-selector {
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.home-hero {
  position: relative;
  display: block;
  min-height: 128px;
  padding: 61px 125px 13px 7px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 27%, rgb(255 255 255 / 92%) 0 5px, transparent 6px),
    radial-gradient(circle at 70% 12%, rgb(122 102 246 / 18%) 0 3px, transparent 4px),
    linear-gradient(145deg, #e8f2ff, #f7f9ff 56%, #eee9ff);
  overflow: hidden;
}
.home-hero-copy { position: relative; z-index: 2; }
.home-hero h1 { max-width: 310px; margin: 0; font-size: clamp(31px, 8vw, 42px); line-height: 1.02; letter-spacing: -.055em; }
.panda-mascot {
  position: absolute;
  z-index: 1;
  right: 7px;
  bottom: -22px;
  width: 116px;
  height: auto;
  filter: drop-shadow(0 18px 22px rgb(47 93 245 / 20%));
  pointer-events: none;
  user-select: none;
}
.product-grid, .product-grid-four { grid-template-columns: 1fr; gap: 7px; }
.product-card {
  grid-template-columns: 60px minmax(0, 1fr) 38px;
  grid-template-rows: auto auto;
  gap: 4px 14px;
  min-height: 82px;
  padding: 12px 14px;
  border-color: rgb(47 93 245 / 8%);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--blue-soft) 34%, var(--surface)));
  box-shadow: 0 12px 34px rgb(30 53 110 / 8%);
}
.product-card:hover { border-color: color-mix(in srgb, var(--primary) 34%, var(--line)); box-shadow: 0 12px 28px rgb(47 93 245 / 9%); }
.product-icon { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 18px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%), 0 10px 24px rgb(47 93 245 / 12%); }
.product-icon svg { width: 27px; height: 27px; }
.product-icon-document { background: linear-gradient(145deg, #e5f2ff, #cfe3ff); color: #1f6fff; }
.product-icon-notes { background: linear-gradient(145deg, #e8eeff, #dfe5ff); color: #5367df; }
.product-icon-slides { background: linear-gradient(145deg, #f0ebff, #e4d9ff); color: #8055e8; }
.product-icon-savings { background: var(--orange-soft); color: #ef6c5b; }
.product-card strong { grid-column: 2; align-self: end; font-size: 16px; letter-spacing: -.025em; }
.product-card small { grid-column: 2; align-self: start; color: #68748a; font-size: 12px; line-height: 1.38; }
.product-chevron { display: grid; grid-column: 3; grid-row: 1 / 3; place-items: center; align-self: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); font-size: 26px; font-weight: 350; }
.product-card-disabled {
  cursor: default;
  border-color: color-mix(in srgb, var(--ink) 6%, transparent);
  background: color-mix(in srgb, var(--surface) 58%, var(--app-bg));
  box-shadow: none;
  opacity: .74;
}
.product-card-disabled:hover { border-color: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: none; }
.product-icon-agent { background: linear-gradient(145deg, #eef1f6, #dfe5ee); color: #8c97a9; box-shadow: none; }
.product-title-row { display: flex; grid-column: 2 / 4; align-items: center; justify-content: space-between; gap: 10px; align-self: end; min-width: 0; }
.product-title-row strong { grid-column: auto; align-self: auto; color: color-mix(in srgb, var(--ink) 66%, var(--muted)); }
.coming-badge { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; background: #dbe1eb; color: #747f91; font-size: 10px; font-weight: 760; }
.product-card-disabled small { grid-column: 2 / 4; color: color-mix(in srgb, var(--muted) 78%, transparent); }
.agent-entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line));
  border-radius: 19px;
  background: color-mix(in srgb, var(--primary) 5%, var(--surface));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.agent-entry-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary); color: #fff; font-size: 20px; }
.agent-entry > span:nth-child(2) { display: grid; gap: 3px; }
.agent-entry strong { font-size: 14px; }
.agent-entry small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.product-roadmap { padding: 0 6px; background: transparent; text-align: center; font-size: 10px; }

.agent-hub { gap: 18px; padding: 4px 0 0; border: 0; background: transparent; }
.task-heading { display: grid; gap: 7px; }
.task-heading h1 { font-size: 38px; line-height: 1; }
.task-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.task-kicker { margin: 0; color: var(--primary); font-size: 10px; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.agent-hub-form { gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.agent-hub-form label { font-size: 13px; }
.agent-hub-form textarea { min-height: 170px; border: 0; background: var(--field-bg); }
.agent-examples button { min-height: 35px; background: var(--surface); font-size: 10px; }

.work-form { gap: 12px; }
.form-section, .state-view, .my-data-view {
  border-color: color-mix(in srgb, var(--ink) 9%, transparent);
  border-radius: 22px;
  box-shadow: 0 8px 28px rgb(30 53 110 / 4%);
}
.form-section { padding: 20px 16px; }
.section-index { background: var(--blue-soft); color: var(--primary); }
.chooser-back { min-height: 38px; color: var(--ink); font-size: 12px; }
.field input, .field textarea, .field select { min-height: 48px; border-radius: 13px; }
.primary-button { min-height: 56px; border-radius: 16px; box-shadow: 0 12px 26px rgb(47 93 245 / 23%); }
.secondary-button { border-radius: 16px; background: var(--surface); }
.state-view { padding: 22px 18px; }
.result-card { text-align: left; }
.result-badge { width: 68px; height: 68px; margin: 4px auto 2px; border-radius: 24px; background: linear-gradient(145deg, #5bdcc8, #35c8b2); color: #fff; box-shadow: 0 14px 28px rgb(53 200 178 / 24%); }
.result-card > div:nth-child(2) { text-align: center; }
.result-card .primary-button { justify-content: center; gap: 10px; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 540px);
  min-height: calc(68px + var(--safe-bottom));
  padding: 7px 18px calc(7px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 -10px 32px rgb(20 32 66 / 6%);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}
.bottom-nav button, .bottom-nav a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 740;
  text-decoration: none;
  cursor: pointer;
}
.bottom-nav svg { width: 22px; height: 22px; }
.bottom-nav [data-active="true"] { border-radius: 16px; background: color-mix(in srgb, var(--primary) 9%, transparent); color: var(--primary); }
.site-footer { max-width: 540px; margin-top: 24px; padding-bottom: 2px; }
.site-footer p, .site-footer a { font-size: 10px; }

@media (width >= 700px) {
  body { background: #eef2fb; }
  .app-shell { max-width: 580px; margin: 0 auto; background: var(--app-bg); box-shadow: 0 0 70px rgb(39 53 91 / 10%); }
}

@media (max-width: 560px) {
  .app-shell { padding-inline: 13px; }
  .topbar { padding-inline: 1px; }
  .product-selector { padding: 0; }
  .product-card { min-height: 82px; padding: 12px 14px; }
  .product-card-disabled { min-height: 90px; }
  .home-hero { padding-right: 116px; }
  .panda-mascot { right: 1px; width: 112px; }
}

@media (max-width: 350px) {
  .brand { font-size: 33px; }
  .home-hero { min-height: 144px; padding: 75px 112px 16px 5px; }
  .home-hero h1 { font-size: 30px; }
  .panda-mascot { right: -6px; bottom: -20px; width: 112px; }
  .product-card { grid-template-columns: 52px minmax(0, 1fr) 34px; gap-inline: 11px; padding: 13px; }
  .product-icon { width: 52px; height: 52px; }
  .product-card strong { font-size: 15px; }
  .product-card small { font-size: 11px; }
}

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

/* 0.8.3 — pixel-faithful light Airo home. Kept last so legacy form styles remain intact. */
.app-shell {
  min-height: 100dvh;
  padding: var(--safe-top) 17px calc(104px + var(--safe-bottom));
  background:
    radial-gradient(circle at 82% 9%, rgb(190 213 255 / 38%) 0, transparent 25rem),
    linear-gradient(180deg, #f8fbff 0%, #f3f7ff 70%, #f7f9ff 100%);
}
.topbar {
  position: relative;
  z-index: 20;
  top: auto;
  max-width: 500px;
  height: 82px;
  padding: 2px 8px 0;
  background: transparent;
  backdrop-filter: none;
}
.brand {
  gap: 0;
  color: #06132c;
  font-size: clamp(48px, 13vw, 62px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.075em;
}
.mode-banner {
  max-width: 500px;
  margin: 0 auto 10px;
  padding: 9px 12px;
  border-color: #ecd26b;
  border-radius: 14px;
  background: #fff8da;
  color: #604d08;
  font-size: 11px;
}
main { max-width: 500px; }

.product-selector {
  gap: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.home-hero {
  position: relative;
  display: block;
  min-height: 218px;
  /* Keep the mascot above a full-width title, as in the approved mobile mockup. */
  padding: 166px 7px 18px;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.hero-art {
  position: absolute;
  top: 0;
  right: -8px;
  width: 250px;
  height: 190px;
  border-radius: 46% 44% 43% 49%;
  background:
    radial-gradient(circle at 66% 32%, rgb(255 255 255 / 95%) 0 4px, transparent 5px),
    radial-gradient(circle at 22% 24%, rgb(255 255 255 / 95%) 0 5px, transparent 6px),
    linear-gradient(145deg, #dfeeff 0%, #edf4ff 57%, #e8e5ff 100%);
  filter: drop-shadow(0 18px 30px rgb(57 105 196 / 10%));
}
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgb(255 255 255 / 56%);
}
.hero-art::before { width: 104px; height: 42px; left: -34px; bottom: 18px; transform: rotate(-13deg); }
.hero-art::after { width: 86px; height: 34px; right: -24px; top: 48px; transform: rotate(19deg); }
.hero-spark { position: absolute; z-index: 3; color: #4f92ff; font-weight: 800; text-shadow: 0 5px 10px rgb(43 112 255 / 18%); }
.hero-spark-one { left: 25px; top: 26px; font-size: 18px; transform: rotate(12deg); }
.hero-spark-two { right: 13px; top: 62px; color: #765cf3; font-size: 13px; }
.hero-spark-three { left: 45px; bottom: 35px; color: #55d8c3; font-size: 12px; }
.home-hero-copy { position: relative; z-index: 4; }
.home-hero h1 {
  max-width: 100%;
  margin: 0;
  color: #050f24;
  font-size: clamp(25px, 6.4vw, 32px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.058em;
  text-wrap: balance;
}
.panda-mascot {
  position: absolute;
  z-index: 2;
  right: -5px;
  top: 4px;
  bottom: auto;
  width: 213px;
  height: auto;
  filter: drop-shadow(0 17px 20px rgb(36 92 184 / 17%));
  pointer-events: none;
  user-select: none;
}
.product-grid, .product-grid-four { grid-template-columns: 1fr; gap: 10px; }
.product-card {
  grid-template-columns: 72px minmax(0, 1fr) 43px;
  grid-template-rows: auto auto;
  gap: 5px 16px;
  min-height: 100px;
  padding: 13px 15px;
  border: 1px solid rgb(41 101 215 / 6%);
  border-radius: 27px;
  background: linear-gradient(118deg, #ffffff 7%, #f4f8ff 100%);
  box-shadow: 0 14px 36px rgb(42 75 139 / 10%), inset 0 1px 0 rgb(255 255 255 / 90%);
}
.product-card:nth-child(2) { background: linear-gradient(118deg, #ffffff 7%, #f4f6ff 100%); }
.product-card:nth-child(3) { background: linear-gradient(118deg, #ffffff 7%, #f8f3ff 100%); }
.product-card:hover { border-color: rgb(23 105 246 / 20%); box-shadow: 0 16px 38px rgb(42 75 139 / 13%); }
.product-card:focus-visible { outline: 3px solid rgb(23 105 246 / 28%); outline-offset: 2px; }
.product-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%), 0 12px 26px rgb(61 100 182 / 13%);
}
.product-icon svg {
  width: 58px;
  height: 58px;
  overflow: visible;
  fill: initial;
  stroke: initial;
  filter: drop-shadow(0 6px 6px rgb(66 99 170 / 14%));
}
.product-icon-document { background: linear-gradient(145deg, #e7f4ff, #d8e9ff); }
.product-icon-notes { background: linear-gradient(145deg, #f0efff, #e4e5ff); }
.product-icon-slides { background: linear-gradient(145deg, #f4efff, #eee2ff); }
.product-card strong {
  grid-column: 2;
  align-self: end;
  color: #07152e;
  font-size: 19px;
  font-weight: 830;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.product-card small {
  grid-column: 2;
  align-self: start;
  color: #687286;
  font-size: 14px;
  line-height: 1.32;
}
.product-chevron {
  display: grid;
  grid-column: 3;
  grid-row: 1 / 3;
  place-items: center;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e7f0ff;
  color: #0872f8;
  font-size: 32px;
  font-weight: 350;
  line-height: 1;
}
.product-card-disabled {
  min-height: 104px;
  cursor: default;
  border-color: rgb(96 111 139 / 7%);
  background: linear-gradient(118deg, rgb(255 255 255 / 70%), rgb(239 243 250 / 86%));
  box-shadow: 0 9px 25px rgb(65 79 107 / 5%);
  opacity: .66;
}
.product-card-disabled:hover { border-color: rgb(96 111 139 / 7%); box-shadow: 0 9px 25px rgb(65 79 107 / 5%); }
.product-icon-agent { background: linear-gradient(145deg, #f1f3f7, #e5e9f1); box-shadow: none; }
.product-icon-agent svg { filter: drop-shadow(0 5px 6px rgb(83 97 122 / 10%)); }
.product-title-row {
  display: flex;
  grid-column: 2 / 4;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  align-self: end;
  min-width: 0;
}
.product-title-row strong { grid-column: auto; align-self: auto; color: #536074; }
.coming-badge {
  position: static;
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  background: #d7deea;
  color: #697486;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
.product-card-disabled small { grid-column: 2 / 4; color: #8a94a5; }

.bottom-nav {
  width: min(100%, 500px);
  min-height: calc(78px + var(--safe-bottom));
  padding: 8px 22px calc(8px + var(--safe-bottom));
  border-top: 1px solid rgb(34 63 115 / 8%);
  border-radius: 28px 28px 0 0;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 -14px 38px rgb(29 53 101 / 9%);
  backdrop-filter: blur(24px);
}
.bottom-nav button, .bottom-nav a {
  gap: 4px;
  color: #657086;
  font-size: 12px;
  font-weight: 650;
}
.bottom-nav svg { width: 25px; height: 25px; }
.bottom-nav [data-active="true"] { border-radius: 18px; background: #edf4ff; color: #0872f8; font-weight: 760; }
.bottom-nav [data-active="true"] svg { fill: currentColor; stroke: currentColor; }
.site-footer { max-width: 500px; }
.app-shell:has(#product-selector:not([hidden])) .site-footer { display: none; }

@media (width >= 700px) {
  body { background: #e9eff9; }
  .app-shell { max-width: 540px; margin: 0 auto; background: var(--app-bg); box-shadow: 0 0 70px rgb(39 53 91 / 12%); }
}

@media (max-width: 560px) {
  .app-shell { padding-inline: 17px; }
  .topbar { padding-inline: 7px; }
}

@media (max-width: 390px) {
  .topbar { height: 72px; }
  .brand { font-size: 47px; }
  .home-hero { min-height: 205px; padding: 155px 5px 16px; }
  .hero-art { right: -16px; width: 232px; height: 178px; }
  .panda-mascot { width: 198px; }
  .home-hero h1 { font-size: 26px; }
  .product-card { grid-template-columns: 64px minmax(0, 1fr) 38px; gap-inline: 12px; min-height: 94px; padding: 12px 13px; }
  .product-icon { width: 64px; height: 64px; border-radius: 20px; }
  .product-icon svg { width: 52px; height: 52px; }
  .product-card strong { font-size: 17px; }
  .product-card small { font-size: 13px; }
  .product-chevron { width: 38px; height: 38px; font-size: 29px; }
  .coming-badge { padding: 5px 10px; font-size: 12px; }
  .bottom-nav { padding-inline: 13px; }
}

@media (max-width: 350px) {
  .app-shell { padding-inline: 13px; }
  .home-hero { min-height: 192px; padding: 144px 5px 14px; }
  .hero-art { width: 215px; height: 166px; }
  .panda-mascot { width: 184px; }
  .home-hero h1 { font-size: 24px; }
  .product-card { grid-template-columns: 60px minmax(0, 1fr) 34px; gap-inline: 10px; min-height: 90px; }
  .product-icon { width: 60px; height: 60px; }
  .product-icon svg { width: 48px; height: 48px; }
  .product-card strong { font-size: 16px; }
  .product-card small { font-size: 13px; }
}
