/* ============================================================================
   1WATER.AI — BRAND CSS KIT  (editorial-compliance design system)
   Tokens extracted from live https://1water.ai + original mockups.
   All 24 screen mockups compose from these classes. Do not fork; extend.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ----------------------------------------------------------------------------
   1. TOKENS
   ---------------------------------------------------------------------------- */
:root {
  /* Surfaces — warm cream stack */
  --cream:        #F5EFE2;   /* page background (live site body) */
  --cream-200:    #ECE4D2;   /* group-row / subtle fill */
  --surface:      #FAF6EE;   /* warm near-white card surface */
  --panel:        #F7F2E8;   /* panel / inset */
  --surface-sink: #F1EAD9;   /* sunken wells (numpad, status bar) */

  /* Ink */
  --ink:          #1A1613;   /* warm near-black */
  --ink-soft:     #433C36;   /* body copy */
  --faint:        #6B5F54;   /* secondary */
  --muted:        #8E8279;   /* mono labels / captions */

  /* Brand teal — PRIMARY: system-calculated, active, CTAs */
  --teal:         #0F766E;
  --teal-deep:    #0A5A51;
  --teal-bright:  #2AA597;
  --teal-tint:    #DEF8F2;
  --teal-tint-2:  #BDF0E7;
  --teal-line:    rgba(15,118,110,.30);   /* teal hairline on tints */

  /* Foreground used ON teal / dark fills — warm off-white, never #fff */
  --text-on-teal: #FBF7EF;

  /* Semantic states */
  --red:          #C0392B;   /* violation / hard out-of-range / review */
  --red-tint:     #FBEAE6;
  --amber:        #8A5A07;   /* soft out-of-range text (orange box) */
  --amber-line:   #C2873B;   /* orange cell box outline */
  --amber-tint:   #F9EDD7;
  --scada:        #37618E;   /* read-only SCADA synced rows/chips */
  --scada-tint:   #E6EDF6;
  --scada-line:   rgba(55,97,142,.35);
  --amber-soft-line: rgba(194,135,59,.45);
  --red-line:     rgba(192,57,43,.35);

  /* Off-token utility hexes promoted to tokens */
  --galv:         #9AA0A6;   /* galvanized service-line swatch */
  --locked-grey:  #B6AE9F;   /* disabled / locked button face */
  --warm-hover:   #EFE7D6;   /* warm row/control hover */

  /* Lines */
  --hairline:     #DDD6C6;
  --line-faint:   rgba(26, 22, 19, 0.08);
  --line-strong:  rgba(26, 22, 19, 0.14);

  /* Type */
  --serif: 'Fraunces', 'New York', Georgia, serif;
  --sans:  'Inter', -apple-system, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Type scale (editorial rhythm) */
  --t-display: 52px;
  --t-h1:      38px;
  --t-h2:      27px;
  --t-h3:      20px;
  --t-body:    15px;
  --t-sm:      13px;
  --t-label:   11px;

  /* Radius / spacing / shadow */
  --r:    10px;
  --r-sm: 7px;
  --r-lg: 14px;
  --r-pill: 999px;
  --sp: 8px;
  --shadow-1: 0 1px 2px rgba(26,22,19,.05), 0 1px 1px rgba(26,22,19,.03);
  --shadow-2: 0 8px 28px rgba(26,22,19,.08), 0 2px 6px rgba(26,22,19,.04);
  --shadow-device: 0 40px 90px rgba(26,22,19,.30), 0 12px 30px rgba(26,22,19,.18);
}

/* ----------------------------------------------------------------------------
   2. BASE
   ---------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; }
p { color: var(--ink-soft); margin: 0; }
a { color: var(--teal); text-decoration: none; }

/* ----------------------------------------------------------------------------
   3. FRAMES — desktop canvas + phone device
   ---------------------------------------------------------------------------- */
