/* =========================================================================
   Skin "Instrument" — The Friendly Dev, direction 13 (2026-10-27, MDLAYOUT V3; Matt: "I like V3 Instrument Dark").
   Light = 13's cool-white ground; Dark = 13's ink navy (md-skin-instrument-dark, the default).
   Loaded by hud.php only when Look = Instrument, so Classic is untouched. Fonts: Fraunces 600 (brand, section
   titles) + Albert Sans 400/600 (everything else), linked in hud.php. Labels are sentence case (hud.js startCasing).
   Built from the approved mock skins (docs/design/2026-10-27-hud-layouts/ui/skin-13-*.css): layer 1 = 13's base,
   layer 2 = the Instrument treatment, layer 3 = dark. Every colour outside 13's palette is declared below.
   ========================================================================= */

/* ---- layer 1 · 13 base ---- */
/* V2 · TFD 13 Editorial — 13 as specified: cool-white ground, Fraunces 600 for the big reads, Albert Sans body,
   violet two-cell primary, coral = the current task (13's "Matt's steps"), a lilac stage behind the ring
   (the one staged object, like 13's handoff line), 1px rules, 8px radius, no shadows, no tracked capitals. 16px floor. */
/* palette-extra: #7C72B6 — ring frame on the lilac stage, a darker step of 13's violet to reach 3.54:1 (WCAG 1.4.11) */
/* palette-extra: #D9D3F2 — ring track, a light step of 13's violet so the violet progress arc reads against it */

.md-hud.md-skin-instrument {
	--md-bg: #F6F7FB; --md-bg-raise: #F6F7FB; --md-accent: #6A4FC8; --md-accent-2: #E4335F;
	--md-ink: #24213F; --md-ink-mid: #24213F; --md-ink-dim: #5F5D73; --md-line: #D7D9E6; --md-line-dim: #D7D9E6;
	--md-good: #6A4FC8; --md-glow: transparent; --md-accent-15: #ECE8FA;
	--t-violet-deep: #573DB0; --t-coral: #E4335F; --t-coral-text: #C4224B; --t-stage: #ECE8FA; --t-card: #FFFFFF; --t-backdrop: #E3E5EF;
	--md-font-mono: "Albert Sans", system-ui, sans-serif;
	--md-fs-base: 18px; --md-fs-row: 20px; --md-fs-label: 16px; --md-fs-small: 16px;
	--serif: "Fraunces", Georgia, serif;
}
body.md-skin-instrument { font-family: "Albert Sans", system-ui, sans-serif; letter-spacing: 0; color: var(--md-ink); }
body.md-skin-instrument *, body.md-skin-instrument *::before { letter-spacing: 0 !important; text-shadow: none !important; box-shadow: none !important; }
body.md-skin-instrument .scanlines, body.md-skin-instrument .corner, body.md-skin-instrument .tile::before { display: none !important; }
body.md-skin-instrument svg, body.md-skin-instrument .ringwrap svg { filter: none !important; }

/* header: bolt + serif name · underline tabs · quiet meta */
.md-skin-instrument .bar { border-bottom: 1px solid var(--md-line); padding-bottom: 8px !important; align-items: center; }
.md-skin-instrument .brand { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--md-ink); display: flex; align-items: center; gap: 10px; }
.md-skin-instrument .brand span { color: var(--md-ink); }
.md-skin-instrument .p-tab { border: 0 !important; background: none !important; color: var(--md-ink-dim) !important; font-size: 18px !important; font-weight: 600; padding: 6px 4px !important; margin: 0 14px; border-radius: 0; border-bottom: 2px solid transparent !important; }
.md-skin-instrument .p-tab.on { color: var(--md-accent) !important; border-bottom-color: var(--md-accent) !important; }
.md-skin-instrument .flag, .md-skin-instrument #clockDate, .md-skin-instrument .gear { color: var(--md-ink-dim); font-size: 16px; }
.md-skin-instrument .clock { font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--md-ink); }

/* mission: serif line, goals as ruled pills */
.md-skin-instrument .mission { background: none; border: 0; border-bottom: 1px solid var(--md-line); padding: 4px 0 8px !important; margin: 6px 0 8px !important; }
.md-skin-instrument .mission-k { color: var(--md-ink-dim); font-size: 16px; font-weight: 600; margin-right: 14px; }
.md-skin-instrument .mission-text { font-weight: 600; font-size: 22px; color: var(--md-ink); }
.md-skin-instrument .goal-chip { border: 1px solid var(--md-line); border-radius: 8px; background: var(--t-card); color: var(--md-ink); font-size: 16px; padding: 4px 12px; }
.md-skin-instrument .review-btn { border: 1px solid var(--md-line); border-radius: 8px; background: none; color: var(--md-ink-dim); font-size: 16px; }

/* panels: type on the ground with 1px rules — no boxes */
.md-skin-instrument .panel { background: none; border: 0; border-top: 1px solid var(--md-line); padding: 10px 0 0 !important; border-radius: 0; }
.md-skin-instrument .panel-k { font-weight: 600; font-size: 18px; color: var(--md-ink); margin-bottom: 10px !important; }
.md-skin-instrument .panel-note, .md-skin-instrument .mini-edit { font-family: "Albert Sans", sans-serif; font-size: 16px; color: var(--md-accent); text-decoration: underline; text-decoration-color: var(--t-coral); text-underline-offset: 4px; font-weight: 600; }
.md-skin-instrument .empty { color: var(--md-ink-dim); font-size: 18px; }

/* ops plan band: ruled columns, the live block on the lilac stage */
.md-skin-instrument .rail-plan { border-top: 0; padding-top: 0 !important; }
.md-skin-instrument .rail-plan .panel-k { font-size: 18px; }
.md-skin-instrument .deck-rail .plan-item { border-left: 1px solid var(--md-line); opacity: 1; padding: 6px 10px 8px !important; }
.md-skin-instrument .deck-rail .plan-time, .md-skin-instrument .deck-rail .plan-item.past .plan-time > span:first-child { font-size: 16px !important; font-weight: 600; color: var(--md-ink); }
.md-skin-instrument .deck-rail .plan-name, .md-skin-instrument .deck-rail .plan-item.past .plan-name { font-size: 16px !important; color: var(--md-ink-dim); }
.md-skin-instrument .deck-rail .plan-state { font-size: 16px; color: var(--md-ink-dim); }
.md-skin-instrument .deck-rail .plan-item.past { opacity: 1; } .md-skin-instrument .deck-rail .plan-item.past .plan-time, .md-skin-instrument .deck-rail .plan-item.past .plan-time > span:first-child { color: var(--md-ink-dim) !important; font-weight: 400; }
.md-skin-instrument .deck-rail .plan-item.live { background: var(--t-stage); border-left: 2px solid var(--md-accent); border-radius: 8px; }
.md-skin-instrument .plan-bar { background: var(--t-backdrop); height: 3px; border-radius: 2px; }
.md-skin-instrument .plan-bar i { background: var(--md-accent); }

/* NOW: one of 13's two white cards — coral dot = the step that's Matt's right now */
.md-skin-instrument .p-now { background: var(--t-card); border: 1px solid var(--md-line); border-radius: 8px; padding: 10px 22px !important; gap: 20px; }
.md-skin-instrument .p-now-k { color: var(--t-coral-text); font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.md-skin-instrument .p-now-k::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--t-coral); }
.md-skin-instrument .p-now-title { font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--md-ink); }
.md-skin-instrument .todo-proj, .md-skin-instrument .p-now-chip { border: 1px solid var(--md-line) !important; border-radius: 8px; color: var(--md-ink-dim) !important; background: none !important; font-size: 16px; padding: 3px 10px; }

