/* ============================================================
   ነጋድ ራስ — the shop's working system.
   White surfaces on a neutral desk, one olive that acts, figures in tabular
   numerals. Nothing decorative competes with the numbers.
   ============================================================ */

:root{
  color-scheme:light;

  /* ------------------------------------------------------------------
     A business system, not a notebook. Surfaces are white, the page is a
     cool neutral, and the brand olive is spent only where it means
     something: the primary action, the current tab, a figure that matters.
     ------------------------------------------------------------------ */
  /* Deep Lagoon #0F2A2A · Teal Wave #00BFA6 · Aqua Silk #D9FAF4, with the
     neutrals a working system needs mixed from the same three. */
  --lagoon:#0F2A2A;      /* ink, dark panels, the seal */
  --teal:#00BFA6;        /* the one colour that acts */
  --teal-deep:#00A48F;   /* the same, pressed */
  --aqua:#D9FAF4;        /* a tint, never a surface for text */

  --page:#F3F8F7;        /* the desk */
  --surface:#FFFFFF;     /* every card, table and panel */
  --surface-2:#F4FAF9;   /* table heads, resting fields */
  --line:#D4E3E0;        /* the edge of a surface */
  --line-soft:#E8F1EF;   /* a rule inside one */

  --ink:#0F2A2A;         /* text */
  --label:#27423F;       /* a field's name */
  --muted:#5C7572;       /* secondary text */
  --mark:#0B5F55;        /* a figure the shop worked out */

  --brand:var(--lagoon); /* the primary act reads as lagoon, teal underlines it */
  --brand-ink:#FFFFFF;
  --brand-soft:var(--aqua);
  --gold:var(--teal);    /* what used to be gold is now the teal */

  --good:#0B7A5B;  --good-soft:#DFF5EE;
  --bad:#B3261E;   --bad-soft:#FBEBE9;  --on-accent-bad:#FFB4AC;
  --warn:#8A5A0B;  --warn-soft:#FBF1DF;

  /* screens no longer shout in different colours; one accent, used the same way */
  --accent:var(--lagoon); --accent-soft:var(--aqua); --accent-ink:#FFFFFF;
  --paper:var(--page); --card:var(--surface); --pop:var(--gold);
  --field:var(--surface-2); --sunken:#E3EEEC; --hairline:var(--line-soft); --edge:var(--line);
  --rule:var(--line); --hair:var(--line-soft); --rule-strong:#A9C8C3;

  /* corners a company expects: square enough to mean business */
  --r-4:6px; --r-8:10px; --r-12:14px; --r-16:16px; --r-24:20px; --r-pill:999px;
  --b-thin:1px; --b-reg:2px; --b-thick:3px;
  --s-8:8px; --s-15:14px; --s-16:16px; --s-24:20px;

  --e1:none;
  --e2:0 1px 3px rgba(21,24,26,.08);
  --e3:0 1px 2px rgba(21,24,26,.05);
  --e4:0 20px 48px -20px rgba(21,24,26,.35);
  --e5:0 6px 16px -8px rgba(21,24,26,.3);
  --inset:none;
  --pressed:none;

  --tabbar:0px;
  --tabbar-h:62px;
  --tabbar-gap:0px;
  --safe:env(safe-area-inset-bottom,0px);
  --safe-top:env(safe-area-inset-top,0px);
}
/* every screen reads the same; the work is told apart by its words, not its colour */
body.s-buy, body.s-move, body.s-sell{--accent:var(--lagoon); --accent-soft:var(--aqua)}

*{box-sizing:border-box}
body{
  margin:0; background:var(--page); color:var(--ink);
  font-family:'IBM Plex Sans',system-ui,sans-serif; font-size:15px; line-height:1.5;
  -webkit-text-size-adjust:100%; font-variant-numeric:tabular-nums;
}
a{color:var(--accent)}
.wrap{max-width:1180px; margin:0 auto; padding:0 24px 64px}

/* ---------- masthead, with the nav as index-card dividers ---------- */
header.bar{display:flex; align-items:center; justify-content:space-between; gap:16px;
  flex-wrap:wrap; padding:14px 0 13px; border-bottom:1px solid var(--line)}
.mark{width:44px; height:44px; border-radius:15px; background:var(--pop); color:var(--ink);
  display:grid; place-items:center; font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:16px;
  letter-spacing:.04em; flex:0 0 auto}
/* the heading is read out, not drawn */
.vh{position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}

/* the sections, as a company expects them: a row of tabs under the bar */
.topnav{margin:0 0 var(--s-24); display:flex; gap:26px; align-items:stretch;
  background:none; border:0; border-bottom:1px solid var(--line); padding:0;
  overflow-x:auto; scrollbar-width:none}
.topnav::-webkit-scrollbar{display:none}
.topnav a{position:relative; display:flex; align-items:center; padding:13px 0 14px;
  text-decoration:none; color:var(--muted); font-size:14px; font-weight:600; white-space:nowrap;
  transition:color .12s}
.topnav a:hover{color:var(--ink)}
.topnav a.on{color:var(--ink)}
.topnav a.on::after{content:''; position:absolute; left:50%; width:22px; margin-left:-11px;
  bottom:-1px; height:var(--b-reg); border-radius:2px; background:var(--teal)}

/* ---------- the pipeline, drawn as the sheet's 4-step process ---------- */
.steps{position:relative; display:grid; grid-template-columns:repeat(4,1fr);
  margin:0 0 var(--s-24); background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-12); padding:16px 10px 13px; box-shadow:var(--e3)}
.steps.three{grid-template-columns:repeat(3,1fr)}
/* the line the nodes sit on, drawn behind them */
.steps::before{content:''; position:absolute; left:16%; right:16%; top:34px; height:var(--b-reg);
  background:var(--edge); border-radius:2px}
.steps .leg{position:relative; display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:0 6px; text-decoration:none; color:inherit; min-width:0; text-align:center}
.node{width:32px; height:32px; border-radius:50%; display:grid; place-items:center;
  font-family:'IBM Plex Mono',monospace; font-size:14px; font-weight:600;
  background:var(--surface); color:var(--muted); border:1px solid #BFD6D2; position:relative;
  z-index:1; font-size:12px; transition:background .14s, color .14s, border-color .14s}
.steps .leg:hover .node{border-color:var(--rule-strong); color:var(--ink)}
.steps .leg.here .node{background:var(--accent); border-color:var(--accent); color:var(--accent-ink)}
.steps .k{font-size:11.5px; letter-spacing:.06em; text-transform:uppercase;
  font-weight:700; color:var(--muted); margin-top:8px}
.steps .leg.here .k{color:var(--accent)}
.steps .v{font-variant-numeric:tabular-nums; font-size:20px; font-weight:600;
  line-height:1.15; letter-spacing:-.02em}
.steps .v small{font-size:12.5px; color:var(--muted); font-weight:400; margin-left:3px}
.steps .leg.here .v{color:var(--accent)}
/* the tooltip the sheet puts over the current step */
.tip{position:absolute; top:-26px; left:50%; transform:translateX(-50%);
  background:var(--ink); color:var(--paper); border-radius:var(--r-8); padding:5px 10px;
  font-size:12px; font-weight:600; white-space:nowrap; box-shadow:var(--e5)}
.tip::after{content:''; position:absolute; bottom:-4px; left:50%; margin-left:-4px;
  border:4px solid transparent; border-top-color:var(--ink); border-bottom:0}

/* ---------- notices ---------- */
.flash{display:flex; align-items:center; gap:11px; background:var(--aqua); color:#0B4F46;
  border:1px solid #A7E5DA; border-radius:var(--r-8); padding:12px 16px;
  margin-bottom:var(--s-24); font-weight:500; font-size:14px}
.flash .ico{flex:0 0 auto; width:20px; height:20px; border-radius:50%;
  background:var(--teal); color:var(--lagoon); display:grid; place-items:center;
  font-size:12px; font-weight:700}
.errors{background:var(--bad-soft); border:1px solid #F0CBC7; border-left:var(--b-thick) solid var(--bad);
  color:#7A1C10; padding:13px 16px; border-radius:var(--r-8); margin-bottom:var(--s-24); font-size:14px}
.errors ul{margin:6px 0 0; padding-left:18px}
.warn{background:var(--warn-soft); border:1px solid #E9D5AD; border-left:var(--b-thick) solid var(--warn);
  color:#7A4C09; padding:13px 16px; border-radius:var(--r-8); margin-bottom:var(--s-24);
  font-size:14px; display:flex; flex-wrap:wrap; gap:10px; align-items:baseline}
.warn a{color:#7A4C09; font-weight:600}

/* ---------- forms ---------- */
.cols{display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:26px; align-items:start}
form.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-12);
  padding:22px; box-shadow:var(--e3)}
fieldset{border:0; margin:0 0 14px; padding:0}
legend{font-size:12px; letter-spacing:.07em; text-transform:uppercase;
  color:var(--muted); font-weight:700; padding:0 0 12px}
.row{display:grid; gap:12px; grid-template-columns:1fr 1fr}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:12px}
label{font-size:13px; font-weight:600; color:var(--label); letter-spacing:.005em}
.hint{font-size:13px; color:var(--muted); font-weight:400}
input,select{font:inherit; font-size:15.5px; font-weight:500; color:var(--ink);
  background:#fff; border:1.5px solid #CFDEDB; border-radius:12px; padding:0 14px; height:46px;
  width:100%; transition:border-color .12s, box-shadow .12s}
