/* Components shared by every screen. Markup for each is in web/DESIGN.md.
   Rules: transform and opacity for motion, the snappy spring for presses,
   ink for selection, the pace colour only for pace. */

/* ================================================================ Press feedback
   Any tappable thing gets .tap: it sinks fast under the finger and springs back. */
.tap { transition: transform var(--d-snappy) var(--e-snappy), background-color var(--d-snappy) var(--e-snappy), opacity var(--d-snappy) var(--e-snappy); }
.tap:active { transform: scale(.965); transition-duration: var(--d-press), var(--d-press), var(--d-press); transition-timing-function: var(--e-press); }

/* ================================================================ Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-pill);
  font-size: 17px; font-weight: 660; letter-spacing: -.005em; white-space: nowrap;
  background: var(--ink); color: var(--on-ink);
  transition: transform var(--d-snappy) var(--e-snappy), opacity var(--d-smooth) var(--e-smooth);
}
.btn:active:not(:disabled) { transform: scale(.97); transition-duration: var(--d-press); transition-timing-function: var(--e-press); }
.btn:disabled { opacity: .32; cursor: default; }
.btn--block { display: flex; width: 100%; }
.btn--secondary { background: var(--sunk); color: var(--ink); }
.btn--quiet { background: transparent; color: var(--ink); min-height: 44px; padding: 0 12px; font-weight: 600; }
.btn--small { min-height: 36px; padding: 0 16px; font-size: 15px; }
/* small visual, 44 pt target: the hit area extends 4 px above and below */
.btn--small::before { content: ""; position: absolute; inset: -4px 0; }
.btn .ico { width: 20px; height: 20px; }
.btn[aria-busy="true"] { color: transparent; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--on-ink); border-right-color: transparent; animation: bh-spin .8s linear infinite;
}
/* reduced motion: no spinning, a static ellipsis says "working" */
@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::after { content: "…"; width: auto; height: auto; border: 0; animation: none; color: var(--on-ink); font-weight: 700; }
  .btn--secondary[aria-busy="true"]::after, .btn--quiet[aria-busy="true"]::after { color: var(--ink); }
  .skel::after { display: none; }
}
@keyframes bh-spin { to { transform: rotate(1turn); } }

/* Round icon button: 44 pt, glass when it floats over content (sheet close, nav back). */
.icon-btn {
  position: relative; display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%; color: var(--ink);
  transition: transform var(--d-snappy) var(--e-snappy), background-color var(--d-smooth) var(--e-smooth);
}
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn:active { transform: scale(.9); transition-duration: var(--d-press); transition-timing-function: var(--e-press); }
.icon-btn--glass { background: color-mix(in srgb, var(--ink) 7%, transparent); box-shadow: inset 0 0 0 .5px var(--hair); }
.icon-btn--glass .ico { width: 19px; height: 19px; stroke-width: 2; }
.icon-btn--quiet { color: var(--ink-2); }

/* Text link-button inside sentences */
.link { position: relative; color: var(--ink); font-weight: 620; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--hair-2); }

/* ================================================================ Titles */
.large-title { font-size: 34px; font-weight: 780; font-stretch: 106%; letter-spacing: -.025em; line-height: 1.1; margin: 6px 0 var(--s4); }
.sec-title { font-size: var(--t-title); font-weight: 760; font-stretch: 104%; letter-spacing: -.02em; line-height: 1.12; }
.sec-lede { font-size: var(--t-sub); color: var(--ink-2); margin-top: var(--s1); max-width: 34em; }
.section { margin-top: var(--s5); }

/* Pushed-screen navigation bar (Sources, Réglages, Brancher): back to the tab it came from. */
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0 -10px; }
.nav-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px 0 4px; border-radius: 22px; font-size: 17px; font-weight: 560; color: var(--ink); }
.nav-back .ico { width: 26px; height: 26px; stroke-width: 2; }

