@font-face {
  font-family: "Inter";
  src: url("brand/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  /* ChromaLynx brand */
  --brand-ink: #212633; --brand-orange: #ff8f1f; --brand-pink: #f41157;
  /* Surfaces and text */
  --canvas: #f4f5f8; --surface: #ffffff; --surface-2: #f7f8fa; --surface-3: #eceef3;
  --ink: #212633; --ink-2: #565d6d; --ink-3: #6e7585; --rule: #e3e5eb; --rule-strong: #c9cdd6;
  --side: #171a24; --side-2: #232735; --side-ink: #c4c8d4; --side-muted: #848a9b;
  --link: #2a4bb8; --link-hover: #1e3a96;
  /* Status colours are reserved for due-date state and always appear with an icon and a word. */
  --good: #137a4b; --good-soft: #e4f5ec;
  --soon: #94570a; --soon-soft: #fdf1dd;
  --overdue: #c01c30; --overdue-soft: #fde8ea;
  --none: #6e7585; --none-soft: #eceef3;
  --wa: #128c7e;
  --radius: 10px; --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(23, 26, 36, .05), 0 1px 3px rgba(23, 26, 36, .04);
  --shadow-lg: 0 8px 28px rgba(23, 26, 36, .14);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14.5px; line-height: 1.5;
  font-feature-settings: "cv11", "ss03";
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0; font-weight: 650; letter-spacing: -.018em; }
h2 { font-size: .98rem; margin: 0; font-weight: 620; letter-spacing: -.006em; }
p { margin: 0 0 .6rem; }
svg.icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--ink-2); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; border-radius: 3px; }