input:hover,select:hover{border-color:#A9C8C3}
input::placeholder{color:#9BB2AE; font-weight:400}
input[type=number]{font-family:'IBM Plex Mono',monospace; font-variant-numeric:tabular-nums}
select{appearance:none; -webkit-appearance:none; padding-right:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235C7572' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center}
input:focus,select:focus{outline:0; border-color:var(--teal);
  box-shadow:0 0 0 3.5px rgba(0,191,166,.16)}
.field.bad input{border-color:var(--bad); box-shadow:0 0 0 3px var(--bad-soft)}
.helper{font-size:13px; color:var(--muted); margin-top:2px}
.helper.bad{color:var(--bad)}
.money{position:relative; display:flex; align-items:center; background:#fff;
  border:1.5px solid #CFDEDB; border-radius:12px; height:46px; overflow:hidden;
  transition:border-color .12s, box-shadow .12s}
.money:hover{border-color:#A9C8C3}
.money:focus-within{border-color:var(--teal); box-shadow:0 0 0 3.5px rgba(0,191,166,.16)}
.money .cur{display:flex; align-items:center; height:100%; padding:0 12px; font-size:12.5px;
  font-weight:600; letter-spacing:.04em; color:#6B8582; border-right:1px solid #E8F1EF;
  background:#F7FBFA}
.money input{border:0; border-radius:0; height:100%; font-variant-numeric:tabular-nums;
  font-weight:600}
.money input:focus{box-shadow:none; border:0}
.asmuch{margin:7px 0 0; min-height:1.1em; font-family:'IBM Plex Mono',monospace;
  font-size:13px; color:var(--muted)}

.submit{background:var(--teal); color:var(--lagoon); border-color:var(--teal);
  font-weight:700; border-radius:var(--r-12); padding:13px 22px; font-size:15px}
.submit:hover{background:var(--teal-deep); filter:none}
.actions{display:flex; gap:12px; align-items:center; flex-wrap:wrap;
  border-top:1px solid var(--rule); padding-top:19px}
button{font:inherit; font-weight:600; font-size:14.5px; background:var(--lagoon); color:#fff;
  border:1px solid var(--lagoon); border-radius:var(--r-12); padding:12px 20px; cursor:pointer;
  transition:filter .12s, transform .06s, background .12s}
button:hover{filter:brightness(1.06)}
button:active{transform:translateY(1px); filter:brightness(.95)}
button:focus-visible{outline:var(--b-reg) solid var(--accent); outline-offset:2px}
button[disabled]{background:var(--sunken); color:var(--muted); cursor:default; filter:none}
button[disabled]:active{transform:none}
.reset{background:var(--surface); color:var(--label); border:1px solid var(--line); font-weight:600;
  padding:10px 16px}
.reset:hover{background:var(--surface-2); color:var(--ink)}
.reset:hover{background:none; color:var(--ink); filter:none}
.danger{color:var(--bad); margin-left:auto}
.danger:hover{color:var(--bad); text-decoration:underline}
.submit.small{padding:9px 18px; font-size:15px}
.stamp{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--muted); margin-left:auto;
  letter-spacing:.04em}

/* one-tap chips */
.chips{display:flex; flex-wrap:wrap; gap:7px; margin-top:8px}
.chip{background:var(--surface); color:var(--label); border:1px solid #BFD6D2;
  border-radius:var(--r-8); padding:8px 13px; font-size:13.5px; font-weight:600; line-height:1.1}
.chip:hover{background:var(--field); filter:none}

/* minus / plus counters */
.stepper{display:grid; grid-template-columns:48px minmax(0,1fr) 48px; align-items:stretch; gap:6px}
.stepper input{text-align:center; font-size:20px; font-weight:600; padding:11px 8px}
.step{background:var(--surface); color:var(--lagoon); border:1px solid #BFD6D2;
  border-radius:var(--r-8); padding:0; font-size:22px; font-weight:600; line-height:1;
  display:grid; place-items:center}
.step:hover{background:var(--field); filter:none}

/* pieces / packs toggle, and the ledger's three views */
.segmented{display:grid; grid-template-columns:1fr 1fr; gap:0; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--r-12); padding:0; margin-bottom:12px;
  overflow:hidden}
.segmented.wide{grid-template-columns:repeat(3,1fr); margin-bottom:22px; max-width:420px}
.seg{position:relative; display:grid; place-items:center; padding:12px 8px; border-radius:0;
  font-size:13.5px; font-weight:600; color:var(--muted); cursor:pointer; text-decoration:none;
  border-left:1px solid var(--line); transition:background .12s, color .12s}
.seg:first-child{border-left:0}
.seg input{position:absolute; opacity:0; pointer-events:none}
.seg:hover{color:var(--ink)}
.seg.on{background:var(--aqua); color:var(--mark); box-shadow:none; font-weight:700}
.seg:focus-within{outline:2px solid var(--accent); outline-offset:1px}
.segmented.subnav{display:none}   /* phones only: see the media query */

/* ---------- the tally slip ---------- */
.slip{background:var(--lagoon); color:#EAFBF7; border:0; border-radius:var(--r-12);
  position:sticky; top:24px; overflow:visible}
.slip h2{margin:0; font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:rgba(234,251,247,.72); padding:16px 20px 12px;
  font-weight:500}
.slip .body{padding:4px 22px 22px}
/* the tear: a dashed line with a notch bitten out of each edge */
.tear{position:relative; height:0; margin:0; border-top:1px solid rgba(255,255,255,.14)}


.line{display:flex; justify-content:space-between; align-items:baseline; gap:10px;
  padding:12px 0; border-bottom:1px solid rgba(255,255,255,.1)}
.line:last-child{border-bottom:0}
.line .k{font-size:13.5px; font-weight:500; color:rgba(242,244,239,.72)}
.line .v{font-variant-numeric:tabular-nums; font-weight:600; font-size:17px; color:#EAFBF7}
.line.big .v{font-size:24px; letter-spacing:-.02em}
.line.unit .v{color:var(--teal)}
.line .v.neg{color:var(--on-accent-bad)}
.formula{font-family:'IBM Plex Mono',monospace; font-size:12px; color:rgba(234,251,247,.64);
  display:block; margin-top:3px}
.perf{display:none}   /* the tear line above does this job now */

/* ---------- last-whatever feed ---------- */
.recent{margin-top:26px}
.recent h3{font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--muted); margin:0 0 9px}
.feed{list-style:none; margin:0; padding:0; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--r-12); overflow:hidden; box-shadow:var(--e3)}
.feed li{display:flex; align-items:center; gap:13px; padding:14px 16px;
  border-bottom:1px solid var(--line-soft)}
.feed li:last-child{border-bottom:0}
.feed li + li{margin-top:2px}

.feed .ftile{flex:0 0 auto; width:34px; height:34px; border-radius:var(--r-8);
  background:var(--aqua); border:1px solid #BFE9E1; color:var(--mark);
  display:grid; place-items:center; border-radius:var(--r-8);
  font-size:12px; font-weight:700; letter-spacing:.02em}
.feed .ftext{min-width:0; flex:1; display:flex; flex-direction:column; gap:1px}
.feed .ftext .when{margin-left:0; font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  font-weight:600; order:1; color:var(--muted)}
.feed .fname{font-weight:600; font-size:14.5px; white-space:nowrap; overflow:hidden;
  text-overflow:ellipsis; order:2}
.feed .when{color:var(--muted); font-size:13.5px; margin-left:auto}
.feed .pcs{margin-left:auto; font-variant-numeric:tabular-nums;
  font-weight:700; font-size:16px; letter-spacing:-.01em}
.feed .pcs small{color:var(--muted); font-weight:400; font-size:12.5px}

/* ---------- figure tiles ---------- */
.totals,.today{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:22px}
.totals.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.totals.trade{margin-top:-8px}
.stat{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-16);
  padding:16px 18px 17px; box-shadow:var(--e3)}
.stat .k{font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  font-weight:600; color:var(--muted)}
.stat .at{font-weight:400; text-transform:none; letter-spacing:0; opacity:.8}
.stat .v{font-variant-numeric:tabular-nums; font-size:23px; font-weight:700;
  color:var(--ink); margin-top:7px; letter-spacing:-.02em}
.stat .v small{font-size:13.5px; color:var(--muted); font-weight:400}
.stat .v.neg{color:var(--bad)}
.today .v{font-size:20px}

/* ---------- tables ---------- */
table{width:100%; border-collapse:collapse; font-size:13.5px; background:var(--surface);
  border:0; border-radius:0}
th{text-align:left; font-size:11.5px; letter-spacing:.06em; text-transform:uppercase;
  font-weight:700; color:var(--muted); padding:11px 14px; border:0; border-bottom:1px solid var(--line);
  white-space:nowrap; background:var(--surface-2)}
thead tr{background:var(--surface-2)}

td{padding:11px 14px; border-bottom:1px solid var(--line-soft); vertical-align:middle; font-weight:500}
tbody tr:hover td{background:var(--surface-2)}
tr:last-child td{border-bottom:0}
td.num,th.num{font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap}
td.strong{font-weight:700; color:var(--ink)}
td.dim{color:var(--muted)}
td.unit{color:var(--mark); font-weight:600}
td.num.neg{color:var(--bad)}
.when{color:var(--muted); font-size:14px; white-space:nowrap}
.tag{display:inline-block; background:var(--brand-soft); color:var(--brand);
  border-radius:var(--r-4); padding:3px 8px; font-size:12.5px; font-weight:600;
  white-space:nowrap; line-height:1.4}
.scroll{overflow-x:auto; border:1px solid var(--line); border-radius:var(--r-12);
  background:var(--surface); box-shadow:var(--e3)}
.scroll table{border:0; min-width:760px}
.scroll::-webkit-scrollbar{height:9px}
.scroll::-webkit-scrollbar-thumb{background:var(--rule); border-radius:9px}

/* stock rows: name, pack size, and where the pieces actually sit */
.stockt td.item{min-width:220px}
.stockt .name{display:flex; align-items:baseline; gap:8px; flex-wrap:wrap}
.per{font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--muted)}
.lowtag{background:var(--bad); color:#FBEDE9; border-radius:20px; padding:2px 8px;
  font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.07em}
