:root {
  --paper: #FFFFFF;
  --red: #B3121F;
  --red-700: #8F0E19;
  --red-soft: #FCEFF0;
  --pen: #1C37B0;
  --pen-soft: #EEF2FD;
  --ok: #1F8A5B;
  --rail: 76px;
  --tabs: 0px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { font: 15px/1.4 var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
html:has(.drawer, dialog[open]) { overflow: hidden; }
.stream, .queue, .paper-wrap, .drawer .fields { overscroll-behavior: contain; }
.outcomes, .filters { overscroll-behavior-x: contain; }
body { margin: 0; background: var(--paper); color: var(--g-900); min-height: 100vh; min-height: 100dvh; }
body.app, body.bare { font-size: var(--t-base); line-height: 1.5; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; font-weight: 600; }
h1 { font-size: 26px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
:where(.app, .bare) :is(h1, h2, h3) { font-weight: 700; }
:where(.app, .bare) h1 { font-size: var(--t-2xl); }
:where(.app, .bare) h2 { font-size: var(--t-lg); }
:where(.app, .bare) h3 { font-size: var(--t-base); }
p { margin: 0; }
a { color: var(--g-900); text-decoration-color: var(--g-600); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--g-900); }
small { font-size: 13px; color: var(--g-600); }
:where(.app, .bare) small { font-size: var(--t-sm); }
code, kbd, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: var(--t-sm); }
.muted { color: var(--g-600); }
.warn { color: var(--red); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.js .nojs { display: none !important; }
html:not(.js) .js-only { display: none !important; }
:focus-visible { outline: 2px solid var(--g-900); outline-offset: 2px; }
:where(.app, .bare) :focus-visible { outline-color: var(--go); }
main:focus { outline: none; }
::selection { background: var(--g-200); }
.skip { position: absolute; left: var(--sp-3); top: -48px; z-index: 50; background: var(--g-900); color: var(--paper); padding: var(--sp-2) var(--sp-4); border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--sp-3); }
.no { font: 500 var(--t-sm) var(--mono); color: var(--red); white-space: nowrap; }
.sec, .group h2 { font-size: var(--t-lg); font-weight: 700; color: var(--g-900); }
.history summary, .earlier h3 { font-size: var(--t-base); font-weight: 600; color: var(--g-900); }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.mark { display: block; width: 40px; height: 40px; }
.lg-fire { fill: #FF715B; }
.lg-core { fill: #FFC4B8; }
.lg-cone { fill: #523F38; }
.lg-scale { fill: none; stroke: #FFFFFF; stroke-width: 1; opacity: .5; }
.lg-ash1 { fill: #4C5454; }
.lg-ash2 { fill: #5F6969; }
.lg-ash3 { fill: #A3ADAD; }
.w-ash { color: var(--g-700); }
.w-pine { color: #523F38; }

input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  min-height: 44px; padding: 0 var(--sp-3); border: 1px solid var(--g-300); border-radius: var(--r); background: var(--paper); max-width: 100%; font-size: var(--t-base); font-weight: 400; color: var(--g-900); }
textarea { padding: var(--sp-2) var(--sp-3); line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--go); box-shadow: 0 0 0 1px var(--go); }
input[type=number] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input::placeholder, textarea::placeholder { color: var(--g-400); opacity: 1; }
select { appearance: none; padding-right: calc(var(--sp-3) + 16px + var(--sp-2)); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6969' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") right var(--sp-3) center / 16px no-repeat; }
button, .btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-4);
  border: 0; border-radius: var(--r); background: none; font-size: var(--t-base); font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none; color: var(--g-900); }
button:disabled { opacity: .45; cursor: not-allowed; }
.go { background: var(--go); color: var(--paper); box-shadow: var(--sh-sm); }
.go:hover:not(:disabled) { background: var(--go-700); color: var(--paper); }
.soft { background: var(--g-100); color: var(--g-900); }
.soft:hover { background: var(--g-200); color: var(--g-900); }
.text { padding: 0 var(--sp-2); color: var(--g-700); }
.text.warn { color: var(--red); }
.text:hover { text-decoration: underline; text-underline-offset: .2em; }
.text:not(.warn):hover { color: var(--g-900); }
.bad, button.armed, button.armed.warn { background: var(--red); color: var(--paper); box-shadow: none; }
.bad:hover, button.armed:hover, button.armed.warn:hover { background: var(--red-700); color: var(--paper); text-decoration: none; }
.icon-btn { width: 44px; height: 44px; padding: 0; background: var(--g-100); color: var(--g-900); display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--g-200); }
.chip { padding: 0 var(--sp-3); background: var(--g-100); font-size: var(--t-sm); }
.chip:hover { background: var(--g-200); }
.chip[aria-pressed="true"] { background: var(--g-900); color: var(--paper); }
label { display: flex; flex-direction: column; gap: var(--sp-1); font-size: var(--t-sm); font-weight: 600; color: var(--g-700); }
label small { font-weight: 400; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

.av { width: 32px; height: 32px; flex: none; border-radius: var(--r); display: grid; place-items: center; font-size: var(--t-sm); font-weight: 600; background: var(--g-100); color: var(--g-700); }

.tag { padding: 0 var(--sp-1); border-radius: var(--r-sm); background: var(--g-100); font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; color: var(--g-700); }
.tag.need { background: var(--red-soft); color: var(--red); }

body.app { padding-left: var(--rail); }
.side { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: var(--rail); background: var(--paper); border-right: 1px solid var(--g-200);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); padding: var(--sp-3) 0; }
.side .brand { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--sp-2); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); width: 68px; min-height: 0; padding: var(--sp-1) 0 var(--sp-2);
  border-radius: var(--r); font-size: var(--t-xs); font-weight: 600; color: var(--g-600); text-decoration: none; background: none; }
.tab .i { width: 24px; height: 24px; padding: var(--sp-1) var(--sp-4); box-sizing: content-box; border-radius: var(--r); }
.tab:hover { color: var(--g-900); }
.tab:hover .i { background: var(--g-100); }
.tab[aria-current="page"] { color: var(--g-900); }
.tab[aria-current="page"] .i { background: var(--g-200); }
.badge { position: absolute; top: 0; left: calc(50% + var(--sp-2)); min-width: 20px; height: 20px; padding: 0 var(--sp-1); border-radius: var(--r-sm); background: var(--red); color: var(--paper); font: 600 var(--t-xs)/20px var(--mono); text-align: center; }
.badge.none { display: none; }
.side-end { position: fixed; z-index: 31; left: 0; bottom: var(--sp-3); width: var(--rail); display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }

.taking { position: relative; }
.taking summary { display: flex; align-items: center; gap: var(--sp-1); padding: var(--sp-1) var(--sp-2); border-radius: var(--r); background: var(--g-100); font-size: var(--t-sm); font-weight: 600; color: var(--g-900); }
.taking summary:hover { background: var(--g-200); }
.taking i, .menu-body i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.taking .t-busy i, .taking .t-paused i, .menu-body .d-busy, .menu-body .d-paused { background: var(--g-600); }
.taking .t-closed i { background: var(--red); }
.menu-body { position: absolute; z-index: 31; left: calc(100% + var(--sp-2)); bottom: 0; width: 280px; padding: var(--sp-1); background: var(--paper); border-radius: var(--r); box-shadow: var(--sh-md); display: flex; flex-direction: column; }
.menu-body button { justify-content: flex-start; align-items: flex-start; gap: var(--sp-3); width: 100%; padding: var(--sp-2) var(--sp-3); text-align: left; white-space: normal; }
.menu-body button i { margin-top: calc(.6em - 4px); }
.menu-body button span { display: flex; flex-direction: column; gap: var(--sp-1); }
.menu-body button small { font-weight: 400; }
.menu-body button:hover { background: var(--g-100); }
.menu-body button[aria-pressed="true"] { background: var(--g-200); }
.menu-body p { margin: 0; padding: var(--sp-2) var(--sp-3); color: var(--g-700); }

.me { position: relative; }

main { min-width: 0; }
body.bare main { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-4); }

.strip { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); background: var(--g-100); color: var(--g-900); }
.strip > span, .strip > p { flex: 1; min-width: 0; }
.strip .i { color: var(--g-600); }
.strip.alert { background: var(--red-soft); color: var(--red); }
.strip.alert > span { white-space: pre-line; }
.strip.alert .i { color: var(--red); }
.strip.alert a { color: var(--red); }
.strip.alert .soft { background: var(--paper); color: var(--g-900); }
.strip.done { white-space: pre-line; }
.strip.done .i { color: var(--ok); }
#live:not(.stale) { display: none; }
body.bare .strip { width: min(380px, 100%); border-radius: var(--r); }

.empty { color: var(--g-600); padding: var(--sp-6) var(--sp-4); }
.back { display: none; }
.bill-peek { display: none; }
.sub { color: var(--g-600); font-size: var(--t-sm); }

body:has(.now) main { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.now { flex: 1; min-height: 0; display: grid; grid-template-columns: clamp(280px, 24vw, 340px) minmax(0, 1fr) clamp(340px, 32vw, 460px); }
.now.no-chat { grid-template-columns: clamp(280px, 24vw, 340px) minmax(0, 1fr); }
.rail { display: flex; flex-direction: column; min-height: 0; background: var(--paper); border-right: 1px solid var(--g-200); }
.list-head { padding: var(--sp-6) var(--sp-4) var(--sp-3); }
.list-head h1, .list-head h2 { font-size: var(--t-2xl); }
.find { padding: 0 var(--sp-4) var(--sp-2); }
.search { position: relative; display: flex; align-items: center; flex-direction: row; }
.search .i { position: absolute; left: var(--sp-3); color: var(--g-600); pointer-events: none; }
.search input { width: 100%; padding-left: calc(var(--sp-3) + 20px + var(--sp-2)) !important; background: var(--g-100); border-color: var(--g-100); }
.search input:focus { background: var(--paper); }
.found { display: flex; align-items: center; gap: var(--sp-1); padding: var(--sp-1) var(--sp-4) var(--sp-3); font-size: var(--t-sm); color: var(--g-600); }
.found .term { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.found a { flex: none; }
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-1); padding: var(--sp-1) var(--sp-4) var(--sp-3); }
.filters a { flex: none; display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0 var(--sp-3); border-radius: var(--r); background: var(--g-100);
  font-size: var(--t-sm); font-weight: 600; color: var(--g-700); text-decoration: none; }
.filters a:hover { background: var(--g-200); color: var(--g-900); }
.filters b { font: 600 var(--t-sm) var(--mono); color: var(--g-900); }
.filters small { color: inherit; font-family: var(--mono); }
.filters a[aria-current] { background: var(--g-900); color: var(--paper); }
.filters a[aria-current] b { color: var(--paper); }
.queue { flex: 1; min-height: 0; overflow-y: auto; }
.to-archived { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); font-weight: 600; color: var(--g-700); text-decoration: none; border-bottom: 1px solid var(--g-200); }
.to-archived:hover { background: var(--g-100); color: var(--g-900); }
.to-archived b { margin-left: auto; font: 600 var(--t-sm) var(--mono); color: var(--g-600); }
.to-archived.older { justify-content: center; border: 0; margin-bottom: var(--sp-4); }
.jobs { list-style: none; margin: 0; padding: 0 0 var(--sp-4); }
.jobs > li { border-bottom: 1px solid var(--g-200); }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who amt" "what at"; gap: var(--sp-1) var(--sp-3); align-items: baseline;
  padding: var(--sp-3) var(--sp-4); color: inherit; text-decoration: none; }
