/*
 * TAG Legal Desk v2.1, J196 (29 Sep 2026): Countdowns and the checks calendar (js\v21_checks.js).
 * The panel sits where the core puts tiles (the rail at 1440 px and up, #v21-foot under the cards below that), so it
 * never pushes a job card down; the chip sits in the board head. Kind colour families are text colours that pass 4.5 to
 * 1 on the panel in Light, Dark and High contrast, always paired with an icon and a word (colour is never the only
 * sign). Overdue is a warm burnt orange, apart from the welfare red. Only transform and opacity animate; Calm, reduced
 * motion and the quiet period keep everything still. No inline styles: custom properties come through the CSSOM.
 */

:root {
  --kchk-over: #B0391A; --kchk-over-ink: #FFFFFF; --kchk-over-soft: rgba(176,57,26,.08);
  --kchk-due: #7A4A00; --kchk-due-bg: rgba(214,142,20,.18);
  --kchk-today: rgba(35,61,38,.07);
  --kchk-row: var(--solid); --kchk-row-hi: var(--solid-2);
}
:root[data-theme="dark"] {
  --kchk-over: #FF9C7A; --kchk-over-ink: #1A1F1B; --kchk-over-soft: rgba(255,156,122,.10);
  --kchk-due: #F5C46B; --kchk-due-bg: rgba(245,196,107,.16);
  --kchk-today: rgba(155,211,166,.08);
}
:root[data-theme="high_contrast"] {
  --kchk-over: #8A1C00; --kchk-over-ink: #FFFFFF; --kchk-over-soft: #FFFFFF;
  --kchk-due: #000000; --kchk-due-bg: #FFE9B8;
  --kchk-today: #FFFFFF;
}

