/*! Cadra — the ERP for a small bicycle maker — © 2026 Hasib (OVERSHOOT). All rights reserved. Licensed, not sold: see LICENSE.md. */
:root {
  --font:
    "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 12.5px;
  --fs-md: 13.5px;
  --fs-base: 14px;
  --fs-lg: 15px;
  --fs-xl: 17px;
  --fs-2xl: 20px;
  --fs-3xl: 22px;
  --fs-4xl: 26px;
  --fs-display: 34px;
  --bg: #efefec;
  --mesh-a: #fbfbf9;
  --mesh-b: #dfdfdb;
  --mesh-c: #f7f7f4;
  --glass: #ffffff8f;
  --glass-2: #ffffffb3;
  --glass-3: #ffffffe0;
  --rim: #fffc;
  --surface: #f8f8f6;
  --surface-2: #ffffff94;
  --raised: #fcfcfb;
  --well: #1111110f;
  --line: #11111117;
  --line-2: #11111129;
  --shadow: 0 1px 0 #ffffffb3 inset, 0 24px 48px -30px #00000038;
  --shadow-pop: 0 24px 60px -18px #00000047, 0 2px 6px #00000012;
  --text: #111;
  --muted: #5c5c5a;
  --faint: #73736f;
  --ink: #111;
  --on-ink: #f7f7f5;
  --primary: var(--ink);
  --on-primary: var(--on-ink);
  --primary-ink: #111;
  --dock: #111;
  --on-dock: #f7f7f5;
  --accent: #dcdcd8;
  --on-accent: #111;
  --dot: #f7f7f5;
  --iris: #2b2b2a;
  --coral: #c9542b;
  --amber: #a87406;
  --teal: #2a7f4d;
  --sky: #2d6cb0;
  --rose: #c43f4c;
  --lime: #6f8f1c;
  --slate: #637083;
  --plum: #8f6243;
  --good: #237a48;
  --warn: #8f6000;
  --bad: #bf3644;
  --soft: 14%;
  --r-card: 24px;
  --r-tile: 16px;
  --r-ctl: 999px;
  --gap: 16px;
  --dock-x: 20px;
  --dock-w: 60px;
  --gutter: clamp(16px, 1.6vw, 28px);
  --app-max: 1840px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0b;
  --mesh-a: #ffffff0f;
  --mesh-b: #ffffff09;
  --mesh-c: #ffffff0a;
  --glass: #ffffff0b;
  --glass-2: #ffffff14;
  --glass-3: #222;
  --rim: #ffffff12;
  --surface: #151515;
  --surface-2: #ffffff0a;
  --raised: #1c1c1c;
  --well: #ffffff0f;
  --line: #ffffff14;
  --line-2: #ffffff26;
  --shadow: 0 1px 0 #ffffff0d inset, 0 24px 48px -30px #000000b3;
  --shadow-pop: 0 24px 60px -18px #000000bf, 0 0 0 1px #ffffff14;
  --text: #f2f2f0;
  --muted: #a8a8a5;
  --faint: #8a8a86;
  --ink: #f2f2f0;
  --on-ink: #111;
  --primary-ink: #f2f2f0;
  --dock: #ffffff14;
  --on-dock: #f2f2f0;
  --accent: #2c2c2b;
  --on-accent: #f2f2f0;
  --dot: #f2f2f0;
  --iris: #d6d6d3;
  --coral: #f08a5d;
  --amber: #e2ad45;
  --teal: #5cc58b;
  --sky: #6aa6e8;
  --rose: #ef7b87;
  --lime: #a8c75a;
  --slate: #9eabbb;
  --plum: #d2a07c;
  --good: #5cc58b;
  --warn: #e2ad45;
  --bad: #ef7b87;
  --soft: 20%;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}