.job:hover { background: var(--g-100); color: inherit; }
.job[aria-current] { background: var(--g-100); box-shadow: inset 3px 0 0 var(--g-900); }
.job .who { grid-area: who; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .what { grid-area: what; display: flex; align-items: baseline; gap: var(--sp-2); min-width: 0; }
.job .note { font-size: var(--t-sm); color: var(--g-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .amt { grid-area: amt; justify-self: end; font: 500 var(--t-sm) var(--mono); color: var(--g-700); white-space: nowrap; }
.job .at { grid-area: at; justify-self: end; font: 500 var(--t-sm) var(--mono); color: var(--g-600); white-space: nowrap; }
.job .also { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--g-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.talk { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--g-100); }
.person { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--paper); position: relative; z-index: 1; }
.person-id { flex: 1; min-width: 0; }
.them .name { min-width: 0; font-size: var(--t-lg); font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .sub .i { width: 16px; height: 16px; vertical-align: -3px; margin-right: var(--sp-1); }
.person .sub.shop { color: var(--g-900); font-weight: 600; }
.person .sub .muted { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.them { position: relative; }
.them summary { display: flex; align-items: center; gap: var(--sp-1); min-width: 0; }
.them summary .i { width: 16px; height: 16px; color: var(--g-600); }
.them .pop { left: 0; right: auto; }
.stream { flex: 1; min-height: 6rem; overflow-y: auto; list-style: none; margin: 0; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.msg { max-width: min(75%, 34rem); display: flex; flex-direction: column; gap: var(--sp-1); }
.msg p { padding: var(--sp-2) var(--sp-3); border-radius: var(--r); background: var(--paper); white-space: pre-line; overflow-wrap: anywhere; }
.msg.in { align-self: flex-start; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.msg.from-bot p { background: var(--g-200); }
.msg.from-operator p { background: var(--pen-soft); }
.msg.old p { background: var(--g-100); color: var(--g-600); }
.msg.old .btns span { color: var(--g-600); }
.msg .by { display: flex; align-items: center; gap: var(--sp-1); font-size: var(--t-sm); font-weight: 600; color: var(--g-600); }
.msg .by .i { width: 14px; height: 14px; }
.msg .t { font: 500 var(--t-sm) var(--mono); color: var(--g-600); }
.msg .failed { color: var(--red); font-weight: 600; }
.msg .heard { font-size: var(--t-sm); font-weight: 600; color: var(--g-600); margin-right: var(--sp-1); }
.msg .media img { display: block; max-width: min(260px, 100%); max-height: 22rem; border-radius: var(--r); }
.msg audio.media { width: min(260px, 100%); }
.msg .btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-1); }
.msg .btns span { padding: var(--sp-1) var(--sp-3); border-radius: var(--r); background: var(--paper); font-size: var(--t-sm); font-weight: 600; color: var(--g-700); }
.day { align-self: center; margin: var(--sp-2) 0 0; font-size: var(--t-sm); font-weight: 600; color: var(--g-600); }
.hand-mark { align-self: center; text-align: center; font-size: var(--t-sm); color: var(--g-600); }
.stream > .empty { align-self: center; }
.compose { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); background: var(--paper); }
.compose .field { display: flex; gap: var(--sp-2); align-items: flex-end; }
.compose textarea { flex: 1; min-height: 44px; max-height: 10rem; resize: none; }
.compose .send { width: 44px; height: 44px; padding: 0; flex: none; }
.compose.off { flex-direction: row; align-items: center; }
.compose .take { flex: 1; }
.field-off { flex: 1; min-height: 44px; display: flex; align-items: center; padding: 0 var(--sp-3); border-radius: var(--r); background: var(--g-100); color: var(--g-600); }
.outcomes { display: flex; gap: var(--sp-1); flex-wrap: wrap; }

.work { --side: max(var(--sp-6), calc((100% - 560px) / 2)); display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--paper); }
.work-head { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0 var(--side); padding: var(--sp-6) 0 var(--sp-3); border-bottom: 1px solid var(--g-200); }
.work-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.work-head h1, .work-head h2 { display: flex; flex-direction: column; gap: var(--sp-1); font-size: var(--t-2xl); }
.work-head .serial { font: 500 var(--t-sm) var(--mono); color: var(--red); }
.work-head .serial .tag { font-family: var(--sans); }
.work-head .name a { color: var(--g-900); text-decoration: none; }
.work-head .name a:hover { text-decoration: underline; }
.addr { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--sp-1); }
.addr .i { width: 16px; height: 16px; }
.addr a { margin-left: var(--sp-2); color: var(--g-700); }
.paper-wrap { flex: 1; min-height: 0; overflow-y: auto; padding: var(--sp-1) var(--side) var(--sp-8); }
.work > .empty { padding: var(--sp-6) var(--side); }

.bill { margin-bottom: var(--sp-8); }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto minmax(4rem, auto); grid-template-areas: "about nm q sum"; column-gap: var(--sp-2); align-items: center;
  min-height: 52px; padding: var(--sp-1) 0; border-bottom: 1px solid var(--g-200); }
