:root {
  --ink: #0f1d3a;
  --ink-2: #33415c;
  --muted: #5b6678;
  --faint: #8a94a6;
  --line: #e2e7ec;
  --line-2: #eef1f4;
  --bg: #ffffff;
  --panel: #f4f7f8;
  --brand: #0b5f55;
  --brand-600: #0e7468;
  --brand-50: #e8f4f2;
  --brand-ring: rgba(14, 116, 104, 0.25);
  --accent: #19b3a3;
  --warn: #f4a51c;
  --ok: #3fa364;
  --danger: #c9373d;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 30, 54, 0.04), 0 4px 14px rgba(16, 30, 54, 0.05);
  --shadow-hover: 0 2px 4px rgba(16, 30, 54, 0.06), 0 10px 28px rgba(16, 30, 54, 0.09);
  --c-filled: #14a38b;
  --c-filled-dk: #0d7e6b;
  --c-reserved: #f2a93b;
  --c-reserved-bg: #fff4df;
  --c-picked: #6d5bd0;
  --c-picked-dk: #5243a8;
  --c-empty: #ffffff;
  --c-empty-line: #cbd3db;
  --c-alert: #e0413f;
  --max: 1420px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
sup { font-size: 0.55em; vertical-align: super; line-height: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.link { color: var(--brand); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.topbar__inner {
  max-width: calc(var(--max) + 200px);
  margin: 0 auto;
  padding: 6px 56px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__logo { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; }
.brand__divider { width: 1px; height: 30px; background: var(--line); }
.brand__name { font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }
.brand__product { font-size: 26px; font-weight: 400; color: var(--ink); }
.env-badge {
  align-self: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 6px; background: #fff1d6; color: #8a5300; border: 1px solid #f3d595;
}
.topbar__actions { display: flex; align-items: center; gap: 22px; }
.icon-btn {
  position: relative; border: 0; background: transparent; color: var(--ink-2);
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--panel); }
.icon-btn__dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px #fff; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #17a37c; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: 0.02em;
}
.avatar:hover { filter: brightness(1.05); }

/* ---------- Dropdowns ---------- */
.menu-wrap { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-hover);
  padding: 6px;
}
.dropdown--right { left: auto; right: 0; }
.dropdown--wide { min-width: 300px; }
.dropdown__label { font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 10px 6px; }
.dropdown__item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 7px; border: 0; background: transparent; cursor: pointer;
  text-decoration: none; font-size: 14px; color: var(--ink);
}
.dropdown__item:hover { background: var(--panel); }
.dropdown__item.is-current { color: var(--brand); font-weight: 600; }
.dropdown__item small { color: var(--muted); display: block; font-size: 12px; font-weight: 400; }
.dropdown__sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.dropdown__me { padding: 10px 10px 8px; }
.dropdown__me strong { display: block; font-size: 15px; }
.dropdown__me span { font-size: 13px; color: var(--muted); }
.mini-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: #8a94a6; flex: none; }
.check { margin-left: auto; color: var(--brand); }
.notif { display: flex; gap: 10px; align-items: flex-start; }
.notif .dot { margin-top: 6px; }

/* ---------- Page ---------- */
.page { flex: 1; width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 22px var(--gutter) 40px; outline: none; }
.lede { font-size: 21px; color: var(--muted); margin: 0 0 26px; font-weight: 400; }

