/* ════════════════════════════════════════════════════════════════════
   BUILDOUT · app.css · the jobsite instrument (the design system)
   A production board a crew can run from a phone in a driveway: warm
   graphite ground, liftable-hardware elevation, signage-weight display
   type (Archivo), data in mono, one earned ember for the single primary
   action. Character from STRUCTURE (hairlines, ruled rows, tabular
   numerals), never decoration.

   TOKEN LAW: every color, radius, elevation, and motion value is a token
   from /assets/tokens.css + /assets/theme.css. Raw hex here is a defect.
   Elevation: one tier per surface (e-inset pairing allowed), ember glows
   only at focus. No em-dashes anywhere customer-facing.
   ════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════
   0 · RESET + GROUND
   ════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--obsidian);
  color: var(--platinum);
  font-family: var(--body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
input, select { font-family: inherit; }
::selection { background: color-mix(in srgb, var(--ember) 24%, transparent); color: var(--platinum); }
:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 2px; }
[hidden] { display: none !important; }

/* the instrument grid: a faint ruled backdrop, structure not decoration */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--hairline) 1px, transparent 1px) 0 0 / 100% 96px,
    radial-gradient(120% 60% at 80% -8%, color-mix(in srgb, var(--ember) 4%, transparent), transparent 60%);
  opacity: .55;
}

/* ════════════════════════════════════════════════════════════════════
   1 · TYPE VOICES
   display = Archivo (signage) · ui = Inter · data/meta = Plex Mono
   ════════════════════════════════════════════════════════════════════ */
.num, .money { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.mono-cap {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--plat-faint);
}
.dim { color: var(--plat-dim); }
.grow { flex: 1; min-width: 0; }

/* ════════════════════════════════════════════════════════════════════
   2 · TOPBAR · the command bar
   ════════════════════════════════════════════════════════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 14px;
  height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--e2);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-lockup .mark { width: 22px; height: 24px; flex-shrink: 0; display: block; }
.brand-lockup .word {
  font-family: var(--disp); font-weight: var(--disp-weight, 700);
  font-size: 16px; letter-spacing: var(--disp-track, -.015em); color: var(--platinum);
}
.brand-lockup .room {
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--plat-faint); padding-top: 3px;
}
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tb-count { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--plat-dim); }
.clock { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--plat-faint); }
.chip-meta {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--platinum); border: 1px solid var(--line-hi); border-radius: var(--r-chip);
  padding: 5px 8px; white-space: nowrap; box-shadow: var(--e1); background: var(--graphite-2);
}
.chip-meta.mode { color: var(--ember-text); border-color: color-mix(in srgb, var(--ember) 45%, var(--line-hi)); }
@media (max-width: 560px) { .tb-count, .clock { display: none; } }

/* ════════════════════════════════════════════════════════════════════
   3 · VIEW + BRIEFING
   ════════════════════════════════════════════════════════════════════ */
