/* Ondra components. Everything is scoped to .od and styled only with var(--od-*) from ondra-tokens.css.
   Independent reconstruction; all selectors, values-as-code and icons are original. Labels live in references/components.md.
   State is ARIA: aria-current, aria-pressed, aria-selected, aria-expanded, aria-checked, aria-sort, aria-invalid. */

/* ===== base ===== */
.od { min-height: 100dvh; background: var(--od-bg); color: var(--od-text); font: var(--od-fw-body) var(--od-fs-base)/var(--od-lh-body) var(--od-font);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow-wrap: break-word; overflow-x: clip; position: relative; }
.od *, .od *::before, .od *::after { box-sizing: border-box; }
.od :where(button, input, select, textarea) { color: inherit; font: inherit; }
.od :where(button) { background: none; border: 0; cursor: pointer; padding: 0; }
.od :where(a) { color: inherit; text-decoration: none; }
.od :where(h1, h2, h3, h4, p, dl, dd, ul, ol, figure) { margin: 0; padding: 0; }
.od :where(ul, ol) { list-style: none; }
.od [hidden] { display: none !important; }
.od :where(img, svg) { display: block; }
.od ::selection { background: var(--od-selection); }
.od mark { background: color-mix(in srgb, var(--od-gold) 45%, transparent); border-radius: 3px; color: inherit; padding: 0 1px; }
.od :focus-visible { outline: var(--od-focus-width) solid var(--od-focus); outline-offset: var(--od-focus-offset); }
.od-sr { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.od-skip { background: var(--od-primary); border-radius: var(--od-r-ctl); color: var(--od-on-primary); inset-inline-start: 12px; padding: 10px 16px; position: fixed; top: -60px; z-index: var(--od-z-skip); }
.od-skip:focus { top: 12px; }
.od-ic { fill: none; flex: none; height: var(--od-ico); stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: var(--od-ico-stroke); width: var(--od-ico); }
.od-muted { color: var(--od-muted); }
.od-num { font-variant-numeric: tabular-nums; }

/* tone: data-tone sets the fill (--od-c) and, for status, the text ink (--od-ci) */
.od [data-tone="ember"] { --od-c: var(--od-ember); } .od [data-tone="steel"] { --od-c: var(--od-steel); } .od [data-tone="gold"] { --od-c: var(--od-gold); }
.od [data-tone="sea"] { --od-c: var(--od-sea); } .od [data-tone="moss"] { --od-c: var(--od-moss); } .od [data-tone="rose"] { --od-c: var(--od-rose); }
.od [data-tone="slate"] { --od-c: var(--od-slate); } .od [data-tone="pine"] { --od-c: var(--od-pine); } .od [data-tone="clay"] { --od-c: var(--od-clay); }
.od [data-tone="good"] { --od-c: var(--od-good); --od-ci: var(--od-good); } .od [data-tone="warn"] { --od-c: var(--od-gold); --od-ci: var(--od-warn); }
.od [data-tone="bad"] { --od-c: var(--od-rose); --od-ci: var(--od-bad); } .od [data-tone="info"] { --od-c: var(--od-steel); --od-ci: var(--od-info); }
.od [data-tone="faint"] { --od-c: var(--od-faint); --od-ci: var(--od-muted); }

/* ===== shell: floating pine sidebar ===== */
.od-side { position: fixed; z-index: var(--od-z-side); inset-block: var(--od-side-inset); inset-inline-start: var(--od-side-inset); width: var(--od-side-w);
  display: flex; flex-direction: column; gap: 2px; padding: 14px 12px 12px; background: var(--od-side-bg); color: var(--od-on-side);
  border-radius: var(--od-r-side); overflow: hidden auto; scrollbar-width: none; box-shadow: var(--od-shadow-side); }
.od-side::-webkit-scrollbar { display: none; }
.od-side__top { align-items: center; border-bottom: 1px solid var(--od-side-line); display: flex; gap: 8px; margin-bottom: 6px; padding-block: 2px 16px; padding-inline: 4px 2px; }
.od-brand { align-items: center; display: flex; flex: 1; font-size: var(--od-fs-brand); font-weight: var(--od-fw-strong); gap: 11px; letter-spacing: var(--od-track-head); min-width: 0; }
.od-brand__mark { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: var(--od-r-ctl);
  background: linear-gradient(145deg, var(--od-brand-from), var(--od-live)); color: var(--od-on-live); box-shadow: var(--od-shadow-brand); }
.od-brand__mark svg { fill: none; height: 22px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.1px; width: 22px; }
.od-brand__text { min-width: 0; line-height: 1.1; }
.od-brand small { color: var(--od-side-dim); display: block; font-size: var(--od-fs-xs); font-weight: var(--od-fw-ui); letter-spacing: 0; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-side__rail { background: var(--od-side-well); border-radius: var(--od-r-sm); box-shadow: inset 0 0 0 1px var(--od-side-ring); color: var(--od-on-side); display: grid; flex: none; height: 32px; place-items: center; width: 32px; }
.od-side__rail:hover { background: var(--od-side-well-2); }
.od-side__rail .od-ic { transition: transform var(--od-dur-chev) var(--od-ease); }
.od-nav { position: relative; }
.od-nav__label { color: var(--od-side-label); font-size: var(--od-fs-2xs); font-weight: var(--od-fw-strong); letter-spacing: var(--od-track-eyebrow); padding: 12px 12px 6px; text-transform: uppercase; }
.od-nav__label--2 { margin-top: 8px; }
.od-nav__track { display: grid; gap: 2px; position: relative; }
.od-nav__group { display: grid; }
.od-nav__item { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: 100%; height: var(--od-h-nav); padding: 0 12px; text-align: start;
  border-radius: var(--od-r-item); font-size: var(--od-fs-base); font-weight: var(--od-fw-ui); color: var(--od-side-dim); white-space: nowrap; transition: color 0.2s; }
.od-nav__item .od-ic { width: 20px; height: 20px; }
.od-nav__item:hover { background: var(--od-side-hover); color: var(--od-on-side); }
.od-nav__item[aria-current="page"] { background: none; color: var(--od-on-side); }
.od-nav__item[aria-current="page"] > .od-ic:first-child { color: var(--od-side-accent); }
.od-nav__chev { height: 16px !important; margin-inline-start: auto; opacity: 0.55; transition: transform var(--od-dur-chev) var(--od-ease); width: 16px !important; }
.od-nav__count ~ .od-nav__chev { margin-inline-start: 6px; }
.od-nav__group.is-open .od-nav__chev { transform: rotate(90deg); }
.od-nav__count { min-width: 22px; height: 20px; margin-inline-start: auto; padding: 0 7px; display: grid; place-items: center; border-radius: var(--od-r-pill);
  font-size: var(--od-fs-2xs); font-weight: var(--od-fw-strong); color: var(--od-on-side); background: var(--od-side-tree); font-variant-numeric: tabular-nums; }
.od-nav__item[aria-current="page"] .od-nav__count { background: var(--od-live); color: var(--od-on-live); }
.od-nav__count:empty { display: none; }
.od-nav__pill { position: absolute; z-index: 0; inset-block-start: 0; inset-inline: 0; height: var(--od-h-nav); opacity: 0; pointer-events: none; border-radius: var(--od-r-item);
  background: linear-gradient(90deg, var(--od-side-pill-from), var(--od-side-pill-to)); box-shadow: inset 0 0 0 1px var(--od-side-well-2), inset 0 1px var(--od-side-well-2); }
.od-nav__pill::before { background: var(--od-live); border-start-end-radius: 4px; border-end-end-radius: 4px; box-shadow: 0 0 12px var(--od-live-glow); content: ""; height: 20px; inset-inline-start: -12px; margin-top: -10px; position: absolute; top: 50%; width: 4px; }
.od-nav__sub { display: none; gap: 1px; padding-block: 2px 6px; padding-inline: 43px 0; position: relative; }
.od-nav__sub::before { background: var(--od-side-tree); border-radius: 1px; bottom: 12px; content: ""; inset-inline-start: 21.5px; position: absolute; top: 2px; width: 1.5px; }
.od-nav__group.is-open .od-nav__sub { display: grid; }
.od-nav__sub a { align-items: center; border-radius: 9px; color: var(--od-side-dim); display: flex; font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); height: var(--od-h-sub); padding: 0 10px; position: relative; }
.od-nav__sub a::before { background: var(--od-side-tree); content: ""; height: 1.5px; inset-inline-start: -21.5px; position: absolute; top: 50%; width: 12px; }
.od-nav__sub a:hover { background: var(--od-side-hover); color: var(--od-on-side); }
.od-nav__sub a[aria-current="page"] { background: var(--od-side-pill-to); color: var(--od-on-side); }
.od-nav__sub a[aria-current="page"]::after { background: var(--od-side-accent); border-radius: 50%; box-shadow: 0 0 0 3px var(--od-side); content: ""; height: 7px; inset-inline-start: -24.5px; margin-top: -3.5px; position: absolute; top: 50%; width: 7px; }
.od-nav__more { display: none; }
.od-side__foot { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; }
.od-goal { background: var(--od-side-well); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--od-side-line); display: grid; font-size: var(--od-fs-sm); gap: 10px; padding: 14px; }
.od-goal:hover { background: var(--od-side-well-2); }
.od-goal__top { align-items: center; color: var(--od-side-dim); display: flex; font-weight: var(--od-fw-ui); gap: 8px; justify-content: space-between; }
.od-goal__top span { align-items: center; display: inline-flex; gap: 7px; }
.od-goal__top span:last-child { background: var(--od-side-well-2); border-radius: var(--od-r-pill); color: var(--od-on-side); font-size: var(--od-fs-2xs); font-weight: var(--od-fw-strong); padding: 1px 7px; }
.od-goal__top i { background: var(--od-live); border-radius: 50%; box-shadow: 0 0 0 3px var(--od-live-halo); height: 7px; width: 7px; }
.od-goal b { color: var(--od-on-side); font-size: var(--od-fs-3xl); font-weight: var(--od-fw-strong); letter-spacing: var(--od-track-head); line-height: 1; }
.od-goal b small { color: var(--od-side-dim); font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); letter-spacing: 0; margin-inline-start: 4px; }
.od-goal__bar { background: var(--od-side-tree); border-radius: 3px; height: 6px; overflow: hidden; position: relative; }
.od-goal__bar span { background: linear-gradient(90deg, var(--od-pace-from), var(--od-live)); border-radius: inherit; inset: 0; position: absolute; transform-origin: 0 50%; }
.od-goal__bar em { background: var(--od-on-side); border-radius: 1px; bottom: -3px; opacity: 0.7; position: absolute; top: -3px; width: 2px; }
.od-goal__foot { color: var(--od-side-dim); font-size: var(--od-fs-xs); font-weight: var(--od-fw-ui); }
.od-goal__foot b { color: var(--od-side-accent); font-size: inherit; font-weight: var(--od-fw-strong); letter-spacing: 0; }
.od-me { align-items: center; border-radius: var(--od-r-tile); display: flex; gap: 9px; height: var(--od-h-top); padding-block: 0; padding-inline: 4px 10px; text-align: start; }
.od-me:hover { background: var(--od-well); }
.od-me b { display: block; font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); line-height: 1.2; white-space: nowrap; }
.od-me small { color: var(--od-muted); display: block; font-size: var(--od-fs-xs); line-height: 1.2; white-space: nowrap; }
.od-me > .od-ic { color: var(--od-muted); height: 16px; width: 16px; }
.od-side .od-me { color: var(--od-on-side); gap: 10px; height: 52px; padding: 0 8px; width: 100%; }
.od-side .od-me:hover { background: var(--od-side-hover); }
.od-side .od-me > span:not(.od-av) { flex: 1; min-width: 0; }
.od-side .od-me small, .od-side .od-me > .od-ic { color: var(--od-side-dim); }
.od-side .od-me .od-av { box-shadow: 0 0 0 2px var(--od-side), 0 0 0 3.5px var(--od-side-ring-2); }

