/* MediShip — Figma Shipping semantic tokens, Light / Dark. */
@font-face { font-family:'Noto Sans SC'; src:url('./fonts/NotoSansSC-review.woff2') format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'Noto Serif SC'; src:url('./fonts/NotoSerifSC-review.woff2') format('woff2'); font-weight:100 900; font-display:swap; }
:root {
  color-scheme:light;
  --canvas:#f2f2f7; --surface:#fff; --inset:#f4f4f6; --text:#000; --secondary:#636368;
  --divider:#d8d8dc; --border:#86868b; --accent:#08705f; --tint:#e2f3ef; --on-accent:#fff;
  --button-fill:#087a68; --button-hover:#066454; --control-accent:#087a68;
  --error:#bf0a00; --error-bg:rgb(255 59 48 / 12%); --success:#1d7233; --success-bg:rgb(52 199 89 / 12%);
  --warning:#915500; --warning-bg:rgb(255 149 0 / 12%); --disabled:#eeeef0; --disabled-text:#636368;
  --shadow:0 12px 40px #00000018; --radius:12px;
  font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Kaku Gothic ProN','Noto Sans SC',sans-serif;
  line-height:1.625; font-synthesis:none; text-rendering:optimizeLegibility;
}
:root[data-theme='dark'] {
  color-scheme:dark;
  --canvas:#000; --surface:#1c1c1e; --inset:#2c2c2e; --text:#fff; --secondary:#a4a4aa;
  --divider:#38383a; --border:#7c7c80; --accent:#3fd1b4; --tint:#173a34; --on-accent:#fff;
  --button-fill:#0b7f6a; --button-hover:#096c5a; --control-accent:#12a68a;
  --error:#ff8a83; --error-bg:rgb(255 69 58 / 12%); --success:#4cde75; --success-bg:rgb(48 209 88 / 12%);
  --warning:#ffae42; --warning-bg:rgb(255 159 10 / 12%); --disabled:#2c2c2e; --disabled-text:#a4a4aa;
  --shadow:0 12px 40px #0006;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--canvas); color:var(--text); }
html { scroll-padding-top:100px; }
button,input,select,textarea { font:inherit; color:inherit; }
button,input,select { min-height:44px; }
button { cursor:pointer; }
button,select { touch-action:manipulation; }
a { color:var(--accent); text-underline-offset:3px; }
button:disabled { cursor:not-allowed; background:var(--disabled); color:var(--disabled-text); }
:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
[hidden] { display:none !important; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
h1,h2,h3,p,dl,dd { margin:0; }
h2 { font-size:1.25rem; line-height:1.875rem; }
h3 { font-size:1rem; line-height:1.5rem; }
.topbar { background:var(--surface); }
.topbar-inner { max-width:1120px; margin:auto; min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; }
.brand { text-decoration:none; color:var(--text); flex-shrink:0; }
.brand b { display:block; font-size:1.25rem; line-height:1.875rem; }
.brand small { display:block; font-size:0.8125rem; line-height:1.375rem; color:var(--secondary); }
.topbar-tools { display:flex; align-items:center; gap:12px; }
.language-switch { display:flex; }
.language-switch button { padding:8px; background:none; border:0; border-radius:8px; font-size:0.875rem; color:var(--secondary); }
.language-switch button[aria-pressed='true'] { color:var(--accent); font-weight:600; }
.page-shell { max-width:1120px; margin:auto; padding:40px 0 32px; }
.hero { margin-bottom:24px; }
.hero-copy { display:flex; flex-direction:column; gap:12px; }
.hero-kicker { font-size:0.8125rem; color:var(--accent); font-weight:500; }
.hero h1 { font-size:2rem; line-height:2.75rem; letter-spacing:-.025em; }
.hero-description { color:var(--secondary); }
.route-picker { width:min(440px,100%); margin-top:12px; }
.route-options { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border-radius:16px; background:var(--inset); }
.route-mode-option { border:1px solid transparent; background:transparent; border-radius:8px; padding:8px 16px; text-align:left; min-width:0; }
.route-mode-option.is-selected { background:var(--surface); border-color:var(--divider); }
.route-mode-option b { font-weight:500; color:var(--secondary); }
.route-mode-option.is-selected b { color:var(--accent); }
.route-mode-option small { display:block; color:var(--secondary); font-size:0.8125rem; line-height:1.375rem; }
.brand-mark,.topbar-meta,.hero-visual,.hero-meta,.hero-description--compact,.route-picker-head,.route-mode-state,.package-intro,.hero-route-info { display:none; }
.layout { display:grid; grid-template-columns:minmax(0,736px) 360px; gap:24px; align-items:start; }
.form-column { display:grid; gap:16px; min-width:0; }
.card,.summary-card { background:var(--surface); border-radius:20px; padding:24px; min-width:0; }
.section-title { margin-bottom:20px; }
.section-title p,.service-hint { display:none; }
.package-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px 24px; align-items:start; }
.service-fieldset { grid-column:1/-1; }
fieldset { padding:0; margin:0; border:0; min-width:0; }
.field { display:flex; flex-direction:column; gap:8px; min-width:0; }
.label { font-weight:500; line-height:1.5rem; display:block; margin-bottom:0; }
legend.label { margin-bottom:12px; }
.service-options,.temperature-options { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.choice-option { display:flex; position:relative; align-items:center; min-width:0; gap:12px; padding:12px 16px; border:1px solid var(--border); border-radius:12px; cursor:pointer; }
.choice-option .option-copy { flex:1; min-width:0; }
.choice-option b { display:block; font-size:1rem; line-height:1.5rem; font-weight:500; }
.choice-option small { display:block; margin-top:4px; font-size:0.8125rem; line-height:1.375rem; color:var(--secondary); }
.service-choice small { margin-top:12px; }
.choice-option input { position:absolute; width:1px; height:1px; min-height:0; opacity:0; }
.choice-option:has(input:checked) { border-color:var(--control-accent); box-shadow:inset 0 0 0 1px var(--control-accent); background:var(--tint); }
.choice-option:has(input:focus-visible) { outline:3px solid var(--accent); outline-offset:3px; }
.choice-option:has(input:disabled) { color:var(--disabled-text); background:var(--disabled); border-color:var(--divider); cursor:not-allowed; }
.choice-option:has(input:disabled) small { color:var(--disabled-text); }
.choice-option .design-icon { display:none; order:2; }
.choice-option:has(input:checked) .design-icon { display:inline-flex; }
.design-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 20px; width:20px; height:20px; }
.design-icon img { display:block; flex-shrink:0; }
.design-icon .icon-dark { display:none; }
[data-theme='dark'] .design-icon .icon-light { display:none; }
[data-theme='dark'] .design-icon .icon-dark { display:block; }
.field input:not([type='radio']),.destination-trigger { width:100%; min-width:0; height:48px; border:1px solid var(--border); border-radius:12px; padding:10px 16px; background:var(--surface); line-height:1.625rem; }
input::placeholder { color:var(--secondary); opacity:1; }
input[aria-invalid='true'] { border-color:var(--error) !important; }
.field-hint,.micro-note,.size-feedback,.size-availability,.weight-limit-status { font-size:0.8125rem; line-height:1.375rem; color:var(--secondary); }
.weight-format-hint,.weight-cap-hint { display:block; margin-top:8px; }
.weight-limit-status.is-pending { display:none; }
.weight-limit-status.is-over,.weight-limit-status.is-invalid,.field-error { color:var(--error); }
.weight-limit-status.is-near,.weight-limit-status.is-split { color:var(--warning); }
.weight-limit-status span { display:block; }
.field-error { font-size:0.8125rem; }
.dimensions-card { display:flex; flex-direction:column; gap:20px; }
.temperature-fieldset .micro-note { margin-top:8px; }
.size-picker { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.size-fieldset { display:flex; flex-direction:column; gap:12px; }
.size-fieldset > .micro-note { display:none; }
.size-picker .choice-option { min-height:48px; padding:10px 12px; }
.size-picker .choice-option b { font-size:0.875rem; }
.size-option-badge { display:block; font-size:0.75rem; line-height:1.25rem; color:var(--secondary); }
.size-picker small { font-size:0.75rem; line-height:1.25rem; }
.ice-quantity { border-top:1px solid var(--divider); padding-top:20px; display:grid; grid-template-columns:1fr auto; gap:4px 12px; align-items:center; }
.ice-quantity .label { grid-column:1; }
.stepper { grid-column:2; grid-row:1/3; display:flex; width:148px; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.stepper button { display:grid; place-items:center; flex:0 0 44px; border:0; border-radius:0; background:var(--inset); height:48px; color:var(--accent); }
.stepper button:disabled { background:var(--disabled); }
.stepper input[type='number'] { width:58px; height:48px; border:0; padding:0; text-align:center; border-radius:0; font-weight:600; appearance:textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance:none; }
.ice-retention-hint,.ice-validation { grid-column:1/-1; }
.ice-reset-button { grid-column:2; color:var(--accent); background:none; border:0; padding:0 8px; font-size:0.8125rem; }
.weight-check,.ems-weight-note { font-size:0.8125rem; color:var(--secondary); }
.weight-check { display:flex; gap:8px; }
.weight-check.is-error { color:var(--error); }
.weight-check.is-valid { color:var(--success); }
.ems-weight-note { padding:16px; background:var(--inset); border-radius:12px; }
.quote-column { position:sticky; top:24px; min-width:0; background:var(--surface); border-radius:20px; padding-bottom:24px; }
.summary-card { padding-bottom:12px; }
.summary-content { display:flex; flex-direction:column; gap:12px; }
.summary-heading .overline { font-size:0.8125rem; color:var(--accent); }
.summary-heading h2 { margin-top:8px; }
.summary-badges { font-size:0.8125rem; color:var(--secondary); margin-top:8px; }
.local-badge { display:none; }
.price-block { padding:16px 0; display:flex; flex-direction:column; gap:8px; }
.price-block > span,.price-block small { font-size:0.8125rem; color:var(--secondary); }
.price-block strong { overflow-wrap:anywhere; font-family:-apple-system,BlinkMacSystemFont,sans-serif; font-size:3rem; font-weight:600; line-height:3.5rem; font-variant-numeric:tabular-nums; letter-spacing:-.03em; }
.price-block strong.is-unavailable { font-size:1.5rem; line-height:2rem; color:var(--error); }
.summary-section { border-top:1px solid var(--divider); padding-top:12px; }
.summary-section h3 { font-size:0.8125rem; color:var(--secondary); font-weight:500; margin-bottom:4px; }
.summary-row { display:flex; align-items:start; justify-content:space-between; gap:16px; padding:8px 0; }
.summary-row dt { color:var(--secondary); font-size:0.8125rem; line-height:1.375rem; }
.summary-row dd { font-family:-apple-system,BlinkMacSystemFont,sans-serif; font-size:1.0625rem; line-height:1.5rem; font-weight:600; text-align:right; flex-shrink:0; max-width:55%; overflow-wrap:anywhere; }
.summary-footnote,.ems-result-disclaimer,.inhouse-fee-note { font-size:0.8125rem; color:var(--secondary); line-height:1.375rem; }
.summary-actions { display:grid; gap:12px; margin-top:16px; }
.primary-button,.secondary-button,.dialog-actions button,.mobile-estimate-dock button { min-height:44px; border-radius:12px; padding:8px 16px; font-weight:500; border:1px solid var(--border); background:var(--surface); color:var(--accent); }
.primary-button,.mobile-estimate-dock button,.dialog-confirm { background:var(--button-fill); color:var(--on-accent); border-color:transparent; }
.summary-actions [data-action='reset'] { border-color:transparent; }
button:disabled { background:var(--disabled); color:var(--disabled-text); border-color:var(--divider); }
.quote-pending,.unavailable { padding:16px; border-radius:12px; background:var(--inset); display:flex; flex-direction:column; gap:8px; }
.quote-pending .status-eyebrow,.unavailable .status-eyebrow { font-size:0.8125rem; }
.quote-pending strong,.unavailable strong { font-size:1.25rem; line-height:1.875rem; }
.quote-pending p,.unavailable p { font-size:0.8125rem; color:var(--secondary); }
.unavailable { background:var(--error-bg); color:var(--error); }
.ems-result-header { display:flex; flex-direction:column; gap:8px; }
.ems-result-brand { color:var(--accent); font-size:0.8125rem; }
.ems-result-mark { display:none; }
.ems-result-service { font-size:0.8125rem; color:var(--secondary); }
.ems-route-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ems-route-connector { display:none; }
.ems-result-field dt { font-size:0.8125rem; color:var(--secondary); }
.ems-result-field dd { font-size:1.25rem; font-weight:700; }
.ems-result-zone { display:block; font-size:0.8125rem; font-weight:400; color:var(--secondary); }
details { border:1px solid var(--border); border-radius:12px; padding:0 16px; }
summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:12px 0; cursor:pointer; font-size:0.875rem; font-weight:500; list-style:none; }
summary::-webkit-details-marker { display:none; }
details[open] > summary .design-icon { transform:rotate(180deg); }
details > :not(summary) { padding-bottom:12px; }
.size-help-content p + p { margin-top:8px; }
.size-help-content,.rate-details-body { font-size:0.8125rem; color:var(--secondary); line-height:1.375rem; }
.weight-guidance { border:0; padding:0; }
.weight-guidance summary { font-size:0.8125rem; color:var(--secondary); padding:0; min-height:44px; }
.rate-details { margin:0 24px; }
.rate-sources { display:grid; gap:8px; margin-top:12px; }
.rate-version-block { margin-top:12px; }
.rate-version-block h3 { font-size:0.875rem; }
.rate-version-list { padding-left:18px; }
.site-version,.release-summary { margin-top:8px; }
.notes-card { display:flex; gap:12px; margin-top:24px; color:var(--secondary); }
.notes-card h2 { font-size:0.8125rem; font-weight:500; line-height:1.375rem; }
.notes-card p,footer { font-size:0.8125rem; line-height:1.375rem; }
.notes-mark { display:none; }
footer { display:flex; flex-direction:column; gap:4px; margin-top:8px; color:var(--secondary); }
.destination-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:left; }
.destination-panel { position:fixed; z-index:100; border:1px solid var(--border); background:var(--surface); box-shadow:var(--shadow); border-radius:16px; padding:16px; display:flex; flex-direction:column; gap:12px; }
.destination-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.destination-panel-heading span { display:block; font-size:0.8125rem; color:var(--secondary); }
.destination-close,.clear-search { border:0; background:var(--inset); border-radius:8px; padding:8px 12px; color:var(--accent); }
.destination-close { min-width:44px; font-size:1.5rem; }
.destination-search-row { display:flex; gap:8px; }
.destination-search-row input { min-width:0; flex:1; }
.destination-status,.destination-empty { font-size:0.8125rem; color:var(--secondary); }
.destination-results { overflow:auto; min-height:0; overscroll-behavior:contain; }
.destination-group h3 { font-size:0.8125rem; color:var(--secondary); padding:12px 0 8px; }
.destination-group h3 small { display:block; }
.destination-group-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
.destination-option { border:1px solid transparent; background:var(--surface); text-align:left; padding:8px 12px; border-radius:8px; font-size:0.875rem; overflow-wrap:anywhere; }
.destination-option[aria-selected='true'],.destination-option.is-active { background:var(--tint); border-color:var(--accent); color:var(--accent); }
.summary-dialog { border:1px solid var(--divider); border-radius:20px; padding:24px; width:min(540px,calc(100% - 32px)); max-height:85dvh; overflow:auto; background:var(--surface); color:var(--text); box-shadow:var(--shadow); }
.summary-dialog::backdrop { background:#0007; }
.summary-dialog p { color:var(--secondary); font-size:0.875rem; margin:12px 0; }
.summary-dialog textarea { width:100%; min-height:220px; border:1px solid var(--border); border-radius:12px; padding:12px; background:var(--inset); }
.dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:12px; margin-top:20px; }
.image-fallback-preview { display:block; width:100%; height:auto; }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:var(--text); color:var(--surface); padding:12px 20px; border-radius:12px; box-shadow:var(--shadow); z-index:200; max-width:calc(100% - 32px); font-size:0.875rem; }
.mobile-estimate-dock { display:none; }
@media (hover:hover) {
  button:not(:disabled):hover,.choice-option:not(:has(input:disabled)):hover { filter:brightness(.97); }
  [data-theme='dark'] button:not(:disabled):hover { filter:brightness(1.1); }
}
@media(max-width:1200px) { .topbar-inner,.page-shell { margin-left:24px; margin-right:24px; } .layout { grid-template-columns:minmax(0,1fr) 340px; } }
@media(max-width:1040px) {
  .layout { grid-template-columns:1fr; }
  .quote-column { position:static; }
  .page-shell { padding-bottom:160px; }
  .mobile-estimate-dock { display:flex; position:fixed; bottom:0; left:0; right:0; align-items:center; justify-content:space-between; gap:16px; padding:12px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); background:var(--surface); border-top:1px solid var(--divider); z-index:40; }
  .mobile-estimate-copy { display:flex; flex-direction:column; min-width:0; }
  .mobile-estimate-copy > span,.mobile-estimate-copy small { font-size:0.8125rem; line-height:1.375rem; color:var(--secondary); }
  .mobile-estimate-copy strong { overflow-wrap:anywhere; font-size:1.5rem; line-height:2rem; font-weight:600; }
  .mobile-estimate-dock button { flex:0 0 auto; min-width:132px; }
  .mobile-estimate-dock.is-quote-visible { display:none; }
  .toast { bottom:120px; }
}
@media(max-width:600px) {
  .topbar { position:sticky; top:0; z-index:50; }
  .topbar-inner { margin:0; padding:12px 16px; gap:8px; flex-wrap:wrap; }
  .brand b { font-size:1.25rem; }
  .brand small { font-size:0.6875rem; }
  .topbar-tools { gap:4px; }
  .language-switch button { font-size:0.8125rem; padding:6px; }
  .page-shell { margin:0; padding:24px 16px 144px; }
  .hero h1 { font-size:1.75rem; line-height:2.5rem; }
  .hero-kicker,.hero-description--full { display:none; }
  .route-mode-option small { display:none; }
  .route-mode-option { min-height:48px; padding:8px 16px; }
  .route-picker { margin-top:12px; }
  .card { padding:20px; }
  .package-grid { grid-template-columns:1fr; gap:20px; }
  .service-options { grid-template-columns:1fr; gap:12px; }
  .service-choice { min-height:84px; }
  .size-picker { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .temperature-options .choice-option { padding:12px; }
  .ice-quantity { display:flex; flex-wrap:wrap; align-items:stretch; gap:8px; }
  .ice-quantity .label { flex:1 1 100%; }
  .stepper { flex-shrink:0; }
  .ice-quantity .ice-note,.ice-quantity .ice-retention-hint,.ice-quantity .ice-validation { flex:1 1 100%; }
  .ice-reset-button { align-self:flex-start; }
  .destination-group-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .summary-row dd { font-size:1rem; }
}
@media(max-width:360px) { .brand b { font-size:1.125rem; } .topbar-inner { padding:10px 12px; } .page-shell { padding-left:12px; padding-right:12px; } .hero h1 { font-size:1.5rem; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; } }
@media(forced-colors:active) { .choice-option:has(input:checked),.route-mode-option.is-selected { outline:2px solid Highlight; } }

/* Shipping mode: visible enclosure and a persistent selection indicator. */
.mode-picker-label { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; font-size:0.875rem; font-weight:500; }
.mode-picker-label small { font-size:0.8125rem; font-weight:400; color:var(--secondary); }
.route-options { gap:6px; padding:6px; border:1px solid var(--divider); background:var(--inset); }
.route-options .route-mode-option { display:flex; gap:8px; border:1px solid var(--border); border-radius:10px; padding:10px 12px; background:var(--surface); transition:background-color .15s,border-color .15s,box-shadow .15s; }
.route-options .route-mode-option.is-selected { border-color:var(--control-accent); background:var(--tint); box-shadow:inset 0 0 0 1px var(--control-accent); }
.route-options .route-mode-option b { color:var(--text); font-weight:600; }
.route-options .route-mode-option.is-selected b { color:var(--accent); }
.route-options .route-mode-option small { margin-top:2px; }
.mode-selection-indicator { display:flex; align-items:center; justify-content:center; flex:0 0 22px; height:22px; border:1px solid var(--border); border-radius:50%; }
.route-mode-option .mode-selection-indicator .design-icon { display:none; }
.route-mode-option.is-selected .mode-selection-indicator { border-color:transparent; }
.route-mode-option.is-selected .mode-selection-indicator .design-icon { display:inline-flex; }
.route-options .route-mode-option:focus-visible { outline:3px solid var(--accent); outline-offset:3px; position:relative; z-index:1; }
.route-options .route-mode-option:active { background:var(--tint); box-shadow:inset 0 0 0 2px var(--control-accent); }
@media (hover:hover) { .route-options .route-mode-option:hover { background:var(--tint); border-color:var(--control-accent); filter:none; } }

.concise-fees { border-top:1px solid var(--divider); padding-top:8px; }
.package-details .summary-section { padding-top:12px; }
.weight-limit-status.is-normal { display:none; }

@media (hover:hover) { .primary-button:not(:disabled):hover,.mobile-estimate-dock button:not(:disabled):hover { background:var(--button-hover); filter:none; } }
.primary-button:not(:disabled):active,.mobile-estimate-dock button:not(:disabled):active { background:var(--button-hover); box-shadow:inset 0 2px 6px rgb(0 0 0 / 18%); }
.secondary-button:not(:disabled):active { background:var(--tint); box-shadow:inset 0 2px 6px rgb(0 0 0 / 12%); }
.choice-option:active { background:var(--tint); box-shadow:inset 0 2px 6px rgb(0 0 0 / 10%); }

/* Approved MediShip mascot lockup. Transparent artwork with a brighter treatment in dark mode. */
.brand { display:flex; align-items:center; }
.brand-logo { display:block; width:180px; height:60px; object-fit:contain; }
.quote-brand-logo { display:block; width:150px; height:50px; object-fit:contain; }
[data-theme="dark"] .brand-logo, [data-theme="dark"] .quote-brand-logo { filter:brightness(1.7) saturate(.85); }
@media(max-width:600px) { .brand-logo { width:132px; height:44px; } }
@media(max-width:360px) { .brand-logo { width:114px; height:40px; } }

/* Theme menu remains anchored below a fixed-size trigger for every selection. */
.theme-control { position:relative; flex:none; }
#theme-trigger { display:flex; align-items:center; justify-content:space-between; gap:6px; width:112px; height:44px; border:1px solid var(--divider); border-radius:12px; padding:8px 10px; background:var(--surface); color:var(--accent); font-size:0.8125rem; cursor:pointer; }
.theme-menu { position:absolute; top:calc(100% + 8px); right:0; width:208px; padding:4px; border:1px solid var(--divider); border-radius:12px; background:var(--surface); box-shadow:var(--shadow); z-index:100; }
.theme-menu[hidden] { display:none; }
.theme-menu button { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:44px; padding:8px 12px; border:0; border-radius:8px; background:transparent; color:var(--text); text-align:left; font-size:0.875rem; cursor:pointer; }
.theme-menu button[aria-checked='true'] { color:var(--accent); background:var(--tint); }
.theme-menu button:focus-visible { outline-offset:-3px; }
.theme-check { visibility:hidden; }
.theme-menu button[aria-checked='true'] .theme-check { visibility:visible; }
@media(max-width:600px) { #theme-trigger { width:88px; padding:4px 8px; font-size:0.8125rem; } #theme-trigger .theme-value { max-width:1em; overflow:hidden; white-space:nowrap; } }