.line .nm { grid-area: nm; display: flex; flex-direction: column; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.line .said { font-weight: 400; }
.line .said:empty { display: none; }
.line .q { grid-area: q; font: 500 var(--t-sm) var(--mono); color: var(--g-700); white-space: nowrap; }
.line .sum { grid-area: sum; font: 500 var(--t-base) var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.line.changed, .line.out { margin: 0 calc(-1 * var(--sp-3)); padding-inline: var(--sp-3); border-radius: var(--r); background: var(--pen-soft); border-color: var(--paper); }
.line.changed .q, .line.changed .sum, .line.changed .v, .line.changed .said, .line.out .said { color: var(--pen); }
.line.out .nm > span, .line.out .sum { text-decoration: line-through; color: var(--pen); }
.line.out .q { color: var(--pen); }
.line[data-nostock] .stepper { visibility: hidden; }
.about { grid-area: about; position: relative; }
.about summary { width: 24px; height: 44px; display: grid; place-items: center; color: var(--g-600); }
.about summary .i { width: 18px; height: 18px; }
.about summary:hover, .about[open] summary { color: var(--g-900); }
.about .pop { left: calc(-1 * var(--sp-1)); right: auto; top: calc(100% - var(--sp-1)); width: min(18rem, calc(100vw - var(--sp-8))); padding: var(--sp-3); gap: var(--sp-1); font-size: var(--t-sm); color: var(--g-700); }
.about .pop b { font-size: var(--t-base); color: var(--g-900); }
.about .pic { width: 64px; height: 64px; margin-bottom: var(--sp-1); border-radius: var(--r); overflow: hidden; background: var(--g-100); display: grid; place-items: center; font-size: var(--t-3xl); line-height: 1; }
.about .pic img { width: 100%; height: 100%; object-fit: cover; }
.about .pop button { margin-top: var(--sp-2); justify-content: center; }
.stepper { grid-area: q; display: inline-flex; align-items: center; }
.stepper .v { font: 600 var(--t-base) var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.stepper .unit { max-width: 6ch; margin-left: var(--sp-1); font: 500 var(--t-sm) var(--mono); color: var(--g-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper button { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--g-300); background: var(--paper); color: var(--g-700); }
.stepper .less { margin-left: var(--sp-2); border-radius: var(--r) 0 0 var(--r); }
.stepper .more { border-left: 0; border-radius: 0 var(--r) var(--r) 0; }
.stepper button:hover:not(:disabled) { background: var(--g-100); color: var(--g-900); }
.stepper button:disabled { opacity: 1; color: var(--g-300); }
.stepper button:focus-visible { position: relative; z-index: 1; }
.stepper button .i { width: 18px; height: 18px; }
.add { padding-top: var(--sp-1); }
.add summary { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; color: var(--g-700); font-weight: 600; }
.due { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--sp-2); padding-right: var(--sp-2); }
.due > span { flex-basis: 100%; font-size: var(--t-sm); color: var(--g-600); }
.due s { font: 500 var(--t-sm) var(--mono); color: var(--g-600); }
.due b { font: 600 var(--t-lg) var(--mono); font-variant-numeric: tabular-nums; }
.due b.new { color: var(--pen); }
.add summary .i { width: 18px; height: 18px; }
.add-fields { position: relative; display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end; margin-bottom: var(--sp-1); }
.add-item { flex: 1 1 14rem; }
.add-qty input { width: 7rem; }
.found-list { position: absolute; z-index: 10; left: 0; right: 0; bottom: calc(100% + var(--sp-1)); max-height: 15rem; overflow-y: auto; list-style: none; margin: 0; padding: var(--sp-1); background: var(--paper); border-radius: var(--r); box-shadow: var(--sh-md); }
.paper-wrap > .add { margin-bottom: var(--sp-4); }
.paper-wrap > .add .found-list { top: calc(100% + var(--sp-1)); bottom: auto; }
.found-list button { width: 100%; justify-content: flex-start; padding: 0 var(--sp-3); font-weight: 400; white-space: normal; text-align: left; }
.found-list button:hover, .found-list button:focus { background: var(--g-100); }
.bill .total { display: flex; align-items: baseline; gap: var(--sp-3); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 3px double var(--g-600); font-weight: 600; }
.bill .total > span { flex: 1; }
.bill .total small { margin-left: var(--sp-1); font-weight: 400; }
.bill .total .old { font: 500 var(--t-base) var(--mono); color: var(--g-600); }
.bill .total b { font: 600 var(--t-lg) var(--mono); font-variant-numeric: tabular-nums; }
.bill .total b.new { color: var(--pen); }
.bill .hint { margin-top: var(--sp-1); font-size: var(--t-sm); color: var(--g-600); text-align: right; }
.bill .hint:empty { display: none; }
.history, .earlier { margin: 0 0 var(--sp-4); }
.history summary { gap: var(--sp-1); }
.history summary .i { width: 16px; height: 16px; color: var(--g-600); }
.history[open] summary .i { transform: rotate(180deg); }
.timeline, .earlier ul { list-style: none; margin: var(--sp-1) 0 0; padding: 0; }
.timeline li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-1) 0; }
.timeline small { margin-left: var(--sp-1); }
.timeline time, .earlier time { font: 500 var(--t-sm) var(--mono); color: var(--g-600); white-space: nowrap; }
.earlier li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid var(--g-200); }
.earlier .repeat li { grid-template-columns: minmax(0, 1fr) auto auto 4.5rem; }
.earlier .repeat form { justify-self: end; }
.earlier b { font: 600 var(--t-sm) var(--mono); text-align: right; }
.dock { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--side) var(--sp-4); background: var(--paper); border-top: 1px solid var(--g-200); }
.dock:not(:has(*)) { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.actions > form, .actions > div { flex: 1 1 auto; display: flex; gap: var(--sp-2); }
.actions .go, .actions .bad, .actions .paid button { flex: 1; min-height: 48px; font-size: var(--t-lg); }
.send-with { flex: 1; display: flex; min-width: 0; border-radius: var(--r); box-shadow: var(--sh-sm); }
.send-with .go { flex: none; min-height: 48px; padding-right: var(--sp-1); border-radius: var(--r) 0 0 var(--r); box-shadow: none; font-size: var(--t-lg); }
.send-with .pick { flex: 1; min-width: 0; }
.send-with select { width: 100%; min-height: 48px; padding-left: var(--sp-1); border: 0; border-radius: 0 var(--r) var(--r) 0; font-size: var(--t-lg); font-weight: 600; cursor: pointer;
  background-color: var(--go); color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E"); }
.send-with select:hover { background-color: var(--go-700); }
.send-with select:focus { border: 0; box-shadow: none; }
.send-with select:focus-visible { outline: 2px solid var(--go); outline-offset: 2px; }
.send-with option { background: var(--paper); color: var(--g-900); }
.actions > .cancel { flex-basis: 100%; }
.cancel button { font-size: var(--t-sm); }
.cancel { flex-wrap: wrap; align-items: center; }
.cancel [data-reason] { flex: 1 1 12rem; min-width: 0; min-height: 44px; font-size: var(--t-base); }
.cancel .i { width: 18px; height: 18px; }

.calm { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-12) var(--sp-6); background: var(--paper); color: var(--g-600); text-align: center; }
.calm-i .i { width: 48px; height: 48px; stroke-width: 1.2; }
.calm h2 { font-size: var(--t-lg); color: var(--g-700); }

.page { max-width: 1080px; margin: 0 auto; padding: var(--sp-6) var(--sp-6) var(--sp-12); }
.head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin-bottom: var(--sp-4); }
.head .sub { font-size: var(--t-base); }
.head .riders { flex-basis: 100%; }
.head-end { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.sec { display: flex; align-items: baseline; gap: var(--sp-2); margin: var(--sp-8) 0 var(--sp-2); }
.sec .n { font: 600 var(--t-sm) var(--mono); }
.page .empty { padding: var(--sp-3) 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--g-200); }
.pages { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-4) 0; font-size: var(--t-sm); color: var(--g-600); }
.pair, .trio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.money { position: relative; }
.money > span { position: absolute; left: calc(var(--sp-3) + 1px); bottom: 0; font: 500 var(--t-base)/44px var(--mono); color: var(--g-900); }
.money input { padding-left: calc(var(--sp-3) + 1ch) !important; font: 500 var(--t-base) var(--mono); font-variant-numeric: tabular-nums; }