.desktop {
  width: 1440px;
  background: var(--cream);
  padding: 40px 56px 48px;
  margin: 0 auto;
  position: relative;
}
.desktop--app {  /* in-app chrome variant: rounded window over cream */
  padding: 0;
}

/* Browser/app window chrome (matches live hero screenshot) */
.window {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.window__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--hairline);
}
.window__dots { display: flex; gap: 7px; }
.window__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.window__dots i:nth-child(1){ background:#FF5F57; }
.window__dots i:nth-child(2){ background:#FEBC2E; }
.window__dots i:nth-child(3){ background:#28C840; }
.window__url {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: var(--t-sm); color: var(--faint);
  letter-spacing: .01em;
}

/* Phone device frame — 390px, notch + status bar 9:41 / 5G */
.phone {
  width: 390px;
  background: var(--surface);
  border: 13px solid #14110E;
  border-radius: 52px;
  box-shadow: var(--shadow-device);
  overflow: hidden;
  position: relative;
}
.phone__status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px 8px;
  font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--ink);
  position: relative;
}
.phone__status::before { /* notch */
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 150px; height: 30px; background: #14110E;
  border-bottom-left-radius: 18px; border-bottom-right-radius: 18px;
}
.phone__status .time { z-index: 1; }
.phone__status .sig  { z-index: 1; display: flex; align-items: center; gap: 7px; letter-spacing: .02em; }
.phone__status .sig::after { /* battery */
  content: ""; width: 24px; height: 12px; border: 1.5px solid var(--ink);
  border-radius: 3px; background:
    linear-gradient(var(--ink),var(--ink)) left/70% 100% no-repeat;
  background-clip: content-box; padding: 1.5px;
}
.phone__home { /* home indicator */
  height: 5px; width: 132px; border-radius: 3px; background: var(--ink);
  opacity: .8; margin: 8px auto 9px;
}
.phone__body { padding: 0 0 4px; }

/* ----------------------------------------------------------------------------
   4. TYPOGRAPHY HELPERS
   ---------------------------------------------------------------------------- */
.h-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; line-height: 1.08; }
.display { font-family: var(--serif); font-size: var(--t-display); letter-spacing: -.03em; line-height: 1.02; }
.h1 { font-size: var(--t-h1); letter-spacing: -.018em; line-height: 1.1; }
.h2 { font-size: var(--t-h2); letter-spacing: -.014em; line-height: 1.15; }
.h3 { font-family: var(--sans); font-weight: 600; font-size: var(--t-h3); letter-spacing: -.01em; }
.serif-italic { font-style: italic; }
.lede { font-size: 17px; color: var(--ink-soft); line-height: 1.55; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* Mono tracked-uppercase labels — the regulatory voice */
.mono-label {
  font-family: var(--mono); font-weight: 500;
  font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.mono-val { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Regulatory glyph accents: § ⚖ ◎ ◉ ✓ — use over generic SaaS icons */
.glyph { font-family: var(--serif); font-size: 1.05em; line-height: 1; color: var(--teal); }
.glyph--ink   { color: var(--ink); }
.glyph--muted { color: var(--muted); }
.glyph--red   { color: var(--red); }

/* ----------------------------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: var(--t-sm);
  padding: 9px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--panel); }
.btn-primary {
  background: var(--teal); border-color: var(--teal-deep); color: var(--text-on-teal);
  box-shadow: var(--shadow-1);
}
/* explicit disabled / locked visual state (no pointer, greyed face) */
.btn[disabled], .btn.locked {
  background: var(--locked-grey); border-color: var(--locked-grey);
  color: var(--surface); opacity: .65; cursor: not-allowed; pointer-events: none;
  box-shadow: none;
}
.btn-primary[disabled], .btn-primary.locked { background: var(--locked-grey); border-color: var(--locked-grey); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--faint); }
.btn-ghost:hover { background: var(--line-faint); color: var(--ink); }
.btn-sm { padding: 6px 11px; font-size: var(--t-label); }

/* ----------------------------------------------------------------------------
   6. CARDS / PANELS
   ---------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 20px 22px;
  box-shadow: var(--shadow-1);
}
.card--flush { padding: 0; overflow: hidden; }
.panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 18px 20px;
}
.panel--inset { background: var(--surface-sink); box-shadow: inset 0 1px 2px rgba(26,22,19,.04); }
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ----------------------------------------------------------------------------
   7. TABS
   ---------------------------------------------------------------------------- */
.tabs {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--surface-sink); border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
}
.tab {
  font-family: var(--sans); font-weight: 500; font-size: var(--t-sm);
  padding: 7px 14px; border-radius: 5px; color: var(--faint); cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
}
.tab.active { background: var(--surface); color: var(--ink); border-color: var(--hairline); box-shadow: var(--shadow-1); }

/* underline-style tab strip (in-app) */
.tabbar { display: flex; gap: 22px; border-bottom: 1px solid var(--hairline); }
.tabbar .tab { border-radius: 0; padding: 11px 0; background: none; box-shadow: none; }
.tabbar .tab.active { border-bottom: 2px solid var(--teal); color: var(--ink); }

/* ----------------------------------------------------------------------------
   8. CHIPS / BADGES
   ---------------------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--faint);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip--nodot::before { display: none; }

/* flow / value provenance chips */
.chip-scada    { color: var(--scada); border-color: var(--scada-line);    background: var(--scada-tint); }
.chip-manual   { color: var(--faint); border-color: var(--line-strong);   background: var(--surface); }
.chip-flag-high{ color: var(--red);   border-color: var(--red-line);      background: var(--red-tint); }
.chip-flag-med { color: var(--amber); border-color: var(--amber-soft-line); background: var(--amber-tint); }
.chip-review   { color: var(--text-on-teal); border-color: var(--red); background: var(--red); }
.chip-review::before { background: var(--text-on-teal); }
.chip-ok       { color: var(--teal); border-color: var(--teal-line); background: var(--teal-tint); }

/* provenance / system-calculated tags ------------------------------------- */
/* tag a value the SYSTEM computed (deterministic, no operator edit) */
.tag-deterministic {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-deep); border: 1px solid var(--teal); background: var(--teal-tint);
  border-radius: var(--r-pill); padding: 2px 7px;
}
/* inline marker placed ON a system-calculated number (lbs/day, %, totals) */
.tag-deterministic-chip { position: relative; }
.tag-deterministic-chip::after {
  content: "◎"; color: var(--teal); font-size: .8em; margin-left: 4px; vertical-align: 1px;
}