/* ================================================================ Groups and rows */
.group { margin-top: var(--s3); }
.group-h {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2);
  font-size: var(--t-sub); font-weight: 680; padding: 0 0 7px; border-bottom: 1.5px solid var(--ink);
}
.group-h__aside { font-weight: 480; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.rows { list-style: none; }

/* A row: icon disc, two lines, a trailing figure. The whole row is one button. */
/* One right edge: figures end on the gutter, where group totals end. The pressed fill (and the
   arrival tint) is a pseudo-element reaching 8 px past the content, so the row needs no inset. */
.row {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; min-height: 64px; padding: 10px 0; text-align: left; border-radius: var(--r-s);
  transition: transform var(--d-snappy) var(--e-snappy);
}
.row::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -8px; border-radius: var(--r-s);
  background: var(--sunk); opacity: 0; transition: opacity var(--d-smooth) var(--e-smooth);
}
.row::after { content: ""; position: absolute; left: 52px; right: 0; bottom: 0; height: 1px; background: var(--hair); }
.rows > li:last-child .row::after { display: none; }
.row:active { transform: scale(.985); transition-duration: var(--d-press); transition-timing-function: var(--e-press); }
.row:active::before { opacity: 1; transition-duration: var(--d-press); }
.row__main { min-width: 0; }
.row__title { display: block; font-size: var(--t-body); font-weight: 580; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--t-foot); color: var(--ink-2); margin-top: 2px; }
.row__figure { font-size: var(--t-body); font-weight: 660; white-space: nowrap; text-align: right; }
.row__figure small { display: block; font-size: var(--t-micro); font-weight: 500; color: var(--ink-2); }
.row--muted .row__figure { color: var(--ink-2); font-weight: 560; }
.row.is-new::before { opacity: 1; background: color-mix(in srgb, var(--pace) 14%, transparent); }

/* Category disc: --acc is a category accent (var(--cat-*)). */
.cat-dot {
  position: relative; display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--acc, var(--cat-ink)) 14%, var(--surface));
  color: color-mix(in srgb, var(--acc, var(--cat-ink)) 88%, var(--ink));
}
.cat-dot .ico { width: 21px; height: 21px; }
.cat-dot--l { width: 52px; height: 52px; } .cat-dot--l .ico { width: 26px; height: 26px; }
.cat-dot--xl { width: 96px; height: 96px; } .cat-dot--xl .ico { width: 44px; height: 44px; stroke-width: 1.5; }
.cat-dot--solid { background: var(--acc); color: var(--on-acc); }

/* ================================================================ Chips (flags on an expense) */
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .005em; line-height: 1; white-space: nowrap;
  background: var(--sunk); color: var(--ink);
}
.chip--ink { background: var(--ink); color: var(--on-ink); }
.chip--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ink-2); }
.chip .ico { width: 12px; height: 12px; stroke-width: 2.2; }

/* ================================================================ Cards and panels */
.card { padding: 18px; border-radius: var(--r-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.panel { border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.panel > * + * { border-top: 1px solid var(--hair); }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 12px 16px; }
.panel-row__label { font-size: var(--t-body); font-weight: 560; }
.panel-row__sub { display: block; font-size: var(--t-foot); color: var(--ink-2); margin-top: 2px; font-weight: 440; }

/* Notice: a calm, explicit state (stale data, offline, an alert from the server). No colour slab. */
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-m);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; line-height: 1.4;
}
.notice .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--ink-2); }
.notice__action { margin-top: 6px; }
.link.notice__action::before { content: ""; position: absolute; inset: -12px -8px; } /* 44 pt target */