.page.deliver { max-width: 760px; }
.rider, .done-row, .part { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; }
.rider .who, .part .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rider .who small, .done-row small, .part small { color: var(--g-600); }
.part small.advice { color: var(--g-900); margin-top: var(--sp-1); white-space: normal; }
.state { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--g-700); }
.state i { width: 8px; height: 8px; border-radius: 50%; background: var(--g-600); }
.state.ok i { background: var(--ok); }
.state.down { background: var(--red-soft); color: var(--red); }
.state.down i { background: var(--red); }
.outage { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: var(--sp-3); align-items: baseline; padding: var(--sp-3) 0; }
.outage span:not(.tag) { font-size: var(--t-sm); color: var(--g-600); }
.order { padding: var(--sp-4) 0; border-bottom: 1px solid var(--g-200); display: flex; flex-direction: column; gap: var(--sp-3); }
.ct { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); }
.ct a { font-size: var(--t-lg); color: var(--g-900); text-decoration: none; }
.ct a:hover { text-decoration: underline; }
.ct .n { font-size: var(--t-sm); color: var(--g-600); }
.ct .t { margin-left: auto; font: 600 var(--t-lg) var(--mono); text-align: right; }
.order .dispatch, .order .paid { display: flex; gap: var(--sp-2); }
.order .paid button { flex: 1; min-height: 48px; }
.danger summary { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-size: var(--t-sm); font-weight: 600; color: var(--red); }
.danger summary .i { width: 18px; height: 18px; }
.done-row a { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; }
.done-row > b { text-align: right; }
.paid-by { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--t-sm); color: var(--g-600); }
.paid-by .i { width: 18px; height: 18px; }

