/* AV Print Shop
   A small stand-in for the shared design system (prototypes/av-print-shop-v3/av.css): same tokens and class
   names. Simple-first: big type, big buttons, one accent, colour only for status (good · working · wait ·
   today · late), always with an icon and a word. body.app = office · body.tablet = floor tablets (≥ 64 px
   targets, Marathi first) · body.tv = room TVs (always dark, nothing small).
   Modules do NOT edit this file: a module's own src/modules/<name>/style.css is served right after it (classes
   prefixed with the module name). */

:root {
  color-scheme: light;
  --royal: #435D9E; --peri: #7E9FC7; --navy: #1E263E; --cream: #FFF7E1; --blue: #3575AD; --mid: #5476AE;
  --bg: #F4F6FA; --surface: #FFFFFF; --surface-2: #EEF1F6; --surface-3: #E2E7EF; --line: #DEE3EC; --line-strong: #C3CCDB;
  --ink: #141A2B; --ink-2: #444E68; --ink-3: #5B6580;
  --accent: #435D9E; --accent-hover: #374F8B; --accent-ink: #FFFFFF; --accent-soft: #E8EDF8; --accent-soft-ink: #2E4580; --accent-line: #C2CFEA; --focus: #3575AD;
  --good: #17704B; --good-soft: #E1F3EA; --good-line: #A7D8BF;
  --work: #2C62A0; --work-soft: #E4EEF9; --work-line: #B6CCEA;
  --wait: #576078; --wait-soft: #ECEFF4; --wait-line: #CBD1DC;
  --today: #8A5A0B; --today-soft: #FCEFD3; --today-line: #EAC888; --today-solid: #D8951E;
  --late: #B42F24; --late-soft: #FBE6E2; --late-line: #EDB2A9;
  --on-solid: #FFFFFF;
  --mark-l: #7E9FC7; --mark-r: #435D9E;
  --wa-bg: #E9E3D8; --wa-head: #1F4E45; --wa-head-ink: #FFFFFF;
  --font: Inter, 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-head: Poppins, 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mr: 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', 'Kohinoor Devanagari', system-ui, sans-serif;
  --mono: ui-monospace, Consolas, 'SF Mono', Menlo, monospace;
  --r: 16px; --r-sm: 12px; --r-lg: 22px; --tap: 48px; --bar-h: 68px; --rail-w: 104px;
  --shadow: 0 1px 2px #141A2B0F, 0 2px 8px #141A2B0A;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1422; --surface: #161E30; --surface-2: #1C2539; --surface-3: #263049; --line: #283350; --line-strong: #3A4767;
    --ink: #EEF2FA; --ink-2: #BAC3D9; --ink-3: #98A3BE;
    --accent: #91AAE2; --accent-hover: #A9BEEC; --accent-ink: #0E1422; --accent-soft: #1F2C4A; --accent-soft-ink: #C9D6F4; --accent-line: #3A4F80; --focus: #87C9E0;
    --good: #5CD19B; --good-soft: #11332A; --good-line: #23604A;
    --work: #8AB8F2; --work-soft: #142A48; --work-line: #2C4E80;
    --wait: #A6B0C6; --wait-soft: #212A3E; --wait-line: #3A4560;
    --today: #F0BB55; --today-soft: #33280F; --today-line: #6A5122; --today-solid: #E0A43A;
    --late: #FF8C80; --late-soft: #3D1A18; --late-line: #7A3129;
    --on-solid: #0E1422;
    --mark-l: #FFF7E1; --mark-r: #FFF7E1;
    --wa-bg: #0B141A; --wa-head: #1F2C34; --wa-head-ink: #E9EDEF;
    --shadow: 0 1px 2px #00000066;
  }
}
/* TVs: always dark, on the brand navy */
body.tv {
  color-scheme: dark;
  --bg: #1A2238; --surface: #242E49; --surface-2: #2C3755; --surface-3: #36436A; --line: #3A4870; --line-strong: #4B5B88;
  --ink: #F1F4FB; --ink-2: #B9C3DD; --ink-3: #A0ACC9;
  --accent: #91AAE2; --accent-ink: #0E1422; --accent-soft: #1F2C4A;
  --good: #5CD19B; --good-soft: #11332A; --good-line: #23604A;
  --today: #F0BB55; --today-soft: #33280F; --today-line: #6A5122; --today-solid: #E0A43A;
  --late: #FF8C80; --late-soft: #3D1A18; --late-line: #7A3129;
  --mark-l: #FFF7E1; --mark-r: #FFF7E1;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 15px; }
.center { text-align: center; }
.page form, .table-wrap { margin-bottom: 16px; }
.page .row-end form, .page .details form { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }

/* ---------------------------------------------------------------- shell: menu rail (desk) / bottom bar (phone) */
[lang="mr"] { font-family: var(--font-mr); line-height: 1.5; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.app-shell { min-height: 100vh; }
.main-col { min-width: 0; }
.app-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 600; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.av-mark { display: block; width: 40px; height: 20px; flex: none; }
.av-mark .mk-l { fill: var(--mark-l); } .av-mark .mk-r { fill: var(--mark-r); }
.me-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--royal); color: #fff; font: 600 17px/1 var(--font-head); }
.avatar--sm { width: 36px; height: 36px; font-size: 14px; }
.avatar--lg { width: 72px; height: 72px; font-size: 28px; }
.avatar--xl { width: 96px; height: 96px; font-size: 36px; }
.icon { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav-brand, .nav-me { display: none; }
.nav-items { display: flex; justify-content: space-around; max-width: 560px; margin: 0 auto; }
.nav-item { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: var(--bar-h); padding: 6px 4px; color: var(--ink-3); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.2; border-radius: var(--r-sm); }
.nav-item:hover { color: var(--ink); }
.nav-item[aria-current="page"] { color: var(--accent-soft-ink); }
.nav-item[aria-current="page"] .nav-icon { background: var(--accent-soft); border-radius: 999px; box-shadow: 0 0 0 6px var(--accent-soft); }
.main { padding: 24px 16px calc(var(--bar-h) + 48px); }
.page { max-width: 760px; margin: 0 auto; }
.page--wide { max-width: 1200px; }
.bare .main { padding-bottom: 64px; }
.bare-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
@media (min-width: 900px) {
  .app-shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .app-header { display: none; }
  .nav { position: sticky; top: 0; bottom: auto; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 10px 20px; border-top: 0; border-right: 1px solid var(--line); }
  .nav-brand { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 24px; }
  .nav-brand .av-mark { width: 52px; height: 26px; }
  .nav-items { flex-direction: column; gap: 6px; width: 100%; max-width: none; margin: 0; }
  .nav-item { flex: none; min-height: 76px; }
  .nav-item:hover { background: var(--surface-2); }
  .nav-me { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
  .main { padding: 48px 40px 72px; }
}
@media (max-width: 599px) {
  .me-name { display: none; }
  .main { padding-top: 16px; }
}

/* ---------------------------------------------------------------- page head */
.page-head { margin-bottom: 20px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.eyebrow, .hero-eyebrow { color: var(--ink-3); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.page-title { font-size: 28px; margin: 0; }
.page-sub { margin: 6px 0 0; color: var(--ink-2); }
@media (max-width: 560px) { .page-title { font-size: 24px; } }
.section-title { font-size: 20px; margin: 32px 0 12px; }

/* ---------------------------------------------------------------- status chip: colour + icon + word */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1px solid; white-space: nowrap; vertical-align: middle; }
.chip--lg { font-size: 17px; padding: 6px 14px 6px 10px; }
.chip--good, .chip--done { color: var(--good); background: var(--good-soft); border-color: var(--good-line); }
.chip--working { color: var(--work); background: var(--work-soft); border-color: var(--work-line); }
.chip--wait { color: var(--wait); background: var(--wait-soft); border-color: var(--wait-line); }
.chip--today { color: var(--today); background: var(--today-soft); border-color: var(--today-line); }
.chip--late, .chip--blocked { color: var(--late); background: var(--late-soft); border-color: var(--late-line); }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic .fill { fill: currentColor; stroke: none; }
.word { font-weight: 700; }
.word--late { color: var(--late); } .word--today { color: var(--today); } .word--wait { color: var(--wait); } .word--good { color: var(--good); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: var(--r-sm); border: 2px solid transparent; font: 600 17px/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { background: var(--accent-soft); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--lg { min-height: 52px; font-size: 18px; }
.btn--xl { min-height: 64px; font-size: 20px; padding: 0 28px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.is-busy { opacity: .7; pointer-events: none; }

/* ---------------------------------------------------------------- one-line messages */
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin: 0 0 16px; border-radius: var(--r-sm); border: 1px solid; }
.callout .ic { margin-top: 3px; }
.callout--late { color: var(--late); background: var(--late-soft); border-color: var(--late-line); }
.callout--today { color: var(--today); background: var(--today-soft); border-color: var(--today-line); }
.callout--good { color: var(--good); background: var(--good-soft); border-color: var(--good-line); }
.callout--wait, .callout--info { color: var(--ink-2); background: var(--wait-soft); border-color: var(--wait-line); }
.callout a { color: inherit; font-weight: 700; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; margin: 0 0 16px; border-radius: var(--r-sm); background: var(--good-soft); color: var(--good); border: 1px solid var(--good-line); font-weight: 600; }
.toast-text { flex: 1; min-width: 0; }
.toast-undo-form { margin: 0 !important; flex: none; }
.toast-undo { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--accent); font: 700 16px/1 var(--font); text-decoration: underline; cursor: pointer; }
.toast-undo:hover { background: var(--surface-2); }
.toast-undo-form.is-gone { display: none; }
.toast--today { background: var(--today-soft); color: var(--today); border-color: var(--today-line); }
.toast--late { background: var(--late-soft); color: var(--late); border-color: var(--late-line); }
/* Home: a module's section under the top card; an inline confirm (SIMPLE-UX rule 11: no pop-ups) */
.home-section:empty { display: none; }
details.confirm > summary { list-style: none; cursor: pointer; }
details.confirm > summary::-webkit-details-marker { display: none; }
details.confirm[open] > summary { opacity: .55; }
.confirm-body { margin-top: 12px; padding: 12px 16px; border: 1px solid var(--today-line); border-radius: var(--r-sm); background: var(--today-soft); }
.confirm-text { margin: 0 0 12px; font-weight: 600; color: var(--today); }
/* floor tablets: what is kept on the tablet while the network is down (app.js) */
.queue-chip-wrap { margin: 0 0 12px; }
.queue-chip-wrap:empty { display: none; }
.queue-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid; font-weight: 600; }
.queue-chip--today { color: var(--today); background: var(--today-soft); border-color: var(--today-line); }
.queue-chip--late { color: var(--late); background: var(--late-soft); border-color: var(--late-line); }
.trial-banner { display: flex; flex-direction: column; gap: 2px; margin: 0 0 16px; padding: 14px 18px; border-radius: var(--r-sm); color: #fff; background: repeating-linear-gradient(-45deg, #B42F24 0 18px, #9C271E 18px 36px); }
.trial-banner strong { font-size: 20px; letter-spacing: .04em; }
.plain-list { margin: 6px 0 0; padding-left: 20px; }
.plain-list li + li { margin-top: 4px; }

/* ---------------------------------------------------------------- next thing */
.hero { margin: 0 0 24px; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); box-shadow: var(--shadow); }
.hero--today { border-left-color: var(--accent); }
.hero--working { border-left-color: var(--work); }
.hero--good { border-left-color: var(--good); }
.hero--late { border-left-color: var(--late); }
.hero-title { font-size: 24px; margin: 6px 0 4px; }
.hero-sub { margin: 0; color: var(--ink-2); }
.hero-actions { margin-top: 16px; }

/* ---------------------------------------------------------------- steps of a job */
.flow { list-style: none; margin: 0 0 24px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.flow-step + .flow-step { border-top: 1px solid var(--line); }
.flow-link { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 16px; color: var(--ink); text-decoration: none; }
.flow-link:hover { background: var(--surface-2); }
.flow-dot { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); color: var(--ink-3); font-weight: 700; font-size: 15px; }
.is-done .flow-dot { border-color: var(--good); background: var(--good-soft); color: var(--good); }
.is-current .flow-dot { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.is-current .flow-link { background: var(--accent-soft); }
.flow-head { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.flow-title { font-weight: 600; }
.is-todo .flow-title { color: var(--ink-2); font-weight: 500; }
.flow-meta { color: var(--ink-3); font-size: 15px; overflow-wrap: anywhere; }
.row-chev { color: var(--ink-3); font-size: 24px; line-height: 1; }

/* ---------------------------------------------------------------- lists */
.list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.list > li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.row--link:hover { background: var(--surface-2); }
.row--issue { align-items: flex-start; }
.row--best { background: var(--good-soft); }
.row-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; }
.row-icon--late { color: var(--late); background: var(--late-soft); }
.row-icon--today { color: var(--today); background: var(--today-soft); }
.row-icon--wait { color: var(--wait); background: var(--wait-soft); }
.row-icon--good { color: var(--good); background: var(--good-soft); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; overflow-wrap: anywhere; }
.row-sub { color: var(--ink-2); font-size: 15px; overflow-wrap: anywhere; }
.row-end { flex: none; }
.font-sample { display: block; height: 40px; width: auto; max-width: 100%; margin: 4px 0; color: var(--ink); }
.count { color: var(--ink-3); font-weight: 600; }
.list-more { display: block; padding: 14px 16px; font-weight: 600; text-decoration: none; }
details.more summary { display: flex; align-items: center; cursor: pointer; color: var(--accent); font-size: 15px; font-weight: 600; min-height: 44px; }
@media (max-width: 560px) {
  .row { flex-wrap: wrap; }
  .row-end { width: 100%; }
  .row-end .btn { width: 100%; }
  .list .row--link .row-end { width: auto; }
}

/* ---------------------------------------------------------------- cards, details, summary lines */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0 0 16px; box-shadow: var(--shadow); }
.card--quiet { box-shadow: none; background: var(--surface-2); }
.card-title { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.hint { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; }
.links { margin: 16px 0; }
.details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 16px 0; }
.details-summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; cursor: pointer; list-style: none; }
.details-summary::-webkit-details-marker { display: none; }
.details-summary::after { content: '›'; margin-left: auto; font-size: 24px; color: var(--ink-3); transition: transform .15s; }
details[open] > .details-summary::after { transform: rotate(90deg); }
.details-title { font-weight: 600; }
.details-sub { color: var(--ink-3); font-size: 15px; }
.details-body { padding: 0 16px 16px; }
.empty { padding: 32px 16px; text-align: center; color: var(--ink-2); }
.empty-title { font-family: var(--font-head); font-size: 20px; font-weight: 600; }

/* ---------------------------------------------------------------- forms */
.field { margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; border: 0; min-width: 0; } /* top margin: .stack */
.field:first-child { margin-top: 0; }
.stack > .field + .field, .stack > * + .field { margin-top: 20px; }
.stack > input[type="hidden"]:first-child + * { margin-top: 0; }
.field-label { display: block; margin-bottom: 6px; font-weight: 600; }
.input, .select, .textarea { width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 17px/1.4 var(--font); }
.textarea { min-height: 200px; font-family: var(--mono); font-size: 15px; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.input--short { max-width: 260px; }
.input--file { padding: 10px; background: var(--surface-2); }
.static { padding: 10px 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.seg-btn:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 600; cursor: pointer; }
.check input, .seg-btn input { width: 20px; height: 20px; accent-color: var(--accent); }
.upload-progress { font-weight: 600; color: var(--work); }

/* ---------------------------------------------------------------- tables (inside their own scroll box) */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--ink-3); font-size: 14px; font-weight: 600; background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.total td { font-weight: 700; background: var(--surface-2); }

/* ---------------------------------------------------------------- size mapping */
.map-list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.map-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.2fr); gap: 8px 16px; padding: 14px 16px; align-items: center; }
.map-row + .map-row { border-top: 1px solid var(--line); }
.map-row.is-late { background: var(--late-soft); }
.map-row.is-today { background: var(--today-soft); }
.map-label { display: flex; flex-direction: column; }
.map-size { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.map-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.is-late .map-note { color: var(--late); font-weight: 600; }
.is-today .map-note { color: var(--today); }
.map-note .check { margin-left: auto; color: var(--ink); }
@media (max-width: 480px) { .map-row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- layout helpers */
.stack--lg > * + * { margin-top: 24px; }
.stack--sm > * + * { margin-top: 8px; }
.section { margin-top: 32px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.inline-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.page .inline-form, .page .row-end form { margin-bottom: 0; }
.tag { font-size: 15px; color: var(--ink-3); font-weight: 500; }
.strip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); color: var(--ink-2); }
.strip--link { text-decoration: none; color: var(--ink); }
.strip--link:hover { background: var(--surface-3); }
.strip .row-chev { margin-left: auto; }
.link-btn { border: 0; background: none; padding: 0 4px; min-height: 44px; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.row-more { width: 100%; }
.job-details .details + .details { margin-top: 12px; }
/* the job page's own actions under the details ("Cancel job": Suraj before printing, Sid until sent out) */
.job-actions { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 16px; }
.job-action { font-weight: 600; }
.job-action--danger { color: var(--late); }

/* ---------------------------------------------------------------- 5-second line, numbers, tiles */
.band { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--wait-soft); }
.band-icon { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--wait); }
.band-icon .ic { width: 28px; height: 28px; }
.band--good { background: var(--good-soft); } .band--good .band-icon { color: var(--good); }
.band--today { background: var(--today-soft); } .band--today .band-icon { color: var(--today); }
.band--late { background: var(--late-soft); } .band--late .band-icon { color: var(--late); }
.band-title { font-family: var(--font-head); font-size: 28px; font-weight: 600; line-height: 1.15; }
.band-sub { margin-top: 4px; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.stat--link:hover { border-color: var(--accent-line); }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.stat-num { font-family: var(--font-head); font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-word { font-size: 15px; color: var(--ink-3); }
.sdot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--wait); }
.sdot--good { background: var(--good); } .sdot--working { background: var(--work); } .sdot--today { background: var(--today-solid); } .sdot--late { background: var(--late); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 124px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.tile-icon { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tile-label { font-weight: 600; line-height: 1.3; }
.tile-sub { margin-top: -8px; font-size: 15px; color: var(--ink-3); line-height: 1.35; }
.empty-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); color: var(--good); }
.empty-icon .icon { width: 36px; height: 36px; }
.empty-icon--late { background: var(--late-soft); color: var(--late); }
.hero-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.hero--wait { border-left-color: var(--line-strong); }
.bar { display: block; width: 100%; height: 12px; }
.bar-bg { fill: var(--surface-3); }
.bar-fill { fill: var(--good); }
.bar-fill--behind { fill: var(--today-solid); }
.bar-mark { fill: var(--ink); }

/* ---------------------------------------------------------------- bilingual words (core.i18n.bi) */
.bi { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1.3; vertical-align: middle; }
.bi-main[lang="mr"] { font-size: 1.1em; line-height: 1.5; }
.bi-sub { font-size: max(14px, .62em); font-weight: 500; opacity: .85; }
.bi--inline { display: inline; }
.bi--inline .bi-sub { font-size: inherit; }
.bi--inline .bi-sub::before { content: " · "; }

/* ---------------------------------------------------------------- people, log in, PIN pad */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 16px; margin-top: 16px; }
.people--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.person { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 176px; padding: 24px 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-align: center; text-decoration: none; cursor: pointer; }
.person:hover, .person.is-me { border-color: var(--accent); background: var(--accent-soft); }
.person-name { display: flex; flex-direction: column; font-family: var(--font-head); font-size: 21px; font-weight: 600; line-height: 1.2; }
.person-sub { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--ink-3); }
.person--row { flex-direction: row; justify-content: flex-start; min-height: 64px; padding: 10px 14px; text-align: left; border-radius: var(--r); }
.pin { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.input--pin { max-width: 220px; text-align: center; font-size: 28px; letter-spacing: .4em; }
.pin-dots { display: flex; gap: 20px; }
.device-code { font-size: 2.25rem; letter-spacing: 0.15em; text-align: center; margin: 8px 0 16px; }
.pin-dot { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--ink-3); }
.pin-dot.is-filled { background: var(--ink); border-color: var(--ink); }
.pinpad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: min(400px, 100%); }
.pinkey { min-height: 84px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 20px; background: var(--surface); color: var(--ink); font: 600 34px/1 var(--font-head); cursor: pointer; touch-action: manipulation; }
.pinkey:hover { background: var(--surface-2); }
.pinkey--muted { font-size: 22px; color: var(--ink-2); }
.pinkey--ok { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.js .pin .input--pin { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.station-pick { min-height: 56px; }

/* ---------------------------------------------------------------- copy-ready message (WhatsApp fallback) */
.copy-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--wa-bg); }
.copy-box + .copy-box { margin-top: 12px; }
.copy-head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.copy-head .chip { margin-left: auto; }
.copy-text { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 15px/1.45 var(--font); resize: vertical; }
.copy-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copy-box.is-sent { opacity: .75; }

