/* SvoyDom Partner — visual system, after the BigConvert HQ Windows app (redesign v4).
   White canvas, hairlines instead of shadows, the logo green as the brand mark, pills on
   buttons/filters/tags, status as a solid colour block. Every colour lives here, in :root. */

:root {
  /* surfaces */
  --canvas: #ffffff;
  --band: #f8f9fa;
  --band-2: #eef0f3;
  /* ink */
  --ink: #202020;
  --ink-2: #646464;
  --ink-3: #838383;
  /* hairlines */
  --line: #e8e8e8;
  --line-2: #d4d4d4;
  /* brand green: fill / strong (text, icons) / soft (backgrounds) */
  --green: #9ec93a;
  --green-strong: #6f9c1c;
  --green-soft: #eef4dc;
  /* buttons */
  --button: #202020;
  --button-down: #3a3a3a;
  --green-hover: #93bd31;
  --on-dark: #ffffff;
  --backdrop: rgba(20, 20, 20, 0.35);
  --danger-line: #f2c9c9;
  --amber-line: #f0d6c0;
  --ok-line: #bfe3cf;
  /* signals */
  --danger: #d64545;
  --danger-soft: #fbeaea;
  --amber: #b4541f;
  --amber-soft: #fbf0e6;
  --ok: #1e9e5a;
  --ok-soft: #e6f5ed;
  /* vendor statuses (solid blocks, white text) */
  --st-new: #8a94a6;
  --st-confirmed: #2f80ed;
  --st-shipped: #1e9e5a;
  --st-problem: #d64545;
  /* email/dispatch statuses */
  --st-ready: #8a94a6;
  --st-sent: #1e9e5a;
  --st-failed: #d64545;
  --st-waiting: #b4541f;
  --st-off: #a3a3a3;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Consolas", monospace;

  /* type scale */
  --meta: 13px;
  --body: 14.5px;
  --small: 11px;
  --block-title: 18px;
  --screen-title: 30px;
  --figure: 40px;

  /* geometry */
  --radius: 12px;
  --radius-small: 8px;
  --pill: 9999px;
  --row-min: 56px;
  --target: 38px;
  --sidebar: 232px;
  --channel: 1240px;
  --pop: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--body);
  font-weight: 500;
  line-height: 1.5;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: var(--screen-title); }
h2 { font-size: var(--block-title); font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--band-2); padding: 0 0.3em; border-radius: 4px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green-strong); outline-offset: 2px; }
::selection { background: var(--green-soft); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.nums { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-2); }
.meta { font-size: var(--meta); color: var(--ink-3); }

/* ------------------------------------------------------------------ shell */

.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 14px;
  background: var(--band);
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 10px 18px;
  text-decoration: none;
}
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.04em; }
.brand b i { display: inline-block; width: 7px; height: 7px; margin-left: 2px; border-radius: 50%; background: var(--green); }
.brand span { font-size: var(--meta); color: var(--ink-3); font-weight: 600; }
.icon-btn.menu-toggle { display: none; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 14px 10px 6px; font-size: var(--small); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--target);
  padding: 0 10px;
  border-radius: var(--radius-small);
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a:hover { background: var(--band-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--green-soft); color: var(--ink); }
.nav a[aria-current="page"] svg { color: var(--green-strong); }
.nav .badge { margin-left: auto; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who b { font-weight: 600; overflow-wrap: anywhere; }
.who .meta { display: block; }
.mode-dot { display: inline-flex; align-items: center; gap: 6px; font-size: var(--meta); color: var(--ink-2); }
.mode-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--st-off); }
.mode-dot.is-live::before { background: var(--green); }

.main { min-width: 0; padding: 36px 40px 64px; }
.page { max-width: var(--channel); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .lead { margin-top: 6px; color: var(--ink-2); max-width: 70ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--target);
  padding: 0 18px;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  background: var(--canvas);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--band); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--green); border-color: var(--green); color: var(--ink); }
.btn-primary:hover { background: var(--green-hover); }
.btn-dark { background: var(--button); border-color: var(--button); color: var(--on-dark); }
.btn-dark:hover { background: var(--button-down); }
.btn-danger { color: var(--danger); }
.btn-small { min-height: 32px; padding: 0 14px; font-size: 13px; }
.link { border: 0; background: none; padding: 0; color: var(--green-strong); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--target);
  height: var(--target);
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--band-2); color: var(--ink); }

