/* ============================================================
   app.css — layout and components.
   No literal colour, font family, radius or shadow lives here.
   Every one resolves through a custom property in tokens.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* Components below set `display`, which would otherwise beat the UA rule. */
[hidden] { display: none !important; }

html { background: var(--chrome); }

body {
  margin: 0;
  background: var(--chrome);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

#app { max-width: 560px; margin: 0 auto; }

ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- the screen and its halftone ---------- */

.screen {
  position: relative;
  overflow: hidden;
  background: var(--ground);
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(22px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
           calc(30px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  background-size: var(--texture-size);
  opacity: var(--texture-opacity);
  z-index: 1;
  pointer-events: none;
}

.z { position: relative; z-index: 9; }

/* Every content surface is a plate. Text never sits on the halftone. */
.plate {
  position: relative;
  z-index: 9;
  background: var(--surface);
  box-shadow: 0 0 0 var(--edge-width) var(--accent-1);
  border-radius: var(--radius);
  padding: 17px 15px 19px;
}
.plate.flush { padding: 0; }

/* ---------- top bar ---------- */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 9;
  margin: 0 0 16px;
}
.top h1 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent-2);
  letter-spacing: -.01em;
  min-width: 0;
}
.topnav {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  flex: 0 0 auto;
  margin-left: auto;
}
.navchip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-1);
  box-shadow: inset 0 0 0 var(--edge-hair) var(--accent-1);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}
.navchip.primary { background: var(--accent-1); color: var(--ink-inverse); box-shadow: none; }
.navchip.icon { padding: 0; width: 44px; justify-content: center; }
.navchip svg { display: block; }

/* ---------- photo wells ---------- */

.photo { position: relative; overflow: hidden; background: var(--surface-alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo img:not([src]), .photo img[src=""] { display: none; }
.photo .phl {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-photo);
  text-align: center;
  padding: 0 12px;
}
.photo img[src]:not([src=""]) ~ .phl { display: none; }

/* the editor's inert photo well */
.photo.well {
  aspect-ratio: 16 / 10;
  background: none;
  box-shadow: inset 0 0 0 var(--edge-hair) var(--rule-3);
}

/* ---------- 01 recipe list ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 9;
}
.cell {
  display: block;
  text-align: left;
  width: 100%;
  background: var(--surface);
  box-shadow: 0 0 0 var(--edge-width) var(--accent-1);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.cell .photo { aspect-ratio: 1 / 1; border-bottom: var(--edge-width) solid var(--accent-1); }
.ccap { padding: 10px 10px 12px; }
.ct {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: .98;
  text-transform: uppercase;
  color: var(--accent-2);
  overflow-wrap: anywhere;
}
.cs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--accent-1);
  margin-top: 7px;
}
.cs .rate { color: var(--accent-2); }
.cs .none { color: var(--ink-dim); font-weight: 400; }

/* backup nag */
.nag {
  position: relative;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 11px 12px;
  background: var(--surface);
  box-shadow: 0 0 0 var(--edge-hair) var(--accent-1);
  border-radius: var(--radius);
}
.nag button.nagmain {
  flex: 1;
  text-align: left;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent-1);
  cursor: pointer;
  min-height: 22px;
}
.nag button.nagx {
  flex: 0 0 auto;
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--ink-dim);
  cursor: pointer;
  width: 44px;
  height: 44px;
  margin: -11px -12px -11px 0;
}

/* empty states — named `blank` so it can't collide with .meal.empty */
.blank {
  position: relative;
  z-index: 9;
  padding: 34px 18px 30px;
  text-align: center;
  background: var(--surface);
  box-shadow: inset 0 0 0 var(--edge-hair) var(--rule-2);
  border-radius: var(--radius);
}
.blank p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
}

/* ---------- 02 recipe ---------- */

.hero { aspect-ratio: 16 / 10; }
.rt {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: .98;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--accent-2);
  overflow-wrap: anywhere;
}
.rt.screen-title { font-size: 30px; }
.rd {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 10px;
  white-space: pre-wrap;
}
.rtime {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-top: 10px;
}
.sh {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin: 22px 0 10px;
  border-bottom: var(--edge-hair) solid var(--rule-3);
  padding-bottom: 8px;
}

.ing li {
  padding: 9px 0;
  display: flex;
  gap: 11px;
  align-items: baseline;
  border-bottom: var(--rule-width) solid var(--rule);
}
.ing .q {
  flex: 0 0 auto;
  min-width: 64px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent-2);
}
.ing .nm {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.stp li {
  padding: 7px 0;
  display: flex;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.stp .n {
  flex: 0 0 20px;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-dim);
}
.stp span:last-child { overflow-wrap: anywhere; }

/* ---------- buttons ---------- */

.btn {
  margin: 20px 0 0;
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 0;
  min-height: 44px;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--accent-1);
  color: var(--ink-inverse);
  border-radius: var(--radius);
  cursor: pointer;
}
.btn.alt {
  background: none;
  box-shadow: inset 0 0 0 var(--edge-width) var(--accent-2);
  color: var(--accent-2);
}
.btn.quiet {
  background: none;
  box-shadow: inset 0 0 0 var(--edge-hair) var(--rule-3);
  color: var(--ink-muted);
}
.btn[disabled] { opacity: .45; cursor: default; }