/* top bar + page head */
.od-main { max-width: var(--od-app-max); min-width: 0; padding-block: 16px 56px; padding-inline: calc(var(--od-side-w) + var(--od-side-inset) + var(--od-gutter)) var(--od-gutter); position: relative; }
.od-top { align-items: center; display: flex; gap: 10px; margin-bottom: 18px; min-height: 52px; }
.od-top__brand { display: none; }
.od-top__where { align-items: center; color: var(--od-muted); display: flex; font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.od-top__where b { color: var(--od-text); font-weight: var(--od-fw-ui); }
.od-top__where .od-ic { width: 15px; height: 15px; opacity: 0.6; }
.od-top__spacer { flex: 1; }
.od-top__tools { display: flex; align-items: center; gap: 8px; }
.od-find { display: flex; align-items: center; gap: 10px; flex: 0 1 340px; min-width: 0; height: var(--od-h-top); padding-block: 0; padding-inline: 15px 8px; text-align: start; color: var(--od-muted);
  background: var(--od-surface); border-radius: var(--od-r-tile); box-shadow: var(--od-rim), var(--od-shadow); }
.od-find:hover { color: var(--od-text); }
.od-find span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-clock { display: inline-flex; align-items: center; gap: 8px; height: var(--od-h-top); padding: 0 14px; font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); color: var(--od-muted);
  white-space: nowrap; background: var(--od-surface); border-radius: var(--od-r-tile); box-shadow: var(--od-rim); }
.od-clock b { color: var(--od-text); font-weight: var(--od-fw-ui); }
.od-clock i { background: var(--od-pine); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--od-pine) 22%, transparent); height: 8px; width: 8px; }
.od-ibtn { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--od-ibtn); height: var(--od-ibtn); color: var(--od-text); border: 1px solid var(--od-line-2); border-radius: var(--od-r-ctl); }
.od-ibtn:hover { background: var(--od-well); }
.od-ibtn--sm { border-radius: var(--od-r-sm); height: var(--od-ibtn-sm); width: var(--od-ibtn-sm); }
.od-ibtn--sm .od-ic { width: 16px; height: 16px; }
.od-ibtn--plain { border-color: transparent; }
.od-ibtn--top { width: var(--od-h-top); height: var(--od-h-top); border: 0; border-radius: var(--od-r-tile); background: var(--od-surface); box-shadow: var(--od-rim), var(--od-shadow); }
.od-ibtn[aria-pressed="true"] { background: var(--od-primary); border-color: transparent; color: var(--od-on-primary); }
.od-badge-dot { background: var(--od-live); border-radius: 50%; box-shadow: 0 0 0 2px var(--od-surface); height: 9px; position: absolute; inset-inline-end: 10px; top: 9px; width: 9px; }

.od-head { align-items: end; display: grid; gap: 16px 24px; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 20px; }
.od-head__crumb { align-items: center; color: var(--od-muted); display: flex; font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); gap: 6px; margin-bottom: 4px; }
.od-head__crumb .od-ic { width: 14px; height: 14px; }
.od-head__title { font-size: var(--od-fs-title); font-weight: var(--od-fw-ui); letter-spacing: var(--od-track-title); line-height: var(--od-lh-title); }
.od-head__title:focus { outline: none; }
.od-head__title em { color: var(--od-primary); font-style: normal; }
.od-head__title .od-word { white-space: nowrap; display: inline-block; margin-bottom: -0.12em; overflow: hidden; padding-bottom: 0.12em; vertical-align: top; }
.od-head__title .od-ch { display: inline-block; white-space: pre; }
.od-head__sub { color: var(--od-muted); font-size: var(--od-fs-md); margin-top: 6px; max-width: var(--od-measure); }
.od-head__sub b { color: var(--od-text); font-weight: var(--od-fw-ui); }
.od-head__sub a { color: var(--od-primary); font-weight: var(--od-fw-ui); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.od-head__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.od-head__stats { display: grid; gap: var(--od-gap); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; grid-column: 1 / -1; }
.od-head > .od-tabs { grid-column: 1 / -1; }

/* stat tile */
.od-stat { align-content: start; background: var(--od-surface); border-radius: var(--od-r-card); box-shadow: var(--od-rim), var(--od-shadow); display: grid; gap: 6px; min-width: 0; padding: var(--od-pad-stat); position: relative; }
.od-stat__label { align-items: center; color: var(--od-muted); display: flex; font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); gap: 10px; }
.od-stat__ico { background: var(--od-primary-soft); border-radius: var(--od-r-sm); color: var(--od-primary); display: grid; flex: none; height: 30px; place-items: center; width: 30px; }
.od-stat__ico .od-ic { width: 16px; height: 16px; }
.od-stat[data-tone] .od-stat__ico { background: color-mix(in srgb, var(--od-c) var(--od-tint), transparent); color: var(--od-ci, color-mix(in srgb, var(--od-c) var(--od-tone-mix), var(--od-text))); }
.od-stat__value { align-items: baseline; display: flex; font-size: var(--od-fs-3xl); font-weight: var(--od-fw-ui); gap: 6px; letter-spacing: var(--od-track-tight); line-height: var(--od-lh-num); }
.od-stat__suffix { color: var(--od-muted); font-size: var(--od-fs-md); letter-spacing: 0; }
.od-stat__note { color: var(--od-muted); font-size: var(--od-fs-sm); }
.od-stat__note b { color: var(--od-text); font-weight: var(--od-fw-ui); }

/* tabs (sub-nav under the page head) with a stretching ember underline */
.od-tabs { border-bottom: 1px solid var(--od-line); display: flex; gap: 4px; overflow-x: auto; position: relative; scrollbar-width: none; }
.od-tabs::-webkit-scrollbar { display: none; }
.od-tabs__line { background: linear-gradient(to top, var(--od-primary) 2.5px, transparent 2.5px); inset: 0; opacity: 0; pointer-events: none; position: absolute; }
.od-tabs__tab { align-items: center; color: var(--od-muted); display: inline-flex; font-weight: var(--od-fw-ui); gap: 7px; height: var(--od-h-tab); padding: 0 12px; position: relative; white-space: nowrap; }
.od-tabs__tab:hover, .od-tabs__tab[aria-current="page"], .od-tabs__tab[aria-selected="true"] { color: var(--od-text); }
.od-tabs__count { background: var(--od-well); border-radius: var(--od-r-pill); color: var(--od-muted); display: grid; font-size: var(--od-fs-2xs); font-weight: var(--od-fw-strong); height: 20px; min-width: 20px; padding: 0 6px; place-items: center; }
.od-tabs__tab[aria-current="page"] .od-tabs__count, .od-tabs__tab[aria-selected="true"] .od-tabs__count { background: var(--od-primary-soft); color: var(--od-primary); }