.view { padding: 20px 18px 28px; max-width: 1440px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .view { padding: 26px 26px 36px; } }
.v-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.v-head .briefing { flex: 1; min-width: 0; }
.briefing {
  font-family: var(--disp); font-weight: var(--disp-weight, 700);
  font-size: clamp(20px, 4.6vw, 25px); letter-spacing: var(--disp-track, -.015em);
  line-height: 1.15;
}
.briefing .dim2 {
  font-family: var(--body); font-weight: 500; font-size: .58em;
  letter-spacing: 0; color: var(--plat-faint); white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════════
   4 · PANELS, ROWS, CHIPS, STAT STRIP
   ════════════════════════════════════════════════════════════════════ */
.vpanel {
  background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--e-inset), var(--e2);
}
.vpanel-body { padding: 18px; }
.vrow {
  display: flex; align-items: center; gap: 14px;
  min-height: 44px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.vrow:last-child { border-bottom: none; }
.vrow .grow { flex: 1; min-width: 0; }
.vrow.handoff { color: var(--plat-dim); font-size: 12.5px; }
.vrow.handoff span:last-child { text-align: right; max-width: 62%; }
.empty-quote p { color: var(--plat-dim); line-height: 1.6; }

.chip {
  display: inline-block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; line-height: 1; border-radius: var(--r-chip);
  padding: 4px 7px; white-space: nowrap; vertical-align: middle;
  border: 1px solid transparent;
}
.chip.ok   { color: var(--green);     background: var(--tint-green); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.chip.warn { color: var(--amber);     background: var(--tint-amber); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.chip.bad  { color: var(--red-text);  background: var(--tint-red);   border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.chip.dim  { color: var(--plat-dim);  background: color-mix(in srgb, var(--platinum) 7%, transparent); }

/* the morning read: four figures, display-weight numerals */
.prop-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 760px) { .prop-strip { grid-template-columns: repeat(2, 1fr); } }
.prop-stat {
  background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 13px 15px 12px; box-shadow: var(--e-inset), var(--e2);
}
.prop-stat .ps-v {
  font-family: var(--disp); font-weight: 750; font-size: clamp(21px, 3.4vw, 26px);
  letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.prop-stat .ps-k { margin-top: 5px; font-size: 9.5px; }

/* ════════════════════════════════════════════════════════════════════
   5 · BUTTONS · exactly ONE gold CTA per surface (brand law)
   ════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .005em;
  min-height: 42px; padding: 0 20px;
  border-radius: var(--r-control); border: 1px solid var(--line-hi);
  background: var(--graphite-2); color: var(--platinum);
  white-space: nowrap; box-shadow: var(--e1);
  transition: border-color var(--m-fast) var(--ease), background var(--m-fast) var(--ease), box-shadow var(--m-fast) var(--ease);
}
.btn:hover { border-color: var(--plat-faint); background: var(--graphite-3); box-shadow: var(--e2); }
.btn:active { background: var(--graphite-2); box-shadow: var(--e-press); }
.btn:focus-visible { outline: none; box-shadow: var(--ring-ember); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12.5px; }
.btn-gold-sm {
  background: var(--grad-ember); color: var(--ember-ink); border: none; font-weight: 700;
  min-height: 40px; padding: 0 18px; font-size: 13px;
  box-shadow: var(--e2), inset 0 1px 0 color-mix(in srgb, var(--ember-hi) 60%, transparent);
}
.btn-gold-sm:hover { filter: brightness(1.06); border: none; }
.btn-gold-sm:active { box-shadow: var(--e-press); }
/* the focused confirm in the mint dialog · ember outline, not a second gold */
.btn-mint { border-color: color-mix(in srgb, var(--ember) 55%, var(--line-hi)); color: var(--ember-text); font-weight: 700; }
.btn-mint:hover { background: color-mix(in srgb, var(--ember) 10%, transparent); border-color: var(--ember); }
.fm-press { transition: transform var(--m-fast) var(--ease-spring); }
.fm-press:active { transform: scale(.97); }

/* ════════════════════════════════════════════════════════════════════
   6 · THE BOARD · snap-scrolling lanes of liftable cards
   ════════════════════════════════════════════════════════════════════ */
.kb {
  display: flex; gap: 12px; overflow-x: auto; align-items: flex-start;
  padding: 2px 2px 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.kb-col {
  min-width: 252px; width: 252px; flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--e-inset), var(--e2);
  transition: border-color var(--m-fast) var(--ease);
}
.kb-col.over { border-color: var(--ember-deep); }
.kb-head {
  display: flex; align-items: baseline; gap: 8px; padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--plat-dim);
}
.kb-head .sum { margin-left: auto; color: var(--plat-faint); letter-spacing: .04em; }
.kb-body { padding: 9px; min-height: 72px; display: flex; flex-direction: column; gap: 9px; }

/* the job card: an object you can lift, read in one glance, advance in one tap */
.kb-card {
  position: relative;
  background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--r-inner, 9px);
  padding: 11px 12px 10px; cursor: grab;
  box-shadow: var(--e1);
  transition: border-color var(--m-fast) var(--ease),
              background var(--m-fast) var(--ease),
              box-shadow var(--m-base) var(--ease),
              transform var(--m-base) var(--ease-spring);
}
.kb-card:hover { background: var(--graphite-3); border-color: var(--line-hi); box-shadow: var(--e-inset), var(--e2); transform: translateY(-2px); }
.kb-card:focus-visible { outline: none; border-color: var(--ember); box-shadow: var(--ring-ember); }
.kb-card:active { cursor: grabbing; }
.kb-card.dragging { opacity: .45; box-shadow: var(--e3); }
.kb-card .kc-top { display: flex; align-items: baseline; gap: 8px; }
.kb-card .kc-name {
  flex: 1; min-width: 0; text-align: left;
  font-family: inherit; font-weight: 600; font-size: 14px; letter-spacing: -.005em; line-height: 1.3;
  color: var(--platinum); background: none; border: 0; padding: 0; margin: 0; cursor: inherit;
}
.kb-card .kc-name:hover { color: var(--ember-text); }
.kb-card .kc-name:focus-visible { outline: none; border-radius: var(--r-chip); box-shadow: var(--ring-ember); }
.kb-card .kc-val { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: -.01em; color: var(--plat-dim); }
.job-card .job-label {
  margin: 3px 0 0; font-family: var(--body); font-size: 12px; letter-spacing: 0;
  text-transform: none; color: var(--plat-dim);
}
.job-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.job-pill {
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--plat-dim); border: 1px solid var(--line); border-radius: var(--r-chip); padding: 3px 6px;
}
.job-pill.warn { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, var(--line)); background: var(--tint-amber); }