.summary {
  background: var(--panel); border-radius: var(--radius); display: flex; align-items: center;
  padding: 18px 22px; gap: 0; margin-bottom: 30px;
}
.summary__item { display: flex; align-items: baseline; gap: 22px; padding: 0 20px; flex: 1; }
.summary__item + .summary__item { border-left: 1px solid #d9dfe4; }
.summary__num { font-size: 34px; font-weight: 700; color: var(--brand); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.summary__label { font-size: 20px; color: var(--ink-2); }
.summary__note { font-size: 14px; font-style: italic; color: var(--muted); white-space: nowrap; padding-left: 12px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.025em; }
.tools { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; }
.search { position: relative; flex: 0 1 490px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%; height: 46px; border: 1px solid #cfd6dd; border-radius: 8px; padding: 0 14px 0 48px;
  font: inherit; font-size: 18px; color: var(--ink); background: #fff;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-ring); }
.view-toggle { display: flex; gap: 8px; }
.view-btn {
  width: 58px; height: 46px; border-radius: 8px; border: 1px solid #cfd6dd; background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--ink-2);
}
.view-btn[aria-pressed="true"] { background: var(--brand-50); border-color: #c6e3de; color: var(--brand-600); }

/* ---------- Institution cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 22px 14px 28px; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; right: 0; width: 150px; height: 92px; pointer-events: none;
  background: linear-gradient(210deg, var(--tint, transparent) 0%, transparent 62%);
}
.card:hover { box-shadow: var(--shadow-hover); border-color: #d4dbe2; }
.card__head { display: flex; align-items: flex-start; gap: 22px; position: relative; }
.mono {
  flex: none; width: 64px; height: 56px; border-radius: 8px; color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 22px; letter-spacing: 0.01em;
}
.mono--lg { font-size: 30px; }
.card__title { flex: 1; min-width: 0; padding-top: 0; }
.card__title h3 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.card__title p { margin: 2px 0 0; font-size: 17px; color: var(--ink-2); }
.card__meta { display: flex; align-items: center; gap: 22px; padding-top: 6px; }
.badge {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 7px;
  border: 1px solid #6fb6aa; color: var(--brand); font-size: 15px; font-weight: 500; background: rgba(255,255,255,.7); white-space: nowrap;
}
.badge--admin { border-color: #7b8fd1; color: #2f3f8f; }
.badge--viewer { border-color: #b7c0cb; color: var(--ink-2); }
.kebab { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 7px; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.kebab:hover { background: var(--panel); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 12px; }
.stat { padding: 2px 20px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-size: 30px; font-weight: 700; color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 17px; color: var(--ink-2); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.status { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink-2); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--ok); }
.dot--warn { background: var(--warn); }
.dot--ok { background: var(--ok); }
.dot--teal { background: var(--accent); }
.dot--muted { background: #c1c8d0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 20px; border-radius: 7px;
  border: 1px solid var(--brand-600); color: var(--brand); background: #fff; font-size: 16px; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s;
}
.btn:hover, .card:hover .btn--card, .btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: #094c45; }
.btn--ghost { border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { background: var(--panel); color: var(--ink); border-color: #cfd6dd; }
.btn--sm { height: 32px; padding: 0 14px; font-size: 14px; }

.card-menu { position: absolute; top: 56px; right: 18px; z-index: 5; }

/* List view */
.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list-row {
  display: grid; grid-template-columns: minmax(240px, 2.2fr) repeat(3, minmax(80px, .8fr)) minmax(190px, 1.4fr) auto;
  align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fff;
}
.list-row:first-child { border-top: 0; }
.list-row--head { background: var(--panel); font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 20px; }
.list-row .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.list-row .mono { width: 44px; height: 40px; font-size: 15px; }
.list-row .who strong { font-size: 18px; display: block; }
.list-row .who span { font-size: 14px; color: var(--muted); }
.list-row .num { font-size: 22px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

.page-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; font-size: 17px; color: var(--ink-2); flex-wrap: wrap; }
.page-foot .lock { display: flex; align-items: center; gap: 14px; }
.page-foot .link { font-size: 17px; }

/* ---------- Tracker ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--brand); text-decoration: none; font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }
.tracker-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.tracker-head h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.tracker-head p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.tracker-head .spacer { flex: 1; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: #fff; height: 38px; padding: 0 14px; border-radius: 8px; cursor: pointer;
  font-size: 15px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px;
}
.tab .count { background: var(--panel); border-radius: 999px; padding: 1px 8px; font-size: 13px; font-weight: 600; }
.tab[aria-selected="true"] { background: var(--brand-50); border-color: #c6e3de; color: var(--brand); font-weight: 600; }
.tab[aria-selected="true"] .count { background: #fff; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line-2); white-space: nowrap; }
thead th { border-top: 0; background: var(--panel); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
tbody tr:hover { background: #fafbfc; }
td.mono-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--panel); color: var(--ink-2); }
.pill .dot { width: 8px; height: 8px; }
.pill--warn { background: #fff4e0; color: #8a5300; }
.pill--transit { background: #e6f0ff; color: #1d4fa3; }
.pill--ok { background: #e7f5ec; color: #1f6b3b; }
.pill--proc { background: var(--brand-50); color: var(--brand); }
.table-foot { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line-2); }

/* ---------- Access management ---------- */
.access-intro { color: var(--muted); font-size: 16px; margin: -16px 0 22px; max-width: 760px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.legend b { color: var(--ink); }
.access-table td, .access-table th { vertical-align: middle; }
.access-table th.inst { text-align: center; }
.access-table td.cell { text-align: center; }
.access-table th.inst .mono { width: 34px; height: 30px; font-size: 11px; display: inline-grid; margin-right: 8px; vertical-align: middle; }
.person { display: flex; align-items: center; gap: 12px; }
.person strong { display: block; }
.person small { color: var(--muted); font-size: 13px; }
.type-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--panel); color: var(--ink-2); }
.type-tag--admin { background: #eceffd; color: #2f3f8f; }
.type-tag--external { background: #fff1e6; color: #8a4a12; }
select.role {
  font: inherit; font-size: 14px; height: 34px; padding: 0 30px 0 10px; border-radius: 7px; border: 1px solid #cfd6dd;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6678' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; color: var(--ink); cursor: pointer; min-width: 120px;
}
select.role:disabled { background-color: var(--panel); color: var(--faint); cursor: not-allowed; }
select.role[data-role=""] { color: var(--faint); }
tr.is-focus-inst td.cell, th.is-focus-inst { background: #f0f8f6; }

.notice { display: flex; gap: 12px; align-items: flex-start; background: #fff8ea; border: 1px solid #f6dfae; color: #6b4a00; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }

/* ---------- Misc ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner { max-width: calc(var(--max) + 120px); margin: 0 auto; padding: 18px 16px 22px; display: flex; justify-content: space-between; font-size: 16px; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 9px; font-size: 14px; box-shadow: var(--shadow-hover);
}
.denied { max-width: 560px; margin: 60px auto; text-align: center; }
.denied h1 { font-size: 28px; margin: 14px 0 8px; }
.denied p { color: var(--muted); font-size: 16px; }


/* ---------- Workspace ---------- */
.crumb-sep { color: #b8c0ca; }
.ws-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 24px; }
.ws-tabs a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 16px; padding: 10px 16px 12px;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center;
}
.ws-tabs a:hover { color: var(--ink); }
.ws-tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.ws-tabs .count, .h-count { background: var(--panel); border-radius: 999px; padding: 1px 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.section-head--sm { margin-bottom: 18px; }
.section-head--sm h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.btn svg { flex: none; }
.btn--danger { background: var(--c-alert); border-color: var(--c-alert); color: #fff; }
.btn--danger:hover { background: #c22f2d; border-color: #c22f2d; color: #fff; }
.btn--danger-ghost { color: #b73230; }
.btn--danger-ghost:hover { background: #fdeeee; color: #a12422; border-color: #f2c4c3; }
.faint { color: var(--faint); }
.meta-line { display: flex; align-items: center; gap: 7px; margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.meta-line svg { color: var(--faint); flex: none; }
.warn-line { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #b25f00; }

/* Tube holder cards */
.holder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.hcard {
  position: relative; display: flex; gap: 18px; padding: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .18s, border-color .18s, transform .18s;
}
.hcard:hover { box-shadow: var(--shadow-hover); border-color: #c9d6dc; transform: translateY(-1px); }
.hcard__link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.hcard__link:focus-visible { outline: 3px solid var(--brand-ring); }
.holder-art { width: 84px; height: 108px; flex: none; }
.holder-art--lg { width: 110px; height: 142px; }
.holder-art--icon { width: 34px; height: 44px; }
.holder-art--ghost { width: 70px; height: 90px; opacity: .55; }
.hcard__info { flex: 1; min-width: 0; }
.hcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hcard h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.item-menu { position: relative; z-index: 2; margin: -6px -8px 0 0; }
.hcard__occ { margin-top: 12px; }
.hcard__nums { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.occ { display: flex; height: 8px; border-radius: 99px; background: #edf1f4; overflow: hidden; }
.occ span { display: block; height: 100%; }
.occ--filled { background: var(--c-filled); }
.occ--picked { background: var(--c-picked); }
.occ--reserved { background: var(--c-reserved); }
.add-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 146px;
  border: 1.5px dashed #b9c6cf; border-radius: var(--radius); background: #fbfcfd; color: var(--brand); font-weight: 600;
  font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s;
}
.add-card:hover { background: var(--brand-50); border-color: var(--brand-600); }
.add-card__plus { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); }
.add-card:hover .add-card__plus { background: #fff; }
.empty--big { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; }
.empty--big .btn { margin-top: 8px; }

/* Holder hero */
.holder-hero {
  display: flex; gap: 24px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(120deg, #f7fafb, #fff 60%); margin-bottom: 26px; flex-wrap: wrap;
}
.holder-hero__info { flex: 1; min-width: 220px; }
.holder-hero h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.02em; }
.hero-occ { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); max-width: 440px; }
.hero-occ .occ { flex: 1; }
.hero-actions { display: flex; gap: 8px; align-self: flex-start; }

/* Rack cards */
.rack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.rcard {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px;
  box-shadow: var(--shadow); transition: box-shadow .18s, border-color .18s, transform .18s;
}
.rcard:hover { box-shadow: var(--shadow-hover); border-color: #c9d6dc; transform: translateY(-1px); }
.rcard__top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.rcard h3 { margin: 0; font-size: 18px; }
.rcard p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.rcard__stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rcard__stats span { display: inline-flex; align-items: center; gap: 5px; }
.rcard__stats .warn-line { margin: 0; }
.add-card--rack { min-height: 200px; }

.minimap {
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 3px; padding: 10px; border-radius: 8px;
  background: #eef2f5; max-width: calc(var(--cols) * 14px + 20px);
}
.mm { aspect-ratio: 1; border-radius: 50%; display: block; }
.mm--empty { background: #fff; box-shadow: inset 0 0 0 1px #cfd7de; }
.mm--filled { background: var(--c-filled); }
.mm--reserved { background: var(--c-reserved); }
.mm--picked { background: var(--c-picked); }
.minimap--preview { max-width: min(100%, calc(var(--cols) * 18px + 20px)); }

/* swatches */
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.sw--filled { background: var(--c-filled); }
.sw--reserved { background: var(--c-reserved-bg); box-shadow: inset 0 0 0 2px var(--c-reserved); }
.sw--picked { background: var(--c-picked); }
.sw--empty { background: #fff; box-shadow: inset 0 0 0 1.5px var(--c-empty-line); }
.sw--alert { background: var(--c-alert); width: 9px; height: 9px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #f3c5c4; }

/* Rack view */
.rack-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.rack-switch a {
  text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
}
.rack-switch a:hover { border-color: #c6d0d8; }
.rack-switch a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.rack-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.rack-head h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.rack-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.rack-head .spacer { flex: 1; }
.back-btn { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); text-decoration: none; }
.back-btn:hover { background: var(--panel); }
.legend-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; background: var(--panel); border-radius: 9px; margin-bottom: 16px; font-size: 14px; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg b { color: var(--ink); font-variant-numeric: tabular-nums; }
.lg--hint { margin-left: auto; color: var(--muted); font-size: 13px; }

.rack-wrap { container-type: inline-size; overflow-x: auto; padding-bottom: 4px; }
.rack {
  --gap: 7px;
  --cell: clamp(26px, calc((100cqw - 90px) / var(--cols) - var(--gap)), 54px);
  display: inline-grid; grid-template-columns: 26px repeat(var(--cols), var(--cell)); gap: var(--gap);
  padding: 18px 22px 22px 14px; border-radius: 16px; background: linear-gradient(160deg, #e9eef2, #dfe6eb);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(16,30,54,.06), 0 8px 24px rgba(16,30,54,.07);
  border: 1px solid #d3dce3;
}
.rack__corner { display: block; }
.rack__colh, .rack__rowh { display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #6a7688; font-variant-numeric: tabular-nums; }
.rack__colh { height: 18px; }
.cell {
  position: relative; width: var(--cell); height: var(--cell); border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease; display: grid; place-items: center;
}
.cell:hover:not(:disabled) { transform: scale(1.1); z-index: 1; }
.cell:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; }
.cell--empty { background: var(--c-empty); box-shadow: inset 0 0 0 1.5px var(--c-empty-line), inset 0 3px 5px rgba(16,30,54,.07); }
.cell--empty:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--brand-600); background: var(--brand-50); }
.cell--empty:hover:not(:disabled)::after { content: "+"; color: var(--brand); font-weight: 700; font-size: calc(var(--cell) * .45); line-height: 1; }
.cell--empty:disabled { cursor: default; }
.cell--filled { background: radial-gradient(circle at 35% 30%, #4fd1b7, var(--c-filled) 55%, var(--c-filled-dk)); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.cell--picked { background: radial-gradient(circle at 35% 30%, #a597ff, var(--c-picked) 55%, var(--c-picked-dk)); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.cell--reserved { background: var(--c-reserved-bg); box-shadow: inset 0 0 0 2.5px var(--c-reserved); }
.cell--reserved::before { content: ""; position: absolute; inset: 28%; border-radius: 50%; border: 2px dashed var(--c-reserved); }
.cell--filled::before, .cell--picked::before { content: ""; position: absolute; inset: 26%; border-radius: 50%; background: rgba(255,255,255,.22); }
.cell.has-alert::after {
  content: ""; position: absolute; top: -2px; right: -2px; width: 31%; height: 31%; min-width: 9px; min-height: 9px; border-radius: 50%;
  background: var(--c-alert); box-shadow: 0 0 0 2px #fff;
}
.cell__transit { position: relative; z-index: 1; color: #8a5300; display: grid; }
.cell__transit svg { width: calc(var(--cell) * .38); height: calc(var(--cell) * .38); }

/* Pills & chips */
.pill--filled { background: #e3f6f1; color: #0b6b5b; }
.pill--reserved { background: var(--c-reserved-bg); color: #8a5300; }
.pill--picked { background: #eeebff; color: #4a3ca0; }
.pill .sw { width: 9px; height: 9px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; margin-right: 4px; }
.chip--transit { background: #e6f0ff; color: #1d4fa3; }
.chip--warn { background: #fdecec; color: #a12422; }
.samples-table tr.clickable { cursor: pointer; }
.samples-table tr.clickable:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: -3px; }
.no-rows { text-align: center; color: var(--muted); padding: 28px !important; }
a.tab { text-decoration: none; }
.search--sm { flex: 0 1 340px; }
.search--sm input { height: 40px; font-size: 15px; padding-left: 44px; }
.search--sm svg { width: 18px; height: 18px; }
.inline-label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.full-access { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--brand); font-weight: 600; }
.access-table td.cell-c { text-align: center; }
.dropdown__item.is-danger { color: #b73230; }
.dropdown__item svg { flex: none; }

/* ---------- Modal ---------- */
.modal {
  border: 0; padding: 0; border-radius: 16px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px);
  box-shadow: 0 24px 64px rgba(10, 25, 50, .28); color: var(--ink); overflow: hidden;
}
.modal--sm { width: min(460px, calc(100vw - 24px)); }
.modal--md { width: min(600px, calc(100vw - 24px)); }
.modal--lg { width: min(820px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(14, 26, 46, .42); backdrop-filter: blur(2px); }
.modal[open] { animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal__form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.modal__head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line-2); }
.modal__icon { flex: none; }
.modal__titles { flex: 1; min-width: 0; }
.modal__titles h2 { margin: 0; font-size: 21px; letter-spacing: -0.015em; }
.modal__titles p { margin: 4px 0 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.modal__x { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 9px; cursor: pointer; color: var(--muted); display: grid; place-items: center; margin: -4px -6px 0 0; }
.modal__x:hover { background: var(--panel); color: var(--ink); }
.modal__body { padding: 16px 22px 8px; overflow-y: auto; }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line-2); background: #fbfcfd; flex-wrap: wrap; }
.foot-actions, .foot-left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-confirm { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #a12422; }
.form-error { margin: 0 22px 10px; padding: 10px 14px; border-radius: 8px; background: #fdecec; color: #a12422; font-size: 14px; border: 1px solid #f4c7c6; }
.confirm-text { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 4px 0 10px; }
.danger-icon { width: 40px; height: 40px; border-radius: 50%; background: #fdecec; color: var(--c-alert); display: grid; place-items: center; }
.tube-icon { width: 40px; height: 48px; }
.tube-cap { fill: #c9d3dc; }
.tube-body { fill: #f3f6f8; stroke: #b7c2cc; stroke-width: 1.5; }
.tube-liquid { fill: var(--c-filled); }
.tube-icon--filled .tube-cap { fill: var(--c-filled-dk); }
.tube-icon--picked .tube-cap { fill: var(--c-picked-dk); }
.tube-icon--picked .tube-liquid { fill: var(--c-picked); }
.tube-icon--reserved .tube-cap { fill: var(--c-reserved); }
.tube-icon--reserved .tube-liquid { fill: transparent; }

/* Forms */
fieldset.form { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-section { padding: 6px 0 14px; }
.form-section + .form-section { border-top: 1px solid var(--line-2); padding-top: 14px; }
.form-section h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; }
.form-grid { display: grid; gap: 12px 14px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.form-grid .field { margin-bottom: 0; }
.form-grid + .field, .form-grid + .check-row { margin-top: 12px; }
.field label, .field .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field label small { font-weight: 400; color: var(--faint); }
.req { color: var(--c-alert); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); border: 1px solid #cfd6dd; border-radius: 8px; padding: 0 12px; height: 40px; background: #fff; width: 100%;
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-ring); }
fieldset:disabled .field input, fieldset:disabled .field select, fieldset:disabled .field textarea { background: #f7f9fa; color: var(--ink); border-color: var(--line); }
.field-hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; display: flex; gap: 6px; align-items: center; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; cursor: pointer; padding: 4px 0; }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand-600); flex: none; }
.check-row small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 9px; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink-2); background: #fff; transition: border-color .12s, background .12s;
}
.seg__opt:hover span { border-color: #c2ccd5; }
.seg__opt input:checked + span { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand); font-weight: 600; }
.seg__opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-ring); }
.meta-foot { font-size: 12px; color: var(--faint); margin: 0 0 6px; }
.type-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.type-opt { position: relative; cursor: pointer; }
.type-opt input { position: absolute; opacity: 0; }
.type-opt span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border: 1.5px solid var(--line); border-radius: 10px; text-align: center; height: 100%; }
.type-opt b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.type-opt:hover span { border-color: #c2ccd5; }
.type-opt input:checked + span { border-color: var(--brand-600); background: var(--brand-50); }
.type-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-ring); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; margin: 12px 0; }
.chip-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.chip-btn:hover { border-color: var(--brand-600); color: var(--brand); background: var(--brand-50); }
.rack-preview { padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: #fbfcfd; overflow-x: auto; }
.preview-cap { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Sign-in ---------- */
.signed-out .topbar__actions { display: none; }
.signin { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 24px 0; }
.signin__card {
  width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 30px 26px;
  box-shadow: var(--shadow-hover); text-align: center;
}
.signin__logo { width: 64px; height: 64px; border-radius: 14px; }
.signin h1 { font-size: 24px; margin: 14px 0 6px; letter-spacing: -0.02em; }
.signin__sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.signin form { text-align: left; }
.signin .form-error { margin: 0 0 12px; }
.btn--block { width: 100%; justify-content: center; height: 44px; font-size: 16px; }
.signin__or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 18px 0; }
.signin__or::before, .signin__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin__hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ---------- Co-brand logo in header ---------- */
.brand-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cobrand { display: flex; align-items: center; gap: 14px; }
.cobrand img { max-height: 40px; max-width: 180px; object-fit: contain; display: block; }

/* ---------- Users ---------- */
.foot-links { display: inline-flex; gap: 22px; }
.users-table td { vertical-align: middle; }
.users-table .num-c, .users-table th.num-c { text-align: center; font-variant-numeric: tabular-nums; }
.users-table .menu-c { width: 44px; }
.users-table .item-menu { margin: 0; }
.chips-cell .chip { white-space: nowrap; margin-right: 0; }
.chips-cell { display: flex; flex-wrap: wrap; gap: 4px; white-space: normal; min-width: 160px; }
.chip--muted { background: var(--panel); color: var(--ink-2); font-weight: 500; }
.chip--local { background: #eef0ff; color: #3b46a3; }
.chip--one { background: var(--brand-50); color: var(--brand); }
.status-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.status-chip--on { background: #e7f5ec; color: #1f6b3b; }
.status-chip--off { background: #fdecec; color: #a12422; }
.user-logo-thumb { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.mini-avatar--sm, .user-logo-thumb.mini-avatar--sm { width: 22px; height: 22px; font-size: 9px; }
.mini-avatar--xl { width: 84px; height: 84px; font-size: 28px; border-radius: 16px; }
.user-hero { display: flex; gap: 22px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, #f7fafb, #fff 60%); margin-bottom: 22px; flex-wrap: wrap; }
.user-hero__logo { width: 120px; height: 84px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); flex: none; overflow: hidden; }
.user-hero__logo img { max-width: 104px; max-height: 70px; object-fit: contain; }
.user-hero__info { flex: 1; min-width: 220px; }
.user-hero h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.user-hero .chips-cell { margin-top: 10px; }
.user-hero .hero-actions { flex-wrap: wrap; align-items: center; }
.owner-group { margin-bottom: 28px; }
.owner-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.owner-group__head .mono { width: 44px; height: 40px; font-size: 15px; }
.owner-group__head h2 { margin: 0; font-size: 20px; }
.owner-group__head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.owner-group__head .spacer { flex: 1; }
.holder-group { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.holder-group > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.holder-group > summary::-webkit-details-marker { display: none; }
.holder-group > summary::before { content: "▸"; color: var(--faint); transition: transform .15s; }
.holder-group[open] > summary::before { transform: rotate(90deg); }
.holder-group > summary .spacer { flex: 1; }
.holder-group__title b { display: block; font-size: 16px; }
.holder-group__title small { color: var(--muted); font-size: 13px; }
.holder-group__empty { padding: 0 16px 14px; margin: 0; font-size: 14px; }
.table-wrap--flat { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; margin: 0; }
.group-row td { background: #f3f7f8; border-top: 1px solid var(--line); padding: 9px 16px; }
.group-row td { white-space: nowrap; }
.group-row__who { display: inline-flex; align-items: center; gap: 10px; margin-right: 16px; }
.group-row .link { font-size: 13px; }

/* user forms */
.pw-row { display: flex; gap: 8px; }
.pw-row input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.access-pick { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.access-pick__row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line-2); font-size: 15px; }
.access-pick__row:first-child { border-top: 0; }
.access-pick__row .mono { width: 34px; height: 30px; font-size: 11px; }
.access-pick__row span { flex: 1; }
.access-pick__row select.role { min-width: 130px; }
.logo-pick { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-pick__preview { width: 150px; height: 84px; border: 1px dashed #c9d3dc; border-radius: 10px; display: grid; place-items: center; background: repeating-conic-gradient(#f4f6f8 0 25%, #fff 0 50%) 0 0 / 14px 14px; overflow: hidden; }
.logo-pick__preview img { max-width: 136px; max-height: 72px; object-fit: contain; }
.logo-pick__preview .faint { font-size: 13px; background: #fff; padding: 2px 6px; border-radius: 4px; }
.logo-pick__actions { flex: 1; min-width: 200px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.logo-pick__actions .field-hint { width: 100%; margin: 0; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.creds { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 4px 0 14px; padding: 16px; background: var(--panel); border-radius: 10px; }
.creds dt { font-size: 13px; font-weight: 600; color: var(--muted); align-self: center; }
.creds dd { margin: 0; }
.creds code { font-size: 15px; background: #fff; border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; word-break: break-all; }
.ok-icon { width: 40px; height: 40px; border-radius: 50%; background: #e7f5ec; color: #1f6b3b; display: grid; place-items: center; }

/* ---------- Institution form ---------- */
.btn--tall { height: 46px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--danger:disabled:hover { background: var(--c-alert); border-color: var(--c-alert); }
.inst-preview { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; background: #fbfcfd; }
.inst-preview b { display: block; font-size: 18px; }
.inst-preview small { color: var(--muted); font-size: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; cursor: pointer; }
.swatch input[type=radio] { position: absolute; opacity: 0; }
.swatch span { display: block; width: 32px; height: 32px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch input:checked + span, .swatch--custom:has(input[type=radio]:checked) { outline: 3px solid var(--brand-ring); outline-offset: 2px; }
.swatch input:focus-visible + span { outline: 3px solid var(--brand-600); outline-offset: 2px; }
.swatch--custom { border-radius: 8px; }
.swatch--custom input[type=color] { width: 32px; height: 32px; padding: 0; border: 1px dashed #b9c6cf; border-radius: 8px; background: #fff; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .topbar__inner { padding: 6px 24px; }
  .summary__label { font-size: 17px; }
  .summary__num { font-size: 28px; }
}
@media (max-width: 1080px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .list-row { grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(60px, .7fr)) auto; }
  .list-row > .col-status { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .topbar__inner { padding: 6px 16px; }
  .brand { gap: 10px; }
  .brand__logo { width: 38px; height: 38px; }
  .brand__name, .brand__product { font-size: 17px; white-space: nowrap; }
  .brand__divider { display: none; }
  .topbar__actions { gap: 4px; }
  .avatar { width: 38px; height: 38px; font-size: 15px; }
  .lede { font-size: 17px; }
  .summary { flex-direction: column; align-items: stretch; padding: 10px 16px; }
  .summary__item { padding: 10px 0; gap: 14px; }
  .summary__item + .summary__item { border-left: 0; border-top: 1px solid #d9dfe4; }
  .summary__note { padding: 8px 0 2px; }
  .section-head h1, .section-head h2 { font-size: 26px; }
  .tools { width: 100%; }
  .search { flex: 1; }
  .search input { font-size: 16px; }
  .view-btn { width: 46px; }
  .card { padding: 14px 16px 12px; }
  .card__head { gap: 14px; flex-wrap: wrap; }
  .mono { width: 50px; height: 46px; font-size: 17px; }
  .card__title h3 { font-size: 22px; }
  .card__title p { font-size: 15px; }
  .card__meta { width: 100%; justify-content: space-between; padding-top: 0; }
  .stat { padding: 2px 10px; }
  .stat__num { font-size: 24px; }
  .stat__label { font-size: 14px; }
  .card__foot { flex-wrap: wrap; }
  .list-row { grid-template-columns: 1fr auto; }
  .list-row > .col-num, .list-row--head { display: none; }
  .page-foot, .page-foot .link { font-size: 15px; }
  .footer__inner { font-size: 14px; }
  .tracker-head h1 { font-size: 24px; }
  .form-grid--3, .form-grid--2 { grid-template-columns: 1fr; }
  .type-pick { grid-template-columns: repeat(2, 1fr); }
  .holder-grid, .rack-grid { grid-template-columns: 1fr; }
  .hcard { padding: 14px; gap: 14px; }
  .holder-art { width: 64px; height: 82px; }
  .holder-hero { padding: 16px; gap: 14px; }
  .holder-art--lg { width: 72px; height: 94px; }
  .lg--hint { margin-left: 0; }
  .rack { --gap: 5px; --cell: clamp(20px, calc((100cqw - 60px) / var(--cols) - var(--gap)), 54px); padding: 12px 12px 14px 8px; grid-template-columns: 18px repeat(var(--cols), var(--cell)); }
  .modal__head, .modal__body, .modal__foot { padding-left: 16px; padding-right: 16px; }
  .ws-tabs a { padding: 10px 12px; font-size: 15px; }
  #apps-wrap { display: none; }
  .icon-btn { width: 36px; height: 36px; }
  .brand__name, .brand__product { font-size: 16px; }
  .tracker-head { gap: 12px; }
  .tracker-head > div { flex: 1; min-width: 0; }
  .tracker-head .mono { width: 44px; height: 40px; font-size: 16px; }
  .tracker-head .spacer { display: none; }
  .rack-head .spacer { flex-basis: 100%; height: 0; }
  .cobrand img { max-height: 30px; max-width: 90px; }
  .brand-wrap, .cobrand { gap: 8px; }
  .user-hero { padding: 16px; }
}