/* ===== cards ===== */
.od-grid { display: grid; gap: var(--od-gap); }
.od-card { background: var(--od-surface); border-radius: var(--od-r-card); box-shadow: var(--od-rim), var(--od-shadow); min-width: 0; padding: var(--od-pad-card); position: relative; }
.od-card__head { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 16px; min-height: 36px; }
.od-card__head > div:first-child { min-width: 0; }
.od-card__title { align-items: center; display: flex; font-size: var(--od-fs-lg); font-weight: var(--od-fw-ui); gap: 10px; letter-spacing: -0.005em; line-height: 1.25; }
.od-card__ico { background: var(--od-primary-soft); border-radius: var(--od-r-sm); color: var(--od-primary); display: grid; flex: none; height: 32px; place-items: center; width: 32px; }
.od-card__ico .od-ic { width: 17px; height: 17px; }
.od-card__sub { color: var(--od-muted); font-size: var(--od-fs-sm); font-weight: var(--od-fw-body); margin-top: 3px; }
.od-card__head > div:first-child:has(.od-card__ico) .od-card__sub { padding-inline-start: 42px; }
.od-card__tools { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.od-card__more { align-items: center; color: var(--od-primary); display: inline-flex; font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); gap: 4px; white-space: nowrap; }
.od-card__more .od-ic { width: 15px; height: 15px; }
.od-card__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.od-card--flush { padding: 0; overflow: hidden; }
.od-card--flush > .od-card__head { padding: 20px 20px 0; }
.od-card--ink { background: var(--od-side); box-shadow: var(--od-shadow-ink); color: var(--od-on-side); }
.od-card--ink .od-card__sub { color: var(--od-side-dim); }
.od-card--ink .od-card__ico { background: var(--od-side-ico-bg); color: var(--od-side-ico); }
.od-note { align-items: flex-start; background: var(--od-surface-2); border-radius: var(--od-r-tile); box-shadow: var(--od-rim); color: var(--od-muted); display: flex; font-size: var(--od-fs-md); gap: 10px; padding: 11px 13px; }
.od-note > .od-ic { margin-top: 2px; color: var(--od-primary); }
.od-note b { color: var(--od-text); }
.od-note--warn { background: color-mix(in srgb, var(--od-gold) 12%, var(--od-surface)); }
.od-note--warn > .od-ic { color: var(--od-warn); }
.od-empty { color: var(--od-muted); display: grid; gap: 6px; justify-items: center; padding: 36px 16px; text-align: center; }
.od-empty .od-ic { background: var(--od-well); border-radius: var(--od-r-ctl); box-sizing: content-box; height: 30px; opacity: 0.7; padding: 6px; width: 30px; }
.od-empty__title { color: var(--od-text); font-weight: var(--od-fw-ui); }
.od-empty__text { max-width: 320px; font-size: var(--od-fs-md); }

/* ===== buttons ===== */
.od-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--od-h-btn); padding: 0 18px; border: 1px solid transparent; border-radius: var(--od-r-ctl); font-size: var(--od-fs-md); font-weight: var(--od-fw-ui); white-space: nowrap; }
.od-btn .od-ic { width: 17px; height: 17px; }
.od-btn--primary { background: var(--od-primary); box-shadow: var(--od-shadow-btn); color: var(--od-on-primary); }
.od-btn--primary:hover { filter: brightness(1.12); }
.od[data-od-theme="dark"] .od-btn--primary:hover { filter: brightness(0.94); }
.od-btn--live { background: var(--od-live); color: var(--od-on-live); }
.od-btn--live:hover { filter: brightness(1.05); }
.od-btn--ink { background: var(--od-side); color: var(--od-on-side); }
.od-btn--ghost { background: var(--od-surface); border-color: var(--od-line-2); }
.od-btn--ghost:hover { background: var(--od-surface-2); }
.od-btn--soft { background: var(--od-primary-soft); color: var(--od-primary); }
.od-btn--soft:hover { background: color-mix(in srgb, var(--od-primary) 18%, transparent); }
.od-btn--good { background: color-mix(in srgb, var(--od-good) var(--od-soft), transparent); color: var(--od-good); }
.od-btn--good:hover { background: color-mix(in srgb, var(--od-good) 24%, transparent); }
.od-btn--danger { background: var(--od-bad); color: var(--od-on-danger); }
.od-btn--sm { border-radius: 11px; font-size: var(--od-fs-sm); height: var(--od-h-btn-sm); padding: 0 14px; }
.od-btn--xs { border-radius: var(--od-r-sm); font-size: var(--od-fs-sm); gap: 6px; height: var(--od-h-btn-xs); padding: 0 11px; }
.od-btn--xs .od-ic { width: 14px; height: 14px; }
.od-btn:disabled, .od-btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.45; }
.od-btn[aria-busy="true"] { opacity: 0.8; pointer-events: none; }

/* ===== controls ===== */
.od-seg { background: var(--od-well); border-radius: var(--od-r-seg); display: inline-flex; padding: 3px; position: relative; }
.od-seg__pill { background: var(--od-thumb); box-shadow: var(--od-shadow-thumb); inset: 0; opacity: 0; pointer-events: none; position: absolute; }
.od-seg__btn { border-radius: var(--od-r-sm); color: var(--od-muted); font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); padding: 7px 13px; position: relative; white-space: nowrap; z-index: 1; }
.od-seg__btn[aria-pressed="true"] { color: var(--od-text); }
.od-input, .od-search { min-width: 0; height: var(--od-h-field); padding: 0 14px; background: var(--od-surface); border: 1px solid var(--od-line-2); border-radius: var(--od-r-ctl); outline: none; }
.od-input:focus, .od-search:focus-within { border-color: var(--od-primary); box-shadow: var(--od-focus-halo); }
.od-input[aria-invalid="true"] { border-color: var(--od-bad); }
.od-search { align-items: center; color: var(--od-muted); display: inline-flex; gap: 8px; }
.od-search input { background: none; border: 0; color: var(--od-text); height: 100%; min-width: 0; outline: none; width: 100%; }
.od-input:is(select) { padding-inline-end: 32px; }
.od-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.od-toolbar__spacer { flex: 1; }
.od-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.od-chip { align-items: center; background: var(--od-surface); border-radius: var(--od-r-pill); box-shadow: var(--od-rim); color: var(--od-muted); display: inline-flex; font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); gap: 6px; height: var(--od-h-chip); padding: 0 13px; white-space: nowrap; }
.od-chip:hover { color: var(--od-text); }
.od-chip[aria-pressed="true"] { background: var(--od-text); box-shadow: none; color: var(--od-bg); }
.od-chip b { opacity: 0.7; font-variant-numeric: tabular-nums; }
.od-field { display: grid; gap: 6px; min-width: 0; }
.od-field--wide { grid-column: 1 / -1; }
.od-field__label { color: var(--od-muted); font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); }
.od-field__hint { color: var(--od-faint); font-size: var(--od-fs-sm); }
.od-field input, .od-field select, .od-field textarea { width: 100%; min-height: var(--od-h-field-form); padding: 10px 13px; background: var(--od-surface); border: 1px solid var(--od-line-2); border-radius: var(--od-r-ctl); outline: none; resize: vertical; }
.od-field input:focus, .od-field select:focus, .od-field textarea:focus { border-color: var(--od-primary); box-shadow: var(--od-focus-halo); }
.od-field [aria-invalid="true"] { border-color: var(--od-bad); }
.od-check { appearance: none; flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0; cursor: pointer; background: var(--od-surface); border: 1.5px solid var(--od-line-2); border-radius: 6px; }
.od-check:checked { background: var(--od-primary); border-color: transparent; }
.od-check:checked::after { border-block-end: 2px solid var(--od-on-primary); border-inline-start: 2px solid var(--od-on-primary); content: ""; height: 5px; transform: rotate(-45deg) translate(1px, -1px); width: 10px; }
.od-switch { background: var(--od-line-2); border-radius: var(--od-r-pill); flex: none; height: 26px; position: relative; width: 44px; }
.od-switch::after { background: var(--od-knob); border-radius: 50%; box-shadow: var(--od-shadow-knob); content: ""; height: 20px; inset-inline-start: 3px; position: absolute; top: 3px; transition: transform var(--od-dur-swap) var(--od-ease); width: 20px; }
.od-switch[aria-checked="true"] { background: var(--od-primary); }
.od-switch[aria-checked="true"]::after { transform: translateX(18px); }
.od-kbd { padding: 3px 7px; font: var(--od-fw-ui) var(--od-fs-2xs) var(--od-font); color: var(--od-muted); background: var(--od-surface-2); border: 1px solid var(--od-line-2); border-radius: 7px; }
.od-stars { display: inline-flex; gap: 2px; }
.od-stars button { padding: 2px; color: var(--od-line-2); }
.od-stars .od-ic { width: 18px; height: 18px; }
.od-stars .is-on { color: var(--od-gold); }
.od-stars .is-on .od-ic { fill: currentColor; }

/* ===== data display ===== */
.od-pill { display: inline-flex; align-items: center; gap: 6px; padding-block: 3px; padding-inline: 8px 10px; font-size: var(--od-fs-xs); font-weight: var(--od-fw-ui); line-height: 1.45; white-space: nowrap; border-radius: var(--od-r-pillbox);
  background: color-mix(in srgb, var(--od-c, var(--od-faint)) var(--od-tint), transparent); color: var(--od-ci, color-mix(in srgb, var(--od-c, var(--od-faint)) var(--od-tone-mix), var(--od-text))); }
.od-pill i { background: var(--od-c, var(--od-faint)); border-radius: 50%; flex: none; height: 6px; width: 6px; }
.od-chtag { align-items: center; color: var(--od-muted); display: inline-flex; font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); gap: 7px; white-space: nowrap; }
.od-chtag i { background: var(--od-c, var(--od-faint)); border-radius: 3px; flex: none; height: 9px; width: 9px; }
.od-dot { background: var(--od-c, var(--od-faint)); border-radius: 50%; display: inline-block; flex: none; height: var(--od-dot); width: var(--od-dot); }
.od-fill { background: var(--od-c, var(--od-faint)); }
.od-trend { align-items: center; border-radius: var(--od-r-trend); display: inline-flex; font-size: var(--od-fs-xs); font-weight: var(--od-fw-strong); gap: 2px; padding-block: 2px; padding-inline: 4px 7px; white-space: nowrap; }
.od-trend .od-ic { width: 13px; height: 13px; stroke-width: 2.2px; }
.od-trend--good { background: color-mix(in srgb, var(--od-good) var(--od-soft), transparent); color: var(--od-good); }
.od-trend--bad { background: color-mix(in srgb, var(--od-rose) var(--od-soft), transparent); color: var(--od-bad); }
.od-trend--flat { background: var(--od-well); color: var(--od-muted); }
.od-score { display: inline-grid; flex: none; height: 36px; place-items: center; position: relative; width: 36px; }
.od-score svg { height: 100%; inset: 0; position: absolute; transform: rotate(-90deg); width: 100%; }
.od-score__track { fill: none; stroke: var(--od-well); stroke-width: 3.5px; }
.od-score__arc { fill: none; stroke: var(--od-faint); stroke-linecap: round; stroke-width: 3.5px; }
.od-score--good .od-score__arc { stroke: var(--od-good); } .od-score--gold .od-score__arc { stroke: var(--od-gold); }
.od-score b { font-size: var(--od-fs-2xs); font-weight: var(--od-fw-strong); }
.od-av { background: var(--od-c-av, var(--od-av-base)); border-radius: 50%; color: var(--od-av-ink); display: inline-grid; filter: var(--od-av-filter); flex: none; font-weight: var(--od-fw-strong); letter-spacing: 0.01em; place-items: center; user-select: none; }
.od-av--xs { font-size: var(--od-fs-2xs); height: var(--od-av-xs); letter-spacing: -0.02em; width: var(--od-av-xs); }
.od-av--sm { font-size: var(--od-fs-2xs); height: var(--od-av-sm); width: var(--od-av-sm); }
.od-av--md { font-size: var(--od-fs-sm); height: var(--od-av-md); width: var(--od-av-md); }
.od-av--lg { font-size: var(--od-fs-xl); height: var(--od-av-lg); width: var(--od-av-lg); }
.od-av--xl { font-size: var(--od-fs-4xl); height: var(--od-av-xl); width: var(--od-av-xl); }
.od-av[data-tone="ember"] { --od-c-av: var(--od-av-ember); } .od-av[data-tone="pine"] { --od-c-av: var(--od-av-pine); } .od-av[data-tone="gold"] { --od-c-av: var(--od-av-gold); }
.od-av[data-tone="moss"] { --od-c-av: var(--od-av-moss); } .od-av[data-tone="steel"] { --od-c-av: var(--od-av-steel); } .od-av[data-tone="clay"] { --od-c-av: var(--od-av-clay); }
.od-av[data-tone="rose"] { --od-c-av: var(--od-av-rose); } .od-av[data-tone="slate"] { --od-c-av: var(--od-av-slate); } .od-av[data-tone="sea"] { --od-c-av: var(--od-av-sea); }
.od-av--more { background: var(--od-well); color: var(--od-muted); filter: none; }
.od-av--open { background: none; border: 1.5px dashed var(--od-line-2); color: var(--od-muted); filter: none; }
.od-av-stack { display: inline-flex; }
.od-av-stack .od-av { box-shadow: 0 0 0 2px var(--od-stack-ring, var(--od-surface)); }
.od-av-stack .od-av + .od-av { margin-inline-start: -8px; }
.od-meter { background: var(--od-well); border-radius: var(--od-r-pill); display: block; height: 8px; overflow: hidden; }
.od-meter__fill { background: var(--od-c, var(--od-primary)); border-radius: inherit; display: block; height: 100%; transform-origin: 0 50%; width: 100%; }
.od-feed { display: grid; }
.od-feed__item { align-items: flex-start; border-bottom: var(--od-bw-dash) dashed var(--od-line-2); display: flex; gap: 12px; padding: 10px 0; }
.od-feed__item:last-child { border-bottom: 0; }
.od-feed__item p { min-width: 0; font-size: var(--od-fs-md); }
.od-feed__item p b { font-weight: var(--od-fw-ui); }
.od-feed__item small { align-items: center; color: var(--od-muted); display: flex; font-size: var(--od-fs-sm); gap: 5px; margin-top: 1px; }
.od-feed__item small .od-ic { width: 13px; height: 13px; }
.od-facts { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.od-facts > div { background: var(--od-surface-2); border-radius: 16px; box-shadow: var(--od-rim); min-width: 0; padding: 12px 14px; }
.od-facts dt { color: var(--od-muted); font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); }
.od-facts dd { font-size: var(--od-fs-lg); font-weight: var(--od-fw-strong); letter-spacing: var(--od-track-head); }
.od-facts dd small { color: var(--od-muted); font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); letter-spacing: 0; }
.od-icon-tile { background: var(--od-c, var(--od-faint)); border-radius: var(--od-r-item); color: var(--od-on-tone); display: grid; flex: none; height: 38px; place-items: center; width: 38px; }
.od-icon-tile .od-ic { width: 18px; height: 18px; }
.od-icon-tile--tint { color: color-mix(in oklch, var(--od-c) 70%, var(--od-text)); background: color-mix(in oklch, var(--od-c) 17%, var(--od-surface));
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--od-c) 22%, transparent); width: 34px; height: 34px; border-radius: 11px; }
.od-icon-tile--tint .od-ic { width: 17px; height: 17px; }

/* KPI group: one sunken well, the selected tile is raised and the bar slides */
.od-kpis { background: var(--od-surface-2); border-radius: var(--od-r-pop); box-shadow: var(--od-rim); display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: -4px 0 18px; padding: 6px; position: relative; }
.od-kpis__bar { background: var(--od-kpi-bar); box-shadow: var(--od-shadow-kpi); inset: 0; opacity: 0; pointer-events: none; position: absolute; }
.od-kpi { border-radius: 13px; color: var(--od-muted); display: grid; gap: 6px; min-width: 0; padding: 12px 14px; position: relative; text-align: start; z-index: 1; }
.od-kpi[aria-pressed="true"] { color: var(--od-text); }
.od-kpi__label { align-items: center; display: flex; font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-kpi__ico { background: var(--od-well); border-radius: 8px; color: var(--od-muted); display: grid; flex: none; height: 26px; place-items: center; transition: background-color 0.3s, color 0.3s; width: 26px; }
.od-kpi__ico .od-ic { width: 15px; height: 15px; }
.od-kpi[aria-pressed="true"] .od-kpi__ico { background: var(--od-c); color: var(--od-on-tone); }
.od-kpi__value { color: var(--od-text); font-size: var(--od-fs-3xl); font-weight: var(--od-fw-ui); letter-spacing: -0.015em; line-height: var(--od-lh-num); white-space: nowrap; }
.od-kpi__foot { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.od-kpi__foot small { color: var(--od-muted); font-size: var(--od-fs-xs); white-space: nowrap; }
.od-kpi:hover:not([aria-pressed="true"]) .od-kpi__label { color: var(--od-text); }

/* ===== tables ===== */
.od-table-wrap { margin: 0 -8px; overflow-x: auto; }
.od-table { border-collapse: separate; border-spacing: 0; font-size: var(--od-fs-md); width: 100%; }
.od-table th { background: var(--od-surface-2); color: var(--od-muted); font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); padding: 10px 12px; text-align: start; white-space: nowrap; }
.od-table th:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; } .od-table th:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.od-table th button { align-items: center; color: inherit; display: inline-flex; font-weight: var(--od-fw-ui); gap: 4px; }
.od-table th button .od-ic { width: 14px; height: 14px; }
.od-table th[aria-sort] button { color: var(--od-text); }
.od-table td { border-bottom: var(--od-bw-dash) dashed var(--od-line-2); padding: 12px; vertical-align: middle; }
.od-table tr:last-child td { border-bottom: 0; }
.od-table tbody tr:hover td { background: var(--od-surface-2); }
.od-table tbody tr:hover td:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; } .od-table tbody tr:hover td:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.od-table .r { text-align: end; } .od-table .c { text-align: center; }
.od-cell { align-items: center; display: flex; gap: 10px; min-width: 0; }
.od-cell b { display: block; font-weight: var(--od-fw-ui); white-space: nowrap; }
.od-cell small { color: var(--od-muted); display: block; font-size: var(--od-fs-sm); white-space: nowrap; }
.od-cell:is(a):hover b { color: var(--od-primary); }
.od-card:has(.od-table-wrap) { container: table / inline-size; }
@container table (width <= 720px) {
  .od-table--stack, .od-table--stack tbody { display: block; }
  .od-table--stack thead { display: none; }
  .od-table-wrap:has(.od-table--stack) { margin: 0; overflow: visible; }
  .od-table--stack tr { align-items: center; border-bottom: var(--od-bw-dash) dashed var(--od-line-2); display: grid; gap: 6px 12px; grid-template-areas: var(--od-areas, "t r" "s p" "m x"); grid-template-columns: minmax(0, 1fr) auto; padding: 12px 2px; }
  .od-table--stack tr:last-child { border-bottom: 0; }
  .od-table--stack tbody tr:hover td { background: none; }
  .od-table--stack td, .od-table.od-table--stack td { border: 0; display: block; min-width: 0; padding: 0; text-align: start; }
  .od-table--stack .a-t { grid-area: t; } .od-table--stack .a-s { grid-area: s; } .od-table--stack .a-m { grid-area: m; }
  .od-table--stack .a-r { grid-area: r; justify-self: end; text-align: end; } .od-table--stack .a-p { grid-area: p; justify-self: end; } .od-table--stack .a-x { grid-area: x; justify-self: end; }
  .od-table--stack .a-h { display: none; }
}