/* Legend swatch (small key) */
.swatch { width: 11px; height: 11px; border-radius: 3px; display: inline-block; vertical-align: -1px; }
.swatch--scada  { background: var(--scada-tint); border: 1px solid var(--scada); }
.swatch--amber  { background: var(--surface); border: 1.5px solid var(--amber-line); }
.swatch--enter  { background: var(--teal-tint); border: 1px solid var(--teal); }
.swatch--hard   { background: var(--red-tint); border: 1.5px solid var(--red); }
.swatch--galv   { background: var(--galv); border: 1px solid var(--line-strong); }

/* ----------------------------------------------------------------------------
   9. TRUST-TRIAD FOOTER — on every screen
   ---------------------------------------------------------------------------- */
.trust {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  padding: 13px 4px 2px; border-top: 1px solid var(--line-faint); margin-top: 22px;
}
.trust b { font-weight: 500; color: var(--faint); }
.trust .dot { color: var(--hairline); }
.trust .t-op::before    { content: "◉ "; color: var(--ink); }
.trust .t-calc::before  { content: "◎ "; color: var(--teal); }
.trust .t-human::before { content: "✓ "; color: var(--teal); }

/* ----------------------------------------------------------------------------
   10. RING — completeness donut (conic-gradient)
   ---------------------------------------------------------------------------- */