.cols code { color: var(--g-900); }
.file { position: relative; cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file:has(input:focus-visible) { outline: 2px solid var(--go); outline-offset: 2px; }
.items .find { padding: 0; max-width: 440px; margin-bottom: var(--sp-1); }
.items .filters { padding: var(--sp-2) 0 var(--sp-3); }
.stock { list-style: none; margin: 0; padding: 0; }
.stock > li { border-bottom: 1px solid var(--g-200); }
.stock .item { display: grid; grid-template-columns: 48px 44px minmax(0, 2.4fr) minmax(0, 1fr) 112px minmax(0, 1fr) 72px 44px; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; }
.stock .item > form { display: none; }
.stock .what { min-width: 0; }
.stock .what b { font-weight: 600; margin-right: var(--sp-2); }
.stock .what small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock .item:not(.out) .oos { display: none; }
.stock .item.off .what b { color: var(--g-600); }
.stock .sold, .stock .group { font-size: var(--t-sm); color: var(--g-600); }
.stock .price { position: relative; flex-direction: row; align-items: center; }
.stock .price span { position: absolute; left: calc(var(--sp-2) + 1px); font: 500 var(--t-base) var(--mono); color: var(--g-900); }
.stock .price input[name] { width: 100%; padding: 0 var(--sp-2) 0 calc(var(--sp-2) + 1ch); font: 500 var(--t-base) var(--mono); font-variant-numeric: tabular-nums; background: transparent; border-color: transparent; }
.stock .price input[name]:hover { border-color: var(--g-300); }
.stock .price input[name]:focus { background: var(--paper); border-color: var(--go); }
.js .stock .item:not(.dirty) .save { visibility: hidden; }
.stock .item.saving { opacity: .5; }
.thumb { width: 44px; height: 44px; border-radius: var(--r); overflow: hidden; background: var(--g-100); display: grid; place-items: center; color: var(--g-600); font-size: var(--t-2xl); line-height: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.none, .about .pic > span { filter: grayscale(1); opacity: .55; }
.switch { position: relative; display: inline-grid; align-items: center; width: 44px; height: 44px; flex: none; }
.switch input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: relative; height: 24px; border-radius: var(--r); background: var(--g-200); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: var(--sp-1); left: var(--sp-1); width: 16px; height: 16px; border-radius: var(--r-sm); background: var(--paper); box-shadow: var(--sh-sm); transition: transform .15s; }
.switch input:checked + span { background: var(--go); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--go); outline-offset: 2px; }
.menu { position: relative; }
.menu summary { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); color: var(--g-600); }
.menu summary:hover, .menu[open] summary { background: var(--g-100); color: var(--g-900); }
.pop { position: absolute; z-index: 20; right: 0; top: calc(100% + var(--sp-1)); min-width: 192px; padding: var(--sp-1); display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); box-shadow: var(--sh-md); }
.pop a, .pop button { display: flex; align-items: center; justify-content: flex-start; gap: var(--sp-2); width: 100%; padding: 0 var(--sp-3); font-size: var(--t-base); font-weight: 600; color: var(--g-900); text-decoration: none; }
.pop a:hover, .pop button:hover { background: var(--g-100); text-decoration: none; }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(31, 38, 38, .32); }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--paper); border-radius: var(--r-lg) 0 0 var(--r-lg); box-shadow: var(--sh-lg); }
.drawer form { display: flex; flex-direction: column; height: 100%; }
.drawer header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--g-200); }
.drawer .fields { flex: 1; min-height: 0; overflow-y: auto; padding: var(--sp-4) var(--sp-6) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }
.drawer footer { display: flex; gap: var(--sp-2); padding: var(--sp-3) var(--sp-6) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--g-200); }
.drawer footer button { min-height: 48px; }
.drawer footer .go { flex: 1; }
.drawer:has([name=sold][value=piece]:checked, [name=sold][value^=loose]:checked) .holds { display: none; }
.photo { flex-direction: row; align-items: center; gap: var(--sp-3); }
.photo img, .photo .thumb { width: 64px; height: 64px; border-radius: var(--r); object-fit: cover; flex: none; font-size: var(--t-3xl); }
.photo .file .i { width: 20px; height: 20px; }
.opts { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.opts legend { padding: 0; margin-bottom: var(--sp-1); font-size: var(--t-sm); font-weight: 600; color: var(--g-700); }
.opt { position: relative; flex-direction: row; align-items: center; min-height: 44px; padding: 0 var(--sp-3); border-radius: var(--r); background: var(--g-100); color: var(--g-900); font-size: var(--t-base); cursor: pointer; }
.opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opt:has(input:checked) { background: var(--g-900); color: var(--paper); }
.opt:has(input:focus-visible) { outline: 2px solid var(--go); outline-offset: 2px; }
@supports not selector(:has(*)) { .opt:focus-within { outline: 2px solid var(--go); outline-offset: 2px; } }
.opts input[name=new_group] { width: 11rem; }
.switch-row { flex-direction: row; justify-content: space-between; align-items: center; font-size: var(--t-base); color: var(--g-900); }
dialog.zoom { padding: 0; border: 0; border-radius: var(--r-lg); max-width: min(92vw, 800px); background: var(--paper); box-shadow: var(--sh-lg); overflow: hidden; }
dialog.zoom::backdrop { background: rgba(31, 38, 38, .6); }
dialog.zoom img { display: block; max-width: 100%; max-height: 86vh; }

.page.settings, .page.health, .page.help { max-width: 720px; }
.settings .group, .help .group { padding: var(--sp-6) 0; border-top: 1px solid var(--g-200); display: flex; flex-direction: column; gap: var(--sp-4); }
.savebar { display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-2); padding: var(--sp-4) 0 var(--sp-6); }
.group input:invalid { border-color: var(--red); }
.locate { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
.locate a { display: inline-flex; align-items: center; min-height: 44px; }
#unsaved { margin-right: auto; font-size: var(--t-sm); font-weight: 600; color: var(--pen); }
.savebar .go { min-width: 8rem; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; border-bottom: 1px solid var(--g-200); }
.people li b { flex: 1; }
.inline { display: flex; gap: var(--sp-2); align-items: flex-end; }
.inline label { flex: 1; min-width: 0; }
.inline input { width: 100%; }
.row-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }
.row-line small { flex-basis: 100%; }
.help ul { margin: 0; padding-left: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); }
.help li .i { width: 18px; height: 18px; vertical-align: -4px; }
@media (min-width: 1000px) {
  .order .send-with { flex: 0 1 24rem; }
  .order .paid button { flex: 0 1 12rem; }
  .page.settings, .page.help { max-width: 880px; }
  .settings .group, .help .group { position: relative; padding-left: calc(200px + var(--sp-8)); }
  .settings .group > h2, .help .group > h2 { position: absolute; left: 0; top: var(--sp-6); width: 200px; }
}