/* ------------------------------------------------------------------ pills, tags, status */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--pill);
  background: var(--band-2);
  color: var(--ink-2);
  font-size: var(--meta);
  font-weight: 600;
  white-space: nowrap;
}
.tag-green { background: var(--green-soft); color: var(--green-strong); }
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--pill);
  background: var(--danger);
  color: var(--on-dark);
  font-size: var(--small);
  font-weight: 700;
}
.status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--st-off);
  color: var(--on-dark);
  font-size: var(--small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-new { background: var(--st-new); }
.status-confirmed { background: var(--st-confirmed); }
.status-shipped { background: var(--st-shipped); }
.status-problem { background: var(--st-problem); }
.status-ready { background: var(--st-ready); }
.status-sent { background: var(--st-sent); }
.status-failed { background: var(--st-failed); }
.status-waiting { background: var(--st-waiting); }
.status-off { background: var(--st-off); }
.sub { display: block; margin-top: 3px; font-size: var(--meta); color: var(--ink-3); font-weight: 500; overflow-wrap: anywhere; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  background: var(--canvas);
  font-size: var(--meta);
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

/* ------------------------------------------------------------------ cards, figures */

.card { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.count { color: var(--ink-3); font-weight: 600; font-family: var(--font-text); font-size: 0.75em; margin-left: 4px; }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#cat-figures { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.figure-card { display: flex; flex-direction: column; gap: 4px; }
.figure-card .label { font-size: var(--meta); color: var(--ink-2); font-weight: 600; }
.figure { font-family: var(--font-display); font-weight: 800; font-size: var(--figure); letter-spacing: -0.03em; line-height: 1.05; }
.figure.is-text { font-size: 22px; line-height: 1.3; }

.label { font-size: var(--meta); font-weight: 600; color: var(--ink-2); }
.hint { font-size: var(--meta); color: var(--ink-3); font-weight: 500; }

/* ------------------------------------------------------------------ lists (group = card) */

.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--canvas); }
.list-group + .list-group { border-top: 1px solid var(--line); }
.list-group-title { display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.list-cols, .list-row { display: grid; gap: 12px; align-items: center; padding: 0 16px; grid-template-columns: var(--cols); }
.list-cols { min-height: 32px; font-size: var(--small); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.list-row { min-height: var(--row-min); padding-top: 8px; padding-bottom: 8px; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row:hover { background: var(--band); }
.list-row.is-click { cursor: pointer; }
.list .num, .list-cols .num { text-align: right; font-variant-numeric: tabular-nums; }
.list .end { justify-self: end; }
.list-row .title { font-weight: 600; }
.list-row a.title { text-decoration: none; }
.list-row a.title:hover { text-decoration: underline; }
.cell-label { display: none; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 16px;
  text-align: center;
  color: var(--ink-2);
}
.empty b { font-family: var(--font-display); font-size: 16px; color: var(--ink); }

/* ------------------------------------------------------------------ messages */

.msg { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius-small); background: var(--band); border: 1px solid var(--line); flex-wrap: wrap; }
.msg p { flex: 1 1 260px; font-weight: 600; }
.msg small { display: block; margin-top: 2px; font-weight: 500; color: var(--ink-2); font-size: var(--meta); }
.msg.is-danger { background: var(--danger-soft); border-color: var(--danger-line); }
.msg.is-warn { background: var(--amber-soft); border-color: var(--amber-line); }
.msg.is-ok { background: var(--ok-soft); border-color: var(--ok-line); }
.attention { display: flex; flex-direction: column; gap: 8px; }
.error { color: var(--danger); font-size: var(--meta); font-weight: 600; }
.success { color: var(--ok); font-size: var(--meta); font-weight: 600; }

/* ------------------------------------------------------------------ forms */

.f { display: flex; flex-direction: column; gap: 6px; }
.field {
  width: 100%;
  min-height: var(--target);
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-small);
  background: var(--canvas);
  font-weight: 500;
}
.field:focus { outline: none; border-color: var(--green-strong); box-shadow: 0 0 0 3px var(--green-soft); }
textarea.field { resize: vertical; line-height: 1.5; }
select.field { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23646464' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field-small { min-height: 32px; padding: 4px 10px; width: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-strong); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
fieldset.group { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
fieldset.group legend { padding: 0 6px; font-family: var(--font-display); font-weight: 700; }

/* ------------------------------------------------------------------ modal */

.dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--pop);
  color: var(--ink);
}
.dialog::backdrop { background: var(--backdrop); }
.dialog[open] { display: flex; flex-direction: column; }
.dialog > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.dialog-mid { width: min(820px, calc(100vw - 24px)); }
.dialog-small { width: min(440px, calc(100vw - 24px)); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dialog-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; min-height: 0; }
.dialog-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.dl dt { color: var(--ink-3); font-size: var(--meta); font-weight: 600; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
iframe.email { width: 100%; height: 60vh; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--on-dark); }

/* ------------------------------------------------------------------ vendors */

.vendors { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.vendor { display: flex; flex-direction: column; gap: 14px; }
.vendor.needs-email { border-color: var(--danger-line); }
.vendor-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.vendor-head h3 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vendor-mail { color: var(--ink-2); font-size: var(--meta); overflow-wrap: anywhere; margin-top: 4px; }
.vendor-mail.missing { color: var(--danger); font-weight: 600; }
.vendor-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.vendor-facts dt { font-size: var(--small); color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.vendor-facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.vendor-facts dd.is-danger { color: var(--danger); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.spark i { flex: 1; background: var(--band-2); border-radius: 3px; min-height: 3px; }
.spark i.has { background: var(--green); }

/* ------------------------------------------------------------------ template editor */

.tpl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tpl-preview { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 8px; }
.tpl-preview iframe { width: 100%; height: 72vh; border: 1px solid var(--line); border-radius: var(--radius); background: var(--on-dark); }
.preview-subject { font-weight: 600; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line-2); background: var(--band); border-radius: var(--pill); padding: 2px 10px; font-family: var(--font-mono); font-size: 12px; cursor: pointer; }
.chips button:hover { background: var(--green-soft); border-color: var(--green); }
.cols { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cols li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.cols li.off .field { color: var(--ink-3); background: var(--band); }
.cols .key { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.cols input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green-strong); }
.move { display: flex; gap: 2px; }
.move button { width: 30px; height: 30px; border: 1px solid var(--line-2); background: var(--canvas); border-radius: var(--pill); cursor: pointer; }
.move button:disabled { opacity: 0.35; cursor: default; }

/* ------------------------------------------------------------------ accounts */

.requests { display: flex; flex-direction: column; gap: 10px; }
.request { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: end; }
.request-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.request-form [hidden] { display: none !important; }
.temp-password { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; padding: 14px; text-align: center; background: var(--green-soft); border-radius: var(--radius-small); user-select: all; overflow-wrap: anywhere; }
.narrow { max-width: 480px; }
.who-link { display: block; min-width: 0; text-decoration: none; border-radius: var(--radius-small); }
.who-link:hover b { text-decoration: underline; }
.auth-card .links { display: flex; justify-content: space-between; gap: 8px; font-size: var(--meta); }

/* ------------------------------------------------------------------ order detail, timeline */

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.search { max-width: 260px; }
a.list-row { color: inherit; text-decoration: none; }
.back { color: var(--ink-2); font-weight: 600; text-decoration: none; font-size: var(--meta); }
.back:hover { color: var(--ink); }
.page-head h1 .status { vertical-align: middle; margin-left: 8px; font-family: var(--font-text); letter-spacing: 0.04em; }
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: start; }
.order-grid h2 { margin-bottom: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { position: relative; display: flex; gap: 12px; padding: 0 0 16px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline .dot { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--line-2); }
.timeline .dot-new { background: var(--st-new); }
.timeline .dot-confirmed { background: var(--st-confirmed); }
.timeline .dot-shipped { background: var(--st-shipped); }
.timeline .dot-problem { background: var(--st-problem); }

ul.plain { margin: 6px 0 0; padding-left: 18px; }
ul.plain li { margin: 2px 0; }

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: var(--radius-small);
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: var(--pop);
  font-weight: 600;
}
.toast.is-danger { background: var(--danger); }

/* ------------------------------------------------------------------ auth pages */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--band); }
.auth-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); }
.auth-card .brand { padding: 0; }
.auth-card h1 { font-size: 26px; }
.auth-card .btn { width: 100%; }
.auth-alt { text-align: center; font-size: var(--meta); color: var(--ink-2); }

