/* The Bonnot portal. Every colour is a token here; nothing below uses a hex. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); }

:root {
  --navy: #102e48; --navy-2: #1c4466; --navy-ink: #0b2236;
  --gold: #f2b705; --gold-soft: #fff6d6; --gold-ink: #6b5100;
  --bg: #f5f7fa; --surface: #ffffff; --line: #e3e8ef; --line-2: #d3dbe5;
  --ink: #15202b; --ink-2: #4a5866; --ink-3: #7a8794;
  --on-navy: #ffffff; --ok: #1f7a4d; --ok-soft: #e6f4ec; --info-soft: #e9f0f8;
  --shadow: 0 1px 2px rgba(16, 46, 72, .06), 0 4px 16px rgba(16, 46, 72, .05);
  --shadow-up: 0 2px 4px rgba(16, 46, 72, .08), 0 10px 28px rgba(16, 46, 72, .10);
  --r: 14px; --r-sm: 9px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--navy-2); }
h1, h2 { color: var(--navy-ink); letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: var(--r-sm); z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo { height: 30px; width: auto; display: block; }
.wordmark { font-weight: 700; font-size: 22px; height: auto; }
.brand-sub { font-size: 13px; color: var(--ink-3); padding-left: 12px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.nav { display: flex; gap: 2px; flex: 1; flex-wrap: nowrap; min-width: 0; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 8px 10px; border-radius: var(--r-sm); white-space: nowrap; }
.nav a:hover { background: var(--bg); color: var(--navy); }
.nav a.on { color: var(--navy); background: var(--info-soft); }
.acct { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.acct-who { display: flex; flex-direction: column; text-align: right; line-height: 1.25; }
.acct-name { font-weight: 600; font-size: 14px; }
.acct-mail { font-size: 12px; color: var(--ink-3); }

/* view-as banner */
.banner { background: var(--navy); color: var(--on-navy); font-size: 14px; }
.banner.test { background: var(--gold-soft); color: var(--gold-ink); border-bottom: 1px solid var(--gold); }
.banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.banner form { margin: 0; }
.banner-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner-note { opacity: .85; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border: 0; border-radius: var(--r-sm); background: var(--navy); color: var(--on-navy); font: 600 15px/1 Inter, system-ui, sans-serif; padding: 12px 20px; min-height: 44px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-2); }
.btn.big { font-size: 17px; padding: 16px 36px; min-height: 54px; }
.btn.small { font-size: 14px; padding: 8px 14px; min-height: 36px; }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--bg); }
.btn.ghost-light { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* page */
.main { flex: 1; padding-top: 40px; padding-bottom: 64px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 30px; margin: 0 0 4px; }
.page-head .sub { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 760px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; padding: 28px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s, border-color .15s; }
.tile:hover { box-shadow: var(--shadow-up); transform: translateY(-2px); border-color: var(--line-2); }
.tile h2 { font-size: 20px; margin: 14px 0 6px; }
.tile p { margin: 0 0 18px; color: var(--ink-2); flex: 1; }
.tile .more { color: var(--navy-2); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.ic-tile { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--info-soft); color: var(--navy); }
.ic-lg { width: 60px; height: 60px; padding: 14px; border-radius: 50%; background: var(--info-soft); color: var(--navy); }
.empty, .msg { text-align: center; padding: 56px 32px; max-width: 640px; margin: 0 auto; }
.empty h2, .msg h1 { font-size: 22px; margin: 18px 0 8px; }
.empty p, .msg p { color: var(--ink-2); margin: 0 auto 14px; max-width: 480px; }
.msg { margin-top: 24px; }
.fine { font-size: 14px; color: var(--ink-3); }

/* staff list */
.search { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; margin-bottom: 20px; color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 16px; padding: 10px 0; color: var(--ink); background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--navy-2); }
.table-card { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tbl .act { text-align: right; }
.tbl form { margin: 0; }
.co-name { font-weight: 600; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.tag.customer { background: var(--info-soft); color: var(--navy); }
.tag.supplier { background: var(--ok-soft); color: var(--ok); }
.tag.test { background: var(--gold-soft); color: var(--gold-ink); }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink-3); }
.foot-in { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.foot-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; }   /* Report a problem (2 Nov 2026) */
/* Agreements (2 Nov 2026): the list row's right-hand side */
.row-side { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* welcome (public) */
.welcome-body { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 60%); }
.welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; gap: 36px; }
.welcome-card { text-align: center; max-width: 620px; }
.logo-lg { height: 52px; width: auto; display: inline-block; margin-bottom: 28px; }
.logo-lg.wordmark { font-size: 40px; font-weight: 800; color: var(--navy); }
.welcome-card h1 { font-size: 38px; line-height: 1.15; margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 30px; }
.welcome-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 900px; width: 100%; }
.welcome-points li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; font-size: 15px; color: var(--ink-2); }
.welcome-points .ic { color: var(--navy); margin-top: 2px; }
.welcome-points strong { display: block; color: var(--ink); }
.welcome-foot { font-size: 14px; color: var(--ink-3); text-align: center; margin: 0; }
.signin-card { width: 100%; max-width: 480px; padding: 36px 36px 30px; text-align: left; }
.signin-card .logo-lg { margin-bottom: 22px; }
.signin-card h1 { font-size: 28px; margin: 0 0 10px; }
.signin-card .lead { font-size: 16px; margin: 0 0 20px; }
.signin-form { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.signin-form label { font-weight: 600; font-size: 15px; }
.signin-form input { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); min-height: 50px; }
.signin-form input#code { font-size: 26px; letter-spacing: 8px; font-variant-numeric: tabular-nums; }
.signin-form input:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px var(--info-soft); }
/* Request access (2 Nov 2026): the same form with a short textarea */
.signin-form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); resize: vertical; }
.signin-form textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px var(--info-soft); }
.signin-form .btn { margin-top: 8px; width: 100%; }
.signin-msg { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); font-size: 15px; margin: 0 0 14px; }
.signin-msg.err { background: var(--gold-soft); color: var(--gold-ink); }
.signin-msg.ok { background: var(--ok-soft); color: var(--ok); }
.signin-msg .ic-sm { flex: none; margin-top: 3px; }
.signin-alt { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.signin-alt form { margin: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-2); text-decoration: underline; cursor: pointer; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top-in { gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
  .brand-sub { display: none; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; margin: 0 -8px; }
  .nav a { white-space: nowrap; }
  .acct-who { display: none; }
  .main { padding-top: 26px; }
  .page-head h1 { font-size: 25px; }
  .tile { padding: 22px; }
  .empty, .msg { padding: 40px 20px; }
  .welcome-card h1 { font-size: 29px; }
  .welcome-points { grid-template-columns: 1fr; }
  .signin-card { padding: 26px 20px 22px; }
  .tbl th:nth-child(3), .tbl td:nth-child(3), .tbl th:nth-child(4), .tbl td:nth-child(4), .tbl th:nth-child(5), .tbl td:nth-child(5) { display: none; }
}

/* ---- build steps 2, 5, 6 (2 Oct 2026) ---- */
:root { --warn: #8a5a00; --warn-soft: #fff4dc; --bad: #a3261a; --bad-soft: #fdecea; }
.muted { color: var(--ink-3); }
.h-sub { font-weight: 500; font-size: .7em; }
.crumbs { font-size: 14px; color: var(--ink-3); margin: -12px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--line-2); }
.flash { display: flex; gap: 8px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-sm); margin: 0 0 18px; font-size: 15px; }
.flash.ok { background: var(--ok-soft); color: var(--ok); } .flash.err { background: var(--bad-soft); color: var(--bad); } .flash.warn { background: var(--warn-soft); color: var(--warn); }
.ro-note { margin: -8px 0 16px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); } .chip.bad { background: var(--bad-soft); color: var(--bad); }
.pad { padding: 22px 24px; margin-bottom: 20px; }
.pad h2 { font-size: 19px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.callout { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft), var(--shadow); }
section.callout:not(.pad) { padding: 18px 22px; margin-bottom: 24px; }
.callout h2 { font-size: 18px; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.plain { list-style: none; padding: 0; margin: 0; } .plain li { padding: 5px 0; }
.links li { padding: 7px 0; } .links a, .linkbtn { display: inline-flex; gap: 8px; align-items: center; color: var(--navy-2); text-decoration: none; font: inherit; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; } .linkbtn:hover, .links a:hover { text-decoration: underline; }
.linkbtn[disabled] { opacity: .45; cursor: not-allowed; text-decoration: none; }
.links form { margin: 0; }
.sec-title { font-size: 19px; margin: 34px 0 12px; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.proj { display: block; padding: 22px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.proj:hover { box-shadow: var(--shadow-up); transform: translateY(-2px); }
.proj-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.proj h2 { font-size: 18px; margin: 0 0 4px; } .proj p { margin: 0 0 6px; }
.proj-stage { font-weight: 600; color: var(--navy); font-size: 15px; margin-top: 8px !important; }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 12px; }
.bar span { display: block; height: 100%; background: var(--navy-2); border-radius: 99px; }
.w-0 { width: 0 } .w-10 { width: 10% } .w-20 { width: 20% } .w-30 { width: 30% } .w-40 { width: 40% } .w-50 { width: 50% } .w-60 { width: 60% } .w-70 { width: 70% } .w-80 { width: 80% } .w-90 { width: 90% } .w-100 { width: 100% }
.list { overflow: hidden; } .row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 52px; }
.row:last-child { border-bottom: 0; } .row:hover { background: var(--bg); } .row-main { flex: 1; min-width: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; position: relative; color: var(--ink-3); }
.tl li::before { content: ''; position: absolute; left: 12px; top: 29px; bottom: -9px; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; z-index: 1; }
.tl-done { color: var(--ink); } .tl-done .tl-dot { background: var(--ok); border-color: var(--ok); color: var(--on-navy); } .tl-done::before { background: var(--ok) !important; }
.tl-next { color: var(--navy); font-weight: 600; } .tl-next .tl-dot { border-color: var(--navy-2); box-shadow: 0 0 0 4px var(--info-soft); }
.tl-date { font-size: 13px; color: var(--ink-3); font-weight: 400; white-space: nowrap; }
.updates { list-style: none; padding: 0; margin: 0; } .updates li { padding: 12px 0; border-bottom: 1px solid var(--line); } .updates li:last-child { border-bottom: 0; }
.updates p { margin: 2px 0 4px; white-space: pre-line; } .u-date { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.qa { list-style: none; padding: 0; margin: 14px 0 0; } .qa li { border-top: 1px solid var(--line); padding: 12px 0; } .qa p { margin: 0 0 6px; white-space: pre-line; }
.qa .a { background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; }
/* support-agent stage 2 (2 Nov 2026): an answer the support agent wrote, and the asker's Was this helpful / Ask a person */
.agent-a { border-left: 3px solid var(--line); }
.fb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 2px; }
.fb-form { display: inline; margin: 0; }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.round { border-top: 1px solid var(--line); padding: 14px 0 4px; } .round:first-of-type { border-top: 0; padding-top: 4px; }
.round-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.round h3, .req h3 { font-size: 16px; margin: 0; display: flex; gap: 8px; align-items: center; } .round p { margin: 6px 0; }
.note { background: var(--bg); padding: 10px 12px; border-radius: var(--r-sm); white-space: pre-line; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px !important; }
.lead-sm { color: var(--ink-2); max-width: 760px; margin: 0 0 18px; }
.stack { display: flex; flex-direction: column; gap: 8px; } .stack label { font-weight: 600; font-size: 15px; } .stack p { margin: 6px 0 0; }
.stack input:not([type=checkbox]):not([type=radio]), .stack textarea, .row-form input, .inline-form input, .qty input {
  font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); width: 100%; }