/* =====================================================================
   FLOOR TABLETS · body.tablet
   ===================================================================== */
body.tablet { font-size: 20px; --tap: 64px; }
body.tablet .btn { min-height: 64px; font-size: 20px; border-radius: var(--r); }
body.tablet .btn--xl { min-height: 96px; font-size: 24px; border-radius: 20px; }
body.tablet .chip { font-size: 18px; padding: 6px 14px 6px 10px; }
body.tablet .row { min-height: 84px; }
body.tablet .person { min-height: 200px; }
body.tablet .person-name { font-size: 24px; }
body.tablet .input, body.tablet .select { min-height: 64px; font-size: 20px; }
/* SIMPLE-UX §2 rule 5: every tablet target ≥ 64 px, 16 px apart */
body.tablet .report-btn, body.tablet .link-btn, body.tablet .back-link, body.tablet .details-summary, body.tablet .change-btn, body.tablet .toast-undo { min-height: 64px; }
body.tablet .change-btn { padding: 0 16px; font-size: 20px; }
body.tablet .tablet-nav { gap: 16px; }
body.tablet .tablet-person { gap: 16px; }
.page-title--tablet { font-size: 30px; }
.tablet-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; min-height: 80px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
@media (max-width: 599px) { .tablet-bar { position: static; } }
.tablet-station { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.2; }
.tablet-person { display: flex; align-items: center; gap: 12px; margin-left: auto; font-weight: 600; }
.report-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 20px; border: 2px solid var(--late-line); border-radius: var(--r); background: var(--surface); color: var(--late); font: 700 20px/1.2 var(--font); text-decoration: none; }
.report-btn:hover { background: var(--late-soft); }
.report-btn .icon { width: 26px; height: 26px; }
.tablet-main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 140px; }
.tablet-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.tablet-nav-item { flex: 1 1 0; max-width: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 68px; padding: 4px 8px; border-radius: var(--r); color: var(--ink-2); font: 600 17px/1.2 var(--font); text-decoration: none; text-align: center; }
.tablet-nav-item .icon { width: 28px; height: 28px; }
.tablet-nav-item:hover { background: var(--surface-2); }
.tablet-nav-item[aria-current] { background: var(--accent-soft); color: var(--accent-soft-ink); }
.reasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.reason { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 132px; padding: 16px; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); font-weight: 600; text-align: center; cursor: pointer; }
.reason:hover { border-color: var(--late-line); }
.reason .icon { width: 44px; height: 44px; color: var(--late); }
.reason:has(input:checked) { border-color: var(--late); background: var(--late-soft); }
.reason:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.photo-slot { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border: 2px dashed var(--line-strong); border-radius: 20px; background: var(--surface); text-align: center; cursor: pointer; }
.photo-slot:has(input:valid) { border-style: solid; }
.photo-slot .icon { width: 40px; height: 40px; color: var(--accent); }