.split{display:flex; height:4px; margin-top:7px; border-radius:2px; overflow:hidden; max-width:200px;
  background:repeating-linear-gradient(45deg,#C6CAB6 0 3px,#BCC0AC 3px 6px)}
.split i{display:block; height:100%}
.split .in-store{background:#AEDED6}
.split .on-shelf{background:var(--teal)}
.splitkey{display:flex; gap:12px; margin-top:6px; font-family:'IBM Plex Mono',monospace;
  font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.splitkey b{color:var(--ink); font-weight:600}
tr.lowrow td{background:rgba(166,38,23,.06)}
td.act,th.act{white-space:nowrap; text-align:right}
.mini{display:inline-block; background:var(--surface); color:var(--mark);
  border:1px solid #BFD6D2; border-radius:var(--r-8); padding:6px 12px; font-size:13px;
  font-weight:600; text-decoration:none; margin-left:6px}
.mini:hover{background:var(--field)}

/* ---------- items screen ---------- */
.itemgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(272px,1fr)); gap:16px}
.itemcard{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-12);
  padding:18px; box-shadow:var(--e3)}
.itemcard .field{margin-bottom:13px}
.itemcard .row{gap:10px}
.itemfacts{display:flex; flex-wrap:wrap; gap:4px 14px; border-top:1px dashed var(--rule);
  padding-top:12px; font-size:13.5px; color:var(--muted)}
.itemfacts b{font-family:'IBM Plex Mono',monospace; color:var(--ink); font-weight:600}
.itemactions{display:flex; align-items:center; gap:8px; margin-top:13px}

/* ---------- odds and ends ---------- */
.empty{color:var(--muted); font-size:14.5px; background:transparent;
  border:var(--b-reg) dashed var(--edge); border-radius:var(--r-16); padding:18px}
.empty.big{padding:40px 24px; text-align:center; font-size:16px; display:flex;
  flex-direction:column; align-items:center; gap:4px}
.empty.big .glyph{width:56px; height:56px; border-radius:var(--r-16); background:var(--card);
  border:1px solid var(--line); display:grid; place-items:center; margin-bottom:10px; color:var(--muted)}
.empty.big .glyph svg{width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:2;
  stroke-linecap:round; stroke-linejoin:round}
.empty.big a{display:inline-block; margin-top:12px; font-weight:600; background:var(--accent);
  color:var(--accent-ink); text-decoration:none; border-radius:var(--r-pill);
  padding:11px 22px}
.empty.big a:hover{filter:brightness(1.06)}
.footnote{color:var(--muted); font-size:14px; margin-top:18px; max-width:68ch}
.footnote.top{margin:0 0 18px}

footer{margin-top:40px; color:var(--muted); font-size:13.5px; border-top:1px solid var(--rule);
  padding-top:14px; font-family:'IBM Plex Mono',monospace; letter-spacing:.03em}

/* phone-only furniture, off on wide screens */
.tabbar,.tally{display:none}

@media (max-width:860px){
  .cols,.cols.till{grid-template-columns:1fr}   /* .cols.till would otherwise out-rank this */
  .slip{position:static}
}

/* ================= phones ================= */
@media (max-width:620px){
  body{font-size:17px}
  .wrap{padding:0 14px calc(var(--tabbar) + 28px + var(--safe))}

  /* sticky masthead: title line, then the dividers scroll under it */
  header.bar{position:sticky; top:0; z-index:30; margin:0 -14px 16px;
    padding:calc(9px + var(--safe-top)) 14px 9px;
    background:var(--paper); border-bottom:1px solid var(--rule); flex-wrap:nowrap}
  .sub,.stamp,footer{display:none}
  /* the bottom tab bar and the rail cover navigation; the dividers would only repeat them */
  .topnav{display:none}
  .segmented.subnav{display:grid; margin-bottom:16px}


  /* the rail turns into three small cards across */
  .rail{grid-template-columns:repeat(4,1fr); margin-bottom:18px}
  .rail .arw{display:none}
  .rail .leg{padding:11px 10px; border-right:1px solid var(--hair)}
  .rail .leg:last-child{border-right:0}
  .rail .leg .k{font-size:9px; letter-spacing:.08em}
  .rail .leg .v{font-size:18px}

  .flash,.errors,.warn{margin-bottom:16px; font-size:15.5px}

  /* the form is the page: no card chrome, full-bleed fields */
  form.card{background:none; border:0; border-radius:0; padding:0; box-shadow:none}
  fieldset{margin-bottom:8px}
  legend{display:none}
  .field{gap:7px; margin-bottom:19px}
  label{font-size:15px; color:var(--ink)}
  .row{grid-template-columns:1fr; gap:0}
  input,select{font-size:18px; padding:14px; border-radius:12px; border-width:1.5px}
  select{background-position:calc(100% - 21px) 53%, calc(100% - 16px) 53%}
  .money input{padding-left:56px}
  .money .cur{left:14px; font-size:15px}
  .stepper{grid-template-columns:54px minmax(0,1fr) 54px; gap:8px}
  .step{font-size:25px; border-radius:12px; border-width:1.5px}
  .chip{padding:10px 16px; font-size:15px}
  .segmented{margin-bottom:13px}
  .segmented.wide{max-width:none; margin-bottom:18px}
  .seg{padding:12px 6px; font-size:16px}

  .actions{flex-direction:column; align-items:stretch; gap:4px; border-top:0; padding-top:4px}
  .submit{width:100%; padding:17px; font-size:18px; border-radius:13px;
    box-shadow:0 8px 18px -12px rgba(34,39,31,.18)}
  .reset{padding:12px; font-size:15.5px}

  /* the desktop slip folds away; the strip above the tab bar does its job */
  .slip{display:none}
  .recent{margin-top:22px}
  .recent h3{font-size:17px}
  .feed li{padding:13px}
  .feed .pcs{font-size:16px}

  .totals,.today{grid-template-columns:1fr 1fr; gap:10px; margin-bottom:18px}
  .totals.four{grid-template-columns:1fr 1fr}
  .stat{padding:12px 13px}
  .stat.wide,.today .stat:first-child,.totals.trade .stat:last-child{grid-column:1 / -1}
  .stat .v{font-size:20px}
  .totals.trade{margin-top:-6px}

  /* table rows become cards */
  .scroll{overflow:visible; border:0; background:none; border-radius:0}
  .scroll table,.scroll tbody,.scroll tr,.scroll td{display:block; width:auto}
  .scroll thead{display:none}
  .scroll table{min-width:0}
  .ledger tr{background:var(--card); border:1px solid var(--rule); border-radius:14px;
    padding:13px 15px 7px; margin-bottom:12px;
    display:grid; grid-template-columns:1fr 1fr; gap:0 14px;
    box-shadow:0 1px 0 rgba(34,39,31,.05)}
  .ledger td{border:0; padding:8px 0; display:flex; justify-content:space-between; align-items:baseline;
    gap:8px; font-size:16px; border-bottom:1px dashed var(--hair)}
  .ledger td::before{content:attr(data-label); color:var(--muted); font-size:13.5px; font-weight:500}
  .ledger td.num{text-align:left}
  .ledger td:last-child{border-bottom:0}
  /* the head line of each card */
  .ledger td.type,.ledger td.item{grid-column:1 / -1; order:-3; display:block; border-bottom:0;
    padding-top:0}
  .ledger td.type::before,.ledger td.item::before{display:none}
  .ledger td.type .tag,.ledger td.item .tag{font-size:14px; padding:4px 12px}
  .ledger td.item{border-bottom:1px solid var(--rule); padding-bottom:11px}
  .ledger td.when{grid-column:1; order:-2; border-bottom:1px solid var(--rule); font-size:14px}
  .ledger td.when::before{display:none}
  .ledger td.id{grid-column:2; order:-1; border-bottom:1px solid var(--rule);
    justify-content:flex-end; font-size:14px}
  .ledger td.id::before{display:none}
  .ledger td.act{grid-column:1 / -1; justify-content:flex-start; gap:10px; padding-top:12px;
    border-top:1px solid var(--rule); border-bottom:0}
  .ledger td.act::before{display:none}
  .mini{margin:0; padding:11px 18px; font-size:15px}

  .itemgrid{grid-template-columns:1fr; gap:14px}
  .itemcard{padding:15px}
  .itemcard .row{grid-template-columns:1fr 1fr; gap:10px}
  .itemfacts{font-size:14px}
  .submit.small{width:auto; padding:13px 22px; font-size:16px}

  .empty.big{padding:28px 20px}
  .pager{justify-content:space-between; margin-top:6px}
  

  /* running total, parked above the tab bar */
  .tally{display:grid; grid-template-columns:repeat(3,1fr); gap:2px;
    position:fixed; left:0; right:0; z-index:40;
    bottom:calc(var(--safe) + var(--tabbar-gap) + var(--tabbar-h) + 8px);
    background:var(--accent); color:var(--accent-ink); padding:9px 12px 10px;
    box-shadow:0 -10px 24px -18px rgba(34,39,31,.16)}
  .tally[hidden]{display:none}
  .tally .t{display:flex; flex-direction:column; gap:1px; min-width:0}
  .tally .k{font-family:'IBM Plex Mono',monospace; font-size:9.5px; letter-spacing:.1em;
    text-transform:uppercase; opacity:.75}
  .tally .v{font-family:'IBM Plex Mono',monospace; font-variant-numeric:tabular-nums;
    font-weight:600; font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .tally .v.neg{color:var(--on-accent-bad)}
  .tally .t:nth-child(3) .v{opacity:.9}

  /* four-thumb tab bar */
  /* a pill that floats clear of the bottom edge, the shop badge at its left end */
  .tabbar{display:grid; grid-template-columns:repeat(4,1fr); align-items:center; gap:0;
    position:fixed; left:0; right:0; bottom:0; z-index:50;
    background:var(--surface); border:0; border-top:1px solid var(--line); border-radius:0;
    padding:6px 4px calc(6px + var(--safe));
    box-shadow:0 -1px 3px rgba(21,24,26,.06)}
  .tabbar.two{grid-template-columns:repeat(2,1fr)}
  .tabbar.five{grid-template-columns:repeat(5,1fr)}
  .tabbar a{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
    padding:3px 0 5px; text-decoration:none; color:var(--muted); font-size:11.5px; font-weight:700;
    position:relative}
  .ticon{display:grid; place-items:center; width:40px; height:26px; border-radius:var(--r-8);
    transition:background .14s}
  .tabbar svg{width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2;
    stroke-linecap:round; stroke-linejoin:round}
  .tabbar a.on{color:var(--accent)}
  .tabbar a.on .ticon{background:var(--accent); color:var(--accent-ink)}
  .tabbar a.on svg{stroke-width:2.4}
  /* the dot under the active label */
  .tabbar a.on::after{content:''; position:absolute; bottom:-1px; width:4px; height:4px;
    border-radius:50%; background:var(--accent)}
  .tlabel{line-height:1.2}
}

/* phones with the tally strip need extra bottom room */
@media (max-width:620px){ :root{--tabbar:146px} }

@media (prefers-reduced-motion:reduce){ *{transition:none !important} }

/* ============================================================
   Signing in, and who is signed in
   ============================================================ */

.who-bar{display:flex; align-items:center; gap:11px; margin-left:auto}
.whoami{display:flex; align-items:center; gap:9px; min-width:0}
.whoname{font-weight:600; font-size:14.5px}
.whouser{font-family:'IBM Plex Mono',monospace; font-size:13px; color:var(--muted); margin-top:2px}
.roletag{border-radius:var(--r-4); padding:3px 8px; font-size:11px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; white-space:nowrap;
  background:var(--brand-soft); color:var(--brand)}
.roletag.manager{background:var(--accent-soft); color:var(--accent)}
.roletag.sales{background:#E3EEEC; color:var(--mark)}
.youtag{font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--muted); font-weight:600}
.signout{font-size:13.5px; font-weight:600; color:var(--label); text-decoration:none;
  border:1px solid #BFD6D2; border-radius:var(--r-8); padding:7px 13px; white-space:nowrap;
  background:var(--surface)}
.signout:hover{color:var(--ink); border-color:var(--steel)}

/* the gate itself */
body.gate{display:grid; place-items:center; min-height:100vh; padding:24px 16px}
.gatebox{width:100%; max-width:402px}
.gatehead{display:flex; align-items:center; gap:13px; margin-bottom:20px}
.gatehead h1{font-family:'Fraunces',Georgia,serif; font-weight:700; font-size:24px; margin:0;
  letter-spacing:-.015em; line-height:1.1}
.gatehead .sub{color:var(--muted); font-size:14px; margin-top:2px}
.gatebox form.card{padding:22px}
.gatebox .submit{width:100%; padding:14px; font-size:17px; margin-top:4px}
.gatenote{color:var(--muted); font-size:14px; margin-top:16px; text-align:center; line-height:1.45}

/* staff cards */
.sectionhead{font-size:15px; font-weight:700; letter-spacing:-.01em; margin:0 0 14px}
.who{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:12px}
.itemcard.off{opacity:.5}
.itemcard.off .roletag{filter:grayscale(1)}
.stack{display:flex; flex-direction:column; gap:10px; margin-top:12px}
.row.tight{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center}
.row.tight .submit{white-space:nowrap}
td.by{color:var(--muted); font-size:14px; white-space:nowrap}

/* a salesperson's chrome is narrower */
.rail.three{grid-template-columns:1fr auto 1fr auto 1fr}
.segmented.wide.four{grid-template-columns:repeat(4,1fr)}

@media (max-width:620px){
  .who-bar{gap:8px}
  .signout{padding:6px 11px; font-size:13.5px}
  .rail.three{grid-template-columns:repeat(3,1fr)}
  .tabbar.two{grid-template-columns:1fr 1fr}
  .tally.two{grid-template-columns:1fr 1fr}
  .topnav{margin-bottom:0}
  .gatehead h1{font-size:21px}
  .segmented.wide.four{grid-template-columns:repeat(2,1fr); gap:6px}
  .segmented.wide.four .seg{padding:11px 6px}
}

/* ============================================================
   Two languages
   ============================================================ */

.langswitch{display:flex; gap:2px; background:var(--surface-2); border:1px solid #BFD6D2;
  border-radius:9px; padding:3px}
.lg{padding:5px 10px; border-radius:6px; font-size:13px; font-weight:600; line-height:1.3;
  color:var(--muted); text-decoration:none; white-space:nowrap}
.lg:hover{color:var(--ink)}
.lg.on{background:var(--rule); color:var(--accent)}
.gate .langswitch{width:max-content; margin:0 auto 18px}

/* Amharic: Ethiopic faces, no letter-spacing to stretch the syllables apart,
   and a little more room between lines for the taller glyphs. */
html[lang=am] body{font-family:'Noto Sans Ethiopic',system-ui,sans-serif; line-height:1.65}
html[lang=am] .slip h2,
html[lang=am] .recent h3,
html[lang=am] .sectionhead,
html[lang=am] .gatehead h1{font-family:'Noto Serif Ethiopic',Georgia,serif}
html[lang=am] .v,
html[lang=am] .stat .k,
html[lang=am] .rail .leg .k,
html[lang=am] th,
html[lang=am] legend,
html[lang=am] .per,
html[lang=am] .asmuch,
html[lang=am] .formula,
html[lang=am] .stamp,
html[lang=am] .whouser,
html[lang=am] .lowtag,
html[lang=am] .roletag,
html[lang=am] .youtag,
html[lang=am] footer{font-family:'IBM Plex Mono','Noto Sans Ethiopic',monospace; letter-spacing:0}
html[lang=am] .tabbar a{font-size:12px}
/* Ethiopic sets smaller than Latin at the same size: the unit suffixes need a notch back */
html[lang=am] .steps .v small,
html[lang=am] .stat .v small,
html[lang=am] .hero .v small,
html[lang=am] .feed .pcs small{font-size:13.5px}

/* ============================================================
   Meshed from the three references: a hero amount card and
   slider rows, leading tiles on every listed thing.
   ============================================================ */

/* the hero: the one figure that matters, with the next step inside it */
.topgrid{display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1.4fr); gap:14px; margin-bottom:22px}
.hero{background:var(--surface); color:var(--ink); border:1px solid var(--line);
  border-radius:var(--r-12); box-shadow:var(--e3); padding:20px 22px 18px;
  display:flex; flex-direction:column; gap:4px}
.hero .k{font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  font-weight:600; color:var(--muted)}
.hero .at{font-weight:400; text-transform:none; letter-spacing:0}
.hero .v{font-variant-numeric:tabular-nums; font-size:34px; font-weight:700;
  line-height:1.1; letter-spacing:-.03em; margin-top:5px; color:var(--ink)}
.hero .v small{font-size:14px; font-weight:500; color:var(--muted); margin-left:5px}
.herorow{display:flex; gap:18px; margin-top:12px; font-size:13.5px; color:var(--muted);
  padding-top:12px; border-top:1px solid var(--line-soft)}
.herorow b{color:var(--ink); font-weight:700}
.heroact{align-self:flex-start; margin-top:16px; background:var(--teal); color:var(--lagoon);
  border-radius:999px; padding:11px 20px; font-size:14.5px; font-weight:600; text-decoration:none}
.heroact:hover{filter:brightness(.94)}
.totals.three{grid-template-columns:1fr; gap:10px; margin-bottom:0}
.totals.three .stat{display:flex; align-items:baseline; justify-content:space-between; gap:12px}
.totals.three .stat .v{margin-top:0; font-size:21px}

/* a tile leads every listed thing, the way the budget app leads a transaction */
.itemhead{display:flex; align-items:center; gap:13px}
.itemtext{min-width:0; flex:1}
.itile{width:42px; height:42px; border-radius:var(--r-12); background:var(--paper);
  border:1px solid var(--line-soft); color:var(--accent);
  display:grid; place-items:center; flex:0 0 auto;
  font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:14px; letter-spacing:.02em}

.stockt td.item{padding-top:14px; padding-bottom:14px}
.iname{font-weight:600; font-size:15.5px; letter-spacing:-.01em}
.isub{display:flex; align-items:center; gap:8px; margin-top:2px}

@media (max-width:620px){
  .topgrid{grid-template-columns:1fr; gap:12px; margin-bottom:18px}
  .hero{padding:20px; border-radius:22px}
  .hero .v{font-size:33px}
  .totals.three{grid-template-columns:1fr; gap:8px}
  .itile{width:38px; height:38px; border-radius:13px; font-size:13.5px}
  .ledger td.item{padding-bottom:12px}
}

/* ---------- pagination, numbered the way the sheet numbers it ---------- */
.pager{margin-top:var(--s-24); display:flex; gap:6px; align-items:center; justify-content:center;
  font-size:14.5px; color:var(--muted); flex-wrap:wrap}
.pg{background:none; border:0; color:var(--muted); font-weight:600; text-decoration:none;
  padding:9px 14px; border-radius:var(--r-8)}
.pg:hover{color:var(--ink)}
.pgnum{min-width:38px; height:38px; display:grid; place-items:center; border-radius:var(--r-8);
  text-decoration:none; color:var(--muted); font-weight:600; font-family:'IBM Plex Mono',monospace}
.pgnum:hover{color:var(--ink); background:var(--field)}
.pgnum.on{background:var(--accent); color:var(--accent-ink)}
.pgdots{color:var(--muted); padding:0 2px}

/* ---------- the modal the sheet uses before something destructive ---------- */
.scrim{position:fixed; inset:0; z-index:90; background:rgba(34,39,31,.55);
  display:grid; place-items:center; padding:20px}
.scrim[hidden]{display:none}
.modal{background:var(--card); border:1px solid var(--line); border-radius:var(--r-24); box-shadow:var(--e4);
  padding:26px 24px 22px; width:100%; max-width:330px; text-align:center}
.modal h3{font-size:17px; font-weight:700; margin:0 0 14px}
.modal .glyph{width:74px; height:74px; margin:0 auto 14px; border-radius:var(--r-24);
  background:var(--pop); color:var(--ink); display:grid; place-items:center}
.modal .glyph svg{width:36px; height:36px; fill:none; stroke:currentColor; stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round}
.modal p{color:var(--muted); font-size:14.5px; margin:0 0 20px}
.modalacts{display:flex; gap:10px; justify-content:center}
.modalacts .ghost{background:var(--card); color:var(--muted); border:1px solid var(--line)}
.modalacts .ghost:hover{background:var(--field)}
.modalacts .danger{background:var(--bad); color:#FBEDE9; margin:0}
.modalacts .danger:hover{filter:brightness(1.08); text-decoration:none}

@media (max-width:620px){
  .steps{padding:16px 6px 12px}
  .steps::before{left:14%; right:14%; top:32px}
  .node{width:30px; height:30px; font-size:13.5px}
  .steps .k{font-size:9px; letter-spacing:.06em}
  .steps .v{font-size:17px}
  .tip{display:none}
  .topnav{display:none}
  .pager{gap:4px}
  .pgnum{min-width:40px; height:40px}
}

/* ============================================================
   The till: a counter of goods on the left, a basket on the right
   ============================================================ */

.cols.till{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
.counter .sectionhead{margin-bottom:12px}
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px}

/* one tile per thing on the shelf */
.goods{display:flex; flex-direction:column; align-items:flex-start; gap:7px; text-align:left;
  background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:var(--r-8);
  padding:13px; font-weight:500; box-shadow:var(--e3);
  transition:border-color .12s, background .12s, transform .06s}
.goods:hover{background:var(--surface-2); border-color:var(--brand); filter:none}
.goods:active{transform:translateY(1px)}
.gtile{width:36px; height:36px; border-radius:var(--r-12); background:var(--paper);
  border:1px solid var(--line-soft); color:var(--accent); display:grid; place-items:center;
  font-family:'IBM Plex Mono',monospace; font-size:13px; font-weight:600}
.gname{font-weight:600; font-size:15px; line-height:1.25; letter-spacing:-.01em}
.gfoot{display:flex; align-items:baseline; justify-content:space-between; gap:8px; width:100%;
  font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--muted)}
.gprice{color:var(--accent); font-weight:600; font-size:13.5px}

/* the basket, inside the receipt */
.basket{list-style:none; margin:0 0 6px; padding:0}
.basket li{padding:11px 0; border-bottom:1px dashed rgba(234,251,247,.24)}
.bline{display:flex; align-items:center; justify-content:space-between; gap:8px}
.bname{font-weight:600; font-size:15px}
.bdrop{background:none; box-shadow:none; color:rgba(234,251,247,.6); border:0; font-size:19px;
  line-height:1; padding:0 2px; cursor:pointer}
.bdrop:hover{color:var(--accent-ink); box-shadow:none}
.bqty{display:flex; align-items:center; gap:7px; margin-top:8px}
.bstep{width:30px; height:30px; padding:0; border-radius:var(--r-8); background:rgba(234,251,247,.14);
  color:var(--accent-ink); box-shadow:none; font-size:18px; display:grid; place-items:center}
.bstep:hover{background:rgba(234,251,247,.24); box-shadow:none}
.bn{min-width:26px; text-align:center; font-family:'IBM Plex Mono',monospace;
  font-variant-numeric:tabular-nums; font-weight:600; font-size:16px}
.bpack{padding:7px 10px; border-radius:var(--r-8); background:rgba(234,251,247,.14);
  color:var(--accent-ink); box-shadow:none; font-size:12.5px;
  font-family:'IBM Plex Mono',monospace}
.bpack:hover{background:rgba(234,251,247,.24); box-shadow:none}
.bprice{width:84px; padding:7px 8px; border-radius:var(--r-8); background:rgba(234,251,247,.12);
  border:0; box-shadow:none; color:var(--accent-ink); font-size:14px; text-align:right}
.bprice:focus{background:rgba(234,251,247,.2); box-shadow:none; border:0}
.btotal{margin-left:auto; font-family:'IBM Plex Mono',monospace; font-variant-numeric:tabular-nums;
  font-weight:600; font-size:16px}
.basketempty{color:rgba(234,251,247,.6); font-size:14px; text-align:center; padding:18px 0 22px;
  margin:0; border-bottom:1px dashed rgba(234,251,247,.24)}
.basketempty[hidden]{display:none}

.charge{width:100%; margin-top:16px; padding:15px; font-size:17px}
.charge[disabled]{background:rgba(234,251,247,.14); color:rgba(234,251,247,.45);
  border-color:transparent; box-shadow:none}

@media (max-width:620px){
  .grid{grid-template-columns:1fr 1fr; gap:10px}
  .goods{padding:12px; border-radius:var(--r-12)}
  .gname{font-size:14.5px}
  .counter{margin-bottom:18px}
  /* the phone strip carries the total and the one button */
  .tally.till{grid-template-columns:1fr auto; align-items:center; gap:10px; padding:10px 12px 11px}
  .tally.till .charge{width:auto; margin:0; padding:12px 22px; font-size:16px;
    background:var(--pop); color:var(--ink); box-shadow:none}
  .tally.till .v{font-size:18px}
}

/* the till is declared after the shared breakpoints, so its stacking rule goes last */
@media (max-width:860px){ .cols.till{grid-template-columns:1fr} }


/* ============================================================
   ነጋድ ራስ — the opening frame. Five seconds, so it has to keep moving:
   the name resolves, a rule draws, the corners close, light crosses the
   letters twice, and a meter says how long is left.
   ============================================================ */
.splash{position:fixed; inset:0; z-index:200; display:grid; place-items:center; overflow:hidden;
  background:
    radial-gradient(112% 76% at 50% 34%, rgba(0,191,166,.14) 0%, transparent 60%),
    radial-gradient(135% 105% at 50% -5%, #1B4A46 0%, #123331 45%, #0A1C1B 100%);
  transition:opacity .6s ease, transform .6s ease, filter .6s ease}
.splash[hidden]{display:none}   /* a class beats [hidden]'s UA rule; no JS, no curtain */
.splash.out{opacity:0; transform:scale(1.035); filter:blur(7px); pointer-events:none}
html.splashing, html.splashing body{overflow:hidden}

/* the app's ruled paper, under a film of grain that will not sit still */
.sgrain{position:absolute; inset:0; pointer-events:none;
  background:repeating-linear-gradient(to bottom,transparent 0 31px,rgba(255,255,255,.021) 31px 32px)}
.sgrain::after{content:''; position:absolute; inset:-60%; opacity:.42; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
  animation:s-grain 1.2s steps(2) infinite}
@keyframes s-grain{
  0%{transform:translate(0,0)} 25%{transform:translate(-1.5%,1%)}
  50%{transform:translate(1%,-1.5%)} 75%{transform:translate(-1%,-1%)} 100%{transform:translate(0,0)}}

/* the first letter of the name, blown up as a watermark and breathing */
.sghost{position:absolute; left:84%; top:50%; z-index:0; pointer-events:none; user-select:none;
  font-family:'Noto Serif Ethiopic',Georgia,serif; font-weight:700; line-height:1;
  font-size:min(96vh,820px); color:rgba(0,191,166,.05);
  transform:translate(-50%,-50%); animation:s-ghost 10s ease-in-out infinite alternate}
@keyframes s-ghost{
  from{transform:translate(-50%,-50%) scale(1); opacity:.75}
  to{transform:translate(-50%,-53%) scale(1.05); opacity:1}}

.splashinner{position:relative; z-index:2; display:flex; flex-direction:column; align-items:center}

/* two corners, not four — a frame that is implied rather than drawn */
.sframe{position:relative; padding:40px clamp(30px,7vw,76px) 34px; text-align:center}
.sframe::before,.sframe::after{content:''; position:absolute; width:36px; height:36px;
  border:1px solid rgba(0,191,166,.45); animation:s-corner 1s ease 1.6s both}
.sframe::before{top:0; left:0; border-right:0; border-bottom:0}
.sframe::after{bottom:0; right:0; border-left:0; border-top:0}
@keyframes s-corner{from{opacity:0; width:8px; height:8px} to{opacity:1; width:36px; height:36px}}

.wordmark{display:flex; align-items:baseline; justify-content:center; gap:.3em;
  font-family:'Noto Serif Ethiopic',Georgia,serif; font-weight:700;
  font-size:clamp(44px,10vw,90px); line-height:1.16; letter-spacing:.012em}
.wordmark span{display:inline-block;
  background:linear-gradient(100deg,#EAFBF7 0%,#EAFBF7 34%,#9FF4E4 45%,#00BFA6 52%,#EAFBF7 63%,#EAFBF7 100%);
  background-size:260% 100%; background-position:118% 0;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:s-rise 1.1s cubic-bezier(.16,.84,.26,1) .22s both,
            s-sheen 3.3s ease-in-out 1.5s 2 both}
.wordmark .w2{animation-delay:.38s, 1.72s}
@keyframes s-rise{from{opacity:0; transform:translateY(30px)} to{opacity:1; transform:none}}
@keyframes s-sheen{from{background-position:118% 0} to{background-position:-52% 0}}

.sweep{height:1px; width:0; margin:27px auto 19px; border-radius:2px;
  background:linear-gradient(90deg,transparent,rgba(0,191,166,.92) 50%,transparent);
  animation:s-draw 1.15s cubic-bezier(.16,.84,.26,1) .6s both}
@keyframes s-draw{from{width:0; opacity:0} to{width:min(300px,56vw); opacity:1}}

.byline{font-family:'IBM Plex Mono',monospace; font-size:12.5px; text-transform:uppercase;
  color:#EFF0E7; animation:s-byline 1.1s ease 1.1s both}
@keyframes s-byline{from{opacity:0; letter-spacing:.46em} to{opacity:.6; letter-spacing:.3em}}

/* the wait, made legible */
.sprog{width:150px; height:2px; margin-top:46px; border-radius:2px; overflow:hidden;
  background:rgba(234,251,247,.12); animation:s-fade .7s ease 1.6s both}
.sprog i{display:block; height:100%; width:0; border-radius:2px;
  background:linear-gradient(90deg,rgba(0,191,166,.45),#00BFA6);
  animation:s-meter 4.55s cubic-bezier(.33,0,.2,1) .35s both}
@keyframes s-meter{from{width:0} to{width:100%}}
@keyframes s-fade{from{opacity:0} to{opacity:1}}

@media (max-width:620px){
  .sframe{padding:36px 26px 30px}
  .byline{font-size:11px}
  .sprog{width:124px; margin-top:38px}
}

@media (prefers-reduced-motion:reduce){
  .sgrain::after,.sghost,.sframe::before,.sframe::after,
  .wordmark span,.sweep,.byline,.sprog,.sprog i{animation:none}
  .wordmark span{color:#EAFBF7; -webkit-text-fill-color:#EAFBF7}
  .sweep{width:min(300px,56vw)}
  .byline{opacity:.6; letter-spacing:.3em}
  .sprog i{width:100%}
}

/* the gate wears the name the splash just showed */
.gatehead{display:block; text-align:center; margin-bottom:22px}
.gatehead .gatemark{font-family:'Noto Serif Ethiopic',Georgia,serif; font-weight:700; font-size:43px;
  line-height:1.18; margin:0; letter-spacing:.012em; color:var(--ink)}
/* the hairline the splash drew, kept as a seal under the name */
.gatehead .gatemark::after{content:''; display:block; width:96px; height:2px; margin:13px auto 0; border-radius:2px;
  background:linear-gradient(90deg,transparent,var(--teal) 20%,var(--teal) 80%,transparent)}
.gatehead .sub{margin-top:12px}
/* the wordmark names its own face wherever it appears, so Ethiopic never falls back to tofu */
.fbrand{font-family:'Noto Serif Ethiopic',Georgia,serif; font-weight:700; letter-spacing:0}
.poweredby{font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.2em;
  text-transform:uppercase; color:var(--muted); opacity:.75; text-align:center; margin:22px 0 0}


/* ---------- the logo on the gate and in the opening frame ---------- */
.gatelogo{display:block; width:min(292px,76%); height:auto; margin:0 auto}
.gatehead .sub{margin-top:16px}

.sseal{display:block; width:clamp(86px,17vw,124px); height:auto; margin:0 auto 26px;
  filter:drop-shadow(0 16px 30px rgba(0,0,0,.45));
  animation:s-seal 1.05s cubic-bezier(.16,.84,.26,1) both}
@keyframes s-seal{
  from{opacity:0; transform:translateY(16px) scale(.9)}
  to{opacity:1; transform:none}}
@media (max-width:620px){ .sseal{margin-bottom:20px} }
@media (prefers-reduced-motion:reduce){ .sseal{animation:none} }

/* ---------- More: the paperwork screens, off the Stock tab ---------- */
.morelist{display:grid; gap:12px; max-width:620px}
.morecard{display:flex; align-items:center; gap:14px; text-decoration:none; color:var(--ink);
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-12);
  padding:15px 17px; box-shadow:var(--e3); transition:background .12s, border-color .12s}
.morecard:hover{background:var(--field); border-color:var(--rule-strong)}
.moreicon{flex:0 0 auto; width:44px; height:44px; border-radius:var(--r-12);
  background:var(--paper); border:1px solid var(--line-soft); color:var(--accent);
  display:grid; place-items:center}
.moreicon svg{width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2;
  stroke-linecap:round; stroke-linejoin:round}
.moretext{min-width:0; flex:1; display:flex; flex-direction:column; gap:2px}
.morename{font-weight:700; font-size:16px}
.moreblurb{color:var(--muted); font-size:13.5px; line-height:1.35}
.morecount{font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--muted);
  white-space:nowrap}
.morego{color:var(--accent); font-size:19px; line-height:1}
@media (max-width:620px){
  .morecount{display:none}
  .morecard{padding:14px}
}

/* ============================================================
   Made for hands, not for typists: pick by tapping, count in words,
   work the change out at the counter, and take a mistake back.
   ============================================================ */

/* picking an item — Buy and Move use the till's own tiles */
.pickgrid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); margin-bottom:2px}
.pick{cursor:pointer}
.pick.on{border-color:var(--brand); background:var(--brand-soft); box-shadow:0 0 0 1px var(--brand)}
.pick.on .gname{color:var(--accent)}
.newtile .gtile.plus{font-size:21px; font-weight:400; color:var(--muted)}
.newwrap{margin-top:11px}
.newwrap[hidden]{display:none}
.picked{margin:10px 0 0; font-size:14px; font-weight:600; color:var(--accent)}

/* the sum, said the way a person would say it */
.plain{margin:0 0 15px; font-size:15.5px; line-height:1.5; color:rgba(234,251,247,.92)}

/* cash and change, inside the receipt */
.cash{border-top:1px dashed rgba(234,251,247,.26); margin-top:6px; padding-top:15px}
.cash label{display:block; font-size:14px; font-weight:600; margin-bottom:8px;
  color:rgba(234,251,247,.86)}
.cash .money input{background:rgba(234,251,247,.14); border:1px solid rgba(234,251,247,.32);
  color:var(--accent-ink); font-size:18px}
.cash .money input:focus{border-color:var(--teal); box-shadow:none}
.cash .money .cur{color:rgba(234,251,247,.68)}
.notes{display:flex; flex-wrap:wrap; gap:7px; margin:10px 0 2px}
.notes .chip{background:rgba(234,251,247,.15); color:var(--accent-ink);
  border:1px solid rgba(234,251,247,.3); padding:8px 14px}
.notes .chip:hover{background:rgba(234,251,247,.24)}
.line.change .v{color:var(--teal); font-size:28px}
.line.change .v.neg{color:var(--on-accent-bad)}

/* undo rides on the message that says what just happened */
.flash .ftext{flex:1; min-width:0}
.undoform{margin:0}
.undo{background:var(--surface); color:#0B4F46; border:1px solid #A7E5DA;
  border-radius:var(--r-8); padding:7px 14px; font-size:13.5px; font-weight:600; white-space:nowrap}
.undo:hover{filter:brightness(1.06)}
@media (max-width:620px){
  .flash{flex-wrap:wrap}
  .undo{padding:10px 18px}
  .pickgrid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}
}

/* a screen shows its own job: two figures where there is no margin to show */
.today.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.hero.wide{grid-column:1 / -1}
.herorow{flex-wrap:wrap}

/* ---------- the buy tiles, denser now that they carry a brand ---------- */
.pickgrid{grid-template-columns:repeat(auto-fill,minmax(158px,1fr)); gap:10px}
.pickgrid .goods{padding:12px 13px; gap:5px}
.pickgrid .gname{font-size:15px; line-height:1.2}
.pickgrid .gfoot{flex-wrap:wrap; gap:3px 9px; font-size:12px}
.gbrand{color:var(--accent); font-weight:700; letter-spacing:.01em}
.newtile .gname{color:var(--muted); font-weight:600}

/* the item you chose, said in one line instead of two fields */
.picked{display:flex; align-items:baseline; gap:10px; margin:10px 0 0; flex-wrap:wrap}
.picked[hidden]{display:none}   /* a class with display beats the browser's [hidden] */
.pickedname{font-size:15px; font-weight:700; color:var(--accent)}
.linkish{background:none; border:0; padding:0; color:var(--muted); font-size:13.5px;
  font-weight:600; text-decoration:underline; cursor:pointer}
.linkish:hover{color:var(--ink); filter:none}
.row.newwrap{margin-top:11px}
.row.newwrap[hidden]{display:none}

@media (max-width:620px){
  .pickgrid{grid-template-columns:repeat(auto-fill,minmax(142px,1fr))}
  .stepper{grid-template-columns:62px minmax(0,1fr) 62px}
  .stepper input{font-size:28px}
}

/* the APK download page */
.getsub{color:var(--muted); font-size:13px; margin-top:9px; letter-spacing:.01em}

/* ---------- the download page, now that there are two apps ---------- */
body.gate.wide .getbox{max-width:760px}
.getgrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; margin-top:4px}
.getcard{text-align:center; padding:20px 18px}
.getname{font-family:'Noto Serif Ethiopic',Georgia,serif; font-size:21px; margin:0 0 6px}
.getwho{color:var(--muted); font-size:13.5px; line-height:1.45; margin:0 0 14px; min-height:3em}
.getqr{width:190px; height:190px; border-radius:12px; display:block; margin:0 auto 16px}
.getcard .submit{display:block; text-decoration:none; padding:13px}
.getcard .submit.ghost{background:var(--card); color:var(--accent); border:1px solid var(--line)}
.getmeta{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--muted); margin:10px 0 0}

