/* Lumen Postcard Support. Colour is used only for status; everything else is paper and ink. */
:root {
  color-scheme: light dark;
  --paper: #F8F6F0; --raised: #FFFFFC; --sidebar: #F4F1E9; --sel: #EFEBE1;
  --ink: #1C1C1A; --muted: #67645D; --faint: #726F68; --hair: #DAD6CC; --soft: #ECE8DF;
  --c-ok: #4E6B3D; --c-wait: #8A5A12; --c-warn: #A84A35; --c-bad: #9E1B2F; --c-none: #9C978C; --c-info: #3D5A80;
  --danger: #9E1B2F; --danger-bg: #9E1B2F; --callout: #F6E7DF;
  --badge-bg: #F3E6C8; --badge-ink: #6B4A0E; --fixture-bg: #E3E8F0; --fixture-ink: #2B4466;
  --toast-bg: #1C1C1A; --toast-ink: #FAF6EE; --toast-muted: #D6D0C4; --scrim: rgba(28, 28, 26, .32);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1E1C19; --raised: #2A2723; --sidebar: #191714; --sel: #38342E;
    --ink: #FAF6EE; --muted: #D6D0C4; --faint: #B0AA9F; --hair: #4A453D; --soft: #3A3630;
    --c-ok: #8DB574; --c-wait: #DDA94A; --c-warn: #E58C72; --c-bad: #EC7388; --c-none: #968F84; --c-info: #86A8D8;
    --danger: #F29BAA; --danger-bg: #9E1B2F; --callout: #3B2B25;
    --badge-bg: #4A3A1A; --badge-ink: #F0D79A; --fixture-bg: #26303F; --fixture-ink: #C3D3EC;
    --toast-bg: #3F3B34; --scrim: rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 13px/18px var(--sans); }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .ink { color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }
.block { display: block; }
.small { font-size: 11px; }
.strong { font-weight: 500; }
.grow { flex: 1; }
.plain { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -48px; z-index: 100; padding: 8px 12px; background: var(--ink); color: var(--paper); border-radius: 6px; }
.skip:focus { top: 8px; }
.boot { padding: 24px; color: var(--muted); }
.sec { margin: 0; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.sec.gap { margin-top: 14px; }
.plain-case { text-transform: none; letter-spacing: 0; font-weight: 400; }

#root { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

/* Status glyphs: shape and colour, always beside a text label. */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 0; }
.dot.ok { background: var(--c-ok); }
.dot.wait { border: 2px solid var(--c-wait); background: linear-gradient(90deg, var(--c-wait) 50%, transparent 50%); }
.dot.warn { border: 2px solid var(--c-warn); background: var(--raised); }
.dot.bad { background: var(--c-bad); border-radius: 2px; }
.dot.none { border: 1.5px dashed var(--c-none); }
.dot.info { border: 2px solid var(--c-info); background: var(--c-info); box-shadow: inset 0 0 0 2px var(--raised); }
.status-label { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.status-label > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid var(--hair); border-radius: 4px; background: var(--raised); font: 11px var(--sans); color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid var(--hair); border-radius: 6px; background: var(--raised); color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.danger { color: var(--danger); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.small { height: 26px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: default; }
.dialog .btn { height: 32px; padding: 0 12px; }
.dialog .btn.danger { background: var(--danger-bg); border-color: var(--danger-bg); color: #FFFFFC; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 600; letter-spacing: .3px; }
.badge.sandbox { background: var(--badge-bg); color: var(--badge-ink); }
.banner-fixture { flex: none; display: flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 12px; background: var(--fixture-bg); color: var(--fixture-ink); font-weight: 600; text-align: center; }

/* Layout: three panes at 1100px and up, split below, one column under 720px. */
.app { flex: 1; min-height: 0; display: grid; grid-template-columns: 208px minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; gap: 18px; padding: 16px 12px; border-right: 1px solid var(--hair); background: var(--sidebar); overflow-y: auto; }
.brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.brand-name { display: flex; align-items: baseline; gap: 8px; }
.wordmark { font-size: 16px; letter-spacing: 2.4px; }
.navlist { display: flex; flex-direction: column; gap: 2px; }
.nav { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; border-radius: 6px; color: var(--ink); }
.nav:hover { text-decoration: none; background: var(--sel); }
.nav.on { background: var(--sel); font-weight: 500; }
.keys { display: inline-flex; gap: 4px; }
.side-issues { display: flex; flex-direction: column; gap: 6px; padding: 0 10px; }
.issue-link { display: flex; justify-content: space-between; }
.account { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 10px 0; border-top: 1px solid var(--hair); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 24px; height: 24px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sel); border: 1px solid var(--hair); font-size: 11px; font-weight: 600; }
.who-text { display: flex; flex-direction: column; min-width: 0; }
.who-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.account-actions { display: flex; justify-content: space-between; align-items: center; }
.help-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; }

.list-pane { container: list / inline-size; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--hair); background: var(--raised); }
.list-head { flex: none; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 20px; border-bottom: 1px solid var(--hair); }
.list-title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.search { margin-left: auto; flex: 0 1 340px; min-width: 0; }
.search-box { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 10px; border: 1px solid var(--hair); border-radius: 6px; background: var(--paper); }
.search-box .icon { stroke: var(--faint); flex: none; }
.search-box:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.search-input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; }
.search-input::placeholder { color: var(--faint); opacity: 1; }
.list-body { flex: 1; min-height: 0; overflow-y: auto; }
.keys-foot { flex: none; display: flex; gap: 18px; align-items: center; height: 34px; padding: 0 20px; border-top: 1px solid var(--soft); font-size: 12px; }