/* buttons: 13 anatomy — primary violet two-cell, secondary 1.5px inset outline, 8px radius */
.md-skin-instrument .btn { border-radius: 8px; font-size: 18px !important; font-weight: 600; color: var(--md-ink) !important; border: 0 !important; box-shadow: inset 0 0 0 1.5px var(--md-ink) !important; background: none; padding: 10px 18px !important; }
.md-skin-instrument .btn-arm { background: var(--md-accent) !important; color: #fff !important; box-shadow: none !important; padding: 0 !important; display: inline-flex; align-items: stretch; overflow: hidden; }
.md-skin-instrument .btn-arm .lbl { padding: 13px 22px; }
.md-skin-instrument .btn-arm .arr { width: 48px; display: flex; align-items: center; justify-content: center; border-left: 1px solid rgba(255,255,255,.45); }

/* Today: the ring is the one staged object — lilac stage, violet arc, serif figure */
.md-skin-instrument .col-ring { background: var(--t-stage); border-radius: 8px; padding: 4px 18px 10px; }
.md-skin-instrument .ring-deco { stroke: #7C72B6 !important; stroke-width: 1.5 !important; stroke-dasharray: none !important; opacity: 1 !important; }
.md-skin-instrument .ring-track { stroke: #D9D3F2 !important; }
.md-skin-instrument .ring-fill { stroke: var(--md-accent) !important; }
.md-skin-instrument .ring-value { font-family: var(--serif); font-weight: 600; color: var(--md-ink) !important; }
.md-skin-instrument .ring-label { color: var(--md-ink-dim) !important; font-size: 18px !important; font-weight: 600; }
.md-skin-instrument .ring-center svg *, .md-skin-instrument .ring-play { fill: var(--md-accent) !important; color: var(--md-accent) !important; }

/* tiles: ruled boxes on the ground, serif values */
.md-skin-instrument .tile { background: none; border: 0; border-top: 1px solid var(--md-line); border-radius: 0; padding: 12px 4px !important; }
.md-skin-instrument .tile-k { font-size: 16px; font-weight: 600; color: var(--md-ink-dim); }
.md-skin-instrument .tile-go { color: var(--md-accent); font-size: 16px; }
.md-skin-instrument .tile-v { font-family: var(--serif); font-weight: 600; font-size: 40px !important; color: var(--md-ink); }
.md-skin-instrument .tile-vs, .md-skin-instrument .tile-s { font-size: 16px; color: var(--md-ink-dim); font-family: "Albert Sans", sans-serif; font-weight: 400; }

/* directives: 13 field (two-cell) · ruled rows · pill chips */
.md-skin-instrument .todo-form { position: relative; display: flex; align-items: center; gap: 0; }
.md-skin-instrument .field-arr { box-sizing: border-box; }
.md-skin-instrument #todoInput { background: var(--t-card); border: 1.5px solid var(--md-ink); border-right: 0; border-radius: 8px 0 0 8px; font-size: 18px; padding: 12px 16px; color: var(--md-ink); }
.md-skin-instrument .field-arr { flex: none; width: 48px; background: var(--md-accent); color: #fff; border-radius: 0 8px 8px 0; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.md-skin-instrument .todo-pick { margin-left: 14px !important; }
.md-skin-instrument .todo-pick-opt, .md-skin-instrument .todo-tab:not(.p-tab) { border: 1px solid var(--md-line) !important; border-radius: 8px; background: none; color: var(--md-ink-dim) !important; font-size: 16px !important; font-weight: 600; padding: 5px 12px !important; }
.md-skin-instrument .todo-pick-opt:has(input:checked), .md-skin-instrument .todo-tab.on:not(.p-tab) { border-color: var(--md-accent) !important; color: var(--md-accent) !important; background: var(--t-stage) !important; }
.md-skin-instrument .todo-tab .n { color: inherit; font-size: 16px; }
.md-skin-instrument .p-chips-k, .md-skin-instrument .p-sub { color: var(--md-ink-dim); font-size: 16px; font-weight: 600; }
.md-skin-instrument .todo-group { border-bottom: 1px solid var(--md-line); }
.md-skin-instrument .todo-item { padding: 12px 2px; }
.md-skin-instrument .todo-title { font-size: 20px; color: var(--md-ink); }
.md-skin-instrument .todo-check { border: 1.5px solid var(--md-ink-dim); border-radius: 4px; width: 22px; height: 22px; font-size: 16px; }
.md-skin-instrument .todo-pin { color: var(--md-ink-dim) !important; font-size: 16px; }
.md-skin-instrument .todo-pin.on { color: var(--t-coral) !important; }
.md-skin-instrument .todo-sub, .md-skin-instrument .todo-del, .md-skin-instrument .drag-handle { color: var(--md-ink-dim) !important; font-size: 18px; }

/* habits */
.md-skin-instrument .habit-name { font-size: 20px; color: var(--md-ink); }
.md-skin-instrument .habit-bar { background: var(--t-backdrop); height: 6px; border-radius: 3px; }
.md-skin-instrument .habit-bar i { background: var(--md-accent); border-radius: 3px; }
.md-skin-instrument .habit-pct { font-size: 18px; font-weight: 600; color: var(--md-ink-dim); }
.md-skin-instrument .habit-dot { border: 1.5px solid var(--md-ink-dim); }
.md-skin-instrument .habit-item.done .habit-dot { background: var(--t-coral); border-color: var(--t-coral); }

/* footer */
.md-skin-instrument .hud-foot { border-top: 1px solid var(--md-line); }
.md-skin-instrument .ticker { font-size: 16px; color: var(--md-ink-dim); }
.md-skin-instrument .ticker b { color: var(--md-ink); font-weight: 600; }

/* habits tab: the tab is the habits' own screen, so rows get room (ruled, taller, longer bars) */
.md-skin-instrument[data-screen="habits"] .habit-item { padding: 16px 0; border-bottom: 1px solid var(--md-line); grid-template-columns: auto minmax(0, 1fr) minmax(0, 2fr) 64px !important; gap: 20px; }
.md-skin-instrument[data-screen="habits"] .habit-name { font-size: 22px; }
.md-skin-instrument[data-screen="habits"] .habit-bar { height: 8px; }
.md-skin-instrument[data-screen="habits"] .panel-habits > .panel-k { font-size: 18px; }

.md-skin-instrument .p-timer { border: 0 !important; background: none !important; color: var(--t-coral-text) !important; font-weight: 600; font-size: 18px !important; }
.md-skin-instrument .throw-btn { background: none; border: 1px solid var(--md-line); border-radius: 8px; color: var(--md-ink-dim) !important; font-size: 16px; padding: 4px 12px; opacity: 1 !important; }
.md-skin-instrument .session-item, .md-skin-instrument .session-item * { font-size: 18px !important; color: var(--md-ink); }
.md-skin-instrument .s-running { color: var(--t-coral-text) !important; font-weight: 600; }
body.md-skin-instrument[data-screen="directives"] .todo-form { gap: 0; }

/* ---- layer 2 · Instrument ---- */
/* V3 · TFD 13 Instrument — loads after the V2 file and changes what makes it a different idea:
   sans-led (Albert Sans 600 tabular numbers; Fraunces only for the brand and section titles), compact,
   no lilac stage, and 13's 2px handoff rail with dots threading the plan band and the task list
   (coral filled = now / Matt's step, ink filled = done, hollow = still to come). Tabs use 13's two-cell outline. */
/* palette-extra: #85829E — ring frame on the canvas, a step of 13's muted to reach 3.45:1 (WCAG 1.4.11) */


/* numbers in the sans */
.md-skin-instrument .clock, .md-skin-instrument .ring-value, .md-skin-instrument .tile-v, .md-skin-instrument .p-now-title { font-family: "Albert Sans", system-ui, sans-serif !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.md-skin-instrument .mission-text { font-family: "Albert Sans", system-ui, sans-serif; font-weight: 600; font-size: 22px; }
.md-skin-instrument .p-now-title { font-size: 26px; }
.md-skin-instrument .tile-v { font-size: 36px !important; }

/* tabs: one outlined segmented control, the active cell filled violet */
.md-skin-instrument .p-tabs { gap: 0; border: 1.5px solid var(--md-ink); border-radius: 8px; overflow: hidden; }
.md-skin-instrument .p-tab { margin: 0 !important; padding: 8px 22px !important; border-bottom: 0 !important; border-left: 1px solid var(--md-ink) !important; border-radius: 0 !important; color: var(--md-ink) !important; }
.md-skin-instrument .p-tab:first-child { border-left: 0 !important; }
.md-skin-instrument .p-tab.on { background: var(--t-stage) !important; color: var(--md-accent) !important; }

/* no stage: the ring sits on the ground, a heavier violet arc */
.md-skin-instrument .col-ring { background: none; padding: 0; }
.md-skin-instrument .ring-track { stroke: var(--t-backdrop) !important; stroke-width: 14 !important; }
.md-skin-instrument .ring-deco { stroke: #85829E !important; }
.md-skin-instrument .ring-fill { stroke-width: 14 !important; }

/* plan band = the handoff rail across the day */
.md-skin-instrument .deck-rail .plan-list { position: relative; padding-top: 22px; }
.md-skin-instrument .deck-rail .plan-list::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--md-line); }
.md-skin-instrument .deck-rail .plan-item { border-left: 0 !important; position: relative; background: none !important; border-radius: 0; }
.md-skin-instrument .deck-rail .plan-item::before { content: ""; position: absolute; left: 1px; top: -21px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--md-ink-dim); background: #F6F7FB; }
.md-skin-instrument .deck-rail .plan-item.past::before { background: var(--md-ink-dim); }
/* a block that passed without a session is not 'done': hollow dashed, so the rail never reads a miss as a win */
.md-skin-instrument .deck-rail .plan-item.past.missed::before { background: #F6F7FB; border-style: dashed; }
.md-skin-instrument .deck-rail .plan-item.live::before { width: 16px; height: 16px; top: -23px; left: -1px; background: var(--t-coral); border-color: var(--t-coral); }
.md-skin-instrument .deck-rail .plan-item.live { border-left: 0 !important; }
.md-skin-instrument .deck-rail .plan-item.live .plan-time { color: var(--t-coral-text); }
.md-skin-instrument .plan-bar { display: none !important; }

/* NOW = the coral step, joined to the list by the rail */
.md-skin-instrument .p-now { background: none; border: 0; border-top: 1px solid var(--md-line); border-bottom: 1px solid var(--md-line); border-radius: 0; padding: 12px 0 12px 0 !important; }
.md-skin-instrument .p-now-k { min-width: 92px; }
.md-skin-instrument .p-now-k::before { width: 18px; height: 18px; }

/* task list = the rail threading every row */
.md-skin-instrument #todoList { position: relative; }
.md-skin-instrument .todo-group { position: relative; padding-left: 34px; border-bottom: 1px solid var(--md-line); }
.md-skin-instrument .todo-group::after { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--md-ink); background: #F6F7FB; }
.md-skin-instrument .drag-handle { display: none; }

/* compact: tighter rows and panels */
.md-skin-instrument .todo-item { padding: 9px 2px; }
.md-skin-instrument .panel-k { font-size: 18px; }
.md-skin-instrument .tile { border-radius: 0; border: 0; border-top: 2px solid var(--md-ink); }

body.md-skin-instrument[data-screen="directives"] .p-chips { margin-left: 34px; }
/* the rail gutter sits inside the list panel (padding, not margin), so the list can scroll without clipping its dots */
body.md-skin-instrument[data-screen="directives"] .panel-todos { margin-left: 0; padding-left: 34px !important; }
body.md-skin-instrument[data-screen="directives"] .todo-group { padding-left: 0; }

body.md-skin-instrument[data-screen="directives"] .todo-group::after { left: -32px; }

/* ---- layer 3 · dark ---- */
/* TFD 13 · dark variant (Matt 2026-10-27: "Do light/dark variants maybe 2 of both") — loads last, over V2 or V2+V3.
   13 refuses a dark ground for the website; this bends it for the HUD only, on Matt's ruling. The ground is 13's own
   ink navy; every pair is measured (text ≥4.5:1, graphics ≥3:1):
   canvas text on ground 14.38 · muted #B4B1C9 7.38 (6.05 on stage) · violet text #A897F0 6.12 (5.01 on stage) ·
   coral text #FF7A96 6.21 · coral dot 3.62 · white on the violet button 5.89, its #A897F0 edge 6.12 vs ground ·
   ring frame #6E6A8E 3.02 (stage #827EA8 3.30). */
/* palette-extra: #A897F0 #B4B1C9 #FF7A96 — light steps of 13's violet, muted and coral so text holds ≥4.5:1 on the navy */
/* palette-extra: #322D5C #2B2849 #3A3658 #4A4668 — stage, card, track and rule as lifted steps of 13's ink navy */
/* palette-extra: #827EA8 #6E6A8E — ring frames at 3.30:1 (stage) and 3.02:1 (ground) */

.md-hud.md-skin-instrument-dark {
	--md-bg: #24213F; --md-bg-raise: #24213F; --md-accent: #A897F0;
	--md-ink: #F6F7FB; --md-ink-mid: #F6F7FB; --md-ink-dim: #B4B1C9; --md-line: #4A4668; --md-line-dim: #4A4668;
	--md-good: #A897F0; --md-accent-15: #322D5C;
	--t-coral-text: #FF7A96; --t-stage: #322D5C; --t-card: #2B2849; --t-backdrop: #3A3658;
}
body.md-skin-instrument-dark { background: #24213F; color: var(--md-ink); }
/* the primary keeps 13's violet fill (white 5.89:1) with a light-violet edge so it holds against the navy */
.md-skin-instrument-dark .btn-arm, .md-skin-instrument-dark .field-arr { background: #6A4FC8 !important; box-shadow: inset 0 0 0 1.5px #A897F0 !important; }
.md-skin-instrument-dark .btn { box-shadow: inset 0 0 0 1.5px var(--md-ink) !important; }
.md-skin-instrument-dark .ring-deco { stroke: #827EA8 !important; }
.md-skin-instrument-dark .ring-deco { stroke: #6E6A8E !important; }
.md-skin-instrument-dark .ring-track { stroke: #3A3658 !important; }
.md-skin-instrument-dark #todoInput { background: var(--t-card); border-color: var(--md-ink) !important; }
.md-skin-instrument-dark .goal-chip, .md-skin-instrument-dark .p-now { background: var(--t-card); }
.md-skin-instrument-dark .p-now { background: none; }
.md-skin-instrument-dark .deck-rail .plan-item::before, .md-skin-instrument-dark .todo-group::after { background: #24213F; }
.md-skin-instrument-dark .deck-rail .plan-item.past.missed::before { background: #24213F; }
.md-skin-instrument-dark .p-tabs { border-color: var(--md-ink); }
.md-skin-instrument-dark .p-tab { border-left-color: var(--md-ink) !important; }
.md-skin-instrument-dark .tile { border-top-color: var(--md-ink); }
.md-skin-instrument .field-arr { align-self: stretch; }

/* labels sit one gap from their content: Mission/Goals label → text/chips = the chip gap (D-S21, round 18) */
.md-skin-instrument .mission-k { margin-right: 10px; }
/* the first block under the header never draws a second rule 12px below the header's own (round 18) */
.md-skin-instrument.md-layout-tabs[data-screen="directives"] .p-now,
.md-skin-instrument.md-layout-tabs[data-screen="habits"] .panel-habits { border-top: 0 !important; }
/* boot splash (first load, 1.5s): on-brand and on the 16px floor */
.md-skin-instrument .boot { background: var(--md-bg); }
.md-skin-instrument .boot-line { font-family: var(--serif); font-weight: 600; font-size: 34px; color: var(--md-ink); letter-spacing: 0; }
.md-skin-instrument .boot-line span { color: var(--t-coral); }
.md-skin-instrument .boot-sub { font-size: 16px; color: var(--md-ink-dim); letter-spacing: 0; }
/* One screen layout: the Directives column is narrow, so the two-cell field takes its row and the picker wraps under it */
.md-skin-instrument.md-layout-classic .todo-form { flex-wrap: wrap; }
.md-skin-instrument.md-layout-classic #todoInput { flex: 1 1 0; min-width: 0; }
.md-skin-instrument.md-layout-classic .todo-pick { flex: 1 1 100%; margin: 10px 0 0 !important; }
/* One screen layout fits 1728×1046 with Instrument type (all text stays ≥16px): growable panels cap and scroll inside,
   as the Classic density block does; the plan band and tiles run compact */
@media (min-width: 1181px) {
	.md-skin-instrument.md-layout-classic .deck-rail .panel-todos,
	.md-skin-instrument.md-layout-classic .deck-rail .panel-habits { max-height: 320px; overflow-y: auto; }
	.md-skin-instrument.md-layout-classic .deck-rail .plan-list { padding-top: 18px; }
	.md-skin-instrument.md-layout-classic .deck-rail .plan-item { padding: 2px 10px 4px !important; }
	.md-skin-instrument.md-layout-classic .tile { padding: 8px 4px !important; }
	.md-skin-instrument.md-layout-classic .tile-v { font-size: 30px !important; margin-top: 2px; }
	.md-skin-instrument.md-layout-classic .habit-item { padding: 4px 0; }
}

/* QA round 19 (director, ink-to-ink): */
/* the plan band's cells are equal, so the rail's dots keep one pitch (the Now cell is marked by its coral dot, not its width) */
.md-skin-instrument .deck-rail .plan-item.live { flex: 1 1 0 !important; }
/* Habits: the title starts the same distance under the header as the other tabs, and both columns' first lines line up */
.md-skin-instrument.md-layout-tabs[data-screen="habits"] .panel-habits { padding-top: 12px !important; }
.md-skin-instrument[data-screen="habits"] .habit-item { padding: 12px 0 !important; }
.md-skin-instrument.md-layout-tabs[data-screen="habits"] #videoZone { padding-top: 5px; }
@media (min-width: 1181px) {
	.md-skin-instrument.md-layout-classic .mission { padding-bottom: 4px !important; }
	.md-skin-instrument.md-layout-classic .deck-rail .plan-list { padding-top: 16px; }
	.md-skin-instrument.md-layout-classic .deck-rail .plan-item { padding-bottom: 2px !important; }
}

.is-readonly .btn, .is-readonly .todo-form, .is-readonly .p-act { display: none !important; }
/* no current task: the Now dot is hollow (coral means "this is what you're on") */
.md-skin-instrument .p-now.empty .p-now-k::before { background: transparent; border: 2px solid var(--md-ink-dim); box-sizing: border-box; }
.md-skin-instrument .p-now.empty .p-now-k { color: var(--md-ink-dim); }
@media (min-width: 1181px) {
	/* One screen: habits and the daily review both fit their capped panel (rows ≥16px) */
	.md-skin-instrument.md-layout-classic .habit-item { padding: 1px 0 !important; }
	.md-skin-instrument.md-layout-classic .habit-name { font-size: 17px; }
	.md-skin-instrument.md-layout-classic .panel-habits .panel-k.gap-top { margin-top: 8px !important; }
}

/* QA round 21: the pinned current row's rail dot is coral like the Now dot (coral = what you're on) */
.md-skin-instrument .todo-group:has(> .todo-item.pinned)::after { background: var(--t-coral) !important; border-color: var(--t-coral) !important; }
.md-skin-instrument .todo-form[hidden] { display: none !important; }
/* the rail runs behind the row dots (the dots mask it, as in the approved design) */
.md-skin-instrument .todo-group::after { z-index: 1; }

/* logged-out sign-in link in 13's palette (Classic's amber outline sat outside it) */
.md-skin-instrument .signin { color: var(--md-ink-dim) !important; border-color: var(--md-line) !important; border-radius: 8px; font-size: 16px; letter-spacing: 0; }

/* the credit link on the 16px floor, in 13's palette */
.md-skin-instrument .attribution { font-size: 16px; letter-spacing: 0; color: var(--md-ink-dim); opacity: 1; }
.md-skin-instrument .attribution:hover { color: var(--md-accent); }
/* Today fits 1728×1046 for real (QA round 23: its content needed 1059px; the old fit squeezed the timer column into the
   footer gap): the plan band's rail and cells and the Now strip run 16px tighter. The 12px stack gap and the 440px ring stay. */
@media (min-width: 1181px) {
	.md-skin-instrument.md-layout-tabs .deck-rail .plan-list { padding-top: 18px; }
	.md-skin-instrument.md-layout-tabs .deck-rail .plan-item::before { top: -17px; }
	.md-skin-instrument.md-layout-tabs .deck-rail .plan-item.live::before { top: -19px; }
	.md-skin-instrument.md-layout-tabs .deck-rail .plan-item { padding-top: 4px !important; padding-bottom: 4px !important; }
	.md-skin-instrument.md-layout-tabs .p-now { padding-top: 10px !important; padding-bottom: 10px !important; }
}

/* ---- round 25 · Matt's go-live notes (2026-10-27) + a hierarchy pass: the current task, the timer and the live block
   lead; everything that is only occasionally used steps back. Same rules in light and dark, every tab. ---- */
/* edit links are quiet text, no coral underline ("Remove the red underline from the pencil for goals") */
.md-skin-instrument .mini-edit { text-decoration: none; color: var(--md-ink-dim); font-weight: 400; }
.md-skin-instrument .mini-edit:hover, .md-skin-instrument .mini-edit:focus-visible { color: var(--md-accent); }
/* the running timer is coral, the colour of "what you're on" ("Make the elapsed timer our redish color"); paused = dim */
.md-skin-instrument .ringwrap.running .ring-value { color: var(--t-coral-text) !important; }
.md-skin-instrument .ringwrap.running.paused .ring-value { color: var(--md-ink-dim) !important; }
.md-hud.md-skin-instrument .todo-tab.on.p-timer { color: var(--t-coral-text) !important; border: 1px solid var(--t-coral-text) !important; background: none !important; }
/* Sessions and the tiles are cards with real edges, so they sit on the page instead of floating under a top rule;
   a tile's name is at its top and its figure at its foot, so every card reads the same way at any height */
.md-skin-instrument .panel-sessions, .md-skin-instrument .tile { background: var(--t-card) !important; border: 1px solid var(--md-line) !important; border-radius: 8px !important; padding: 16px 20px !important; }
.md-skin-instrument .tile { display: flex; flex-direction: column; }
.md-skin-instrument .tile-v { margin-top: auto !important; }
.md-skin-instrument .deck-rail .col-tiles .tile-k { min-height: 0; }
.md-skin-instrument .tile-go { color: var(--md-ink-dim); }
.md-skin-instrument a.tile-link:hover { border-color: var(--md-accent) !important; }
.md-skin-instrument a.tile-link:hover .tile-go { color: var(--md-accent); }
/* the live plan block reads in full ink: white on the dark ground, ink navy on the light one ("When Ops plan is active make
   text white"); the coral dot still marks it. Past blocks step back: their filled dot already says done, so the ✓ is
   read by screen readers only */
.md-skin-instrument .deck-rail .plan-item.live .plan-time, .md-skin-instrument .deck-rail .plan-item.live .plan-time > span:first-child,
.md-skin-instrument .deck-rail .plan-item.live .plan-name, .md-skin-instrument .deck-rail .plan-item.live .plan-state { color: var(--md-ink) !important; font-weight: 600; }
.md-skin-instrument .deck-rail .plan-item.past .plan-name { color: var(--md-ink-dim); }
.md-skin-instrument .plan-state.done { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the mission sits under the current task in weight, not beside it */
.md-skin-instrument .mission-text { font-size: 20px; }
/* one boxed action per row: the primary keeps its outline, the occasional ones are text buttons (same hit area) */
.md-skin-instrument #nowSwap, .md-skin-instrument #logBtn, .md-skin-instrument #adjustBtn { box-shadow: none !important; color: var(--md-ink-dim) !important; }
.md-skin-instrument #nowSwap:hover, .md-skin-instrument #logBtn:hover, .md-skin-instrument #adjustBtn:hover,
.md-skin-instrument #nowSwap:focus-visible, .md-skin-instrument #logBtn:focus-visible, .md-skin-instrument #adjustBtn:focus-visible { color: var(--md-ink) !important; box-shadow: inset 0 0 0 1.5px var(--md-line) !important; }
/* a project name is a label, not a control: plain dim text, no box */
.md-skin-instrument .todo-proj, .md-skin-instrument .p-now-chip { border-color: transparent !important; padding-left: 0 !important; padding-right: 0 !important; }
/* the add field's project picker is quieter than the filter row above it (one boxed chip row per screen) */
.md-skin-instrument .todo-pick-opt { border-color: transparent !important; }
.md-skin-instrument .todo-pick-opt:has(input:checked) { border-color: transparent !important; }
/* row actions (add step, pin, delete) wait until the row is pointed at or focused; touch screens always show them.
   The pinned row's coral pin stays lit. */
@media (hover: hover) {
	.md-skin-instrument .todo-item .todo-sub, .md-skin-instrument .todo-item .todo-del, .md-skin-instrument .todo-item .todo-pin:not(.on) { opacity: 0; transition: opacity .12s ease; }
	.md-skin-instrument .todo-item:hover .todo-sub, .md-skin-instrument .todo-item:hover .todo-del, .md-skin-instrument .todo-item:hover .todo-pin,
	.md-skin-instrument .todo-item:focus-within .todo-sub, .md-skin-instrument .todo-item:focus-within .todo-del, .md-skin-instrument .todo-item:focus-within .todo-pin { opacity: 1; }
}
/* LOG TIME's confirm step keeps its highlight (the second click banks the time) */
.md-skin-instrument #logBtn.confirming { color: var(--md-accent) !important; box-shadow: inset 0 0 0 1.5px var(--md-accent) !important; background: var(--t-stage) !important; }
/* the card's name never touches its figure when the card is short (1024px: the push collapsed to 0) */
.md-skin-instrument .tile-k { margin-bottom: 12px; }
/* One screen keeps its compact tiles, now as cards: the text sits 16px inside the card's edge, not 4px */
@media (min-width: 1181px) { .md-skin-instrument.md-layout-classic .tile { padding: 10px 16px !important; } }

/* ---- round 26 · Matt's Loom audit (2026-11-01: "this really needs to be fully re-audited across the board") ----
   One type scale, one spacing step, one meaning per mark. Same rules in light and dark. */
/* type scale: 16 labels and body · 18 titles, buttons and rows · 26 the brand, the clock and the current task ·
   36 a tile's figure · 74 the timer. Nothing else ("we already discussed not deviating from different font sizes") */
.md-skin-instrument .clock { font-size: 26px; }
.md-skin-instrument .mission-text { font-size: 18px; }
.md-skin-instrument .recap-row, .md-skin-instrument .recap-win, .md-skin-instrument .recap-k { font-size: 16px; }
.md-skin-instrument .recap-row { padding: 2px 0; }
.md-skin-instrument .todo-title, .md-skin-instrument .habit-name, .md-skin-instrument[data-screen="habits"] .habit-name { font-size: 18px; }
/* a live counter never moves the glass: each digit in a fixed cell (Albert Sans has no tabular figures), and the clock
   holds the width of its widest reading ("10:00:00 PM"), right-aligned, so the date and Edit beside it never shift */
.md-skin-instrument .dg { display: inline-block; width: .6em; text-align: center; } /* round 40: the widest Albert Sans 600 digit INK is .569em ('4', canvas measureText on the live clock); .46em let 4/5/6/9 overrun the colon */
/* a two-digit group hugs its own middle (hud.js cells marks it): a narrow '1' gives its spare room to the colon side, so '11' reads as one number, not '1 1' */
.md-skin-instrument .dg-a { text-align: right; }
.md-skin-instrument .dg-b { text-align: left; }
.md-skin-instrument .clock { display: inline-block; min-width: 6.3em; text-align: right; }
/* an underline means a link, and only a link: the plan note is plain text */
.md-skin-instrument .panel-note { text-decoration: none; color: var(--md-ink-dim); font-weight: 400; }
/* the primary keeps its two-cell anatomy in every state; without its label cell it still carries the button's padding */
.md-skin-instrument .btn-arm:not(:has(.lbl)) { padding: 13px 22px !important; }
/* the timer's ring: no progress → no arc, so the zero-length round cap no longer sits on the track as a stray dot */
.md-skin-instrument .ring-fill[stroke-dasharray^="0 "] { visibility: hidden; }
/* the plan rail: each dot's left edge sits on its text's left edge */
.md-skin-instrument .deck-rail .plan-item::before, .md-skin-instrument .deck-rail .plan-item.live::before { left: 10px; }
/* tiles: the name at the top (in line with the Sessions title), the figure and its note one group centred below it */
.md-skin-instrument .tile-fig { margin-block: auto; }
.md-skin-instrument .tile-v { margin-top: 0 !important; }
.md-skin-instrument .tile-s { margin-top: 10px; }
.md-skin-instrument .tile-k { margin-bottom: 0; }

/* the screen's spacing: every rule has 20px of space on both sides, and no two rules run parallel 12px apart */
@media (min-width: 1181px) {
	body.md-skin-instrument.md-layout-tabs { row-gap: 0; padding-top: 20px; padding-bottom: 0 !important; }
	.md-skin-instrument.md-layout-tabs .bar { padding: 0 0 20px !important; }
	.md-skin-instrument.md-layout-tabs .mission { padding: 20px 0 !important; margin: 0 !important; flex-direction: column; gap: 10px; }
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .mission { display: flex; }
	.md-skin-instrument.md-layout-tabs .deck { row-gap: 0; margin-bottom: 20px; }
	.md-skin-instrument.md-layout-tabs .rail-plan { padding: 20px 0 !important; }
	/* the Now strip keeps its top rule; the cards below it carry their own edges, so its bottom rule goes */
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .p-now { border-bottom: 0 !important; padding: 20px 0 !important; }
	.md-skin-instrument.md-layout-tabs .hud-foot { padding: 20px 0 !important; align-items: center; }
	.md-skin-instrument.md-layout-tabs .ticker { padding-top: 0 !important; line-height: 1.25; }
}
@media (min-width: 1181px) {
	/* Swap is a text button: its box is no taller than the line it sits on, so the strip's 20px is measured to the type */
	.md-skin-instrument.md-layout-tabs #nowSwap { padding-top: 5px !important; padding-bottom: 5px !important; }
	/* the timer column: the ring's drawn edge (not its SVG box, 14.56px inside it) starts level with the card tops, and the
	   button sits centred between the ring's drawn edge and the footer rule ("this line to the button to this line") */
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .col-ring { justify-content: flex-start; }
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .ringwrap { margin-top: calc(440px * -11.25 / 340); }
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .timer-idle,
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .timer-run { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding-block: 30px; box-sizing: border-box; margin: calc(440px * -11.25 / 340) 0 -20px; }
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .timer-idle[hidden], .md-skin-instrument.md-layout-tabs[data-screen="today"] .timer-run[hidden] { display: none; }
	/* a tile's figure group is centred between its name and the card's bottom edge */
	.md-skin-instrument.md-layout-tabs .tile { padding-bottom: 0 !important; }
}
/* the ring's box is the ring: no inline descender gap under the SVG (it added 9px between the ring and its button) */
.md-skin-instrument .ringwrap svg.ring { display: block; }
/* a tile's name shares one baseline with the Sessions title beside it (16px label vs 18px title: 4px lower start) */
@media (min-width: 1181px) { .md-skin-instrument.md-layout-tabs .tile { padding-top: 20px !important; } }
/* Swap is a text button: its type ends on the right edge every other element ends on (cards, Reviewed); hover = ink */
.md-skin-instrument #nowSwap { padding-left: 0 !important; padding-right: 0 !important; }
.md-skin-instrument #nowSwap:hover, .md-skin-instrument #nowSwap:focus-visible { box-shadow: none !important; color: var(--md-ink) !important; }
/* round 26 · Directives and Habits get Today's rule rhythm: every rule sits 20px from the content on both sides (it measured
   15 / 14 / 1 / 0 / 13px before — the filter chips touched both of their rules) */
@media (min-width: 1181px) {
	.md-skin-instrument.md-layout-tabs .p-now { padding-top: 20px !important; padding-bottom: 20px !important; }
	.md-skin-instrument.md-layout-tabs[data-screen="directives"] .p-chips { padding: 20px 0; }
	.md-skin-instrument.md-layout-tabs[data-screen="directives"] .panel-todos,
	.md-skin-instrument.md-layout-tabs[data-screen="habits"] .panel-habits { padding-top: 20px !important; }
}
/* the running controls sit centred in the same 30px-floored zone as the Arm button (their 4px base margin made it 30 / 34) */
@media (min-width: 1181px) { .md-skin-instrument.md-layout-tabs[data-screen="today"] .timer-run .run-controls { margin-bottom: 0; } }

/* ---- round 27 · Matt's Loom 2 (2026-11-01): rank every element by importance and cut what serves no rank
   ("reducing the noise … understanding the priority elements in the visual hierarchy"). The ranking and the noise budget
   live in docs/design/2026-10-27-hud-layouts/HIERARCHY.md. Same rules in light and dark, every tab. ---- */
/* marks that say nothing the words don't: the Now dot, the dots and rail threading the task list ("why do we need dots,
   circles on the side?"), and the decorative frame ring around the timer (the track now takes its size) */
.md-skin-instrument .p-now-k::before, .md-skin-instrument .todo-group::after, .md-skin-instrument .p-rail,
.md-skin-instrument .ring-deco { display: none !important; }
/* with no column of marks there is no gutter: the filter, the list and their rules start on the page margin with every other band */
body.md-skin-instrument[data-screen="directives"] .p-chips { margin-left: 0; }
body.md-skin-instrument[data-screen="directives"] .panel-todos { padding-left: 0 !important; }
/* one rule weight, 1px, for every rule, border and outline (the field had 1.5px and the rail 2px beside 1px rules) */
.md-skin-instrument .p-tabs, .md-skin-instrument #todoInput { border-width: 1px !important; }
.md-skin-instrument #todoInput { border-right-width: 0 !important; }
.md-skin-instrument .btn, .md-skin-instrument-dark .btn { box-shadow: inset 0 0 0 1px var(--md-ink) !important; }
.md-skin-instrument-dark .btn-arm, .md-skin-instrument-dark .field-arr { box-shadow: inset 0 0 0 1px #A897F0 !important; }
.md-skin-instrument .btn-arm, .md-skin-instrument #nowSwap, .md-skin-instrument #logBtn, .md-skin-instrument #adjustBtn { box-shadow: none !important; }
.md-skin-instrument-dark .btn-arm { box-shadow: inset 0 0 0 1px #A897F0 !important; }
.md-skin-instrument #logBtn:hover, .md-skin-instrument #adjustBtn:hover, .md-skin-instrument #logBtn:focus-visible, .md-skin-instrument #adjustBtn:focus-visible { box-shadow: inset 0 0 0 1px var(--md-line) !important; }
.md-skin-instrument #logBtn.confirming { box-shadow: inset 0 0 0 1px var(--md-accent) !important; }
.md-skin-instrument .todo-check, .md-skin-instrument .habit-dot, .md-skin-instrument .deck-rail .plan-item::before { border-width: 1px !important; }
.md-skin-instrument .deck-rail .plan-list::before { height: 1px; top: 7px; } /* 1px axis through the 12px dots' centre (dot 260–272, axis 266) */
/* no blocks planned: no axis to draw, so no hairline and no axis gap above the note */
.md-skin-instrument .deck-rail .plan-list:not(:has(.plan-item))::before { display: none; }
.md-skin-instrument .deck-rail .plan-list:not(:has(.plan-item)) { padding-top: 0 !important; }
/* controls are 40px: every bordered control on a line shares one height (the field, its arrow cell, both chip rows, the
   tabs, Reviewed, Throw-away and the timer's controls). The Arm button is the one 48px control: rank 1 on its screen */
.md-skin-instrument .p-tabs { height: 40px; box-sizing: border-box; }
.md-skin-instrument .p-tab { height: 38px; display: inline-flex; align-items: center; padding-top: 0 !important; padding-bottom: 0 !important; box-sizing: border-box; }
.md-skin-instrument #todoInput { height: 40px; box-sizing: border-box; padding: 0 16px; }
.md-skin-instrument .field-arr { width: 40px; }
.md-skin-instrument .todo-pick-opt, .md-skin-instrument .todo-tab:not(.p-tab), .md-skin-instrument .goal-chip, .md-skin-instrument .review-btn,
.md-skin-instrument .throw-btn { height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; padding-top: 0 !important; padding-bottom: 0 !important; }
.md-skin-instrument .run-controls .btn, .md-skin-instrument .timer-alarm .btn { height: 40px; display: inline-flex; align-items: center; padding-top: 0 !important; padding-bottom: 0 !important; }
/* the run controls centre on the ring by their type, not their boxes: the last text button has no invisible right pad */
.md-skin-instrument .run-controls #adjustBtn { padding-right: 0 !important; }
/* one line, one size: a heading's notes and links take the heading's size ("Cleared today" and "Projects" were 16 beside 18) */
.md-skin-instrument .panel-k .panel-note, .md-skin-instrument .panel-k .mini-edit { font-size: inherit; }
/* a box inside a card is a second container saying the same thing: the day-off recap is plain lines on the Sessions card */
.md-skin-instrument .recap { border: 0; background: none; padding: 0; }
/* a directive row: the project name ends on the right edge every rule ends on; the row actions appear before it on hover,
   in space the row already has, so nothing moves and no empty column is held at the edge */
.md-skin-instrument .todo-item > .todo-title { order: 1; }
.md-skin-instrument .todo-item > .todo-sub { order: 2; }
.md-skin-instrument .todo-item > .todo-pin { order: 3; }
.md-skin-instrument .todo-item > .todo-del { order: 4; }
.md-skin-instrument .todo-item > .todo-proj { order: 5; }
/* the single ring: its drawn edge (track outer radius 158 of 170) sits level with the card tops, as the frame ring's did.
   422px, not 440: the 40px controls took 16px of the screen's height, and the ring gives it back (drawn 392px) */
@media (min-width: 1181px) {
	/* round 40: the ring gives up height on a shorter window so Arm (rank 1) and the footer stay on the first screen.
	   Measured: the rest of the screen is 654px and the ring row grows .929 per px of ring (its margins are -12/340 of it),
	   so ring = (100vh - 654px) / .929: 422px at 1046 tall (Matt's window, unchanged), ~265px at 900, floor 260px */
	/* round 45: that 654px was measured on a day with no Throw-away button; a workday's 40px button plus a third
	   "Armed ✓" plan line made the page 27px taller than Matt's window. The ring now reads the height its own column has
	   left (a size container), so any state above or below it gives height back instead of scrolling:
	   column = .929 x ring + 88px of controls under it */
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .col-ring { container-type: size; min-height: calc(260px * .929 + 88px); }
	/* the column only has a height to read when Today's deck fills the window, so it fills at every height here (the
	   ≥1046px gate in layout-tabs.css predates the shrinking ring); below the ring's floor the page still grows and scrolls */
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .deck { flex: 1 1 0; min-height: auto; }
	.md-skin-instrument.md-layout-tabs[data-screen="today"] { --ring: clamp(260px, calc((100cqh - 88px) / .929), 422px); }
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .ring { width: var(--ring); height: var(--ring); }
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .ringwrap { margin-top: calc(var(--ring) * -12 / 340); }
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .timer-idle,
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .timer-run { margin: calc(var(--ring) * -12 / 340) 0 -20px; }
}
/* hidden means hidden: the 40px control rule must not show Resume beside Pause */
.md-skin-instrument .run-controls .btn[hidden], .md-skin-instrument .timer-alarm .btn[hidden] { display: none !important; }
/* Directives: the current task leads the list under its own "Now" label, so the Now strip (a second copy of it, with a Swap
   that pointed at this same screen) steps out, as it already does on Habits; the filter is the first band under the header */
.md-skin-instrument.md-layout-tabs[data-screen="directives"] .p-now { display: none !important; }
/* Done on the Now strip is a 40px control like every other bordered control (its 42px box made the strip 2px taller) */
.md-skin-instrument #nowDone { height: 40px; display: inline-flex; align-items: center; padding-top: 0 !important; padding-bottom: 0 !important; }
.md-skin-instrument #nowDone[hidden] { display: none !important; }
/* the pinned row says "Now" once, with its label: no violet title and no standing coral diamond beside it (the pin
   shows on hover with the row's other actions, lit coral) */
.md-skin-instrument .todo-item.pinned .todo-title { color: var(--md-ink); }
@media (hover: hover) {
	.md-skin-instrument .todo-item .todo-pin.on { opacity: 0; transition: opacity .12s ease; }
	.md-skin-instrument .todo-item:hover .todo-pin.on, .md-skin-instrument .todo-item:focus-within .todo-pin.on { opacity: 1; }
}
/* Round 27: one size for the ring figure at every width and height (B-94 one type scale): 74px, never 64 or 88. */
.md-skin-instrument .ring-value { font-size: 74px !important; }
/* Round 27, narrow widths: a chip whose label wraps grows instead of spilling (40px is its minimum), and wrapped chip rows keep one 8px gap */
.md-skin-instrument .goal-chip { height: auto; min-height: 40px; }
.md-skin-instrument #goalChips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; flex: 0 1 auto; min-width: 0; }
.md-skin-instrument #goalChips .goal-chip { margin-right: 0; }
@media (max-width: 1180px) {
	/* one left edge: the header sits on the 34px margin like every band below it, and the tab bar fits the column */
	.md-skin-instrument.md-layout-tabs .bar { padding-left: 0 !important; padding-right: 0 !important; }
	.md-skin-instrument.md-layout-tabs .bar-mid { min-width: 0; }
	.md-skin-instrument .p-tabs .p-tab { flex: 1 1 0; min-width: 0; padding-left: 8px !important; padding-right: 8px !important; justify-content: center; }
	/* stacked, the mission rule already closes the band above Now: one rule, not two 12px apart */
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .p-now { border-top: 0 !important; }
}
/* one left and right edge: the rows sit on the 34px margin like the rule under them (the 2px side pad put the checkbox at 36 and the project at 1692) */
.md-skin-instrument.md-layout-tabs .todo-item { padding-left: 0; padding-right: 0; }
/* Round 29 (director round 27): the add field's border is the line token like every chip, so the field stops out-shouting
   the rows it adds to (Loom 2: "the border looks 2-3px"); focus still lights it */
.md-skin-instrument.md-skin-instrument-dark #todoInput, .md-skin-instrument #todoInput { border-color: var(--md-line) !important; }
.md-skin-instrument #todoInput:focus, .md-skin-instrument #todoInput:focus-visible { border-color: var(--md-accent) !important; outline: none; }
/* a link is not a note: "Projects" opens a page and reads as a control (600); "Cleared today" is a note (400) */
.md-skin-instrument .panel-k .mini-edit { font-weight: 600; }
/* one rule for choice chips (Show filter and the project picker): 400, the selected one marked by its accent and fill;
   weight never changes on select, so no chip moves when one is picked */
.md-skin-instrument .todo-pick-opt, .md-skin-instrument .todo-tab:not(.p-tab), .md-skin-instrument .todo-pick-opt span { font-weight: 400 !important; }
/* the mission is content (rank 6): 400, so an empty Now (rank 2) is never quieter than it */
.md-skin-instrument .mission-text { font-weight: 400 !important; }
@media (max-width: 1180px) {
	/* the heading line wraps as words, each part on the 34px edge */
	.md-skin-instrument.md-layout-tabs .panel-todos .panel-k { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
	.md-skin-instrument.md-layout-tabs .panel-todos .panel-k .mini-edit { margin-left: 0 !important; }
	/* the field and its arrow stay one control on one line inside the column; the project picker takes the next line */
	.md-skin-instrument.md-layout-tabs[data-screen="directives"] .todo-form { flex-wrap: wrap; row-gap: 8px; }
	.md-skin-instrument.md-layout-tabs[data-screen="directives"] #todoInput { flex: 1 1 0; min-width: 0; width: auto; }
	.md-skin-instrument.md-layout-tabs[data-screen="directives"] .field-arr { flex: 0 0 40px; }
	.md-skin-instrument.md-layout-tabs[data-screen="directives"] .todo-pick { margin-left: 0 !important; flex-basis: 100%; flex-wrap: wrap; gap: 8px; }
	/* a row: checkbox, title and its controls on line one; the project under the title */
	.md-skin-instrument.md-layout-tabs .todo-item { flex-wrap: wrap; row-gap: 2px; }
	.md-skin-instrument.md-layout-tabs .todo-item .todo-title { flex: 1 1 calc(100% - 34px); min-width: 0; }
	/* line two: the project under the title, then the row's controls at the right */
	.md-skin-instrument.md-layout-tabs .todo-item .todo-proj { order: 5; flex: 1 1 auto; margin-left: 34px !important; padding-left: 0 !important; text-align: left; justify-content: flex-start; }
	.md-skin-instrument.md-layout-tabs .todo-item .todo-sub { order: 6; }
	.md-skin-instrument.md-layout-tabs .todo-item .todo-pin { order: 7; }
	.md-skin-instrument.md-layout-tabs .todo-item .todo-del { order: 8; }
}

/* Round 31 (director pass 2): on a phone the Habits row has no room for four columns. The name gets the whole line with
   its percentage on the right, and the bar takes its own line across the column; names wrap at word breaks only. */
@media (max-width: 600px) {
	.md-skin-instrument .habit-item, .md-skin-instrument[data-screen="habits"] .habit-item { grid-template-columns: auto minmax(0, 1fr) auto !important; grid-template-areas: "dot name pct" "bar bar bar"; row-gap: 8px; column-gap: 12px; }
	.md-skin-instrument .habit-dot { grid-area: dot; }
	.md-skin-instrument .habit-name { grid-area: name; overflow-wrap: normal; word-break: normal; hyphens: none; }
	.md-skin-instrument .habit-bar { grid-area: bar; }
	.md-skin-instrument .habit-pct { grid-area: pct; }
}

/* Round 36 (QA rounds 32-34). */
/* the plan's dots and labels start on the page edge, like every other band (they sat 10px in, at 44) */
.md-skin-instrument .deck-rail .plan-item { padding-left: 0 !important; }
.md-skin-instrument .deck-rail .plan-item::before, .md-skin-instrument .deck-rail .plan-item.live::before { left: 0; }
/* one rule per edge: rows are divided by rules between them; the list never closes with its own rule (it stacked
   13px above the footer's rule when the list filled the screen) */
.md-skin-instrument.md-layout-tabs .todo-group:last-child { border-bottom: 0; }
/* the add field is one control: its border meets WCAG 1.4.11 (3:1) in both skins, and the arrow is part of it, not a
   second filled button (only Arm is filled; the field was out-shouting the rows it adds to) */
/* round 39: doubled class so this beats the dark skin's `.md-skin-instrument.md-skin-instrument-dark #todoInput` (1,2,0); at (1,1,0) it lost in dark */
.md-skin-instrument.md-skin-instrument #todoInput { border-color: var(--md-ink-dim) !important; }
.md-skin-instrument.md-skin-instrument #todoInput:focus { border-color: var(--md-accent) !important; }
.md-skin-instrument .field-arr, .md-skin-instrument-dark .field-arr { background: transparent !important; box-shadow: none !important; color: var(--md-accent) !important; border: 1px solid var(--md-ink-dim); border-left: 0; }
/* on a stacked screen the timer comes first: rank 1 before the mission (rank 6) */
@media (max-width: 1180px) {
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .deck { order: 1; }
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .mission { order: 2; }
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .hud-foot { order: 3; }
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .deck { grid-template-areas: "ring" "now" "plan" "sess" "tiles"; }
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .p-now { border-top: 1px solid var(--md-line) !important; }
}
/* one size for the whole mission band (B-99): the MISSION and GOALS labels, the sentence and the goal chips are all 16px
   (the 18px sentence sat beside its 16px label on one line); the mission is rank 6, read once a day */
.md-skin-instrument .mission-text { font-size: 16px !important; }
/* one rule per edge: the band nearest the footer never closes with its own rule (the footer's rule does) */
@media (max-width: 1180px) {
	.md-skin-instrument.md-layout-tabs[data-screen="today"] .mission { border-bottom: 0 !important; }
}
.md-skin-instrument.md-layout-tabs[data-screen="habits"] .habit-item:last-child { border-bottom: 0 !important; }

/* Round 38 (2026-11-01): list screens anchor to the top. The flex-centre in hud.css (Matt, 2026-07-24) frames the
   one-screen Today deck; a list centred in the viewport opens with a dead band above the chrome and jumps every time
   a row is added or filtered (director pass 4: 170px band on Directives at 1440x900). Today keeps the centre. */
@media (min-width: 1181px) {
	body.md-hud.md-skin-instrument.md-layout-tabs:not([data-screen="today"]) { justify-content: flex-start; }
	/* …and the list takes the free height at every desktop height (as it already does at >=1046), so the footer closes the viewport, never floats mid-page */
	.md-skin-instrument.md-layout-tabs:not([data-screen="today"]) .deck { flex: 1 1 auto; }
}

/* ---- round 43, Matt's Save on the round 27 review (2026-11-02) ---- */
/* "Don't need colored live or countdown": the running countdown, its header chip and the Sessions card's "Live" are
   plain ink at 600. This reverses round 25's "Make the elapsed timer our redish color"; the newer ruling wins. Paused stays dim. */
.md-skin-instrument .ringwrap.running .ring-value { color: var(--md-ink) !important; }
.md-skin-instrument .s-running { color: var(--md-ink) !important; }
.md-skin-instrument .p-timer { color: var(--md-ink) !important; }
.md-hud.md-skin-instrument .todo-tab.on.p-timer { color: var(--md-ink) !important; border-color: var(--md-ink-dim) !important; } /* the field-border token: 3:1 in both skins */
/* "so much spacing between Now and New TFD Website": the 92px box was the column for the Now dot + word; round 27 cut the
   dot and left its room. A label sits 10px from what it labels, as Mission does (the strip's 20px gap, minus 10) */
.md-skin-instrument .p-now-k { min-width: 0 !important; margin-right: -10px; }
/* "The Off looks too high": the ring's label line under the figure is empty unless a timer runs, and its 25px (16 + 9
   margin) lifted Off/Ready ~13px off the ring's centre at every width. An empty label takes no room */
.md-skin-instrument .ring-label:empty { display: none; }

/* ---- round 44, Matt's notes on live round 43 (2026-11-02) ---- */
/* "Another clear violation of to much spacing between elements": the clock was held at the width of "10:00:00 PM",
   right-aligned, so a one-digit hour left 27px of empty room beside the date (43px ink to ink on a 16px row). The clock
   takes its own reading's width now (digits stay in their fixed cells, so a tick never moves anything); the date and
   Edit shift only when the hour gains or loses a digit (9→10, 12→1), four times a day. */
.md-skin-instrument .clock { min-width: 0; }
/* "the project should be left side … The Friendly Dev is clickable, but does nothing": the task's project sits right after
   its title, 10px off it (as the Now label sits off the title), and is plain text: no pointer, no hover border. Done and Swap keep the right edge */
.md-skin-instrument .p-now-chip { align-self: baseline; margin-right: auto; pointer-events: none; cursor: default; }
@media (min-width: 1181px) { /* one line: title, its project, then the actions (below 1181 the title keeps its own full-width line) */
	.md-skin-instrument .p-now-title { flex: 0 1 auto; align-self: baseline; }
	.md-skin-instrument .p-now-title:has(+ .p-now-chip[hidden]) { margin-right: auto; }
	.md-skin-instrument .p-now-chip { margin-left: -10px; }
}
/* "Arm Deep Work has no hover state": the skin's !important fill wiped hud.css's hover. The fill darkens (lightens on dark); white stays >= 4.5:1 */
.md-skin-instrument .btn-arm:hover, .md-skin-instrument .btn-arm:focus-visible { background: #5A40B8 !important; }
.md-skin-instrument-dark .btn-arm:hover, .md-skin-instrument-dark .btn-arm:focus-visible { background: #7A60D8 !important; }
/* every control answers the pointer (gate HOVER, round 44): screen tabs, Edit, Reviewed and its minus */
.md-skin-instrument #screenTabs .p-tab[aria-selected="false"]:hover, .md-skin-instrument #screenTabs .p-tab[aria-selected="false"]:focus-visible { color: var(--md-accent) !important; } /* the ink of the selected tab, without its fill */
.md-skin-instrument .bar-right .gear:hover, .md-skin-instrument .bar-right .gear:focus-visible { color: var(--md-accent); }
.md-skin-instrument .review-btn:hover, .md-skin-instrument .review-minus:hover, .md-skin-instrument .video-main-btn:hover { border-color: var(--md-ink-dim) !important; color: var(--md-ink) !important; }
/* "Reviewed has border radius, so why does '-' not have it and why is the height different": one control family, one
   height, one radius, 10px apart */
.md-skin-instrument .review-minus { box-sizing: border-box; height: 40px; min-width: 40px; padding: 0 !important; border-radius: 8px; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; margin-left: 10px; }
/* the daily review on the main screen: the same control as Reviewed, before it */
.md-skin-instrument .video-main { margin-left: auto; display: inline-flex; align-items: center; }
.md-skin-instrument .video-main:empty { display: none; }
.md-skin-instrument .mission-goals .review-btn { margin-left: 10px; }
.md-skin-instrument .mission-goals .video-main:empty + .review-btn { margin-left: auto; }
.md-skin-instrument .video-main-btn { box-sizing: border-box; height: 40px; display: inline-flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--md-line); border-radius: 8px; background: none; color: var(--md-ink-dim); font-size: 16px; font-family: inherit; cursor: pointer; }
.md-skin-instrument .video-main-none { color: var(--md-ink-dim); font-size: 16px; }
/* the project chips and the delete crosses: the skin's !important ink wiped their hover too */
.md-skin-instrument .todo-tab:not(.p-tab):not(.on):hover { border-color: var(--md-ink-dim) !important; color: var(--md-ink) !important; }
.md-skin-instrument .todo-sub:hover, .md-skin-instrument .todo-sub:focus-visible { color: var(--md-ink) !important; }
.md-skin-instrument .todo-del:hover, .md-skin-instrument .todo-del:focus-visible { color: var(--md-crit) !important; }
.md-skin-instrument .mission-goals > .review-btn, .md-skin-instrument .mission-goals > .review-minus { align-self: center; } /* the pill and its undo share one top and one height */

/* Diet (2026-11-10): Habits' band rhythm — no second rule under the header, 12px (20px wide) to the first line; names at the row size (18px), the rest at the 16px base */
.md-skin-instrument.md-layout-tabs[data-screen="diet"] .panel-diet { border-top: 0 !important; padding-top: 12px !important; }
@media (min-width: 1181px) { .md-skin-instrument.md-layout-tabs[data-screen="diet"] .panel-diet { padding-top: 20px !important; } }
.md-skin-instrument .diet-name { font-size: 18px; }
.md-skin-instrument .diet-time, .md-skin-instrument .diet-what, .md-skin-instrument .diet-macros, .md-skin-instrument .diet-list, .md-skin-instrument .diet-note { font-size: 16px; }
.md-skin-instrument .diet-macros b { font-size: 18px; }
/* four screen tabs on a phone (Diet, 2026-11-10): equal cells clipped "Directives" at 375; each tab takes its word's width */
@media (max-width: 560px) {
	.md-skin-instrument .p-tabs .p-tab { flex: 1 1 auto; padding-left: 6px !important; padding-right: 6px !important; }
}
@media (max-width: 560px) { .md-skin-instrument .diet-macros b { font-size: 16px; } } /* one size per line once the macros sit on one row */
