/* Liquid Glass material + the glass controls (tab bar, switch, slider, segmented, buttons).
   Rule: glass lives on the layer that floats above content — navigation, controls, pills,
   sheets, toasts. Content itself (lists, text, charts) is never glass.
   Do not put ::before / ::after on a .glass element; they draw the rim and the inner light. */

.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-fallback);
  backdrop-filter: var(--glass-fallback);
  box-shadow: var(--glass-shadow-s);
  color: var(--fg);
}
html.glass-refract .glass[data-glass-ready] {
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
}
html.glass-refract .glass[data-glass-ready]::before { opacity: 0; }
html.glass-refract .glass[data-glass-ready]::after { opacity: 0; }
/* the rim: bright where light hits (top-left, bottom-right), thin elsewhere */
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background:
    linear-gradient(140deg,
      rgb(var(--glass-rim) / var(--glass-rim-a)) 0%,
      rgb(var(--glass-rim) / calc(var(--glass-rim-a) * 0.35)) 18%,
      rgb(var(--glass-rim) / 0.06) 42%,
      rgb(var(--glass-rim) / 0.06) 58%,
      rgb(var(--glass-rim) / calc(var(--glass-rim-a) * 0.4)) 82%,
      rgb(var(--glass-rim) / calc(var(--glass-rim-a) * 0.85)) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 2;
}
/* thickness: inner specular line on top, a darker band on the shadow side, soft inner glow */
.glass::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  box-shadow:
    inset 1px 1.5px 1px -0.5px rgb(255 255 255 / calc(var(--glass-rim-a) * 0.75)),
    inset -1px -1.5px 1px -0.5px rgb(255 255 255 / calc(var(--glass-rim-a) * 0.45));
}
.glass > * { position: relative; z-index: 3; }

/* variants */
.glass--clear { background: rgb(255 255 255 / var(--clear-a, 0.015)); }
:root[data-theme="light"] .glass--clear { --clear-a: 0; }
.glass--strong { background: var(--glass-tint-strong); }
.glass--lg { box-shadow: var(--glass-shadow); }
.glass--accent { background: rgb(var(--cta-rgb, var(--accent-rgb)) / 0.86); color: var(--on-accent); }
.glass--accent::after { box-shadow: inset 1.5px 2px 1.5px -1px rgb(255 255 255 / 0.7), inset -1.5px -2px 1.5px -1px rgb(255 255 255 / 0.35), inset 0 -10px 18px -12px rgb(0 0 0 / 0.25); }

/* ---------- glass buttons ---------- */
.gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: var(--r-pill);
  font: 600 15px/1 var(--f-sans); letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
}
.gbtn:active { transform: scale(0.96); }
.gbtn:disabled, .gbtn[aria-disabled="true"] { opacity: 0.38; pointer-events: none; }
.gbtn svg { width: 18px; height: 18px; flex: none; }
.gbtn--icon { width: 44px; padding: 0; }
.gbtn--s { min-height: 34px; padding: 0 14px; font-size: 13px; }
.gbtn--s.gbtn--icon { width: 34px; }
/* solid (non-glass) primary — the site's light pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
  background: var(--fg); color: var(--bg);
  font: 600 15px/1.15 var(--f-sans); letter-spacing: 0.005em; cursor: pointer;
  max-width: 100%; text-align: center; text-wrap: balance;   /* a long translation wraps inside the pill, never off screen */
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .btn:hover { opacity: 0.9; } }
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.32; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn--accent { background: rgb(var(--cta-rgb, var(--accent-rgb))); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--s { min-height: 34px; padding: 0 14px; font-size: 13px; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font: 500 13px var(--f-sans); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); cursor: pointer; }
@media (hover: hover) { .link:hover { color: var(--fg); } }

/* ---------- tab bar ---------- */
.tabbar-wrap {
  position: fixed; z-index: 40;
  left: 0; right: 0; bottom: calc(var(--tabbar-gap) + var(--safe-b));
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 0 max(16px, var(--safe-r)) 0 max(16px, var(--safe-l));
  pointer-events: none;
  transition: transform var(--spring-dur) var(--spring), opacity var(--dur);
}
.tabbar-wrap.is-hidden { transform: translateY(140%); opacity: 0; }
.tabbar {
  pointer-events: auto;
  display: flex; align-items: stretch;
  height: var(--tabbar-h); padding: 5px;
  border-radius: var(--r-pill);
  flex: 1 1 auto; min-width: 0; max-width: 440px;
}
.tab {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 600 10.5px/1 var(--f-sans); letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  transition: color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--fg); }
.tab[aria-current="page"] svg { stroke-width: 2.1; }
.tab:active { transform: scale(0.92); }
.tabbar-fab {
  pointer-events: auto;
  width: var(--tabbar-h); height: var(--tabbar-h); flex: none;
  border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  transition: transform var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.tabbar-fab svg { width: 26px; height: 26px; }
.tabbar-fab:active { transform: scale(0.92); }

/* ---------- switch: standard 51x31, solid knob at rest, glass knob while pressed ---------- */
.switch { position: relative; display: inline-block; width: 51px; height: 31px; flex: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 5; }
.switch__track { position: absolute; inset: 0; border-radius: var(--r-pill); background: rgb(var(--fg-rgb) / 0.16); transition: background-color var(--dur-ctl) var(--ease-ctl); }
.switch input:checked ~ .switch__track { background: var(--accent); }
.switch__thumb {
  position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: var(--r-pill);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.18), 0 0 0 0.5px rgb(0 0 0 / 0.06);
  transition: transform var(--dur-ctl) var(--ease-ctl), width var(--dur-ctl) var(--ease-ctl), background-color var(--dur-ctl);
  pointer-events: none; will-change: transform;
}
.switch input:checked ~ .switch__thumb { transform: translateX(20px); }
.switch:active .switch__thumb { width: 34px; }
.switch:active input:checked ~ .switch__thumb { transform: translateX(13px); }
/* focus ring inside the track, in the 2px gap around the knob; white on the coloured (on) track */
.switch input:focus-visible ~ .switch__track { outline: 2px solid var(--accent); outline-offset: -2px; }
.switch input:checked:focus-visible ~ .switch__track { outline-color: rgb(255 255 255 / 0.92); }

/* ---------- slider (ui/controls.js) ---------- */
.slider { position: relative; height: 40px; touch-action: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.slider__track { position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: var(--r-pill); background: rgb(var(--fg-rgb) / 0.12); overflow: hidden; }
.slider__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: var(--r-pill); }
.slider__thumb {
  position: absolute; top: 50%; width: 48px; height: 32px; margin: -16px 0 0 -24px;
  border-radius: var(--r-pill); background: rgb(255 255 255 / 0.08);
  transition: width var(--dur) var(--ease-out), height var(--dur) var(--ease-out), margin var(--dur) var(--ease-out);
}
/* v7 (owner 2026-11-16, "return the slider as it was"): back to the slider of 14 Nov — the fill runs to the value under
   the clear glass knob, the track is whole, the knob jumps to a tap (no glide), and the knob is the plain clear glass
   without the white rim. The v6 cut-out (PLAN-V6 "Стекло на ползунке") is gone. */
.slider.is-dragging .slider__thumb { width: 58px; height: 38px; margin: -19px 0 0 -29px; }
.slider:focus-visible { outline: none; }
.slider:focus-visible .slider__thumb { outline: none; box-shadow: 0 0 0 2px rgb(var(--bg-rgb)), 0 0 0 4px var(--fg); }   /* a clear halo: the thumb is light glass, a grey ring on it barely shows */

/* ---------- segmented ---------- */
.segmented { position: relative; display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: rgb(var(--fg-rgb) / 0.08); gap: 0; }
.segmented button {
  position: relative; z-index: 2; flex: 1 1 auto;   /* each option as wide as its word plus the same padding (equal widths left "1 л" floating far off) */
  min-height: 34px; padding: 0 16px; border: 0; background: none; border-radius: var(--r-pill);
  font: 600 13px/1 var(--f-sans); color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: color var(--dur-ctl) var(--ease-ctl), transform var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.segmented button:active { transform: scale(0.96); }
.segmented button[aria-pressed="true"] { color: var(--fg); }
.segmented__lens {
  position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 0; border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.1);
  transition: transform var(--dur-ctl) var(--ease-ctl), width var(--dur-ctl) var(--ease-ctl), opacity var(--dur-ctl);
  will-change: transform;
}
.segmented__lens.is-placing { transition: none; }   /* first placement: no slide in from the left */
:root[data-theme="light"] .segmented__lens { background: rgb(255 255 255 / 0.55); }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 0; background: rgb(var(--fg-rgb) / 0.07); color: var(--fg);
  font: 500 14px/1 var(--f-sans); cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease-out), color var(--dur), transform var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .chip:hover { background: rgb(var(--fg-rgb) / 0.11); } }
.chip:active { transform: scale(0.95); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.chip svg { width: 16px; height: 16px; }

/* ---------- hold-to-confirm (ui/hold.js) ---------- */
.hold { position: relative; overflow: hidden; }
.hold__fill { position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: rgb(var(--accent-rgb) / 0.9); transform-origin: left center; transform: scaleX(var(--hold, 0)); pointer-events: none; }
.hold.is-holding { transform: scale(0.97); }
.hold > :not(.hold__fill) { position: relative; z-index: 1; }
.hold.glass > .hold__fill { z-index: 0; }

@media (prefers-reduced-motion: reduce) {
  .segmented__lens, .switch__thumb, .slider__thumb, .slider__fill, .slider, .tabbar-wrap { transition-duration: 1ms !important; }
}

/* sheets float: .glass sets position:relative, the sheet must stay fixed */
.sheet.glass { position: fixed; }

/* the spark currency mark */
.cur { display: inline-block; width: 0.95em; height: 0.95em; vertical-align: -0.12em; margin: 0 0.06em; color: inherit; flex: none; }

/* switch & slider knobs and the segmented lens: clear glass all the time (the owner's choice), with a light rim
   so the knob still reads over an empty track. Pressed, it grows a little. */
.switch__thumb, .switch input:checked ~ .switch__thumb {
  background: rgb(255 255 255 / 0.10);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.55), inset 0 1px 1px rgb(255 255 255 / 0.5), 0 3px 10px rgb(0 0 0 / 0.28);
}
.switch:active .switch__thumb { background: rgb(255 255 255 / 0.05); }
:root[data-theme="light"] .switch__thumb, :root[data-theme="light"] .slider__thumb {
  background: rgb(255 255 255 / 0.35);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.9), 0 0 0 0.5px rgb(0 0 0 / 0.12), 0 3px 10px rgb(0 0 0 / 0.18);
}
.segmented__lens { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22), inset 0 1px 1px rgb(255 255 255 / 0.3); }
/* light theme: the SVG refraction on these small knobs pulls in the dark edge of its own sample and greys the glass,
   so a knob read as "on/disabled". In light they keep the plain clear glass above (white, see-through) and its rim. */
html.glass-refract[data-theme="light"] :is(.switch__thumb, .slider__thumb, .segmented__lens).glass[data-glass-ready] { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.glass-refract[data-theme="light"] :is(.switch__thumb, .slider__thumb, .segmented__lens).glass[data-glass-ready]::before,
html.glass-refract[data-theme="light"] :is(.switch__thumb, .slider__thumb, .segmented__lens).glass[data-glass-ready]::after { opacity: 1; }

.btn .cur, .gbtn .cur, .chip .cur, .pill .cur { width: 0.95em; height: 0.95em; }

/* a running focus session marks its tab */
.tab.is-running svg { color: var(--accent); }
.tab.is-running::after { content: ''; position: absolute; top: 8px; margin-left: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tab { position: relative; }

/* primary call to action: accent glass (see glass.js promote) */
/* the old Focus "Start focus" pill: filled app colour (blue for Graphite), a soft glossy rim, a coloured glow */
.btn--accent.glass--cta { background: linear-gradient(180deg, rgb(var(--cta-rgb) / 0.95), rgb(var(--cta-rgb) / 0.82)); color: var(--on-accent); box-shadow: 0 12px 28px -12px rgb(var(--cta-rgb) / 0.6), 0 1px 2px rgb(0 0 0 / 0.2); }
@media (hover: hover) { .btn--accent.glass--cta:hover { opacity: 1; filter: brightness(1.06); } }
html.glass-refract .btn--accent.glass--cta[data-glass-ready]::before { opacity: 0.5; }
html.glass-refract .btn--accent.glass--cta[data-glass-ready]::after { opacity: 1; }
.btn--accent.glass--cta > * { position: relative; z-index: 3; }
.btn--accent.glass--cta > .hold__fill { z-index: 0; background: rgb(255 255 255 / 0.28); }

.stone [data-facet]:focus, .stone [data-center]:focus { outline: none; }
.stone [data-facet]:focus-visible path:first-child, .stone [data-center]:focus-visible { stroke: var(--fg); stroke-width: 2.5; }

/* six tabs (Focus switched on): a little narrower labels, so the wide font still fits with even padding */
.tabbar { max-width: 480px; }
/* 1px of room under the line and 2px above (taken back by the margins): the clip box must not cut the tails of g, j, p, у
   or the accent of a capital É */
.tab span { max-width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; padding: 2px 0 1px; margin: -2px 0 -1px; }
.tabbar:has(.tab:nth-child(6)) .tab { font-size: 9.5px; letter-spacing: 0; }
.tabbar:has(.tab:nth-child(6)) .tab svg { width: 22px; height: 22px; }
/* five tabs with long words (Russian "Прогресс") on a narrow phone: the label stays inside the bar */
@media (max-width: 420px) { .tabbar { padding: 5px 8px; } .tab { font-size: 10px; letter-spacing: 0; } }

/* a label a little too long for one line ("Прогресс" on a 360 phone): all labels a little smaller (app.js fitTabs) */
.tabbar.is-tight .tab { font-size: 9px; letter-spacing: -0.01em; }
.tabbar.is-tight.is-tighter .tab { font-size: 8.5px; letter-spacing: -0.015em; }
/* a two-word label too long for one line ("Экранное время" on a phone): every label may take two lines, icons stay in
   one row; the icon and two lines sit evenly between the pill's top and bottom; words never split */
.tabbar.is-two-line .tab { justify-content: flex-start; padding-top: 3px; gap: 2px; }
.tabbar.is-two-line .tab svg { width: 22px; height: 22px; flex: none; }
.tabbar.is-two-line .tab span { white-space: normal; text-align: center; line-height: 1.08; padding: 2px 1px 1px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; hyphens: manual; overflow-wrap: normal; word-break: normal; }

/* the narrowest phone (320) with a long word ("Aujourd’hui"): the label may use the whole width of its tab */
.tabbar.is-two-line.is-tighter .tab span { padding-left: 0; padding-right: 0; }

/* "More": the sections that did not fit in the bottom bar */
.more-list { list-style: none; margin: 0; padding: 0; }
.more-list > li + li { border-top: 1px solid var(--line); }
.more-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 4px; border: 0; background: none; color: var(--fg); font: 600 16px var(--f-sans); text-align: left; cursor: pointer; }
.more-item > .ico:first-child { width: 22px; height: 22px; color: var(--muted); }
.more-item > span { flex: 1; }
.more-item > .ico:last-child { width: 16px; height: 16px; color: var(--faint); }

/* keyboard hint inside a main button on desktop ("Space"), like the old Focus start button */
.kbd { display: none; align-items: center; height: 22px; margin-left: 4px; padding: 0 7px; border-radius: 6px; background: rgb(255 255 255 / 0.18); color: inherit; font: 500 11px/1 var(--f-sans); letter-spacing: 0.02em; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) { .kbd { display: inline-flex; } }
.btn:not(.btn--accent) .kbd, .gbtn:not(.glass--accent) .kbd { background: rgb(var(--fg-rgb) / 0.1); }

/* wide screens hold up to 8 tabs: the bar grows with them (about 86px a tab), so labels keep their full size */
@media (min-width: 1024px) {
  .tabbar:has(.tab:nth-child(6)) { max-width: 540px; }
  .tabbar:has(.tab:nth-child(7)) { max-width: 620px; }
  .tabbar:has(.tab:nth-child(8)) { max-width: 700px; }
  .tabbar:has(.tab:nth-child(6)) .tab { font-size: 10.5px; letter-spacing: 0.01em; }
  .tabbar:has(.tab:nth-child(6)) .tab svg { width: 24px; height: 24px; }
}
/* a tab's ring hugs the tab itself: its label can run to the tab's edge on a narrow phone, and the ring still stays
   inside the bar's pill (no ring outside the bar) */
.tabbar .tab:focus-visible { outline-offset: 0 !important; }
/* the slider thumb's keyboard halo wins over the thumb's own glass shadow in both themes */
html .slider:focus-visible .slider__thumb { outline: none; box-shadow: 0 0 0 2px rgb(var(--bg-rgb)), 0 0 0 4px var(--fg); }
/* a ring part with the keyboard on it: the outline is drawn on top of its colour (the last, tappable layer), light
   with a dark edge, so it shows on a filled white part and on an empty dark one alike */
.stone [data-facet]:focus-visible path:first-child { stroke: none; }
.stone [data-facet]:focus-visible path:last-child { stroke: var(--fg); stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 1.5px rgb(var(--bg-rgb))) drop-shadow(0 0 1px rgb(var(--bg-rgb))); }
/* 320: the bar's own side padding gives its few pixels to the tabs, so "Экранное" still fits a tab */
@media (max-width: 340px) { .tabbar { padding-left: 4px; padding-right: 4px; } }

/* v5: with "Tint the background" the page takes the app colour, so the app-colour buttons get a crisp light edge and a
   little more light to stay clear of the ground instead of melting into it */
[data-tint="on"] .btn--accent, [data-tint="on"] .glass--accent, [data-tint="on"] .glass--cta {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22), inset 0 1px 0 rgb(255 255 255 / 0.28), 0 10px 26px -12px rgb(0 0 0 / 0.6);
  filter: brightness(1.1) saturate(1.1);
}
[data-tint="on"] .input, [data-tint="on"] .textarea { background: rgb(0 0 0 / 0.16); }   /* Settings fields: css/screens/settings.css (one even fill) */
[data-tint="on"] .glass--accent { background: rgb(var(--cta-rgb, var(--accent-rgb))); }
[data-tint="on"] .btn--accent.glass--cta { background: linear-gradient(180deg, rgb(var(--cta-rgb)), rgb(var(--cta-rgb) / 0.96)); }

/* ================= ring looks (v6) =================
   ui/look.js sets data-ring-style on the root; a wrapper with its own data-ring-style (shop previews) shows that look
   instead. Colours: on the root look.js writes --c-<part> inline; for wrappers the same colours come from these
   color-mix() rules (keep them in step with FROM_ACCENT in ui/look.js). The finish styles the parts of ui/stone.js. */
[data-ring-style="accent"] {
  --c-wake: color-mix(in srgb, var(--accent) 50%, #fff); --c-sleep: color-mix(in srgb, var(--accent) 72%, #fff); --c-plans: var(--accent);
  --c-habits: color-mix(in srgb, var(--accent) 86%, #fff); --c-food: color-mix(in srgb, var(--accent) 82%, #000); --c-sport: color-mix(in srgb, var(--accent) 60%, #fff);
}
[data-ring-style="neon"] {
  --c-wake: color-mix(in srgb, var(--accent) 75%, #fff); --c-sleep: var(--c-wake); --c-plans: var(--c-wake); --c-habits: var(--c-wake); --c-food: var(--c-wake); --c-sport: var(--c-wake);
}
[data-ring-style="gradient"] {
  --c-wake: color-mix(in srgb, var(--accent) 80%, #fff); --c-sleep: var(--accent); --c-plans: color-mix(in srgb, var(--accent) 40%, #b44dff);
  --c-habits: #e04fd0; --c-food: #ff5a7a; --c-sport: #ff9a3d;
}
[data-ring-style="frost"] {
  --c-wake: color-mix(in srgb, var(--accent) 40%, #fff); --c-sleep: color-mix(in srgb, var(--accent) 55%, #fff); --c-plans: color-mix(in srgb, var(--accent) 70%, #fff);
  --c-habits: color-mix(in srgb, var(--accent) 62%, #fff); --c-food: color-mix(in srgb, var(--accent) 50%, #fff); --c-sport: color-mix(in srgb, var(--accent) 45%, #fff);
}
/* Neon: tubes of light — a see-through fill, a bright edge, the whole ring glowing (the glow filter lives inside the
   SVG with a generous round-safe region, so it never shows square edges) */
[data-ring-style="neon"] .stone { --ring-empty: 0.045; }
[data-ring-style="neon"] .stone__fill { fill-opacity: 0.14; stroke: var(--pc); stroke-width: 2.2; stroke-linejoin: round; }
[data-ring-style="neon"] .stone__gloss { display: none; }
[data-ring-style="neon"] .stone__parts { filter: var(--stone-neon); }
[data-ring-style="neon"] .stone__glow { opacity: 0.85; }
/* Frosted glass: pastel parts seen through frost — softened edges, a fine grain and a pale sheen on top */
[data-ring-style="frost"] .stone__parts { filter: var(--stone-soft); }
[data-ring-style="frost"] .stone__frost { display: inline; }
[data-ring-style="frost"] .stone__gloss { opacity: 0.6; }
:root[data-theme="light"] [data-ring-style="frost"] .stone__frost, :root[data-theme="light"][data-ring-style="frost"] .stone__frost { opacity: 0.8; }
/* Gradient and App colour are colours only. */

/* the ✦ in the corner takes the spark colour (Settings › Appearance; ui/look.js sets --spark, default: the text) */
:root .corner__spark { color: var(--spark, var(--fg)); }

/* light theme (owner 2026-11-19, "a grey area in the bottom bar"): the floating bar and the corner pills were clear glass
   over the light-grey page, so their inside read as a grey slab inside a white rim. In the light theme they are milky
   white glass, as on iOS: still see-through (blur and refraction stay), no longer grey. */
:root[data-theme="light"] :is(.tabbar, .corner__group, .av-btn).glass { background: rgb(255 255 255 / 0.62); }