.row { display: grid; grid-template-columns: 14px minmax(0, 1.5fr) 104px 28px 56px minmax(112px, .85fr) minmax(112px, 1.1fr) 34px; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--soft); cursor: default; }
.row.head { height: 30px; cursor: default; color: var(--faint); font-size: 11px; letter-spacing: .4px; text-transform: uppercase; border-bottom-color: var(--hair); position: sticky; top: 0; background: var(--raised); z-index: 1; }
.row.sel { background: var(--sel); }
.row:not(.head):hover { background: var(--sel); }
.listbox { outline: none; }
.listbox:focus-visible .row.sel { outline: 2px solid var(--ink); outline-offset: -2px; }
.cell { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-amount { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.c-age { justify-content: flex-end; }
.head .c-amount, .head .c-age { text-align: right; }
.plus { margin-left: 4px; }
.meta { display: contents; }
.c-dot { display: flex; align-items: center; }
/* All orders: most rows carry no reason, so Reason collapses to its status dot and Printing takes the room. */
@container list (min-width: 580px) {
  .app[data-view="all"] .row { grid-template-columns: 14px 104px 28px 56px minmax(112px, .85fr) minmax(112px, 1.6fr) 34px; }
  .app[data-view="all"] .c-reason { display: none; }
}
/* Between 580 and 699px the destination column steps aside (it stays in the row's label and the detail) so Reason stays readable. */
@container list (min-width: 580px) and (max-width: 699px) {
  .row { grid-template-columns: 14px minmax(150px, 1.5fr) 96px 52px minmax(68px, .6fr) minmax(104px, 1fr) 30px; gap: 6px; padding: 0 10px; }
  .app[data-view="all"] .row { grid-template-columns: 14px 96px 52px minmax(68px, .6fr) minmax(104px, 1.6fr) 30px; }
  .row .c-to { display: none; }
}

.list-status { display: flex; flex-direction: column; }
.state-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 20px; padding: 20px; border: 1px solid var(--hair); border-radius: 10px; background: var(--raised); }
.state-title { font-size: 19px; line-height: 24px; }
.state-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ref-inline { font-size: 14px; word-break: break-all; }
.banner-error { margin: 12px 20px; }
.issues-host { padding: 0; }
.issues { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--soft); }
.issue { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 28px; padding: 0; border: 0; background: none; text-align: left; }
.issue-main { flex: 1; min-width: 0; }
.issue:hover .issue-main { text-decoration: underline; }
.quiet { display: flex; align-items: center; gap: 8px; padding: 14px 20px; }
.more { display: flex; justify-content: center; padding: 14px 20px; }
.more:empty { display: none; }
.skeleton { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.sk-row { display: flex; gap: 12px; }
.sk { display: block; height: 12px; border-radius: 6px; background: var(--sel); }
.sk.w12 { width: 12px; } .sk.grow2 { flex: 2; } .sk.grow1 { flex: 1; }
.sk.w40 { width: 40%; } .sk.w70 { width: 70%; } .sk.w50 { width: 50%; }
.detail-sk { gap: 22px; }
.sk-head { display: flex; flex-direction: column; gap: 12px; }
.sk-title { width: 180px; max-width: 60%; height: 28px; border-radius: 8px; }
.sk-ref { width: 320px; max-width: 90%; }
.sk-line { width: 60%; max-width: 280px; }
.sk-body { display: flex; flex-direction: column; gap: 14px; }
.sk-body .sk-line { width: 100%; max-width: none; } .sk-body .sk-line.short { width: 45%; }

/* Detail */
.detail-pane { container: detail / inline-size; min-width: 0; min-height: 0; overflow-y: auto; background: var(--paper); outline: none; }
.detail-pane.stale > .detail { opacity: .55; }
.pad { padding: 20px 28px; } .pad-top { padding: 16px 28px 0; }
.placeholder { padding: 40px 28px; }
.detail { min-height: 100%; display: flex; flex-direction: column; gap: 22px; padding: 22px 28px 28px; }
.detail-head { display: flex; flex-direction: column; gap: 10px; }
.crumbs { display: flex; align-items: center; gap: 10px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--faint); }
.crumb:hover { color: var(--ink); text-decoration: underline; }
.crumb .icon { display: none; stroke: var(--ink); }
.step { margin-left: auto; display: inline-flex; gap: 6px; }
.title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: baseline; }
.title-row > .copy-row, .title-row > .summary { grid-column: 1 / -1; min-width: 0; }
.summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-title { margin: 0; font-size: 28px; line-height: 34px; font-weight: 400; font-family: var(--serif); outline-offset: 4px; }
.order-id { font-family: var(--sans); font-size: .86em; font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.amount { font-size: 28px; line-height: 34px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.copy-row { display: flex; align-items: center; gap: 10px; }
.copy { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; word-break: break-all; text-align: left; }
.copy .icon { stroke: var(--faint); flex: none; }
.copy:hover { color: var(--ink); }
.copy-number { font-size: 12px; word-break: normal; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.copy-number:hover { text-decoration-color: currentColor; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; background: var(--callout); }
.callout .dot { margin-top: 4px; }
.callout-body { display: flex; flex-direction: column; gap: 8px; }
.callout-link a { text-decoration: underline; }
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--hair); border-radius: 8px; background: var(--raised); overflow: hidden; }
.status-cell { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-right: 1px solid var(--soft); min-width: 0; }
.status-cell.last { border-right: 0; }
.status-cell .status-label { align-items: flex-start; }
.status-cell .status-label .dot { margin-top: 4px; }
.status-cell .status-label > span:last-child { white-space: normal; overflow: visible; }
.status-cell .sub a { color: var(--muted); text-decoration: underline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions .hint { margin-left: auto; font-size: 12px; }
.out { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--soft); }
.detail .out { background: var(--raised); }
.out .dot { margin-top: 4px; }
.out-main { flex: 1; min-width: 0; }
.out-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner-error { flex-wrap: wrap; align-items: center; }
.retry-slot:empty { display: none; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.col { display: flex; flex-direction: column; gap: 8px; outline: none; min-width: 0; }
.col > p { margin: 0; }
.ev { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 7px 0; }
.ev .dot { margin-top: 4px; }
.ev-main { min-width: 0; overflow-wrap: anywhere; }
.ev-time { font-variant-numeric: tabular-nums; }
.kv { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.kv-label { flex: none; white-space: nowrap; }
.kv-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.kv a:hover { text-decoration: underline; }
.detail-foot { margin-top: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 12px; }
.copied { min-height: 18px; }

/* Forms, sign-in, dialogs */
.field { display: flex; flex-direction: column; gap: 6px; }
.input { height: 34px; padding: 0 10px; border: 1px solid var(--hair); border-radius: 6px; background: var(--paper); width: 100%; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.form-message { min-height: 18px; color: var(--danger); }
.signin-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.card { display: flex; flex-direction: column; gap: 14px; width: min(360px, 100%); padding: 24px; border: 1px solid var(--hair); border-radius: 10px; background: var(--raised); }
.signin .btn { align-self: flex-start; height: 34px; padding: 0 16px; }
.dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; margin: min(150px, 10vh) auto auto; padding: 24px; border: 0; border-radius: 12px; background: var(--raised); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.dialog::backdrop { background: var(--scrim); }
.dialog[open] { animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.dialog-title { margin: 0 0 6px; font-size: 22px; line-height: 28px; }
.dialog-form { display: flex; flex-direction: column; gap: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.reasons { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.reasons legend { margin-bottom: 8px; padding: 0; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border: 1px solid var(--hair); border-radius: 6px; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.radio.off { opacity: .7; }
.radio-why { margin-left: auto; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 12px 14px; border-radius: 8px; background: var(--sidebar); }
.facts dd { min-width: 0; overflow-wrap: anywhere; }
.shortcuts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; }
.shortcuts dt { display: flex; gap: 4px; justify-content: flex-start; }

.toast-host { position: fixed; right: 28px; bottom: 28px; z-index: 60; width: min(360px, calc(100vw - 32px)); }
.toast { --c-ok: #A5CB8C; --c-wait: #E3B964; --c-warn: #F0A38B; --c-bad: #F59AA9; --c-none: #B5AFA4; --c-info: #9DBCE6; --raised: var(--toast-bg);
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--toast-bg); color: var(--toast-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); animation: fade .12s ease-out; }
.toast .dot { margin-top: 4px; }
.toast-body { flex: 1; min-width: 0; }
.toast-text { color: var(--toast-muted); }
.toast a { color: var(--toast-ink); text-decoration: underline; }
.toast :focus-visible { outline-color: var(--toast-ink); }
.toast-close { border: 0; background: none; color: var(--toast-muted); font-size: 18px; line-height: 1; min-width: 24px; min-height: 24px; }

/* Compact list rows when the list pane is under 580px, whatever the viewport. */
@container list (max-width: 579px) {
  .row.head { display: none; }
  .row { grid-template-columns: 18px minmax(0, 1fr) max-content; grid-template-areas: "dot reason age" ". m1 m1" ". m2 m2"; height: auto; min-height: 44px; padding: 10px 16px; row-gap: 6px; column-gap: 8px; }
  .c-dot { grid-area: dot; align-self: start; padding-top: 4px; } .c-reason { grid-area: reason; } .c-age { grid-area: age; font-size: 12px; }
  /* Each meta line is its own flex line, with fixed-width leading fields, so columns don't jitter row to row. */
  .meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .m1 { grid-area: m1; } .m2 { grid-area: m2; }
  .c-ref { flex: none; } .c-to { flex: none; overflow: visible; } .c-amount { flex: none; justify-content: flex-start; }
  .c-to::before, .c-amount::before { content: "· "; white-space: pre; }
  .m2 { font-size: 12px; color: var(--muted); }
  .c-pay { flex: 0 0 8.5em; } .c-print { flex: 1; }
  .list-head { flex-wrap: wrap; padding: 10px 16px; }
  .search { flex: 1 1 100%; margin-left: 0; order: 3; }
  .keys-foot { display: none; }
  .state-card { margin: 16px; } .banner-error { margin: 12px 16px; } .issues, .quiet, .more { padding-left: 16px; padding-right: 16px; }
}
/* Status strip becomes a labelled row list when the detail pane is under 680px, sub-lines right-aligned. */
@container detail (max-width: 679px) {
  .strip { grid-template-columns: 1fr; }
  .status-cell { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; border-right: 0; border-bottom: 1px solid var(--soft); }
  .status-cell.last { border-bottom: 0; }
  .status-cell .sec { width: 96px; flex: none; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 400; }
  .status-cell .sub { display: block; flex: 1; min-width: 0; margin-left: auto; text-align: right; font-size: 12px; color: var(--faint); overflow-wrap: anywhere; }
}
@container detail (max-width: 519px) {
  .detail { padding: 18px 16px 24px; gap: 16px; }
  .pad, .pad-top { padding-left: 16px; padding-right: 16px; }
  .cols { grid-template-columns: 1fr; }
  .order-title, .amount { font-size: 24px; line-height: 30px; }
  .actions .hint, .step { display: none; }
}

/* 720-1099px: the sidebar becomes a top bar, list and detail still split. */
@media (max-width: 1099px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .sidebar { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--hair); overflow: visible; }
  .brand { gap: 12px; padding: 0; }
  .navlist { flex-direction: row; gap: 4px; }
  .side-issues { display: none; }
  .account { margin: 0 0 0 auto; padding: 0; border: 0; flex-direction: row; align-items: center; gap: 16px; }
  .help-btn { display: none; }
}
/* Under 720px: one column; opening an order shows the focused detail screen. */
@media (max-width: 719px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app[data-screen="list"] .detail-pane, .app[data-screen="detail"] .list-pane, .app[data-screen="detail"] .sidebar { display: none; }
  .list-pane, .detail-pane { grid-column: 1; grid-row: 2; border-right: 0; }
  .app[data-screen="detail"] .detail-pane { grid-row: 1 / -1; }
  .sidebar { background: var(--paper); padding: 12px 16px; gap: 10px; }
  .brand { flex: 1; }
  .account { margin: 0; gap: 8px; }
  .who-text .small, .avatar { display: none; }
  .who-name { font-size: 12px; color: var(--faint); font-weight: 400; }
  .navlist { order: 3; width: 100%; padding: 3px; border-radius: 8px; background: var(--sel); }
  .nav { flex: 1; justify-content: center; height: 44px; min-height: 44px; color: var(--muted); }
  .nav .dot, .nav .keys { display: none; }
  .nav .grow { flex: none; }
  .nav.on { background: var(--raised); color: var(--ink); }
  .btn, .btn.small { min-height: 44px; }
  .input, .search-box { min-height: 44px; height: 44px; }
  .row { min-height: 52px; }
  .issue { min-height: 44px; }
  .crumb { min-height: 44px; padding-right: 12px; color: var(--ink); }
  .crumb .icon { display: inline; }
  .crumbs .sep, .crumbs .mono { display: none; }
  .copy { min-height: 44px; }
  .btn .kbd, .help-btn { display: none; }
  .actions .btn { flex: 1; }
  .radio { min-height: 44px; }
  .toast-host { right: 16px; bottom: 16px; }
  .state-actions .btn kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