.login { width: min(380px, 100%); display: flex; flex-direction: column; gap: var(--sp-4); }
.login .brand { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--t-2xl); font-weight: 600; }
.login .mark { width: 48px; height: 48px; }
.login h1 { font-size: var(--t-base); font-weight: 600; color: var(--g-600); }
.login .go { min-height: 48px; margin-top: var(--sp-1); }

.sub.watch { display: flex; align-items: center; gap: var(--sp-2); color: var(--red); }
.sub.watch form { margin-left: auto; }

.policy-page { max-width: 40rem; margin: 0 auto; padding: 24px 16px 48px; font-size: 17px; }
.policy-page h2 { margin: 28px 0 8px; }
.policy-page p, .policy-page li { margin: 12px 0; }
.policy-page ul, .policy-page ol { padding-left: 1.3rem; }

@view-transition { navigation: auto; }
.work { view-transition-name: work; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}

@media (max-width: 1180px) {
  .stock .item { grid-template-columns: 48px 44px minmax(0, 2fr) minmax(0, 1fr) 104px 72px 44px; }
  .stock .group { display: none; }
}

@media (max-width: 999px) {
  :root { --tabs: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body.app { padding-left: 0; padding-bottom: var(--tabs); }
  .side { top: auto; right: 0; width: auto; height: var(--tabs); flex-direction: row; align-items: stretch; gap: 0; padding: 0 0 env(safe-area-inset-bottom, 0px); border-right: 0; border-top: 1px solid var(--g-200); }
  .side .brand { display: none; }
  .side > .tab { flex: 1; width: auto; justify-content: center; }
  .tab .i { padding: var(--sp-1) var(--sp-6); }
  .side-end { display: none; }
  body:has(.now.pane-list) .side-end { display: flex; position: absolute; top: calc(var(--sp-3) + env(safe-area-inset-top, 0px)); right: var(--sp-3); bottom: auto; left: auto; width: auto; flex-direction: row; gap: var(--sp-1); }
  .list-head { display: flex; align-items: center; min-height: calc(64px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); padding-bottom: 0; }
  .envtag { right: auto; left: 50%; width: max-content; transform: translateX(-50%); }
  .side-end .tab { width: 44px; height: 44px; padding: 0; justify-content: center; background: var(--g-100); }
  .side-end .tab span { display: none; }
  .side-end .tab .i { padding: 0; background: none; width: 20px; height: 20px; }
  .taking summary { height: 44px; padding: 0 var(--sp-3); gap: var(--sp-2); }
  .side-end .me .av { display: grid; background: none; }
  .side-end .menu-body { position: absolute; left: auto; right: 0; top: calc(44px + var(--sp-2)); bottom: auto; width: min(280px, calc(100vw - var(--sp-6))); }
  body:has(.now.pane-list) main:has(> .strip:not([hidden]), .strips .strip:not(#live), #live.stale) { padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
  .badge { left: calc(50% + var(--sp-3)); }
  body:has(.now.pane-chat, .now.pane-bill) { padding-bottom: 0; }
  body:has(.now.pane-chat, .now.pane-bill) .side { display: none; }

  body:has(.now) main { height: auto; display: block; }
  .now { display: block; }
  .rail { border-right: 0; }
  .queue { overflow: visible; }
  .now:not(.pane-list) .rail, .now:not(.pane-chat) .talk, .now:not(.pane-bill) .work, .now:not(.pane-list) .calm, .pane-list .calm { display: none; }
  .back { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 44px; padding: 0 var(--sp-3); font-weight: 600; color: var(--g-700); text-decoration: none; }
  .person .back { min-width: 44px; padding: 0; margin: 0 calc(-1 * var(--sp-1)) 0 calc(-1 * var(--sp-2)); justify-content: center; }
  .person .back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .work-head .back { margin: calc(-1 * var(--sp-1)) 0 0 calc(-1 * var(--sp-3)); }
  .talk-top { position: sticky; top: 0; z-index: 6; background: var(--paper); box-shadow: var(--sh-sm); }
  .talk-top .person { padding-top: calc(var(--sp-2) + env(safe-area-inset-top, 0px)); }
  .bill-peek { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-3); border-top: 1px solid var(--g-200); font-size: var(--t-sm); color: var(--g-900); text-decoration: none; }
  .bill-peek .peek-n { flex: 1; min-width: 0; color: var(--g-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bill-peek .i { width: 18px; height: 18px; color: var(--g-600); flex: none; }
  .work { --side: var(--sp-4); }
  .work-head { flex-direction: column; padding-top: calc(var(--sp-2) + env(safe-area-inset-top, 0px)); }
  .paper-wrap { overflow: visible; padding-bottom: var(--sp-6); }
  .dock { position: sticky; bottom: 0; z-index: 5; padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px)); }
  .pane-chat .talk { min-height: 100vh; min-height: 100dvh; }
  .pane-chat .compose { position: sticky; bottom: 0; z-index: 5; padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px)); }
  .person { gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); }
  .back-to-bot { width: 44px; padding: 0; justify-content: center; }
  .back-to-bot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .msg { max-width: 86%; }
  .outcomes, .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .drawer { border-radius: 0; }

  .page { padding: var(--sp-4) var(--sp-4) var(--sp-8); }
  .head-end { width: 100%; margin-left: 0; }
  .head-end > * { flex: 1; }
  .stock .item { grid-template-columns: 44px minmax(0, 1fr) auto 44px; grid-template-areas: "thumb what price menu" "thumb sold sw ." "save save save save"; gap: 0 var(--sp-3); }
  .stock .switch { justify-self: end; }
  .stock .switch { grid-area: sw; }
  .stock .thumb { grid-area: thumb; }
  .stock .what { grid-area: what; }
  .stock .sold { grid-area: sold; }
  .stock .price { grid-area: price; }
  .stock .save { grid-area: save; }
  .stock .menu { grid-area: menu; }
  .js .stock .item:not(.dirty) .save { display: none; }
  .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

button, .btn, .chip, .filters a, .opt, .stock .save { min-height: 44px; }
.filters a { min-width: 44px; justify-content: center; }
.back-to-bot { min-width: 44px; height: 44px; }
.history summary, .them summary { display: flex; align-items: center; min-height: 44px; }
.found a, .sub a, .ct a, .earlier a, .day a { display: inline-flex; align-items: center; min-height: 44px; }
.sub a { min-width: 44px; justify-content: center; }
.done-row a { min-height: 44px; }
#import > a { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; align-self: flex-start; }
.stock .price input[name], .opts input[name=new_group] { min-height: 44px; }

.envtag { position: fixed; top: env(safe-area-inset-top, 0); right: var(--sp-3); z-index: 60; margin: 0; padding: 0 var(--sp-3); border-radius: 0 0 var(--r-sm) var(--r-sm); background: var(--g-900); color: var(--paper); font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; pointer-events: none; }