/* =====================================================================
   ROOM TVs · body.tv (team totals only; base size 1.8vw ≈ 34 px at 1920 wide)
   ===================================================================== */
.tv-screen { min-height: 100vh; display: flex; flex-direction: column; gap: 1.4vw; padding: 2vw 2.4vw; font-size: clamp(20px, 1.8vw, 60px); line-height: 1.3; }
.tv-head { display: flex; align-items: center; gap: 1.4vw; }
.tv-head .av-mark { width: 3.6em; height: 1.8em; }
.tv-room { font-family: var(--font-head); font-size: 1.5em; font-weight: 600; line-height: 1.15; }
body.tv .tv-room .bi-sub { font-size: .66em; }
body.tv .bi-sub { font-size: .95em; opacity: .8; }
.tv-clock { margin-left: auto; text-align: right; }
.tv-time { display: block; font: 700 2em/1 var(--font-head); font-variant-numeric: tabular-nums; }
.tv-date { display: block; color: var(--ink-2); }
.tv-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.4vw; }
.tv-col { display: flex; flex-direction: column; gap: 1.4vw; min-width: 0; }
.tv-panel { display: flex; flex-direction: column; gap: .7em; min-width: 0; padding: 1.4vw 1.6vw; border-radius: 1.1vw; background: var(--surface); }
.tv-panel--grow { flex: 1; }
.tv-label { font-weight: 600; color: var(--ink-2); }
.tv-big { font: 700 3em/1 var(--font-head); font-variant-numeric: tabular-nums; }
.tv-big small { font-size: .42em; font-weight: 500; color: var(--ink-2); }
.tv-name { font: 600 1.5em/1.2 var(--font-head); }
.tv-row { display: flex; align-items: center; gap: .7em; padding: .45em 0; border-top: 1px solid var(--line); font-size: 1.1em; }
.tv-row:first-of-type { border-top: 0; }
.tv-row-name { flex: 1; min-width: 0; font-weight: 600; }
.tv-row-v { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tv-problem { display: flex; align-items: center; gap: .7em; padding: .55em .8em; border-radius: .6em; background: var(--late-soft); font-size: 1.1em; font-weight: 600; }
.tv-problem .ic { width: 1.5em; height: 1.5em; color: var(--late); }
.tv-problem--today { background: var(--today-soft); } .tv-problem--today .ic { color: var(--today); }
.tv-problem--good { background: var(--good-soft); } .tv-problem--good .ic { color: var(--good); }
body.tv .bar { height: .9em; }
.tv-foot { display: flex; flex-wrap: wrap; gap: .4em 1.6em; color: var(--ink-2); }
.tv-more { color: var(--ink-2); font-weight: 600; }
@media (max-width: 899px) {
  .tv-screen { font-size: 20px; padding: 20px 16px; gap: 16px; }
  .tv-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tv-panel { padding: 16px; border-radius: var(--r); }
}

/* ---------------------------------------------------------------- spacing helpers (last, so they win) */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 32px; }