.ring {
  --pct: 78; --size: 46px;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--pct)*1%), var(--cream-200) 0);
  display: grid; place-items: center; flex: none;
}
.ring::after {
  content: attr(data-val);
  width: calc(var(--size) - 11px); height: calc(var(--size) - 11px);
  background: var(--surface); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--ink);
}
.ring--red { background: conic-gradient(var(--red) calc(var(--pct)*1%), var(--cream-200) 0); }

/* ----------------------------------------------------------------------------
   11. GRID — daily round table (frozen header, group rows, flagged cells)
   ---------------------------------------------------------------------------- */
.grid { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.grid th, .grid td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-faint); }
.grid thead th {
  position: sticky; top: 0; background: var(--surface);
  font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}
.grid thead th.col-time { color: var(--faint); }
/* sticky first (parameter) column so it stays visible while round columns scroll */
.grid .pcol { position: sticky; left: 0; z-index: 2; background: var(--surface); }
.grid thead th.pcol { z-index: 3; }
.grid tr.group td { /* group header spans full width; keep above sticky col */ }
.grid thead th .sub { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; letter-spacing: .06em; }
.grid .num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.grid .pname { font-weight: 500; color: var(--ink); }
.grid .pname .u { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .06em; margin-top: 2px; text-transform: uppercase; }

/* monitoring-point group header row */
.grid tr.group td {
  background: var(--cream-200);
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); font-weight: 500; padding: 7px 14px;
  border-bottom: 1px solid var(--hairline);
}
.grid tr.group td .stage { color: var(--muted); }

/* entering / upcoming column tints */
.grid td.col-entering, .grid th.col-entering { background: var(--teal-tint); }
.grid td.col-upcoming, .grid th.col-upcoming { color: var(--muted); }

/* the focused entry cell */
.cell-active { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: 5px; }

/* out-of-range soft cell — orange box */
.cell-flag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; padding: 5px 8px; border-radius: var(--r-sm);
  border: 1.5px solid var(--amber-line); color: var(--amber); font-weight: 600;
  background: var(--surface);
}
.cell-flag--hard { border-color: var(--red); color: var(--red); background: var(--red-tint); }

/* SCADA synced rows — blue read-only */
.grid tr.scada td { background: rgba(230,237,246,.55); color: var(--scada); }
.grid tr.scada .num { color: var(--scada); }
.grid tr.scada .pname { color: var(--scada); }
.grid tr.scada .pname .u { color: rgba(55,97,142,.7); }

/* ----------------------------------------------------------------------------
   12. NUMPAD
   ---------------------------------------------------------------------------- */
.numpad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 18px; background: var(--surface-sink);
}
.numpad button {
  font-family: var(--mono); font-size: 26px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r); padding: 18px 0; cursor: pointer;
  box-shadow: var(--shadow-1);
}
.numpad button:active { background: var(--panel); }
.numpad button.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--faint); }

/* ----------------------------------------------------------------------------
   13. FIELD — large entry w/ unit-lock padlock + prev ghost
   ---------------------------------------------------------------------------- */
.field { padding: 18px 24px; border-bottom: 1px solid var(--line-faint); }
.field__top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.field__name { font-weight: 600; font-size: 17px; color: var(--ink); }
.field__prev { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.field__row { display: flex; gap: 10px; align-items: stretch; }
.field__input {
  flex: 1; display: flex; align-items: center;
  font-family: var(--mono); font-size: 34px; color: var(--ink);
  padding: 14px 18px; background: var(--surface);
  border: 1.5px solid var(--hairline); border-radius: var(--r);
}
.field__input.is-flag { border-color: var(--amber-line); }
.field__input.is-active { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.unit-lock {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 64px; background: var(--surface-sink);
  border: 1px solid var(--hairline); border-radius: var(--r);
  font-family: var(--mono); font-size: 13px; color: var(--faint);
}
.unit-lock .pad { font-size: 12px; color: var(--amber-line); line-height: 1; }
.field__warn {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--amber-tint); color: var(--amber); font-size: 14px; font-weight: 500;
}
.field__warn .g { color: var(--amber-line); }

/* ----------------------------------------------------------------------------
   14. SYS-CARD — portfolio system card w/ status
   ---------------------------------------------------------------------------- */
.sys-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-1);
}
.sys-card__id {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted);
  text-transform: uppercase;
}
.sys-card__name { font-family: var(--serif); font-size: 19px; line-height: 1.2; margin-top: 2px; }
.sys-card__meta { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 5px; letter-spacing: .03em; }
.sys-card__spacer { flex: 1; }
.sys-card__stat { text-align: right; }
.sys-card__stat .big { font-family: var(--mono); font-weight: 600; font-size: 18px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 6px; }
.status-dot--ok   { background: var(--teal); }
.status-dot--due  { background: var(--amber-line); }
.status-dot--late { background: var(--red); }