/* the next-action law, on the card itself: what happens next, at a glance */
.kc-next {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line);
}
.kc-next .kn-cap { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; color: var(--ember-text); flex-shrink: 0; }
.kc-next .kn-label { font-size: 12px; font-weight: 550; color: var(--plat-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-card .kc-foot { position: absolute; top: 9px; right: 10px; }
.kb-card .kc-foot .chip { font-size: 8.5px; padding: 3px 5px; }
.kb-card:has(.kc-foot) .kc-top { padding-right: 34px; }

/* one-tap advance: drag is a desktop luxury; the arrow works in the field */
.kc-adv {
  position: absolute; right: 8px; bottom: 7px;
  width: 34px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; color: var(--plat-dim);
  background: var(--graphite); border: 1px solid var(--line-hi); border-radius: var(--r-chip);
  box-shadow: var(--e1);
  transition: color var(--m-fast) var(--ease), border-color var(--m-fast) var(--ease), background var(--m-fast) var(--ease);
}
.kc-adv:hover { color: var(--ember-text); border-color: var(--ember); background: var(--tint-ember, color-mix(in srgb, var(--ember) 9%, transparent)); }
.kc-adv:focus-visible { outline: none; box-shadow: var(--ring-ember); }
.kb-card:has(.kc-adv) .kc-next { padding-right: 40px; }

/* ════════════════════════════════════════════════════════════════════
   7 · EMPTY STATE · the blueprint plate
   ════════════════════════════════════════════════════════════════════ */
.board-empty { max-width: 560px; }
.empty-plate {
  display: block; width: 100%; height: auto; margin: 4px auto 14px;
  color: var(--ember); opacity: .9;
}
.empty-plate .faintline { opacity: .38; }

/* ════════════════════════════════════════════════════════════════════
   8 · THE SHEET · job drawer + mint dialog
   ════════════════════════════════════════════════════════════════════ */
#sheetScrim { position: fixed; inset: 0; background: var(--scrim); z-index: 1190; opacity: 0; pointer-events: none; transition: opacity var(--m-base) var(--ease); }
#sheetScrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: min(560px, 100%);
  max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--graphite); border: 1px solid var(--line-hi); border-bottom: none;
  border-radius: var(--r-card-lg, 20px) var(--r-card-lg, 20px) 0 0;
  z-index: 1200; padding: 12px 20px max(18px, env(safe-area-inset-bottom));
  box-shadow: var(--e4);
}
@media (min-width: 760px) {
  .sheet {
    left: auto; right: 24px; bottom: 24px; transform: none; width: 432px;
    border: 1px solid var(--line-hi); border-radius: var(--r-card);
    box-shadow: var(--e3);
  }
  /* desktop drawer is a non-modal side panel: the board stays live, so the
     invisible scrim must not eat clicks (close via X or Escape; clicking
     another card switches to it). Mobile keeps the tap-outside-to-dismiss scrim. */
  #sheetScrim, #sheetScrim.on { background: transparent; pointer-events: none; }
}
.sheet-grip { width: 36px; height: 4px; border-radius: var(--r-pill); background: var(--line-hi); margin: 2px auto 12px; }
@media (min-width: 760px) { .sheet-grip { display: none; } }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sheet-head strong {
  font-family: var(--disp); font-weight: var(--disp-weight, 700);
  font-size: 17px; letter-spacing: -.01em; line-height: 1.2;
}
.sheet-head .grow { flex: 1; min-width: 0; }
.sheet-sub { margin-top: 4px; font-size: 12.5px; color: var(--plat-dim); }
.sheet-sub, .sheet-head .sheet-sub.mono-cap { font-family: var(--body); text-transform: none; letter-spacing: 0; }
.sheet-x {
  background: var(--graphite-2); border: 1px solid var(--line-hi); border-radius: var(--r-control);
  color: var(--plat-dim); width: 32px; height: 32px; flex-shrink: 0; font-size: 13px; box-shadow: var(--e1);
}
.sheet-x:hover { color: var(--platinum); border-color: var(--plat-faint); }
.sheet-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--plat-faint); margin-bottom: 8px; }