/* scan with the tablet camera (ui.cameraScan; app.js shows it where the browser can) */
.camera-scan { display: grid; gap: 12px; }
.camera-scan[hidden] { display: none; }
.camera-video { width: 100%; max-height: 50vh; border-radius: 20px; background: #000; }
/* the design page's panel boxes and panel check (Sid 15 Oct: no file-naming by hand) */
.panel-box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.panel-box { display: grid; justify-items: center; gap: 6px; padding: 12px; border: 2px dashed var(--line, #d6dae1); border-radius: 12px; text-align: center; }
.panel-box .input--file { width: 100%; }
.panel-outline { width: 64px; height: 70px; color: var(--ink, #101928); }
.panel-word { font-weight: 800; letter-spacing: .02em; }
.panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.panel-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; border-top: 1px solid var(--line, #e3e6ec); padding-top: 12px; }
.panel-head { display: grid; justify-items: center; gap: 4px; }
.panel-files { display: grid; gap: 8px; }
.panel-team { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.panel-team-name { font-weight: 700; min-width: 120px; }
.panel-file { margin: 0; display: grid; gap: 2px; justify-items: center; max-width: 110px; }
.panel-file img { width: 72px; height: 90px; object-fit: contain; background: #fff; border: 1px solid var(--line, #d6dae1); border-radius: 6px; }
.panel-file figcaption { font-size: 11px; overflow-wrap: anywhere; text-align: center; }
.panel-pair { display: flex; gap: 12px; flex-wrap: wrap; }
.panel-pair figure { margin: 0; display: grid; justify-items: center; gap: 4px; }
.panel-pair img { width: 120px; height: 150px; object-fit: contain; background: #fff; border: 1px solid var(--line, #d6dae1); border-radius: 8px; }

/* ---- module clientlink (src/modules/clientlink/style.css) ---- */
/* clientlink: the client's page (phone width, no menu) and the staff page's approver rows. */
.clientlink-body .page.clientlink { max-width: 520px; margin: 0 auto; }
.clientlink-head { margin: 0 0 16px; padding: 20px; border-radius: var(--r); background: var(--navy); color: var(--cream); }
.clientlink-brand { display: flex; align-items: center; gap: 12px; }
.clientlink-brand .av-mark { width: 48px; height: 24px; }
.clientlink-name { margin: 0; font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.clientlink-tag { margin: 0; font-size: 14px; opacity: .85; }
.clientlink-for { margin: 16px 0 0; font-size: 15px; opacity: .9; }
.clientlink-title { margin: 4px 0 0; font-family: var(--font-head); font-size: 26px; line-height: 1.2; color: var(--cream); }
.clientlink-due { margin: 6px 0 0; font-size: 15px; opacity: .85; }
.clientlink-flag { display: block; margin-top: 2px; color: var(--today); font-size: 14px; font-weight: 600; line-height: 1.35; }
.clientlink-fronts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.clientlink-front { margin: 0; text-align: center; }
.clientlink-front figcaption { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.clientlink-pic { display: block; width: 100%; height: auto; border-radius: var(--r-sm); background: var(--surface-2); }
.clientlink-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.clientlink-player { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.clientlink-player.is-marked { border-color: var(--today-solid); background: var(--today-soft); }
.clientlink-pl-name { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin: 4px 0 0; font-family: var(--font-head); font-size: 15px; }
.clientlink-pl-sub, .clientlink-pl-size { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.35; }
.clientlink-pl-size strong { color: var(--ink); }
.clientlink-need { margin-top: auto; }
.clientlink-need > summary { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.clientlink-need > summary::-webkit-details-marker { display: none; }
.clientlink-need[open] > summary { border-color: var(--today-solid); background: var(--today-soft); color: var(--today); }
.clientlink-note { min-height: 72px; font-family: var(--font); white-space: pre-wrap; }
.clientlink-foot { position: sticky; bottom: 0; z-index: 5; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.clientlink-grow { flex: 1 1 auto; }
.clientlink-end { text-align: center; }
.clientlink-amount { margin: 0; font-family: var(--font-head); font-size: 32px; font-weight: 600; }
.clientlink-qr { display: block; width: 220px; max-width: 100%; height: auto; margin: 8px auto; background: #fff; }
.clientlink-steps { list-style: none; margin: 0; padding: 0; }
.clientlink-steps li { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink-3); }
.clientlink-steps li.is-done { color: var(--good); font-weight: 600; }
.clientlink-steps .icon { width: 22px; height: 22px; }
.clientlink-dot { display: inline-block; width: 14px; height: 14px; margin: 0 4px; border: 2px solid var(--line-strong); border-radius: 50%; }
.clientlink-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.clientlink-photo { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.clientlink-approvers { list-style: none; margin: 0 0 16px; padding: 0; }
.clientlink-approver { padding: 16px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
@media (max-width: 360px) { .clientlink-players { grid-template-columns: 1fr; } }


/* ---- module designflow (src/modules/designflow/style.css) ---- */
/* designflow: the layout choice card, the checklist tick and the metres fields (classes start with designflow-) */
.designflow-ask .btn-row { margin-top: 12px; }
.designflow-ask .inline-form { display: inline-block; }
.designflow-tick { min-height: 48px; font-size: 17px; }
.designflow-metres { width: 7em; display: inline-block; }


/* ---- module dtf (src/modules/dtf/style.css) ---- */
/* dtf: the DTF press tablet and the DTF office pages. Served after public/app.css; classes start with dtf-.
   Tablet: ≥ 64 px targets 16 px apart, the size letter 72 px+, Marathi first (SIMPLE-UX §2 rules 4, 5). */

/* ---------------------------------------------------------------- tablet: now card, rows */
.dtf-tablet .dtf-form { margin: 0; }
.dtf-now-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.dtf-team { margin: 0; font: 700 30px/1.2 var(--font-head); overflow-wrap: anywhere; }
.dtf-left { margin: 0; font: 700 44px/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.dtf-left .bi-sub { font-size: 18px; font-weight: 500; }
.dtf-big { margin: 0; font: 600 24px/1.3 var(--font-head); }
.dtf-h2 { margin: 0; font: 600 24px/1.25 var(--font-head); }
.dtf-setting { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 0; }
.dtf-setting .icon { width: 32px; height: 32px; color: var(--today); }
.dtf-setting-big { font: 700 32px/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.dtf-size { display: inline-grid; place-items: center; min-width: 1.6em; font: 800 40px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.dtf-size--xl { font-size: 96px; min-width: 1.4em; }
.dtf-row-head { display: flex; align-items: center; gap: 20px; }
.dtf-row-head p { margin: 0; }
.dtf-in { margin: 0; font-size: 24px; }
.dtf-in strong { font: 700 32px/1 var(--font-head); }
.dtf-balance { margin: 0; text-align: center; }

/* ---------------------------------------------------------------- steppers (never pre-filled: they start at what was saved) */
.dtf-step { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.dtf-step-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.dtf-step-label .icon { width: 28px; height: 28px; color: var(--late); }
.dtf-stepper { display: inline-flex; align-items: center; gap: 16px; }
.dtf-step-btn { width: 72px; height: 72px; border-radius: 18px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 700 36px/1 var(--font-head); cursor: pointer; }
.dtf-step-btn:active { background: var(--surface-2); }
.dtf-step-btn:focus-visible, .dtf-step-val:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.dtf-step-val { width: 120px; min-height: 72px; border: 2px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: center; font: 700 36px/1 var(--font-head); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.dtf-step-val::-webkit-outer-spin-button, .dtf-step-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------------------------------------------------------- lot check: 3 big ticks */
.dtf-checks { display: grid; gap: 16px; }
.dtf-check { display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 12px 18px; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); font-weight: 600; cursor: pointer; }
.dtf-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dtf-check-box { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border: 2px solid var(--line-strong); border-radius: 12px; color: transparent; }
.dtf-check-box .icon { width: 32px; height: 32px; }
.dtf-check:has(input:checked) { border-color: var(--good-line); background: var(--good-soft); }
.dtf-check:has(input:checked) .dtf-check-box { border-color: var(--good); background: var(--good); color: var(--on-solid); }
.dtf-check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.dtf-reason { min-height: 96px; }
.dtf-reason:has(input:checked) { border-color: var(--late); background: var(--late-soft); }

/* ---------------------------------------------------------------- photos, care */
.dtf-photo { min-height: 160px; }
.dtf-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.dtf-shot { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.dtf-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.dtf-shot figcaption { font-size: 16px; color: var(--ink-2); }
.dtf-retake { display: inline-flex; align-items: center; min-height: 64px; font-weight: 600; }
.dtf-link-btn { min-height: 64px; padding: 0 12px; font-weight: 600; }

/* ---------------------------------------------------------------- office */
.dtf-tabs { margin: 0 0 16px; }
.dtf-tabs .seg-btn { text-decoration: none; color: var(--ink); }
.dtf-tabs .seg-btn.is-current { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.dtf-pos { margin: 0; }
.dtf-pos legend { padding: 0 6px; }
.dtf-opt { justify-content: space-between; width: 100%; min-height: 56px; flex-wrap: wrap; }
.dtf-opt span { flex: 1; min-width: 12em; }


/* ---- module inout (src/modules/inout/style.css) ---- */
/* inout: the desk tablet (goods in / send out). Served after app.css; classes start with inout-.
   Tablet rules (SIMPLE-UX §2): targets ≥ 64 px with 16 px gaps, status = colour + icon + word, red only for "short"
   and the one blocker. No inline styles anywhere (the CSP allows none). */

.inout-head .back-link { display: inline-flex; align-items: center; min-height: 64px; }
.inout-team { font-family: var(--font-head); font-size: 24px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.inout-big { font-family: var(--font-head); font-size: 28px; font-weight: 600; margin: 0; text-align: center; }
.inout-lines { font-size: 20px; }
.inout-lines li { padding: 4px 0; }

/* "काय आले?": 6 big tiles */
.inout-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.inout-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 150px; padding: 18px; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-align: center; text-decoration: none; }
.inout-tile:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.inout-tile .icon { width: 48px; height: 48px; color: var(--accent); }

/* list rows that are links or buttons */
.inout-row .row-title, .inout-row .row-sub { display: block; }
.inout-rowform { margin: 0; }
.inout-rowbtn { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
body.tablet .inout-row { min-height: 84px; }
body.tablet .inout-row .row-title { font-size: 21px; }
body.tablet .list-more { display: flex; align-items: center; min-height: 64px; }

/* big radio tiles (condition, panel, size, how it goes) */
.inout-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 16px; }
.inout-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inout-choices--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.inout-choices--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); }
.inout-choices--sizes { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.inout-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 72px; padding: 10px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; cursor: pointer; }
.inout-choice .icon { width: 32px; height: 32px; color: var(--accent); }
.inout-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 700; }
.inout-choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.inout-sz-tile { font-family: var(--font-head); font-size: 26px; font-weight: 700; }

/* counting: a card per size, a row per panel / colour with − number + */
.inout-size { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.inout-sz { font-family: var(--font-head); font-size: 56px; font-weight: 700; line-height: 1; text-align: center; padding-top: 8px; overflow-wrap: anywhere; }
.inout-cells { display: grid; gap: 16px; }
.inout-cell { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 8px 16px; align-items: center; padding: 12px; border: 2px solid var(--wait-line); border-left-width: 8px; border-radius: 16px; background: var(--surface); }
.inout-cell--good { border-color: var(--good-line); border-left-color: var(--good); background: var(--good-soft); }
.inout-cell--late { border-color: var(--late-line); border-left-color: var(--late); background: var(--late-soft); }
.inout-cell--today { border-color: var(--today-line); border-left-color: var(--today-solid); background: var(--today-soft); }
.inout-cell-name { font-size: 20px; font-weight: 600; }
.inout-states { grid-column: 1 / -1; }
.inout-st { display: none; }
.inout-cell--wait .inout-st--wait, .inout-cell--good .inout-st--good, .inout-cell--late .inout-st--late, .inout-cell--today .inout-st--today { display: inline-flex; }
.inout-stepper { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.inout-step { min-width: 72px; min-height: 72px; border: 2px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--ink); font: 700 34px/1 var(--font-head); cursor: pointer; touch-action: manipulation; }
.inout-step:hover { background: var(--surface-2); }
.inout-num { width: 120px; min-height: 72px; padding: 0 8px; border: 2px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink); font: 700 34px/1 var(--font-head); text-align: center; -moz-appearance: textfield; }
.inout-num::-webkit-outer-spin-button, .inout-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.inout-num::placeholder { color: var(--ink-3); }
.inout-of { font-size: 22px; color: var(--ink-2); white-space: nowrap; }
.inout-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
@media (max-width: 640px) {
  .inout-size { grid-template-columns: 1fr; }
  .inout-sz { text-align: left; font-size: 44px; }
  .inout-cell { grid-template-columns: 1fr; }
  .inout-step { min-width: 64px; min-height: 64px; }
  .inout-num { width: 96px; min-height: 64px; }
}

/* DTF lot: 3 big checks */
.inout-checks { display: grid; gap: 16px; }
.inout-check { display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; }
.inout-check-box { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border: 2px solid var(--line-strong); border-radius: 12px; color: transparent; }
.inout-check-box .icon { width: 32px; height: 32px; }
.inout-check:has(input:checked) { border-color: var(--good); background: var(--good-soft); }
.inout-check:has(input:checked) .inout-check-box { border-color: var(--good); background: var(--good); color: var(--on-solid); }
.inout-check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.inout-reject { margin-top: 32px; }
.inout-paper { min-height: 64px; }

/* photos */
.inout-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.inout-photo { min-height: 140px; justify-content: center; }
.inout-photo.is-have, .inout-photo.is-picked { border-style: solid; border-color: var(--good); }
.inout-picked { font-size: 15px; color: var(--good); overflow-wrap: anywhere; }

/* saved / sent */
.inout-flash { text-align: center; padding: 16px 0; }
.inout-flash .empty-icon .icon { width: 40px; height: 40px; }
.inout-cancel { margin-top: 40px; text-align: center; }

/* send out: the folded automatic checks, the 4 desk steps */
.inout-blocker strong { font-size: 20px; }
.inout-inline { display: inline-block; margin: 8px 0 0; }
.inout-auto .details-summary { min-height: 72px; }
.inout-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.inout-steptile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 150px; padding: 18px; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-decoration: none; }
.inout-steptile .tile-icon .icon { width: 36px; height: 36px; color: var(--accent); }
.inout-steptile.is-done { border-color: var(--good-line); background: var(--good-soft); }
.inout-steptile.is-done .tile-icon .icon { color: var(--good); }
.inout-steptile:hover { border-color: var(--accent-line); }
@media (max-width: 520px) { .inout-steps { grid-template-columns: 1fr; } }
.inout-scan .field-label .icon { width: 28px; height: 28px; }
.inout-rollset { border: 1px solid var(--line); }
.inout-js .inout-hide { display: none; }
/* the job's typed hold reason under the bilingual "थांबवले · On hold" (money people only): a data line, tablet body size */
.inout-hold-why { display: block; margin-top: 4px; font-size: 20px; font-weight: 400; color: var(--ink-2); overflow-wrap: anywhere; }


/* ---- module jobcard (src/modules/jobcard/style.css) ---- */
/* jobcard: checklist ticks, the job card QR, the colour library, the tablet job card. Served after app.css.
   Office targets ≥ 48 px, tablet ≥ 64 px (SIMPLE-UX §2 rule 5). Colours only from the status tokens. */

.jobcard-inline { display: inline; margin: 0 !important; }
.jobcard-grow { flex: 1; min-width: 0; }
.jobcard-h3 { font-family: var(--font-head); font-size: 18px; font-weight: 600; margin: 20px 0 8px; }
.jobcard-link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 4px; font-weight: 600; color: var(--accent); }
.jobcard-pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* key / value pairs (v3 .kv) */
.jobcard-kv { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); gap: 10px 20px; margin: 0 0 16px; }
.jobcard-kv dt { color: var(--ink-3); font-size: 15px; padding-top: 2px; }
.jobcard-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .jobcard-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .jobcard-kv dd { margin-bottom: 10px; } }

/* the checklist: one big tick row per line (the whole row is the button) */
.jobcard-lines { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jobcard-li { display: flex; align-items: center; gap: 8px; }
.jobcard-tick { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.jobcard-tick:hover { border-color: var(--line-strong); }
.jobcard-tick.is-on { border-color: var(--good-line); background: var(--good-soft); }
.jobcard-tick.is-empty { border-style: dashed; }
.jobcard-box { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--line-strong); background: var(--surface); color: transparent; }
.jobcard-box .icon { width: 18px; height: 18px; stroke-width: 3; }
.jobcard-tick.is-on .jobcard-box { background: var(--good); border-color: var(--good); color: var(--on-solid); }
.jobcard-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jobcard-label { font-weight: 600; overflow-wrap: anywhere; }
.jobcard-spec { color: var(--ink-2); overflow-wrap: anywhere; }
.jobcard-by { color: var(--ink-3); font-size: 14px; }
.jobcard-locked { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; color: var(--ink-2); }

/* the read-only list in Details (and on the tablet) */
.jobcard-mini { list-style: none; margin: 0 0 12px; padding: 0; }
.jobcard-mini li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; overflow-wrap: anywhere; }
.jobcard-mini li + li { border-top: 1px solid var(--line); }
.jobcard-mini .ic { flex: none; width: 22px; height: 22px; margin-top: 1px; }

/* forms in one row on a desk, stacked on a phone */
.jobcard-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 16px 0; }
.jobcard-add .field { margin: 0; }
.jobcard-pair { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; margin: 0; display: grid; gap: 12px; }
.jobcard-new { background: var(--surface-2); }
.jobcard-textarea { min-height: 96px; font: 17px/1.4 var(--font); white-space: pre-wrap; resize: vertical; }
.jobcard-notes { margin-top: 16px; }
.jobcard-notes > summary { min-height: var(--tap); display: flex; align-items: center; font-weight: 600; color: var(--accent); cursor: pointer; }

/* the job card QR on the job page */
.jobcard-card { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 16px; }
.jobcard-qr { display: block; width: 136px; height: 136px; border-radius: 8px; border: 1px solid var(--line); }
.jobcard-qr-bg { fill: #FFFFFF; }
.jobcard-qr-fg { fill: #000000; }
.jobcard-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }

/* colour library */
.jobcard-figure { margin: 0 0 16px; }
.jobcard-photo { display: block; max-width: 100%; max-height: 360px; border-radius: var(--r-sm); border: 1px solid var(--line); }

/* floor tablet: the job card summary */
.jobcard-sizes { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.jobcard-sizes li { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 24px; }
.jobcard-size { font-family: var(--font-head); font-weight: 600; font-size: 32px; }
.jobcard-teams li { padding: 4px 0; }
body.tablet .jobcard-kv dt, body.tablet .jobcard-kv dd { font-size: 20px; }
body.tablet .jobcard-mini li { min-height: 48px; font-size: 20px; }
body.tablet .jobcard-floor .callout { font-size: 20px; }


/* ---- module laser (src/modules/laser/style.css) ---- */
/* laser: the laser tablet (Nilesh) and the roll sorting screen. Served after app.css; classes start with laser-.
   Tablet targets ≥ 64 px, 16 px apart (SIMPLE-UX §2 rule 5); the bin colours are the order colour dots printed on the
   fabric (hem.mjs BIN_COLOURS, same order), so they stay the same in dark mode. */

.laser-link { display: inline-flex; align-items: center; gap: 8px; min-height: 64px; }
.laser-link .icon { width: 24px; height: 24px; }
.laser-inline { margin: 0; }
.laser-newroll-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.laser-newroll-row .input { flex: 1 1 220px; max-width: 360px; }
.laser-small { font-size: 14px; }
.laser-big { margin: 0; font: 700 40px/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.laser-title { font-size: 28px; }
.laser-n { font: 700 28px/1 var(--font-head); font-variant-numeric: tabular-nums; }

/* laser ON / OFF */
.laser-session-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.laser-session-time { font: 600 22px/1.3 var(--font-head); font-variant-numeric: tabular-nums; }

/* counts: one row per number, a big − / number / + stepper */
.laser-count-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.laser-count-row--good { border-color: var(--good-line); }
.laser-count-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.laser-count-name .icon { width: 28px; height: 28px; color: var(--ink-3); }
.laser-count-name--sub .icon { color: var(--late); }
.laser-bad { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.laser-bad legend { padding: 0 8px; }
.laser-bad .laser-count-row + .laser-count-row { margin-top: 16px; }
.laser-stepper { display: inline-flex; align-items: center; gap: 16px; }
.laser-step { width: 72px; min-height: 72px; border: 2px solid var(--accent); border-radius: var(--r); background: var(--surface); color: var(--accent); font: 700 32px/1 var(--font); cursor: pointer; }
.laser-step:hover { background: var(--accent-soft); }
.laser-num { width: 120px; min-height: 72px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 700 32px/1 var(--font-head); text-align: center; font-variant-numeric: tabular-nums; }
.laser-balance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.laser-balance .hint { margin: 0; flex-basis: 100%; }
.laser-bal[hidden] { display: none; }
.laser-bal .chip-text { font-size: 18px; }

/* the bin colours (bin n = colour n) */
.laser-dot { width: 28px; height: 28px; flex: none; vertical-align: middle; }
.laser-dot--xl { width: 96px; height: 96px; }
.laser-c { stroke: var(--ink); stroke-width: 1.5; }
.laser-c--1 { fill: #1F5FBF; } .laser-c--2 { fill: #2E8B57; } .laser-c--3 { fill: #F2C200; } .laser-c--4 { fill: #F28C28; }
.laser-c--5 { fill: #7B3FA0; } .laser-c--6 { fill: #E86FA6; } .laser-c--7 { fill: #8B5A2B; } .laser-c--8 { fill: #4FB3E8; }
.laser-c--9 { fill: #222222; } .laser-c--10 { fill: #8C8C8C; } .laser-c--11 { fill: #FFFFFF; } .laser-c--12 { fill: #D7263D; }
/* beyond the 12 colours: no dot in the hem, the panel is sorted by its code */
.laser-c--none { fill: none; stroke-dasharray: 3 3; }
.laser-size--sm { font-size: 32px; min-width: 64px; }

/* the scan result: the bin big, then what the panel is */
.laser-result { border-width: 2px; }
.laser-bin { display: flex; align-items: center; gap: 20px; }
.laser-bin-word { font: 700 48px/1.1 var(--font-head); }
.laser-bin-word .bi-sub { font-size: 24px; }
.laser-chips { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.laser-what { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.laser-size { min-width: 96px; font: 800 72px/1 var(--font-head); text-align: center; }
.laser-panel { font: 600 26px/1.2 var(--font-head); }
.laser-name { font: 600 24px/1.2 var(--font-head); overflow-wrap: anywhere; }
.laser-job-line { margin: 0; color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
.laser-progress { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.laser-code { font: 600 24px/1.2 var(--mono); text-transform: uppercase; }

/* the roll map: orders in roll order, colour + bin + name + one chip */
.laser-map { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.laser-map-item { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.laser-map-item.is-complete { border-color: var(--good-line); background: var(--good-soft); }
.laser-map-bin { font: 700 24px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.laser-map-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }

/* add an order: rows are the buttons */
.laser-picks > li { padding: 0; }
.laser-pick { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }

/* the bad-panel reasons: buttons with the core .reason look */
.laser-reasons .reason { font: inherit; font-weight: 600; }

.laser-note { min-height: 140px; font: 20px/1.4 var(--font); white-space: pre-wrap; }
.laser-actions .btn { width: 100%; }
@media (max-width: 599px) {
  .laser-step { width: 64px; min-height: 64px; }
  .laser-num { width: 96px; min-height: 64px; }
  .laser-bin-word { font-size: 36px; }
  .laser-dot--xl { width: 72px; height: 72px; }
}

/* the timed test sheet and the cutting timer (15 Oct) */
.laser-timer { font-variant-numeric: tabular-nums; }
.laser-test .laser-big .laser-timer { font-size: 64px; }
.laser-timer-card .card-title { margin: 8px 0; }


/* ---- module money (src/modules/money/style.css) ---- */
/* money module (served after app.css). Classes start with money-. Colours come from the core tokens. */
.money-tabs, .money-ent { margin: 16px 0; }
.money-tabs .seg-btn, .money-ent .seg-btn { text-decoration: none; color: var(--ink); font-weight: 500; }
.money-tabs .seg-btn[aria-current="page"], .money-ent .seg-btn[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* label / value pairs (a bill, a quote, a job's money) */
.money-kv { margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.money-kv-row { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: center; padding: 12px 16px; }
.money-kv-row + .money-kv-row { border-top: 1px solid var(--line); }
.money-kv dt { color: var(--ink-2); font-weight: 500; }
.money-kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.money-amt { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.money-amount { font-variant-numeric: tabular-nums; }
.money-files { margin-bottom: 8px; }

/* 5 cheque dots (held = filled) */
.money-dots { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 8px; }
.money-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--wait-line); background: transparent; }
.money-dot.is-on { border-color: var(--good); background: var(--good); }

/* margin bar (SVG: the CSP allows no inline styles) */
.money-bar { display: block; margin: 6px 0 4px; }
.money-bar-svg { display: block; width: 100%; max-width: 320px; height: 8px; }
.money-bar-bg { fill: var(--surface-3); }
.money-bar-fill { fill: var(--good); }
.money-bar-fill.is-low { fill: var(--today-solid); }

.money-cheque-status { display: flex; gap: 8px; align-items: center; }
.money-cheque-status .select { min-width: 130px; }
.money-qr { display: block; width: 200px; height: 200px; image-rendering: pixelated; border: 1px solid var(--line, #ddd); border-radius: 8px; background: #fff; }

/* the quote form's extras / placements rows (Sid 15 Oct rate card) */
.money-extra-row { padding: 12px 0; border-top: 1px solid var(--line); }
.money-extra-row:first-child { border-top: 0; padding-top: 0; }


/* ---- module plan (src/modules/plan/style.css) ---- */
/* plan: the calendar (v3 calendar.html), the machine-care rows and the plan lines on the station tablets.
   Colours come from app.css tokens; status is always chip = colour + icon + word. */

/* office: tabs as links (This week · Today · Machine care) */
.plan-tabs { margin-bottom: 4px; }
.plan-tabs .seg-btn { color: var(--ink); text-decoration: none; font-weight: 600; }
.plan-tabs .seg-btn[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-soft-ink); }

/* this week: 6 day cards (stacked on a phone) */
.plan-week { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.plan-day { display: flex; flex-direction: column; gap: 6px; min-height: 132px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.plan-day:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.plan-day.is-today { border: 2px solid var(--accent); }
.plan-day.is-done { background: var(--surface-2); }
.plan-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-weight: 600; }
.plan-day-word { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.plan-day.is-today .plan-day-word { color: var(--accent); }
.plan-ev { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.plan-ev .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ink-3); }
.plan-sun { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.plan-sun .icon { width: 18px; height: 18px; }
.plan-links { gap: 20px; }
.plan-links a { font-weight: 600; }
.plan-when { display: inline-block; min-width: 7.2em; color: var(--ink-3); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-row--done { opacity: .72; }
.plan-off { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.plan-moves { display: inline-flex; gap: 8px; margin-left: 8px; }
.plan-moves .btn { min-height: 44px; padding: 0 12px; }
.plan-kv { display: grid; gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.plan-kv > div { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 12px; padding: 12px 16px; }
.plan-kv > div + div { border-top: 1px solid var(--line); }
.plan-kv dt { color: var(--ink-3); font-weight: 600; }
.plan-kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .plan-kv > div { grid-template-columns: 1fr; gap: 2px; } }

/* floor tablets: the machine tab (≥ 64 px targets, 16 px apart) */
.plan-machine .card-title { display: flex; align-items: center; gap: 10px; }
.plan-h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; }
.plan-tab-big { margin: 0; font: 600 28px/1.3 var(--font-head); }
.plan-tab-line { display: flex; align-items: center; gap: 10px; margin: 0; }
.plan-tab-line .icon { flex: none; color: var(--ink-3); }
body.tablet .plan-done { min-height: 64px; gap: 8px; }
body.tablet .plan-stop-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 8px; }
.plan-stop .btn { margin-top: 8px; }
.plan-stop-form { margin-top: 8px; }

/* TVs */
.plan-tv-line { color: var(--ink-2); font-weight: 600; }
.plan-msg { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 0; }

/* a placeholder the plan measured from real work (Plan settings) */
.plan-measured { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }


/* ---- module press (src/modules/press/style.css) ---- */
/* press: the Monti tablet, the press-room TV panels and the Pressing page. Served after public/app.css.
   Tablet: ≥ 64 px targets 16 px apart, the size letter 72 px+, Marathi first (SIMPLE-UX §2 rules 4, 5). */

/* ---------------------------------------------------------------- now card */
.press-now-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.press-sheet-word { font-weight: 600; color: var(--ink-2); }
.press-team { margin: 0; font: 700 30px/1.2 var(--font-head); letter-spacing: .02em; overflow-wrap: anywhere; }
.press-left { margin: 0; font: 700 44px/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.press-left .bi-sub { font-size: 18px; font-weight: 500; }
.press-small { font-size: 15px; }
.press-big { margin: 0; font: 700 32px/1.2 var(--font-head); font-variant-numeric: tabular-nums; }
.press-h2 { margin: 0; font: 600 24px/1.25 var(--font-head); display: flex; align-items: center; gap: 10px; }
.press-h2 .icon { width: 28px; height: 28px; }
.press-empty { padding: 24px 0 8px; }
/* a text link on the tablet is still a 64 px target (SIMPLE-UX rule 5) */
.press-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 64px; font-weight: 600; }
.press-link .icon { width: 28px; height: 28px; }
/* the Monti settings of the job's fabric (read-only: Sid sets them) */
.press-settings { display: flex; flex-direction: column; gap: 4px; }
.press-settings p { margin: 0; }
.press-settings-nums { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 700 24px/1.25 var(--font-head); }

/* ---------------------------------------------------------------- the sheet's panels as tiles */
.press-sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.press-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 16px; }
.press-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; padding: 14px 10px; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-align: center; text-decoration: none; }
.press-tile:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.press-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.press-tile--bad { border-color: var(--today-line); background: var(--today-soft); }
.press-size { font: 800 72px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.press-size--xl { font-size: 96px; min-width: 1.4em; text-align: center; }
.press-panel { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.press-panel .icon { width: 28px; height: 28px; color: var(--accent); flex: none; }
.press-panel--lg { font-size: 24px; }
.press-panel--lg .icon { width: 36px; height: 36px; }
.press-name { font-weight: 700; font-size: 20px; overflow-wrap: anywhere; }
.press-name--lg { margin: 0; font-size: 28px; }
.press-tile .chip { max-width: 100%; }
.press-panel-head { display: flex; align-items: center; gap: 20px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }

/* ---------------------------------------------------------------- scan, photos */
.press-code { font: 600 24px/1.3 var(--mono); letter-spacing: .02em; }
.press-photo-btn { cursor: pointer; }
.press-proof-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.press-proof-card p { margin: 0; }
.press-proof { display: inline-flex; align-items: center; gap: 8px; min-height: 64px; font-weight: 600; }
.press-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.press-shot { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.press-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.press-shot figcaption { font-size: 16px; color: var(--ink-2); }
.press-count { font-size: 28px; text-align: center; }

/* ---------------------------------------------------------------- the Monti session bar (tablet + TV) */
.press-session-wrap { display: flex; flex-direction: column; gap: 6px; }
.press-session { display: block; width: 100%; height: 40px; border-radius: 10px; overflow: hidden; }
body.tv .press-session { height: 1.6em; }
.press-session-bg { fill: var(--surface-2); }
.press-session-solar { fill: var(--good-soft); stroke: var(--good-line); stroke-width: .4; }
.press-session-heat { fill: var(--today-solid); }
.press-session-press { fill: var(--work); }
.press-session-off { fill: var(--wait-line); }
.press-session-now { fill: var(--ink); }
.press-scale { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
body.tv .press-scale { font-size: .95em; } /* SIMPLE-UX §2 rule 4: ≥ 32 px on a 1080p TV (34.6 × .95) */
.press-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; color: var(--ink-2); }
body.tv .press-legend { font-size: 1em; } /* its English line (.bi-sub .95em) stays ≥ 32 px */
.press-key { display: inline-flex; align-items: center; gap: 8px; }
.press-key::before { content: ''; display: inline-block; width: .9em; height: .9em; border-radius: 3px; background: var(--surface-2); }
.press-key--heat::before { background: var(--today-solid); }
.press-key--press::before { background: var(--work); }
.press-key--off::before { background: var(--wait-line); }
.press-key--solar::before { background: var(--good-soft); border: 1px solid var(--good-line); }
.press-tv-line { color: var(--ink-2); font-weight: 600; }


/* ---- module print (src/modules/print/style.css) ---- */
/* print: the printer tablet, the print-room TV panels and the Print room page. Served after public/app.css.
   Tablet: ≥ 64 px targets 16 px apart, Marathi first (SIMPLE-UX §2 rules 4, 5). No inline styles (CSP). */

/* ---------------------------------------------------------------- cards on the tablet */
.print-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.print-h { margin: 0; font: 600 26px/1.25 var(--font-head); }
.print-h2 { margin: 0; font: 600 22px/1.25 var(--font-head); display: inline-flex; align-items: center; gap: 10px; }
.print-h2 .icon { width: 28px; height: 28px; color: var(--accent); flex: none; }
.print-job { margin: 0; font: 700 30px/1.2 var(--font-head); overflow-wrap: anywhere; }
.print-big { margin: 0; font: 700 28px/1.25 var(--font-head); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.print-small { font-size: 15px; color: var(--ink-3); }
.print-gap { margin: 0; font-weight: 700; }
.print-wait { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 64px; color: var(--ink-2); font-weight: 600; }
.print-wait .icon { width: 28px; height: 28px; flex: none; }
.print-auto { margin: 0; color: var(--ink-2); font-weight: 600; }
.print-w { display: inline-block; min-width: 3ch; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }
.print-w--lg { font: 800 40px/1 var(--font-head); }

/* a text link on the tablet is still a 64 px target (SIMPLE-UX rule 5) */
.print-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 64px; font-weight: 600; }
.print-link .icon { width: 28px; height: 28px; flex: none; }
.print-links { display: flex; flex-wrap: wrap; gap: 16px 32px; }

/* the queue list: greyed rows (on hold, no file yet) are not links */
.print-row { min-height: 84px; }
.print-row--held { opacity: .55; }
.print-more { min-height: 64px; display: flex; align-items: center; }

/* ---------------------------------------------------------------- picking a roll */
.print-picks, .print-widths { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.print-pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; padding: 12px; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); font-weight: 600; text-align: center; cursor: pointer; }
.print-pick--w { min-height: 88px; }
.print-pick:hover { border-color: var(--accent-line); }
.print-pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-soft-ink); }
.print-pick:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.print-pick-w { font: 800 32px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.print-fieldset { border: 0; padding: 0; margin: 0; }
.print-metres { font: 700 36px/1.2 var(--font-head); font-variant-numeric: tabular-nums; max-width: 12ch; }
body.tablet .print-metres { min-height: 80px; }

/* ---------------------------------------------------------------- machine checks */
.print-photo { display: block; max-width: 320px; }
.print-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--surface-2); }

/* ---------------------------------------------------------------- the print-room TV */
.print-tv-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3em 1em; }
.print-tv-meta { color: var(--ink-2); font-weight: 600; }
.print-tv-w { display: inline-block; min-width: 2.6em; font-weight: 800; font-variant-numeric: tabular-nums; }
body.tv .tv-row .chip { font-size: .85em; vertical-align: middle; } /* ≥ 32 px on a 1080p TV (34.6 × 1.1 × .85) */

/* ---------------------------------------------------------------- office */
.print-pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 15px; }
.print-width-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 16px; }
/* PRINT LOCK (Sid 15 Oct): the placement BIG on Renuka's Send card, a small picture of each panel */
.print-placement { margin: 0; font: 800 56px/1.05 var(--font-head); letter-spacing: .02em; overflow-wrap: anywhere; }
.print-thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.print-thumb { margin: 0; display: grid; justify-items: center; gap: 4px; }
.print-thumb img { width: 96px; height: 120px; object-fit: contain; background: #fff; border: 1px solid var(--line, #d6dae1); border-radius: 8px; }
.print-thumb figcaption { font: 700 16px/1.2 var(--font-head); }


/* ---- module reports (src/modules/reports/style.css) ---- */
/* reports: Team numbers, My numbers, Sid's daily report, the TV "Today" panel. Tokens from app.css only. */
.reports-range { margin: 0 0 16px; }
.reports-seg { text-decoration: none; color: var(--ink); }
.reports-seg.is-current { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.reports-days { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 24px 0 8px; font-weight: 600; }
.reports-days a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.reports-daily { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 24px; }
@media (min-width: 1000px) { .reports-daily { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); } }
.reports-wa:empty { display: none; }
.reports-sub { font-size: 17px; margin: 20px 0 8px; }
.reports-sub:first-child { margin-top: 0; }
.reports-preview .copy-head .chip { margin-left: auto; }
/* floor tablet: My numbers (≥ 64 px targets come from body.tablet) */
body.tablet .reports-tstat .stat-num { font-size: 40px; }
/* room TV: the default "Today" panel */
.reports-tv-clock { font-size: 4.2em; }
.reports-tv-date { margin-bottom: .4em; }


/* ---- module rollruns (src/modules/rollruns/style.css) ---- */
/* rollruns: the bin colour dots (the generator's BIN_COLOURS, bin 1 first) and the move screen's choices */
.rollruns-dot { width: 24px; height: 24px; flex: none; vertical-align: middle; }
.rollruns-c { stroke: var(--ink); stroke-width: 1.5; }
.rollruns-c--1 { fill: #1F5FBF; } .rollruns-c--2 { fill: #2E8B57; } .rollruns-c--3 { fill: #F2C200; } .rollruns-c--4 { fill: #F28C28; }
.rollruns-c--5 { fill: #7B3FA0; } .rollruns-c--6 { fill: #E86FA6; } .rollruns-c--7 { fill: #8B5A2B; } .rollruns-c--8 { fill: #4FB3E8; }
.rollruns-c--9 { fill: #222222; } .rollruns-c--10 { fill: #8C8C8C; } .rollruns-c--11 { fill: #FFFFFF; } .rollruns-c--12 { fill: #D7263D; }
.rollruns-c--none { fill: none; stroke-dasharray: 3 3; }
.rollruns-row { gap: 12px; }
.rollruns-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.rollruns-choice + .rollruns-choice { margin-top: 8px; }
.rollruns-choice input { width: 20px; height: 20px; }


/* ---- module stock (src/modules/stock/style.css) ---- */
/* Purchases & stock (module stock): served after app.css. Colours come from the core tokens; classes start with stock-. */

/* the 4 tabs: Purchases · Stock · Goods in · Suppliers (links, ≥ 48 px, the current one filled) */
.stock-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.stock-tab { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; }
.stock-tab:hover { background: var(--surface-2); }
.stock-tab[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-soft-ink); }

/* the inline "are you sure" for approving purchases (SIMPLE-UX rule 11: inside the page, never confirm()) */
.stock-confirm { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.stock-confirm-text { margin: 0; font-weight: 600; font-size: 18px; }
.stock-confirm form { margin: 0; }

/* a level bar under a row title (the mark = the order level) */
.stock-bar { margin: 6px 0 2px; max-width: 320px; }
.stock-bar .bar { display: block; width: 100%; height: 10px; }

/* facts inside Details */
.stock-kv { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); gap: 10px 20px; margin: 0; }
.stock-kv dt { color: var(--ink-3); font-size: 15px; padding-top: 2px; }
.stock-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .stock-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .stock-kv dd { margin-bottom: 10px; } }

/* forms: item checkboxes for a supplier, one purchase line per fieldset */
.stock-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.stock-checks .check { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); }
.stock-line { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.stock-line .field-label { margin-top: 8px; }


/* ---- module whatsapp (src/modules/whatsapp/style.css) ---- */
/* whatsapp module: To send groups, the reason the Cloud API left a message for copying, message previews
   (WhatsApp bubble look, like the v3 prototype's .wa), the text editor. Served after public/app.css. */
.whatsapp-group { display: flex; flex-direction: column; gap: 12px; }
.whatsapp-group + .whatsapp-group { margin-top: 8px; }
.whatsapp-group-title { margin: 0; font-size: 20px; }
.whatsapp-group-title a { color: inherit; }
.whatsapp-group-title .muted { font-size: 15px; font-weight: 400; }
.whatsapp-group .hint { margin: -6px 0 0; }
.whatsapp-msg + .whatsapp-msg { margin-top: 12px; }
.whatsapp-why { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; color: var(--ink-2); }
.whatsapp-strip { justify-content: space-between; }
.whatsapp-strip .chip { margin-left: auto; }
.whatsapp-bubble { max-width: 520px; padding: 14px; border-radius: var(--r); background: var(--wa-bg, #E9E3D8); }
.whatsapp-bubble-text { margin: 0; padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--surface); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.45; }
.whatsapp-bubble[lang="mr"] .whatsapp-bubble-text { font-family: var(--font-mr); font-size: 17px; line-height: 1.5; }
.whatsapp-bubble + .whatsapp-bubble { margin-top: 12px; }
.whatsapp-bubble-time { display: block; margin-top: 6px; text-align: right; font-size: 14px; color: var(--ink-3); }
.whatsapp-textarea { min-height: 220px; white-space: pre-wrap; }
.whatsapp-textarea[lang="mr"] { font-family: var(--font-mr); font-size: 17px; }

/* To send: Yours · All (Sid and Suraj) */
.whatsapp-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.whatsapp-filter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.whatsapp-filter:hover { border-color: var(--ink-3); color: var(--ink); }
.whatsapp-filter[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }


/* ---- module work (src/modules/work/style.css) ---- */
/* work module: jobs board, clients, tasks, Today, Team. Classes start with work-; colours are core tokens only. */
.work-summary { gap: 8px 18px; }
.work-sum { display: inline-flex; align-items: center; gap: 8px; }
.work-group { margin-top: 20px; }
.work-group-title { display: flex; align-items: center; gap: 8px; margin: 20px 0 8px; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.work-more { margin-top: 4px; }
.work-more > .list, .work-more > .work-cards { margin-top: 8px; }

/* search + filter chips (v3 jobs.html) */
.work-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.work-search { position: relative; flex: 1 1 220px; min-width: 0; }
.work-search .work-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.work-search .input { min-height: 52px; padding-left: 46px; border-radius: 14px; }
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.work-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.work-filter:hover { border-color: var(--ink-3); color: var(--ink); }
.work-filter[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.work-filter-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; border: 1px solid currentColor; display: inline-grid; place-items: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.work-filter-x { width: 16px; height: 16px; }
.work-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); }
.work-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* why a job is stuck: one line under its row, the button only for its owner */
.work-why { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 16px 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); }
.work-why > .icon { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.work-why-text { flex: 1 1 160px; min-width: 0; font-weight: 600; }
.work-why-end { flex: none; display: flex; align-items: center; gap: 8px; }
.work-owner { font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* board by step: columns stack on a phone */
.work-board { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
@media (min-width: 900px) { .work-board { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.work-col { min-width: 0; padding: 12px; border-radius: var(--r); background: var(--surface-2); }
.work-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 4px 12px; font-size: 15px; font-weight: 600; }
.work-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.work-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.work-card:hover { border-color: var(--accent-line); }
.work-card-title { font-weight: 600; line-height: 1.3; }
.work-card-sub { font-size: 14px; color: var(--ink-3); }

/* tasks */
.work-with { margin: 0; font-weight: 600; color: var(--ink-2); }
.work-message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.work-history li { padding: 4px 0; }
.work-when { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-right: 6px; }
.work-kv { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.work-kv dt { color: var(--ink-3); font-size: 15px; }
.work-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.work-give .btn-row { margin-top: 8px; }
.work-count { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.work-verb { margin-left: auto; font-weight: 600; color: var(--accent); }
.work-strip { flex-wrap: wrap; gap: 8px 20px; }
.work-strip-icon { width: 18px; height: 18px; }
.work-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.work-msg { white-space: pre-wrap; font-family: var(--font); font-size: 17px; min-height: 140px; }
.work-token { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.work-token .copy-text { flex: 1 1 240px; min-height: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 420px) { .work-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .work-kv dd { margin-bottom: 8px; } }