/* ================================================================ Toggle (iOS switch) */
.switch {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; cursor: pointer;
  width: 51px; height: 31px; border-radius: 16px; background: var(--hair-2);
  transition: background-color var(--d-smooth) var(--e-smooth);
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .16), 0 0 0 .5px rgba(0, 0, 0, .04);
  transition: transform var(--d-snappy) var(--e-snappy);
}
.switch:checked { background: var(--ink); }
.switch:checked::after { transform: translateX(20px); }
.switch:active::after { transform: scaleX(1.12); transform-origin: left center; }
.switch:checked:active::after { transform: translateX(17px) scaleX(1.12); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 12px 16px; cursor: pointer; }
.switch-row__text { min-width: 0; font-size: var(--t-body); font-weight: 600; line-height: 1.3; }
.switch-row__text small { display: block; font-size: var(--t-foot); color: var(--ink-2); font-weight: 440; margin-top: 2px; }

/* ================================================================ Text fields */
.field { display: block; }
.field__label { display: block; font-size: var(--t-foot); font-weight: 620; color: var(--ink-2); margin: 0 2px 8px; }
.field__input {
  width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: var(--r-s);
  background: var(--surface); color: var(--ink); font-size: 17px; font-weight: 520;
  box-shadow: inset 0 0 0 1.5px var(--hair-2); transition: box-shadow var(--d-smooth) var(--e-smooth);
}
.field__input::placeholder { color: var(--ink-2); opacity: 1; font-weight: 440; }
.field__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.field__help { font-size: var(--t-foot); color: var(--ink-2); margin: 8px 2px 0; }
/* a length limit (a category name stops at 24): quiet, shown near the limit only; the sentence
   says when something was cut, the counter ends on the field's right edge */
.field__limit { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--t-foot); color: var(--ink-2); margin: 8px 2px 0; }
.field__limit[hidden] { display: none; }
.field__count { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.field__limit[data-full] .field__count { color: var(--ink); font-weight: 620; }
.field__error { font-size: 14px; font-weight: 560; color: var(--ink); margin: 10px 2px 0; display: flex; gap: 8px; align-items: flex-start; }
.field__error .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--ink); }
.field[data-invalid] .field__input { box-shadow: inset 0 0 0 2px var(--ink); } /* one vivid colour on screen (the pace): an error is said in words and an ink ring, never in red */

/* Segmented control with a travelling lens (js moves .seg__lens with a spring). */
.seg { position: relative; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; min-height: 44px; padding: 3px; border-radius: var(--r-s); background: var(--sunk); }
.seg__opt { position: relative; z-index: 1; display: grid; place-items: center; text-align: center; border-radius: 11px; padding: 0 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color var(--d-snappy) var(--e-snappy); }
.seg__opt::before { content: ""; position: absolute; inset: -3px 0; } /* 44 pt to the finger: the padding of the track belongs to the option */
.seg__opt[aria-checked="true"] { color: var(--ink); }
.seg__lens { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; border-radius: 11px; background: var(--surface); box-shadow: 0 1px 3px rgba(20, 32, 26, .14), 0 0 0 .5px rgba(20, 32, 26, .08); }

/* ================================================================ Floating tab bar
   A web approximation of iOS "Liquid Glass": translucent, blurred, one lens on the current tab. */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tab);
  padding: 0 calc(14px + var(--safe-r)) calc(var(--safe-b) + 10px) calc(14px + var(--safe-l));
  pointer-events: none;
  transition: transform var(--d-sheet) var(--e-sheet), opacity var(--d-smooth) var(--e-smooth);
}
.tabbar[data-hidden] { transform: translateY(calc(100% + 20px)); opacity: 0; }
.tabbar__glass {
  position: relative; max-width: 400px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  height: var(--tabbar-h); padding: 4px; border-radius: 32px; pointer-events: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .2)), color-mix(in srgb, var(--chalk) 80%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(255, 255, 255, .3), 0 0 0 .5px rgba(20, 32, 26, .1), 0 10px 30px rgba(28, 44, 34, .14);
}
.tab {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; border-radius: 28px; color: var(--ink-2); font-size: 11px; font-weight: 600; letter-spacing: .005em;
  transition: color var(--d-smooth) var(--e-smooth), transform var(--d-snappy) var(--e-snappy);
}
.tab .ico { width: 25px; height: 25px; }
.tab[aria-current="page"] { color: var(--ink); font-weight: 720; }
.tab:active { transform: scale(.9); transition-duration: var(--d-press); transition-timing-function: var(--e-press); }
.tab-lens {
  position: absolute; z-index: 0; top: 4px; left: 4px; height: 56px; width: calc((100% - 8px) / 4); border-radius: 28px;
  background: rgba(20, 32, 26, .075); box-shadow: inset 0 0 0 .5px rgba(20, 32, 26, .05);
}
/* The scroll edge under the floating bar: content fades instead of being cut. */
.tab-edge {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-edge); pointer-events: none;
  height: calc(var(--safe-b) + 96px);
  /* clear for the first 20 px, so a last line just above the bar stays fully readable */
  background: linear-gradient(to bottom, transparent 20px, color-mix(in srgb, var(--chalk) 85%, transparent) 52px, var(--chalk) 80%);
}

/* ================================================================ Compact bar
   Fades in when the large title (the hero) scrolls away. Transform and opacity only. */
.compact {
  position: fixed; left: 0; right: 0; top: 0; z-index: var(--z-compact);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(var(--safe-t) + 10px) calc(var(--gutter) + var(--safe-r)) 10px calc(var(--gutter) + var(--safe-l));
  min-height: calc(var(--safe-t) + 52px);
  pointer-events: none;
}
.compact__bg {
  position: absolute; inset: 0; opacity: 0;
  background: color-mix(in srgb, var(--chalk) 92%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 .5px 0 var(--hair-2);
}
.compact__title, .compact__fig { position: relative; opacity: 0; will-change: opacity, transform; }
.compact__title { display: flex; align-items: center; gap: 8px; font-size: var(--t-sub); font-weight: 600; color: var(--ink-2); }
.compact__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pace-mark); }
/* stale or offline figures (set by Aujourd'hui on <html>): the dot greys like every carrier,
   over the colour a zone change may be painting inline */
:root[data-stale] .compact__dot { background: var(--dry) !important; box-shadow: inset 0 0 0 .75px var(--hair-2); }
.compact__fig { font-size: 17px; font-weight: 760; font-stretch: 110%; letter-spacing: -.01em; }
.compact__unit { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-left: 3px; }
.compact[data-on] { pointer-events: auto; }

/* ================================================================ A big figure that fits its line
   <p class="fit-line" style="--fit-em: 4.7"><span class="fit-n">…</span><span>AED</span></p>
   The figure keeps its size (--fit-max) while it fits, and shrinks to the line otherwise, at any
   length and any text zoom (100cqi is the line's width, --fit-rest what « AED » and the gap take,
   --fit-em the figure's width in em from format.figureEm). A money figure is never clipped. */
.fit-line { container-type: inline-size; }
.fit-line > .fit-n { font-size: min(var(--fit-max, var(--t-figure)), calc((100cqi - var(--fit-rest, 56px)) / var(--fit-em, 3))); }

/* ================================================================ Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + var(--tabbar-h) + 22px); z-index: var(--z-toast);
  translate: -50% 0; width: max-content; max-width: calc(100% - 40px);
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 20px;
  background: var(--ink); color: var(--on-ink); font-size: var(--t-sub); font-weight: 540; line-height: 1.3;
  box-shadow: 0 8px 24px rgba(10, 18, 13, .18);
  opacity: 0; transform: translateY(10px) scale(.97); pointer-events: none;
}
.toast .ico { width: 18px; height: 18px; flex: none; }
.toast__action { position: relative; margin-left: 6px; padding: 6px 2px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; pointer-events: none; }
/* only a toast on screen takes taps: a fading or faded one never does (data-open is removed as it starts to leave) */
.toast[data-open] .toast__action { pointer-events: auto; }
.toast__action::before { content: ""; position: absolute; inset: -8px -10px; } /* 44 pt target */
.toast[data-sheet] { bottom: calc(var(--safe-b) + 24px); }