/* ===== charts ===== */
.od-chart { position: relative; outline: none; }
.od-chart:focus-visible { border-radius: var(--od-r-ctl); outline: var(--od-focus-width) solid var(--od-focus); outline-offset: 4px; }
.od-chart svg { overflow: visible; }
.od-chart__grid line { stroke: var(--od-chart-grid); stroke-dasharray: var(--od-chart-grid-dash); }
.od-chart__grid text, .od-chart__x text { fill: var(--od-chart-axis); font-size: var(--od-fs-xs); font-weight: var(--od-fw-ui); }
.od-chart__line { fill: none; stroke: var(--od-c, var(--od-series-1)); stroke-linecap: round; stroke-linejoin: round; stroke-width: var(--od-chart-stroke); }
.od-chart__line.is-prev { stroke: var(--od-series-prev); stroke-dasharray: var(--od-chart-prev-dash); stroke-width: var(--od-chart-prev-stroke); }
.od-chart__stop0 { stop-color: var(--od-c, var(--od-series-1)); stop-opacity: var(--od-chart-area); }
.od-chart__stop1 { stop-color: var(--od-c, var(--od-series-1)); stop-opacity: 0; }
.od-chart__cross { opacity: 0; stroke: var(--od-line-2); stroke-width: 1px; }
.od-chart__dot { fill: var(--od-c, var(--od-series-1)); opacity: 0; stroke: var(--od-surface); stroke-width: 2.5px; }
.od-chart__tip { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 2; display: grid; gap: 3px; padding: 8px 10px; font-size: var(--od-fs-sm); white-space: nowrap; pointer-events: none; opacity: 0;
  background: var(--od-raised); border-radius: var(--od-r-ctl); box-shadow: var(--od-shadow-pop); transition: opacity var(--od-dur-micro); }
.od-chart__tip span { align-items: center; color: var(--od-muted); display: flex; gap: 6px; }
.od-chart__tip i { background: var(--od-c, var(--od-faint)); border-radius: 50%; height: 8px; width: 8px; }
.od-chart__tip strong { color: var(--od-text); margin-inline-start: auto; padding-inline-start: 10px; }
.od-chart__tip em { color: var(--od-primary); font-style: normal; font-weight: var(--od-fw-ui); }
.od-chart__pin { cursor: pointer; outline: none; }
.od-chart__pin line { opacity: 0.7; stroke: var(--od-c, var(--od-faint)); stroke-dasharray: 2 3; stroke-width: 1.5px; }
.od-chart__pin circle { fill: var(--od-surface); stroke: var(--od-c, var(--od-faint)); stroke-width: 2.5px; transition: fill var(--od-dur-ui) var(--od-ease); }
.od-chart__pin:hover circle, .od-chart__pin:focus-visible circle { fill: var(--od-c); }
.od-chart__pin .od-chart__hit { fill: transparent; stroke: none; }
.od-legend { color: var(--od-muted); display: flex; flex-wrap: wrap; font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); gap: 8px 16px; }
.od-legend span { align-items: center; display: inline-flex; gap: 6px; }
.od-legend i { background: var(--od-c, var(--od-faint)); border-radius: 3px; height: 9px; width: 9px; }
.od-legend i.is-dash { background: none; border-radius: 0; border-top: 2px dashed var(--od-faint); height: 0; width: 14px; }
.od-legend i.is-pin { width: 10px; height: 10px; border-radius: 50%; background: var(--od-surface); border: 2.5px solid var(--od-c, var(--od-ember)); }
.od-cols { align-items: stretch; display: flex; gap: 10px; height: 200px; }
.od-cols__col { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.od-cols__val { color: var(--od-muted); font-size: var(--od-fs-2xs); font-weight: var(--od-fw-strong); overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.od-cols__track { align-items: flex-end; background: var(--od-well); border-radius: var(--od-r-sm); display: flex; flex: 1; overflow: hidden; }
.od-cols__bar { background: var(--od-c, var(--od-primary)); border-radius: var(--od-r-sm); display: block; min-height: 3px; width: 100%; }
.od-cols__lab { color: var(--od-muted); font-size: var(--od-fs-2xs); font-weight: var(--od-fw-ui); overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.od-cols__col.is-hi .od-cols__val, .od-cols__col.is-hi .od-cols__lab { color: var(--od-text); }
.od-cols--pick .od-cols__col { border-radius: var(--od-r-ctl); cursor: pointer; outline: none; }
.od-cols--pick .od-cols__col:not(.is-hi) .od-cols__bar { opacity: 0.42; transition: opacity 0.25s; }
.od-cols--pick .od-cols__col:hover .od-cols__bar { opacity: 1; }
.od-cols--pick .od-cols__col:focus-visible .od-cols__track { outline: var(--od-focus-width) solid var(--od-focus); outline-offset: 2px; }
.od-strip { display: flex; gap: 3px; height: 14px; margin-bottom: 20px; }
.od-strip span { background: var(--od-c, var(--od-faint)); border-radius: 4px; min-width: 3px; transform-origin: 50% 100%; }
.od-rank { display: grid; gap: 14px; }
.od-rank__row { align-items: center; display: grid; gap: 6px 12px; grid-template-columns: minmax(0, 1fr) auto; }
.od-rank__name { align-items: center; display: flex; gap: 8px; min-width: 0; }
.od-rank__name b { font-weight: var(--od-fw-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-rank__name small { color: var(--od-muted); font-size: var(--od-fs-xs); white-space: nowrap; }
.od-rank__fig { display: flex; align-items: baseline; gap: 8px; }
.od-rank__fig b { font-weight: var(--od-fw-ui); }
.od-rank__fig small { color: var(--od-muted); font-size: var(--od-fs-xs); font-weight: var(--od-fw-ui); min-width: 32px; text-align: end; }
.od-rank__track { background: var(--od-well); border-radius: 4px; grid-column: 1 / -1; height: 8px; overflow: hidden; }
.od-rank__bar { background: var(--od-c, var(--od-primary)); border-radius: inherit; display: block; height: 100%; transform-origin: 0 50%; }
.od-fun { display: grid; gap: 10px; }
.od-fun__step { align-items: center; display: grid; gap: 12px; grid-template-columns: 128px minmax(0, 1fr) 84px; }
.od-fun__name { color: var(--od-muted); font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); }
.od-fun__track { display: flex; height: 30px; justify-content: center; }
.od-fun__bar { background: var(--od-primary); border-radius: 9px; display: block; height: 100%; transform-origin: 50% 50%; }
.od-fun__fig { display: grid; justify-items: end; line-height: 1.15; }
.od-fun__fig b { font-weight: var(--od-fw-ui); }
.od-fun__fig small { color: var(--od-muted); font-size: var(--od-fs-xs); font-weight: var(--od-fw-ui); }
.od-fun__step.is-leak .od-fun__fig small { color: var(--od-bad); }
.od-fun__step.is-leak .od-fun__name::after { color: var(--od-bad); content: attr(data-leak); display: block; font-size: var(--od-fs-2xs); font-weight: var(--od-fw-strong); }
.od-gauge { margin: 0 auto; max-width: 260px; position: relative; width: 100%; }
.od-gauge svg { width: 100%; height: auto; overflow: visible; }
.od-gauge__track, .od-gauge__arc { fill: none; stroke-linecap: round; stroke-width: 13px; }
.od-gauge__track { stroke: var(--od-well); }
.od-gauge__arc { stroke: var(--od-primary); }
.od-gauge__ticks line { stroke: var(--od-line-2); stroke-linecap: round; stroke-width: 1.4px; }
.od-gauge__ticks line.is-major { stroke: var(--od-muted); stroke-width: 2px; }
.od-gauge__mark line { stroke: var(--od-text); stroke-linecap: round; stroke-width: 2.5px; }
.od-gauge__needle path, .od-gauge__needle circle { fill: var(--od-text); }
.od-gauge__needle .od-gauge__hub { fill: var(--od-surface); }
.od-gauge__mid { display: grid; justify-items: center; margin-top: -2px; text-align: center; }
.od-gauge__mid b { font-size: var(--od-fs-4xl); font-weight: var(--od-fw-strong); letter-spacing: var(--od-track-title); line-height: 1.05; }
.od-gauge__mid span { color: var(--od-muted); font-size: var(--od-fs-sm); margin-top: 2px; }

/* ===== overlays ===== */
.od-scrim { background: var(--od-scrim); inset: 0; opacity: 0; position: fixed; visibility: hidden; z-index: var(--od-z-scrim); }
.od-pop-layer { inset: 0; pointer-events: none; position: fixed; z-index: var(--od-z-pop); }
.od-pop { position: fixed; min-width: 210px; max-width: min(360px, 100vw - 24px); max-height: min(70vh, 520px); padding: 6px; overflow: auto; pointer-events: auto;
  background: var(--od-raised); border: 1px solid var(--od-line); border-radius: var(--od-r-pop); box-shadow: var(--od-shadow-pop); }
.od-pop hr { background: var(--od-line); border: 0; height: 1px; margin: 4px 6px; }
.od-menu__item { align-items: center; border-radius: var(--od-r-item); display: flex; font-size: var(--od-fs-md); font-weight: var(--od-fw-ui); gap: 10px; padding: 9px 12px; text-align: start; width: 100%; }
.od-menu__item:hover, .od-menu__item:focus-visible { background: var(--od-well); outline: none; }
.od-menu__item.is-danger { color: var(--od-bad); }
.od-menu__check { margin-inline-start: auto; }
.od-pop__head { align-items: center; display: flex; gap: 10px; justify-content: space-between; padding: 8px 10px 6px; }
.od-pop__title { font-size: var(--od-fs-base); font-weight: var(--od-fw-strong); }
.od-pop__row { align-items: center; border-radius: var(--od-r-item); display: flex; gap: 10px; padding: 9px 10px; text-align: start; width: 100%; }
.od-pop__row:hover, .od-pop__row:focus-visible { background: var(--od-well); outline: none; }
.od-pop__row b { font-weight: var(--od-fw-ui); }
.od-pop__row small { color: var(--od-muted); display: block; font-size: var(--od-fs-sm); }
.od-pop__row > span:first-child { background: var(--od-well); border-radius: 11px; display: grid; flex: none; height: 34px; place-items: center; width: 34px; }
.od-pop__row.is-unread > span:first-child { background: var(--od-primary-soft); color: var(--od-primary); }
.od-pop__row.is-unread b::after { background: var(--od-live); border-radius: 50%; content: ""; display: inline-block; height: 7px; margin-inline-start: 6px; vertical-align: middle; width: 7px; }
.od-pop--wide { width: 370px; }
.od dialog, .od-dialog { color: var(--od-text); }
.od-modal:is(dialog), .od-drawer:is(dialog), .od-finder:is(dialog) { color: var(--od-text); }
.od-modal:is(dialog)::backdrop, .od-drawer:is(dialog)::backdrop, .od-finder:is(dialog)::backdrop { -webkit-backdrop-filter: blur(var(--od-backdrop-blur)); animation: od-fade var(--od-dur-swap) var(--od-ease); backdrop-filter: blur(var(--od-backdrop-blur)); background: var(--od-backdrop); }
@keyframes od-fade { from { opacity: 0; } }
.od-modal { width: min(580px, 100vw - 24px); padding: 0; background: var(--od-raised); border: 1px solid var(--od-line); border-radius: var(--od-r-sheet); box-shadow: var(--od-shadow-pop); }
.od-mform { padding: var(--od-pad-sheet); }
.od-mform__head { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 18px; }
.od-mform__title { font-size: var(--od-fs-2xl); font-weight: var(--od-fw-strong); letter-spacing: var(--od-track-head); }
.od-mform__sub { color: var(--od-muted); font-size: var(--od-fs-md); margin-top: 4px; }
.od-mform__grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.od-mform__err { color: var(--od-bad); font-size: var(--od-fs-md); font-weight: var(--od-fw-ui); margin-top: 10px; min-height: 18px; }
.od-mform__foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.od-drawer { position: fixed; inset-block: 12px; inset-inline: auto 12px; width: min(480px, 100vw - 24px); height: auto; max-height: none; margin-block: 0; margin-inline: auto 0; padding: 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--od-raised); border: 1px solid var(--od-line); border-radius: var(--od-r-sheet); box-shadow: var(--od-shadow-pop); }
.od-drawer__inner { align-content: start; display: grid; gap: 18px; padding: 24px; position: relative; }
.od-drawer__close { position: absolute; inset-inline-end: 18px; top: 18px; z-index: 1; }
.od-drawer h2 { font-size: var(--od-fs-3xl); font-weight: var(--od-fw-strong); letter-spacing: var(--od-track-head); line-height: 1.15; }
.od-finder { width: min(640px, 100vw - 24px); margin-top: 12vh; padding: 0; background: var(--od-raised); border: 1px solid var(--od-line); border-radius: 24px; box-shadow: var(--od-shadow-pop); }
.od-finder__bar { align-items: center; border-bottom: 1px solid var(--od-line); display: flex; gap: 12px; padding: 16px 18px; }
.od-finder__bar input { background: none; border: 0; flex: 1; font-size: var(--od-fs-xl); min-width: 0; outline: none; }
.od-finder__list { max-height: 52vh; overflow: auto; padding: 8px; }
.od-finder__group { color: var(--od-muted); font-size: var(--od-fs-2xs); font-weight: var(--od-fw-strong); letter-spacing: var(--od-track-group); padding: 10px 10px 4px; text-transform: uppercase; }
.od-finder__opt { align-items: center; border-radius: var(--od-r-tile); cursor: pointer; display: flex; gap: 12px; padding: 9px 10px; }
.od-finder__opt[aria-selected="true"] { background: var(--od-well); }
.od-finder__opt small { color: var(--od-muted); display: block; font-size: var(--od-fs-sm); }
.od-finder__opt .lead { background: var(--od-well); border-radius: var(--od-r-ctl); display: grid; flex: none; height: 38px; place-items: center; width: 38px; }
.od-finder__opt .go { margin-inline-start: auto; color: var(--od-muted); }
.od-finder__opt > span:nth-child(2) { min-width: 0; }
.od-finder__opt b, .od-finder__opt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-toast { position: fixed; inset-inline: 0; bottom: 24px; z-index: var(--od-z-toast); display: flex; align-items: center; gap: 10px; width: fit-content; max-width: calc(100vw - 24px); margin: 0 auto; padding-block: 10px; padding-inline: 14px 12px;
  visibility: hidden; pointer-events: none; font-size: var(--od-fs-md); font-weight: var(--od-fw-ui); color: var(--od-on-side); background: var(--od-side); border-radius: 16px; box-shadow: var(--od-shadow-pop); }
.od-toast__ico { display: grid; color: var(--od-side-ico); }
.od-toast__undo { background: var(--od-live); border-radius: var(--od-r-sm); color: var(--od-on-live); font-weight: var(--od-fw-strong); padding: 6px 12px; pointer-events: auto; }
.od-rail-tip { background: var(--od-side); border-radius: var(--od-r-sm); box-shadow: var(--od-shadow-pop); color: var(--od-on-side); font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); inset-inline-start: 0; opacity: 0; padding: 7px 11px; pointer-events: none; position: fixed; top: 0; white-space: nowrap; z-index: var(--od-z-tip); }
.od-rail-tip::before { background: inherit; border-radius: 2px; content: ""; height: 8px; inset-inline-start: -4px; margin-top: -4px; position: absolute; top: 50%; transform: rotate(45deg); width: 8px; }
.od-stamp { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 3; padding: 6px 14px; pointer-events: none; font-size: var(--od-fs-xl); font-weight: var(--od-fw-strong); letter-spacing: var(--od-track-stamp); text-transform: uppercase;
  color: var(--od-c, var(--od-good)); background: color-mix(in srgb, var(--od-surface) 70%, transparent); border: var(--od-bw-stamp) solid; border-radius: var(--od-r-sm); }

/* ===== kanban pipeline ===== */
.od-pipe { display: grid; gap: var(--od-gap); }
.od-pipe__board { align-items: start; display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(196px, 1fr)); overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: thin; }
.od-pc { align-content: start; background: var(--od-surface-2); border-radius: var(--od-r-card); box-shadow: var(--od-rim); display: grid; gap: 8px; min-height: 320px; padding: 12px; position: relative; }
.od-pc.is-over { background: color-mix(in srgb, var(--od-primary) 7%, var(--od-surface-2)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--od-primary) 45%, transparent); }
.od-pc[data-won] { background: color-mix(in srgb, var(--od-good) 7%, var(--od-surface-2)); }
.od-pc__head { align-items: center; display: flex; gap: 8px; justify-content: space-between; padding: 2px 4px 0; }
.od-pc__name { align-items: center; display: inline-flex; font-weight: var(--od-fw-ui); gap: 7px; }
.od-pc__name b { background: var(--od-surface); border-radius: var(--od-r-pillbox); box-shadow: var(--od-rim); display: grid; font-size: var(--od-fs-2xs); font-weight: var(--od-fw-strong); height: 22px; min-width: 22px; padding: 0 6px; place-items: center; }
.od-pc__sum { font-size: var(--od-fs-sm); font-weight: var(--od-fw-ui); }
.od-pc__odds { color: var(--od-muted); font-size: var(--od-fs-xs); margin-top: -4px; padding: 0 4px; }
.od-pc__list { display: grid; gap: 8px; min-height: 60px; }
.od-pc__empty { display: grid; place-items: center; min-height: 80px; font-size: var(--od-fs-sm); color: var(--od-muted); border: var(--od-bw-dash) dashed var(--od-line-2); border-radius: var(--od-r-tile); }
.od-lc { background: var(--od-surface); border-radius: var(--od-r-tile); box-shadow: var(--od-rim), var(--od-shadow-item); cursor: grab; display: grid; gap: 6px; overflow: hidden; padding: 12px; position: relative; touch-action: pan-y; user-select: none; }
.od-lc:hover { box-shadow: var(--od-rim), var(--od-shadow-hover); }
.od-lc:focus-visible { outline: var(--od-focus-width) solid var(--od-focus); outline-offset: 2px; }
.od-lc[aria-grabbed="true"] { outline: var(--od-focus-width) dashed var(--od-focus); outline-offset: 2px; }
.od-lc__top { align-items: flex-start; display: flex; gap: 8px; justify-content: space-between; }
.od-lc__top b { font-weight: var(--od-fw-ui); line-height: 1.3; }
.od-lc__top .od-score { height: 32px; margin-block: -3px 0; margin-inline: 0 -3px; width: 32px; }
.od-lc__who { color: var(--od-muted); font-size: var(--od-fs-xs); }
.od-lc__foot { align-items: center; display: flex; gap: 8px; margin-top: 2px; }
.od-lc__val { font-size: var(--od-fs-md); font-weight: var(--od-fw-ui); }
.od-lc__src { align-items: center; color: var(--od-muted); display: inline-flex; font-size: var(--od-fs-xs); font-weight: var(--od-fw-ui); gap: 5px; }
.od-lc__stale { align-items: center; color: var(--od-bad); display: inline-flex; font-size: var(--od-fs-2xs); font-weight: var(--od-fw-strong); gap: 3px; }
.od-lc__stale .od-ic { width: 12px; height: 12px; }
.od-lc__foot .od-av { margin-inline-start: auto; }
.od-lc .od-stamp { bottom: 10px; font-size: var(--od-fs-md); padding: 3px 9px; inset-inline-end: 10px; top: auto; }
.od-lifted { box-shadow: var(--od-shadow-lift) !important; margin: 0; pointer-events: none; position: fixed; z-index: var(--od-z-lift); }
.od.is-dragging, .od.is-dragging * { cursor: grabbing !important; user-select: none; }
.od-is-placeholder { opacity: 0.35; outline: var(--od-bw-dash) dashed var(--od-line-2); outline-offset: -1.5px; }
.od-is-placeholder > * { visibility: hidden; }
.od-lost { display: grid; gap: 10px; padding: 12px 14px; border: var(--od-bw-dash) dashed var(--od-line-2); border-radius: var(--od-r-pop); }
.od-lost.is-over { background: color-mix(in srgb, var(--od-rose) 8%, transparent); border-color: var(--od-rose); }
.od-lost header { align-items: center; color: var(--od-muted); display: flex; gap: 8px; }
.od-lost header .od-ic { width: 16px; height: 16px; }
.od-lost header b { color: var(--od-text); font-weight: var(--od-fw-ui); }
.od-lost header span { background: var(--od-well); border-radius: var(--od-r-pillbox); color: var(--od-text); display: grid; font-size: var(--od-fs-2xs); font-weight: var(--od-fw-strong); height: 22px; min-width: 22px; padding: 0 6px; place-items: center; }
.od-lost header small { font-size: var(--od-fs-xs); margin-inline-start: auto; }
.od-lost__list { display: flex; flex-wrap: wrap; gap: 6px; }
.od-lost__list:empty { display: none; }
.od-lost-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; font-size: var(--od-fs-sm); color: var(--od-muted); background: var(--od-surface); border-radius: var(--od-r-pill); box-shadow: var(--od-rim);
  text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--od-rose) 60%, transparent); }
