/* ===========================================================================
   parity-checklists.css — CLUSTER 20 · studio checklists + the floater loop.

   Loaded on demand by js/views/_checklist-shared.js (index.html is owned by
   another cluster). Every colour here is a backline.css token; there is no new
   palette. `--gold` is Platinum-only and appears nowhere in this file — the
   floater's end-of-night section, which iOS paints gold, is amber (`--warn`).

   Design read: an operational run-book for staff on their feet mid-shift. One
   390px column of stacked cards; each screen led by a single oversized numeric
   verdict. The signature is the pair of dials — the checklist progress ring and
   the floater grace countdown — the same gesture in two states, so a floater
   and a closer recognise the same object. Everything else stays plain house
   furniture on purpose, so the dial is the only place boldness is spent.

   Sections
     1. shell + shared furniture      6. the record (#/checklist/status)
     2. overlays, sheets, dialogs     7. the night report (#/checklist/report)
     3. the run-book hero + ring      8. floater round + grace ring
     4. area cards + item rows        9. floater round checklist
     5. celebration + Today card     10. floater submitted
    11. desktop lane (>=821px / 1200px)   12. reduced motion
   =========================================================================== */

/* --- 1 · shell + shared furniture ---------------------------------------- */

.ckl-content { padding-bottom: 28px; }
.ckl-body { gap: 14px; margin-top: 6px; }