/* THE CARD STANDARD · the next-action banner is this app's status card:
   left accent + graphite + e2. As a button it is the drawer's one earned CTA. */
.next-banner {
  display: flex; flex-direction: column; gap: 3px;
  width: 100%; text-align: left;
  background: var(--graphite-2);
  border: 1px solid color-mix(in srgb, var(--ember) 40%, var(--line));
  border-left: 3px solid var(--ember);
  border-radius: var(--r-card);
  box-shadow: var(--e2);
  padding: 12px 14px; margin-bottom: 14px;
}
.next-banner .nb-cap { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ember-text); }
.next-banner .nb-label { font-size: 15px; font-weight: 650; letter-spacing: -.005em; color: var(--platinum); }
.next-banner.done { border-color: var(--line); border-left-color: var(--green); background: transparent; box-shadow: var(--e1); }
.next-banner.done .nb-cap { color: var(--green); }
.next-banner.is-cta { position: relative; cursor: pointer; padding-right: 44px; transition: border-color var(--m-fast) var(--ease), background var(--m-fast) var(--ease), transform var(--m-base) var(--ease-spring); }
.next-banner.is-cta:hover { border-color: var(--ember); background: color-mix(in srgb, var(--ember) 10%, var(--graphite-2)); }
.next-banner.is-cta:focus-visible { outline: none; box-shadow: var(--ring-ember); }
.next-banner.is-cta .nb-go { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--ember-text); font-size: 18px; line-height: 1; }

/* segmented control · Work / Field / Record */
.drawer-tabs {
  display: flex; gap: 3px; margin-bottom: 16px;
  padding: 3px; border: 1px solid var(--line); border-radius: var(--r-control);
  background: var(--obsidian); box-shadow: var(--e-inset, none);
}
.dtab {
  flex: 1; text-align: center; min-height: 34px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .005em;
  color: var(--plat-dim); background: transparent;
  border: 1px solid transparent; border-radius: var(--r-chip);
  transition: color var(--m-fast) var(--ease), background var(--m-fast) var(--ease);
}
.dtab:hover { color: var(--platinum); }
.dtab.on { color: var(--ember-ink); background: var(--ember); box-shadow: var(--e1); }
.dtab:focus-visible { outline: none; box-shadow: var(--ring-ember); }

.drawer-title { font-size: 12.5px; font-weight: 650; letter-spacing: -.005em; color: var(--platinum); margin-bottom: 9px; }
.drawer-view > .drawer-title:not(:first-child) { margin-top: 18px; }
.drawer-title .drawer-count { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--plat-faint); font-weight: 500; margin-left: 5px; }
.drawer-empty { color: var(--plat-dim); font-size: 12.5px; margin-bottom: 10px; }

/* state chips */
.job-states { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.job-state {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--plat-dim); border: 1px solid var(--line); border-radius: var(--r-chip);
  min-height: 30px; padding: 0 10px; background: var(--obsidian);
  transition: border-color var(--m-fast) var(--ease), color var(--m-fast) var(--ease);
}
.job-state:hover { border-color: var(--line-hi); color: var(--platinum); }
.job-state.on { color: var(--ember-ink); background: var(--ember); border-color: var(--ember); box-shadow: var(--e1); }
.job-state:focus-visible { outline: none; box-shadow: var(--ring-ember); }

/* status toggles · big enough for gloves */
.job-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
@media (max-width: 480px) { .job-status-grid { grid-template-columns: 1fr; } }
.job-tog {
  text-align: left; font-size: 12px; font-weight: 550; color: var(--plat-dim);
  border: 1px solid var(--line); border-radius: var(--r-control);
  min-height: 42px; padding: 9px 11px; background: var(--obsidian); box-shadow: var(--e1);
  transition: border-color var(--m-fast) var(--ease), color var(--m-fast) var(--ease), background var(--m-fast) var(--ease);
}
.job-tog:hover { border-color: var(--line-hi); }
.job-tog.on { color: var(--platinum); border-color: var(--ember); background: color-mix(in srgb, var(--ember) 9%, var(--obsidian)); }
.job-tog:focus-visible { outline: none; box-shadow: var(--ring-ember); }

/* fields */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.jf-input, .jf-select {
  width: 100%; min-height: 44px; background: var(--obsidian);
  border: 1px solid var(--line-hi); border-radius: var(--r-control);
  color: var(--platinum); padding: 10px 12px; font-size: 15px; box-shadow: var(--e1);
}
.jf-input.full { display: block; }
.jf-input:focus, .jf-select:focus { outline: none; border-color: var(--ember); box-shadow: var(--ring-ember); }
.jf-input::placeholder { color: var(--plat-faint); }

.job-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* punch list */
.punch-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.punch-row {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  background: var(--obsidian); border: 1px solid var(--line); border-radius: var(--r-control);
  min-height: 44px; padding: 9px 11px; color: var(--platinum); font-size: 13.5px; box-shadow: var(--e1);
  transition: border-color var(--m-fast) var(--ease);
}
.punch-row:hover { border-color: var(--line-hi); }
.punch-row:focus-visible { outline: none; box-shadow: var(--ring-ember); }
.punch-row .punch-box {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 1px solid var(--line-hi); border-radius: var(--r-chip);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--green-ink);
  transition: background var(--m-fast) var(--ease), border-color var(--m-fast) var(--ease);
}
.punch-row.done .punch-box { background: var(--green); border-color: var(--green); }
.punch-row.done .grow { color: var(--plat-faint); text-decoration: line-through; }
.punch-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

/* photos */
.photo-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.photo-chip { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--plat-dim); border: 1px solid var(--line); border-radius: var(--r-chip); padding: 6px 8px; }

/* timeline */
.timeline { border-top: 1px solid var(--line); }
.tl-row { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.tl-row .tl-type { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ember-text); min-width: 86px; }
.tl-row .tl-detail { color: var(--plat-dim); }
.tl-row .tl-ago { font-size: 10px; color: var(--plat-faint); margin-left: auto; white-space: nowrap; }

/* ════════════════════════════════════════════════════════════════════
   9 · TOAST + MOTION DISCIPLINE
   ════════════════════════════════════════════════════════════════════ */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(14px);
  z-index: 1300; max-width: min(520px, calc(100% - 28px));
  display: flex; align-items: baseline; gap: 10px;
  background: var(--graphite); border: 1px solid var(--line-hi); border-left: 2px solid var(--ember);
  border-radius: var(--r-control); padding: 12px 15px; box-shadow: var(--e3);
  opacity: 0; pointer-events: none;
  transition: opacity var(--m-base) var(--ease), transform var(--m-base) var(--ease-exit);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .toast-tag { color: var(--ember-text); flex-shrink: 0; }
.toast .toast-msg { font-size: 13.5px; color: var(--platinum); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .fm-press:active { transform: none; }
  .kb-card:hover { transform: none; }
}