.od-lost-chip small { font-weight: var(--od-fw-body); text-decoration: none; }

/* sign-in */
.od-signin { background: var(--od-bg); display: grid; grid-template-columns: 1.1fr 1fr; inset: 0; position: fixed; z-index: 70; }
.od-signin__art { align-items: flex-end; background: var(--od-side); border-radius: 30px; color: var(--od-on-side); display: flex; margin: 14px; overflow: hidden; padding: 44px; position: relative; }
.od-signin__orb { background: radial-gradient(circle at 40% 40%, var(--od-orb-a), transparent 62%); border-radius: 50%; height: 60vmin; inset-inline-start: -10vmin; position: absolute; top: -14vmin; width: 60vmin; }
.od-signin__orb--2 { background: radial-gradient(circle, var(--od-orb-b), transparent 62%); inset-inline: auto -18vmin; top: 22%; }
.od-signin__quote { font-size: clamp(var(--od-fs-2xl), 2vw, var(--od-fs-4xl)); font-weight: var(--od-fw-ui); letter-spacing: var(--od-track-head); line-height: 1.3; max-width: 26ch; position: relative; }
.od-signin__quote small { color: var(--od-side-dim); display: block; font-size: var(--od-fs-md); font-weight: var(--od-fw-ui); letter-spacing: 0; margin-top: 14px; }
.od-signin__card { display: grid; gap: 14px; padding: 8px; place-self: center; width: min(400px, 100vw - 32px); }
.od-signin__card h1 { font-size: var(--od-fs-4xl); font-weight: var(--od-fw-strong); letter-spacing: var(--od-track-title); line-height: 1.05; }

/* ===== responsive: rail. Collapsed by choice (.is-rail) at >=1280, forced at 761-1279 (the same rules, written twice because media queries cannot share a selector) ===== */
@media (min-width: 1280px) {
  .od.is-rail { --od-side-w: 76px; }
  .od.is-rail .od-side { padding: 14px 10px 12px; }
  .od.is-rail .od-side__top { border-bottom: 0; flex-direction: column; padding: 2px 0 12px; }
  .od.is-rail .od-brand { flex: none; justify-content: center; }
  .od.is-rail :is(.od-brand__text, .od-nav__label, .od-nav__item > span, .od-nav__count, .od-nav__chev, .od-nav__sub, .od-goal, .od-side .od-me > span:not(.od-av), .od-side .od-me > .od-ic) { display: none !important; }
  .od.is-rail .od-side .od-me { justify-content: center; padding: 0; }
  .od.is-rail .od-nav__pill::before { inset-inline-start: -10px; }
  .od.is-rail .od-nav__item { height: 48px; justify-content: center; padding: 0; }
  .od.is-rail .od-nav__pill { height: 48px; }
  .od.is-rail .od-nav__label--2 { background: var(--od-side-sep); display: block !important; font-size: 0; height: 1px; margin: 10px 14px; padding: 0; }
  .od.is-rail .od-nav__item:has(.od-nav__count:not(:empty))::after { background: var(--od-live); border-radius: 50%; box-shadow: 0 0 0 2px var(--od-side); content: ""; height: 8px; inset-inline-start: calc(50% + 6px); position: absolute; top: 11px; width: 8px; }
  .od.is-rail .od-side__rail .od-ic { transform: scaleX(-1); }
  .od.is-rail .od-find { flex: none; justify-content: center; padding: 0; width: var(--od-h-top); }
  .od.is-rail .od-find span, .od.is-rail .od-find .od-kbd { display: none; }
}
@media (min-width: 761px) and (max-width: 1279px) {
  .od { --od-side-w: 76px; }
  .od .od-side { padding: 14px 10px 12px; }
  .od .od-side__top { border-bottom: 0; flex-direction: column; padding: 2px 0 12px; }
  .od .od-brand { flex: none; justify-content: center; }
  .od :is(.od-brand__text, .od-nav__label, .od-nav__item > span, .od-nav__count, .od-nav__chev, .od-nav__sub, .od-goal, .od-side .od-me > span:not(.od-av), .od-side .od-me > .od-ic) { display: none !important; }
  .od .od-side .od-me { justify-content: center; padding: 0; }
  .od .od-nav__pill::before { inset-inline-start: -10px; }
  .od .od-nav__item { height: 48px; justify-content: center; padding: 0; }
  .od .od-nav__pill { height: 48px; }
  .od .od-nav__label--2 { background: var(--od-side-sep); display: block !important; font-size: 0; height: 1px; margin: 10px 14px; padding: 0; }
  .od .od-nav__item:has(.od-nav__count:not(:empty))::after { background: var(--od-live); border-radius: 50%; box-shadow: 0 0 0 2px var(--od-side); content: ""; height: 8px; inset-inline-start: calc(50% + 6px); position: absolute; top: 11px; width: 8px; }
  .od .od-side__rail .od-ic { transform: scaleX(-1); }
  .od .od-find { flex: none; justify-content: center; padding: 0; width: var(--od-h-top); }
  .od .od-find span, .od .od-find .od-kbd { display: none; }
  .od .od-side__rail { display: none; }
}