/* ---------- the top row holds no name, so it rides on the right ---------- */
header.bar .langswitch{margin-left:auto}
header.bar .who-bar{margin-left:0}

/* how far through setting up the shop is */
.progwrap{display:inline-flex; gap:8px; margin-left:12px; vertical-align:middle}
.prog{font-family:'IBM Plex Mono',monospace; font-size:12px; font-weight:600; letter-spacing:.04em;
  text-transform:uppercase; color:var(--muted); background:var(--card);
  border:1px solid var(--line); border-radius:var(--r-pill); padding:4px 11px}
.prog b{color:var(--ink); font-size:13px}
.prog .of{opacity:.65}
.prog.done{color:var(--accent); border-color:var(--accent); background:var(--accent-soft)}
.prog.done b{color:var(--accent)}
@media (max-width:620px){ .progwrap{display:flex; margin:8px 0 0} }

/* which store is holding what, on a shop that keeps several */
.where{font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--muted);
  background:var(--paper); border:1px solid var(--line-soft); border-radius:var(--r-pill);
  padding:2px 9px}
.where b{color:var(--ink)}
.storepick{margin-bottom:4px}
.storepick .seg{text-decoration:none}

/* ---------- the item column, read at a glance in a dense table ---------- */
.stockt td.item{min-width:290px}
.itemhead{gap:11px}
.itile{width:34px; height:34px; border-radius:var(--r-8); font-size:12.5px;
  background:var(--aqua); border:1px solid #BFE9E1; color:var(--mark)}
.iname{font-weight:600; font-size:14.5px; letter-spacing:-.005em}
.isub{display:flex; align-items:center; gap:7px; margin-top:3px; flex-wrap:wrap}
.per{font-size:11.5px; color:var(--muted); font-family:inherit}
.gbrand{font-size:11.5px; font-weight:600; color:var(--label); letter-spacing:0}
.where{font-size:11px; padding:1px 7px; border-radius:var(--r-4); background:var(--surface-2);
  border:1px solid var(--line); color:var(--muted); font-family:inherit}
.lowtag{font-size:10.5px; padding:1px 7px; border-radius:var(--r-4);
  background:var(--warn-soft); color:#7A4C09; border:1px solid #EBD7AE;
  text-transform:uppercase; letter-spacing:.05em; font-weight:700}
.lowrow td{background:#FCF6E8}

/* ---------- rows that read label-above-value, after the reference ---------- */
.feed .ftext{gap:3px}
.morecard{border-radius:var(--r-16); padding:16px 18px}
.moreicon{border-radius:var(--r-12); background:var(--aqua); border:1px solid #BFE9E1; color:var(--mark)}
.morename{font-size:15.5px}
.moreblurb{font-size:13px}

/* the pipeline, closer to the reference's spec strip */
.steps .k{font-size:10.5px; letter-spacing:.09em; font-weight:600}
.steps .v{font-weight:700}
.node{border-radius:50%}

/* figures inside a dark panel keep the same label-above-value rhythm */
.line .k{font-size:10.5px; letter-spacing:.09em; text-transform:uppercase; font-weight:600;
  color:rgba(234,251,247,.6)}
.line{align-items:center}
.line .v{font-size:19px; font-weight:700}
.line.big .v{font-size:26px}

/* ============================================================
   The element kit. Every input, row and figure in the app is one of
   these, so the screens read as one designed system rather than as
   browser defaults wearing a palette.
   ============================================================ */

.ic{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6;
  stroke-linecap:round; stroke-linejoin:round; display:block}

/* ---- a grouped list: one bordered card, rows divided by hairlines ---- */
.rowlist{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-16);
  overflow:hidden; box-shadow:var(--e3)}
.row-item{display:flex; align-items:center; gap:14px; padding:14px 16px;
  border-bottom:1px solid var(--line-soft)}
.row-item:last-child{border-bottom:0}
.row-ic{flex:0 0 auto; width:38px; height:38px; border-radius:var(--r-8); display:grid;
  place-items:center; background:var(--aqua); color:var(--mark); border:1px solid #CBEDE6}
.row-text{min-width:0; flex:1; display:flex; flex-direction:column; gap:2px}
.row-label{font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  font-weight:600; color:var(--muted)}
.row-value{font-size:15.5px; font-weight:600; color:var(--ink); letter-spacing:-.01em}
.row-item .row-end{margin-left:auto; display:flex; align-items:center; gap:10px}

/* ---- a field, as a row of that same list ---- */
.fieldlist{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-16);
  overflow:hidden; box-shadow:var(--e3); margin-bottom:16px}
.fieldrow{display:flex; align-items:center; gap:14px; padding:11px 16px;
  border-bottom:1px solid var(--line-soft); transition:background .12s}
.fieldrow:last-child{border-bottom:0}
.fieldrow:focus-within{background:var(--surface-2)}
.fieldrow .row-ic{background:var(--surface-2); border-color:var(--line); color:var(--mark)}
.fieldrow:focus-within .row-ic{background:var(--aqua); border-color:#CBEDE6; color:var(--mark)}
.fieldrow .wrap-in{min-width:0; flex:1; display:flex; flex-direction:column; gap:1px}
.fieldrow label{font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  font-weight:600; color:var(--muted)}
.fieldrow input,.fieldrow select{border:0; background:none; padding:2px 0 3px; width:100%;
  font-size:16px; font-weight:600; color:var(--ink); border-radius:0}
.fieldrow input:focus,.fieldrow select:focus{outline:0; box-shadow:none; border:0}
.fieldrow input::placeholder{font-weight:500; color:#9BB2AE}
.fieldrow .suffix{font-size:12px; color:var(--muted); font-weight:600; white-space:nowrap}
.fieldrow.half{flex:1}
.fieldpair{display:flex; gap:0}
.fieldpair .fieldrow{flex:1; border-bottom:1px solid var(--line-soft)}
.fieldpair .fieldrow + .fieldrow{border-left:1px solid var(--line-soft)}

/* ---- the round action, straight from the reference ---- */
.goround{width:54px; height:54px; border-radius:50%; display:grid; place-items:center;
  background:var(--teal); color:var(--lagoon); border:0; padding:0; flex:0 0 auto}
.goround .ic{width:24px; height:24px; stroke-width:2}
.goround:hover{background:var(--teal-deep)}
.goround[disabled]{background:var(--sunken); color:var(--muted)}
.actionbar{display:flex; align-items:center; gap:14px; margin-top:18px}
.actionbar .what{flex:1; min-width:0}
.actionbar .what .k{font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  font-weight:600; color:var(--muted); display:block}
.actionbar .what .v{font-size:19px; font-weight:700; letter-spacing:-.02em}

/* ---- a spec grid: three facts across, label above value ---- */
.specs{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 14px;
  padding:16px 18px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-16); box-shadow:var(--e3)}
.specs .s-k{font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  font-weight:600; color:var(--muted)}
.specs .s-v{font-size:16px; font-weight:700; margin-top:3px; letter-spacing:-.01em;
  font-variant-numeric:tabular-nums}
.specs.on-dark{background:transparent; border:0; box-shadow:none; padding:16px 0 4px}
.specs.on-dark .s-k{color:rgba(234,251,247,.55)}
.specs.on-dark .s-v{color:#EAFBF7}

/* ---- the page's own title block ---- */
.pagehead{display:flex; align-items:flex-start; gap:14px; margin:20px 0 16px}
.pagehead .pt{flex:1; min-width:0}
.pagehead h2{margin:0; font-size:22px; font-weight:700; letter-spacing:-.025em}
.pagehead .psub{color:var(--muted); font-size:13.5px; margin-top:3px}
.avatar{width:40px; height:40px; border-radius:50%; display:grid; place-items:center;
  background:var(--lagoon); color:var(--aqua); font-size:13px; font-weight:700; flex:0 0 auto}

@media (max-width:620px){
  .specs{grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px}
  .pagehead h2{font-size:19px}
  .fieldpair{flex-direction:column}
  .fieldpair .fieldrow + .fieldrow{border-left:0}
}

/* ---- the picker above the fields ---- */
.picker{margin-bottom:16px}
.picker-head{font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  font-weight:600; color:var(--muted); margin-bottom:9px}

/* ---- a small -/+ beside a count, instead of a three-column stepper ---- */
.nudge{width:34px; height:34px; padding:0; border-radius:var(--r-8); font-size:19px;
  line-height:1; background:var(--surface-2); color:var(--mark); border:1px solid var(--line)}
.nudge:hover{background:var(--aqua); border-color:#CBEDE6; filter:none}

/* ---- pills inside a field row (which store) ---- */
.inline-pick{display:flex; flex-wrap:wrap; gap:6px; margin-top:4px}
.pillpick{padding:7px 13px; border-radius:var(--r-pill); font-size:13px; font-weight:600;
  background:var(--surface-2); color:var(--label); border:1px solid var(--line);
  text-decoration:none; display:inline-block; line-height:1.2}
.pillpick.on{background:var(--lagoon); color:var(--aqua); border-color:var(--lagoon)}
.pillpick:hover{filter:none; background:var(--aqua)}
.pillpick.on:hover{background:var(--lagoon)}

/* the dark panel's own body keeps its padding now that lines became specs */
.slip .body{padding:4px 20px 20px}
.plain{margin:14px 0 4px}

/* ---- the cash row, inside the dark panel ---- */
.cash{border-top:1px solid rgba(234,251,247,.14); margin-top:10px; padding-top:14px}
.cashrow{display:flex; align-items:center; gap:12px}
.cashrow .row-ic.dark{background:rgba(234,251,247,.1); border-color:rgba(234,251,247,.18);
  color:#9FF4E4}
.cashrow .wrap-in{flex:1; min-width:0; display:flex; flex-direction:column; gap:1px}
.cashrow label{font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  font-weight:600; color:rgba(234,251,247,.6)}
.cashrow input{background:none; border:0; padding:2px 0; font-size:20px; font-weight:700;
  color:#EAFBF7; width:100%}
.cashrow input:focus{outline:0; box-shadow:none}
.cashrow .suffix{color:rgba(234,251,247,.6); font-size:12px; font-weight:600}
.specs.on-dark.change{grid-template-columns:1fr; padding-top:12px}
.specs .s-v.big{font-size:28px; color:var(--teal)}
.specs .s-v.big.neg{color:var(--on-accent-bad)}
.actionbar.on-dark{margin-top:16px; padding-top:14px; border-top:1px solid rgba(234,251,247,.14)}
.actionbar.on-dark .what .k{color:rgba(234,251,247,.6)}
.actionbar.on-dark .what .v{color:#EAFBF7}
.notes .chip{background:rgba(234,251,247,.12); color:#EAFBF7; border-color:rgba(234,251,247,.22)}

/* ============================================================
   One control scale. Every clickable thing in the app is one of these
   three heights, with one icon size and one corner radius each.
   ============================================================ */
.ic{width:18px; height:18px; flex:0 0 auto}
.row-ic .ic{width:19px; height:19px}
.goround .ic{width:22px; height:22px; stroke-width:2}
.nudge .ic{width:16px; height:16px}

button, .mini, .chip, .pillpick, .signout, .seg{min-height:38px}
.nudge{min-height:34px}
button{display:inline-flex; align-items:center; justify-content:center; gap:8px}
.goround{min-height:54px}
.mini, .chip, .pillpick{display:inline-flex; align-items:center; gap:7px}

/* an icon sitting inside a control is never the same weight as the text */
button .ic{stroke-width:2}

/* ============================================================
   The input, done once. Every field in the app is this control:
   a label, a 46px box with its own icon and suffix, and states that
   are obvious — rest, hover, focus, error, disabled.
   ============================================================ */

/* the native number spinners are the single cheapest-looking thing a form
   can have, and nobody uses them on a phone */
input[type=number]{-moz-appearance:textfield; appearance:textfield}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none; margin:0}

.field{display:flex; flex-direction:column; gap:7px; margin-bottom:16px}
.field > label{font-size:13px; font-weight:600; color:#27423F; letter-spacing:-.005em}
.field > label .hint{font-weight:500; color:#6B8582; font-size:12px; margin-left:6px}

.inputwrap{position:relative; display:flex; align-items:center; gap:0;
  background:#fff; border:1.5px solid #CFDEDB; border-radius:12px; height:46px;
  transition:border-color .12s, box-shadow .12s, background .12s}
.inputwrap:hover{border-color:#A9C8C3}
.inputwrap:focus-within{border-color:var(--teal); box-shadow:0 0 0 3.5px rgba(0,191,166,.16)}
.inputwrap .lead{display:grid; place-items:center; width:42px; height:100%; color:#6B8582;
  flex:0 0 auto}
.inputwrap:focus-within .lead{color:var(--mark)}
.inputwrap input,.inputwrap select{height:100%; border:0; background:none; padding:0 14px;
  font-size:15.5px; font-weight:500; color:var(--ink); width:100%; border-radius:0}
.inputwrap .lead + input,.inputwrap .lead + select{padding-left:0}
.inputwrap input:focus,.inputwrap select:focus{outline:0; box-shadow:none}
.inputwrap input::placeholder{color:#9BB2AE; font-weight:400}
.inputwrap .tail{display:flex; align-items:center; height:100%; padding:0 14px 0 12px;
  font-size:12.5px; font-weight:600; color:#6B8582; border-left:1px solid #E8F1EF;
  letter-spacing:.04em; flex:0 0 auto}
.inputwrap.num input{font-variant-numeric:tabular-nums; font-weight:600; font-size:17px}
.inputwrap.bad{border-color:var(--bad); background:#FFF8F7}
.inputwrap.bad:focus-within{box-shadow:0 0 0 3.5px rgba(179,38,30,.14)}
.field .err{font-size:12.5px; color:var(--bad); font-weight:500}
.inputwrap select{appearance:none; -webkit-appearance:none; padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235C7572' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 13px center}
.inputwrap input[disabled],.inputwrap.off{background:#F2F6F5; color:#6B8582}

/* a count: the box with a minus and a plus either side of it */
.countbox{display:flex; align-items:center; gap:10px}
.countbox .inputwrap{flex:1}
.countbox .inputwrap input{text-align:center; font-size:19px; font-weight:700}
.countbox .nudge{width:46px; height:46px; min-height:46px; border-radius:12px;
  background:#fff; border:1.5px solid #CFDEDB; color:var(--mark); display:grid; place-items:center}
.countbox .nudge:hover{border-color:var(--teal); background:#F3FCFA; filter:none}
.countbox .nudge:active{transform:translateY(1px)}

/* two fields that belong together */
.field.pair{flex-direction:row; gap:12px}
.field.pair > .half{flex:1; display:flex; flex-direction:column; gap:7px; min-width:0}

@media (max-width:620px){
  .inputwrap{height:50px}
  .countbox .nudge{width:50px; height:50px; min-height:50px}
  .field.pair{flex-direction:column; gap:16px}
}

/* ============================================================
   The app, as a modern phone product: a tinted page, white cards with
   deep corners, round icon buttons, list rows as pills with a circular
   icon and a chevron, and one full-width pill as the action.
   ============================================================ */
body{background:#E8F2EF}
.wrap{padding:0 18px 40px}

/* --- top row: the shop, the language, you --- */
header.bar{border:0; padding:16px 0 6px; gap:10px}
.who-bar{gap:8px}
.roundbtn{width:44px; height:44px; border-radius:50%; background:#fff; border:0;
  display:grid; place-items:center; color:var(--lagoon);
  box-shadow:0 4px 14px -8px rgba(15,42,42,.45)}
.signout{height:44px; border-radius:22px; border:0; background:#fff; padding:0 16px;
  display:inline-flex; align-items:center; box-shadow:0 4px 14px -8px rgba(15,42,42,.45);
  color:var(--lagoon); font-weight:600}
.langswitch{background:#fff; border:0; border-radius:22px; padding:4px;
  box-shadow:0 4px 14px -8px rgba(15,42,42,.45)}
.lg{border-radius:18px; padding:7px 12px}
.lg.on{background:var(--lagoon); color:#EAFBF7}
.roletag{display:none}

/* --- the title, big --- */
.pagehead{margin:10px 0 18px; align-items:center}
.pagehead h2{font-size:34px; font-weight:800; letter-spacing:-.035em; line-height:1.05}
.pagehead .psub{font-size:14px; color:#5C7572; margin-top:7px}
.avatar{width:48px; height:48px; border-radius:50%; font-size:14px;
  box-shadow:0 6px 18px -10px rgba(15,42,42,.6)}

/* --- the sections --- */
.topnav{background:#fff; border:0; border-radius:26px; padding:5px; gap:2px; margin-bottom:18px;
  box-shadow:0 6px 18px -12px rgba(15,42,42,.4)}
.topnav a{padding:10px 15px; border-radius:22px; font-size:13.5px}
.topnav a.on{background:var(--lagoon); color:#EAFBF7}
.topnav a.on::after{display:none}

/* --- cards --- */
.panel, form.card, .stat, .feed, .scroll, .itemcard, .steps, .rowlist, .fieldlist,
.morelist .morecard, .specs{border-radius:24px; border:0;
  box-shadow:0 8px 24px -16px rgba(15,42,42,.5)}
.stat{padding:16px 18px}
.slip{border-radius:28px}

/* --- a row as a white pill: circle icon, text, chevron --- */
.rowpill{display:flex; align-items:center; gap:14px; background:#fff; border-radius:22px;
  padding:14px 16px; margin-bottom:11px; box-shadow:0 6px 18px -14px rgba(15,42,42,.5);
  text-decoration:none; color:var(--ink)}
.rowpill .circle{width:44px; height:44px; border-radius:50%; background:#EAF6F3;
  color:var(--mark); display:grid; place-items:center; flex:0 0 auto}
.rowpill .tx{flex:1; min-width:0; display:flex; flex-direction:column; gap:3px}
.rowpill .tx .n{display:block; font-size:15.5px; font-weight:700; letter-spacing:-.015em}
.rowpill .tx .s{display:block; font-size:12.5px; color:#5C7572}
.rowpill .end{display:flex; align-items:center; gap:10px; color:#5C7572}
.rowpill .amt{font-size:16px; font-weight:800; letter-spacing:-.02em; color:var(--ink)}

/* --- the action: one full-width pill --- */
.cta{display:flex; align-items:center; justify-content:center; gap:10px; width:100%;
  height:58px; border-radius:29px; background:var(--lagoon); color:#EAFBF7; border:0;
  font-size:16px; font-weight:700; letter-spacing:-.01em; margin-top:6px;
  box-shadow:0 14px 30px -16px rgba(15,42,42,.9)}
.cta.teal{background:var(--teal); color:var(--lagoon)}
.cta[disabled]{background:#C9DAD6; color:#7E9794; box-shadow:none}
.cta .ic{width:20px; height:20px; stroke-width:2.2}

/* --- three small facts in a row --- */
.trio{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px}
.trio .t{background:#fff; border-radius:20px; padding:14px 13px;
  box-shadow:0 6px 18px -14px rgba(15,42,42,.5)}
.trio .t .ic{color:var(--teal); margin-bottom:8px}
.trio .t .k{font-size:11px; color:#5C7572; font-weight:600}
.trio .t .v{font-size:17px; font-weight:800; letter-spacing:-.025em; margin-top:3px}

/* the old chrome that this replaces */
.tabbar{background:#fff; border:0; box-shadow:0 -6px 20px -14px rgba(15,42,42,.6)}

/* the till's rows and its one action */
.rowpill.goods{width:100%; text-align:left; border:0; padding:14px 16px; min-height:0;
  flex-direction:row; align-items:center; gap:14px; background:#fff}
.rowpill.goods:hover{background:#fff; border:0; transform:none}
.rowpill.goods:active{transform:scale(.995)}
.rowpill .circle.plus{width:38px; height:38px; background:var(--teal); color:var(--lagoon)}
.cta .js-total{margin-left:auto; font-variant-numeric:tabular-nums}
.grid{display:block}
.countbox .nudge .ic,.rowpill .ic{width:19px; height:19px}

/* ============================================================
   Setting the shop up — the first screen anyone sees, so it carries
   the same language as the rest: tinted page, white cards, deep corners.
   ============================================================ */
body.setupbody{background:#E8F2EF; padding:0}
.setupwrap{max-width:460px; margin:0 auto; padding:18px 18px 44px}
.setuptop{display:flex; align-items:center; justify-content:space-between; margin-bottom:22px}
.setupmark{width:54px; height:54px; border-radius:18px; display:block;
  box-shadow:0 10px 24px -14px rgba(15,42,42,.8)}
.setuptitle{font-size:32px; font-weight:800; letter-spacing:-.035em; line-height:1.05; margin:0}
.setupsub{color:#5C7572; font-size:14.5px; line-height:1.5; margin:9px 0 20px}

.setupcard{background:#fff; border-radius:24px; padding:20px 18px 8px; margin-bottom:14px;
  box-shadow:0 8px 24px -16px rgba(15,42,42,.5)}
.cardtitle{display:flex; align-items:center; gap:11px; margin-bottom:16px;
  font-size:15.5px; font-weight:700; letter-spacing:-.01em}
.cardtitle .circle{width:38px; height:38px; border-radius:50%; background:#EAF6F3;
  color:var(--mark); display:grid; place-items:center; flex:0 0 auto}
.setupcard .field{margin-bottom:16px}
.setupcard .helper{font-size:12.5px; color:#5C7572; line-height:1.45; margin-top:2px}
.setupbody .cta{margin-top:4px}
.setupnote{text-align:center; color:#5C7572; font-size:12.5px; margin:18px 0 0; line-height:1.5}
.setupbody .errors{border-radius:16px; margin-bottom:16px}
.setupbody .poweredby{margin-top:14px}

/* ============================================================
   The owner's console. Not a shop: a lagoon band across the top, the
   companies underneath on the same white surfaces the shops use, so the
   figures read the same way wherever you are standing.
   ============================================================ */

body.console{background:var(--page)}

.conbar{display:flex; align-items:center; gap:16px; background:var(--lagoon); color:#EAFBF7;
  padding:14px 24px; position:sticky; top:0; z-index:40;
  box-shadow:0 10px 30px -22px rgba(15,42,42,.9)}
.conmark{display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit}
.conmark img{width:34px; height:34px; border-radius:10px; display:block}
.conwords{display:flex; flex-direction:column; line-height:1.15}
.conwords .c1{font-family:'Noto Serif Ethiopic',Georgia,serif; font-size:15px; font-weight:700}
.conwords .c2{font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:rgba(234,251,247,.62); font-weight:600}
.connav{display:flex; align-items:center; gap:10px; margin-left:auto}
.conback,.consignout{display:inline-flex; align-items:center; gap:7px; text-decoration:none;
  font-size:13.5px; font-weight:600; border-radius:var(--r-pill); padding:9px 15px;
  color:#EAFBF7; background:rgba(234,251,247,.1)}
.conback:hover,.consignout:hover{background:rgba(234,251,247,.18)}
.conback .ic{width:17px; height:17px}
.consignout{background:var(--teal); color:var(--lagoon)}
.consignout:hover{background:#2FD4BE}

.conwrap{max-width:1180px; margin:0 auto; padding:26px 24px 72px}

.conhead{display:flex; align-items:flex-end; gap:18px; margin:4px 0 22px}
.conhead > div{flex:1; min-width:0}
.conhead h1{margin:0; font-size:27px; font-weight:800; letter-spacing:-.03em;
  display:flex; align-items:center; gap:11px; flex-wrap:wrap}
.consub{color:var(--muted); font-size:14px; line-height:1.55; margin:7px 0 0; max-width:62ch}
.conhead .submit{text-decoration:none; white-space:nowrap}
.submit.hold{background:var(--warn-soft); color:#6E4708; border-color:#E8D3A8}
.submit.hold:hover{background:#F6E6C8}

/* the list of companies */
.orgtable td{vertical-align:top}
.orglink{font-weight:700; color:var(--ink); text-decoration:none; border-bottom:2px solid var(--aqua)}
.orglink:hover{border-bottom-color:var(--teal)}
.orgcontact{display:block; font-size:12.5px; color:var(--muted); font-weight:500; margin-top:3px}
.never{color:#9BB2AE; font-style:italic}
tr.dimrow td{background:var(--surface-2); color:var(--muted)}

.tag.live{background:var(--good-soft); color:var(--good)}
.tag.warn{background:var(--warn-soft); color:var(--warn)}
.tag.off{background:var(--bad-soft); color:var(--bad)}

.mini.warnish{color:#8A5A0B; border-color:#E8D3A8; background:var(--warn-soft)}
.mini.warnish:hover{background:#F6E6C8}
form.inline{display:inline-flex; align-items:center; gap:6px; margin-left:6px}
form.inline button{padding:6px 12px; font-size:13px; border-radius:var(--r-8)}
.pwform .pwinput{height:34px; width:130px; font-size:13.5px; border-radius:var(--r-8); padding:0 10px}

/* one company: its people on the left, who they are on the right */
.conrow{display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:24px;
  align-items:start; margin-top:26px}
.conpanel{min-width:0}
.conpanel h2,.conside h2{font-size:13px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--muted); margin:0 0 12px}
.conside .card + .card{margin-top:20px}
.conside .card h2{margin-bottom:12px}
.card.sub{margin-top:18px}
.card.sub h3{margin:0 0 4px; font-size:16px; font-weight:700; letter-spacing:-.015em}
.cardsub{color:var(--muted); font-size:13px; line-height:1.5; margin:0 0 16px}
.console .card,.console form.card{background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-16); padding:20px; box-shadow:var(--e3)}
.console textarea{font:inherit; font-size:15px; color:var(--ink); background:#fff;
  border:1.5px solid #CFDEDB; border-radius:12px; padding:11px 14px; width:100%; resize:vertical;
  transition:border-color .12s, box-shadow .12s}
.console textarea:focus{outline:0; border-color:var(--teal); box-shadow:0 0 0 3.5px rgba(0,191,166,.16)}
.console .scroll table{min-width:520px}
.conpanel .scroll{overflow-x:auto}

.factlist{list-style:none; margin:0 0 20px; padding:0}
.factlist li{display:flex; align-items:baseline; justify-content:space-between; gap:14px;
  padding:9px 0; border-bottom:1px solid var(--line-soft); font-size:14px}
.factlist li:last-child{border-bottom:0}
.factlist span{color:var(--muted)}
.factlist b{font-weight:700; font-variant-numeric:tabular-nums; text-align:right}
.facts h2:not(:first-child){margin-top:20px}

.addco{margin-top:28px}
.addco h2{font-size:19px; font-weight:700; letter-spacing:-.02em; margin:0 0 4px;
  text-transform:none; letter-spacing:-.02em; color:var(--ink)}

/* the sign-up and hold screens share the gate */
.gatesplit{margin:20px 0 14px; font-size:12px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--muted); font-weight:700; border-top:1px solid var(--line-soft); padding-top:16px}
.holdcard{text-align:center}
.holdwhat{font-size:18px; font-weight:700; margin:0 0 6px; letter-spacing:-.02em}
.holdwho{font-family:'Noto Serif Ethiopic',Georgia,serif; font-size:22px; font-weight:700;
  margin:0 0 12px}
.holdwhy{color:var(--muted); font-size:14px; line-height:1.6; margin:0 0 20px}
.holdcard .submit{display:inline-block; text-decoration:none}

@media (max-width:900px){
  .conrow{grid-template-columns:1fr}
  .conhead{flex-direction:column; align-items:flex-start; gap:12px}
}
@media (max-width:620px){
  .conbar{padding:12px 16px}
  .conwrap{padding:18px 16px 56px}
  .conhead h1{font-size:23px}
  .console .totals,.console .totals.four{grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
  .pwform .pwinput{width:96px}
}

/* the console's own front door */
.admingate .gatelogo{width:min(220px,62%)}
.adminkicker{margin-top:14px; font-size:11.5px; letter-spacing:.16em; text-transform:uppercase;
  font-weight:700; color:var(--mark)}
.admingate .sub{margin-top:6px}