/* ------------------------------------------------------------------ narrow screens */

@media (max-width: 1100px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #cat-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tpl { grid-template-columns: 1fr; }
  .tpl-preview { position: static; }
}

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar {
    position: sticky;
    z-index: 30;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand { padding: 4px 0; margin-right: auto; }
  .icon-btn.menu-toggle { display: inline-grid; }
  .nav, .sidebar-foot { display: none; width: 100%; }
  .sidebar.is-open .nav, .sidebar.is-open .sidebar-foot { display: flex; }
  .sidebar.is-open .nav { padding-bottom: 8px; }
  .main { padding: 20px 16px 48px; }
  h1 { font-size: 26px; }
  .figure { font-size: 32px; }
  .figures { gap: 8px; }
  #cat-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure-card { padding: 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-head .actions { width: 100%; }

  /* list rows become stacked cards; columns carry their own label */
  .list-cols { display: none; }
  .list-row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; }
  .list-row > * { grid-column: 1 / -1; }
  .list-row > .lead-cell { grid-column: 1; }
  .list-row > .end, .list-row > .side-cell { grid-column: 2; grid-row: 1; justify-self: end; }
  .list .num { text-align: left; }
  .cell-label { display: inline; color: var(--ink-3); font-size: var(--meta); font-weight: 600; margin-right: 6px; }
  .vendor-facts { grid-template-columns: repeat(2, 1fr); }
  .request, .request-form { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .search { max-width: none; }
  .page-head .actions .btn { flex: 1 1 auto; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}