.linkbtn {
  display: inline-block;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-1);
  cursor: pointer;
  padding: 14px 2px;
  min-height: 44px;
}
.linkbtn.dim { color: var(--ink-dim); }

.row-actions { display: flex; gap: 9px; }
.row-actions .btn { flex: 1; margin: 20px 0 0; }

/* ---------- recommendation ---------- */

.rec {
  margin: 12px 0 0;
  padding: 13px 13px 15px;
  box-shadow: inset 0 0 0 var(--edge-hair) var(--accent-2);
  border-radius: var(--radius);
}
.rec p.src {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 7px;
}
.rec p.txt {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
}

/* ---------- make log ---------- */

.log {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 10px;
  padding: 14px 13px 16px;
  background: var(--surface);
  box-shadow: 0 0 0 var(--edge-hair) var(--rule-3);
  border-radius: var(--radius);
  position: relative;
  z-index: 9;
  cursor: pointer;
}
.lmeta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent-1);
}
.lmeta span:last-child { color: var(--ink-dim); font-weight: 400; }
.lstars {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 18px;
  margin-top: 10px;
  line-height: 1;
}
.lstars .lnum {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-2);
}

/* ---------- stars, whole and half ---------- */

.stars { display: inline-flex; gap: 2px; line-height: 1; }
.star {
  position: relative;
  display: inline-block;
  color: var(--rule-2);
  line-height: 1;
}
.star .fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  font-style: normal;
  color: var(--accent-2);
}
.lchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lfl {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin: 14px 0 5px;
}
.lbody {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* ---------- chips ---------- */

.c {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  background: none;
  box-shadow: inset 0 0 0 var(--edge-hair) var(--chip-rule);
  color: var(--ink-muted);
}

/* Selected: wins take pink, problems take yellow, so the shape of a cook
   reads from across the room without reading a single word. Plain `.on` is
   pink too — the editor's ingredient picker has no win/problem sense. */
.c.on         { background: var(--accent-1); color: var(--ink-inverse); box-shadow: none; }
.c.on.win     { background: var(--accent-1); color: var(--ink-inverse); box-shadow: none; }
.c.on.problem { background: var(--accent-2); color: var(--ink-inverse); box-shadow: none; }

/* tappable chips are the tap target themselves — no negative-margin trickery */
button.c { min-height: 44px; padding: 0 16px; cursor: pointer; }

/* ---------- 03 cook mode ---------- */

.cookwrap { position: relative; z-index: 9; }
.cookbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.cookbar .ctitle {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--accent-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pips { display: flex; gap: 5px; flex-wrap: wrap; }
.pip { width: 22px; height: 4px; background: var(--rule-2); }
.pip.on { background: var(--accent-2); }
/* .82 leading means the glyph overflows its line box, so the number needs
   room above it or it collides with the pips. */
.stepn {
  font-family: var(--font-display);
  font-size: 70px;
  line-height: .82;
  color: var(--accent-1);
  margin-top: 22px;
}
.steptx {
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 14px;
  overflow-wrap: anywhere;
}
.needbar {
  margin-top: 24px;
  padding: 13px 13px 15px;
  box-shadow: inset 0 0 0 var(--edge-hair) var(--rule-3);
  border-radius: var(--radius);
}
.needbar p {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 8px;
}
.needbar div {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--accent-2);
}
.cooknav { display: flex; gap: 9px; margin-top: 20px; }
.cooknav .btn { margin: 0; flex: 1; }

/* ---------- 04 log form ---------- */

.rating { display: flex; gap: 8px; margin: 0 0 4px; }
.rating button {
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ratelbl {
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--ink-dim);
  margin: 0 0 20px;
}
.ratelbl button {
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--ink-dim);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 11px 2px;
  margin: -11px 0;
}
.grp { margin: 0 0 14px; }
.grpn {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin: 0 0 7px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.field { margin: 0 0 14px; }
.field > p:not(.hint), .field > label {
  display: block;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin: 0 0 6px;
}
.inp {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 var(--edge-hair) var(--rule-3);
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  min-height: 46px;
  -webkit-appearance: none;
  appearance: none;
}
textarea.inp { resize: vertical; }
.inp::placeholder { color: var(--ink-faint); opacity: 1; }
.inp:focus { outline: none; box-shadow: inset 0 0 0 var(--edge-width) var(--accent-2); }
.hint {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-dim);
  margin-top: 6px;
}

/* cook time prompt inside the log form */
.asktime {
  margin: 0 0 16px;
  padding: 13px 13px 8px;
  box-shadow: inset 0 0 0 var(--edge-hair) var(--accent-2);
  border-radius: var(--radius);
}
.asktime p.q {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 9px;
}
.asktime .rowin { display: flex; gap: 9px; align-items: center; }
.asktime .rowin .inp { flex: 1; }
.asktime .unit {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-1);
}