/* Shell */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--side); color: var(--side-ink); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 18px 12px 12px; }
.side-logo { display: block; padding: 2px 8px 18px; }
.side-logo img { display: block; width: 156px; height: auto; }
.nav-label { font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--side-muted); padding: 14px 10px 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin-bottom: 1px; border-radius: var(--radius-sm); color: var(--side-ink); font-size: .93rem; font-weight: 480; position: relative; }
.sidebar nav a:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: var(--side-2); color: #fff; font-weight: 580; }
.sidebar nav a.active::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--brand-orange), var(--brand-pink)); }
.account { margin-top: auto; padding: 12px 10px 2px; border-top: 1px solid var(--side-2); font-size: .85rem; display: flex; gap: 10px; align-items: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--side-2); color: #fff; display: grid; place-items: center; font-weight: 620; font-size: .82rem; flex: none; }
.account-name { color: #fff; font-weight: 550; line-height: 1.25; }
.account a, .account .link-button { color: var(--side-muted); }
.account a:hover, .account .link-button:hover { color: #fff; }
.account form { display: inline; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.shell { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); padding: 10px 28px; display: flex; align-items: center; gap: 12px; }
.topbar-logo { display: none; }
.topbar-logo img { display: block; height: 22px; width: auto; }
.global-search { position: relative; flex: 1; max-width: 460px; }
.global-search svg { position: absolute; left: 10px; top: 10px; color: var(--ink-3); pointer-events: none; }
.global-search input { padding-left: 34px; background: var(--surface-2); border-color: var(--rule); }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
main { padding: 24px 28px 56px; width: 100%; max-width: 1360px; }
.btn.menu-toggle { display: none; padding: 7px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.page-head .sub { color: var(--ink-2); margin-top: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 5px; min-width: 200px; z-index: 30; }
.dropdown-menu a { display: flex; gap: 9px; align-items: center; padding: 7px 9px; border-radius: 6px; color: var(--ink); font-size: .9rem; }
.dropdown-menu a:hover { background: var(--surface-3); text-decoration: none; color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 13px; min-height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 560; font-size: .9rem; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 1px rgba(23, 26, 36, .04); }
.btn:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); border-color: var(--ink-3); }
.btn-primary { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: #0f121b; border-color: #0f121b; color: #fff; }
.btn-danger { color: var(--overdue); }
.btn-small { padding: 3px 9px; min-height: 29px; font-size: .82rem; }
.btn-small svg.icon { width: 14px; height: 14px; }
.btn-wa { color: var(--wa); }
.btn-wa:hover { color: var(--wa); }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow); }
.panel-head { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.panel-body { padding: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid-2 > .panel { margin-bottom: 0; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.dash-side > .panel:last-child, .dash-main > .panel:last-child { margin-bottom: 0; }
.empty { padding: 26px 16px; color: var(--ink-2); text-align: center; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 13px 15px; color: var(--ink); box-shadow: var(--shadow); }
.tile:hover { border-color: var(--rule-strong); text-decoration: none; color: var(--ink); box-shadow: 0 2px 8px rgba(23, 26, 36, .08); }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile b { font-size: 1.85rem; line-height: 1.1; font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: -.02em; }
.tile span.label { font-size: .84rem; color: var(--ink-2); line-height: 1.35; }
.tile-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); }
.tile.overdue .tile-icon { background: var(--overdue-soft); color: var(--overdue); }
.tile.soon .tile-icon { background: var(--soon-soft); color: var(--soon); }

/* Calibration status bar */
.statusbar { display: flex; gap: 2px; height: 12px; margin-bottom: 14px; }
.statusbar i { display: block; min-width: 6px; }
.statusbar i:first-child { border-radius: 4px 0 0 4px; }
.statusbar i:last-child { border-radius: 0 4px 4px 0; }
.statusbar i:only-child { border-radius: 4px; }
.seg-good { background: var(--good); } .seg-soon { background: #d98a16; } .seg-overdue { background: var(--overdue); } .seg-none { background: var(--rule-strong); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 620; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th { text-align: left; font-size: .74rem; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; color: var(--ink-3); padding: 9px 16px; border-bottom: 1px solid var(--rule); background: var(--surface-2); white-space: nowrap; }
th.num { text-align: right; }
td { padding: 11px 16px; border-bottom: 1px solid var(--surface-3); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td .sub { display: block; font-size: .84rem; color: var(--ink-2); }
.panel > .table-wrap:first-child table thead th:first-child { border-top-left-radius: var(--radius); }
.panel > .table-wrap:first-child table thead th:last-child { border-top-right-radius: var(--radius); }

/* Badges */
.badge { display: inline-flex; gap: 4px; align-items: center; padding: 2px 8px 2px 6px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.badge svg.icon { width: 12px; height: 12px; stroke-width: 2.4; }
.badge-overdue { background: var(--overdue-soft); color: var(--overdue); }
.badge-soon { background: var(--soon-soft); color: var(--soon); }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-upcoming, .badge-muted { background: var(--none-soft); color: var(--ink-2); }

/* Key dates on a calibration */
.key-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; }
.key-dates > div { padding: 16px 18px; border-right: 1px solid var(--rule); min-width: 0; }
.key-dates > div:last-child { border-right: 0; }
.key-dates .label { font-size: .8rem; color: var(--ink-2); font-weight: 520; }
.key-dates .date { font-size: 1.4rem; font-weight: 650; letter-spacing: -.015em; font-variant-numeric: tabular-nums; margin: 3px 0 6px; }

/* Definition grid */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 13px 18px; margin: 0; }
.facts dt { font-size: .78rem; color: var(--ink-3); font-weight: 520; }
.facts dd { margin: 1px 0 0; overflow-wrap: anywhere; white-space: pre-line; font-weight: 500; }

.cmyk th:not(:first-child), .cmyk td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

/* Forms */
.form-panel { max-width: 900px; }
.form-section { padding: 16px; border-bottom: 1px solid var(--rule); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h2 { margin-bottom: 12px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 13px 16px; }
.field label { display: block; font-size: .84rem; font-weight: 560; margin-bottom: 4px; }
.field .help { font-size: .79rem; color: var(--ink-2); margin-top: 4px; }
.field .errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--overdue); font-size: .83rem; font-weight: 500; }
.field-wide { grid-column: 1 / -1; }
.field-check { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; align-self: end; min-height: 36px; }
.field-check label { margin: 0; }
.field-check .help, .field-check .errorlist { flex-basis: 100%; }
input, select, textarea { width: 100%; font: inherit; padding: 7px 10px; min-height: 36px; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand-ink); box-shadow: 0 0 0 3px rgba(255, 143, 31, .25); }
input[type=checkbox] { width: 17px; height: 17px; min-height: 0; padding: 0; accent-color: var(--brand-ink); }
input[type=file] { padding: 5px; }
.form-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--rule); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.form-errors { color: var(--overdue); padding: 10px 16px; background: var(--overdue-soft); border-radius: var(--radius) var(--radius) 0 0; }
.form-errors ul { margin: 0; padding: 0; list-style: none; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filter-bar input[type=search], .filter-bar select { width: auto; min-width: 220px; }
.segmented { display: inline-flex; background: var(--surface-3); padding: 2px; border-radius: 8px; }
.segmented a { padding: 3px 11px; border-radius: 6px; color: var(--ink-2); font-size: .84rem; font-weight: 560; }
.segmented a:hover { text-decoration: none; color: var(--ink); }
.segmented a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 26, 36, .14); }
.preview { background: #fff7ec; border: 1px solid #fbdcb5; border-radius: var(--radius-sm); padding: 11px 13px; margin-bottom: 13px; }
.preview b { font-variant-numeric: tabular-nums; }
.preview[hidden] { display: none; }
.lines th { background: none; padding: 4px 6px; }
.lines td { padding: 5px 6px; border: 0; }
.lines tbody tr:hover { background: none; }
.lines input[type=number] { min-width: 90px; }
.lines input[type=text] { min-width: 220px; }
details.confirm { display: inline-block; }
details.confirm summary { list-style: none; cursor: pointer; }
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm[open] summary { margin-bottom: 6px; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.messages li { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--good-soft); color: var(--good); font-weight: 540; }
.messages li.error { background: var(--overdue-soft); color: var(--overdue); }
.messages li.warning { background: var(--soon-soft); color: var(--soon); }

/* WhatsApp */
.setup-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.template-box { background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 11px 13px; margin-bottom: 10px; }
.template-box code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; overflow-wrap: anywhere; }
.chat { display: grid; gap: 8px; padding: 14px 16px; }
.bubble { max-width: 82%; padding: 8px 11px; border-radius: 10px; font-size: .9rem; overflow-wrap: anywhere; }
.bubble-out { justify-self: end; background: #e7f6f2; }
.bubble-in { justify-self: start; background: var(--surface-3); }
.bubble small { display: block; color: var(--ink-2); font-size: .75rem; margin-top: 2px; }
.bubble.failed { background: var(--overdue-soft); }

/* Pipeline */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.column { background: var(--surface-3); border-radius: var(--radius); padding: 10px; min-height: 180px; }
.column h2 { font-size: .88rem; padding: 2px 3px; }
.column .total { font-size: .8rem; color: var(--ink-2); padding: 0 3px 8px; font-variant-numeric: tabular-nums; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 7px; font-size: .9rem; box-shadow: var(--shadow); }
.card b { display: block; font-weight: 600; }
.card select { margin-top: 7px; min-height: 30px; padding: 3px 6px; font-size: .84rem; }

/* Search results */
.result-group { margin-bottom: 16px; }

/* Login */
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; background: var(--surface); }
.login-art { background: var(--side); color: #fff; padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art img { width: 210px; height: auto; position: relative; }
.login-art h1 { font-size: 2rem; max-width: 15em; position: relative; }
.login-art p { color: var(--side-ink); max-width: 30em; margin: 12px 0 0; position: relative; }
.login-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink)); }
.login-form { display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 350px; }
.login-card h2 { font-size: 1.35rem; font-weight: 650; letter-spacing: -.015em; margin-bottom: 4px; }
.login-card .field { margin-bottom: 13px; }
.login-card .btn { width: 100%; margin-top: 4px; min-height: 40px; }