.ckl-nav-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ckl-nav-day {
  font-size: 10.5px; letter-spacing: .06em; color: var(--mut);
  text-transform: uppercase; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ckl-nav-switch {
  font-size: 11.5px; font-weight: 600; color: var(--ink2); text-decoration: none;
  background: var(--surf2); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 11px; white-space: nowrap;
}
.ckl-nav-switch:hover { border-color: var(--line2); color: var(--ink); }
.ckl-help {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  background: var(--surf2); border: 1px solid var(--line);
  color: var(--mut); font-size: 12px; font-weight: 700;
}
.ckl-help:hover { color: var(--ink); border-color: var(--line2); }

.ckl-section-eyebrow {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  color: var(--mut); text-transform: uppercase; margin-bottom: 8px;
}

.ckl-warn { display: flex; align-items: center; gap: 9px; color: var(--warn); font-size: 12.5px; line-height: 1.45; }
.ckl-warn svg { flex: 0 0 auto; }
.ckl-warn .btn-warn { flex: 0 0 auto; }

.ckl-forbidden { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.ckl-forbidden-icon {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surf3); border: 1px solid var(--line2); color: var(--mut);
}
.ckl-forbidden-title { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.ckl-forbidden-body { font-size: 12.5px; line-height: 1.55; color: var(--ink2); }
.ckl-forbidden .btn-glass { margin-top: 3px; text-decoration: none; display: inline-flex; }

/* backline.css has .btn-warn but no destructive button; this is the only
   place a red confirm is offered, so it is defined here rather than upstream. */
.btn-danger {
  background: var(--badSoft); border: 1px solid var(--redStroke);
  border-radius: 11px; padding: 10px 16px; font-size: 12.5px; font-weight: 700;
  color: var(--bad); cursor: pointer; font-family: inherit;
}
.btn-danger:hover:not(:disabled) { background: #F0322233; }
.btn-danger:disabled { opacity: .55; cursor: default; }

/* backline.css scopes :disabled per view rather than globally, so a disabled
   primary in this cluster's sticky bars and sheets would otherwise render at
   full brightness and read as tappable. */
.fck-submitbar .btn-primary:disabled,
.ckl-sheet .btn-primary:disabled,
.ckl-sheet .btn-glass:disabled,
.ckl-celeb .btn-primary:disabled,
.flr-content .btn-primary:disabled {
  opacity: .45; cursor: not-allowed; filter: saturate(.5);
}

/* One focus treatment for every interactive thing this cluster adds. */
.ckl-content a:focus-visible,
.ckl-content button:focus-visible,
.ckl-content textarea:focus-visible,
.ckl-overlay a:focus-visible,
.ckl-overlay button:focus-visible,
.ckl-overlay textarea:focus-visible,
.ckl-today a:focus-visible,
.flr-today a:focus-visible {
  outline: 2px solid var(--violet2); outline-offset: 2px; border-radius: 10px;
}

/* --- 2 · overlays, sheets, dialogs --------------------------------------- */

.ckl-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  background: #0A0C11D9; overscroll-behavior: contain;
}
.ckl-sheet {
  width: 100%; max-width: 400px; max-height: 82vh; overflow: auto;
  overscroll-behavior: contain;
  background: var(--surf); border: 1px solid var(--line2); border-radius: 18px;
  padding: 18px 17px 15px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 18px 44px #00000073;
}
.ckl-sheet.bad { border-color: var(--redStroke); }
.ckl-sheet-eyebrow {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .11em;
  color: var(--bad); text-transform: uppercase;
}
.ckl-sheet-title { font-family: var(--serif); font-size: 20px; line-height: 1.15; color: var(--ink); }
.ckl-sheet-sub { font-size: 11.5px; color: var(--mut); }
.ckl-sheet-body { font-size: 12.5px; line-height: 1.55; color: var(--ink2); }
.ckl-sheet-err { font-size: 12px; line-height: 1.45; color: var(--warn); }
.ckl-sheet-err:empty { display: none; }
.ckl-sheet-actions { display: flex; gap: 9px; margin-top: 4px; flex-wrap: wrap; }
.ckl-sheet-actions > * { flex: 1 1 120px; min-height: 44px; }

.ckl-note-input, .fck-note-input {
  width: 100%; resize: vertical; min-height: 68px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 11px; color: var(--ink); font-family: inherit;
  font-size: 16px; line-height: 1.5;   /* 16px so iOS never zooms the field */
}
.ckl-note-input::placeholder, .fck-note-input::placeholder { color: var(--mut); }
.ckl-note-input:focus-visible, .fck-note-input:focus-visible { border-color: var(--violetStroke); }

.ckl-assign-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; overscroll-behavior: contain; }
.ckl-assign-row {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 46px;
  text-align: left; background: var(--surf2); border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 12px; color: var(--ink);
  font-family: inherit; font-size: 13px; cursor: pointer;
}
.ckl-assign-row:hover { border-color: var(--line2); }
.ckl-assign-row.mine { background: var(--violetSoft); border-color: var(--violetStroke); font-weight: 700; }
.ckl-assign-name { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckl-assign-role { font-family: var(--mono); font-size: 9.5px; color: var(--mut); text-transform: uppercase; }

.ckl-overlay.photo { background: #0A0C11F2; }
.ckl-photo { max-width: 100%; max-height: 76vh; border-radius: 14px; border: 1px solid var(--line2); }
.ckl-photo-hint { position: absolute; bottom: 26px; font-size: 11.5px; color: var(--mut); }
/* The bytes are bearer-gated, so the viewer waits on a fetch → Blob → object
   URL rather than an <img src> the door would 401. The host reserves the space
   so the overlay does not jump when the photo lands. */
.ckl-photo-host {
  display: flex; align-items: center; justify-content: center;
  min-width: 180px; min-height: 180px;
}
.ckl-photo-err {
  max-width: 280px; text-align: center; font-size: 12.5px; line-height: 1.5;
  color: var(--warn); padding: 18px 16px;
  border: 1px solid var(--amberStroke); border-radius: 14px;
  background: var(--surf2);
}

.ckl-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* --- 3 · the run-book hero + progress ring ------------------------------- */

.ckl-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 2px; }
.ckl-hero-emoji { font-size: 26px; line-height: 1; }
.ckl-hero-title {
  font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: -.3px;
  color: var(--ink); margin: 0; text-align: center;
}

.ckl-ring { position: relative; width: 152px; height: 152px; margin: 6px 0 2px; }
.ckl-ring-svg { display: block; }
.ckl-ring-track { fill: none; stroke: var(--surf3); stroke-width: 12; }
.ckl-ring-prog {
  fill: none; stroke-width: 12; stroke: var(--violet);
  transition: stroke-dashoffset .45s ease-out, stroke .3s ease;
}
.ckl-ring-prog.teal { stroke: var(--teal); }
.ckl-ring-prog.violet { stroke: var(--violet); }
.ckl-ring-prog.blue { stroke: var(--blue); }
.ckl-ring-prog.ok { stroke: var(--ok); }
.ckl-ring-centre {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; pointer-events: none;
}
.ckl-ring-done {
  font-family: var(--serif); font-size: 46px; line-height: 1; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.ckl-ring-done.teal { color: var(--teal); }
.ckl-ring-done.violet { color: var(--violet2); }
.ckl-ring-done.blue { color: var(--blue); }
.ckl-ring-done.ok { color: var(--ok); }
.ckl-ring-of {
  font-family: var(--mono); font-size: 11px; color: var(--mut);
  font-variant-numeric: tabular-nums;
}
.ckl-count-line { font-size: 12.5px; font-weight: 600; color: var(--mut); }
.ckl-count-line.ok { color: var(--ok); }

.ckl-chips { margin-top: 2px; }
.ckl-earn-hint { font-size: 11.5px; line-height: 1.5; color: var(--mut); padding: 0 2px; }

/* the ding — a catch took the fast-pass */
.ckl-caught { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.ckl-caught-title { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bad); }
.ckl-caught-item { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.ckl-caught-note { font-size: 12.5px; line-height: 1.5; color: var(--ink2); font-style: italic; }
.ckl-caught-who { font-size: 11px; color: var(--mut); }
.ckl-caught-body { font-size: 12px; line-height: 1.5; color: var(--ink2); margin-top: 2px; }

/* the refusal — sticky, click to dismiss, kept out of the polled error slot */
.ckl-refusal { display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-align: left; }
.ckl-refusal-title { font-size: 13px; font-weight: 700; color: var(--warn); }
.ckl-refusal-body { font-size: 12.5px; line-height: 1.5; color: var(--ink2); }
.ckl-refusal-hint { font-size: 11px; color: var(--mut); }

.ckl-lastnight { display: flex; flex-direction: column; }
.ckl-ln-row { padding: 8px 0; border-top: 1px solid var(--redStroke2); }
.ckl-ln-row:first-of-type { border-top: none; }
.ckl-ln-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.ckl-ln-meta { font-size: 10.5px; color: var(--mut); margin-top: 2px; }
.ckl-ln-note { font-size: 12px; line-height: 1.45; color: var(--ink2); font-style: italic; margin-top: 3px; }

/* owner bar */
.ckl-owner { display: flex; align-items: center; gap: 11px; }
.ckl-owner.open { border-style: dashed; border-color: var(--surf3); background: var(--surf2); }
.ckl-owner.claimed.opening { border-color: var(--tealStroke); background: var(--tealSoft); }
.ckl-owner.claimed.closing { border-color: var(--violetStroke); background: var(--violetSoft); }
.ckl-owner.claimed.midday { border-color: color-mix(in srgb, var(--blue) 24%, transparent); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.ckl-owner-mid { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ckl-owner-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--mut); }
.ckl-owner-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.ckl-owner-caption { font-size: 10.5px; color: var(--mut); }
.ckl-owner-btn { flex: 0 0 auto; min-height: 40px; }

.ckl-tabs { margin-top: 2px; }
.ckl-tabs .seg { min-height: 40px; }

/* --- 4 · area cards + item rows ------------------------------------------ */

.ckl-areas { display: flex; flex-direction: column; gap: 12px; }
.ckl-area { display: flex; flex-direction: column; gap: 8px; }
.ckl-area-head { display: flex; align-items: center; gap: 8px; }
.ckl-area-emoji { font-size: 15px; line-height: 1; }
.ckl-area-title { font-size: 13.5px; font-weight: 700; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckl-area-count { font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; }
.ckl-room-btn {
  flex: 0 0 auto; min-height: 32px; padding: 6px 11px; border-radius: 999px;
  background: var(--violetSoft); border: 1px solid var(--violetStroke);
  color: var(--violet2); font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
}
.ckl-room-btn:hover:not(:disabled) { background: #8B6CFF33; }
.ckl-room-btn:disabled { opacity: .6; cursor: default; }

/* LAST STEPS. Amber is already this app's "read this before you act" colour (the special-item
   pill, .btn-warn, .card.warn), so an emphasis section borrows it instead of adding a fourth
   accent, and keeps the card geometry so it still reads as one of the list's sections. */
.card.ckl-area.hot { background: var(--warnSoft); border-color: var(--amberStroke); border-width: 1.5px; }
.card.ckl-area.hot .ckl-area-title { color: var(--warn); white-space: normal; overflow: visible; text-overflow: clip; }
.card.ckl-area.hot .ckl-area-count { color: var(--warn); }
.ckl-area-note { font-size: 11.5px; line-height: 1.45; color: var(--mut); white-space: pre-line; }
.card.ckl-area.hot .ckl-area-note { color: var(--warn); }
/* Fixed width so the numerals form a column the eye reads as a sequence, and so a checked row
   does not reflow its label when the glyph width changes. */
.ckl-row-ord {
  flex: 0 0 16px; width: 16px; margin-top: 6px; text-align: center;
  font-size: 12.5px; font-weight: 600; color: var(--warn); font-variant-numeric: tabular-nums;
}
.ckl-row.on .ckl-row-ord { color: var(--mut); }
.ckl-area-bar { height: 4px; border-radius: 999px; background: var(--surf3); overflow: hidden; }
.ckl-area-fill { height: 100%; border-radius: 999px; background: var(--violet); transition: width .35s ease-out; }
.ckl-area-fill.opening { background: var(--teal); }
.ckl-area-fill.closing { background: var(--violet); }
.ckl-area-fill.midday { background: var(--blue); }
.ckl-area-fill.hot { background: var(--warn); }

.ckl-rows { display: flex; flex-direction: column; }
.ckl-row {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 46px;
  padding: 9px 0; text-align: left; background: none; border: none;
  border-top: 1px solid var(--hair); color: var(--ink);
  font-family: inherit; cursor: pointer;
}
.ckl-row:first-child { border-top: none; }
.ckl-row:disabled { cursor: default; }
.ckl-row.on .ckl-row-label { color: var(--mut); }
.ckl-row.lingering { opacity: .82; }

.ckl-circle {
  flex: 0 0 26px; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  border: 1.5px solid var(--line2); background: var(--surf2);
  display: grid; place-items: center; color: var(--bg);
  transition: transform .16s ease-out, background-color .16s ease-out, border-color .16s ease-out;
}
.ckl-row:hover .ckl-circle { border-color: var(--mut); }
.ckl-circle.on { transform: scale(1.06); border-color: transparent; }
.ckl-circle.on.opening { background: var(--teal); }
.ckl-circle.on.closing { background: var(--violet); color: var(--ink); }
.ckl-circle.on.midday { background: var(--blue); color: var(--ink); }
.ckl-circle .spinner { width: 14px; height: 14px; }

.ckl-row-mid { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ckl-row-label { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.ckl-row-note { font-size: 11.5px; line-height: 1.45; color: var(--mut); white-space: pre-line; }
.ckl-row-caption { font-size: 10.5px; color: var(--mut); font-variant-numeric: tabular-nums; }
.ckl-special {
  align-self: flex-start; font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--warn);
  background: var(--warnSoft); border: 1px solid var(--amberStroke);
  border-radius: 999px; padding: 3px 8px;
}

/* leaderboard */
.ckl-lb { display: flex; flex-direction: column; }
.ckl-lb-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.ckl-lb-row.me.opening { background: var(--tealSoft); }
.ckl-lb-row.me.closing { background: var(--violetSoft); }
.ckl-lb-row.me.midday { background: color-mix(in srgb, var(--blue) 12%, transparent); }
.ckl-lb-rank { flex: 0 0 24px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--mut); }
.ckl-lb-mid { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ckl-lb-name { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckl-lb-sub { font-size: 10.5px; color: var(--mut); font-variant-numeric: tabular-nums; }
.ckl-lb-pts { font-size: 13px; font-weight: 700; color: var(--ink2); font-variant-numeric: tabular-nums; }
.ckl-lb-divider { height: 1px; background: var(--hair); margin: 6px 0; }

.ckl-foot { font-size: 11px; line-height: 1.5; color: var(--mut); padding: 2px 2px 6px; }

/* --- 5 · the celebration + the Today card -------------------------------- */

/* Opaque backdrop on purpose: the list must not bleed through. Only the
   contents move. */
.ckl-celeb {
  position: fixed; inset: 0; z-index: 70; background: var(--bg);
  display: grid; place-items: center; padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.ckl-celeb-inner {
  position: relative; width: 100%; max-width: 340px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  animation: ckl-rise .5s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes ckl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ckl-celeb-halo {
  position: absolute; top: -34px; width: 168px; height: 168px; border-radius: 50%;
  filter: blur(34px); opacity: .3; animation: ckl-pulse 4.5s ease-in-out infinite;
}
.ckl-celeb-halo.opening { background: var(--teal); }
.ckl-celeb-halo.closing { background: var(--violet); }
.ckl-celeb-halo.midday { background: var(--blue); }
@keyframes ckl-pulse { 0%, 100% { opacity: .22; transform: scale(1); } 50% { opacity: .4; transform: scale(1.07); } }
.ckl-celeb-emoji { font-size: 46px; line-height: 1; position: relative; }
.ckl-celeb-title { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--ink); }
.ckl-celeb-stat { font-size: 11.5px; color: var(--mut); text-align: center; font-variant-numeric: tabular-nums; }
.ckl-celeb-pts { font-size: 13px; font-weight: 700; color: var(--ok); }
.ckl-celeb-streak { font-size: 12.5px; color: var(--warn); }
.ckl-celeb .btn-primary { margin-top: 12px; }

.ckl-today-card { display: flex; flex-direction: column; gap: 2px; }
.ckl-today-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ckl-today-eyebrow { font-family: var(--mono); font-size: 9.5px; letter-spacing: .11em; color: var(--mut); text-transform: uppercase; flex: 1 1 0; }
.ckl-today-day { font-size: 10px; color: var(--mut); font-variant-numeric: tabular-nums; }
.ckl-today-row {
  display: flex; align-items: center; gap: 10px; min-height: 54px;
  padding: 9px 0; border-top: 1px solid var(--hair); text-decoration: none; color: inherit;
}
.ckl-today-row:first-of-type { border-top: none; }
.ckl-today-emoji { font-size: 17px; line-height: 1; }
.ckl-today-mid { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ckl-today-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ckl-today-sub { font-size: 10.5px; color: var(--mut); }
.ckl-today-bar { height: 3px; border-radius: 999px; background: var(--surf3); overflow: hidden; margin-top: 2px; }
.ckl-today-fill { display: block; height: 100%; border-radius: 999px; background: var(--violet); transition: width .35s ease-out; }
.ckl-today-fill.opening { background: var(--teal); }
.ckl-today-fill.closing { background: var(--violet); }
.ckl-today-fill.midday { background: var(--blue); }
.ckl-today-fill.ok { background: var(--ok); }
.ckl-today-status { font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ckl-today-status.ok { color: var(--ok); }
.ckl-today-row .chevron { color: var(--dim); flex: 0 0 auto; }

.ckl-today-banner {
  display: flex; align-items: center; gap: 9px; min-height: 48px; margin-top: 8px;
  padding: 9px 11px; border-radius: 12px; text-decoration: none; color: inherit;
  background: var(--badSoft); border: 1px solid var(--redStroke2);
}
.ckl-today-banner.ok { background: var(--okSoft); border-color: var(--okStroke); }
.ckl-today-banner-emoji { font-size: 15px; line-height: 1; }
.ckl-today-banner-title { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.ckl-today-banner-sub { display: block; font-size: 10.5px; color: var(--mut); margin-top: 1px; }
.ckl-today-banner .chevron { color: var(--dim); flex: 0 0 auto; }

/* --- 6 · the record (#/checklist/status) --------------------------------- */

.ckr-hero { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 2px; }
.ckr-hero-sub { font-size: 12.5px; line-height: 1.5; color: var(--mut); max-width: var(--read-max); }

.ckr-banner {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  text-decoration: none; color: inherit;
}
.ckr-banner-emoji { font-size: 16px; line-height: 1; }
.ckr-banner-text { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.ckr-banner .chevron { color: var(--dim); flex: 0 0 auto; }

.ckr-day { display: flex; flex-direction: column; gap: 2px; }
.ckr-day-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ckr-day-label { font-size: 11px; letter-spacing: .05em; color: var(--mut); text-transform: uppercase; }
.ckr-today-tag {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; color: var(--teal);
  background: var(--tealSoft); border: 1px solid var(--tealStroke2);
  border-radius: 999px; padding: 2px 7px;
}

.ckr-line {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px;
  padding: 8px 0; border-top: 1px solid var(--hair);
  background: none; border-left: none; border-right: none; border-bottom: none;
  text-align: left; color: inherit; font-family: inherit;
}
.ckr-line:first-of-type { border-top: none; }
.ckr-line.tappable { cursor: pointer; }
.ckr-line-emoji { font-size: 14px; line-height: 1; }
.ckr-line-kind { font-size: 12.5px; font-weight: 700; color: var(--ink); flex: 0 0 auto; }
.ckr-line-flags { font-size: 11px; color: var(--bad); font-variant-numeric: tabular-nums; }
.ckr-line .chevron { color: var(--dim); flex: 0 0 auto; }

.ckr-badge {
  font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 4px 9px;
  font-variant-numeric: tabular-nums; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ckr-badge.ok { color: var(--ok); background: var(--okSoft); }
.ckr-badge.partial { color: var(--violet2); background: var(--surf3); }
.ckr-badge.idle { color: var(--mut); background: var(--surf3); }
.ckr-badge.bad { color: var(--bad); background: var(--badSoft); }

.ckr-detail {
  background: var(--bg2); border: 1px solid var(--hair); border-radius: 12px;
  padding: 8px 10px; margin: 2px 0 8px; display: flex; flex-direction: column;
}
.ckr-detail-empty, .ckr-detail-hint { font-size: 11px; line-height: 1.5; color: var(--mut); padding: 6px 0 2px; }
.ckr-drow {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px;
  padding: 6px 0; background: none; border: none; text-align: left;
  color: inherit; font-family: inherit;
}
.ckr-drow.tappable { cursor: pointer; }
.ckr-drow.tappable:hover .ckr-dlabel { color: var(--ink); }
.ckr-dmark { flex: 0 0 16px; text-align: center; font-size: 11px; color: var(--ok); }
.ckr-drow.missed .ckr-dmark, .ckr-drow.flagged .ckr-dmark { color: var(--bad); }
.ckr-dlabel { font-size: 12.5px; color: var(--ink2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckr-drow.missed .ckr-dlabel, .ckr-drow.flagged .ckr-dlabel { color: var(--bad); }
.ckr-dcap { font-size: 10px; color: var(--mut); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.ckr-flag-note {
  font-size: 11.5px; line-height: 1.45; color: var(--ink2); font-style: italic;
  border-left: 2px solid var(--redStroke); padding: 3px 0 3px 8px; margin-top: 5px;
}

/* --- 7 · the night report (#/checklist/report) --------------------------- */

.ckn-head { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 2px; }
.ckn-title { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: -.3px; color: var(--ink); margin: 0; }
.ckn-count { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.ckn-count.ok { color: var(--ok); }
.ckn-owner { font-size: 12.5px; font-weight: 600; color: var(--ink2); margin-top: 3px; }
.ckn-names { font-size: 11.5px; color: var(--mut); }

/* the miss card — deliberately the loudest surface after an error */
.ckn-miss { display: flex; flex-direction: column; }
.ckn-miss-title { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--bad); margin: 0; }
.ckn-miss-sub { font-size: 12px; color: var(--ink2); margin-top: 3px; }
.ckn-rule { height: 1px; background: var(--redStroke); margin: 11px 0 4px; }
.ckn-sec {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--mut);
  text-transform: uppercase; margin: 9px 0 2px;
}
.ckn-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 0; }
.ckn-mark { flex: 0 0 16px; text-align: center; font-size: 12px; color: var(--bad); }
.ckn-mark.ok { color: var(--ok); }
.ckn-badge-glyph { font-size: 12px; line-height: 1; }
.ckn-row-label { font-size: 13px; font-weight: 600; color: var(--ink); min-width: 0; line-height: 1.35; }
.ckn-row.done .ckn-row-label { font-weight: 500; color: var(--ink2); }
.ckn-row-cap { font-size: 10px; color: var(--mut); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.ckn-caught { font-size: 10.5px; color: var(--mut); flex: 0 0 auto; }
.ckn-flag-btn {
  flex: 0 0 auto; min-height: 32px; padding: 6px 13px; border-radius: 999px;
  background: var(--badSoft); border: 1px solid var(--redStroke);
  color: var(--bad); font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
}
.ckn-flag-btn:hover { background: #F0322233; }
.ckn-miss-hint { font-size: 11px; line-height: 1.5; color: var(--mut); margin-top: 10px; }

.ckn-clean { background: var(--okSoft); border-color: var(--okStroke); }
.ckn-clean-title { font-family: var(--serif); font-size: 20px; color: var(--ok); }
.ckn-clean-body { font-size: 12.5px; line-height: 1.5; color: var(--ink2); margin-top: 3px; }

/* A day with no template is UNKNOWN, never a green all-clear. */
.ckn-unknown { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ckn-unknown-title { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.ckn-unknown-body { font-size: 12.5px; line-height: 1.5; color: var(--mut); }
.ckn-unknown .btn-glass { text-decoration: none; display: inline-flex; margin-top: 3px; }

.ckn-done { display: flex; flex-direction: column; }
.ckn-done-head {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px;
  background: none; border: none; padding: 0; text-align: left;
  color: var(--ink2); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ckn-done-head .chevron { color: var(--dim); }

.ckn-foot {
  display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 2px;
  text-decoration: none; color: var(--violet2); font-size: 12.5px; font-weight: 600;
}
.ckn-foot .chevron { color: var(--dim); }

/* --- 8 · floater round + the grace ring ---------------------------------- */

.flr-content { display: flex; flex-direction: column; }
.flr-content .ckl-body { align-items: center; text-align: center; }
.flr-eyebrow { align-self: center; }
.flr-kicker { font-family: var(--serif); font-size: 15px; color: var(--mut); }
.flr-due {
  font-family: var(--serif); font-size: 52px; line-height: 1; font-weight: 600;
  color: var(--ink); letter-spacing: -1px; font-variant-numeric: tabular-nums;
}
.flr-tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px; color: var(--mut); background: var(--surf3);
}
.flr-tag.bad { color: var(--bad); background: var(--badSoft); }

.flr-ring { position: relative; width: 192px; height: 192px; margin: 4px 0; }
.flr-ring-svg { display: block; }
.flr-ring-track { fill: none; stroke: var(--surf3); stroke-width: 12; }
.flr-ring-prog {
  fill: none; stroke-width: 12; stroke: url(#flr-grace-grad);
  transition: stroke-dashoffset .9s linear;
}
.flr-ring-prog.past { stroke: var(--bad); }
.flr-stop-a { stop-color: var(--violet); }
.flr-stop-b { stop-color: var(--teal); }
.flr-ring-centre {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; pointer-events: none;
}
.flr-ring-num {
  font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.flr-ring-num.bad { color: var(--bad); }
.flr-ring-cap { font-size: 9.5px; letter-spacing: .14em; color: var(--mut); }
.flr-ring-cap.bad { color: var(--bad); }

.flr-reassure { font-size: 12.5px; line-height: 1.55; color: var(--ink2); max-width: 320px; }
.flr-reassure b { color: var(--ink); }

.flr-cover { width: 100%; text-align: left; }
.flr-cover-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--teal); text-transform: uppercase; margin-bottom: 5px; }
.flr-cover-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: 5px; row-gap: 3px; }
.flr-cover-item { font-size: 12px; color: var(--ink2); }
.flr-cover-item + .flr-cover-item::before { content: '· '; color: var(--dim); }

.flr-start { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
.flr-snooze {
  background: none; border: none; color: var(--mut); font-family: inherit;
  font-size: 12.5px; min-height: 44px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.flr-snooze:hover { color: var(--ink2); }
.flr-back { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

.flr-submitted { display: flex; flex-direction: column; align-items: center; gap: 7px; margin: 6px 0; }
.flr-submitted-seal {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--okSoft); border: 1px solid var(--okStroke); color: var(--ok);
}
.flr-submitted-title { font-family: var(--serif); font-size: 22px; color: var(--ok); }
.flr-submitted-body { font-size: 12.5px; color: var(--mut); }

/* the floater's Today card — the whole notification system, since there is no
   web push */
.flr-today-card {
  display: flex; align-items: center; gap: 11px; min-height: 66px;
  text-decoration: none; color: inherit;
}
.flr-today-card.due { border-color: var(--violetStroke); background: var(--violetSoft); }
.flr-today-mid { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.flr-today-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--violet2); text-transform: uppercase; }
.flr-today-time { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.flr-today-sub { font-size: 11px; color: var(--mut); }
.flr-today-card .btn-primary { flex: 0 0 auto; }

/* --- 9 · floater round checklist ----------------------------------------- */

.fck-content { display: flex; flex-direction: column; padding-bottom: 12px; }
.fck-hdr {
  position: sticky; top: 0; z-index: 20;
  background: #0A0C11F0; backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair); margin: 0 -16px; padding: 0 16px;
}
.fck-hdr-inner { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 9px; }
.fck-hdr-row { display: flex; align-items: center; gap: 9px; }
.fck-back {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; background: none; border: none;
  color: var(--mut); cursor: pointer;
}
.fck-back:hover { color: var(--ink); background: var(--surf2); }
.fck-hdr-title { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); }
.fck-hdr-sub { font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; }
.fck-count {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--violet2);
  background: var(--violetSoft); border: 1px solid var(--violetStroke2);
  border-radius: 999px; padding: 5px 11px; font-variant-numeric: tabular-nums;
}
.fck-bar { height: 8px; border-radius: 999px; background: var(--surf3); overflow: hidden; }
.fck-bar-fill { height: 100%; border-radius: 999px; background: var(--violet); transition: width .3s ease-out; }

.fck-box { display: flex; flex-direction: column; }
.fck-sec { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.fck-sec-emoji { font-size: 13px; line-height: 1; }
.fck-sec-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fck-sec-label.bad { color: var(--bad); }
.fck-sec-label.violet { color: var(--violet2); }
.fck-sec-label.teal { color: var(--teal); }
/* iOS paints the end-of-night section with gold. `--gold` is Platinum-only on
   web, so amber carries it here — a deliberate divergence, not an oversight. */
.fck-sec-label.warn { color: var(--warn); }
.fck-sec-label.mut { color: var(--mut); }
.fck-sec-tag {
  flex: 0 0 auto; font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  border-radius: 999px; padding: 3px 8px; color: var(--mut); background: var(--surf3);
}
.fck-sec-tag.bad { color: var(--bad); background: var(--badSoft); }
.fck-sec-tag.violet { color: var(--violet2); background: var(--violetSoft); }
.fck-sec-tag.teal { color: var(--teal); background: var(--tealSoft); }
.fck-sec-tag.warn { color: var(--warn); background: var(--warnSoft); }

.fck-row {
  display: flex; align-items: flex-start; gap: 11px; width: 100%; min-height: 48px;
  padding: 9px 0; text-align: left; background: none; border: none;
  border-top: 1px solid var(--hair); color: var(--ink); font-family: inherit; cursor: pointer;
}
.fck-row:first-of-type { border-top: none; }
.fck-row.ro { cursor: default; }
.fck-check {
  flex: 0 0 26px; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px;
  border: 1.5px solid var(--line2); background: var(--surf2);
  display: grid; place-items: center; color: var(--ink);
  transition: transform .16s ease-out, background-color .16s ease-out, border-color .16s ease-out;
}
.fck-row:hover .fck-check { border-color: var(--mut); }
.fck-check.on { background: var(--violet); border-color: transparent; transform: scale(1.06); }
.fck-row-mid { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fck-row-label { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.fck-row.on .fck-row-label { color: var(--mut); text-decoration: line-through; }
.fck-row-detail { font-size: 11.5px; line-height: 1.45; color: var(--mut); }

.fck-note { display: flex; flex-direction: column; gap: 8px; }
.fck-note-head { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--mut); }

.fck-submitbar {
  position: sticky; bottom: 0; z-index: 20; margin: 8px -16px 0; padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0A0C1100, var(--bg) 38%);
  border-top: 1px solid var(--hair);
}
.fck-submitbar-inner { display: flex; flex-direction: column; gap: 6px; }
.fck-submitbar .btn-primary { min-height: 48px; }
.fck-submitbar .btn-glass { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
.fck-hint { font-size: 11px; text-align: center; color: var(--mut); }
.fck-hint.ok { color: var(--ok); }

/* --- 10 · floater submitted ---------------------------------------------- */

.fsb-content { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 12px; }
.fsb-seal {
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: var(--okSoft); border: 1px solid var(--okStroke); color: var(--ok);
  animation: ckl-rise .45s cubic-bezier(.2, .8, .3, 1) both;
}
.fsb-title { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--ink); margin: 4px 0 0; }
.fsb-stamp { font-size: 12px; color: var(--teal); font-variant-numeric: tabular-nums; }
.fsb-notified {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  padding: 6px 13px; background: var(--okSoft); border: 1px solid var(--okStroke);
  font-size: 11.5px; color: var(--ok);
}
.fsb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.fsb-recap { width: 100%; text-align: left; display: flex; flex-direction: column; }
.fsb-recap-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--mut); text-transform: uppercase; margin-bottom: 6px; }
.fsb-recap-row { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 5px 0; border-top: 1px solid var(--hair); }
.fsb-recap-row:first-of-type { border-top: none; }
.fsb-recap-emoji { font-size: 13px; line-height: 1; }
.fsb-recap-label { font-size: 12.5px; color: var(--ink2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsb-recap-count { font-size: 11.5px; color: var(--mut); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.fsb-recap-count.ok { color: var(--ok); }

.fsb-next { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.fsb-next.muted { background: var(--surf2); }
.fsb-next-head { display: flex; align-items: center; gap: 10px; }
.fsb-next-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--violet2); text-transform: uppercase; }
.fsb-next.muted .fsb-next-eyebrow { color: var(--mut); }
.fsb-next-time { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.fsb-next-body { font-size: 12px; line-height: 1.5; color: var(--ink2); }
.fsb-next-quiet { font-size: 11px; color: var(--mut); }
.fsb-done { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 4px; }

/* --- 11 · desktop lane ---------------------------------------------------- */
/* 390px is the primary lane. From 821px up the sticky bars stop being sticky
   (the mobile tab bar is gone), the two dials sit beside their copy instead of
   above it, and the run-book's area cards go two-up so a manager on a laptop
   is not scrolling a 130-row column. */

@media (min-width: 821px) {
  .ckl-hero { flex-direction: row; justify-content: center; gap: 26px; text-align: left; }
  .ckl-hero-title { font-size: 32px; text-align: left; order: 2; flex: 0 1 300px; }
  .ckl-hero-emoji { order: 1; font-size: 32px; align-self: center; }
  .ckl-ring { order: 3; margin: 0; }
  .ckl-count-line { text-align: center; order: 4; flex: 1 0 100%; white-space: nowrap; }

  .ckl-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }

  .flr-content .ckl-body { max-width: 520px; margin-inline: auto; }

  .fck-hdr { margin: 0; padding: 0; position: sticky; }
  .fck-submitbar {
    position: static; margin: 12px 0 0; padding: 12px 0 0;
    background: none; border-top: 1px solid var(--hair);
  }
  .fck-submitbar-inner { max-width: 420px; margin-inline: auto; }

  .fsb-content { max-width: 460px; margin-inline: auto; }
}

@media (min-width: 1200px) {
  .ckl-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ckr-hero-sub { max-width: var(--read-max); }
  .ckn-head, .ckn-miss, .ckn-clean, .ckn-unknown, .ckn-done { max-width: var(--read-max); }
}

/* --- 12 · reduced motion -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .ckl-ring-prog, .flr-ring-prog, .ckl-area-fill, .ckl-today-fill, .fck-bar-fill,
  .ckl-circle, .fck-check { transition: none; }
  .ckl-celeb-inner, .fsb-seal { animation: none; }
  .ckl-celeb-halo { animation: none; opacity: .26; }
  .ckl-circle.on, .fck-check.on { transform: none; }
}