/* ---------- 05 week ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 0 0 16px;
  position: relative;
  z-index: 9;
}
.sd {
  text-align: center;
  padding: 8px 0 7px;
  background: var(--surface);
  box-shadow: 0 0 0 var(--edge-hair) var(--rule-3);
  border-radius: var(--radius);
}
.sd b {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
  color: var(--ink-dim);
}
.sd i {
  display: block;
  font-family: var(--font-data);
  font-size: 11px;
  font-style: normal;
  margin-top: 5px;
  color: var(--rule-3);
}
.sd.has b { color: var(--accent-2); }
.sd.has i { color: var(--accent-1); }
.sd.today { box-shadow: 0 0 0 var(--edge-hair) var(--accent-1); }

.weeknav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  position: relative;
  z-index: 9;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-1);
}
.weeknav button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  box-shadow: inset 0 0 0 var(--edge-hair) var(--accent-1);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}
.weeknav .rangetx {
  color: var(--ink-dim);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .06em;
  text-align: center;
  min-width: 0;
}

.dcard {
  margin: 0 0 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 var(--edge-width) var(--accent-1);
  border-radius: var(--radius);
  position: relative;
  z-index: 9;
}
.dhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--accent-2);
}
.dhead b {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: var(--ink-inverse);
  text-transform: uppercase;
}
.dhead i {
  font-style: normal;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-inverse);
  opacity: .62;
}
.dbody { padding: 11px 11px 13px; display: flex; flex-direction: column; gap: 7px; }

.meal {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-row);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}
.meal .mk {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--accent-2);
  cursor: pointer;
  padding: 13px 4px 13px 12px;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.meal .mv {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  padding: 13px 0;
  text-align: left;
}
.meal .tk {
  flex: 0 0 auto;
  font-size: 12px;
  cursor: pointer;
  padding: 13px 12px;
  align-self: stretch;
  display: flex;
  align-items: center;
  color: var(--ink-dim);
}
.meal.done { background: var(--accent-1); color: var(--ink-inverse); }
.meal.done .mk, .meal.done .tk { color: var(--ink-inverse); }
.meal.empty {
  background: none;
  box-shadow: inset 0 0 0 var(--edge-hair) var(--rule-2);
  color: var(--ink-faint);
}
.meal.empty .mk { color: var(--ink-faintest); }
.meal.moving { box-shadow: inset 0 0 0 var(--edge-width) var(--accent-2); }
.meal.target { box-shadow: inset 0 0 0 var(--edge-width) var(--accent-2); color: var(--accent-2); }
.meal.taken { opacity: .45; cursor: default; }

.movebar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 11px 12px;
  background: var(--accent-2);
  border-radius: var(--radius);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-inverse);
}
.movebar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movebar button { cursor: pointer; padding: 10px 0; margin: -10px 0; text-decoration: underline; }

/* ---------- settings ---------- */

.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: var(--rule-width) solid var(--rule);
}
.kv dt {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-1);
}
.kv dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  text-align: right;
}
.meter {
  height: 4px;
  background: var(--rule-2);
  margin-top: 10px;
  border-radius: var(--radius);
  overflow: hidden;
}
.meter i { display: block; height: 100%; background: var(--accent-2); }

/* ---------- overlays: sheets, confirms, blocking messages ---------- */

#overlay:empty { display: none; }
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--scrim);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px calc(16px + env(safe-area-inset-right))
           calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  overflow-y: auto;
}
.scrim.centered { align-items: center; }
.dialog {
  width: 100%;
  max-width: 528px;
  background: var(--surface);
  box-shadow: 0 0 0 var(--edge-width) var(--accent-1);
  border-radius: var(--radius);
  padding: 18px 16px 18px;
  max-height: 88vh;
  overflow-y: auto;
}
.sheethead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheetacts { display: flex; gap: 7px; flex: 0 0 auto; }
.dialog h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--accent-2);
  letter-spacing: -.01em;
}
.dialog p.msg {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 12px;
}
.dialog .row-actions { margin-top: 4px; }

.pickrow {
  display: flex;
  width: 100%;
  align-items: baseline;
  gap: 11px;
  padding: 13px 12px;
  margin-bottom: 7px;
  background: var(--surface-row);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
}
.pickrow .pt {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--accent-2);
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pickrow.sel { box-shadow: inset 0 0 0 var(--edge-hair) var(--accent-1); }
.pickrow .pm {
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent-1);
  flex: 0 0 auto;
}
.segrow { display: flex; gap: 7px; margin-bottom: 14px; }
.segrow button {
  flex: 1;
  padding: 13px 0;
  min-height: 44px;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 var(--edge-hair) var(--chip-rule);
  border-radius: var(--radius);
  cursor: pointer;
}
.segrow button.sel { background: var(--accent-1); color: var(--ink-inverse); box-shadow: none; }
.segrow button[disabled] { opacity: .35; cursor: default; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  max-width: 92vw;
  padding: 11px 14px;
  background: var(--accent-2);
  color: var(--ink-inverse);
  border-radius: var(--radius);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
}

/* ---------- misc ---------- */

.sronly {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: var(--edge-width) solid var(--accent-2); outline-offset: 2px; }