@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { display: block; }
  .sidebar { display: none; position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 256px; box-shadow: var(--shadow-lg); }
  .sidebar.open { display: flex; }
  .topbar { padding: 8px 16px; flex-wrap: wrap; }
  .btn.menu-toggle { display: inline-flex; }
  .topbar-logo { display: block; }
  .global-search { order: 5; flex-basis: 100%; max-width: none; }
  main { padding: 16px 16px 48px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .key-dates { grid-template-columns: minmax(0, 1fr); }
  .key-dates > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .key-dates > div:last-child { border-bottom: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .filter-bar input[type=search], .filter-bar select { width: 100%; }
  table.stacked thead { display: none; }
  table.stacked, table.stacked tbody, table.stacked tr, table.stacked td { display: block; width: 100%; }
  table.stacked tr { padding: 11px 16px; border-bottom: 1px solid var(--rule); }
  table.stacked tr:last-child { border-bottom: 0; }
  table.stacked td { padding: 2px 0; border: 0; }
  .login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-art { padding: 22px 16px 26px; }
  .login-art img { width: 160px; }
  .login-art div { display: none; }
}
@media print { .sidebar, .topbar, .actions { display: none; } .app { display: block; } }

.gst-line { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 6px; }
.inline-form { display: inline; margin: 0; }

/* Press QC */
.qc-form .form-section:last-child { border-bottom: 0; }
.grid-table th { padding: 7px 8px; }
.grid-table td { padding: 5px 8px; vertical-align: middle; }
.grid-table td.lab-cell input { width: 84px; min-height: 32px; padding: 4px 7px; text-align: right; font-variant-numeric: tabular-nums; }
.grid-table td.lab-cell input.dens { width: 74px; }
.spot-table td:nth-child(2) input { min-width: 170px; }
.grid-table .errorlist { list-style: none; margin: 2px 0 0; padding: 0; color: var(--overdue); font-size: .8rem; white-space: normal; }
.grid-table tr.out td[data-de] { color: var(--overdue); font-weight: 650; }
.grid-table tr.in td[data-de] { color: var(--good); font-weight: 650; }
.swatch-pair { display: inline-flex; vertical-align: middle; margin-right: 8px; border-radius: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(23, 26, 36, .14); }
.swatch-pair i { display: block; width: 16px; height: 22px; background: repeating-linear-gradient(45deg, var(--surface-3) 0 3px, var(--surface) 3px 6px); }
.swatch-pair i + i { margin-left: 1px; }
i.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(23, 26, 36, .14); }
.swatch-row { display: inline-flex; gap: 2px; }
.swatch-row i { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(23, 26, 36, .14); }
.sticky-actions { position: sticky; bottom: 12px; z-index: 5; box-shadow: var(--shadow-lg); }
.sticky-actions .form-actions { border-top: 0; border-radius: var(--radius); }
.cmyk-table td.num, .cmyk-table th.num { font-variant-numeric: tabular-nums; }