:root[data-accent="ocean"]:not([data-theme="dark"]) {
  --accent: #bcd4f2;
  --on-accent: #0f1f33;
  --iris: #2563a8;
  --primary-ink: #1d4f87;
  --dot: #9cc3f3;
}
:root[data-accent="ocean"][data-theme="dark"] {
  --accent: #24476e;
  --on-accent: #eef5fc;
  --iris: #6aa6e8;
  --primary-ink: #9cc3f3;
  --dot: #6aa6e8;
}
:root[data-accent="sage"]:not([data-theme="dark"]) {
  --accent: #b9dfcf;
  --on-accent: #0f2a20;
  --iris: #23795a;
  --primary-ink: #1b6048;
  --dot: #9fdcc2;
}
:root[data-accent="sage"][data-theme="dark"] {
  --accent: #24584a;
  --on-accent: #eefaf5;
  --iris: #5cc5a0;
  --primary-ink: #8fdcc0;
  --dot: #5cc5a0;
}
:root[data-accent="coral"]:not([data-theme="dark"]) {
  --accent: #f4c6bb;
  --on-accent: #3a1610;
  --iris: #b8482a;
  --primary-ink: #9c3b20;
  --dot: #f4a58f;
}
:root[data-accent="coral"][data-theme="dark"] {
  --accent: #7a3527;
  --on-accent: #fff2ee;
  --iris: #f08a6a;
  --primary-ink: #f6ad96;
  --dot: #f08a6a;
}
:root[data-accent="amber"]:not([data-theme="dark"]) {
  --accent: #f1dc9f;
  --on-accent: #2e2205;
  --iris: #976806;
  --primary-ink: #7d5600;
  --dot: #f0cf6e;
}
:root[data-accent="amber"][data-theme="dark"] {
  --accent: #6b4f12;
  --on-accent: #fff8e6;
  --iris: #e2ad45;
  --primary-ink: #ecc570;
  --dot: #e2ad45;
}
*,
:before,
:after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100dvh;
  color: var(--text);
  background: var(--bg);
  font: 500 var(--fs-base)/1.45 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  margin: 0;
  overflow-x: hidden;
}
img,
svg {
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p,
dl,
dd,
ul,
ol {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
[hidden] {
  display: none !important;
}
.num,
b[data-count],
.tnum,
td,
.code {
  font-variant-numeric: tabular-nums;
}
small {
  font-size: var(--fs-xs);
}
.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  width: 18px;
  height: 18px;
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.sr {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}
.skip {
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 12px;
  padding: 10px 16px;
  position: fixed;
  top: -60px;
  left: 12px;
}
.skip:focus {
  top: 12px;
}
::selection {
  background: var(--ink);
  color: var(--on-ink);
}
mark {
  background: color-mix(in srgb, var(--amber) 40%, transparent);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
.muted {
  color: var(--muted);
}
.code {
  font: 600 var(--fs-sm) var(--font);
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}
.mesh {
  z-index: -1;
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.mesh i {
  filter: blur(60px);
  opacity: 0.95;
  will-change: transform;
  border-radius: 50%;
  position: absolute;
}
.mesh__a {
  background: radial-gradient(closest-side, var(--mesh-a), transparent);
  width: 62vmax;
  height: 62vmax;
  top: -24vmax;
  left: -18vmax;
}
.mesh__b {
  background: radial-gradient(closest-side, var(--mesh-b), transparent);
  width: 70vmax;
  height: 70vmax;
  bottom: -30vmax;
  right: -24vmax;
}
.mesh__c {
  background: radial-gradient(closest-side, var(--mesh-c), transparent);
  width: 46vmax;
  height: 46vmax;
  top: -16vmax;
  right: 8vmax;
}
html.js:not(.failsafe) .app {
  visibility: hidden;
}
html.js.is-ready .app {
  visibility: visible;
}
.app {
  max-width: var(--app-max);
  padding: 20px var(--gutter) 56px
    calc(var(--dock-x) + var(--dock-w) + var(--gutter));
  margin: 0 auto;
  overflow-x: clip;
}
.top {
  z-index: 30;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  display: grid;
  position: relative;
}
.brand {
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
}
.brand__mark {
  background: var(--ink);
  width: 42px;
  height: 42px;
  color: var(--on-ink);
  border-radius: 14px;
  flex: none;
  place-items: center;
  display: grid;
}
.brand__mark svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 26px;
  height: 26px;
}
.brand__text {
  min-width: 0;
  line-height: 1.1;
  display: grid;
}
.brand__text b {
  letter-spacing: -0.02em;
  font-size: 21px;
  font-weight: 700;
}
.brand__text small {
  font-size: var(--fs-2xs);
  color: var(--muted);
  white-space: nowrap;
  font-weight: 600;
}
.ttabs {
  scrollbar-width: none;
  border-radius: 999px;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
.ttabs::-webkit-scrollbar {
  display: none;
}
.ttabs__track {
  background: var(--glass);
  width: max-content;
  box-shadow: inset 0 0 0 1px var(--rim);
  border-radius: 999px;
  gap: 2px;
  padding: 4px;
  display: flex;
  position: relative;
}
.ttab {
  z-index: 1;
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-md);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 10px 17px;
  display: inline-flex;
  position: relative;
}
.ttab:hover {
  background: var(--well);
}
.ttab[aria-current="page"]:hover {
  background: 0 0;
}
.ttabs__pill {
  z-index: 2;
  background: var(--ink);
  pointer-events: none;
  opacity: 0;
  gap: 2px;
  padding: 4px;
  display: flex;
  position: absolute;
  inset: 0;
}
.ttabs__pill .ttab {
  color: var(--on-ink);
}
.ttab__n {
  background: var(--coral);
  color: #fff;
  min-width: 18px;
  height: 18px;
  font-size: var(--fs-2xs);
  border-radius: 999px;
  place-items: center;
  padding: 0 5px;
  font-weight: 700;
  line-height: 1;
  display: grid;
}
:root[data-theme="dark"] .ttab__n {
  color: #2a0d04;
}
.ttab__n:empty {
  display: none;
}
.top__tools {
  align-items: center;
  gap: 10px;
  display: flex;
}
.me {
  background: var(--glass-2);
  border: 1px solid var(--rim);
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 2px;
  display: grid;
}
.me .av {
  width: 38px;
  height: 38px;
}
.dot-badge {
  background: var(--coral);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 2px var(--bg);
  border-radius: 50%;
  position: absolute;
  top: 9px;
  right: 10px;
}
.dock {
  z-index: 46;
  left: max(var(--dock-x), calc((100vw - var(--app-max)) / 2 + var(--dock-x)));
  background: var(--dock);
  height: fit-content;
  color: var(--on-dock);
  border-radius: 999px;
  flex-direction: column;
  gap: 4px;
  margin: auto 0;
  padding: 8px;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  box-shadow: 0 20px 40px -18px #0a141e73;
}
:root[data-theme="dark"] .dock {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
}
.dock__btn {
  width: 44px;
  height: 44px;
  color: inherit;
  opacity: 0.74;
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: relative;
}
.dock__btn:hover,
.dock__btn:focus-visible,
.dock__btn[aria-expanded="true"],
.dock__btn[aria-current="page"] {
  opacity: 1;
  background: #ffffff21;
}
.dock__btn:focus-visible {
  outline-color: var(--on-dock);
}
.dock__btn[aria-current="page"]:after {
  content: "";
  background: var(--dot);
  border-radius: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  position: absolute;
  top: 50%;
  right: 3px;
}
.dock__sep {
  background: #ffffff29;
  flex: none;
  height: 1px;
  margin: 4px 10px;
}
.dock__tip {
  background: var(--raised);
  height: fit-content;
  color: var(--text);
  box-shadow: var(--shadow-pop);
  font-size: var(--fs-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s var(--ease);
  border-radius: 10px;
  margin: auto 0;
  padding: 6px 10px;
  font-weight: 600;
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% + 14px);
}
.dock__tip kbd {
  font-size: var(--fs-2xs);
  margin-left: 4px;
  padding: 1px 5px;
}
.dock__btn:hover .dock__tip,
.dock__btn:focus-visible .dock__tip {
  opacity: 1;
}
.dock__btn[aria-expanded="true"] .dock__tip {
  opacity: 0;
}
.phead {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 28px;
  margin-bottom: 20px;
  display: flex;
}
.phead__lead {
  min-width: 0;
}
.top__title {
  letter-spacing: -0.025em;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-bottom: 0.06em;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.04;
  overflow: hidden;
}
.top__title:focus {
  outline: none;
}
.top__title .word {
  vertical-align: top;
  margin-bottom: -0.12em;
  padding-bottom: 0.12em;
  display: inline-block;
  overflow: hidden;
}
.top__title .ch {
  display: inline-block;
}
.crumbs {
  font-size: var(--fs-sm);
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: 600;
  display: flex;
  overflow: hidden;
}
.crumbs a {
  align-items: center;
  min-height: 24px;
  display: inline-flex;
}
.crumbs a:hover {
  color: var(--text);
}
.crumbs .ico {
  opacity: 0.6;
  width: 14px;
  height: 14px;
}
.crumbs [aria-current] {
  color: var(--primary-ink);
}
.subnav {
  scrollbar-width: none;
  border-radius: 999px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
.subnav::-webkit-scrollbar {
  display: none;
}
.subnav__track {
  background: var(--glass);
  width: max-content;
  box-shadow:
    inset 0 0 0 1px var(--rim),
    0 14px 30px -22px #1e3c4659;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-radius: 999px;
  gap: 2px;
  padding: 4px;
  display: flex;
  position: relative;
}
.subnav__pill {
  z-index: 0;
  background: var(--glass-3);
  box-shadow: inset 0 0 0 1px var(--rim);
  pointer-events: none;
  opacity: 0;
  position: absolute;
  inset: 0;
}
:root[data-theme="dark"] .subnav__pill {
  background: #ffffff24;
}
.subnav__tab {
  z-index: 1;
  min-height: 40px;
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--muted);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 13px;
  display: inline-flex;
  position: relative;
}
.subnav__tab .ico {
  width: 17px;
  height: 17px;
}
.subnav__tab:hover,
.subnav__tab[aria-current="page"] {
  color: var(--text);
}
.shift {
  background: var(--glass);
  border: 1px solid var(--rim);
  min-height: 48px;
  box-shadow: var(--shadow);
  font-size: var(--fs-sm);
  border-radius: 999px;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 6px 16px 6px 12px;
  display: flex;
}
.shift:hover {
  background: var(--glass-2);
}
.shift__clock {
  border-right: 1px solid var(--line);
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  font-weight: 700;
  display: inline-flex;
}
.shift__clock i {
  background: var(--good);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 20%, transparent);
  border-radius: 50%;
}
.shift__txt {
  white-space: nowrap;
  line-height: 1.25;
  display: grid;
}
.shift__txt b {
  font-weight: 600;
}
.shift__txt small {
  color: var(--muted);
  font-size: var(--fs-xs);
}
.shift .meter {
  width: 72px;
  min-width: 0;
  height: 6px;
}
.shift .meter__fill {
  background: var(--coral);
}
.main,
.view {
  min-width: 0;
  position: relative;
}
.pbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 18px;
  display: flex;
}
.pbar__actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  display: flex;
}
.tabs {
  min-width: 0;
  max-width: 100%;
}
.tabs__track {
  background: var(--well);
  scrollbar-width: none;
  vertical-align: top;
  border-radius: 999px;
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  display: inline-flex;
  position: relative;
  overflow-x: auto;
}
.tabs__track::-webkit-scrollbar {
  display: none;
}
.tabs__tab {
  z-index: 1;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--muted);
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 15px;
  position: relative;
}
.tabs__tab:hover,
.tabs__tab[aria-current="page"] {
  color: var(--text);
}
.tabs__line {
  z-index: 0;
  background: var(--raised);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: 0 2px 10px #1722301f;
}
:root[data-theme="dark"] .tabs__line {
  background: #ffffff21;
}
.kpis {
  gap: var(--gap);
  margin-bottom: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  display: grid;
}
.stat {
  border-radius: var(--r-card);
  background: var(--glass);
  border: 1px solid var(--rim);
  box-shadow: var(--shadow);
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px;
  display: grid;
}
.stat__label {
  color: var(--muted);
  font-size: var(--fs-sm);
  align-items: center;
  gap: 10px;
  font-weight: 600;
  display: flex;
}
.stat__ico {
  background: var(--glass-2);
  border: 1px solid var(--rim);
  width: 34px;
  height: 34px;
  color: var(--text);
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}
.stat__ico .ico {
  width: 17px;
  height: 17px;
}
.stat__value {
  font-size: var(--fs-3xl);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-weight: 600;
  line-height: 1.15;
  display: flex;
}
.stat__value:before {
  content: "";
  flex-basis: 100%;
  order: 1;
}
.stat__value > .badge {
  letter-spacing: 0;
  order: 2;
  margin-top: 2px;
}
.stat__suffix {
  font-size: var(--fs-md);
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 600;
}
:is(.kpis, .tiles) > .stat:first-child {
  --tile: var(--ink);
  --on: var(--on-ink);
  --hi: var(--on-ink);
}
:root[data-accent]:not([data-accent="mono"])
  :is(.kpis, .tiles)
  > .stat:first-child {
  --hi: var(--accent);
}
:root[data-accent]:not([data-accent="mono"])[data-theme="dark"]
  :is(.kpis, .tiles)
  > .stat:first-child {
  --hi: var(--on-ink);
}
:is(.kpis, .tiles) > .stat:nth-child(2) {
  --tile: var(--accent);
  --on: var(--on-accent);
  --hi: var(--on-accent);
}
:is(.kpis, .tiles) > .stat:is(:first-child, :nth-child(2)) {
  background: var(--tile);
  color: var(--on);
  --text: var(--on);
  --muted: color-mix(in srgb, var(--on) 76%, transparent);
  --faint: color-mix(in srgb, var(--on) 62%, transparent);
  --primary-ink: var(--on);
  --well: color-mix(in srgb, var(--on) 13%, transparent);
  --line: color-mix(in srgb, var(--on) 16%, transparent);
  --glass-2: color-mix(in srgb, var(--on) 12%, transparent);
  --rim: transparent;
  --surface: var(--tile);
  --iris: var(--hi);
  --good: var(--on);
  --warn: var(--on);
  --bad: var(--on);
  --amber: var(--on);
  --rose: var(--on);
  --coral: var(--hi);
  --teal: var(--on);
  border-color: #0000;
}
:is(.kpis, .tiles)
  > .stat:is(:first-child, :nth-child(2))
  :is(.stat__value, .stat__ico) {
  color: var(--on);
}
:is(.kpis, .tiles) > .stat:is(:first-child, :nth-child(2)) .stat__ico {
  background: color-mix(in srgb, var(--on) 13%, transparent);
}
:is(.kpis, .tiles) > .stat:is(:first-child, :nth-child(2)) .spark path {
  stroke: var(--hi);
}
.badge {
  font-size: var(--fs-2xs);
  letter-spacing: 0;
  white-space: nowrap;
  border-radius: 999px;
  align-self: center;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-weight: 700;
  display: inline-flex;
}
.badge--good {
  background: color-mix(in srgb, var(--good) var(--soft), transparent);
  color: var(--good);
}
.badge--warn {
  background: color-mix(in srgb, var(--amber) 20%, transparent);
  color: var(--warn);
}
.badge--bad {
  background: color-mix(in srgb, var(--rose) var(--soft), transparent);
  color: var(--bad);
}
.badge--plain {
  background: var(--well);
  color: var(--muted);
}
.is-flash {
  animation: flash 0.9s var(--ease);
}
@keyframes flash {
  0% {
    color: var(--coral);
  }
  to {
    color: inherit;
  }
}
.float-up {
  z-index: 90;
  pointer-events: none;
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--good);
  position: fixed;
}
.grid {
  gap: var(--gap);
  display: grid;
}
.card {
  border-radius: var(--r-card);
  background: var(--glass);
  border: 1px solid var(--rim);
  min-width: 0;
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
}
.card__head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  margin-bottom: 14px;
  display: flex;
}
.card__title {
  overflow-wrap: anywhere;
  font-size: var(--fs-lg);
  letter-spacing: -0.005em;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 600;
  display: flex;
}
.card__title > .ico {
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--text);
  background: var(--glass-2);
  border: 1px solid var(--rim);
  border-radius: 50%;
  padding: 8px;
}
.card__sub {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.card__tools {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}
.card.is-focus {
  z-index: 60;
  background: var(--raised);
  max-height: 84vh;
  box-shadow: var(--shadow-pop);
  position: fixed;
  inset: 8vh max(4vw, 50vw - 590px) auto;
  overflow: auto;
}
.card-ph {
  border-radius: var(--r-card);
  border: 1.5px dashed var(--line-2);
}
.scrim {
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  background: #101a224d;
  position: fixed;
  inset: 0;
}
:root[data-theme="dark"] .scrim {
  background: #0009;
}
.ibtn {
  border: 1px solid var(--line-2);
  width: 40px;
  height: 40px;
  color: var(--text);
  background: 0 0;
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: inline-grid;
  position: relative;
}
.ibtn:hover {
  background: var(--well);
}
.ibtn--glass {
  background: var(--glass-2);
  border-color: var(--rim);
  width: 44px;
  height: 44px;
}
.ibtn--glass:hover {
  background: var(--glass-3);
}
.ibtn--sm {
  width: 32px;
  height: 32px;
}
.ibtn--sm .ico {
  width: 16px;
  height: 16px;
}
.ibtn--plain {
  border-color: #0000;
}
.ibtn[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
  border-color: #0000;
}
.ibtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn {
  height: 42px;
  font-weight: 600;
  font-size: var(--fs-md);
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  display: inline-flex;
}
.btn .ico {
  width: 17px;
  height: 17px;
}
.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn--primary:hover {
  filter: brightness(1.18);
}
:root[data-theme="dark"] .btn--primary:hover {
  filter: brightness(0.94);
}
.btn--dark {
  background: var(--text);
  color: var(--bg);
}
.btn--good {
  background: var(--good);
  color: #fff;
}
:root[data-theme="dark"] .btn--good {
  color: #04200f;
}
.btn--ghost {
  border-color: var(--line-2);
  background: var(--glass);
}
.btn--ghost:hover {
  background: var(--glass-2);
}
.btn--soft {
  background: color-mix(in srgb, var(--iris) var(--soft), transparent);
  color: var(--primary-ink);
}
.btn--soft:hover {
  background: color-mix(in srgb, var(--iris) 22%, transparent);
}
.btn--danger {
  background: var(--bad);
  color: #fff;
}
.btn--sm {
  height: 36px;
  font-size: var(--fs-sm);
  padding: 0 14px;
}
.btn--xs {
  height: 30px;
  font-size: var(--fs-xs);
  gap: 6px;
  padding: 0 11px;
}
.btn--xs .ico {
  width: 14px;
  height: 14px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.seg {
  background: var(--well);
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  position: relative;
}
.seg__pill {
  background: var(--raised);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: 0 2px 8px #1020221f;
}
:root[data-theme="dark"] .seg__pill {
  background: #ffffff21;
}
.seg__btn {
  z-index: 1;
  font-size: var(--fs-sm);
  color: var(--muted);
  white-space: nowrap;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 600;
  position: relative;
}
.seg__btn[aria-pressed="true"] {
  color: var(--text);
}
.input,
.search {
  border: 1px solid var(--line-2);
  background: var(--glass-2);
  border-radius: 999px;
  outline: none;
  min-width: 0;
  height: 42px;
  padding: 0 16px;
}
.input:focus,
.search:focus-within {
  border-color: var(--text);
}
.search {
  color: var(--muted);
  align-items: center;
  gap: 8px;
  display: inline-flex;
}
.search input {
  width: 100%;
  height: 100%;
  color: var(--text);
  background: 0 0;
  border: 0;
  outline: none;
}
select.input {
  padding-right: 34px;
}
textarea.input {
  border-radius: 16px;
}
.toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  display: flex;
}
.toolbar__spacer {
  flex: 1;
}
.chips {
  scrollbar-width: none;
  gap: 8px;
  display: flex;
  overflow-x: auto;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  background: var(--glass-2);
  border: 1px solid var(--line);
  height: 34px;
  font-size: var(--fs-sm);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  font-weight: 600;
  display: inline-flex;
}
.chip:hover {
  border-color: var(--line-2);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
  border-color: #0000;
}
.chip b {
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
}
.spill {
  --c: var(--faint);
  background: color-mix(in srgb, var(--c) var(--soft), transparent);
  color: color-mix(in srgb, var(--c) 62%, var(--text));
  font-size: var(--fs-xs);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  font-weight: 700;
  display: inline-flex;
}
.spill i {
  background: var(--c);
  border-radius: 50%;
  flex: none;
  width: 7px;
  height: 7px;
}
.tag {
  --c: var(--faint);
  height: 24px;
  font-size: var(--fs-xs);
  white-space: nowrap;
  background: color-mix(in srgb, var(--c) var(--soft), transparent);
  color: color-mix(in srgb, var(--c) 62%, var(--text));
  border-radius: 7px;
  align-items: center;
  padding: 0 9px;
  font-weight: 700;
  display: inline-flex;
}
.spill--iris,
.tag--iris {
  --c: var(--iris);
}
.spill--coral,
.tag--coral {
  --c: var(--coral);
}
.spill--amber,
.tag--amber {
  --c: var(--amber);
}
.spill--teal,
.tag--teal {
  --c: var(--teal);
}
.spill--sky,
.tag--sky {
  --c: var(--sky);
}
.spill--rose,
.tag--rose {
  --c: var(--rose);
}
.spill--lime,
.tag--lime {
  --c: var(--lime);
}
.spill--slate,
.tag--slate {
  --c: var(--slate);
}
.spill--plum,
.tag--plum {
  --c: var(--plum);
}
.spill--faint,
.tag--faint {
  --c: var(--faint);
}
.dot {
  border-radius: 50%;
  flex: none;
  width: 8px;
  height: 8px;
  display: inline-block;
}
.dot--iris,
.tone--iris {
  background: var(--iris);
}
.dot--coral,
.tone--coral {
  background: var(--coral);
}
.dot--amber,
.tone--amber {
  background: var(--amber);
}
.dot--teal,
.tone--teal {
  background: var(--teal);
}
.dot--sky,
.tone--sky {
  background: var(--sky);
}
.dot--rose,
.tone--rose {
  background: var(--rose);
}
.dot--lime,
.tone--lime {
  background: var(--lime);
}
.dot--slate,
.tone--slate {
  background: var(--slate);
}
.dot--plum,
.tone--plum {
  background: var(--plum);
}
.dot--faint,
.tone--muted,
.tone--faint {
  background: var(--faint);
}
.av {
  letter-spacing: 0.02em;
  color: #142123;
  background: var(--well);
  -webkit-user-select: none;
  user-select: none;
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-weight: 600;
  display: inline-grid;
}
.av--xs {
  width: 24px;
  height: 24px;
  font-size: var(--fs-2xs);
}
.av--sm {
  width: 32px;
  height: 32px;
  font-size: var(--fs-2xs);
}
.av--md {
  width: 40px;
  height: 40px;
  font-size: var(--fs-sm);
}
.av--lg {
  width: 52px;
  height: 52px;
  font-size: var(--fs-lg);
}
.av--xl {
  width: 88px;
  height: 88px;
  font-size: var(--fs-4xl);
}
.av--t0 {
  background: #cfe6e3;
}
.av--t1 {
  background: #f7d6c6;
}
.av--t2 {
  background: #d5e9d8;
}
.av--t3 {
  background: #f3e2b5;
}
.av--t4 {
  background: #d3e1f1;
}
.av--t5 {
  background: #e8dccf;
}
.av--iris {
  background: #c6e3e0;
}
.av--coral {
  background: #f7cdb9;
}
.av--amber {
  background: #f3dfa6;
}
.av--teal {
  background: #cbe8d4;
}
.av--sky {
  background: #cadcf1;
}
.av--rose {
  background: #f4cbd0;
}
.av--lime {
  background: #dbe8bd;
}
.av--slate {
  background: #d8dde4;
}
.av--plum {
  background: #e9d6c8;
}
:root[data-theme="dark"] .av {
  filter: saturate(0.9) brightness(0.92);
}
.av-stack {
  display: inline-flex;
}
.av-stack .av {
  box-shadow: 0 0 0 2px var(--stack-ring, var(--surface));
}
.av-stack .av + .av {
  margin-left: -8px;
}
.meter {
  background: var(--well);
  border-radius: 999px;
  min-width: 40px;
  height: 8px;
  display: block;
  overflow: hidden;
}
.meter__fill {
  border-radius: inherit;
  background: var(--iris);
  transform-origin: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.meter__fill--coral {
  background: var(--coral);
}
.meter__fill--amber {
  background: var(--amber);
}
.meter__fill--teal {
  background: var(--teal);
}
.meter__fill--sky {
  background: var(--sky);
}
.meter__fill--rose {
  background: var(--rose);
}
.meter__fill--lime {
  background: var(--lime);
}
.meter__fill--slate {
  background: var(--slate);
}
.meter__fill--plum {
  background: var(--plum);
}
.meter__fill--good {
  background: var(--good);
}
.meter__fill--bad {
  background: var(--bad);
}
.table-wrap {
  margin: 0 -6px;
  overflow-x: auto;
}
.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: var(--fs-md);
}
.table th {
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--surface-2);
  padding: 10px 12px;
}
.table th:first-child {
  border-top-left-radius: 10px;
}
.table th:last-child {
  border-top-right-radius: 10px;
}
.table th button {
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  display: inline-flex;
}
.table th[aria-sort] button {
  color: var(--text);
}
.table td {
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  padding: 11px 12px;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr {
  transition: background-color 0.15s;
}
.table tbody tr:hover {
  background: color-mix(in srgb, var(--iris) 5%, transparent);
}
.table tbody tr[data-open] {
  cursor: pointer;
}
.table .r {
  text-align: right;
}
.cell-person {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}
.cell-person b {
  white-space: nowrap;
  font-weight: 700;
  display: block;
}
.cell-person small {
  color: var(--muted);
  font-size: var(--fs-sm);
  white-space: nowrap;
  display: block;
}
.empty {
  text-align: center;
  color: var(--muted);
  justify-items: center;
  gap: 6px;
  padding: 36px 16px;
  display: grid;
}
.empty .ico {
  opacity: 0.7;
  width: 28px;
  height: 28px;
}
.empty__title {
  color: var(--text);
  font-weight: 700;
}
.empty__text {
  font-size: var(--fs-md);
  max-width: 320px;
}
.note {
  font-size: var(--fs-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 12px;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  display: flex;
}
.note > .ico {
  color: var(--primary-ink);
  margin-top: 1px;
}
.note b {
  color: var(--text);
}
.note--warn {
  background: color-mix(in srgb, var(--amber) 11%, var(--surface));
  border-color: color-mix(in srgb, var(--amber) 30%, transparent);
}
.note--warn > .ico {
  color: var(--warn);
}
.note--bad {
  background: color-mix(in srgb, var(--rose) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--rose) 28%, transparent);
}
.note--bad > .ico {
  color: var(--bad);
}
.check {
  appearance: none;
  border: 1.5px solid var(--line-2);
  cursor: pointer;
  background: var(--surface);
  border-radius: 6px;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
  display: inline-grid;
}
.check:checked {
  background: var(--primary);
  border-color: #0000;
}
.check:checked:after {
  content: "";
  border-left: 2px solid var(--on-primary);
  border-bottom: 2px solid var(--on-primary);
  width: 10px;
  height: 5px;
  transform: rotate(-45deg) translate(1px, -1px);
}
.switch {
  background: var(--line-2);
  border-radius: 999px;
  flex: none;
  width: 44px;
  height: 26px;
  position: relative;
}
.switch:after {
  content: "";
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease);
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 3px #0003;
}
.switch[aria-checked="true"] {
  background: var(--primary);
}
.switch[aria-checked="true"]:after {
  transform: translate(18px);
}
kbd {
  font: 700 var(--fs-2xs) var(--font);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--muted);
  border-radius: 7px;
  padding: 3px 7px;
}
.kv {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}
.kv > div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  gap: 2px;
  min-width: 0;
  padding: 11px 13px;
  display: grid;
}
.kv small {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.kv b {
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  font-weight: 600;
  overflow: hidden;
}
.rows {
  display: grid;
}
.row {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 2px;
  display: flex;
}
.row:last-child {
  border-bottom: 0;
}
.row > .grow {
  flex: 1;
  min-width: 0;
}
.row b {
  font-weight: 700;
  display: block;
}
.row small {
  color: var(--muted);
  font-size: var(--fs-sm);
  display: block;
}
.d-head {
  align-items: center;
  gap: 14px;
  padding-right: 52px;
  display: flex;
}
.d-head h2 {
  padding-right: 0 !important;
}
.d-head small {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  display: block;
}
.d-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}
.drawer__inner > .d-actions:last-child {
  z-index: 2;
  background: var(--raised);
  border-top: 1px solid var(--line);
  margin: 0 -24px -24px;
  padding: 14px 24px 18px;
  position: sticky;
  bottom: 0;
}
.d-sec {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.chart {
  outline: none;
  position: relative;
}
.chart:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 12px;
}
.chart__svg {
  overflow: visible;
}
.chart__grid line {
  stroke: var(--line);
  stroke-dasharray: 3 4;
}
.chart__grid text,
.chart__x text {
  fill: var(--muted);
  font-size: var(--fs-2xs);
  font-weight: 600;
}
.chart__line {
  fill: none;
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart__line.is-dashed {
  stroke-dasharray: 5 6;
  stroke-width: 2px;
}
.chart__line--iris {
  stroke: var(--iris);
}
.chart__line--coral {
  stroke: var(--coral);
}
.chart__line--amber {
  stroke: var(--amber);
}
.chart__line--teal {
  stroke: var(--teal);
}
.chart__line--sky {
  stroke: var(--sky);
}
.chart__line--rose {
  stroke: var(--rose);
}
.chart__line--lime {
  stroke: var(--lime);
}
.chart__line--slate {
  stroke: var(--slate);
}
.chart__line--plum {
  stroke: var(--plum);
}
.chart__line--muted {
  stroke: var(--faint);
}
.chart__stop0 {
  stop-color: var(--area, var(--iris));
  stop-opacity: 0.24;
}
.chart__stop1 {
  stop-color: var(--area, var(--iris));
  stop-opacity: 0;
}
.chart__cross {
  stroke: var(--line-2);
  stroke-width: 1px;
  opacity: 0;
}
.chart__dot {
  stroke: var(--surface);
  stroke-width: 2.5px;
}
.chart__dot--iris {
  fill: var(--iris);
}
.chart__dot--coral {
  fill: var(--coral);
}
.chart__dot--amber {
  fill: var(--amber);
}
.chart__dot--teal {
  fill: var(--teal);
}
.chart__dot--sky {
  fill: var(--sky);
}
.chart__dot--rose {
  fill: var(--rose);
}
.chart__dot--lime {
  fill: var(--lime);
}
.chart__dot--slate {
  fill: var(--slate);
}
.chart__dot--plum {
  fill: var(--plum);
}
.chart__dot--muted {
  fill: var(--faint);
}
.chart__tip {
  pointer-events: none;
  opacity: 0;
  background: var(--raised);
  box-shadow: var(--shadow-pop);
  font-size: var(--fs-sm);
  white-space: nowrap;
  z-index: 2;
  border-radius: 12px;
  gap: 3px;
  padding: 8px 10px;
  transition: opacity 0.15s;
  display: grid;
  position: absolute;
  top: 0;
  left: 0;
}
.chart__tip span {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  display: flex;
}
.chart__tip i {
  border-radius: 50%;
  width: 8px;
  height: 8px;
}
.chart__tip strong {
  color: var(--text);
  margin-left: auto;
  padding-left: 10px;
}
.bars {
  align-items: stretch;
  gap: 8px;
  height: 180px;
  display: flex;
}
.bars__col {
  flex-direction: column;
  flex: 1;
  gap: 8px;
  min-width: 0;
  display: flex;
}
.bars__track {
  background: var(--well);
  border-radius: 8px;
  flex: 1;
  align-items: flex-end;
  display: flex;
  overflow: hidden;
}
.bars__bar {
  border-radius: 8px;
  width: 100%;
  min-height: 4px;
  display: block;
}
.bars__bar--iris {
  background: var(--iris);
}
.bars__bar--coral {
  background: var(--coral);
}
.bars__bar--amber {
  background: var(--amber);
}
.bars__bar--teal {
  background: var(--teal);
}
.bars__bar--sky {
  background: var(--sky);
}
.bars__bar--rose {
  background: var(--rose);
}
.bars__bar--lime {
  background: var(--lime);
}
.bars__bar--slate {
  background: var(--slate);
}
.bars__bar--plum {
  background: var(--plum);
}
.bars__bar--muted {
  background: var(--faint);
}
.bars__col.is-hi .bars__bar {
  background: var(--coral);
}
.bars__lab {
  text-align: center;
  font-size: var(--fs-2xs);
  color: var(--muted);
  font-weight: 600;
}
.donut {
  aspect-ratio: 1;
  flex: none;
  width: 168px;
  position: relative;
}
.donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.donut__track {
  fill: none;
  stroke: var(--well);
  stroke-width: 16px;
}
.donut__arc {
  fill: none;
  stroke-width: 16px;
  stroke-linecap: butt;
}
.tone-stroke--iris {
  stroke: var(--iris);
}
.tone-stroke--coral {
  stroke: var(--coral);
}
.tone-stroke--amber {
  stroke: var(--amber);
}
.tone-stroke--teal {
  stroke: var(--teal);
}
.tone-stroke--sky {
  stroke: var(--sky);
}
.tone-stroke--rose {
  stroke: var(--rose);
}
.tone-stroke--lime {
  stroke: var(--lime);
}
.tone-stroke--slate {
  stroke: var(--slate);
}
.tone-stroke--plum {
  stroke: var(--plum);
}
.tone-stroke--muted {
  stroke: var(--faint);
}
.donut__mid {
  text-align: center;
  place-content: center;
  display: grid;
  position: absolute;
  inset: 0;
}
.donut__mid b {
  font-size: var(--fs-4xl);
  letter-spacing: -0.03em;
  font-weight: 600;
}
.donut__mid span {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.spark {
  overflow: visible;
}
.legend {
  font-size: var(--fs-sm);
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px 16px;
  font-weight: 600;
  display: flex;
}
.legend span {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}
.legend i {
  border-radius: 50%;
  width: 9px;
  height: 9px;
}
.gauge {
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
  position: relative;
}
.gauge svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.gauge__track,
.gauge__arc {
  fill: none;
  stroke-width: 12px;
  stroke-linecap: round;
}
.gauge__track {
  stroke: var(--well);
}
.gauge__ticks line {
  stroke: var(--line-2);
  stroke-width: 1.4px;
  stroke-linecap: round;
}
.gauge__ticks line.is-major {
  stroke: var(--muted);
  stroke-width: 2px;
}
.gauge__needle path,
.gauge__needle circle {
  fill: var(--text);
}
.gauge__needle .gauge__hub {
  fill: var(--surface);
}
.gauge__mid {
  text-align: center;
  justify-items: center;
  display: grid;
  position: absolute;
  bottom: 4%;
  left: 0;
  right: 0;
}
.gauge__mid b {
  font-size: var(--fs-4xl);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1;
}
.gauge__mid span {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-top: 3px;
}
.pop-layer {
  z-index: 80;
  pointer-events: none;
  position: fixed;
  inset: 0;
}
.pop {
  pointer-events: auto;
  background: var(--raised);
  min-width: 200px;
  max-width: min(360px, 100vw - 24px);
  max-height: min(70vh, 520px);
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  position: fixed;
  overflow: auto;
}
.pop hr {
  background: var(--line);
  border: 0;
  height: 1px;
  margin: 4px 6px;
}
.menu__item {
  text-align: left;
  width: 100%;
  font-weight: 600;
  font-size: var(--fs-md);
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  display: flex;
}
.menu__item:hover,
.menu__item:focus-visible {
  background: var(--well);
  outline: none;
}
.menu__item.is-danger {
  color: var(--bad);
}
.menu__check {
  margin-left: auto;
}
.pop__head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 6px;
  display: flex;
}
.pop__title {
  font-weight: 700;
  font-size: var(--fs-base);
}
.pop__list {
  gap: 2px;
  display: grid;
}
.pop__row {
  text-align: left;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  display: flex;
}
.pop__row:hover,
.pop__row:focus-visible {
  background: var(--well);
  outline: none;
}
.pop__row small {
  color: var(--muted);
  font-size: var(--fs-sm);
  display: block;
}
.pop__row > span:first-child {
  background: var(--well);
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
}
.pop__row.is-unread b:after {
  content: "";
  background: var(--coral);
  vertical-align: middle;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  display: inline-block;
}
.pop--wide {
  width: 380px;
}
dialog {
  color: var(--text);
}
dialog::backdrop {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade 0.3s var(--ease);
  background: #0e1a1c4d;
}
:root[data-theme="dark"] dialog::backdrop {
  background: #0009;
}
@keyframes fade {
  0% {
    opacity: 0;
  }
}
.modal {
  border: 1px solid var(--line);
  background: var(--raised);
  width: min(580px, 100vw - 24px);
  box-shadow: var(--shadow-pop);
  border-radius: 26px;
  padding: 0;
}
.mform {
  padding: 22px;
}
.mform__head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  display: flex;
}
.mform__title {
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.mform__sub {
  color: var(--muted);
  font-size: var(--fs-md);
  margin-top: 4px;
}
.mform__grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  display: grid;
}
.mform__grid:empty {
  display: none;
}
.mform__err {
  color: var(--bad);
  font-size: var(--fs-md);
  min-height: 18px;
  margin-top: 10px;
}
.mform__foot {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  display: flex;
}
.field {
  gap: 6px;
  min-width: 0;
  display: grid;
}
.field--wide {
  grid-column: 1/-1;
}
.field__label {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 700;
}
.field__hint {
  font-size: var(--fs-sm);
  color: var(--faint);
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line-2);
  background: var(--surface);
  resize: vertical;
  border-radius: 12px;
  outline: none;
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}
.drawer {
  border: 1px solid var(--line);
  background: var(--raised);
  width: min(500px, 100vw - 24px);
  height: auto;
  max-height: none;
  box-shadow: var(--shadow-pop);
  overscroll-behavior: contain;
  border-radius: 22px;
  margin: 0 0 0 auto;
  padding: 0;
  position: fixed;
  inset: 12px 12px 12px auto;
  overflow-y: auto;
}
.drawer__inner {
  align-content: start;
  gap: 18px;
  padding: 24px;
  display: grid;
  position: relative;
}
.drawer__close {
  z-index: 1;
  position: absolute;
  top: 18px;
  right: 18px;
}
.drawer h2 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.025em;
  padding-right: 52px;
  font-weight: 700;
}
.finder {
  border: 1px solid var(--line);
  background: var(--raised);
  width: min(640px, 100vw - 24px);
  box-shadow: var(--shadow-pop);
  border-radius: 20px;
  margin-top: 12vh;
  padding: 0;
}
.finder__bar {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  display: flex;
}
.finder__bar input {
  font-size: var(--fs-xl);
  background: 0 0;
  border: 0;
  outline: none;
  flex: 1;
  min-width: 0;
}
.finder__list {
  max-height: 52vh;
  padding: 8px;
  overflow: auto;
}
.finder__group {
  font-size: var(--fs-2xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 10px 4px;
  font-weight: 700;
}
.finder__opt {
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  display: flex;
}
.finder__opt[aria-selected="true"] {
  background: var(--well);
}
.finder__opt small {
  color: var(--muted);
  font-size: var(--fs-sm);
  display: block;
}
.finder__opt .lead {
  background: var(--well);
  border-radius: 11px;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  display: grid;
}
.finder__opt .go {
  color: var(--muted);
  margin-left: auto;
}
.finder__opt > span:nth-child(2) {
  min-width: 0;
}
.finder__opt b,
.finder__opt small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}
.toast {
  z-index: 95;
  background: var(--text);
  width: fit-content;
  max-width: calc(100vw - 24px);
  color: var(--bg);
  box-shadow: var(--shadow-pop);
  visibility: hidden;
  font-weight: 600;
  font-size: var(--fs-md);
  pointer-events: none;
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 10px 12px 10px 14px;
  display: flex;
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
}
.toast__ico {
  display: grid;
}
.toast__undo {
  pointer-events: auto;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 9px;
  padding: 6px 12px;
  font-weight: 700;
}
:root[data-theme="dark"] .toast__undo {
  background: var(--on-primary);
  color: var(--primary);
}
.feed {
  display: grid;
}
.feed__item {
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  display: flex;
}
.feed__item:last-child {
  border-bottom: 0;
}
.feed__item p {
  font-size: var(--fs-md);
}
.feed__item p b {
  font-weight: 700;
}
.feed__item a {
  color: var(--primary-ink);
  font-weight: 700;
}
.feed__item small {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-top: 1px;
  display: block;
}
.keys {
  gap: 2px;
  display: grid;
}
.keys div {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  display: flex;
}
.keys dd {
  gap: 6px;
  display: flex;
}
.signin {
  z-index: 70;
  background:
    radial-gradient(70vmax 60vmax at 20% 0%, var(--glow-a), transparent 70%),
    var(--bg);
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}
.signin__card {
  background: var(--surface);
  border: 1px solid var(--line);
  width: min(420px, 100%);
  box-shadow: var(--shadow-pop);
  border-radius: 24px;
  gap: 16px;
  padding: 32px 28px;
  display: grid;
}
.signin__card .brand__mark {
  border-radius: 18px;
  width: 60px;
  height: 60px;
}
.signin__card h1 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.035em;
  font-weight: 600;
}
.signin__card p {
  color: var(--muted);
}
html.is-dragging,
html.is-dragging * {
  -webkit-user-select: none;
  user-select: none;
  cursor: grabbing !important;
}
@media (hover: none) {
  .ttab:hover,
  .ibtn:hover,
  .table tbody tr:hover,
  .menu__item:hover,
  .pop__row:hover {
    background: 0 0;
  }
  .btn--ghost:hover {
    background: var(--surface);
  }
  .btn--primary:hover {
    filter: none;
  }
  .ibtn:active,
  .pop__row:active,
  .menu__item:active,
  .ttab:active {
    background: var(--well);
  }
  .ttab[aria-current="page"]:active {
    background: 0 0;
  }
  .dock__btn:hover:not([aria-current]):not([aria-expanded="true"]) {
    opacity: 0.74;
    background: 0 0;
  }
  .dock__btn:active {
    background: #ffffff21;
  }
}
@media (width<=1279px) {
  .shift .meter {
    display: none;
  }
}
/* Ten main tabs since the engineering sections: tighten them before they scroll. */
@media (width>=1100px) and (width<=1599px) {
  .ttab,
  .ttabs__pill .ttab {
    font-size: var(--fs-sm);
    gap: 5px;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (width>=1100px) and (width<=1279px) {
  .brand__text {
    display: none;
  }
}
@media (width>=1100px) and (width<=1279px) {
  .top {
    gap: 14px;
  }
  .brand__text small {
    display: none;
  }
}
@media (width<=1099px) {
  :root {
    --dock-w: 0px;
    --dock-x: 0px;
  }
  .app {
    padding: 16px var(--gutter) calc(100px + env(safe-area-inset-bottom));
  }
  .top {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 14px;
    margin-bottom: 18px;
  }
  .ttabs {
    grid-area: 2/1 / auto/-1;
    justify-self: stretch;
  }
  .ttabs__track {
    margin: 0 auto;
  }
  .top__tools {
    grid-area: 1/2;
    justify-self: end;
  }
  .dock {
    top: auto;
    left: 0;
    right: 0;
    bottom: calc(12px + env(safe-area-inset-bottom));
    flex-direction: row;
    width: fit-content;
    height: auto;
    margin: 0 auto;
    padding: 6px;
  }
  .dock__sep {
    width: 1px;
    height: 24px;
    margin: auto 6px;
  }
  .dock__tip {
    display: none;
  }
  .dock__btn[aria-current="page"]:after {
    margin: 0 0 0 -2.5px;
    inset: auto auto 3px 50%;
  }
  html.kb-open .dock {
    visibility: hidden;
  }
  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
  html .pos-bar {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
  html.kb-open .pos-bar {
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
}
@media (width<=860px) {
  .ttabs {
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 calc(var(--gutter) - 4px);
    border-radius: 0;
    max-width: none;
  }
  .ttabs__track {
    margin: 0;
  }
  .ttabs,
  .subnav {
    -webkit-mask-image: linear-gradient(
      90deg,
      #0000,
      #000 14px calc(100% - 14px),
      #0000
    );
    mask-image: linear-gradient(
      90deg,
      #0000,
      #000 14px calc(100% - 14px),
      #0000
    );
  }
}
@media (width<=1099px) and (orientation: landscape) and (height<=500px) {
  .app {
    padding: 10px max(14px, env(safe-area-inset-right)) 32px
      calc(max(10px, env(safe-area-inset-left)) + 48px + 14px);
  }
  .dock {
    left: max(10px, env(safe-area-inset-left));
    flex-direction: column;
    gap: 0;
    width: auto;
    height: fit-content;
    margin: auto 0;
    padding: 4px;
    top: 0;
    bottom: 0;
    right: auto;
  }
  .dock__btn {
    width: 40px;
    height: 40px;
  }
  .dock__sep {
    width: auto;
    height: 1px;
    margin: 4px 8px;
  }
  .dock__btn[aria-current="page"]:after {
    margin: -2.5px 0 0;
    inset: 50% 2px auto auto;
  }
  .toast {
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  html .pos-bar {
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
  .top {
    row-gap: 8px;
    margin-bottom: 12px;
  }
  .ttabs {
    margin: 0;
    padding: 0;
  }
  .phead {
    margin-bottom: 14px;
  }
}
@media (width<=760px) {
  :root {
    --gutter: 14px;
  }
  .app {
    padding-top: 12px;
  }
  .brand__mark {
    width: 40px;
    height: 40px;
  }
  .brand__text b {
    font-size: 19px;
  }
  .ttab {
    padding: 10px 14px;
  }
  .phead {
    gap: 12px;
    margin-bottom: 16px;
  }
  .phead__lead {
    flex: 100%;
  }
  .top__title {
    font-size: var(--fs-4xl);
  }
  .crumbs {
    font-size: var(--fs-xs);
    margin-bottom: 4px;
  }
  .subnav {
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 calc(var(--gutter) - 4px);
    border-radius: 0;
    flex: 100%;
    max-width: none;
  }
  .shift {
    min-height: 44px;
    margin-left: 0;
    padding: 4px 14px 4px 10px;
  }
  .shift__txt small {
    display: none;
  }
  .pbar {
    margin-bottom: 14px;
  }
  .pbar__actions {
    width: 100%;
    margin-left: 0;
  }
  .pbar__actions > .btn {
    flex: 1 1 0;
    min-width: 0;
  }
  .pbar__actions > .btn--primary {
    order: -1;
  }
  .tabs {
    width: 100%;
  }
  .tabs__track {
    display: flex;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .kpis > .stat:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .stat {
    border-radius: 18px;
    gap: 4px;
    padding: 12px 13px;
  }
  .stat__label {
    font-size: var(--fs-xs);
    min-width: 0;
    line-height: 1.25;
  }
  .stat__ico {
    display: none;
  }
  .stat__value {
    gap: 2px 8px;
    font-size: 18px;
  }
  .stat__value > .badge {
    white-space: normal;
    max-width: 100%;
    line-height: 1.25;
  }
  .card {
    border-radius: 20px;
    padding: 15px;
  }
  .card__head {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .card__expand {
    display: none;
  }
  .mform__grid {
    grid-template-columns: 1fr;
  }
  .card.is-focus {
    max-height: calc(100dvh - 20px);
    top: 10px;
    left: 10px;
    right: 10px;
  }
  input,
  select,
  textarea,
  .search input {
    font-size: 16px;
  }
  .modal {
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
  }
  .mform {
    flex-direction: column;
    max-height: 92dvh;
    padding: 0;
    display: flex;
  }
  .mform__head {
    border-bottom: 1px solid var(--line);
    flex: none;
    margin: 0;
    padding: 20px 18px 14px;
  }
  .mform__grid {
    overscroll-behavior: contain;
    flex: auto;
    min-height: 0;
    padding: 16px 18px 4px;
    overflow-y: auto;
  }
  .mform__err {
    flex: none;
    margin-top: 6px;
    padding: 0 18px;
  }
  .mform__err:empty {
    min-height: 0;
    margin: 0;
  }
  .mform__foot {
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: inherit;
    flex: none;
    margin: 0;
  }
  .mform__foot .btn {
    flex: 1;
  }
  .drawer {
    border-radius: 26px 26px 0 0;
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: 0;
    inset: auto 0 0;
  }
  .drawer__close {
    z-index: 2;
    background: var(--raised);
    justify-self: end;
    margin: -8px -8px -48px 0;
    position: sticky;
    top: 14px;
  }
  .drawer__inner {
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }
  .drawer__inner > .d-actions:last-child {
    margin: 0 -18px calc(-22px - env(safe-area-inset-bottom));
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  }
  .drawer:before,
  .modal:before {
    content: "";
    background: var(--line-2);
    z-index: 3;
    border-radius: 2px;
    width: 40px;
    height: 4px;
    margin: 0 auto;
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
  }
  .d-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
@media (width<=374px) {
  .dock {
    gap: 0;
    padding: 4px;
  }
  .dock__btn {
    width: 40px;
    height: 40px;
  }
  .brand__text small {
    display: none;
  }
}
.card:has(> .table-wrap) {
  container: table/inline-size;
}
@container table (width<=720px) {
  .table--stack,
  .table--stack tbody {
    display: block;
  }
  .table--stack thead {
    display: none;
  }
  .table-wrap:has(.table--stack) {
    margin: 0;
    overflow: visible;
  }
  .table--stack tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: var(--areas, "t r" "s p" "m x");
    border-bottom: 1px solid var(--line);
    align-items: center;
    gap: 6px 12px;
    padding: 12px 2px;
    display: grid;
  }
  .table--stack tr:last-child {
    border-bottom: 0;
  }
  .table--stack tbody tr:hover {
    background: 0 0;
  }
  .table--stack td {
    text-align: left;
    min-width: 0;
    display: block;
  }
  html .table.table--stack td {
    border: 0;
    padding: 0;
  }
  .table--stack td.r {
    text-align: right;
  }
  .table--stack .a-t {
    grid-area: t;
  }
  .table--stack .a-s {
    grid-area: s;
  }
  .table--stack .a-m {
    grid-area: m;
  }
  .table--stack .a-r {
    text-align: right;
    grid-area: r;
    justify-self: end;
  }
  .table--stack .a-p {
    grid-area: p;
    justify-self: end;
  }
  .table--stack .a-x {
    grid-area: x;
    justify-self: end;
  }
  .table--stack .a-h {
    display: none;
  }
  .table--stack td[data-label]:before {
    content: attr(data-label);
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    display: block;
  }
  .table--stack tr > td[colspan] {
    grid-column: 1/-1;
  }
}
@media (pointer: coarse), (width<=760px) {
  .tabs__tab {
    align-items: center;
    min-height: 44px;
    display: inline-flex;
  }
  .search,
  .input {
    height: 44px;
  }
  .crumbs a {
    position: relative;
  }
  .crumbs a:after {
    content: "";
    position: absolute;
    inset: -12px -6px;
  }
  .btn {
    min-height: 44px;
  }
  .switch:before {
    content: "";
    position: absolute;
    inset: -9px -2px;
  }
  select {
    min-height: 44px;
  }
  .ibtn,
  .ibtn--sm {
    width: 44px;
    height: 44px;
  }
  .check {
    width: 24px;
    height: 24px;
  }
  .seg__btn {
    min-width: 44px;
    padding: 12px 14px;
  }
  button.chip,
  a.chip {
    min-height: 44px;
    padding: 0 15px;
  }
  .btn--sm,
  .btn--xs {
    height: 44px;
    padding: 0 15px;
  }
  .menu__item,
  .pop__row {
    min-height: 44px;
  }
  .ttab,
  .ttabs__pill .ttab {
    padding-top: 13px;
    padding-bottom: 13px;
  }
  .view p a:not(.btn):not(.chip) {
    margin: -5px 0;
    padding: 5px 0;
    display: inline-block;
  }
  .subnav__tab {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mesh i {
    will-change: auto;
  }
  *,
  :before,
  :after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
html[data-density="compact"] {
  --gap: 12px;
}
html[data-density="compact"] .card {
  padding: 14px;
}
html[data-density="compact"] .card__head {
  margin-bottom: 10px;
}
html[data-density="compact"] .table td {
  padding-top: 7px;
  padding-bottom: 7px;
}
html[data-density="compact"] .table th {
  padding-top: 8px;
  padding-bottom: 8px;
}
html[data-density="compact"] .stat {
  padding: 12px 14px;
}
html[data-density="compact"] .row {
  padding-top: 7px;
  padding-bottom: 7px;
}

/* AVM folded-ribbon identity from the Nesari project. */
.brand__mark { background:#0d0d0e; color:#f5f5f5; }
.brand__mark .avm-logo { width:28px; height:24px; display:block; object-fit:contain; }
.avm-mark, .brand__mark .avm-mark { fill:currentColor; stroke:none; }
.brand__mark .avm-mark { width:28px; height:24px; }