/* ================================================================ Empty, loading and error states */
.state { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 0; }
.state__title { font-size: var(--t-body); font-weight: 640; }
.state__text { font-size: var(--t-sub); color: var(--ink-2); max-width: 30em; }
.state__action { margin-top: 10px; }
.state--center { align-items: center; text-align: center; padding: 48px 12px; }
.state--center .state__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--ink-2); margin-bottom: 8px; }
.state--center .state__icon .ico { width: 26px; height: 26px; }

.skel { border-radius: 8px; background: var(--sunk); position: relative; overflow: hidden; }
.skel::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent);
  animation: bh-shimmer 1.4s var(--e-smooth) infinite;
}
@keyframes bh-shimmer { to { transform: translateX(100%); } }

/* ================================================================ Bottom sheet (js/core/sheet.js) */
.sheet-scrim {
  position: fixed; inset: 0; z-index: var(--z-scrim); background: rgb(var(--scrim)); opacity: 0;
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sheet); margin: 0 auto; max-width: 430px;
  height: calc(100dvh - var(--safe-t) - 12px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 -6px 30px rgba(10, 20, 14, .14);
  transform: translate3d(0, 110%, 0); will-change: transform;
  touch-action: none;
}
.sheet:focus { outline: none; }
.sheet__grab { flex: none; height: 22px; display: grid; place-items: center; cursor: grab; }
.sheet__grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--hair-2); }
.sheet__pages { position: relative; flex: 1; min-height: 0; }
.sheet__page { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--surface); }
.sheet__head {
  flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  padding: 2px var(--gutter) 10px; /* the round buttons line up with the content gutter */
}
.sheet__title { text-align: center; font-size: 17px; font-weight: 700; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__scroll {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  touch-action: pan-y; /* the browser scrolls the content: native momentum and rubber band */
  padding: 0 var(--gutter) calc(var(--safe-b) + 28px);
  scrollbar-width: none;
}
.sheet__scroll::-webkit-scrollbar { display: none; }
.sheet__footer { flex: none; padding: 12px var(--gutter) calc(var(--safe-b) + 14px); background: linear-gradient(to bottom, color-mix(in srgb, var(--surface) 0%, transparent), var(--surface) 30%); }
.sheet[data-dragging] { cursor: grabbing; }

/* ================================================================ Odometer (js/core/odometer.js) */
.odo { display: inline-flex; align-items: baseline; white-space: nowrap; }
.odo__slot { position: relative; display: inline-block; }
.odo__d { display: inline-block; }
/* clipped only while it rolls (js sets the window from the font metrics): a figure at rest is never clipped */
.odo__out { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.odo[data-rolling] .odo__d { will-change: transform, opacity; }
.odo__sep { display: inline-block; }
.odo__gap { width: .14em; }

/* ================================================================ Reduced transparency */
@media (prefers-reduced-transparency: reduce) {
  .tabbar__glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .compact__bg { background: var(--chalk); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ================================================================ Dark adjustments */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tabbar__glass {
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 .5px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .45);
  }
  :root:not([data-theme="light"]) .tab-lens { background: rgba(228, 234, 227, .1); }
  :root:not([data-theme="light"]) .sheet { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 -6px 30px rgba(0, 0, 0, .4); }
  :root:not([data-theme="light"]) .seg__lens { background: #2A342E; }
}
:root[data-theme="dark"] .tabbar__glass {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 .5px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .45);
}
:root[data-theme="dark"] .tab-lens { background: rgba(228, 234, 227, .1); }
:root[data-theme="dark"] .sheet { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 -6px 30px rgba(0, 0, 0, .4); }
:root[data-theme="dark"] .seg__lens { background: #2A342E; }