.stack input:focus, .stack textarea:focus, .qty input:focus, .row-form input:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px var(--info-soft); }
.stack input[disabled], .stack textarea[disabled], .qty input[disabled], .row-form input[disabled] { background: var(--bg); }
fieldset { border: 0; padding: 0; margin: 0 0 6px; } legend { font-weight: 600; margin-bottom: 6px; }
.radio, .check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; padding: 8px 0; cursor: pointer; }
.radio input, .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.check.small { font-size: 14px; padding: 0; }
.narrow { max-width: 680px; }
.sign { border-color: var(--navy-2); }
.viewer-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.viewer { overflow: hidden; } .viewer iframe { display: block; width: 100%; height: 76vh; min-height: 480px; border: 0; background: var(--bg); }
.viewer-links { margin: 0; padding: 10px 16px; font-size: 14px; border-top: 1px solid var(--line); }
.decide { position: sticky; top: 16px; }
.pager { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; margin-top: 18px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.g-img, .g-file { display: flex; flex-direction: column; gap: 8px; padding: 10px; text-decoration: none; color: inherit; font-size: 14px; }
.g-img img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--r-sm); background: var(--bg); }
.g-file { align-items: flex-start; padding: 16px; }
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; } .toolbar .search { flex: 1; min-width: 260px; margin: 0; }
.parts { width: 100%; border-collapse: collapse; font-size: 15px; }
.parts th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.parts td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.parts tr:last-child td { border-bottom: 0; } .parts .num { text-align: right; color: var(--ink-2); } .parts .act { text-align: right; }
.pn { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.qty { width: 120px; } .qty input { width: 90px; padding: 8px 10px; }
.lvl-2 td:nth-child(2) { padding-left: 30px; } .lvl-3 td:nth-child(2) { padding-left: 46px; } .lvl-4 td:nth-child(2) { padding-left: 62px; }
.lvl-2, .lvl-3, .lvl-4 { color: var(--ink-2); }
.sticky-act { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; margin: 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; z-index: 2; }
.row-form { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin: 0; } .row-form input { width: 180px; padding: 7px 10px; font-size: 14px; }
.inline-form { flex-direction: row; max-width: 520px; margin: 14px auto 0; }
.req { margin-bottom: 16px; }
@media (max-width: 900px) {
  .two, .viewer-wrap { grid-template-columns: 1fr; }
  .col-side { order: -1; } .decide { position: static; }
  .viewer iframe { height: 62vh; min-height: 360px; }
}
@media (max-width: 760px) {
  .pad { padding: 18px 16px; }
  .parts thead { display: none; } .parts tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .parts td { border: 0; padding: 2px 0 !important; } .parts td.qty { grid-row: 1 / span 3; grid-column: 2; align-self: center; width: auto; }
  .parts td.num::before { content: 'Per machine: '; } .parts.models td.act { grid-column: 1 / -1; text-align: left; }
  .row-form { justify-content: flex-start; } .row-form input { width: 100%; }
  .toolbar .search { min-width: 0; width: 100%; }
}
/* ---- My machines and a machine's page (11 Oct 2026, feature/portal-machine) ---- */
.sec-title.first { margin-top: 0; }
.m-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.m-thumb { width: 120px; height: 90px; object-fit: contain; border-radius: var(--r-sm); background: var(--bg); display: block; }
.m-nopic { display: flex; align-items: center; justify-content: center; color: var(--ink-3); background: var(--bg); border-radius: var(--r-sm); }
.m-nopic.big { flex-direction: column; gap: 8px; min-height: 220px; }
.m-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 24px; align-items: start; margin-bottom: 24px; }
.m-hero h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; color: var(--navy-ink); }
.m-hero .sub { color: var(--ink-2); margin: 0 0 14px; }
.m-pic { margin: 0; padding: 14px; }
.m-pic img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; }
.m-pic figcaption { margin: 8px 2px 0; }
.inprog { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); border: 1px solid #f1d9a6; margin: 0 0 14px; }
.inprog .ic { flex: none; margin-top: 2px; } .inprog strong { display: block; font-size: 17px; } .inprog span { color: var(--ink); } .inprog b { color: var(--navy-ink); }
.dwg-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.dwg-list li:first-child { border-top: 0; padding-top: 2px; }
.dwg-ic { color: var(--navy-2); } .dwg-main { display: flex; flex-direction: column; min-width: 0; } .dwg-main .muted { font-size: 14px; overflow-wrap: anywhere; }
.dwg-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.spec-h { font-size: 15px; margin: 18px 0 6px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th { text-align: left; font-weight: 600; color: var(--ink-2); width: 38%; padding: 8px 12px 8px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec td { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec-form { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; font-weight: 500 !important; background: var(--surface); }
.cat input { width: 20px; height: 20px; flex: none; accent-color: var(--navy); }
.cat:has(input:checked) { border-color: var(--navy-2); box-shadow: 0 0 0 3px var(--info-soft); background: var(--info-soft); }
.stack input[type=file] { font: inherit; font-size: 15px; }
@media (max-width: 900px) {
  .m-hero { grid-template-columns: 1fr; } .m-pic { order: -1; }
}
@media (max-width: 760px) {
  .m-card { grid-template-columns: 84px minmax(0, 1fr); } .m-thumb { width: 84px; height: 64px; }
  .m-hero h1 { font-size: 24px; }
  .cat-grid { grid-template-columns: 1fr; }
  .dwg-list li { grid-template-columns: 24px minmax(0, 1fr); } .dwg-act { grid-column: 2; justify-content: flex-start; }
  .spec th { width: 45%; }
}
/* ---- a customer's sites (11 Oct 2026, feature/portal-sites): the group's machines divided by site ---- */
.site-h { display: flex; align-items: center; gap: 8px; } .site-h .ic { color: var(--navy-2); }
.h-count { font-size: 14px; font-weight: 500; }
.site-tag { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; margin: 2px 0 6px !important; }
/* ---- the lightbox (11 Oct 2026, feature/portal-lightbox; public/lightbox.js) ---- */
html.lb-on { overflow: hidden; }
dialog.lb { padding: 0; border: 0; border-radius: var(--r); width: min(1280px, 96vw); height: 92vh; max-width: 96vw; max-height: 92vh;
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(11, 34, 54, .35); overflow: hidden; }
dialog.lb[open] { display: flex; flex-direction: column; }
dialog.lb::backdrop { background: rgba(11, 34, 54, .72); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lb-title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 200px; }
.lb-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lb-act [hidden] { display: none; }
.lb-body { flex: 1; min-height: 0; background: var(--bg); display: flex; }
.lb-body iframe { flex: 1; width: 100%; height: 100%; border: 0; background: var(--bg); }
.lb-body.lb-image { background: #1b2733; align-items: center; justify-content: center; padding: 12px; }
.lb-body.lb-image img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: var(--r-sm); }
.m-pic a { display: block; cursor: zoom-in; }
@media (max-width: 760px) {
  dialog.lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .lb-tab { display: none; }
}
/* ---- documents on request (12 Oct 2026, feature/portal-docs-auto) ---- */
.sec-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head-row h2 { margin-bottom: 8px; }
.doc-count { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.on-request { margin-top: 22px; }
.req-lines li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.req-lines li:first-child { border-top: 0; }
.rq-main { min-width: 0; }
.rq-form { margin: 0; flex: none; }

/* ---- portal-hub (13 Oct 2026): machine page as the hub, Documents search, Home dashboard ---- */
.hub-sec { margin-bottom: 18px; } .hub-sec h2 { margin-top: 0; }
.dwg-main strong { overflow-wrap: anywhere; }
.dwg-list li.appr { background: var(--ok-soft); border-radius: var(--r-sm); padding: 12px; margin-top: 6px; border-top: 0; }
.dwg-list li.appr .dwg-ic { color: var(--ok); }
details.earlier { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
details.earlier summary { cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: 15px; }
details.earlier[open] summary { margin-bottom: 4px; }
.hub-req { margin-top: 14px; padding: 12px 14px; background: var(--bg); border-radius: var(--r-sm); }
.hub-req p { margin: 0 0 6px; font-size: 14px; }
.staff-only { color: var(--ink-3); font-style: italic; display: flex; gap: 6px; align-items: center; }
.hist li { padding: 10px 0; border-top: 1px solid var(--line); } .hist li:first-child { border-top: 0; padding-top: 0; }
.hist .round-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hist .note, .hist .a { margin: 6px 0 0; }
.contact p { margin: 4px 0; overflow-wrap: anywhere; } .contact h2, .jump h2 { font-size: 17px; margin-top: 0; }
.jump .links li { margin: 4px 0; }
.srch { margin-bottom: 20px; }
.srch-q { display: flex; gap: 10px; align-items: center; color: var(--ink-3); }
.srch-q input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink); background: var(--surface); }
.srch-fs { display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; }
.srch-f { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.srch-f select { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); max-width: 100%; }
.srch-latest { font-size: 15px; padding-bottom: 8px; }
.srch-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .srch-h a { text-decoration: none; }
.srch-rows { padding: 6px 18px; }
.hub-home { margin-bottom: 18px; } .hub-home h2 { margin-top: 0; display: flex; gap: 8px; align-items: center; }
.welcome-line { margin-top: -6px; margin-bottom: 18px; color: var(--ink-2); }
.orders li { padding: 12px 0; border-top: 1px solid var(--line); } .orders li:first-child { border-top: 0; padding-top: 0; }
.orders .round-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.trk { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 4px; padding: 0; margin: 10px 0 0; }
.trk li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--bg); }
.trk-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; background: var(--surface); flex: none; }
.trk li.trk-done { color: var(--ok); background: var(--ok-soft); } .trk li.trk-done .trk-dot { border-color: var(--ok); background: var(--ok); color: var(--on-navy); }
.trk li.trk-next { color: var(--gold-ink); background: var(--gold-soft); font-weight: 600; } .trk li.trk-next .trk-dot { border-color: var(--gold); }
.find-form label { font-size: 14px; color: var(--ink-2); display: block; margin-bottom: 6px; }
@media (max-width: 760px) {
  .srch-q { flex-wrap: wrap; } .srch-q .btn { width: 100%; } .srch-q > svg { display: none; }
  .srch-f { flex: 1 1 100%; } .srch-rows { padding: 4px 14px; }
}
.srch-ms { margin: -6px 0 10px; font-size: 14px; overflow-wrap: anywhere; } .srch-ms a { text-decoration: none; }
/* 14 Oct 2026: the project page's machines link to their machine pages; the machine page links back to its order */
.p-machines li { padding: 0; } .p-machines li + li { margin-top: 10px; }
.p-mach { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--navy-ink); text-decoration: none; padding: 6px; margin: -6px; border-radius: var(--r-sm); }
.p-mach:hover { background: var(--bg); } .p-mach:hover strong { text-decoration: underline; }
.p-thumb { width: 84px; height: 64px; }
.p-mach-text .fine { display: block; color: var(--ink-3); margin-top: 2px; }
.inprog .inprog-link { display: block; margin-top: 6px; color: var(--navy-2); font-weight: 600; }

