/* STF customer portal. StartFill website values (startfill.com, 26.10.2026): navy #0A1628, orange #FF8C00, eyebrow #CC6E00, mint #E7F6EE,
   teal #13756A, page #F6F8FB, container 1160px. System fonts only (CSP is 'self'). No inline styles anywhere. */
:root {
  --navy: #0A1628;
  --navy-2: #16294A;
  --orange: #FF8C00;
  --orange-ink: #CC6E00;
  --mint: #E7F6EE;
  --teal: #13756A;
  --page: #F6F8FB;
  --panel: #FFFFFF;
  --ink: #0A1628;
  --muted: #55627A;
  --line: #DCE2EC;
  --line-soft: #EBEFF5;
  --warn-bg: #FFF4E0;
  --warn-ink: #8A4B00;
  --bad-bg: #FDECEA;
  --bad-ink: #A3201A;
  --info-bg: #E8F0FB;
  --info-ink: #1D4F91;
  --focus: #13756A;
  --radius: 10px;
  --font: "Raleway", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.5 var(--font); min-height: 100vh;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; }
.nowrap { white-space: nowrap; }
.quiet { color: var(--muted); font-size: .9rem; margin: 0; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1:focus, main:focus { outline: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--orange); color: var(--navy); font-weight: 700; padding: 10px 16px; border-radius: 0 0 8px 8px; text-decoration: none; }
.skip:focus { top: 0; }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--navy); color: #fff; }
.site-header :focus-visible { outline-color: var(--orange); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-height: 44px; }
.brand:hover { color: #fff; }
/* the mark: a container filled up to a line */
/* 17.11.2026 (Jalal): the header mark is the favicon itself (navy square, white STF), so tab icon and logo always match;
   the thin light ring keeps the navy square visible on the navy header */
.brand-mark { width: 30px; height: 30px; border-radius: 7px; flex: none; background: url(/portal/brand/favicon.svg) center / 100% 100% no-repeat; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .45); }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand-sub { color: #B9C4D8; font-size: .95rem; padding-left: 12px; border-left: 1px solid #3B4C69; line-height: 1.2; }
.who { display: flex; align-items: center; gap: 16px; }
.who-text { margin: 0; display: flex; flex-direction: column; text-align: right; line-height: 1.25; }
.who-merchant { font-weight: 700; }
.who-user { color: #B9C4D8; font-size: .9rem; }
.nav { display: flex; gap: 4px; overflow-x: auto; padding-top: 0; padding-bottom: 0; }
.nav a { color: #D5DDEB; text-decoration: none; padding: 12px 16px; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }

/* ---------------------------------------------------------------- buttons, inputs */
.btn { font-family: "Lato", var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #E67E00; color: var(--navy); }
.btn-secondary { background: var(--panel); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: #5A6C8A; min-height: 40px; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-small { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn:disabled { opacity: .55; cursor: progress; }
.textlink { font-weight: 600; }
.backlink { display: inline-block; margin: 20px 0 0; font-weight: 600; text-decoration: none; }
.backlink::before { content: "\2039\00a0"; }
.backlink:hover { text-decoration: underline; }

.input { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #8A97AE; border-radius: 8px; min-height: 44px; padding: 0 12px; width: 100%; }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
select.input { padding-right: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; }
.field-grow { flex: 1 1 260px; }
.field-actions { flex-direction: row; align-items: flex-end; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 0 0 20px; }
.toolbar .field:not(.field-grow):not(.field-actions) { flex: 0 1 220px; }
.toolbar .field.field-search { flex: 0 1 380px; }
.formmsg { color: var(--bad-ink); font-weight: 600; min-height: 0; margin: -8px 0 12px; }

/* ---------------------------------------------------------------- page structure */
.main { padding-top: 8px; padding-bottom: 64px; }
.pagehead { margin: 28px 0 20px; }
.pagehead h1 { margin: 0; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 6px 0 0; max-width: 62ch; }
.statusline { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 10px 0 0; }
.reason { color: var(--warn-ink); font-weight: 600; }
.block { margin: 0 0 32px; }
.block > h2 { font-size: 1.2rem; margin: 0 0 12px; letter-spacing: -.01em; }
.empty { color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.loading { color: var(--muted); padding: 32px 0; margin: 0; }
.more { margin: 16px 0; }
.sub { display: block; color: var(--muted); font-size: .85rem; }
.pos { color: var(--teal); font-weight: 700; }
.neg { color: var(--bad-ink); font-weight: 700; }
.strong { font-weight: 700; }

.notice { border-radius: var(--radius); padding: 14px 18px; margin: 0 0 16px; border: 1px solid; }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }
.notice-title { font-weight: 700; }
.notice-bad { background: var(--bad-bg); border-color: #F0B8B3; color: var(--bad-ink); }
.notice-warn { background: var(--warn-bg); border-color: #F2CF9A; color: var(--warn-ink); }
.notice-info { background: var(--info-bg); border-color: #BCD2F0; color: var(--info-ink); }
.notice .btn { margin-top: 12px; }

/* tags */
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .82rem; font-weight: 700; line-height: 1.5; border: 1px solid transparent; white-space: nowrap; }
.tag-ok { background: var(--mint); color: #0C5A51; border-color: #BFE3D2; }
.tag-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #F2CF9A; }
.tag-bad { background: var(--bad-bg); color: var(--bad-ink); border-color: #F0B8B3; }
.tag-info { background: var(--info-bg); color: var(--info-ink); border-color: #BCD2F0; }
.tag-neutral { background: #EEF1F6; color: #3A4760; border-color: var(--line); }
.flagwrap { margin-left: 8px; }

.chips { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; }
.chip { background: #EEF1F6; border-radius: 6px; padding: 1px 7px; font-size: .85rem; color: var(--ink); text-decoration: none; }
a.chip { color: var(--teal); text-decoration: underline; }

/* ---------------------------------------------------------------- tables */
.tablebox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; max-width: 100%; }
.tablebox:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data th, .data td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.data thead th { background: #F1F4F9; color: #3A4760; font-size: .85rem; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line); }
.data tbody tr:last-child > td, .data tbody tr:last-child > th { border-bottom: 0; }
.data .num { text-align: right; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.data .wraps { white-space: normal; min-width: 12ch; }
.data tbody tr:hover > td { background: #FAFBFD; }
.data tfoot th, .data tfoot td { font-weight: 700; background: #FAFBFD; border-top: 1px solid var(--line); border-bottom: 0; }
.data tfoot th { text-align: right; }

/* ---------------------------------------------------------------- the four figures */
.figs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fig { padding: 16px 20px; border-right: 1px solid var(--line); }
.fig:last-child { border-right: 0; }
.fig dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.fig dd { margin: 2px 0 0; font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; line-height: 1.15; }
.fig-available { background: var(--mint); }
.fig-available dt { color: #0C5A51; }
.fig-available dd { color: var(--teal); }
.figs-recall { grid-template-columns: repeat(3, 1fr); }

/* ---------------------------------------------------------------- home */
.needs { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 8px; border-left: 6px solid var(--teal); }
.needs-open { border-left-color: var(--orange); }
.needs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.needs-head h2 { margin: 0; font-size: 1.35rem; }
.count-badge { background: var(--orange); color: var(--navy); font-weight: 800; font-size: .85rem; padding: 2px 10px; border-radius: 999px; }
.needs .empty { background: var(--mint); border: 0; color: #0C5A51; font-weight: 600; margin-bottom: 12px; }
.actions { list-style: none; margin: 0; padding: 0; }
.action { display: flex; gap: 20px; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.action:first-child { border-top: 0; }
.action-main { min-width: 0; flex: 1; }
.action-kind { margin: 0 0 6px; }
.action-title { margin: 0; font-size: 1.05rem; }
.action-detail { margin: 4px 0 10px; color: var(--muted); }
.action-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 8px 0 0; }
.action-facts dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.action-facts dd { margin: 0; font-weight: 600; }
.action-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }

/* ---------------------------------------------------------------- stock */
.meaning { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.meaning > h2 { margin-bottom: 14px; }
.defs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; margin: 0; }
.def dt { font-weight: 800; }
.def dd { margin: 2px 0 0; color: #34415A; max-width: 60ch; overflow-wrap: anywhere; }
.def-available dt { color: var(--teal); }
.formula { margin: 16px 0 0; padding: 10px 14px; background: var(--mint); border-radius: 8px; color: #0C5A51; font-weight: 600; }
.stock .itemrow th { font-weight: 400; padding: 6px 8px; }
.stock .itemrow > * { vertical-align: middle; }
.stock thead th.fig-available, .stock td.fig-available { background: var(--mint); }
.stock thead th.fig-available { color: #0C5A51; }
.stock td.fig-available { font-weight: 800; color: var(--teal); }
.stock td.fig-blocked { color: #7A4300; }
.stock tbody.item.open .itemrow > * { background: #F8FAFD; }
.stock tbody.item.open .itemrow td.fig-available { background: var(--mint); }
.expander { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.expander:hover { background: #F1F4F9; }
.chev { width: 9px; height: 9px; border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg); transition: transform .12s; flex: none; margin: 0 4px; }
.expander[aria-expanded="true"] .chev { transform: rotate(45deg); }
.itemname { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.itemname .sku { font-weight: 800; font-family: var(--mono); font-size: .95rem; }
.itemname .name { color: #34415A; }
.itemname .lotcount { color: var(--muted); font-size: .85rem; }
.lotsrow > td { background: #F8FAFD; padding: 4px 14px 18px 46px; }
.lotsrow .tablebox { border-color: var(--line); }
.lots tr.lot-past > td { background: #FFF6F5; }
.lots tr.lot-soon > td { background: #FFFAF0; }

/* ---------------------------------------------------------------- orders, facts, timeline */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 24px; margin: 0 0 32px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.facts dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.timeline { list-style: none; margin: 0; padding: 22px 20px 18px; display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.tl-step { flex: 1 1 0; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; padding: 0 4px; }
.tl-step::before { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 3px; background: var(--line); }
.tl-step:first-child::before { display: none; }
.tl-dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--panel); border: 3px solid #B4BECF; display: grid; place-items: center; font-size: .8rem; font-weight: 800; line-height: 1; }
.tl-text { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.tl-label { font-weight: 700; font-size: .92rem; }
.tl-at { color: var(--muted); font-size: .8rem; min-height: 1.2em; }
.tl-done .tl-dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.tl-done .tl-dot::after { content: "\2713"; }
.tl-done::before { background: var(--teal); }
.tl-next .tl-dot { border-color: var(--orange); box-shadow: 0 0 0 4px #FFE2BD; }
.tl-next::before { background: linear-gradient(to left, var(--teal) 0, var(--teal) 100%); }
.tl-next .tl-label { color: var(--navy); }
.tl-todo .tl-label, .tl-todo .tl-at { color: var(--muted); }
.tl-skipped .tl-dot { border-style: dashed; border-color: #C9D1DE; }
.tl-skipped .tl-label { color: #7C889D; text-decoration: line-through; text-decoration-thickness: 1px; }
.tl-skipped::before { background: repeating-linear-gradient(to right, #C9D1DE 0 4px, transparent 4px 8px); }
.tl-problem .tl-dot { background: var(--bad-ink); border-color: var(--bad-ink); color: #fff; }
.tl-problem .tl-dot::after { content: "!"; }
.tl-problem .tl-label { color: var(--bad-ink); }
.tl-problem::before { background: var(--bad-ink); }

/* ---------------------------------------------------------------- recall, sign-in */
.resulthead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 8px 0 18px; }
.resulttitle { flex: 1 1 280px; }
.resulthead h2 { margin: 0; font-size: 1.3rem; }
.recall-result { margin-top: 28px; }

.signin { max-width: 560px; margin: 0 auto; padding-top: 24px; }
.signin-card { background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: var(--radius); padding: 24px 26px; }
.signin-card p { margin: 0 0 12px; }
.signin-card .lead { color: var(--ink); font-size: 1.1rem; font-weight: 600; margin-top: 0; }
.signin-card .quiet { margin-bottom: 0; }
.signin-head { margin-bottom: 16px; }
.noscript { padding-top: 24px; }

/* P2-A: forms, actions, products, file uploads */
.pageactions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin: 0 0 20px; }
.formpage, .importpage { max-width: 880px; }
.stackform { margin: 0 0 24px; }
.formpanel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 24px; }
.formpanel h2, .formpanel h3 { margin: 0 0 8px; font-size: 1.15rem; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 18px; margin: 0 0 16px; }
.formgrid .f-name, .formgrid .f-street { grid-column: span 1; }
.formactions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 8px 0 0; }
.formerror { margin-top: 12px; }
.hint { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.req { color: var(--bad-ink); }
.field-check { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 44px; }
.field-check input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--teal); flex: none; }
.field-check .hint { flex-basis: 100%; margin: 0 0 0 32px; }
textarea.input { width: 100%; resize: vertical; }
.linerows { display: grid; gap: 10px; margin: 0 0 12px; }
.linerow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto; gap: 10px 14px; align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.confirmwrap { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.confirmask { display: inline-flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.confirmtext { font-weight: 600; }
.orderactions { margin: 0 0 28px; }
.actionpanels .formpanel { margin-top: 12px; }
.rulebox { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 6px; margin: 0 0 16px; background: var(--panel); }
.rulebox legend { font-weight: 700; padding: 0 6px; }
.ruleask { margin-top: 16px; }
.ruleslist, .problems, .skulist { margin: 6px 0 10px; padding-left: 20px; }
.problems { font-size: .9rem; margin-bottom: 0; }
/* 28.10.2026: orders | needs fixing tabs; choices for faulty orders of an upload; "fix it here" panel */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; flex-wrap: wrap; }
.tab { padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tab:hover { color: var(--ink); }
.tab-on { color: var(--ink); border-bottom-color: var(--orange); }
.choicebox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin: 16px 0; }
.choicebox fieldset { border: 0; padding: 0; margin: 8px 0 0; display: flex; gap: 8px 20px; flex-wrap: wrap; }
.choicebox legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.choicebox label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.rowchoice { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rowchoice select { min-width: 12rem; }
.fixpanel { background: var(--panel); border: 2px solid var(--orange); border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; }
.fixpanel h3 { margin: 0 0 8px; }
.howto { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 18px; margin: 0 0 20px; }
.howto summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.howto h3 { margin: 16px 0 6px; font-size: 1rem; }
.howto .tablebox { margin-bottom: 12px; }
.importout { margin-top: 24px; }
.importout h2 { margin: 0 0 12px; font-size: 1.2rem; }
.figs-import { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.figs-import .fig dd { font-size: 1.7rem; }
.figs-import .fig-error dd { color: var(--bad-ink); }
.figs-import .fig-ok { background: var(--mint); }
.importdone { margin-top: 16px; }
.signin-link { margin-top: 16px; }
.signin-link h2 { margin: 0 0 6px; font-size: 1.1rem; }
.signin-link .field { margin: 10px 0 12px; }
.signin-link .notice { margin: 12px 0 0; }
/* END P2-A */

/* ---------------------------------------------------------------- phone */
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .bar { padding-top: 10px; padding-bottom: 10px; }
  .brand-sub { display: none; }
  .who { gap: 10px; }
  .who-text { font-size: .9rem; }
  .pagehead { margin: 20px 0 16px; }
  .pagehead h1 { font-size: 1.6rem; }
  .nav a { padding: 11px 12px; }
  .figs { grid-template-columns: repeat(2, 1fr); }
  .fig { padding: 12px 14px; }
  .fig:nth-child(2) { border-right: 0; }
  .fig:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fig dd { font-size: 1.7rem; }
  .figs-recall { grid-template-columns: 1fr; }
  .figs-recall .fig { border-right: 0; border-bottom: 1px solid var(--line); }
  .figs-recall .fig:last-child { border-bottom: 0; }
  .defs { grid-template-columns: 1fr; }
  .meaning { padding: 16px; }
  .needs { padding: 16px 16px 4px; }
  .action { flex-direction: column; gap: 10px; }
  .action-side { flex-direction: row; align-items: center; justify-content: space-between; }
  /* the stock table becomes one card per item: name on top, the four figures below (the nested lots table stays a table) */
  table.stock, .stock > tbody.item, .stock > tbody > tr, .stock > tbody > tr > th, .stock > tbody > tr > td { display: block; }
  .stock > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stock > tbody.item { border-bottom: 1px solid var(--line); }
  .stock > tbody.item:last-child { border-bottom: 0; }
  .stock > tbody > tr.itemrow { display: grid; grid-template-columns: 1fr 1fr; padding: 4px 8px 10px; }
  .stock > tbody > tr.itemrow > th { grid-column: 1 / -1; padding: 2px 0; }
  .stock > tbody > tr.itemrow > td { border: 0; padding: 6px 10px; text-align: left; font-size: 1.05rem; }
  .stock > tbody > tr.itemrow > td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
  .stock > tbody > tr.itemrow > td.fig-available { border-radius: 8px; }
  .stock > tbody > tr.itemrow > td.fig-available::before { color: #0C5A51; }
  .lotsrow > td { padding-left: 8px; padding-right: 8px; }
  .facts { grid-template-columns: 1fr 1fr; padding: 14px; }
  .timeline { flex-direction: column; padding: 16px 18px; gap: 0; }
  .tl-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 14px; padding: 0 0 18px; }
  .tl-step:last-child { padding-bottom: 0; }
  .tl-step::before { top: -18px; right: auto; left: 11px; width: 3px; height: 100%; }
  .tl-step:first-child::before { display: none; }
  .tl-text { margin-top: 2px; }
  .tl-next::before { background: var(--teal); }
  .tl-skipped::before { background: repeating-linear-gradient(to bottom, #C9D1DE 0 4px, transparent 4px 8px); }
  .toolbar .field:not(.field-grow):not(.field-actions) { flex: 1 1 100%; }
  .field-actions { flex: 1 1 100%; }
  .field-actions .btn { flex: 1; }
  .signin-card { padding: 18px; }
  .linerow { grid-template-columns: 1fr 1fr; }
  .linerow .rowremove { grid-column: 1 / -1; }
  .formpanel { padding: 14px 16px; }
  .pageactions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.note { margin-top: 8px; }

/* ================================================================ P2-B: returns, support, account, return page (buyers) */
.hint { margin: 0; color: var(--muted); font-size: .85rem; }
.textarea { min-height: 96px; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form h3, .formhead { margin: 0; font-size: 1.05rem; }
.formrow { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.formrow > .field { flex: 1 1 220px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px; }
.panel .formmsg { margin: 0; }
.check label { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; min-height: 32px; }
.check input { width: 22px; height: 22px; accent-color: var(--teal); }
.check .hint { margin-left: 32px; }
.flash { margin: 0 0 16px; padding: 0; font-weight: 600; }
.flash:empty { display: none; }
.flash-ok { color: #0C5A51; background: var(--mint); border: 1px solid #BFE3D2; border-radius: var(--radius); padding: 10px 14px; }
.flash-bad { color: var(--bad-ink); background: var(--bad-bg); border: 1px solid #F0B8B3; border-radius: var(--radius); padding: 10px 14px; }
.btn-danger { background: var(--bad-ink); color: #fff; }
.btn-danger:hover { background: #7E1712; color: #fff; }
.confirm { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rowbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-inline { margin: 0 0 14px; color: var(--muted); max-width: 70ch; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--teal); color: var(--ink); }
.card-title { font-weight: 800; font-size: 1.1rem; color: var(--teal); }
.card-text { color: var(--muted); }
.reveal .revealrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 6px; }
.reveal .revealrow .input { flex: 1 1 320px; }
.lines { display: flex; flex-direction: column; gap: 14px; }
.retline { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.retline legend { font-weight: 700; padding: 0 6px; }
.retline .formrow { width: 100%; }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: var(--panel); max-width: 78ch; }
.msg-startfill { background: var(--mint); border-color: #BFE3D2; margin-left: 24px; }
.msg-head { margin: 0 0 6px; }
.msg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 14px; font-style: normal; }

.tablebox + .panel, .notice + .panel, .empty + .panel, .reveal + .tablebox { margin-top: 20px; }
.form .toolbar { margin: 0; }
.quiet.note { margin: 8px 0 20px; }

/* the public return page (returns.html) */
.pubhead { margin: 28px 0 8px; }
.pubhead h1 { margin: 0; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.pubcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 20px 0; max-width: 720px; }
.pubcard h1, .pubcard h2 { margin: 0 0 12px; font-size: 1.3rem; }
.pubcard h3 { margin: 18px 0 6px; font-size: 1rem; }
.pubcard .btn-primary { background: var(--accent, var(--orange)); color: var(--accent-ink, var(--navy)); }
.pubcard .btn-primary:hover { background: var(--accent, #FF9C26); color: var(--accent-ink, var(--navy)); filter: brightness(.94); }
.pubcard a { color: var(--accent, var(--teal)); }
.publines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.publine { display: grid; grid-template-columns: 1fr 110px; gap: 4px 16px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.publine-off { background: var(--page); }
.publine-main { display: flex; flex-direction: column; }
.publine .quiet { grid-column: 1 / 2; }
.publine .qty { grid-column: 2 / 3; grid-row: 1 / 3; text-align: right; }
.rma-label { margin: 0; color: var(--muted); font-weight: 600; }
.rma { margin: 0 0 12px; font-size: 1.8rem; font-weight: 800; letter-spacing: .02em; word-break: break-all; }
.donelines { margin: 0 0 6px; padding-left: 20px; }
@media (max-width: 720px) {
  /* B tables: one card per row, the column head above each value */
  table.data.stackm, .stackm > tbody, .stackm > tbody > tr, .stackm > tbody > tr > td { display: block; width: 100%; }
  .stackm > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stackm > tbody > tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .stackm > tbody > tr:last-child { border-bottom: 0; }
  table.data.stackm > tbody > tr > td { border: 0; padding: 4px 0; text-align: left; }
  .stackm > tbody > tr > td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
  .stackm .rowbtns { margin-top: 4px; }
  .pubcard { padding: 18px 16px; }
  .publine { grid-template-columns: 1fr 90px; }
  .msg-startfill { margin-left: 8px; }
}
@media print {
  .site-header, .skip, .form-actions .btn { display: none !important; }
  .pubcard { border: 0; padding: 0; }
}
/* END P2-B */
/* ---------------------------------------------------------------- P2-C: reports, alerts, billing */
.block > .quiet:not(.note) { margin-bottom: 12px; }
.block > .note { margin-top: 10px; }
.field-pair { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.field-pair .field { flex: 0 1 200px; }
.savemsg { min-height: 1.4em; margin: 6px 0 0; color: var(--teal); font-weight: 600; }
.savemsg-bad { color: var(--bad-ink); }
.switches { list-style: none; margin: 0 0 12px; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.switch { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.switch:last-child { border-bottom: 0; }
.switch input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.switch input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.usage-figs { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); }
.usage-figs .fig { background: var(--panel); border: 0; }
.usage-figs .fig dd { font-size: 1.7rem; }
.statement { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; }
.statement h3 { margin: 18px 0 10px; font-size: 1.05rem; }
.statement .resulthead h3 { margin: 0; font-size: 1.3rem; }
.statement .tablebox { margin-bottom: 8px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
  .usage-figs { grid-template-columns: 1fr 1fr; }
  .statement { padding: 14px; }
  .field-pair .field { flex: 1 1 100%; }
  .switch { padding: 12px 14px; }
}

/* ---------------------------------------------------------------- password sign-in (docs/PORTAL-AUTH.md) */
.signin-card h2 { margin: 0 0 10px; font-size: 1.15rem; }
.signin-card form .field { margin: 10px 0 12px; }
.signin-card .check { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; }
.signin-card .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 12px; }
.methods { border: 1.5px solid var(--line); border-radius: var(--radius); margin: 4px 0 16px; padding: 10px 14px 6px; }
.methods legend { font-weight: 700; padding: 0 6px; }
.method { margin: 0 0 8px; }
.method .sub { margin-left: 26px; }
.setupkey { display: inline-block; font-size: 1.05rem; letter-spacing: .06em; background: #F1F4F9; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; word-break: break-all; }
.signin-link { border-top-color: var(--navy); }
.devlist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.devlist li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.devlist .devname { font-weight: 700; }
.devlist .sub { flex: 1 1 auto; }

/* 1.0.23 Reports page: one panel per subject (tracking numbers, orders, inventory) */
.reportresult { margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.reportresult:empty { display: none; }
.panel h2 { margin: 0 0 6px; font-size: 1.25rem; }
.panel > .rowbtns { margin: 0 0 6px; }
.panel .toolbar { margin: 12px 0 8px; }
.panel > .rowbtns + .note, .panel > .btn { margin-top: 8px; }
.panel .toolbar + .note { margin-top: 0; }
.panel > .note { margin: 6px 0 14px; }

/* ================================================================ 28.10.2026: app shell (sidebar, top bar, phone tab bar)
   Desktop: a fixed navy sidebar with grouped sections, a light top bar with search. Phones (< 1000px): the sidebar is a
   drawer behind a menu button, a tab bar holds Home, Orders, Stock, Deliveries and More. No marketing header when signed in. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Raleway draws old-style figures by default: numbers line up and stand at full height */
body { font-variant-numeric: lining-nums; }
.dashgrid.block { margin-bottom: 28px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; flex: none; }
.iconbtn:hover { background: rgba(10, 22, 40, .06); }

.signbar { background: var(--navy); color: #fff; }
.signbar-in { max-width: 1160px; margin: 0 auto; padding: 14px 24px; }
.signbar :focus-visible { outline-color: var(--orange); }

.shell { min-height: 100vh; }
.content { min-width: 0; }
body.in-app .shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); }

.side { background: var(--navy); color: #D5DDEB; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; z-index: 40; }
.side :focus-visible { outline-color: var(--orange); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 16px 20px; margin-bottom: 10px; position: relative; }
/* 17.11.2026 (Jalal, option B): a thin line under the logo that fades out to the right */
.side-head::after { content: ""; position: absolute; left: 20px; right: 16px; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)); pointer-events: none; }
/* 17.11.2026 (Jalal): mark on the left, name and "Customer portal" stacked beside it (the sub line no longer sits under the mark) */
.side-head .brand { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 1px; align-items: center; }
.side-head .brand-mark { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 9px; }
.side-head .brand-name { align-self: end; line-height: 1.1; }
.side .brand-sub { display: block; align-self: start; padding-left: 0; border-left: 0; font-size: .78rem; line-height: 1.2; }
.side-close { color: #fff; display: none; }
.side-close:hover { background: rgba(255, 255, 255, .08); }
.side .nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 16px; overflow: visible; flex: 1; }
.side .nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 9px; border: 0; color: #C4CEDF; font-weight: 600; font-size: .95rem; text-decoration: none; }
.side .nav a .ic { color: #8FA0BC; }
.side .nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side .nav a[aria-current="page"] { background: rgba(255, 140, 0, .14); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.side .nav a[aria-current="page"] .ic { color: var(--orange); }
.navgroup { margin: 16px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #6F81A0; }
.side .who { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 20px 20px; border-top: 1px solid #1E3150; }
.side .who-text { text-align: left; }
.side .who-merchant { color: #fff; font-size: .95rem; }
.side .who-user { color: #8FA0BC; font-size: .85rem; }
.side .who .btn { justify-content: flex-start; gap: 8px; }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 32px; background: rgba(246, 248, 251, .92); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line-soft); }
.menubtn, .brand-top { display: none; }
.brand-top { color: var(--navy); }
.brand-top .brand-mark { box-shadow: none; }
.topsearch { position: relative; flex: 1 1 auto; max-width: 560px; }
.topsearch .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.topsearch .input { padding-left: 40px; border-color: var(--line); background: #fff; border-radius: 10px; min-height: 42px; }
.topnew { margin-left: auto; }

body.in-app .main { max-width: 1240px; margin: 0; padding: 4px 32px 64px; }
body.in-app .pagehead { margin-top: 20px; }

.tabbar { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(10, 22, 40, .45); z-index: 35; }

/* cards everywhere: a touch of depth */
.block .tablebox, .figs, .facts, .timeline, .needs, .panel, .formpanel, .card, .meaning, .statement, .kpi, .chartcard { box-shadow: 0 1px 2px rgba(10, 22, 40, .04), 0 1px 1px rgba(10, 22, 40, .02); }
.tablebox, .figs, .facts, .timeline, .needs, .panel, .formpanel { border-radius: 12px; }

/* sortable table heads */
.sortbtn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; }
.sortbtn::after { content: "\2195"; opacity: .35; font-size: .85em; }
th[aria-sort="ascending"] .sortbtn::after { content: "\2191"; opacity: 1; }
th[aria-sort="descending"] .sortbtn::after { content: "\2193"; opacity: 1; }
.sortbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

/* the order filters: search row, then the other filters (folded on phones) */
.filterbar { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 20px; }
.searchrow { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.morefilters { margin-top: 10px; }
.morefilters > summary { cursor: pointer; font-weight: 700; color: var(--teal); min-height: 36px; display: inline-flex; align-items: center; }
.filtergrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; margin-top: 6px; }
.orderlist td .sub { margin-top: 2px; }

/* the stock page: definitions folded away */
.meaning-fold { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin: 0 0 24px; }
.meaning-fold > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--teal); }
.meaning-fold[open] { padding-bottom: 16px; }
.meaning-fold .defs { margin-top: 6px; }
.figs-5 { grid-template-columns: repeat(5, 1fr); }
.fig-picked dd { color: var(--info-ink); }
.itemname .name { max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itemname .sku { font-family: var(--font); font-weight: 800; }

/* ---------------------------------------------------------------- dashboard (Home) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
a.kpi:hover { border-color: var(--teal); color: var(--ink); }
.kpi-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.kpi-value { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.kpi-unit { font-size: 1rem; font-weight: 700; color: var(--muted); margin-left: 4px; }
.kpi-note { color: var(--muted); font-size: .82rem; }
.kpi-up { color: var(--teal); font-weight: 700; }
.kpi-down { color: var(--bad-ink); font-weight: 700; }
.kpi-warn { border-left: 4px solid var(--orange); }
.dashgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin: 0 0 8px; }
.chartcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 12px; }
.chartcard h2 { margin: 0 0 2px; font-size: 1.1rem; }
.chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.chart .bar-o { fill: #C9D6EA; }
.chart .bar-s { fill: var(--teal); }
.chart .axis { fill: var(--muted); font-size: 12px; font-family: var(--font); font-variant-numeric: lining-nums; }
.chart .val { fill: var(--ink); font-size: 11px; font-weight: 700; font-family: var(--font); }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; padding: 0; list-style: none; font-size: .85rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-o { background: #C9D6EA; }
.sw-s { background: var(--teal); }
.openlist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.openlist a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.openlist li:last-child a { border-bottom: 0; }
.openlist a:hover { color: var(--teal); }
.openlist .n { font-weight: 800; font-variant-numeric: lining-nums tabular-nums; font-size: 1.1rem; }
.lowtag { white-space: nowrap; }

/* ---------------------------------------------------------------- phones and small tablets */
@media (max-width: 999px) {
  body.in-app .shell { display: block; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(86vw, 300px); height: auto; transform: translateX(-102%); transition: transform .18s ease; visibility: hidden; }
  body.drawer-open .side { transform: none; visibility: visible; box-shadow: 8px 0 24px rgba(10, 22, 40, .25); }
  .side-close { display: inline-grid; }
  .topbar { padding: 8px 12px; gap: 8px; background: var(--navy); border-bottom: 0; backdrop-filter: none; }
  .topbar .iconbtn { color: #fff; }
  .topbar .iconbtn:hover { background: rgba(255, 255, 255, .08); }
  .topbar :focus-visible { outline-color: var(--orange); }
  .menubtn { display: inline-grid; }
  .brand-top { display: inline-flex; color: #fff; min-height: 40px; }
  .brand-top:hover { color: #fff; }
  .brand-top .brand-mark { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .45); width: 26px; height: 26px; border-radius: 6px; }
  .brand-top .brand-name { font-size: 1.1rem; }
  .topsearch { order: 5; flex: 1 1 100%; max-width: none; }
  .topbar { flex-wrap: wrap; }
  .topsearch .input { min-height: 40px; border-color: transparent; }
  .topnew { min-height: 36px; }
  body.in-app .main { padding: 0 16px calc(84px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar[hidden] { display: none; }
  .tabbar a, .tabbar button { all: unset; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; font-size: .72rem; font-weight: 700; color: var(--muted); cursor: pointer; border-radius: 10px; font-family: var(--font); }
  .tabbar a[aria-current="page"] { color: var(--navy); }
  .tabbar a[aria-current="page"] .ic { color: var(--orange); }
  .tabbar :focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
  .tabbar .ic { width: 22px; height: 22px; }
  .dashgrid { grid-template-columns: 1fr; }
  .chart .axis { font-size: 20px; }
  .figs-5 { grid-template-columns: repeat(2, 1fr); }
  .figs-5 .fig:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi-value { font-size: 1.6rem; }
  .filterbar { padding: 12px; }
  .filtergrid { grid-template-columns: 1fr 1fr; }
  .searchrow .field-actions { flex: 0 0 auto; }
  .searchrow .field-grow { flex: 1 1 60%; }
  .pageactions-compact .btn { flex: 1 1 0; min-height: 40px; padding: 0 10px; font-size: .92rem; }
  .pageactions-compact .btn-primary { display: none; } /* the top bar has New order */
  /* order cards: number and status on top, the rest in two columns, no labels for the obvious ones */
  table.data.orderlist > tbody > tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; }
  table.data.orderlist > tbody > tr > td { padding: 0; }
  table.data.orderlist > tbody > tr > td::before { display: none; }
  table.data.orderlist > tbody > tr > td:nth-child(1) { grid-column: 1; grid-row: 1; }
  table.data.orderlist > tbody > tr > td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  table.data.orderlist > tbody > tr > td:nth-child(2) { grid-column: 2; grid-row: 2; text-align: right; color: var(--muted); font-size: .85rem; }
  table.data.orderlist > tbody > tr > td:nth-child(3) { grid-column: 1; grid-row: 2; }
  table.data.orderlist > tbody > tr > td:nth-child(3) .sub { display: inline; margin-left: 6px; }
  table.data.orderlist > tbody > tr > td:nth-child(5), table.data.orderlist > tbody > tr > td:nth-child(6) { display: none; }
  table.data.orderlist > tbody > tr > td:nth-child(7) { grid-column: 1 / -1; margin-top: 4px; }
  table.data.orderlist > tbody > tr > td:nth-child(1) .sub { display: inline; margin-left: 6px; }
  .itemname .name { white-space: normal; }
  .figs-5 .fig { border-right: 0; border-bottom: 1px solid var(--line); }
  .figs-5 .fig:nth-child(odd):not(:last-child) { border-right: 1px solid var(--line); }
  .figs-5 .fig:last-child { border-bottom: 0; }
}
@media print {
  .side, .topbar, .tabbar, .scrim { display: none !important; }
  body.in-app .shell { display: block; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* 28.10.2026: language switch (DE | EN) */
.langswitch { display: inline-flex; border: 1px solid #3B4C69; border-radius: 8px; overflow: hidden; flex: none; }
.langswitch button { all: unset; cursor: pointer; padding: 4px 10px; font-size: .8rem; font-weight: 700; color: #B9C4D8; font-family: var(--font); }
.langswitch button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
.langswitch button:hover { color: #fff; }
.langswitch button:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.signbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.langswitch-top { margin-left: 0; border-color: var(--line); background: #fff; }
.langswitch-top button { color: var(--muted); padding: 6px 12px; }
.langswitch-top button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.langswitch-top button:hover { color: var(--navy); }
.langswitch-top button[aria-pressed="true"]:hover { color: #fff; }
/* 05.11.2026: "New order" sits left of the DE | EN switch (the switch is the last item on the right); without the button the switch takes the right edge */
.topnew[hidden] + .langswitch-top { margin-left: auto; }
@media (max-width: 999px) {
  .langswitch-top { border-color: #3B4C69; background: transparent; }
  .langswitch-top button { color: #B9C4D8; padding: 4px 9px; }
  .langswitch-top button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); color: #fff; }
}

/* 03.11.2026: the customer's own labels in bulk (screens-labels.js) */
.labelsection { margin-top: 2.5rem; }
.labelplan > .notice-title { margin: 1rem 0 .5rem; }
.labelplan select.input { min-width: 14rem; }
.labelplan input.input { min-width: 12.5rem; }
@media (max-width: 720px) {
  .labelplan select.input, .labelplan input.input { min-width: 0; width: 100%; }
}

/* getting-started (03.11.2026, help plan phase 0): the home card reuses the "Needs action" box; done steps are quieter */
.gs { margin-bottom: 28px; }
.gs .gs-done { padding: 10px 0; }
.gs .gs-done .action-title { color: var(--muted); font-weight: 600; }
.gs .gs-foot { margin: 4px 0 14px; }

/* startfill-help (help.js, 03.11.2026): the Help button in the top bar and the side panel */
.tophelp { margin-left: auto; }
.tophelp + .langswitch-top { margin-left: 0; }
.tophelp[hidden] { display: none; }
.tophelp-q { display: none; }
.tophelp[hidden] + .langswitch-top { margin-left: auto; }
.helppanel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(420px, 100vw); display: flex; flex-direction: column; gap: 10px; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); background: var(--panel); border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(10, 22, 40, .12); overflow: hidden; }
.helppanel[hidden] { display: none; }
.help-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.help-head h2 { margin: 0; font-size: 1.15rem; }
.help-lead, .help-note { margin: 0; color: var(--muted); font-size: .88rem; }
.help-note { border-top: 1px solid var(--line-soft); padding-top: 8px; }
.help-sugs { display: flex; flex-direction: column; gap: 6px; }
.help-sug-head { margin: 0; font-size: .82rem; font-weight: 700; color: var(--muted); }
.help-sug { text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--page); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.help-sug:hover { border-color: var(--teal); }
.help-log { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.help-msg { padding: 8px 10px; border-radius: var(--radius); }
.help-user { background: var(--info-bg); align-self: flex-end; max-width: 90%; }
.help-assistant { background: var(--page); border: 1px solid var(--line-soft); }
.help-who { margin: 0 0 2px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.help-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.help-busy { margin: 0; }
.help-form { display: flex; flex-direction: column; gap: 8px; }
.help-input { width: 100%; resize: vertical; min-height: 64px; }
.help-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .helppanel { width: 100vw; border-left: 0; }
  /* phone: a round button above the tab bar, so the top bar keeps its one row */
  .tophelp { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; border: 0; background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(10, 22, 40, .25); font-size: 1.3rem; }
  .tophelp + .langswitch-top { margin-left: auto; }
  body.help-open .tophelp { display: none; }
  .tophelp-q { display: inline; font-weight: 800; }
  .tophelp-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.help-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.help-terms h3 { margin: 0 0 4px; font-size: 1rem; }
.help-terms p { margin: 0 0 8px; font-size: .9rem; }
.helppanel .linkbtn { all: unset; color: var(--teal); text-decoration: underline; font-weight: 700; cursor: pointer; }
.helppanel .linkbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* 05.11.2026: top bar order = [Help] [New order] [DE | EN]; the language switch is the last item on the right */
.tophelp:not([hidden]) + .topnew { margin-left: 0; }
.tophelp:not([hidden]) + .topnew[hidden] + .langswitch-top { margin-left: 0; }
@media (max-width: 760px) {
  .tophelp:not([hidden]) + .topnew { margin-left: auto; }
  .tophelp:not([hidden]) + .topnew[hidden] + .langswitch-top { margin-left: auto; }
}

/* 05.11.2026: StartFill SKU picker (sku-picker.js): read-only field -> dialog with the search on top and "SKU - product name" below */
.skupick { position: relative; min-width: 0; }
.skufield { position: relative; display: block; }
.skufield::after { content: "\25BE"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.skuinput { cursor: pointer; padding-right: 30px; text-overflow: ellipsis; }
.skuname { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.skuname.is-bad { color: var(--bad-ink); }
dialog.skudialog { width: min(560px, 94vw); max-height: 80vh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: inherit; box-shadow: 0 20px 50px rgba(10, 22, 40, .35); }
dialog.skudialog[open] { display: flex; flex-direction: column; }
dialog.skudialog::backdrop { background: rgba(10, 22, 40, .5); }
.skubar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.skubar h2 { margin: 0; font-size: 1.05rem; }
.skusearchwrap { padding: 0 16px; }
.skucount { margin: 6px 16px; font-size: .8rem; }
.skulist { list-style: none; margin: 0; padding: 0 8px 12px; overflow-y: auto; flex: 1 1 auto; }
.skuopt { padding: 9px 10px; border-radius: 8px; cursor: pointer; overflow-wrap: anywhere; }
.skuopt:hover, .skuopt.is-active { background: #FFF1DC; }
.skuopt.is-current { box-shadow: inset 3px 0 0 var(--orange); }
.skuopt-sku { font-weight: 700; }
.skuopt-name { color: var(--muted); }
.skuempty { padding: 12px 10px; color: var(--muted); }
th .req { color: var(--orange-ink); }

/* startfill-help polish (05.11.2026, Jalal: "polish it in color and design a little distinct from usual stf design").
   Only selectors of the Help button and panel; appended last so it overrides the block above. Own palette (violet / aqua),
   apart from the STF navy / orange / teal. No HTML or JS change. */
.helppanel {
  --h-deep: #24145E;
  --h-violet: #6A4BEF;
  --h-violet-ink: #4B2FC9;
  --h-aqua: #22B8A8;
  --h-soft: #F3F0FF;
  --h-line: #E1DAFB;
  background: linear-gradient(180deg, #FBFAFF 0%, #FFFFFF 38%, #F6FBFB 100%);
  border-left: 0;
  border-radius: 18px 0 0 18px;
  box-shadow: -14px 0 40px rgba(36, 20, 94, .18), -1px 0 0 var(--h-line);
  gap: 12px;
}
.helppanel .help-head {
  margin: -16px -18px 0; padding: 18px 18px 16px;
  background: linear-gradient(125deg, var(--h-deep) 0%, var(--h-violet) 62%, var(--h-aqua) 130%);
  color: #fff; border-radius: 18px 0 0 0;
}
.helppanel .help-head h2 { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.12rem; letter-spacing: .01em; }
.helppanel .help-head h2::before {
  content: "✦"; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); font-size: 1rem;
}
.helppanel .help-head .iconbtn { color: #fff; background: rgba(255, 255, 255, .12); border-color: transparent; border-radius: 10px; }
.helppanel .help-head .iconbtn span { font-size: 1.45rem; line-height: 1; }
.helppanel .help-head .iconbtn:hover { background: rgba(255, 255, 255, .24); }
.helppanel .help-head .iconbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.helppanel .help-lead { color: #4A4370; font-size: .9rem; padding: 10px 12px; background: var(--h-soft); border-radius: 12px; }
.helppanel .help-sug-head { color: var(--h-violet-ink); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.helppanel .help-sug {
  border: 1px solid var(--h-line); border-radius: 999px; padding: 8px 14px; background: #fff; color: var(--h-deep);
  box-shadow: 0 1px 2px rgba(36, 20, 94, .06); transition: background .15s, border-color .15s, transform .15s;
}
.helppanel .help-sug:hover { background: var(--h-soft); border-color: var(--h-violet); transform: translateX(-2px); }
.helppanel .help-sug:focus-visible { outline: 2px solid var(--h-violet); outline-offset: 2px; }
.helppanel .help-log { gap: 12px; padding: 2px 2px 4px; }
.helppanel .help-msg { padding: 10px 13px; border-radius: 16px; }
.helppanel .help-user {
  background: linear-gradient(135deg, var(--h-violet-ink), var(--h-violet)); color: #fff; border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(75, 47, 201, .22);
}
.helppanel .help-user .help-who { color: rgba(255, 255, 255, .78); }
.helppanel .help-assistant {
  background: #fff; border: 1px solid var(--h-line); border-left: 3px solid var(--h-aqua); border-bottom-left-radius: 4px;
  box-shadow: 0 2px 10px rgba(36, 20, 94, .07); max-width: 96%;
}
.helppanel .help-assistant .help-who { color: var(--h-violet-ink); }
.helppanel .help-assistant .help-who::before { content: "✦ "; color: var(--h-aqua); }
.helppanel .help-who { text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; }
.helppanel .help-busy { color: var(--h-violet-ink); font-weight: 600; }
.helppanel .help-busy::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: help-dots 1.2s steps(4, end) infinite; }
@keyframes help-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.helppanel .help-input { border-radius: 14px; border-color: var(--h-line); background: #fff; }
.helppanel .help-input:focus { border-color: var(--h-violet); box-shadow: 0 0 0 3px rgba(106, 75, 239, .18); outline: none; }
.helppanel .btn-primary { background: linear-gradient(135deg, var(--h-violet-ink), var(--h-violet)); border-color: transparent; color: #fff; border-radius: 12px; }
.helppanel .btn-primary:hover { filter: brightness(1.08); }
.helppanel .btn-primary:disabled { filter: grayscale(.4); opacity: .7; }
.helppanel .btn-secondary { border-radius: 12px; border-color: var(--h-line); color: var(--h-deep); }
.helppanel .help-note { color: #6B668A; font-size: .78rem; border-top-color: var(--h-line); }
.helppanel .textlink, .helppanel .linkbtn { color: var(--h-violet-ink); }
.helppanel .help-terms { padding: 12px 14px; background: #fff; border: 1px solid var(--h-line); border-radius: 14px; }
/* the top-bar button: a small violet pill with the spark, so it reads as the assistant, not as a portal action */
.tophelp {
  border: 1px solid #D9D0FB; background: linear-gradient(135deg, #F6F3FF, #ECF9F7); color: #4B2FC9; font-weight: 700; border-radius: 999px;
}
.tophelp .tophelp-t::before { content: "✦ "; color: #22B8A8; }
.tophelp:hover { border-color: #6A4BEF; background: #EFEAFF; }
@media (max-width: 760px) {
  .helppanel { border-radius: 0; }
  .helppanel .help-head { border-radius: 0; }
  .tophelp { background: linear-gradient(135deg, #24145E, #6A4BEF 70%, #22B8A8); border: 0; color: #fff; box-shadow: 0 6px 18px rgba(75, 47, 201, .35); }
}
@media (prefers-reduced-motion: reduce) {
  .helppanel .help-sug { transition: none; }
  .helppanel .help-sug:hover { transform: none; }
  .helppanel .help-busy::after { animation: none; content: "..."; }
}
/* ---------------------------------------------------------------- 15.11.2026: batch hold / Charge sperren (Recall screen) */
.bhpanel { margin-top: 8px; }
.bhpanel h3 { margin: 18px 0 10px; font-size: 1.05rem; }
.bhpanel .pageactions { margin: 0 0 16px; }
.figs-hold { grid-template-columns: repeat(5, 1fr); margin-bottom: 8px; }
.bhstage { margin: 0 0 16px; }
.bhstage h4 { margin: 0 0 4px; font-size: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bhstage .quiet { margin-bottom: 8px; }
.bhlist { margin: 6px 0 0; padding-left: 20px; }
.bhlist li + li { margin-top: 4px; }
.bhdialog-body { padding: 18px 20px; }
.bhdialog-body h2 { margin: 0 0 8px; font-size: 1.15rem; }
.bhdialog-body .form-actions { margin-top: 16px; }
@media (max-width: 720px) {
  .figs-hold { grid-template-columns: repeat(2, 1fr); }
}
@media print {
  .bh-noprint, .recallpage > form.toolbar, .recallpage > .formmsg { display: none !important; }
}

/* ---------------------------------------------------------------- 060: short-dated stock */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.shortdated .pageactions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.histlist { margin: 10px 0 0; padding-left: 1.2em; }
.histlist li { margin: 2px 0; }

/* ---- 17.11.2026 polish: Reports as a set of report cards, a stock-list builder and the automatic reports side by side ---- */
.pagehead-act { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; }
.pagehead-act > h1 { flex: 1 1 auto; }
.pagehead-act > .lead { order: 3; flex: 0 0 100%; max-width: none; }
.pagehead-act > .lead { margin-top: 0; }
.pagehead-act > .btn { order: 2; margin-top: 6px; }
.grouphead { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 12px; }
.rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.rgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin: 0 0 16px; }
.rgrid2 > .panel { margin: 0; }
.rcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.rcard:hover { border-color: #C5CEDC; box-shadow: 0 6px 18px rgba(10, 22, 40, .06); }
.rcard-wide { grid-column: 1 / -1; }
.rcard-head { display: flex; gap: 12px; align-items: flex-start; }
.rcard-t { min-width: 0; }
.rcard-t h3, .rcard-t h2 { margin: 0 0 2px; font-size: 1.08rem; font-weight: 700; }
.rcard-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #FFF1E0; color: var(--orange-ink); display: inline-flex; align-items: center; justify-content: center; }
.rcard-ico .ic { width: 22px; height: 22px; }
.rcard-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rcard-range .field label { font-size: .8rem; color: var(--muted); }
.rcard-now { display: flex; align-items: center; min-height: 70px; }
.rcard-foot { margin-top: auto; display: flex; gap: 8px; }
.rcard-foot .btn { width: 100%; }
.rcard .savemsg:empty { display: none; }
.rcard-wide .toolbar { margin: 0; }
.rcard-wide .reportresult:not(:empty) { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.slpanel { border-radius: 14px; padding: 20px; }
.slpanel .rcard-head { margin-bottom: 16px; }
.slgrid { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; }
.slside { display: flex; flex-direction: column; gap: 14px; }
.inline-pick { display: flex; gap: 8px; }
.inline-pick .input { flex: 1 1 auto; }
.sltoggles { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sltoggles .check-inline { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.sltoggles input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); margin-top: 2px; flex: none; }
.sllabel { font-weight: 600; font-size: .9rem; margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px 6px 10px; font-size: .9rem; font-weight: 600; cursor: pointer; user-select: none; transition: background .12s, border-color .12s; }
.chip:hover { border-color: #AEB9CB; }
.chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
.chip:has(input:checked) { background: var(--mint); border-color: #9FD4BE; color: #0C5A51; }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.slmanage { margin: 18px 0 0; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.slmanage > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--teal); width: max-content; }
.slmanage[open] > summary { margin-bottom: 10px; }
.slmanage .toolbar { margin: 0 0 10px; }
.slfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.slfoot > .quiet { margin-right: auto; }
@media (max-width: 1100px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .rgrid2, .slgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .rgrid { grid-template-columns: minmax(0, 1fr); } .rcard-range { grid-template-columns: 1fr; } .slfoot > .quiet { flex-basis: 100%; } .slfoot .btn { flex: 1 1 auto; } }

/* ================================================================ 076 filling order (18.11.2026): form, order page, entry cards
   Same palette as the rest of the portal; ingredient colours fo-seg-0..7 are used for the recipe bar, its legend and the numbers. */
.fo { --fo-shadow: 0 1px 2px rgba(10, 22, 40, .06), 0 8px 24px -12px rgba(10, 22, 40, .18); padding-bottom: 32px; }
.fo-head { margin: 24px 0 18px; }
.fo-backlink { display: inline-block; font-size: .9rem; font-weight: 600; text-decoration: none; margin-bottom: 8px; }
.fo-title { margin: 0; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.fo-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fo-no { font: 600 .85rem/1 var(--mono); color: var(--muted); background: #EEF1F6; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; letter-spacing: 0; }
.fo-lead { max-width: 70ch; }
.fo-eyebrow { margin: 0 0 4px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.fo-h2 { font-size: 1.2rem; margin: 0 0 14px; letter-spacing: -.01em; }

/* stepper */
.fo-stepper { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; counter-reset: fo; }
.fo-step { position: relative; }
.fo-stepbtn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--panel);
  font: inherit; color: var(--muted); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, background .15s; min-height: 52px; }
.fo-stepbtn:hover { border-color: #AEB9CC; color: var(--ink); }
.fo-stepnum { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem;
  background: #EEF1F6; color: var(--muted); border: 1.5px solid var(--line); }
.fo-steplabel { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.fo-step.is-current .fo-stepbtn { border-color: var(--navy); color: var(--ink); box-shadow: var(--fo-shadow); }
.fo-step.is-current .fo-stepnum { background: var(--navy); border-color: var(--navy); color: #fff; }
.fo-step.is-done .fo-stepnum { background: var(--mint); border-color: #9FD6BC; color: var(--teal); }
.fo-step.is-bad .fo-stepnum { background: var(--bad-bg); border-color: #F0B8B3; color: var(--bad-ink); }
.fo-step.is-bad .fo-stepbtn { border-color: #F0B8B3; }

/* layout: form + sticky summary */
.fo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.fo-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.fo-aside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.fo-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; box-shadow: var(--fo-shadow); display: flex; flex-direction: column; gap: 22px; }
.fo-card-head { border-bottom: 1px solid var(--line-soft); padding-bottom: 16px; }
.fo-card-title { margin: 0; font-size: 1.5rem; letter-spacing: -.01em; }
.fo-card-lead { margin: 4px 0 0; color: var(--muted); }
.fo-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fo-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; align-items: start; }
.fo-grid2 .span2, .fo-grid3 .span2 { grid-column: span 2; }
.fo-field .input { transition: border-color .15s, box-shadow .15s; }
.fo-field .input:hover { border-color: #5E6C86; }
.fo-field textarea.input { padding: 10px 12px; min-height: 84px; resize: vertical; }
.fo-suffix { display: flex; align-items: stretch; }
.fo-suffix .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.fo-unit { display: inline-flex; align-items: center; padding: 0 12px; border: 1.5px solid #8A97AE; border-left: 0; border-radius: 0 8px 8px 0; background: #F2F4F8; font-weight: 700; color: var(--muted); }
.fo-err { margin: 2px 0 0; color: var(--bad-ink); font-size: .85rem; font-weight: 600; }
.has-error > .input, .has-error .fo-suffix .input, .has-error > select.input { border-color: var(--bad-ink); box-shadow: 0 0 0 3px rgba(163, 32, 26, .12); }
.has-error.fo-choices .fo-choice, .has-error .fo-choice { border-color: #E6A39E; }
.fo-tip { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--info-bg); color: var(--info-ink); font-size: .9rem; border-left: 4px solid #7DA5DC; }

/* choice cards */
.fo-choices, .fo-chips, .fo-box { border: 0; padding: 0; margin: 0; min-width: 0; }
.fo-box { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 18px; }
.fo-legend { font-weight: 700; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.fo-choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.cols2 .fo-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols3 .fo-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols4 .fo-choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fo-choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .15s; min-height: 64px; }
.compact .fo-choice { padding: 10px 12px; min-height: 48px; }
.fo-choice:hover { border-color: #AEB9CC; transform: translateY(-1px); }
.fo-choice-input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border-radius: 50%; border: 2px solid #8A97AE; background: #fff; display: grid; place-content: center; cursor: pointer; }
.fo-choice-input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .12s; }
.fo-choice-input:checked { border-color: var(--orange); }
.fo-choice-input:checked::before { transform: scale(1); }
.fo-choice-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fo-choice:has(.fo-choice-input:checked) { border-color: var(--orange); background: #FFF8EE; box-shadow: 0 0 0 3px rgba(255, 140, 0, .14); }
.fo-choice.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }
.fo-choice-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fo-choice-title { font-weight: 700; line-height: 1.25; }
.fo-choice-text { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.fo-badge { align-self: flex-start; display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; background: var(--mint); color: var(--teal); }

/* chips */
.fo-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: .9rem; font-weight: 600;
  transition: border-color .15s, background .15s, color .15s; min-height: 38px; }
.fo-chip:hover { border-color: #AEB9CC; }
.fo-chip-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fo-chip:has(.fo-chip-input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.fo-chip:has(.fo-chip-input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.fo-chip-badge { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }

/* ingredient cards */
.fo-ings { display: flex; flex-direction: column; gap: 16px; }
.fo-ing { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 18px; background: linear-gradient(180deg, #FBFCFE 0, #fff 60px); }
.fo-ing-head { display: flex; align-items: center; gap: 12px; }
.fo-ing-num { flex: none; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.fo-ing-title { margin: 0; font-size: 1.05rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-ing-remove { color: var(--bad-ink); }
.fo-filler-box { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.fo-filler-box input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.fo-filler-box label { font-weight: 600; }
.fo-more { border-top: 1px dashed var(--line); padding-top: 12px; }
.fo-more > summary { cursor: pointer; font-weight: 700; color: var(--teal); font-size: .9rem; }
.fo-more[open] > summary { margin-bottom: 14px; }
.fo-allergens { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #F8FAFC; border: 1px solid var(--line-soft); }
.fo-add { align-self: flex-start; font: inherit; font-weight: 700; color: var(--teal); background: #fff; border: 2px dashed #9FD6BC; border-radius: 12px; padding: 12px 18px; cursor: pointer; min-height: 48px; }
.fo-add:hover { background: var(--mint); }
.fo-confirm { padding: 14px 16px; border-radius: 12px; background: #FFF8EE; border: 1px solid #F2CF9A; }

/* ingredient colours */
.fo-seg-0 { background: #13756A; } .fo-seg-1 { background: #FF8C00; } .fo-seg-2 { background: #1D4F91; } .fo-seg-3 { background: #B5446E; }
.fo-seg-4 { background: #6B8E23; } .fo-seg-5 { background: #7A5AB8; } .fo-seg-6 { background: #C0841A; } .fo-seg-7 { background: #2E8BC0; }
.fo-bar { display: flex; width: 100%; height: 14px; border-radius: 7px; overflow: hidden; margin: 6px 0 8px; background: #E4E8EF; }
.fo-barseg { display: block; height: 100%; flex: none; }
.fo-barseg + .fo-barseg { box-shadow: inset 2px 0 0 rgba(255, 255, 255, .55); }
.fo-w-0 { width: 0%; } .fo-w-1 { width: 1%; } .fo-w-2 { width: 2%; } .fo-w-3 { width: 3%; } .fo-w-4 { width: 4%; } .fo-w-5 { width: 5%; } .fo-w-6 { width: 6%; } .fo-w-7 { width: 7%; } .fo-w-8 { width: 8%; } .fo-w-9 { width: 9%; } .fo-w-10 { width: 10%; } .fo-w-11 { width: 11%; } .fo-w-12 { width: 12%; } .fo-w-13 { width: 13%; } .fo-w-14 { width: 14%; } .fo-w-15 { width: 15%; } .fo-w-16 { width: 16%; } .fo-w-17 { width: 17%; } .fo-w-18 { width: 18%; } .fo-w-19 { width: 19%; } .fo-w-20 { width: 20%; } .fo-w-21 { width: 21%; } .fo-w-22 { width: 22%; } .fo-w-23 { width: 23%; } .fo-w-24 { width: 24%; } .fo-w-25 { width: 25%; } .fo-w-26 { width: 26%; } .fo-w-27 { width: 27%; } .fo-w-28 { width: 28%; } .fo-w-29 { width: 29%; } .fo-w-30 { width: 30%; } .fo-w-31 { width: 31%; } .fo-w-32 { width: 32%; } .fo-w-33 { width: 33%; } .fo-w-34 { width: 34%; } .fo-w-35 { width: 35%; } .fo-w-36 { width: 36%; } .fo-w-37 { width: 37%; } .fo-w-38 { width: 38%; } .fo-w-39 { width: 39%; } .fo-w-40 { width: 40%; } .fo-w-41 { width: 41%; } .fo-w-42 { width: 42%; } .fo-w-43 { width: 43%; } .fo-w-44 { width: 44%; } .fo-w-45 { width: 45%; } .fo-w-46 { width: 46%; } .fo-w-47 { width: 47%; } .fo-w-48 { width: 48%; } .fo-w-49 { width: 49%; } .fo-w-50 { width: 50%; } .fo-w-51 { width: 51%; } .fo-w-52 { width: 52%; } .fo-w-53 { width: 53%; } .fo-w-54 { width: 54%; } .fo-w-55 { width: 55%; } .fo-w-56 { width: 56%; } .fo-w-57 { width: 57%; } .fo-w-58 { width: 58%; } .fo-w-59 { width: 59%; } .fo-w-60 { width: 60%; } .fo-w-61 { width: 61%; } .fo-w-62 { width: 62%; } .fo-w-63 { width: 63%; } .fo-w-64 { width: 64%; } .fo-w-65 { width: 65%; } .fo-w-66 { width: 66%; } .fo-w-67 { width: 67%; } .fo-w-68 { width: 68%; } .fo-w-69 { width: 69%; } .fo-w-70 { width: 70%; } .fo-w-71 { width: 71%; } .fo-w-72 { width: 72%; } .fo-w-73 { width: 73%; } .fo-w-74 { width: 74%; } .fo-w-75 { width: 75%; } .fo-w-76 { width: 76%; } .fo-w-77 { width: 77%; } .fo-w-78 { width: 78%; } .fo-w-79 { width: 79%; } .fo-w-80 { width: 80%; } .fo-w-81 { width: 81%; } .fo-w-82 { width: 82%; } .fo-w-83 { width: 83%; } .fo-w-84 { width: 84%; } .fo-w-85 { width: 85%; } .fo-w-86 { width: 86%; } .fo-w-87 { width: 87%; } .fo-w-88 { width: 88%; } .fo-w-89 { width: 89%; } .fo-w-90 { width: 90%; } .fo-w-91 { width: 91%; } .fo-w-92 { width: 92%; } .fo-w-93 { width: 93%; } .fo-w-94 { width: 94%; } .fo-w-95 { width: 95%; } .fo-w-96 { width: 96%; } .fo-w-97 { width: 97%; } .fo-w-98 { width: 98%; } .fo-w-99 { width: 99%; } .fo-w-100 { width: 100%; }
.fo-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* footer (sticky at the bottom of the form) */
.fo-footer { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -4px 20px -12px rgba(10, 22, 40, .3); }
.fo-footer-mid { flex: 1; text-align: center; }
.fo-saved { color: var(--muted); font-size: .85rem; }
.fo-send { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.fo-send:hover { background: #F07F00; border-color: #F07F00; }

/* summary card */
.fo-sum { background: var(--navy); color: #fff; border-radius: 16px; padding: 20px 22px; box-shadow: var(--fo-shadow); }
.fo-sum-eyebrow { margin: 0 0 6px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #FFB867; }
.fo-sum-product { margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.fo-sum-meta { margin: 2px 0 0; color: #B9C4D8; font-size: .9rem; }
.fo-sum-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 14px 0 0; font-size: .9rem; }
.fo-sum-dl dt { color: #B9C4D8; }
.fo-sum-dl dd { margin: 0; font-weight: 700; text-align: right; }
.fo-sum-h { margin: 16px 0 4px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #B9C4D8; }
.fo-sum .fo-bar { background: rgba(255, 255, 255, .14); }
.fo-legend-list, .fo-needs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.fo-legend-list li, .fo-needs li { display: flex; align-items: center; gap: 8px; }
.fo-legend-list li > span:nth-child(2), .fo-needs li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-legend-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.fo-needs strong { font-variant-numeric: tabular-nums; }
.fo-sum-note { margin: 6px 0 0; font-size: .78rem; color: #8E9BB3; }
.fo-sum-warn { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 140, 0, .14); border: 1px solid rgba(255, 184, 103, .45); font-size: .84rem; color: #FFE3BF; }
.fo-sum-warn p { margin: 0; } .fo-sum-warn p + p { margin-top: 6px; }
.fo-sum-progress { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; font-weight: 700; color: #FFD29A; }
.fo-sum-progress.is-ready { color: #8EE0BE; }
.fo-sum-progress-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.fo-sum-help { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; font-size: .88rem; color: var(--muted); }
.fo-sum-help .fo-sum-h { color: var(--ink); margin-top: 0; }
.fo-sum-help ol { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* review summary */
.fo-summary { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fo-sum-sec { padding: 14px 18px; }
.fo-sum-sec + .fo-sum-sec { border-top: 1px solid var(--line-soft); }
.fo-sum-sec h3 { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }
.fo-facts { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 6px 16px; margin: 0; font-size: .93rem; }
.fo-facts dt { color: var(--muted); }
.fo-facts dd { margin: 0; font-weight: 600; }
.fo-sum-ings { display: flex; flex-direction: column; gap: 12px; }
.fo-sum-ing-name { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 800; }
.fo-sum-ing-name .fo-badge { margin: 0; }
.fo-sum-send { background: #FFF8EE; }
.fo-sum-send ul { margin: 0; padding-left: 20px; }

/* order page */
.fo-timeline { list-style: none; margin: 0 0 18px; padding: 16px 20px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.fo-tl { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted); font-weight: 700; font-size: .88rem; }
.fo-tl::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.fo-tl:first-child::before { display: none; }
.fo-tl.is-done::before { background: var(--teal); }
.fo-tl-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.fo-tl.is-done { color: var(--ink); }
.fo-tl.is-done .fo-tl-dot { border-color: var(--teal); background: var(--teal); }
.fo-tl.is-now .fo-tl-dot { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 5px rgba(255, 140, 0, .18); }
.fo-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.fo-quote { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: var(--fo-shadow); display: flex; flex-direction: column; gap: 14px; }
.fo-quote.is-open { border: 2px solid var(--orange); }
.fo-quote-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fo-quote-total { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fo-quote-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fo-quote-table th, .fo-quote-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.fo-quote-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fo-quote-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fo-quote-table tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--navy); }
.fo-quote-note { margin: 0; padding: 10px 12px; background: #F8FAFC; border-radius: 10px; white-space: pre-wrap; }
.fo-quote-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.fo-quote-reject { display: flex; gap: 8px; flex: 1 1 320px; }
.fo-quote-reject .input { flex: 1; }
.fo-owner-only { margin: 0; }
.fo-conv { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.fo-thread { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fo-msg { max-width: 82%; padding: 12px 14px; border-radius: 14px; }
.fo-msg-customer { align-self: flex-end; background: #EEF3FA; border-bottom-right-radius: 4px; }
.fo-msg-startfill { align-self: flex-start; background: #F6F8FB; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.fo-msg.is-question { background: #FFF8EE; border-color: #F2CF9A; }
.fo-msg-meta { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.fo-msg-meta .fo-badge { margin: 0; background: var(--warn-bg); color: var(--warn-ink); }
.fo-msg-body { margin: 0; white-space: pre-wrap; }
.fo-reply { display: flex; flex-direction: column; gap: 10px; }
.fo-reply textarea.input { padding: 10px 12px; min-height: 90px; }
.fo-detail { gap: 14px; }
.fo-older > summary { cursor: pointer; font-weight: 700; color: var(--teal); }
.fo-older[open] > summary { margin-bottom: 12px; }

/* entry cards on the Filling page */
.fo-entries { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin: 0 0 24px; }
.fo-entry { border-radius: 18px; padding: 24px 26px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border: 1px solid var(--line); background: var(--panel); }
.fo-entry-new { background: linear-gradient(135deg, var(--navy) 0, var(--navy-2) 100%); border-color: var(--navy); color: #fff; box-shadow: 0 14px 34px -18px rgba(10, 22, 40, .7); }
.fo-entry-new .fo-eyebrow { color: #FFB867; }
.fo-entry-new .fo-entry-text { color: #C6D0E2; }
.fo-entry-new .btn-primary { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.fo-entry-new .btn-primary:hover { background: #F07F00; border-color: #F07F00; }
.fo-entry-title { margin: 0; font-size: 1.35rem; letter-spacing: -.01em; }
.fo-entry-text { margin: 0 0 12px; color: var(--muted); max-width: 52ch; }
.fo-entry .btn { margin-top: auto; }

@media (max-width: 999px) {
  .fo-layout { grid-template-columns: 1fr; }
  .fo-aside { position: static; order: -1; }
  .fo-stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols4 .fo-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .fo-card { padding: 18px 16px; border-radius: 14px; }
  .fo-stepper { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .fo-steplabel { display: none; }
  .fo-stepbtn { justify-content: center; padding: 8px 4px; min-height: 44px; }
  .fo-grid2, .fo-grid3, .cols2 .fo-choice-grid, .cols3 .fo-choice-grid { grid-template-columns: 1fr; }
  .fo-grid2 .span2, .fo-grid3 .span2 { grid-column: auto; }
  .fo-entries { grid-template-columns: 1fr; }
  .fo-timeline { grid-template-columns: repeat(4, 1fr); padding: 14px 8px; }
  .fo-msg { max-width: 100%; }
  .fo-footer { flex-wrap: wrap; } .fo-footer-mid { order: -1; flex-basis: 100%; }
  .fo-facts { grid-template-columns: 1fr; gap: 0 0; } .fo-facts dd { margin-bottom: 6px; }
}
@media print { .fo-stepper, .fo-footer, .fo-aside, .fo-actions, .fo-reply { display: none; } }