/* ===== responsive ===== */
@media (hover: none) {
  .od-nav__item:hover, .od-ibtn:hover, .od-btn--ghost:hover, .od-table tbody tr:hover td, .od-menu__item:hover, .od-pop__row:hover, .od-me:hover, .od-nav__sub a:hover { background: none; }
  .od-btn--ghost:hover { background: var(--od-surface); }
  .od-btn--primary:hover { filter: none; }
  .od-ibtn:active, .od-pop__row:active, .od-menu__item:active { background: var(--od-well); }
}
@media (max-width: 1279px) { .od-find { flex: none; justify-content: center; width: var(--od-h-top); padding: 0; } .od-find span, .od-find .od-kbd { display: none; } }
@media (max-width: 999px) { .od-clock { display: none; } .od-head__stats { gap: 12px; } .od-stat { padding: 14px; } }
@media (max-width: 760px) {
  .od { --od-gap: 12px; }
  .od-main { padding-block: 0 calc(var(--od-tabbar) + 28px + env(safe-area-inset-bottom)); padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); /* physical: safe-area insets are screen edges */ }
  .od-side { inset-block: auto 0; inset-inline: 0; width: auto; height: calc(var(--od-tabbar) + env(safe-area-inset-bottom)); flex-direction: row; align-items: flex-start; gap: 0; overflow: visible;
    padding-block: 6px env(safe-area-inset-bottom); padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); /* physical: safe-area insets are screen edges */
    background: var(--od-raised); color: var(--od-muted); border-radius: 0; box-shadow: var(--od-shadow-tabbar); }
  .od-side__top, .od-side__foot, .od-nav__label, .od-nav__sub, .od-nav__chev, .od-nav__count, .od-nav__pill { display: none !important; }
  .od-nav { flex: 1; }
  .od-nav__track { display: flex; gap: 0; }
  .od-nav__group { display: flex; flex: 1; }
  .od-nav__group[data-phone="hide"] { display: none; }
  .od-nav__more { display: flex; flex: 1; }
  .od-nav__item { border-radius: var(--od-r-tile); color: var(--od-muted); flex-direction: column; font-size: var(--od-fs-2xs); gap: 3px; height: 54px; justify-content: center; letter-spacing: 0; padding: 0; }
  .od-nav__item:hover { color: var(--od-text); background: none; }
  .od-nav__item > span { display: block; }
  .od-nav__item > .od-ic:first-child { border-radius: var(--od-r-pill); box-sizing: border-box; height: 30px; padding: 5px 16px; transition: background-color 0.25s var(--od-ease), color 0.25s; width: 52px; }
  .od-nav__item[aria-current="page"], .od-nav__more[aria-expanded="true"] { color: var(--od-text); }
  .od-nav__item[aria-current="page"] > .od-ic:first-child, .od-nav__more[aria-expanded="true"] > .od-ic:first-child { background: var(--od-primary-soft); color: var(--od-primary); }
  .od-nav__item:has(.od-nav__count:not(:empty))::after { background: var(--od-live); border-radius: 50%; box-shadow: 0 0 0 2px var(--od-raised); content: ""; height: 8px; inset-inline-start: calc(50% + 9px); position: absolute; top: 7px; width: 8px; }
  .od-top { background: var(--od-bg); gap: 6px; margin-block: 0 14px; margin-left: calc(-1 * max(14px, env(safe-area-inset-left))); margin-right: calc(-1 * max(14px, env(safe-area-inset-right))); min-height: 60px; padding-block: calc(8px + env(safe-area-inset-top)) 8px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); position: sticky; top: 0; transition: box-shadow 0.25s; z-index: 25; /* physical: safe-area insets are screen edges */ }
  .od.is-scrolled .od-top { box-shadow: 0 1px 0 var(--od-line); }
  .od-top__brand { align-items: center; display: flex; font-size: var(--od-fs-2xl); font-weight: var(--od-fw-strong); gap: 9px; letter-spacing: var(--od-track-title); margin-inline-end: auto; }
  .od-top__brand .od-brand__mark { border-radius: 11px; height: 34px; width: 34px; }
  .od-top__brand .od-brand__mark svg { width: 19px; height: 19px; }
  .od-top__where, .od-top__spacer, .od-clock, .od-theme-btn { display: none; }
  .od-top__tools { gap: 4px; }
  .od-find, .od-ibtn--top { width: 42px; height: 42px; background: none; border: 0; border-radius: 13px; box-shadow: none; }
  .od-find:active, .od-ibtn--top:active { background: var(--od-well); }
  .od-badge-dot { box-shadow: 0 0 0 2px var(--od-bg); inset-inline-end: 9px; top: 9px; }
  .od-top__new span { display: none; }
  .od-top__new { border-radius: 13px; height: 42px; margin-inline-start: 4px; padding: 0; width: 42px; }
  .od-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .od-head__actions { justify-content: flex-start; width: 100%; }
  .od-head__actions > .od-btn { flex: 1 1 0; min-width: 0; }
  .od-head__actions > .od-btn--ghost:has(+ .od-btn--primary) { flex: none; }
  .od-head__stats { gap: 10px; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .od-head__stats > .od-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .od-stat { gap: 4px; padding: 12px 13px; border-radius: 18px; }
  .od-stat__label { line-height: 1.25; }
  .od-stat__ico { display: none; }
  .od-stat__value { font-size: 18px; }
  .od-head__title { font-size: var(--od-fs-4xl); }
  .od-card { padding: 16px; border-radius: var(--od-r-card); }
  .od-card__head { flex-wrap: wrap; row-gap: 8px; }
  .od-card__tools { max-width: 100%; }
  .od-card__tools > .od-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .od-mform__grid { grid-template-columns: 1fr; }
  .od-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .od-kpis__bar { display: none; }
  .od-kpi[aria-pressed="true"] { background: var(--od-kpi-bar); box-shadow: var(--od-shadow-kpi); }
  .od-kpi { padding: 10px; } .od-kpi__value { font-size: 18px; } .od-kpi__label .od-kpi__ico { display: none; }
  .od-toast { bottom: calc(var(--od-tabbar) + 14px + env(safe-area-inset-bottom)); }
  .od :where(input, select, textarea), .od-search input { font-size: var(--od-fs-input-touch); }
  .od-modal { border-bottom: 0; border-radius: var(--od-r-sheet) var(--od-r-sheet) 0 0; margin: auto 0 0; max-height: 92dvh; max-width: none; width: 100%; }
  .od-mform { display: flex; flex-direction: column; max-height: 92dvh; padding: 0; }
  .od-mform__head { border-bottom: 1px solid var(--od-line); flex: none; margin: 0; padding: 20px 18px 14px; }
  .od-mform__grid { flex: auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 4px; }
  .od-mform__err { flex: none; margin-top: 6px; padding: 0 18px; } .od-mform__err:empty { min-height: 0; margin: 0; }
  .od-mform__foot { background: inherit; border-top: 1px solid var(--od-line); flex: none; margin: 0; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
  .od-mform__foot .od-btn { flex: 1; }
  .od-drawer { border-radius: var(--od-r-sheet) var(--od-r-sheet) 0 0; inset-block: auto 0; inset-inline: 0; margin: 0; max-height: 88dvh; max-width: none; width: 100%; }
  .od-drawer__inner { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .od-drawer::before, .od-modal::before { background: var(--od-line-2); border-radius: 2px; content: ""; height: 4px; inset-inline: 0; margin: 0 auto; position: absolute; top: 8px; width: 40px; z-index: 3; }
  .od-signin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .od-signin__art { border-radius: 24px; margin: 10px 10px 0; min-height: 150px; padding: 24px; }
  .od-signin__quote { font-size: var(--od-fs-xl); }
  .od-signin__card { align-self: start; padding-top: 20px; }
  .od-tabs, .od-chips { -webkit-mask-image: linear-gradient(90deg, currentColor calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, currentColor calc(100% - 28px), transparent); }
  .od-chips { flex-wrap: nowrap; overflow-x: auto; padding-inline-end: 24px; scrollbar-width: none; }
  .od-hide-sm { display: none !important; }
  .od-fun__step { gap: 8px; grid-template-columns: 92px minmax(0, 1fr) 62px; }
  .od-pipe__board { grid-template-columns: repeat(5, 82%); margin-block: 0; margin-left: calc(-1 * max(14px, env(safe-area-inset-left))); margin-right: calc(-1 * max(14px, env(safe-area-inset-right))); padding: 0 14px 6px; scroll-padding: 0 14px; scroll-snap-type: x mandatory; /* physical: safe-area insets are screen edges */ }
  .od-pc { min-height: 240px; scroll-snap-align: start; }
  .od-lost header small { display: none; }
}
@media (max-width: 380px) { .od-nav__item { font-size: 10.5px; } .od-nav__item > .od-ic:first-child { width: 46px; padding: 5px 13px; } .od-head__stats { gap: 8px; } }
@media (max-height: 640px) and (min-width: 761px) { .od-side { padding-top: 10px; padding-bottom: 10px; } .od-side__top { padding-bottom: 6px; } .od-nav__item, .od-nav__pill { height: 38px; } .od-nav__sub a { height: 30px; } .od-goal { display: none; } .od-side .od-me { height: 44px; } }
@media (pointer: coarse) {
  .od :where(input, select, textarea), .od-search input { font-size: var(--od-fs-input-touch); }
  .od-ibtn, .od-ibtn--sm { height: var(--od-tap); width: var(--od-tap); }
  .od-check { width: 24px; height: 24px; }
  .od-seg__btn { min-width: var(--od-tap); padding: 12px 14px; }
  .od-chip:is(button, a) { min-height: var(--od-tap); padding: 0 15px; }
  .od-btn--sm, .od-btn--xs { height: var(--od-tap); padding: 0 16px; }
  .od-menu__item, .od-pop__row, .od-table th button { min-height: var(--od-tap); }
  .od-tabs__tab { height: 48px; }
  .od-switch::before { content: ""; inset: -9px -2px; position: absolute; }
  .od-stars button { padding: 8px; }
}
.od-spin { width: 13px; height: 13px; border: 2px solid; border-inline-end-color: transparent; border-radius: 50%; animation: od-spin 0.7s linear infinite; }
@keyframes od-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .od *, .od *::before, .od *::after { transition-duration: 0s !important; animation-duration: 0s !important; } .od-spin { animation: none; } }
.od.od-reduced *, .od.od-reduced *::before, .od.od-reduced *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