/* ---------- the kind colour families (text colour --kf-c, soft ground --kf-bg) ---------- */
.kchk-f-amber { --kf-c: #8A5200; --kf-bg: rgba(214,142,20,.16); }
.kchk-f-teal { --kf-c: #0F6E66; --kf-bg: rgba(15,118,110,.13); }
.kchk-f-sky { --kf-c: #0B6480; --kf-bg: rgba(14,116,144,.13); }
.kchk-f-violet { --kf-c: #6232C4; --kf-bg: rgba(109,40,217,.11); }
.kchk-f-blue { --kf-c: #1D55B8; --kf-bg: rgba(29,78,216,.11); }
.kchk-f-indigo { --kf-c: #3F3AB0; --kf-bg: rgba(67,56,202,.12); }
.kchk-f-rose { --kf-c: #A8285F; --kf-bg: rgba(180,42,106,.11); }
.kchk-f-green { --kf-c: #2A6A35; --kf-bg: rgba(46,107,58,.13); }
.kchk-f-slate { --kf-c: #475467; --kf-bg: rgba(71,84,103,.12); }
.kchk-f-olive { --kf-c: #5C6000; --kf-bg: rgba(125,130,0,.15); }
.kchk-f-grey { --kf-c: #5E635C; --kf-bg: rgba(94,99,92,.13); }
:root[data-theme="dark"] .kchk-f-amber { --kf-c: #F5B955; --kf-bg: rgba(245,185,85,.15); }
:root[data-theme="dark"] .kchk-f-teal { --kf-c: #5FD4C8; --kf-bg: rgba(95,212,200,.13); }
:root[data-theme="dark"] .kchk-f-sky { --kf-c: #6CCFEA; --kf-bg: rgba(108,207,234,.13); }
:root[data-theme="dark"] .kchk-f-violet { --kf-c: #C3A8FF; --kf-bg: rgba(195,168,255,.13); }
:root[data-theme="dark"] .kchk-f-blue { --kf-c: #97BEFF; --kf-bg: rgba(151,190,255,.13); }
:root[data-theme="dark"] .kchk-f-indigo { --kf-c: #AFB3FF; --kf-bg: rgba(175,179,255,.13); }
:root[data-theme="dark"] .kchk-f-rose { --kf-c: #F59BC4; --kf-bg: rgba(245,155,196,.13); }
:root[data-theme="dark"] .kchk-f-green { --kf-c: #8EDB9C; --kf-bg: rgba(142,219,156,.13); }
:root[data-theme="dark"] .kchk-f-slate { --kf-c: #C4CDDA; --kf-bg: rgba(196,205,218,.12); }
:root[data-theme="dark"] .kchk-f-olive { --kf-c: #D9DC7A; --kf-bg: rgba(217,220,122,.13); }
:root[data-theme="dark"] .kchk-f-grey { --kf-c: #B9C1B6; --kf-bg: rgba(185,193,182,.12); }
:root[data-theme="high_contrast"] [class*="kchk-f-"] { --kf-bg: #FFFFFF; }

/* ---------- the panel ---------- */
.kchk { display: grid; gap: 10px; padding: 14px 16px 12px; border-radius: var(--r-card); min-width: 0; }
.kchk.kchk-in-sheet { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.kchk-h { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; min-width: 0; }
.kchk-h h2 { margin: 0; display: inline-flex; align-items: center; gap: 9px; font-size: 1.0625rem; line-height: 1.5rem; font-weight: 700; }
.kchk-counts { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.kchk-in-sheet .kchk-counts { margin-left: 0; }
.kchk-n { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--solid-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--glass-rim); white-space: nowrap; }
.kchk-n.is-over { background: var(--kchk-over); color: var(--kchk-over-ink); box-shadow: none; }
.kchk-n.is-today { background: var(--brand-soft); color: var(--brand-text); }
.kchk-big { flex: none; }
.kchk-body { display: grid; gap: 10px; min-width: 0; }

/* The live dot: a soft ring grows from it and fades (transform and opacity only), so the panel reads as alive. */
.kchk-live { position: relative; display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.kchk-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); opacity: .5; animation: kchk-ping 2.6s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes kchk-ping { 0% { transform: scale(1); opacity: .5; } 75%, 100% { transform: scale(2.8); opacity: 0; } }

/* ---------- the tools: List or Calendar, Everyone or Mine, the kind ---------- */
.kchk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.kchk-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 12px; background: var(--solid-2); box-shadow: inset 0 0 0 1px var(--glass-rim); }
.kchk-seg button { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: .8125rem; font-weight: 650; cursor: pointer; white-space: nowrap; }
.kchk-seg button:hover { color: var(--ink); }
.kchk-seg button[aria-pressed="true"] { background: var(--solid); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,16,.14), inset 0 0 0 1px var(--glass-rim); }
.kchk-seg button .ico { flex: none; }
.kchk-sel { min-height: 36px; max-width: 100%; min-width: 0; flex: 1 1 150px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--edge-strong); background: var(--solid); color: var(--ink); font: inherit; font-size: .8125rem; }
.kchk[data-kchk-where="foot"] .kchk-sel, .kchk-in-sheet .kchk-sel { flex: 0 1 240px; }

/* ---------- the rows ---------- */
.kchk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.kchk-li { display: block; min-width: 0; }
.kchk-row { position: relative; width: 100%; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: start; gap: 4px 10px; padding: 9px 10px 9px 9px; border: 0; border-radius: 14px; background: var(--kchk-row); box-shadow: inset 0 0 0 1px var(--glass-rim); color: var(--ink); font: inherit; text-align: left; overflow: hidden; }
button.kchk-row { cursor: pointer; transition: background-color var(--t-small) var(--ease-out); }
button.kchk-row:hover { background: var(--kchk-row-hi); }
button.kchk-row:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kchk-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--kf-bg, var(--solid-2)); color: var(--kf-c, var(--ink-2)); }
.kchk-main { display: grid; gap: 2px; min-width: 0; }
.kchk-t { font-size: .875rem; line-height: 1.25rem; font-weight: 650; overflow-wrap: anywhere; }
.kchk-sub { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: .75rem; line-height: 1.125rem; color: var(--ink-2); min-width: 0; }
.kchk-sub > span + span::before { content: "\00B7"; margin-right: 6px; color: var(--ink-3); }
.kchk-kl { color: var(--kf-c, var(--ink-2)); font-weight: 700; }
.kchk-on { display: flex; align-items: flex-start; gap: 6px; margin-top: 3px; font-size: .75rem; line-height: 1.125rem; color: var(--ink-2); }
.kchk-on > .kchk-mark { margin-top: 2px; }
.kchk-cd { align-self: start; padding: 3px 9px; border-radius: 999px; font-size: .8125rem; line-height: 1.125rem; font-weight: 700; white-space: nowrap; background: var(--solid-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-rim); font-variant-numeric: tabular-nums; }

/* Due today: a quiet green ground and edge. Due now: the amber pill. Overdue: warm, first, never the welfare red. */
.kchk-li[data-today] > .kchk-row { background: linear-gradient(0deg, var(--kchk-today), var(--kchk-today)), var(--kchk-row); box-shadow: inset 3px 0 0 var(--brand-text), inset 0 0 0 1px var(--glass-rim); }
.kchk-li[data-state="due"] > .kchk-row .kchk-cd { background: var(--kchk-due-bg); color: var(--kchk-due); box-shadow: none; }
.kchk-li[data-state="overdue"] > .kchk-row { background: linear-gradient(0deg, var(--kchk-over-soft), var(--kchk-over-soft)), var(--kchk-row); box-shadow: inset 3px 0 0 var(--kchk-over), inset 0 0 0 1px color-mix(in srgb, var(--kchk-over) 28%, transparent); }
.kchk-li[data-state="overdue"] > .kchk-row .kchk-cd { background: var(--kchk-over); color: var(--kchk-over-ink); box-shadow: none; }

/* When Fred acted or a job was made, and when a check cleared: the line under the row, for a few seconds. */
.kchk-flash { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 4px 0 0 42px; padding: 6px 10px; border-radius: 12px; font-size: .8125rem; line-height: 1.25rem; font-weight: 650; background: var(--brand-soft); color: var(--brand-text); }
.kchk-flash > .ico, .kchk-flash > .kchk-mark { flex: none; }
.kchk-flash.is-cleared { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
:root[data-theme="dark"] .kchk-flash.is-cleared { color: #9BD3A6; }
.kchk-flash .kchk-jobl { min-height: 32px; margin-left: auto; }
.kchk-li.is-acted > .kchk-row { box-shadow: inset 0 0 0 2px var(--brand-text); }
.kchk-li.is-cleared > .kchk-row { opacity: .62; }
.kchk-li.is-folding { pointer-events: none; transform-origin: 50% 0; }

/* A client on welfare hold: one plain line, no detail. */
.kchk-wf { grid-template-columns: 32px minmax(0,1fr); background: var(--solid-2); color: var(--ink-2); }
.kchk-wf .kchk-ico { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--glass-rim); }
.kchk-wf .kchk-t { font-weight: 600; align-self: center; }

/* J179: claims manager only, frosted in the owner's colour, locked, no detail. */
.kchk-cm { grid-template-columns: 32px minmax(0,1fr); isolation: isolate; background: color-mix(in srgb, var(--kchk-own, var(--brand)) 16%, var(--solid)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kchk-own, var(--brand)) 45%, transparent); }
.kchk-cm > .kchk-frost { position: absolute; inset: -8px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 90% at 22% 40%, color-mix(in srgb, var(--kchk-own, var(--brand)) 42%, transparent), transparent 70%),
    radial-gradient(35% 80% at 70% 60%, color-mix(in srgb, var(--kchk-own, var(--brand)) 30%, transparent), transparent 70%),
    linear-gradient(100deg, rgba(255,255,255,.55), rgba(255,255,255,.15));
  filter: blur(7px); }
:root[data-theme="dark"] .kchk-cm > .kchk-frost { background: radial-gradient(40% 90% at 22% 40%, color-mix(in srgb, var(--kchk-own, var(--brand)) 40%, transparent), transparent 70%), radial-gradient(35% 80% at 70% 60%, color-mix(in srgb, var(--kchk-own, var(--brand)) 26%, transparent), transparent 70%), linear-gradient(100deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); }
.kchk-cm .kchk-ico { background: var(--solid); color: var(--kchk-own, var(--brand)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--kchk-own, var(--brand)) 50%, transparent); }
.kchk-cm .kchk-t { font-weight: 700; align-self: center; }
.kchk-cm .kchk-sub { color: var(--ink); font-weight: 600; }
.kchk-cm .kchk-main { align-self: center; }

/* The marks: Fred's little face, and the job card. */
.kchk-mark { display: inline-block; flex: none; vertical-align: middle; }
.kchk-mark-fred .kchk-mk-bg { fill: var(--brand); }
.kchk-mark-fred .kchk-mk-ln { stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; fill: none; }
.kchk-mark-fred .kchk-mk-in { fill: #FFFFFF; }
.kchk-mark-fred .kchk-mk-mouth { stroke: #FFFFFF; stroke-width: 1.3; stroke-linecap: round; fill: none; }
.kchk-mark-job .kchk-mk-bg { fill: var(--info); }
.kchk-mark-job .kchk-mk-tick { stroke: #FFFFFF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
:root[data-theme="dark"] .kchk-mark-fred .kchk-mk-bg, :root[data-theme="dark"] .kchk-mark-fred .kchk-mk-ln { fill: #9BD3A6; stroke: #9BD3A6; }
:root[data-theme="dark"] .kchk-mark-fred .kchk-mk-ln { fill: none; }
:root[data-theme="dark"] .kchk-mark-fred .kchk-mk-in { fill: #111311; }
:root[data-theme="dark"] .kchk-mark-fred .kchk-mk-mouth { stroke: #111311; }
:root[data-theme="dark"] .kchk-mark-job .kchk-mk-bg { fill: #93C5FD; }
:root[data-theme="dark"] .kchk-mark-job .kchk-mk-tick { stroke: #111311; }
.kchk-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 0; font-size: .75rem; line-height: 1.125rem; color: var(--ink-2); }
.kchk-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.kchk-more { justify-self: start; }
.kchk-empty { margin: 0; }
.kchk-quietline { margin: 0; font-size: .8125rem; color: var(--ink-2); }
.kchk.kchk-folded { padding: 10px 16px; }

/* ---------- the calendar ---------- */
.kchk-cal { display: grid; gap: 10px; min-width: 0; }
.kchk-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; min-width: 0; }
.kchk-day { position: relative; display: grid; align-content: start; justify-items: center; gap: 2px; min-width: 0; min-height: 60px; padding: 5px 2px 6px; border: 0; border-radius: 10px; background: var(--kchk-row); box-shadow: inset 0 0 0 1px var(--glass-rim); color: var(--ink); font: inherit; cursor: pointer; }
.kchk-day:hover { background: var(--kchk-row-hi); }
.kchk-day:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.kchk-wd { font-size: .6875rem; line-height: .875rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .02em; }
.kchk-dn { font-size: .9375rem; line-height: 1.25rem; font-weight: 750; }
.kchk-day.is-today { box-shadow: inset 0 0 0 2px var(--brand-text); }
.kchk-day.is-today .kchk-dn { color: var(--brand-text); }
.kchk-day[aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand-text); }
.kchk-day.is-out { opacity: .45; }
.kchk-dots { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px; max-width: 100%; }
.kchk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--kf-c, var(--ink-3)); }
.kchk-dot.is-over { box-shadow: 0 0 0 2px var(--kchk-over); }
.kchk-dot.is-wf { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.kchk-dot.is-cm { background: var(--kchk-own, var(--brand)); opacity: .55; }
.kchk-more-n { font-size: .625rem; line-height: .75rem; font-weight: 700; color: var(--ink-2); }
.kchk-over { display: inline-block; padding: 0 5px; border-radius: 999px; font-size: .625rem; line-height: .9375rem; font-weight: 800; background: var(--kchk-over); color: var(--kchk-over-ink); white-space: nowrap; }
.kchk-dayh { margin: 2px 0 0; font-size: .9375rem; line-height: 1.375rem; font-weight: 700; }
.kchk-wdh { font-size: .6875rem; font-weight: 700; color: var(--ink-2); text-align: center; text-transform: uppercase; letter-spacing: .02em; padding-bottom: 2px; }

/* The sheet's 14 days: bigger days with chips. */
.kchk-grid-days14 .kchk-day { min-height: 124px; justify-items: stretch; padding: 7px 6px 8px; gap: 4px; }
.kchk-grid-days14 .kchk-wd, .kchk-grid-days14 .kchk-dn { text-align: left; }
.kchk-grid-days14 .kchk-over { justify-self: start; }
.kchk-chips { display: grid; gap: 3px; min-width: 0; }
.kchk-chip { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 2px 5px; border-radius: 7px; font-size: .6875rem; line-height: 1rem; font-weight: 650; background: var(--kf-bg, var(--solid-2)); color: var(--kf-c, var(--ink-2)); }
.kchk-chip .ico, .kchk-chip .kchk-mark { flex: none; }
.kchk-chip-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.kchk-chip.is-over { box-shadow: inset 2px 0 0 var(--kchk-over); }
.kchk-chip.is-wf { background: var(--solid-2); color: var(--ink-2); }
.kchk-chip.is-cm { background: color-mix(in srgb, var(--kchk-own, var(--brand)) 20%, var(--solid)); color: var(--ink); }
.kchk-grid-days14 .kchk-more-n { text-align: left; padding-left: 4px; }
.kchk-grid-month .kchk-day { min-height: 70px; }
.kchk-monthnav { display: flex; align-items: center; gap: 10px; }
.kchk-month-l { font-weight: 700; min-width: 9em; text-align: center; }
.kchk-next .ico { transform: scaleX(-1); }
.sheet.kchk-sheet { width: min(1060px, 100%); }
.kchk-sheet .sheet-b { gap: 14px; }
.kchk-in-sheet .kchk-list { gap: 6px; }

/* ---------- the pop over ---------- */
.pop.kchk-pop { width: min(400px, calc(100vw - 24px)); }
.kchk-pop-h { display: flex; align-items: flex-start; gap: 10px; }
.kchk-pop-h h3 { margin: 4px 0 0; font-size: 1rem; line-height: 1.375rem; overflow-wrap: anywhere; }
.kchk-pop .kchk-pop-k { font-size: .8125rem; }
.kchk-dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 12px; margin: 0; font-size: .8125rem; line-height: 1.25rem; }
.kchk-dl dt { color: var(--ink-2); font-weight: 600; }
.kchk-dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.kchk-pop .kchk-pop-on { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--ink-2); }

/* ---------- the board head chip ---------- */
.kchk-head { gap: 7px; }
.kchk-head .ico { color: var(--brand-text); }
.kchk-head-n { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--brand-soft); color: var(--brand-text); white-space: nowrap; }
.kchk-head.is-over .kchk-head-n { background: var(--kchk-over); color: var(--kchk-over-ink); }
.kchk-head .kchk-live { width: 7px; height: 7px; }

/* ---------- the rail (300 px) and phones: the countdown goes under the title ---------- */
.kchk[data-kchk-where="rail"] { padding: 14px 12px 12px; }
.kchk[data-kchk-where="rail"] .kchk-row { grid-template-columns: 30px minmax(0,1fr); }
.kchk[data-kchk-where="rail"] .kchk-ico { width: 30px; height: 30px; }
.kchk[data-kchk-where="rail"] .kchk-cd { grid-column: 2; justify-self: start; }
.kchk[data-kchk-where="rail"] .kchk-flash { margin-left: 0; }
.kchk[data-kchk-where="rail"] .kchk-counts { margin-left: 0; width: 100%; }
.kchk[data-kchk-where="rail"] .kchk-day { min-height: 50px; }
@media (max-width: 599px) {
  .kchk { padding: 12px 12px 10px; }
  .kchk-row { grid-template-columns: 30px minmax(0,1fr); }
  .kchk-ico { width: 30px; height: 30px; }
  .kchk-cd { grid-column: 2; justify-self: start; }
  .kchk-flash { margin-left: 0; }
  .kchk-counts { margin-left: 0; width: 100%; }
  .kchk-seg button { padding: 0 9px; }
  .kchk-sel { flex: 1 1 100%; }
  .kchk-day { min-height: 50px; }
  .kchk-grid-days14 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kchk-grid-days14 .kchk-day { min-height: 0; }
  .kchk-head .kchk-head-l { display: none; }
}

/* ---------- still: Calm, reduced motion, the quiet period ---------- */
:root[data-motion="reduced"] .kchk-live::after,
:root[data-calm="on"] .kchk-live::after,
:root[data-quiet="on"] .kchk-live::after { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="full"]) .kchk-live::after { animation: none; opacity: 0; } }
:root[data-motion="reduced"] button.kchk-row { transition: none; }

/* ---------- High contrast ---------- */
:root[data-theme="high_contrast"] .kchk-row { box-shadow: none; border: 2px solid #000; background: #FFFFFF; }
:root[data-theme="high_contrast"] .kchk-ico { background: #FFFFFF; box-shadow: inset 0 0 0 2px currentColor; }
:root[data-theme="high_contrast"] .kchk-cd, :root[data-theme="high_contrast"] .kchk-n { box-shadow: none; border: 2px solid #000; background: #FFFFFF; color: #000; }
:root[data-theme="high_contrast"] .kchk-n.is-over, :root[data-theme="high_contrast"] .kchk-li[data-state="overdue"] > .kchk-row .kchk-cd { background: var(--kchk-over); color: #FFFFFF; border-color: var(--kchk-over); }
:root[data-theme="high_contrast"] .kchk-li[data-state="overdue"] > .kchk-row { border-color: var(--kchk-over); border-left-width: 6px; background: #FFFFFF; }
:root[data-theme="high_contrast"] .kchk-li[data-today] > .kchk-row { border-left-width: 6px; background: #FFFFFF; }
:root[data-theme="high_contrast"] .kchk-li[data-state="due"] > .kchk-row .kchk-cd { background: var(--kchk-due-bg); }
:root[data-theme="high_contrast"] .kchk-seg { box-shadow: none; border: 2px solid #000; background: #FFFFFF; }
:root[data-theme="high_contrast"] .kchk-seg button[aria-pressed="true"] { background: #000; color: #FFFFFF; box-shadow: none; }
:root[data-theme="high_contrast"] .kchk-sel { border: 2px solid #000; }
:root[data-theme="high_contrast"] .kchk-cm { background: #FFFFFF; border: 2px solid #000; box-shadow: inset 6px 0 0 var(--kchk-own, #000); }
:root[data-theme="high_contrast"] .kchk-cm > .kchk-frost { display: none; }
:root[data-theme="high_contrast"] .kchk-wf { background: #FFFFFF; color: #000; }
:root[data-theme="high_contrast"] .kchk-flash { background: #FFFFFF; color: #000; border: 2px solid #000; }
:root[data-theme="high_contrast"] .kchk-day { box-shadow: none; border: 2px solid #000; background: #FFFFFF; }
:root[data-theme="high_contrast"] .kchk-day[aria-pressed="true"] { background: #000; color: #FFFFFF; }
:root[data-theme="high_contrast"] .kchk-day[aria-pressed="true"] .kchk-wd, :root[data-theme="high_contrast"] .kchk-day[aria-pressed="true"] .kchk-dn, :root[data-theme="high_contrast"] .kchk-day[aria-pressed="true"] .kchk-more-n { color: #FFFFFF; }
:root[data-theme="high_contrast"] .kchk-day.is-today { outline: 3px solid #000; outline-offset: 1px; }
:root[data-theme="high_contrast"] .kchk-dot { box-shadow: 0 0 0 1px #000; }
:root[data-theme="high_contrast"] .kchk-chip { background: #FFFFFF; border: 1px solid #000; }
:root[data-theme="high_contrast"] .kchk-mark-fred .kchk-mk-bg { fill: #0B2A10; }
:root[data-theme="high_contrast"] .kchk-mark-job .kchk-mk-bg { fill: #000; }
:root[data-theme="high_contrast"] .kchk-live, :root[data-theme="high_contrast"] .kchk-live::after { background: #0B2A10; }
:root[data-theme="high_contrast"] .kchk-head-n { border: 2px solid #000; background: #FFFFFF; color: #000; }
:root[data-theme="high_contrast"] .kchk-head.is-over .kchk-head-n { background: var(--kchk-over); color: #FFFFFF; border-color: var(--kchk-over); }

/* ---------- forced colours ---------- */
@media (forced-colors: active) {
  .kchk-row, .kchk-day, .kchk-cd, .kchk-n, .kchk-seg, .kchk-flash, .kchk-chip { border: 1px solid CanvasText; }
  .kchk-li[data-state="overdue"] > .kchk-row { border-left: 6px solid Highlight; }
  .kchk-day[aria-pressed="true"], .kchk-seg button[aria-pressed="true"] { outline: 2px solid Highlight; }
  .kchk-dot { forced-color-adjust: none; border: 1px solid CanvasText; }
  .kchk-cm > .kchk-frost { display: none; }
}

/* ---------- print ---------- */
@media print { .kchk-live, .kchk-big, .kchk-tools, .kchk-more { display: none; } .kchk-cm > .kchk-frost { display: none; } }