.score-hero { display: grid; grid-template-columns: minmax(280px, auto) minmax(0, 1fr); gap: 0; }
.score-main { display: flex; gap: 20px; align-items: center; padding: 20px; border-right: 1px solid var(--rule); }
.score-ring { --pct: 0; --tone: var(--ink-3); width: 116px; height: 116px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--surface) 80%, transparent 81%), conic-gradient(var(--tone) calc(var(--pct) * 1%), var(--surface-3) 0); }
.score-ring.pass { --tone: var(--good); } .score-ring.conditional { --tone: #d98a16; } .score-ring.fail { --tone: var(--overdue); }
.score-ring b { font-size: 2.3rem; line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.score-ring span { font-size: .75rem; color: var(--ink-2); }
.score-main .verdict .badge { font-size: .9rem; padding: 3px 11px 3px 8px; }
.big-line { font-size: 1.05rem; font-weight: 600; margin: 8px 0 2px; }
.section-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 18px; padding: 20px; align-content: center; }
.section-score > div:first-child { display: flex; justify-content: space-between; font-weight: 560; }
.section-score b { font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-3); margin: 5px 0 4px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; }
.meter i.ok { background: var(--good); } .meter i.warn { background: #d98a16; } .meter i.bad { background: var(--overdue); }

.chart-wrap { max-width: 760px; }
.tone-chart { width: 100%; height: auto; display: block; overflow: visible; }
.tone-chart .gridline { stroke: var(--surface-3); stroke-width: 1; }
.tone-chart .axis { stroke: var(--rule-strong); stroke-width: 1; }
.tone-chart .tick { font-size: 11px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.tone-chart .series-label { font-size: 12px; font-weight: 650; fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.tone-chart .hit { cursor: default; }
.tone-chart .hit:hover { fill: rgba(23, 26, 36, .06); }
.chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 8px 0 0; color: var(--ink-2); }
.chart-legend li { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; }
.chart-legend i.aim-key { width: 10px; height: 10px; border-radius: 50%; border: 1.5px dashed var(--ink-3); }

.history { display: flex; gap: 6px; align-items: flex-end; height: 150px; }
.history-bar { flex: 1; max-width: 56px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; color: var(--ink-2); font-size: .75rem; }
.history-bar:hover { text-decoration: none; color: var(--ink); }
.history-bar i { display: block; flex: none; width: 100%; min-height: 3px; border-radius: 4px 4px 0 0; background: var(--rule-strong); }
.history-bar i.pass { background: var(--good); } .history-bar i.conditional { background: #d98a16; } .history-bar i.fail { background: var(--overdue); }
.history-bar.current .history-value, .history-bar.current .history-date { color: var(--ink); font-weight: 650; }
.history-value { font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.history-date { margin-top: 4px; white-space: nowrap; }

@media (max-width: 860px) {
  .score-hero { grid-template-columns: minmax(0, 1fr); }
  .score-main { border-right: 0; border-bottom: 1px solid var(--rule); }
  .grid-table td.lab-cell input { width: 68px; }
}
@media print { .sticky-actions, .messages form { display: none; } }
.cmyk-table th, .grid-table th { text-transform: none; letter-spacing: .01em; font-size: .78rem; }

/* AI quotations */
.callout { border-left: 3px solid var(--rule-strong); }
.callout-warn { border-left-color: var(--brand-orange); background: #fffaf3; }
.callout-ai { border-left-color: var(--brand-pink); }
.callout-ai .panel-head h2 { display: inline-flex; align-items: center; gap: 7px; }
.callout code { background: var(--surface-3); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
.prose p { margin: 0 0 .55rem; }
.prose ul { margin: 0 0 .7rem; padding-left: 1.2rem; }
.prose li { margin-bottom: .2rem; }
.prose > :last-child { margin-bottom: 0; }
.proposal h3 { font-size: .92rem; font-weight: 640; margin: 1rem 0 .35rem; }
.proposal h3:first-child { margin-top: 0; }
input[type=radio] { width: 17px; height: 17px; min-height: 0; padding: 0; margin: 0; accent-color: var(--brand-ink); }
.field > div[id^="id_"]:has(input[type="radio"]) { display: flex; gap: 8px 22px; flex-wrap: wrap; min-height: 36px; align-items: center; }
.field label:has(> input[type="radio"]) { display: inline-flex; gap: 7px; align-items: center; font-weight: 500; white-space: nowrap; margin: 0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.is-busy { cursor: progress; }