/* 14 Oct 2026 (portal-landing): My machines is the landing page; open orders at the top, each with its machines */
.m-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.m-find { flex: 0 1 320px; margin-top: 6px; } .m-find .btn { white-space: nowrap; }
.o-grid { align-items: start; }
.o-card { margin-bottom: 0; } .o-card h2 { font-size: 18px; margin: 0 0 4px; display: block; }
.o-card h2 a { color: inherit; text-decoration: none; } .o-card h2 a:hover { text-decoration: underline; }
.o-card p { margin: 0 0 6px; } .o-card .proj-stage { margin-top: 8px; }
.o-machines { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.o-more { margin: 14px 0 0 !important; font-size: 15px; } .o-more a { color: var(--navy-2); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.o-more a:hover { text-decoration: underline; }
@media (max-width: 640px) { .m-find { flex-basis: 100%; margin-top: 0; } }

/* 14 Oct 2026: the spare part drawings list is folded until clicked */
details.sheets-dd { margin-top: 18px; }
details.sheets-dd summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.sheets-dd summary::-webkit-details-marker { display: none; }
details.sheets-dd summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(-45deg); margin-left: 2px; transition: transform .15s; }
details.sheets-dd[open] summary::before { transform: rotate(45deg); }
details.sheets-dd summary .spec-h { margin: 0; }
details.sheets-dd summary:hover .spec-h { color: var(--navy); }
details.sheets-dd > p { margin-top: 8px; }

/* ---- 14 Oct 2026 (feature/portal-cart): the machine page is one column — hero card with the illustration on top, a sticky
   tab bar (Spare parts · Drawings · Documents · History), one section at a time (all of them without script), and the
   Spare parts tab is a cart: part packages and single parts ticked on the left, "Your cart" on the right. ---- */
.mh { margin-bottom: 20px; overflow: hidden; }
.mh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px 24px; flex-wrap: wrap; padding: 22px 24px 4px; }
.mh-head h1 { font-size: 30px; line-height: 1.2; margin: 0 0 4px; color: var(--navy-ink); }
.mh-head .sub { color: var(--ink-2); margin: 0; }
.mh-head .actions { margin-top: 0 !important; }
.mh-head .inprog { margin: 12px 0 0; }
.mh-pic { margin: 8px auto 0; max-width: 760px; padding: 8px 24px 0; }
.mh-pic img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.mh-pic a { display: block; cursor: zoom-in; }
.mh-pic .m-nopic.big { min-height: 160px; }
.mh-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding: 12px 24px 14px; margin-top: 12px; border-top: 1px solid var(--line); background: var(--bg); }
.mh-contact { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.mh-contact .av { width: 32px; height: 32px; border-radius: 50%; background: var(--info-soft); color: var(--navy); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.mh-contact strong { color: var(--ink); }
.tabs { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: 4px; margin-bottom: 20px; }
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; border-bottom: 2px solid var(--line-2); overflow-x: auto; }
.tabs a { display: inline-flex; gap: 8px; align-items: center; padding: 12px 16px 10px; margin-bottom: -2px; border-bottom: 3px solid transparent; font-weight: 500; font-size: 15px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.tabs a .n { font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-3); border-radius: 999px; padding: 2px 8px; }
.tabs a:hover { color: var(--navy); }
.tabs a.on { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.tabs a.on .n { background: var(--info-soft); border-color: transparent; color: var(--navy); }
.tabs a:focus-visible { outline: 2px solid var(--navy-2); outline-offset: -2px; border-radius: 6px; }
.panel[hidden] { display: none; }
.panel .card.pad:last-child { margin-bottom: 0; }
.doc-group + .doc-group { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc-group h3 { font-size: 16px; margin: 0 0 6px; color: var(--navy-ink); }
.parts-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.parts-grid .card.pad { margin-bottom: 0; }
.cart-form .lead-sm { margin-bottom: 10px; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.pkg { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.pkg.in { border-color: var(--navy-2); background: var(--info-soft); box-shadow: 0 0 0 2px var(--info-soft); }
.pkg-head { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.pkg-head .pick { margin-top: 2px; }
.pkg-head strong { font-size: 15px; line-height: 1.3; } .pkg-head .n { display: block; font-size: 13px; color: var(--ink-3); font-weight: 400; }
.pkg .what { font-size: 13px; color: var(--ink-2); margin: 0; flex: 1; }
.pkg-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; min-height: 24px; }
.pkg-foot .fine { margin: 0; }
.pick { width: 22px; height: 22px; accent-color: var(--navy); margin: 0; cursor: pointer; flex: none; }
.pick-list li { grid-template-columns: 28px minmax(0, 1fr) auto; }
.pick-list li.in { background: var(--info-soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--r-sm); border-top-color: transparent; }
.pick-list li.in + li { border-top-color: transparent; }
.pick-list label { cursor: pointer; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; width: auto; }
.qty button { display: none; border: 0; background: none; width: 34px; height: 34px; font: 600 18px/1 Inter, system-ui, sans-serif; color: var(--navy); cursor: pointer; }
.qty button:hover { background: var(--bg); }
.qty input, .stack .qty input { width: 56px; border: 0; border-radius: 0; text-align: center; font: 600 15px Inter, system-ui, sans-serif; color: var(--ink); background: transparent; padding: 6px 4px; font-variant-numeric: tabular-nums; }
.qty input:focus, .stack .qty input:focus { box-shadow: none; outline: 2px solid var(--navy-2); outline-offset: -2px; }
.js .qty button { display: inline-flex; align-items: center; justify-content: center; }
.js .qty input { -moz-appearance: textfield; appearance: textfield; }
.js .qty input::-webkit-outer-spin-button, .js .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.js [data-k]:not(.in) .qty { display: none; }
.cart { position: sticky; top: 62px; }
.cart h2 { margin-bottom: 4px; }
.cart-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cart-lines li:first-child { border-top: 0; }
.cl-main { display: flex; flex-direction: column; min-width: 0; } .cl-main strong { font-size: 15px; overflow-wrap: anywhere; } .cl-main .muted { font-size: 13px; }
.cl-qty { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-x { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 6px; } .cl-x:hover { background: var(--bg); color: var(--bad); }
.cart-empty { color: var(--ink-3); font-size: 15px; margin: 6px 0 4px; }
.cart .stack { margin-top: 6px; } .cart .stack label { margin-top: 10px; }
.cart-send { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 0 !important; }
.cart-send .btn[disabled] { opacity: .45; cursor: default; }
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: none; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line-2); box-shadow: 0 -4px 16px rgba(16, 46, 72, .08); }
.cart-bar .btn { white-space: nowrap; }
@media (max-width: 900px) {
  .parts-grid { grid-template-columns: 1fr; } .cart { position: static; }
  .js .cart-bar:not([hidden]) { display: flex; }
  .js .cart-bar:not([hidden]) ~ * { padding-bottom: 0; }
}
@media (max-width: 760px) {
  .mh-head, .mh-foot { padding-left: 16px; padding-right: 16px; } .mh-pic { padding-left: 8px; padding-right: 8px; }
  .mh-head h1 { font-size: 24px; }
  .tabs a { padding: 10px 12px 8px; font-size: 14px; }
  .pick-list li { grid-template-columns: 24px minmax(0, 1fr); } .pick-list li.in { margin: 0; padding-left: 0; padding-right: 0; }
  .pick-list .dwg-act { grid-column: 2; justify-content: flex-start; }
}
/* the Order tab (portal-cart, 14 Oct 2026): the order folded into the machine page */
.tabs a.warn .n { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.order-tab .col-side .fine { margin: 4px 0 0; } .order-tab .col-side .fine a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.order-tab .callout { margin-bottom: 20px; }
/* the lightbox's loading state (14 Oct 2026): spinner + "Loading…" until the picture or frame has loaded */
.lb-body { position: relative; }
.lb-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ink-2); font-size: 15px; background: var(--bg); z-index: 1; }
.lb-body.lb-image .lb-wait { background: #1b2733; color: #e6eef7; }
.lb-spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--navy-2); animation: lb-spin .8s linear infinite; }
.lb-body.lb-image .lb-spin { border-color: rgba(255, 255, 255, .25); border-top-color: #fff; }
.lb-body.lb-loading img, .lb-body.lb-loading iframe { visibility: hidden; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lb-spin { animation: none; border-top-color: var(--line-2); } }

/* Configure a machine (configurator stage A2, 16 Oct 2026) */
.cfg-form fieldset.cfg-screen { border: 0; border-top: 1px solid var(--line, #e3e8ee); padding: 10px 0 2px; margin: 0; }
.cfg-form legend { font-weight: 600; padding: 0 0 6px; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; }
.cfg-grid .fld label { display: block; font-size: .9em; margin-bottom: 3px; }
.cfg-grid select, .cfg-grid input { width: 100%; }
.cfg-ticks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 4px; }
.cfg-ticks .tick { display: inline-flex; gap: 6px; align-items: center; }
.cfg-answer .cfg-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 10px 0; }
.cfg-answer .cfg-pic svg { display: block; width: 100%; height: auto; }
.cfg-answer .cfg-build li { margin: 3px 0; }
@media (max-width: 760px) { .cfg-answer .cfg-two { grid-template-columns: minmax(0, 1fr); } }

/* ---- parts orders (19 Oct 2026, portal-orders) ---- */
.mh-backup { display: block; font-size: 14px; margin-top: 2px; }
.o-ship { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; margin: 6px 0 !important; }
.o-ship strong { color: var(--ink); }
.o-lines { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.o-lines li { padding: 2px 0; overflow-wrap: anywhere; }
.big-date { font-size: 26px; font-weight: 700; margin: 4px 0 8px; color: var(--ink); }
.o-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.o-table th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.o-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.o-table tr:last-child td { border-bottom: 0; }
.o-table .n { text-align: right; padding-right: 0; padding-left: 16px; font-variant-numeric: tabular-nums; }
.ship-list > li { padding: 10px 0; border-top: 1px solid var(--line); } .ship-list > li:first-child { border-top: 0; padding-top: 0; }
.ship-to { font-style: normal; line-height: 1.5; color: var(--ink); }
@media (max-width: 600px) { .o-table { font-size: 14px; } .o-table th:nth-child(2), .o-table td:nth-child(2) { min-width: 9em; } }
/* A grid column never grows past the screen for a wide table inside it (the parts table scrolls in its own box). */
.two > * { min-width: 0; }
/* portal-scopes (19 Oct 2026): the work text keeps its line breaks */
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* portal-items + portal-digest (19 Oct 2026): open items, the Monday email box, the scorecard */
.items-list > li { padding: 10px 0; border-top: 1px solid var(--line); } .items-list > li:first-child { border-top: 0; padding-top: 0; }
.items-list .it-done strong { color: var(--ink-2); font-weight: 500; }
.inline-form { display: inline-block; margin: 6px 8px 0 0; }
.btn.sm { padding: 5px 10px; font-size: 13px; min-height: 32px; }
.digest .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 4px; margin: 0; } .kpi-n { font-size: 28px; font-weight: 700; color: var(--ink); }
.stack select { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); max-width: 100%; min-height: 44px; }

/* the fleet (portal-layout stage 1, 19 Oct 2026): a card per site, a sub-heading per model, one short row per machine */
.f-site { overflow: hidden; margin-bottom: 18px; }
.f-site-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.f-site-h h2 { font-size: 17px; margin: 0; display: flex; align-items: center; gap: 6px; } .f-site-h .ic { color: var(--navy-2); }
.f-model { margin: 0; padding: 7px 20px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.f-model span { font-weight: 500; margin-left: 4px; }
.f-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 16px; gap: 14px; align-items: center; padding: 9px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.f-row:last-child { border-bottom: 0; } .f-row:hover { background: var(--bg); }
.f-thumb { width: 76px; height: 42px; object-fit: contain; border-radius: 7px; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.f-main { display: flex; flex-direction: column; min-width: 0; } .f-main strong { font-weight: 600; } .f-main .muted { font-size: 14px; }
.f-serial { font-weight: 500; color: var(--ink-3); }
.f-when { font-size: 14px; text-align: right; display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 640px) { .f-row { grid-template-columns: 60px minmax(0, 1fr) 16px; } .f-thumb { width: 60px; height: 36px; } .f-when { grid-column: 2; grid-row: 2; justify-content: flex-start; text-align: left; } }
.m-name { margin-top: 6px; font-size: 14px; } .m-name summary { cursor: pointer; color: var(--navy-2); }
.m-name-form { justify-content: flex-start; margin-top: 8px; } .m-name-form input { width: 240px; }

/* Orders (portal-layout stage 2, 19 Oct 2026): one row per open order, a line across its stages, a ring where it is */
.quote-btn { background: var(--gold); color: #1d1600; margin-left: 8px; align-self: center; }
.quote-btn:hover, .quote-btn[aria-current] { background: var(--gold); filter: brightness(1.05); color: #1d1600; }
.flash.info { background: var(--info-soft); color: var(--navy-ink); }
.m-foot { margin-top: 18px; }
.board { overflow: hidden; }
.b-group + .b-group { border-top: 1px solid var(--line); }
.b-head, .b-row { display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(0, 3fr) 140px 16px; gap: 16px; align-items: center; padding: 12px 20px; }
.b-head { padding-bottom: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.b-head .muted { font-weight: 500; }
.b-cols { display: grid; text-align: center; } .b-cols span { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; }
.b-row { border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.b-row:hover { background: var(--bg); }
.b-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .b-what strong { font-weight: 600; } .b-what .muted { font-size: 13px; }
.b-what .chip { align-self: flex-start; margin-top: 4px; }
.b-ships { display: flex; flex-direction: column; font-size: 14px; } .b-ships span { font-size: 12px; color: var(--ink-3); }
.b-now { display: none; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.b-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.trk { display: grid; height: 22px; }
.trk .st { position: relative; }
.trk .st::before, .trk .st::after { content: ""; position: absolute; top: 50%; height: 3px; margin-top: -1.5px; background: var(--line-2); }
.trk .st::before { left: 0; right: 50%; } .trk .st::after { left: 50%; right: 0; }
.trk .st:first-child::before, .trk .st:last-child::after { display: none; }
.trk .st.done::before, .trk .st.done::after, .trk .st.now::before { background: var(--navy); }
.trk .st i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); z-index: 1; }
.trk .st.done i { background: var(--navy); border-color: var(--navy); }
.trk .st.now i { width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 4px solid var(--gold); background: var(--surface); box-shadow: 0 0 0 2px var(--navy); }
@media (max-width: 760px) {
  .b-head .b-cols, .b-head .b-ships-h { display: none; }
  .b-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; } .b-row > .ic { display: none; }
  .b-trk { grid-column: 1 / -1; order: 3; } .b-now { display: block; }
}
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
/* stage 1-2 polish (19 Oct 2026, from the screenshots) */
.f-thumb { overflow: hidden; } .f-thumb .ic-lg { width: 22px; height: 22px; } .m-nopic.f-thumb { color: var(--ink-3); }
.m-find { flex: 0 1 420px; }
.b-cols span { padding: 0 3px; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .b-row > svg { display: none; }
  .nav { flex-wrap: wrap; row-gap: 6px; } .quote-btn { margin-left: 0; }
  .list .row { flex-wrap: wrap; row-gap: 4px; } .list .row .row-main { flex-basis: 100%; }
}

/* the machine page top (portal-layout stage 3, 19 Oct 2026): the picture with numbered parts beside the facts */
.mh2 .mh-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.mh2 .mh-left { background: var(--bg); padding: 16px 16px 12px; display: grid; gap: 10px; align-content: start; }
.mh2 .mh-pic { margin: 0; max-width: none; padding: 0; }
.mh2 .mh-pic img { max-height: 320px; }
.mh2 .mh-facts { padding: 22px 24px; display: grid; gap: 10px; align-content: start; }
.mh2 .mh-facts h1 { font-size: 28px; line-height: 1.2; margin: 0; color: var(--navy-ink); }
.mh2 .mh-facts .sub { color: var(--ink-2); margin: 0; }
.mh2 .summary { margin: 0; color: var(--ink-2); max-width: 62ch; }
.mh2 .facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.mh2 .facts dt { color: var(--ink-3); } .mh2 .facts dd { margin: 0; font-weight: 500; }
.mh2 .actions { margin: 4px 0 0; }
.mh2 .mh-contact { font-size: 14px; }
@media (max-width: 860px) { .mh2 .mh-grid { grid-template-columns: minmax(0, 1fr); } }
.dg-svg { display: block; width: 100%; height: auto; max-height: 340px; }
.dg-svg .dg-sel, .dg-svg .dg-sel * { stroke: var(--gold) !important; stroke-width: 5px; }
.dg-hot { cursor: pointer; } .dg-hot circle { fill: var(--navy); stroke: #fff; stroke-width: 3px; }
.dg-hot text { fill: #fff; font-family: Inter, system-ui, sans-serif; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.dg-hot.on circle { fill: var(--gold); } .dg-hot.on text { fill: #1d1600; }
.dg-hot:focus { outline: none; } .dg-hot:focus-visible circle { stroke: var(--gold); stroke-width: 6px; }
.dg-full { display: inline-block; margin-top: 4px; cursor: zoom-in; }
.dg-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-legend button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; font: inherit; font-size: 13px; padding: 3px 11px 3px 4px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.dg-legend button i { font-style: normal; width: 19px; height: 19px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.dg-legend button.on { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); } .dg-legend button.on i { background: var(--gold); color: #1d1600; }
.dg-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--gold); border-radius: var(--r-sm); padding: 8px 10px 8px 14px; font-size: 14px; }
.dg-note { margin: 0; }
.dg-match { background: var(--gold-soft) !important; border-radius: var(--r-sm); }
.spec-foot { margin-top: 16px; }
.dg-bar[hidden], .dg-legend[hidden] { display: none; }

/* Questions & issues (portal-layout stage 4, 19 Oct 2026) */
.raise { margin-bottom: 18px; padding: 0; overflow: hidden; }
.raise > summary { list-style: none; margin: 16px 20px; display: inline-flex; }
.raise > summary::-webkit-details-marker { display: none; }
.raise[open] > summary { background: var(--navy-2); }
.raise-form { padding: 0 20px 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.raise-form select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); max-width: 100%; }
.check.stop { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.kindtag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-right: 4px; }
.done-list > summary { cursor: pointer; color: var(--navy-2); margin: 10px 0; }
.items-mini { display: grid; gap: 6px; margin: 0 0 8px; }
/* on request (portal-layout stage 5) */
.or-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.or-list li:last-child { border-bottom: 0; } .or-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .or-ask { justify-content: flex-start; margin-top: 12px; }
