/* Inter is the spec's typeface (3.1); no font file is bundled, so use it when installed and
   fall back to the closest system sans-serifs. */
:root {
  --bg: #ecece8; /* spec 4.3 / 7.6 */
  --ink: #111111;
  --muted: #444444;
  --line: #111111;
  --danger: #a10000;
}

* { box-sizing: border-box; }
/* The hidden attribute always hides, whatever display a class sets (e.g. .btn's
   inline-block would otherwise show a hidden Undo last or More button). */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

/* Login / denied: centred, nothing else on the page */
.center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.wordmark { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.subtitle { font-size: 20px; color: var(--muted); margin: 8px 0 40px; }

.btn {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: #333; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: 15px; }

/* Signed-in shell */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 2px solid var(--line);
}
.topbar .brand { font-weight: 700; font-size: 22px; text-decoration: none; color: inherit; }
.topbar .who { display: flex; gap: 16px; align-items: center; }
.topbar form { margin: 0; }
main { padding: 32px; }
main.admin { min-width: 1280px; } /* spec 7.3a: Admin UI desktop-first, min 1280px */

table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #ccc; }
th { border-bottom: 2px solid var(--line); }
tr.inactive td { color: #777; }
tr[draggable="true"] { cursor: grab; }
tr[draggable="true"].dragging { opacity: 0.5; }
td.drag-handle { width: 1%; white-space: nowrap; color: #999; letter-spacing: -2px; }
select, input[type="email"], input[type="text"], input[type="number"], textarea {
  font: inherit; padding: 8px; border: 2px solid var(--line); border-radius: 6px; background: #fff;
}
.add-form { display: flex; gap: 12px; margin: 24px 0; align-items: center; }
.add-form input[type="email"] { min-width: 320px; }
.error { color: var(--danger); font-weight: 600; min-height: 1.4em; }

/* Google's standard "Sign in with Google" button (Google Identity branding assets), unmodified. */
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 10px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}

/* Wrapper form: a GET form navigates to /auth/google without JS (CSP forbids inline script) */
.gsi-form { margin: 0; }
/* replaces Google's inline styles, which our CSP (no inline style) would block */
.gsi-svg { display: block; }
.gsi-hidden { display: none; }

/* Operator UI (spec 7.3a: tablet-first, minimum 768px — a separate surface from Admin's
   desktop-first 1280px). High-contrast, large tap targets for factory floor use (spec 7.6). */
main.operator { min-width: 768px; max-width: 640px; margin: 0 auto; }

main.operator label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  margin-bottom: 16px;
}
main.operator select,
main.operator input[type="number"],
main.operator textarea {
  font-size: 18px;
  padding: 14px;
}

.btn-start, .btn-end, .btn-pass, .btn-fail {
  font-size: 20px;
  padding: 18px 24px;
  width: 100%;
}
.btn-start { background: var(--ink); }
.btn-pass { background: #1a7a1a; border-color: #1a7a1a; }
.btn-pass:hover { background: #156015; }
.btn-fail { background: var(--danger); border-color: var(--danger); }
.btn-fail:hover { background: #7a0000; }
.btn-end { background: var(--ink); }

.session-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 24px; }
.session-info dt { font-weight: 600; color: var(--muted); }
.session-info dd { margin: 0; }

.tally { display: flex; gap: 24px; font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.tally-pass { color: #1a7a1a; }
.tally-fail { color: var(--danger); }

.session-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.session-buttons a.btn { text-align: center; }

/* Fail Reason modal (Change Request: Fail Reason as a Blocking Modal). Deliberately no
   `display` rule here — the browser's native open/close state (via .showModal()/.close())
   controls that; an author-stylesheet `display` override is exactly what broke the previous
   hidden-<div> approach (it beat the UA stylesheet's [hidden] rule). */
dialog.fail-reason-modal {
  border: none;
  border-radius: 8px;
  padding: 24px;
  width: min(90vw, 420px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
dialog.fail-reason-modal::backdrop { background: rgba(17, 17, 17, 0.5); }
dialog.fail-reason-modal textarea { width: 100%; box-sizing: border-box; }
dialog.fail-reason-modal .btn { margin-top: 12px; width: 100%; }

/* Persistent language toggle (spec 7.5) — global chrome on every Operator screen. */
.lang-toggle { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.lang-toggle button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 2px 4px;
}
.lang-toggle button.active { color: var(--ink); font-weight: 700; text-decoration: underline; }
.lang-toggle span { color: var(--muted); }


/* Setup screen's read-only SKU display (Change Request: Process-Owned Product Line). */
.sku-display { margin: -10px 0 18px; font-size: 18px; font-weight: 600; }

/* Setup screen: who's signed in, and their own open sessions to resume (Release 1.1). */
.signed-in-as { font-size: 18px; margin: 0 0 16px; }
.open-sessions { margin-bottom: 24px; }
.open-sessions h2 { font-size: 18px; margin: 0 0 8px; }
.open-sessions ul { list-style: none; margin: 0; padding: 0; }
.open-sessions li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

/* Admin "View Events" screen (Change Request: View Events). */
.archived-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #e8e8e4;
  border-radius: 4px;
  padding: 1px 6px;
}
.pagination { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
tr.drilldown td { background: #f5f5f2; padding: 12px 24px; }
tr.drilldown table { background: #fff; }

/* Admin paste-import (Configuration Data Import Spec) */
.import-sets { display: flex; gap: 24px; margin: 24px 0 8px; }
.import-sets label { font-weight: 600; cursor: pointer; }
.import-columns { color: var(--muted); margin: 0 0 12px; }
.import-paste { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.import-status { font-weight: 600; min-height: 1.4em; }
.import-summary { font-size: 20px; font-weight: 700; }
.import-conflict { background: #fff; border: 2px solid var(--danger); border-radius: 6px; padding: 12px 16px; margin: 12px 0; }
.import-conflict p { margin: 0 0 4px; font-weight: 600; }
.import-conflict ul { margin: 0 0 8px; }
#changes details { margin: 8px 0; }
#changes summary { cursor: pointer; font-weight: 600; }

/* SKU row linked from a product line page (Amendment 01). */
tr.highlight td { background: #fff6d6; }
.form-note { color: var(--muted); margin-top: -8px; }

/* Amendment 02: in-session totals, leave dialog, flash message. */
.progress-panel { margin: 16px 0; }
.progress-main { font-size: 28px; font-weight: 700; margin: 0; }
.progress-good { font-size: 22px; margin: 4px 0 0; }
.progress-order, .progress-note { color: var(--muted); margin: 4px 0 0; }
dialog.leave-dialog { max-width: 520px; border: 1px solid #999; border-radius: 8px; padding: 24px; }
dialog.leave-dialog .leave-title { font-size: 20px; font-weight: 600; }
dialog.leave-dialog label { display: block; margin: 8px 0; }
dialog.leave-dialog textarea { width: 100%; }
.flash { background: #eef6ee; border: 1px solid #9c9; padding: 8px 12px; }

/* Amendment 03: SKU process note, shown as entered with its line breaks. */
.process-note { border-left: 4px solid var(--ink); background: #f6f6f6; padding: 8px 16px; margin: 16px 0; }
.process-note h2 { font-size: 18px; margin: 0 0 4px; }
.process-note-text { white-space: pre-wrap; margin: 0; font-size: 18px; }

/* Amendment 03: note editor on the SKU screen. */
.sku-notes textarea { width: 100%; min-width: 360px; font: inherit; }

/* Release 1.2b: Undo last, destructive buttons. */
.btn.danger { color: var(--danger); border-color: var(--danger); }
.undo-btn { margin-top: 16px; }
.undo-message { color: var(--muted); min-height: 1.4em; }

/* Release 1.2c: open flags at a process. */
.process-flags { margin: 12px 0; }
.process-flags li { display: flex; gap: 12px; align-items: center; margin: 6px 0; }
td.pre-wrap { white-space: pre-wrap; }


/* R1.3 §7.11.1: row action menus. */
td.row-actions { white-space: nowrap; width: 1%; }
.row-menu { position: relative; display: inline-block; }
.row-menu-trigger {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid #bbb; border-radius: 6px; cursor: pointer; color: var(--ink);
}
.row-menu-trigger:focus-visible, .row-menu-item:focus-visible { outline: 3px solid #2a6fdb; outline-offset: 1px; }
/* R1.3 Amendment 08 §2: drawn in a layer attached to the page and placed by row_menu.js, so no
   table or scroll container clips it; a menu taller than the space scrolls inside itself. */
.row-menu-list {
  position: fixed; z-index: 50; min-width: 200px; max-width: calc(100vw - 32px); overflow-y: auto;
  background: #fff; border: 1px solid #bbb; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.15);
  padding: 4px 0; box-sizing: border-box;
}
.row-menu-item.disabled { color: var(--muted); cursor: not-allowed; }
.row-menu-item.disabled:hover { background: transparent; }
.row-menu-reason { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.row-menu-item {
  display: block; width: 100%; min-height: 44px; padding: 10px 16px; text-align: left;
  background: transparent; border: 0; font: inherit; cursor: pointer; color: var(--ink);
}
.row-menu-item:hover { background: #f2f2f2; }
.row-menu-item.danger { color: var(--danger); font-weight: 600; }
.row-menu-list hr { border: 0; border-top: 1px solid #ddd; margin: 4px 0; }

/* R1.3 §7.11.2: Pass / Fail. */
.tap-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 12px; }
.tap-buttons .btn { min-height: 128px; font-size: 24px; }

/* R1.3 §7.4 arrival screen; Amendment 06 §4-§5 recommendation card and process list. */
.arrival-go { font-size: 34px; margin: 16px 0 8px; }
.arrival-by { color: var(--muted); font-weight: 600; }
.arrival .btn { display: block; width: 100%; box-sizing: border-box; text-align: center; margin: 12px 0; min-height: 64px; font-size: 22px; }
.arrival-updated { margin: 8px 0; padding: 8px 12px; border: 2px solid var(--line); border-radius: 6px; background: #fff; font-weight: 700; }
.process-list { margin: 16px 0; }
.process-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.process-search { width: 100%; box-sizing: border-box; font-size: 20px; min-height: 56px; margin: 8px 0 12px; }
.process-group { margin: 0 0 12px; }
.process-group-title { font-size: 18px; margin: 16px 0 6px; }
.process-group-head { display: block; width: 100%; text-align: left; font: inherit; font-size: 18px; font-weight: 700; min-height: 48px; background: none; border: 0; border-bottom: 2px solid var(--line); cursor: pointer; }
.process-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; box-sizing: border-box; padding: 8px 12px; margin: 6px 0; border: 2px solid var(--line); border-radius: 6px; background: #fff; color: inherit; text-decoration: none; }
.process-row-name, .process-row-status { display: flex; flex-direction: column; gap: 2px; }
.process-row-name strong { font-size: 20px; }
.process-row-status { text-align: right; font-weight: 600; }
.process-row[aria-disabled="true"] { background: #e0e0dc; border-style: dashed; color: var(--muted); }
.tt-own-choice { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: help; }

/* R1.3 §7.8 in-session progress. Colour always has a text label beside it. */
.progress-display { margin: 16px 0; }
.progress-context { color: var(--muted); margin: 0 0 8px; }
.progress-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.progress-big { font-size: 44px; font-weight: 800; margin: 0; line-height: 1.1; }
.progress-second { font-size: 18px; margin: 4px 0 0; }
.buffer-label { margin: 0; padding: 6px 10px; border-radius: 6px; font-weight: 700; white-space: nowrap; }
.buffer-label.buffer-left { background: #ececec; color: #333; }
.buffer-label.buffer-used_up { background: #fff0c2; color: #6b4b00; border: 1px solid #c99a00; }
.buffer-label.buffer-short { background: #fde2e2; color: var(--danger); border: 1px solid var(--danger); }
.progress-bar { position: relative; height: 28px; margin: 12px 0 6px; background: #fff; border: 1px solid #999; border-radius: 4px; overflow: hidden; }
.progress-bar > span { position: absolute; top: 0; bottom: 0; }
.bar-good { left: 0; background: #1a7a1a; }
.bar-lost { background: var(--danger); }
.bar-buffer { background: repeating-linear-gradient(45deg, rgba(0,0,0,.18) 0 4px, transparent 4px 9px); }
.bar-marker { width: 2px; background: #000; }
.bar-marker span { position: absolute; top: -1px; left: 4px; font-size: 11px; font-weight: 700; color: #000; }
.progress-footer { color: var(--muted); margin: 0; }

/* R1.3 §7.7 timetable: desktop-first (1280px+). Highlights always carry a text note. */
.timetable-page { max-width: none; }
.timetable-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.timetable-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tt-counts { font-weight: 700; margin: 0; }
.tt-actions { display: flex; gap: 8px; }
.tt-people { width: 100%; }
.tt-people td { vertical-align: top; }
.tt-note { font-size: 12px; color: var(--muted); }
.tt-overdue { background: #fff0c2; }
.tt-overdue .tt-note:first-of-type { color: #6b4b00; font-weight: 700; }
.tt-waiting { color: #6b4b00; }
.tt-muted-row td { color: var(--muted); }
.tt-muted-row .tt-timeline { opacity: 0.45; }
.tt-timeline-head { width: 50%; }
.tt-hours { position: relative; height: 18px; }
.tt-hour { position: absolute; transform: translateX(-50%); font-size: 11px; font-weight: 400; }
.tt-timeline-cell { width: 50%; }
.tt-timeline { position: relative; height: 26px; background: repeating-linear-gradient(90deg, #f6f6f6 0 1px, transparent 1px 40px); border: 1px solid #ddd; border-radius: 3px; }
.tt-block { position: absolute; top: 2px; bottom: 2px; background: #cfe3f7; border: 1px solid #5b8fc7; border-radius: 3px; font-size: 11px; overflow: hidden; white-space: nowrap; padding: 0 3px; line-height: 20px; }
.tt-block-open { background: #d6efd6; border-color: #1a7a1a; }
.tt-now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--danger); }
.tt-section th { text-align: left; background: #f2f2f2; }
#reassign-dialog label { display: block; margin: 8px 0; }
#reassign-dialog select, #reassign-dialog input { width: 100%; }

/* R1.3 Amendment 01 §3: surplus to stock on the Orders list. */
.to-stock { color: #1a7a1a; font-weight: 700; }

/* R1.3 Amendment 01 §2: grouped sidebar. Stacks above the content below 1280px; never
   overlaps it. */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { flex: 0 0 220px; display: flex; flex-direction: column; background: #f4f4f2; border-right: 1px solid #ddd; padding: 16px 12px; }
.sidebar-brand { font-size: 20px; font-weight: 800; text-decoration: none; color: inherit; margin-bottom: 12px; }
.sidebar nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 4px; }
.sidebar nav a { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 4px; text-decoration: none; color: inherit; }
.sidebar nav a:hover { background: #e8e8e4; }
.sidebar nav a.active { background: #1f2a44; color: #fff; font-weight: 700; }
.nav-badge { background: var(--danger); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 700; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid #ddd; }
.sidebar-user { margin: 0; font-weight: 700; }
.sidebar-user span { font-weight: 400; color: var(--muted); }
.content { flex: 1 1 auto; min-width: 0; padding: 0 16px; }
.breadcrumb { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.breadcrumb + main h1, .breadcrumb + main > h1 { margin-top: 4px; }
@media (max-width: 1279px) {
  .app-shell { flex-direction: column; }
  .sidebar { flex: none; border-right: none; border-bottom: 1px solid #ddd; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
  .sidebar-foot { flex-direction: row; align-items: center; margin-top: 0; }
}

/* R1.3 Amendment 01 §1 session screen: single column, portrait-first at 768 x 1024. The
   work area (Fail | Pass, or the batch entry) takes the remaining height, at least 320px. */
main.operator.session-screen { max-width: none; width: 100%; box-sizing: border-box; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.session-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.session-title h1 { font-size: 30px; margin: 0; line-height: 1.15; }
.session-title p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
/* Amendment 11 §1.2, §1.4: the context line keeps to one line by shortening only the SKU; the
   order size line under it, in the same muted style, is never shortened. */
.session-title { min-width: 0; }
.session-title p.session-context { display: flex; white-space: nowrap; min-width: 0; }
.session-context .session-sku { overflow: hidden; text-overflow: ellipsis; min-width: 2em; }
.session-context > span { white-space: pre; }
.session-context > span.session-sku { white-space: nowrap; }
.session-actions { display: flex; gap: 10px; flex: none; }
.head-btn { min-height: 52px; padding: 0 18px; font-size: 18px; }
.progress-card { border: 1px solid #ddd; border-radius: 8px; padding: 10px 14px; flex: none; }
.progress-card .progress-big { font-size: 36px; }
.progress-card .progress-bar { margin: 8px 0 4px; }
.progress-card .progress-footer { min-height: 1.4em; }
.session-screen .work-area { flex: 1 1 auto; min-height: 260px; margin-top: 0; }
.session-screen .tap-buttons .btn { min-height: 260px; height: 100%; font-size: 32px; }
.batch-entry { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 16px 32px; }
.batch-entry label { display: flex; flex-direction: column; gap: 6px; font-size: 18px; }
.batch-entry input { font-size: 32px; padding: 12px; min-height: 72px; }
.batch-entry .batch-save { grid-column: 1 / -1; min-height: 120px; font-size: 28px; }
.undo-row { text-align: center; flex: none; }
.undo-row .undo-btn { margin-top: 0; }
.session-screen .error:empty { display: none; }
.head-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* The session screen fills whatever height the app header leaves, whatever its size. */
body:has(main.session-screen) { display: flex; flex-direction: column; min-height: 100dvh; margin: 0; }
/* R1.3 Amendment 07 §5: "what's next" replaces the rest of the session screen while open. One
   recommendation card with a full-width primary button (at least 96px), then secondary actions
   (at least 52px) and Undo last. Fits 768 x 1024 without scrolling. */
.session-screen.next-open > :not(#next-screen) { display: none; }
.next-screen { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.next-done { font-size: 20px; font-weight: 600; margin: 4px 0 0; }
.next-units { font-size: 20px; margin: 0; color: var(--muted); }
.next-card { position: relative; border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.next-headline { font-size: 30px; font-weight: 700; line-height: 1.2; margin: 0; padding-right: 110px; }
.next-cue { margin: 0; padding: 8px 12px; border-left: 4px solid var(--ink); background: #f6f6f6; font-size: 18px; font-weight: 600; }
.next-screen .next-primary { min-height: 96px; font-size: 26px; width: 100%; }
.next-reason { margin: 0; font-size: 18px; }
.next-still { margin: 0; color: var(--muted); font-size: 18px; }
.next-updated { position: absolute; top: 14px; right: 16px; margin: 0; padding: 4px 10px; border: 2px solid var(--line); border-radius: 6px; font-weight: 700; font-size: 15px; }
.next-secondary { display: flex; flex-direction: column; gap: 10px; }
.next-secondary .btn, .next-screen .next-undo { min-height: 52px; font-size: 20px; width: 100%; }
.next-screen .next-undo { align-self: center; width: auto; min-width: 50%; }
.next-screen .error:empty { display: none; }
/* Admin pages sit beside the sidebar: the 1280px desktop minimum (spec 7.3a) now applies to
   the window (Amendment 01 §2.1), and a wide table scrolls inside the content area. */
.content main.admin { min-width: 0; padding: 12px 24px 32px; }
/* R1.3 Amendment 08 §2.2: admin pages scroll as one page. Only below 1280px may a wide table
   scroll sideways inside the content; row menus sit outside it, so it can't clip them. */
@media (max-width: 1279px) { .content main.admin { overflow-x: auto; } }

/* R1.3 Amendment 02 §3: desktop scale for every admin-layout page (Admin, Supervisor,
   Reporting: everything inside .app-shell, which only base.html renders). Operator screens
   (arrival, session, completion popup, flag and leave dialogs) use operator_base.html and
   keep the touch scale, even when an Admin or Supervisor reaches them via Start session.
   Nothing here goes below 12px. */
.app-shell {
  --fs-body: 14px;     /* body text */
  --fs-dense: 13px;    /* tables, form inputs, sidebar items */
  --fs-small: 12px;    /* labels, breadcrumbs, counts, legends: never smaller */
  --fs-title: 22px;    /* page title */
  --fs-heading: 16px;  /* section headings */
  --control-h: 32px;   /* buttons and inputs */
  --row-h: 36px;       /* table rows */
  font-size: var(--fs-body);
  line-height: 1.4;
}
.app-shell h1 { font-size: var(--fs-title); margin: 4px 0 12px; }
.app-shell h2 { font-size: var(--fs-heading); margin: 16px 0 8px; }
.app-shell main { padding: 12px 24px 32px; }
.app-shell p { margin: 8px 0; }
.app-shell table, .app-shell th, .app-shell td { font-size: var(--fs-dense); }
.app-shell th, .app-shell td { height: var(--row-h); padding: 4px 10px; }
.app-shell .btn, .app-shell .btn.small {
  font-size: var(--fs-dense); min-height: var(--control-h); padding: 0 12px; border-width: 1px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.2;
}
.app-shell select, .app-shell input[type="email"], .app-shell input[type="text"],
.app-shell input[type="number"], .app-shell input[type="search"], .app-shell input[type="time"] {
  font-size: var(--fs-dense); height: var(--control-h); padding: 0 8px; border-width: 1px;
}
.app-shell textarea { font-size: var(--fs-dense); padding: 6px 8px; border-width: 1px; }
.app-shell label, .app-shell .hint, .app-shell .breadcrumb, .app-shell .nav-group,
.app-shell .tt-note, .app-shell .tt-hour, .app-shell .tt-block, .app-shell .legend,
.app-shell .nav-badge, .app-shell .sidebar-user span { font-size: var(--fs-small); }
.app-shell .sidebar nav a, .app-shell .sidebar-user { font-size: var(--fs-dense); }
.app-shell .sidebar nav a { padding: 5px 8px; }
.app-shell .sidebar-brand { font-size: 18px; }
.app-shell .add-form { margin: 12px 0; gap: 8px; }
.app-shell .error { font-size: var(--fs-dense); }
.app-shell .buffer-label { font-size: var(--fs-small); padding: 2px 8px; }
.app-shell .tt-counts { font-size: var(--fs-dense); }
.app-shell .tt-timeline { height: 22px; }
.app-shell .tt-block { line-height: 16px; }
/* Row menu icon (☰): a 32 x 32 tap target; its items stay comfortably clickable. */
.app-shell .row-menu-trigger { width: 32px; height: 32px; }
.app-shell .row-menu-item { min-height: 32px; padding: 6px 12px; font-size: var(--fs-dense); }
/* The menu is attached to the page, outside .app-shell: the desktop scale is set on it. */
.row-menu-list .row-menu-item { min-height: 32px; padding: 6px 12px; font-size: 13px; }
.app-shell .lang-toggle button { font-size: var(--fs-small); }
.inline-label { display: inline-flex; align-items: center; gap: 6px; }

/* R1.3 Amendment 02 §1: training matrix. Processes are rows, people columns; the header row
   and the process name column stay put while the list scrolls. Cover shows the number, so
   colour is never the only signal. */
.matrix-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.matrix-toolbar input[type="search"] { width: 220px; }
.toolbar-sep { width: 1px; height: 24px; background: #bbb; margin: 0 4px; }
.toolbar-spacer { flex: 1 1 auto; }
.unsaved { font-weight: 700; color: #6b4b00; }
#gaps-toggle.on { background: var(--ink); color: #fff; }
.legend { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.cover { display: inline-block; min-width: 24px; padding: 1px 6px; border-radius: 10px; text-align: center; font-weight: 700; background: #ececec; }
.cover-0 { background: #fde2e2; color: var(--danger); border: 1px solid var(--danger); }
.cover-1 { background: #fff0c2; color: #6b4b00; border: 1px solid #c99a00; }
.matrix-scroll { overflow: auto; max-height: calc(100vh - 230px); border: 1px solid #ccc; background: #fff; }
table.training-matrix { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
table.training-matrix th, table.training-matrix td { border-bottom: 1px solid #e2e2e2; padding: 2px 4px; }
table.training-matrix thead th { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
table.training-matrix .proc-col { position: sticky; left: 0; z-index: 1; background: #fff; width: 240px; text-align: left; font-weight: 400; }
table.training-matrix .cover-col { position: sticky; left: 240px; z-index: 1; background: #fff; width: 64px; text-align: center; }
table.training-matrix td.cover-cell { position: sticky; left: 240px; z-index: 1; background: #fff; text-align: center; }
table.training-matrix thead .proc-col, table.training-matrix thead .cover-col { z-index: 3; }
table.training-matrix .person-col { text-align: center; }
.person-name { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-count { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
table.training-matrix td.cell { text-align: center; }
tr.section-row th, tr.section-row td { background: #f2f2ee; }
tr.section-row .proc-col, tr.section-row .cover-col { background: #f2f2ee; }
.section-toggle { background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-align: left; }
.at-risk { color: var(--danger); font-weight: 700; font-size: 12px; }
button.tri { width: 26px; height: 26px; border: 1px solid #999; border-radius: 4px; background: #fff; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; color: var(--ink); }
button.tri[aria-pressed="true"] { background: #1a7a1a; border-color: #1a7a1a; color: #fff; }
button.tri[aria-pressed="mixed"] { background: #d9ead9; }
button.tri.changed { outline: 2px dashed #2a6fdb; outline-offset: 1px; }
button.tri:focus-visible, .section-toggle:focus-visible { outline: 3px solid #2a6fdb; outline-offset: 1px; }
.trained-mark { color: #1a7a1a; font-weight: 700; }

/* R1.3 Amendments 03-04: working days on the users list, the availability form. */
td.working-days { white-space: nowrap; }
td.working-days label { display: inline-flex; flex-direction: column; align-items: center; margin-right: 4px; font-size: 12px; }
.availability-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 12px 0; }
.availability-form label { display: flex; flex-direction: column; gap: 2px; }
tr.current td:nth-child(2) { font-weight: 700; }

/* R1.3 Amendment 03 §3: setup notes box. 6 lines of 16px text on a 24px line height (144px)
   plus padding, at a fixed height whether or not there's a note; longer notes scroll inside
   with a fade at the bottom and a More control. */
.setup-notes { position: relative; flex: none; height: calc(144px + 20px); box-sizing: border-box; padding: 10px 14px; background: #fffbe6; border: 1px solid #e0c96a; border-radius: 6px; }
.setup-notes-text { height: 144px; overflow-y: auto; font-size: 16px; line-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.setup-notes.empty { background: #f6f6f4; border-color: #ddd; }
.setup-notes.empty .setup-notes-text { color: var(--muted); }
.setup-notes.overflowing::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 36px; border-radius: 0 0 6px 6px; background: linear-gradient(rgba(255, 251, 230, 0), #fffbe6); pointer-events: none; }
.setup-more { position: absolute; right: 10px; bottom: 8px; z-index: 1; }
.setup-notes-dialog { max-width: 680px; width: calc(100% - 64px); }
.setup-notes-full { white-space: pre-wrap; font-size: 18px; line-height: 28px; max-height: 60vh; overflow-y: auto; margin-bottom: 16px; }
/* Undo last keeps its space while hidden, so Fail / Pass don't change size at the first tap. */
.undo-row .undo-btn[hidden] { display: inline-block !important; visibility: hidden; }

/* R1.3 Amendment 05: the Floor page. Colour-blind-safe tones (Okabe-Ito bluish green,
   orange, vermillion), always with a glyph from 14px up; idle is an empty grey ring; a halo
   means in progress now; a black "!" badge means a flag or blocked. */
.floor-page {
  --fl-none: #009e73; --fl-within: #e69f00; --fl-over: #d55e00; --fl-idle: #9aa0a6;
  position: relative;
}
.floor-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.floor-legend { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.floor-legend li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
/* R1.3 Amendment 07 §3.2: the allocation mode switch, beside the legend. */
.floor-mode { display: inline-flex; align-items: center; gap: 8px; cursor: help; }
.floor-mode-label { font-weight: 600; }
.mode-switch { display: inline-flex; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; }
.mode-switch button { font: inherit; font-size: 14px; padding: 6px 12px; min-height: 36px; border: 0; background: #fff; color: var(--ink); cursor: pointer; }
.mode-switch button + button { border-left: 2px solid var(--line); }
.mode-switch button.active { background: var(--ink); color: #fff; font-weight: 700; }
.mode-switch button:disabled { cursor: not-allowed; }
.mode-switch button:disabled:not(.active) { color: var(--muted); }
.floor-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: 8px; }
.floor-grid-wrap { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 12px 8px; }
.floor-row { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); padding: 6px 0; }
.floor-row::before { content: ""; position: absolute; left: 4%; right: 4%; top: 28px; height: 2px; background: #e3e3e0; }
.floor-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.process-btn { background: none; border: 0; padding: 2px; cursor: pointer; border-radius: 50%; line-height: 0; }
.process-btn:focus-visible { outline: 3px solid #2a6fdb; outline-offset: 2px; }
.process-name { font-size: 12px; line-height: 1.25; text-align: center; max-width: 100%; padding: 0 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.circle { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.circle.idle { border: 3px solid var(--fl-idle); background: #fff; }
.circle.tone-none { background: var(--fl-none); color: #fff; }
.circle.tone-within { background: var(--fl-within); color: #1a1a1a; }
.circle.tone-over { background: var(--fl-over); color: #fff; }
.circle b { font-size: 18px; font-weight: 800; line-height: 1; }
.circle.live.tone-none { box-shadow: 0 0 0 5px rgba(0, 158, 115, .28); }
.circle.live.tone-within { box-shadow: 0 0 0 5px rgba(230, 159, 0, .32); }
.circle.live.tone-over { box-shadow: 0 0 0 5px rgba(213, 94, 0, .3); }
.circle .badge { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: #111; color: #fff; font-style: normal; font-weight: 800; font-size: 11px; line-height: 16px; text-align: center; border: 1.5px solid #fff; }
.circle.mini { width: 16px; height: 16px; }
.circle.mini b { font-size: 11px; }
.circle.mini.idle { border-width: 2px; }
.circle.mini.live { box-shadow: 0 0 0 3px rgba(0, 158, 115, .28); }
.circle.mini .badge { width: 11px; height: 11px; line-height: 11px; font-size: 8px; top: -4px; right: -5px; border-width: 1px; }
.dash { display: inline-block; width: 8px; height: 2px; background: #b5b9be; border-radius: 1px; }
.floor-side { display: flex; flex-direction: column; gap: 16px; }
.floor-side section { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 8px 12px; }
.floor-side h2 { margin: 4px 0 8px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li.need { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #eee; }
.side-list li.need:first-child { border-top: 0; }
.side-note { font-size: 12px; color: var(--muted); }
.side-empty { color: var(--muted); font-size: 13px; margin: 4px 0; }
.floor-orders { margin-top: 20px; }
.order-item { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; display: grid; grid-template-columns: minmax(320px, 1fr) auto; grid-template-areas: "head grid" "note grid"; column-gap: 16px; align-items: center; }
.order-head { grid-area: head; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.order-status { font-size: 12px; border: 1px solid #ccc; border-radius: 10px; padding: 0 6px; }
.order-good { font-size: 12px; color: var(--muted); }
.order-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
.chip-none { background: rgba(0, 158, 115, .14); color: #00694c; }
.chip-within { background: rgba(230, 159, 0, .2); color: #6b4b00; }
.chip-over { background: rgba(213, 94, 0, .14); color: #a33f00; }
.chip-not_started { background: #ececec; color: #444; }
.order-note { grid-area: note; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.mini-grid { grid-area: grid; display: grid; grid-template-columns: repeat(10, 20px); grid-auto-rows: 20px; justify-items: center; align-items: center; }
.mini-slot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.mini-grid .circle.dot { width: 14px; height: 14px; }
.mini-grid .circle.dot b { font-size: 10px; }
.mini-grid .circle.dot.idle { border-width: 2px; }
.mini-grid .circle.dot.live { box-shadow: 0 0 0 3px rgba(0, 0, 0, .15); }
.mini-grid .circle.dot .badge { width: 10px; height: 10px; line-height: 10px; font-size: 8px; top: -4px; right: -5px; border-width: 1px; }
.floor-tooltip { position: absolute; z-index: 30; background: #111; color: #fff; font-size: 12px; line-height: 1.4; padding: 6px 10px; border-radius: 6px; max-width: 280px; pointer-events: none; }
.floor-panel { position: absolute; z-index: 40; width: 340px; background: #fff; border: 1px solid #bbb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding: 10px 14px; }
.floor-panel p { margin: 4px 0; }
.panel-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-right: 28px; position: relative; }
.panel-head h3 { margin: 0; font-size: 16px; }
.panel-sub { font-size: 12px; color: var(--muted); }
.panel-close { position: absolute; right: -6px; top: -4px; background: none; border: 0; font-size: 20px; cursor: pointer; width: 32px; height: 32px; }
.panel-warning { color: #a33f00; font-weight: 700; }
.panel-flags { list-style: none; padding: 0; margin: 6px 0; }
.panel-flags li { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; padding: 4px 0; border-top: 1px solid #eee; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tone-text-within { color: #6b4b00; font-weight: 700; }
.tone-text-over { color: #a33f00; font-weight: 700; }
.danger-btn { background: var(--danger); border-color: var(--danger); color: #fff; }
.pick-list { list-style: none; padding: 0; margin: 8px 0; max-height: 50vh; overflow-y: auto; }
.pick-item { display: block; width: 100%; text-align: left; background: none; border: 1px solid #ddd; border-radius: 6px; padding: 6px 10px; margin-bottom: 4px; cursor: pointer; font: inherit; }
.pick-item:disabled { color: #999; cursor: not-allowed; }
/* §1.8: more than 50 processes: smaller circles, names hidden, shorter rows. */
.floor-page.compact .circle:not(.mini):not(.dot) { width: 22px; height: 22px; }
.floor-page.compact .circle:not(.mini):not(.dot) .badge { width: 11px; height: 11px; line-height: 11px; font-size: 8px; }
.floor-page.compact .floor-row { padding: 3px 0; }
.floor-page.compact .floor-row::before { top: 16px; }
.floor-page.compact .mini-grid .circle.dot { width: 10px; height: 10px; }

/* R1.3 Amendment 08 §1: the Processes page, grouped by section in the Admin's order. */
.ps-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.ps-toolbar input[type="search"] { width: 240px; }
.ps-add-section { display: inline-flex; gap: 6px; }
.ps-status { min-height: 1.4em; margin: 4px 0; font-weight: 600; }
.ps-section { background: #fff; border: 1px solid #ccc; border-radius: 6px; margin: 0 0 10px; }
.ps-head { display: flex; align-items: center; gap: 8px; padding: 4px 8px; }
.ps-head .ps-name { margin: 0; font-size: var(--fs-heading, 16px); }
.ps-count { color: var(--muted); font-size: 12px; }
.ps-chevron { width: 28px; height: 28px; border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--ink); }
.ps-body { border-top: 1px solid #e3e3e0; }
.ps-table { width: 100%; }
.ps-table select { max-width: 200px; }
.ps-empty { margin: 0; padding: 10px 14px; color: var(--muted); font-style: italic; }
.drag-handle { width: 28px; height: 28px; border: 1px solid transparent; border-radius: 4px; background: none; cursor: grab; font-size: 16px; line-height: 1; color: var(--muted); }
.drag-handle:hover:not(:disabled) { border-color: #bbb; color: var(--ink); }
.drag-handle:focus-visible, .ps-chevron:focus-visible { outline: 3px solid #2a6fdb; outline-offset: 1px; }
.drag-handle:disabled { cursor: not-allowed; opacity: .35; }
td.handle-cell { width: 1%; padding-right: 0; }
.tag-inactive { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border: 1px solid var(--muted); border-radius: 10px; color: var(--muted); background: #fff; }
/* The drop indicator: a line where the dragged item will land. */
.ps-drop-target { opacity: .35; box-shadow: inset 0 3px 0 #2a6fdb; }
.ps-section.ps-drop-target { box-shadow: 0 -3px 0 #2a6fdb; }
/* While a section is dragged, every section shows only its header, so it's easy to drop. */
.dragging-sections .ps-body { display: none; }

/* R1.3 Amendment 10: an order's details, under its row on Floor Status and the Orders page.
   Desktop font scale, unchanged by compact mode (§7). */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.od-chevron { width: 28px; height: 28px; border: 1px solid #bbb; border-radius: 4px; background: #fff; font-size: 14px; line-height: 1; cursor: pointer; color: var(--ink); padding: 0; }
.od-chevron:focus-visible { outline: 3px solid #2a6fdb; outline-offset: 1px; }
td.od-chevron-cell { width: 1%; padding-right: 0; }
.od-orders-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.od-time .mode-switch button { font-size: 13px; }
.order-item { grid-template-areas: "head grid" "note grid" "details details"; }
.order-item > .order-details { grid-area: details; }
.order-details { margin: 8px 0 4px; font-size: 14px; }
.od-summary { margin: 0 0 6px; color: var(--muted); }
.od-loading { color: var(--muted); margin: 4px 0; }
.od-error { display: flex; align-items: center; gap: 12px; }
table.od-table, table.od-sessions { width: 100%; background: #fff; }
table.od-table th, table.od-table td { padding: 4px 8px; font-size: 14px; }
table.od-table tbody.od-process > tr:first-child > th { font-weight: 600; border-bottom: 1px solid #ccc; }
tbody.od-not_started > tr:first-child { color: var(--muted); }
tr.od-under > td { padding: 0 8px 8px 32px; border-bottom: 1px solid #ccc; }
table.od-sessions { margin: 4px 0; }
table.od-sessions th { font-size: 12px; color: var(--muted); border-bottom: 1px solid #ddd; padding: 2px 8px; }
table.od-sessions td { border-bottom: 0; padding: 2px 8px; }
tr.od-marks > td { padding: 0 8px 4px 24px; font-size: 13px; color: var(--muted); }
.od-flag { font-size: 13px; padding: 2px 8px; }
tr.od-holder > td { background: #fafaf8; padding: 4px 12px 12px; }

/* R1.3 Amendment 10 §9.2: the version line at the foot of the sign-in page. */
.version-line { margin: 32px 0 0; font-size: 12px; color: var(--muted); }

/* R1.3 Amendment 11 §2.4: an order with nothing arrived yet. Emphasis only: Notes says it. */
tr.queue-not-arrived td { color: var(--muted); }

/* R1.3 Amendment 13 §3.3: add-ons under their original. */
.order-item.order-add-on { margin-left: 32px; border-left: 4px solid #bbb; }
.add-on-row .add-on-ref { padding-left: 24px; }
.add-on-label { color: #555; font-size: 0.9em; }
.combined-line { color: #555; font-size: 0.9em; }
dialog.add-to-order label { display: block; margin: 8px 0; }
dialog.add-to-order label span { display: block; }
dialog.add-to-order input { width: 100%; box-sizing: border-box; }