/* ----------------------------------------------------------------------------
   15. CALENDAR
   ---------------------------------------------------------------------------- */
.cal { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.cal__head { display: grid; grid-template-columns: repeat(7,1fr); background: var(--panel); border-bottom: 1px solid var(--hairline); }
.cal__head span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 9px 0; text-align: center; }
.cal__grid { display: grid; grid-template-columns: repeat(7,1fr); }
.cal__day { min-height: 76px; border-right: 1px solid var(--line-faint); border-bottom: 1px solid var(--line-faint); padding: 7px 8px; position: relative; }
.cal__day .d { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.cal__day.is-muted .d { color: var(--hairline); }
.cal__day.is-today { background: var(--teal-tint); }
.cal__day.is-today .d { color: var(--teal-deep); font-weight: 600; }
.cal__ev { margin-top: 5px; font-size: 10px; font-weight: 500; padding: 2px 6px; border-radius: 4px; line-height: 1.3; }
.cal__ev--due { background: var(--amber-tint); color: var(--amber); }
.cal__ev--done{ background: var(--teal-tint); color: var(--teal-deep); }
.cal__ev--scada{ background: var(--scada-tint); color: var(--scada); }

/* ----------------------------------------------------------------------------
   16. CHAT — message bubbles + proposed config-diff card
   ---------------------------------------------------------------------------- */
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; padding: 12px 15px; border-radius: var(--r-lg); font-size: 14px; line-height: 1.5; }
.msg--ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--hairline); border-bottom-left-radius: 4px; color: var(--ink-soft); }
.msg--user { align-self: flex-end; background: var(--ink); color: var(--surface); border-bottom-right-radius: 4px; }
.msg__who { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.msg--user .msg__who { color: rgba(250,246,238,.6); }

.diff { align-self: flex-start; max-width: 92%; width: 100%; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1); }
.diff__head { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; background: var(--panel); border-bottom: 1px solid var(--hairline); }
.diff__head .ttl { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.diff__row { display: flex; align-items: center; gap: 10px; padding: 9px 15px; font-family: var(--mono); font-size: 12.5px; border-bottom: 1px solid var(--line-faint); }
.diff__row .k { color: var(--muted); flex: 1; }
.diff__row .old { color: var(--muted); text-decoration: line-through; }
.diff__row .arr { color: var(--hairline); }
.diff__row .new { color: var(--teal-deep); font-weight: 600; }
.diff__act { display: flex; gap: 9px; padding: 12px 15px; background: var(--surface); }

/* ----------------------------------------------------------------------------
   17. TABLE — data table for LSL / sampling schedules
   ---------------------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.table thead th {
  font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-align: left;
  padding: 10px 14px; border-bottom: 1px solid var(--hairline);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-faint); color: var(--ink-soft); }
.table tbody tr:hover { background: var(--panel); }
.table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.table .id  { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .02em; }

/* ----------------------------------------------------------------------------
   18. UTILITIES
   ---------------------------------------------------------------------------- */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .gap-4 { gap: 32px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.divider { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }
