/*
 * The new bo interface. One sheet for every page: colours and sizes are the variables below,
 * components (top bar, card, table, badge, button, filters, pager) follow.
 */

:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-muted: #f8f9fb;
    --border: #e1e5eb;
    --border-strong: #cfd5de;
    --text: #1d2633;
    --text-muted: #5f6b7a;
    --text-faint: #8a95a3;

    --brand: #2c6aa8;
    --brand-strong: #21558a;
    --brand-soft: #e8f0f9;
    --topbar: #1f3a5c;
    --topbar-text: #d6e1ee;

    --fill: #1f7a4d;
    --fill-soft: #e5f4ec;
    --change: #9a5b00;
    --change-soft: #fdf1dc;
    --new: #5b3fb3;
    --new-soft: #efeafb;
    --danger: #b3261e;

    --radius: 8px;
    --radius-small: 6px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.5 var(--font);
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); text-decoration: underline; }

h1, h2 { margin: 0; line-height: 1.25; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* Top bar */

.topbar { background: var(--topbar); color: var(--topbar-text); }

.topbar-inner {
    display: flex; align-items: center; gap: 24px;
    max-width: 1280px; margin: 0 auto; padding: 0 24px; min-height: 52px;
}

.brand { display: flex; align-items: baseline; gap: 8px; color: #fff; white-space: nowrap; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark {
    font-weight: 700; font-size: 15px; letter-spacing: .02em;
    background: var(--brand); padding: 2px 8px; border-radius: var(--radius-small);
}
.brand-name { font-size: 13px; color: var(--topbar-text); }

.menu { background: var(--surface); border-bottom: 1px solid var(--border); }
.menu-inner { display: flex; gap: 4px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.menu a {
    color: var(--text-muted); padding: 12px 10px 10px; border-bottom: 2px solid transparent;
    font-size: 14px; white-space: nowrap;
}
.menu a:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--border-strong); }
.menu a.current { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.search { display: flex; margin-left: auto; }
.search input, .search select {
    border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1); color: #fff;
    font: inherit; font-size: 13px; padding: 6px 10px; height: 32px;
}
.search input { width: 260px; border-radius: var(--radius-small) 0 0 var(--radius-small); }
.search input::placeholder { color: rgba(214, 225, 238, .7); }
.search select { border-left: 0; border-radius: 0 var(--radius-small) var(--radius-small) 0; }
.search select option { color: var(--text); }
.search input:focus, .search select:focus { outline: 2px solid #7fb2e5; outline-offset: -1px; }

.account { display: flex; gap: 14px; align-items: center; font-size: 13px; white-space: nowrap; }
.account .user { color: #fff; font-weight: 600; }
.account a { color: var(--topbar-text); }
.account a:hover { color: #fff; }

/* Page */

.page { max-width: 1280px; margin: 0 auto; padding: 28px 24px 48px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.page-head h1 { font-size: 24px; font-weight: 650; }
.lead { margin: 4px 0 0; color: var(--text-muted); font-size: 15px; }

.explainer {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px 16px; margin-bottom: 20px; color: var(--text-muted);
}
.explainer summary { cursor: pointer; color: var(--text); font-weight: 600; }
.explainer p { margin: 8px 0 4px; max-width: 80ch; }

.alert {
    background: var(--brand-soft); border: 1px solid #c7dbf0; color: #17406b;
    border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px;
}

.empty {
    background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius);
    padding: 40px 24px; text-align: center; color: var(--text-muted);
}
.empty p { margin: 0; }
.empty .empty-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 4px; }

/* Filters */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px; font-size: 13px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.filters a:hover { border-color: var(--brand); text-decoration: none; }
.filters a.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters .count {
    min-width: 22px; padding: 0 6px; border-radius: 999px; text-align: center;
    background: var(--surface-muted); color: var(--text-muted); font-size: 12px; font-weight: 600;
}
.filters a.current .count { background: rgba(255, 255, 255, .22); color: #fff; }

/* Card */

.card {
    display: block; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden;
}

.card-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    padding: 16px 20px 12px;
}
.card-head h2 { font-size: 17px; font-weight: 600; }
.card-head h2 a { color: var(--text); }
.card-head h2 a:hover { color: var(--brand); }

.meta { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; }
.meta > span + span::before { content: "·"; margin: 0 8px; color: var(--text-faint); }

.card-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.card-foot {
    display: flex; gap: 8px; padding: 12px 20px;
    background: var(--surface-muted); border-top: 1px solid var(--border);
}

.pill {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    background: var(--surface-muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px;
}

/* Proposals table */

.proposals { width: 100%; border-collapse: collapse; }
.proposals th {
    text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .04em;
    padding: 8px 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: var(--surface-muted);
}
.proposals td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.proposals tbody tr:last-child td { border-bottom: 0; }
.proposals tbody tr:hover td { background: #fbfcfe; }
.proposals .pick { width: 44px; padding-left: 20px; }
.proposals .pick input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand); }

.proposals .what { width: 26%; }
.proposals .what .subject { display: block; font-weight: 600; margin-top: 4px; }
.proposals .by-hand { display: block; font-size: 12px; color: var(--danger); margin-top: 2px; }

.proposals .current { width: 18%; color: var(--text-muted); }
.proposals .current .none { color: var(--text-faint); font-style: italic; }
.proposals .proposed { width: 22%; font-weight: 600; }
.proposals .proposed .not-stored { font-weight: 400; color: var(--text-muted); }
.proposals .proposed .agent-said,
.proposals .proposed .refused { display: block; margin-top: 4px; font-weight: 400; font-size: 12px; }
.proposals .proposed .agent-said { color: var(--text-muted); }
.proposals .proposed .refused { color: var(--danger); }
.proposals .what .button { display: inline-block; margin-top: 6px; }
.proposals .photo-preview { display: block; max-width: 100%; max-height: 240px; border: 1px solid var(--border, #ddd); border-radius: 4px; background: #fff; }
.proposals .photo-facts { display: block; margin-top: 4px; font-weight: 400; font-size: 12px; }
.proposals .photo-main-note, .photo-grid .photo-main-note { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; }
.proposals .source { font-size: 13px; }
.proposals .source q {
    display: block; margin-top: 4px; color: var(--text-muted); font-style: italic;
    border-left: 2px solid var(--border-strong); padding-left: 8px; quotes: "„" "”";
}

.badge {
    display: inline-block; font-size: 11.5px; font-weight: 600; line-height: 1.6;
    padding: 0 8px; border-radius: 4px; white-space: nowrap;
}
.badge.tone-fill { background: var(--fill-soft); color: var(--fill); }
.badge.tone-change { background: var(--change-soft); color: var(--change); }
.badge.tone-new { background: var(--new-soft); color: var(--new); }

/* Buttons */

.button {
    display: inline-flex; align-items: center; justify-content: center;
    font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1;
    padding: 9px 16px; border-radius: var(--radius-small); cursor: pointer;
    background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
}
.button:hover { background: var(--surface-muted); text-decoration: none; color: var(--text); }
.button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.button.ghost { border-color: transparent; color: var(--brand); background: transparent; }
.button.ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.button.small { font-size: 13px; padding: 6px 10px; }

/* Queue of proposals */

.queue-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 14px 20px; }
.queue-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.queue-filters select, .queue-filters input, .confirm-all input {
    font: inherit; font-size: 13.5px; font-weight: 400; color: var(--text); padding: 6px 8px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-small); background: var(--surface);
}
.queue-filters input[type=search] { width: 180px; }
.queue-filter-buttons { display: flex; gap: 8px; }
.queue-toolbar { border-top: 0; border-bottom: 1px solid var(--border); align-items: center; }
.queue-toolbar .pick-page { display: inline-flex; gap: 6px; align-items: center; margin-right: auto; font-size: 13px; }
.proposals.queue .product { width: 20%; }
.proposals.queue .product a { font-weight: 600; }
.proposals.queue .product .meta { display: block; }
.proposals.queue .small-link, .photo-grid .small-link { font-size: 12px; }
.proposals.queue .what { width: 18%; }
.proposals.queue .current { width: 14%; }
.proposals.queue .proposed { width: 18%; }
.proposals.queue .decide { width: 150px; white-space: nowrap; }
.proposals.queue .decide .when { display: block; margin-top: 6px; font-size: 12px; color: var(--text-faint); }
.row-actions { display: flex; gap: 6px; }
.photo-thumb { display: block; max-width: 100%; max-height: 160px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.photo-grid {
    list-style: none; margin: 0; padding: 16px 20px; display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.photo-grid li { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-small); font-size: 13px; }
.photo-grid .photo-facts { font-size: 12px; color: var(--text-muted); }
.photo-grid .source q { display: block; color: var(--text-muted); font-style: italic; quotes: "„" "”"; }
.confirm-all { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding: 14px 20px; }
.confirm-all p { margin: 0; flex-basis: 100%; }
.confirm-all label { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }

/* Pager */

.pager { display: flex; gap: 4px; justify-content: center; margin-top: 8px; }
.pager a, .pager span {
    min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-small); font-size: 13.5px; padding: 0 8px;
}
.pager a { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.pager a:hover { border-color: var(--brand); text-decoration: none; }
.pager .current { background: var(--brand); color: #fff; font-weight: 600; }
.pager .gap { color: var(--text-faint); }

/* Dashboard */

.dashboard, .link-groups {
    display: grid; gap: 20px; margin-bottom: 20px;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
}
.panel-card { padding: 18px 20px; margin-bottom: 0; }
.card-title { font-size: 15px; font-weight: 650; margin-bottom: 12px; }
.muted { color: var(--text-muted); margin: 0; }

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tile {
    background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius-small);
    padding: 12px 14px;
}
.tile-value { font-size: 24px; font-weight: 650; line-height: 1.2; color: var(--brand-strong); }
.tile-label { font-size: 13px; color: var(--text); margin-top: 2px; }
.tile-detail { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.panel-card.wide { grid-column: 1 / -1; }
.queues { column-width: 230px; column-gap: 32px; }
.queue { break-inside: avoid; margin-bottom: 16px; }
.queue-title { font-size: 13px; font-weight: 600; color: var(--text-muted); margin: 0 0 4px; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini-table td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: 0; }
.link-list .extra { margin-left: 8px; font-size: 12.5px; color: var(--text-muted); }

/* Product pages */

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; font-size: 13px; color: var(--text-muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--text-faint); }
.crumbs [aria-current] { color: var(--text); }

.actions, .link-row { display: flex; flex-wrap: wrap; gap: 8px; }
.link-row { margin-bottom: 20px; }
.button .count, .row-actions .count {
    margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 999px; text-align: center;
    background: var(--surface-muted); color: var(--text-muted); font-size: 12px; font-weight: 600;
}
.button.danger { color: var(--danger); border-color: #e6b8b5; }
.button.danger:hover { background: #fbeceb; color: var(--danger); }
.button.warn { color: var(--change); border-color: #ecd3a6; }
.button:disabled { opacity: .5; cursor: default; }

.columns { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.columns .card, .side .card { margin-bottom: 20px; }
.pad { padding: 16px 20px 0; }
p.pad { padding-bottom: 16px; margin: 0; }
.card-title.pad { margin-bottom: 8px; }

.facts { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; gap: 0; margin: 0; padding: 0 20px 12px; }
.facts dt, .facts dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--text-muted); padding-right: 12px; }
.facts dd { overflow-wrap: anywhere; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.multiline { white-space: pre-line; }

.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; }
.data th, .data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data thead th {
    font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em;
    background: var(--surface-muted); border-top: 1px solid var(--border);
}
.data tbody th { font-weight: 600; }
.data tbody tr:last-child th, .data tbody tr:last-child td { border-bottom: 0; }
.data .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.data .values { margin: 0; padding-left: 18px; }
.required { color: var(--danger); text-decoration: none; margin-left: 2px; }
.row-actions.wrap { flex-wrap: wrap; }
.products .badge { margin-left: 6px; }
.catalogue .badge { margin-left: 6px; }
.badge.tone-muted { background: var(--surface-muted); color: var(--text-muted); border: 1px solid var(--border); }
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { background: var(--brand-soft); }
.more-links {
    position: absolute; right: 0; z-index: 5; margin-top: 4px; min-width: 200px; padding: 6px 0;
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-small); box-shadow: var(--shadow);
}
.more-links a { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.more-links a:hover { background: var(--surface-muted); }
.pictogram-pick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; }
.pictogram-pick label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.score { font-weight: 600; }
.score-0, .score--1 { color: var(--fill); }

.alert.warn { background: var(--change-soft); border-color: #ecd3a6; color: #6b4000; }
.alert.error { background: #fbeceb; border-color: #e6b8b5; color: var(--danger); }

.form-grid { display: grid; grid-template-columns: minmax(160px, 22%) 1fr; gap: 12px 16px; padding: 4px 20px 20px; align-items: start; }
.form-grid > label, .form-grid > .label { padding-top: 7px; font-weight: 600; font-size: 13px; color: var(--text-muted); }
.input {
    width: 100%; font: inherit; font-size: 14px; color: var(--text); padding: 6px 8px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-small); background: var(--surface);
}
.input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
textarea.input { resize: vertical; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline .input { flex: 1 1 240px; }
.hint { margin: 4px 0 0; font-size: 12.5px; color: var(--text-muted); }
.hint.warn { color: var(--change); }
.check { display: inline-flex; gap: 8px; align-items: center; padding-top: 6px; }
.over { color: var(--danger); }

.attr-list { padding: 0 20px 16px; }
.attr { border: 0; border-bottom: 1px solid var(--border); margin: 0; padding: 12px 0; display: grid; grid-template-columns: minmax(160px, 22%) 1fr; gap: 8px 16px; }
.attr:last-child { border-bottom: 0; }
.attr legend { float: left; padding: 0; font-weight: 600; }
.attr legend .meta { display: block; font-weight: 400; }
.attr-values { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; grid-column: 2; }
.attr-values li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.attr-values .input { flex: 1 1 260px; width: auto; }
.attr-values .hint { flex-basis: 100%; }
.attr-tools { grid-column: 2; display: flex; gap: 12px; align-items: center; }
.word { flex: 1 1 260px; padding: 6px 0; }
.small-link { font-size: 12.5px; }
.form-actions {
    position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 0;
    background: linear-gradient(to bottom, rgba(244, 246, 249, 0), var(--bg) 30%);
}

/* Product sub-pages: codes, marketing descriptions, histories */

.preview summary { cursor: pointer; color: var(--brand); }
.preview iframe {
    display: block; width: min(720px, 100%); height: 320px; margin-top: 8px;
    border: 1px solid var(--border); border-radius: var(--radius-small); background: #fff;
}
.row-actions form { margin: 0; }
.change-values { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 4px 12px; margin: 0; }
.change-values dt { font-weight: 600; }
.change-values dd { margin: 0; overflow-wrap: anywhere; }
.copy-history tr.differs th, .copy-history tr.differs td { background: var(--change-soft); }
.copy-history th .badge { margin-left: 6px; }

/* Reports: the monthly summaries */

.summary .hint { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; }
.summary tfoot th, .summary tfoot td { font-weight: 600; border-top: 2px solid var(--border-strong); }
.summary-people { border: 0; margin: 0; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.summary-print > .hint { padding: 0 20px; }
.summary-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 20px 16px; }
/* the remote worker's settlement: a product no longer visible is greyed, as the old page greys it */
.remote-products tr.muted-row td { color: var(--text-faint); background: var(--surface-muted); }
#remote-close-request { display: none; }

/* Reports: the structure report's month grid */

.structure-grid th, .structure-grid td { padding: 4px 8px; font-size: 13px; }
.structure-grid tbody + tbody tr:first-child > * { border-top: 2px solid var(--border-strong); }
.structure-grid .weekend { background: var(--surface-muted); }
.structure-grid .today { background: var(--brand-soft); font-weight: 650; }
.structure-grid .month-total { font-weight: 600; }
.structure-grid .waiting { color: var(--text-muted); }

@media (max-width: 760px) {
    .columns, .form-grid, .attr, .facts { grid-template-columns: 1fr; }
    .attr-values, .attr-tools { grid-column: 1; }
    .form-grid > label, .form-grid > .label { padding-top: 0; }
}

/* Defects (UI track, batch 6): the lists' filter buttons beside a value, a category the reporter typed in */

.defect-meta { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; }
.funnel {
    border: 0; background: transparent; color: var(--brand); font-size: 12px; padding: 0 4px;
    cursor: pointer; text-decoration: underline;
}
.funnel:hover { color: var(--brand-strong); }
.funnel:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.written { color: var(--danger); }
.defects td { vertical-align: top; }

/* Prices (UI track, batch 8e): rate tables with a field in each cell */

.rates th, .rates td { padding: 6px 8px; font-size: 13px; vertical-align: middle; }
.rates .input { width: 7.5em; padding: 4px 6px; font-size: 13px; text-align: right; }
.rates .input[readonly] { background: var(--surface-muted); color: var(--text-muted); }
.rates thead th.group { text-align: center; }
.rates tbody.category tr:first-child > * { border-top: 2px solid var(--border-strong); }

/* Footer */

.footer {
    max-width: 1280px; margin: 0 auto; padding: 0 24px 32px;
    font-size: 13px; color: var(--text-muted);
}
.footer a { color: var(--text-muted); text-decoration: underline; }

/* Narrow screens */

@media (max-width: 900px) {
    .search input { width: 160px; }
    .brand-name { display: none; }
}

@media (max-width: 760px) {
    .page { padding: 20px 16px 40px; }
    .search { display: none; }
    .account { margin-left: auto; }
    .menu-inner { flex-wrap: nowrap; overflow-x: auto; }
    .card-head { flex-direction: column; padding: 14px 16px 10px; }
    .card-foot { padding: 12px 16px; }
    .proposals thead { display: none; }
    .proposals tr { display: grid; grid-template-columns: 40px 1fr; border-bottom: 1px solid var(--border); padding: 8px 0; }
    .proposals td { border: 0; padding: 4px 16px 4px 0; width: auto; }
    .proposals .pick { grid-row: span 4; padding-left: 16px; }
    .proposals .current::before { content: "Teraz: "; color: var(--text-faint); }
    .proposals .proposed::before { content: "Propozycja: "; color: var(--text-faint); font-weight: 400; }
}

/* The printed summaries and the comparison sheet of the control reports. */
.summary-print .weekend > * { background: var(--surface-muted); }
.cema th, .cema td { padding: 4px 8px; font-size: 13px; vertical-align: top; min-width: 160px; }
.cema th { text-align: left; font-weight: 600; min-width: 0; }
.cema .box-0 { background: #dcdcff; }
.cema .box-1 { background: #ceded6; }
.cema .box-2 { background: #feded6; }
.cema .box-3 { background: #fedeaa; }
.cema .box-4 { background: #ffc4c4; }
.cema .box-5 { background: #ff9c9c; }
.cema .box-6 { background: #b9e8b9; }
.cema .box-7 { background: #ffd9ff; }
.pick-all { margin-bottom: 12px; }
.pick-all[hidden], [data-pick-toggle][hidden] { display: none; }
.input.remote-value { background: #ffaa64; color: #000; }
