/* Fleet cards, the tasks panel, the help, confirm and report boxes. Colours come from tokens.css only; sizes use the clamp-based type of layout.css. */

/* Fleet portraits in the dock: the machine's sprite, the number key that picks it, a load gauge up the right edge (bucket or bed), the
   fuel as a line along the foot and its state in a word. The picked one wears a safety-yellow top edge, like a beacon; a stuck or
   broken one the red. Every other line of the old card (operator, condition, order, why) is in the Machine window. */
.card { --pw: clamp(58px, 4.2vw, 84px); min-height: var(--tap); position: relative; flex: none; width: var(--pw); height: calc(var(--pw) + 4px); margin: 0; padding: 0; box-sizing: border-box;
  display: grid; grid-template-rows: minmax(0, 1fr) auto auto; text-align: left; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel2); color: var(--ink); font: inherit; cursor: pointer; }
.card:hover { border-color: var(--accent); }
.card[aria-pressed="true"] { border-color: var(--hazard); background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--hazard); }
.card[data-state="stuck"], .card[data-state="broken"] { border-color: var(--bad); }
.card > .y-pic { --s: calc(var(--pw) - 18px); grid-row: 1; justify-self: center; align-self: center; margin-right: 6px; }
/* The dock draws each kind's front-quarter portrait (static/art/ui/portraits, PixelLab 2026-11-14) in place of the map sprite's SE frame. */
.card > .y-pic[data-kind] { background: var(--por, none) center / var(--s) var(--s) no-repeat; }
.card > .y-pic[data-kind="excavator"] { --por: url("/static/art/ui/portraits/excavator.png"); }
.card > .y-pic[data-kind="mini_excavator"] { --por: url("/static/art/ui/portraits/mini_excavator.png"); }
.card > .y-pic[data-kind="dozer"] { --por: url("/static/art/ui/portraits/dozer.png"); }
.card > .y-pic[data-kind="dump_truck"] { --por: url("/static/art/ui/portraits/dump_truck.png"); }
.card > .y-pic[data-kind="articulated_truck"] { --por: url("/static/art/ui/portraits/articulated_truck.png"); }
.card > .y-pic[data-kind="roller"] { --por: url("/static/art/ui/portraits/roller.png"); }
.card > .y-pic[data-kind="grader"] { --por: url("/static/art/ui/portraits/grader.png"); }
.card > .y-pic[data-kind="water_truck"] { --por: url("/static/art/ui/portraits/water_truck.png"); }
.card > .y-pic[data-kind="service_truck"] { --por: url("/static/art/ui/portraits/service_truck.png"); }
.card > .y-pic[data-kind="skid_steer"] { --por: url("/static/art/ui/portraits/skid_steer.png"); }
.card > .y-pic[data-kind="mulcher"] { --por: url("/static/art/ui/portraits/mulcher.png"); }
.card > .y-pic[data-kind="flatbed"] { --por: url("/static/art/ui/portraits/flatbed.png"); }
.card > .y-pic[data-kind="crane"] { --por: url("/static/art/ui/portraits/crane.png"); }
.card > .y-pic[data-kind="pump"] { --por: url("/static/art/ui/portraits/pump.png"); }
.card > .y-pic[data-kind="paver"] { --por: url("/static/art/ui/portraits/paver.png"); }
.card-head { display: contents; }
.card-head b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card-key { position: absolute; top: 3px; left: 3px; min-width: 1.5em; height: 1.5em; display: grid; place-items: center; box-sizing: border-box; padding: 0 3px;
  font: 700 max(11px, 0.78em)/1 var(--font-num); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--radius); }
.card-key[hidden] { display: none; }
.card-state { grid-row: 2; padding: 0 4px 2px; font-size: max(11px, 0.74em); font-weight: 700; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card[data-busy="1"] .card-state { color: var(--good); }
.card[data-state="stuck"] .card-state, .card[data-state="broken"] .card-state { color: var(--bad); }
.card[data-fuel="low"] .card-state { color: var(--warn); }
.card-gauge { position: absolute; right: 3px; top: 6px; bottom: calc(1.2em + 10px); width: 5px; background: var(--void); display: flex; flex-direction: column-reverse; border-radius: 1px; }
.card-gauge i { display: block; width: 100%; height: 0; background: var(--soil-clay); }
.card-gauge[hidden] { display: none; }
.card-fuel { grid-row: 3; height: 3px; background: var(--void); }
.card-fuel i { display: block; height: 100%; width: 0; background: var(--dim); }
.card[data-fuel="low"] .card-fuel i { background: var(--warn); }
.card-op, .card-row, .card-load, .card-order, .card-why, .card-rt, .card-wear { display: none; }
.card[data-wear="worn"]::after, .card[data-wear="broken"]::after { content: ""; position: absolute; top: 4px; right: 12px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--warn); }
.card[data-wear="broken"]::after { background: var(--bad); }

/* the help box */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: var(--gap); background: rgb(0 0 0 / 60%); }
.overlay[hidden] { display: none; }
.sheet { display: flex; flex-direction: column; gap: 8px; width: min(640px, 100%); max-height: 100%; box-sizing: border-box; padding: 12px; min-height: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.sheet .scroll { flex: 1; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head h2 { margin: 0; flex: 1; }
/* Help and Settings: kit windows (tenshin_kit.css) in the sheets' width; the game's own buttons inside. */
.gc-window { width: min(640px, calc(100vw - 16px)); }
.gc-window .tn-window-bar h2 { margin: 0; padding: 0; border: 0; font-size: 1.1em; }
#start-over { white-space: nowrap; }
.gc-window h3 { margin: 12px 0 6px; }
.gc-window h3:first-child { margin-top: 0; }
#help-mouse { margin: 8px 0; padding-left: 1.2em; }
#help-mouse li { margin-bottom: 4px; }
#settings .t-units { margin: 0; padding: 0.35em 0; border: 0; border-bottom: 1px solid var(--tn-edge); }
#settings .t-units legend { float: left; padding: 0; }
#settings .t-units-picks { display: flex; gap: 16px; }
#settings .t-units label { display: flex; align-items: center; gap: 6px; min-height: var(--tap); }
#settings input[type="range"] { width: min(12em, 45vw); }
#settings input[type="range"]:disabled { opacity: 0.45; }

/* buttons */
/* The one commit action of a screen (Send the bid, Start the job, Hand in, Finish the job): safety yellow in both themes, like the
   tape on the site; every other button stays graphite. */
.btn.primary { background: var(--hazard); color: var(--hazard-ink); border: 1px solid var(--hazard-ink); font-weight: 800; letter-spacing: 0.02em; }
/* A ticket's own action opens the dialog that commits; it gets the gold edge, the dialog the yellow. */
.btn.go { border: 2px solid var(--accent); font-weight: 800; }
.btn.primary:hover:not(:disabled) { border-color: var(--hazard-ink); box-shadow: inset 0 -3px 0 var(--hazard-ink); }
.btn.small { min-height: var(--tap); padding: 0 8px; font-size: max(12px, 0.9em); }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* the tasks panel */
#j-client { margin: 0; }
#j-late { margin: 0; color: var(--bad); font-weight: 600; }   /* the job runs, or will run, past its promised days */
#j-late[data-kind="pace"] { color: var(--dim); font-weight: 400; }   /* #382: the practice pond's finish forecast, never late */
#j-brief { margin: 0; }
#task-list { flex: 1; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.task { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--panel2); }
.task[data-done="1"] { border-color: var(--good); }
.task-head { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; }
.task-head input { margin: 2px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--good); }
.task-title { font-weight: 600; }
.task-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; }
.task-line progress { flex: 1 1 40px; min-width: 40px; height: 8px; accent-color: var(--good); }
.task-count { font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }   /* a long count (Pack's target) wraps, never under Show me */
#submit-why { margin: 0; }
#submit-why:empty { display: none; }
#t-submit { width: 100%; }

/* the confirm and report boxes */
.sheet.narrow { width: min(440px, 100%); }
/* The inspector's report: an inspection form. Score and grade sit in ruled boxes, the verdict is a stamp across the head, the score's
   parts are ruled rows, the money a ledger. */
#report .sheet { border-top: 6px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--hazard) 0 12px, var(--hazard-ink) 12px 24px) 6 0 0 0; }
.rep-head { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-bottom: 8px; }
.rep-box { display: flex; flex-direction: column; justify-content: center; padding: 6px 12px; border: 2px solid var(--line); border-radius: var(--radius); }
.rep-k { color: var(--dim); font-size: max(12px, 0.8em); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.rep-score { font-size: max(20px, 1.6em); }
.rep-grade { font-size: max(24px, 1.9em); font-weight: 900; text-align: center; line-height: 1; }
.rep-stamp { align-self: center; margin-left: auto; padding: 4px 14px; border: 3px double currentColor; border-radius: var(--radius); transform: rotate(-6deg);
  font-size: max(18px, 1.4em); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.rep-stamp[data-passed="1"] { color: var(--good); }
.rep-stamp[data-passed="0"] { color: var(--bad); }
.rep-pass { color: var(--good); font-weight: 700; }
.rep-fail { color: var(--bad); font-weight: 700; }
.rep-part { margin-bottom: 6px; }
.rep-part h3 { font-size: max(12px, 0.85em); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim);
  border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.rep-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 30%) 5.5em; gap: 8px; align-items: center; padding: 3px 0; border-bottom: 1px solid var(--rule); }
.rep-bar progress { width: 100%; height: 10px; accent-color: var(--dim); }   /* neutral: gold means picked, and a full bar is not a pass */
.rep-bar .dim { white-space: nowrap; text-align: right; }
.rep-bar[data-none="1"] .dim { grid-column: 2 / -1; white-space: normal; text-align: left; }
.rep-list { margin: 0; padding-left: 1.2em; }
.rep-list li { margin-bottom: 2px; }
.rep-checks { list-style: none; padding: 0; }
.rep-checks li { display: flex; gap: 8px; align-items: baseline; }
.rep-checks li::before { content: ""; flex: none; width: 0.8em; height: 0.8em; border: 2px solid var(--line); border-radius: var(--radius); box-sizing: border-box; }
.rep-checks li[data-done="1"]::before { background: var(--good); border-color: var(--good); }
.rep-ledger { width: 100%; border-collapse: collapse; }
.rep-ledger th { text-align: left; font-weight: 400; padding: 3px 0; border-bottom: 1px solid var(--rule); }
.rep-ledger td { text-align: right; padding: 3px 0 3px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.rep-ledger .rep-sum th, .rep-ledger .rep-sum td { font-weight: 800; border-top: 2px solid var(--line); border-bottom: 0; }

/* the coach (static/js/coach.js) */
.coach-head { display: flex; flex-direction: column; gap: 0; }
.coach-head h2 { margin: 0; }
.coach-n { font-size: max(12px, 0.85em); }
.coach-steps { display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; }
.coach-steps li { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.coach-steps li[data-state="done"] { background: var(--good); }
.coach-steps li[data-state="current"] { background: var(--accent); }
.coach-text { flex: 1 1 auto; }
.coach-text p { margin: 0 0 6px; }
.coach-terms { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; }
.coach-terms dt { font-weight: 700; }
.coach-terms dd { margin: 0; }
.coach-row { display: flex; flex-wrap: wrap; gap: 6px; }
.coach-pick { font-size: max(12px, 0.9em); }
.coach-off { margin: 0; }
.coach-help { justify-content: flex-start; margin-bottom: 8px; }
#coach .coach-text .coach-terms { padding-top: 6px; border-top: 1px solid var(--line); }
.coach-left { font-weight: 700; }
.coach-more { margin: 0 0 6px; }
.coach-more summary { cursor: pointer; color: var(--accent); width: fit-content; }
.coach-more p { margin: 4px 0 0; }
/* On a site with room to spare the coach takes up to half the height (the tasks keep --tasks-min; the button a step names scrolls into the task list's view, Mill Creek #1), so a step's text and its new
   words read without scrolling inside a short box; phones and short screens keep their own caps (layout.css). */
@media (min-width: 601px) and (min-height: 501px) {
  #app:not([data-screen="yard"]) #coach[data-state="on"] { max-height: 50dvh; }
}
/* A task's buttons, in one row under its count: its own order (Dig this, Fill this, Strip this: the gold edge of an action that starts
   work) then Show me. While Show me's outlines are on by themselves (tasks.js autoShow) the button wears the outlines' red edge. */
.task-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.task-show[data-flash="1"] { border: 2px solid var(--bad); font-weight: 800; }
/* What a task has left ("14 tiles left"), under its title, in the outlines' red. */
.task-left { grid-column: 1 / -1; font-weight: 700; color: var(--bad); }
.task-left:empty { display: none; }
/* Show all: pressed, it wears the outlines' red edge (every open task outlined). */
#t-outlines { align-self: flex-start; }
#t-outlines[aria-pressed="true"] { border: 2px solid var(--bad); font-weight: 800; }
/* The next-step nudge: the task's own button pulses once; with reduced motion it only wears the edge. */
.task-acts .btn[data-pulse="1"] { border: 2px solid var(--hazard); animation: task-pulse 0.8s ease-in-out 2; }
@keyframes task-pulse { 50% { box-shadow: 0 0 0 4px var(--hazard); } }
@media (prefers-reduced-motion: reduce) { .task-acts .btn[data-pulse="1"] { animation: none; } }
/* The excavator's Dig an area while a shape task still has earth to dig (bar.js). */
#o-ops .btn.o-op.go { border: 2px solid var(--accent); font-weight: 800; }
.card-why { color: var(--ink); }
.task-dig[hidden], .task-haul[hidden], .task-fill[hidden], .task-strip[hidden], .card-order[hidden], .card-why[hidden], .card-wear[hidden] { display: none; }
.card-wear { font-weight: 600; color: var(--ink); }
.card[data-wear="worn"] .card-wear::before, .card[data-wear="broken"] .card-wear::before { content: "! "; }

/* 0.4: the operator and routine lines on a fleet card; the routine form and the operator picker in the order bar (routines.js). */
.card-op { color: var(--dim); }
.card[data-seated="0"] .card-op { color: var(--ink); font-weight: 600; }
.card-rt { font-weight: 600; }
.card-rt[hidden] { display: none; }
.o-more { display: flex; flex-direction: column; gap: 4px; flex: 1 1 100%; min-width: 0; }
.o-more:empty { display: none; }
/* The routine form (#rt-dock) opens in the Tasks window under the tasks (0.6; routines.js mounts it there), so setting a routine up
   never covers the ground or resizes it under the pointer (cold play 7 #2), and the tasks above keep their buttons in reach (Mill
   Creek #15: the form caught the clicks meant for Dig this). The coach's window waits while the form is open. */
#rt-dock { flex: 0 1 auto; min-height: 0; max-height: 58%; margin: 0 10px 10px; padding: 10px; box-sizing: border-box; display: flex; flex-direction: column;
  background: var(--panel2); border: 2px solid var(--line); border-radius: var(--radius); overflow: auto; }
#app:has(#rt-dock:not([hidden])) #w-coach { display: none; }
#rt-dock[hidden] { display: none; }
#rt-dock .rt-form { max-height: 100%; }
#rt-dock p { margin: 0; }
.rt-parts { font-weight: 600; }
.rt-stopped { font-weight: 400; color: var(--dim); }
.op-pick { display: flex; flex-direction: column; gap: 4px; }
#orders .o-more p { margin: 0; flex: none; }   /* the bar's row rule (flex 1 1 24ch) would make a paragraph 24ch tall in this column */
.rt-why { color: var(--bad); }
.rt-line { font-weight: 600; align-self: center; }
.rt-form { display: flex; flex-direction: column; gap: 4px; max-height: 40dvh; overflow: auto; box-sizing: border-box; }
/* Start stays in sight at the bottom of the form while its settings scroll (Mill Creek run 3 #5: at 1400x900 Start sat under the fold
   and read as a form with no start). */
.rt-end { position: sticky; bottom: 0; margin-top: auto; padding-top: 6px; background: var(--panel); border-top: 1px solid var(--line); }
.rt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rt-head b { flex: 1 1 auto; }
.rt-cap { font-variant-numeric: tabular-nums; }
.rt-progs .btn[aria-pressed="true"] { border-color: var(--accent); }
.rt-param { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rt-param .k { color: var(--dim); min-width: 12ch; }
.rt-value { flex: 1 1 16ch; font-variant-numeric: tabular-nums; }

/* 0.4 co-op: the Players box (lobby.js). The ring beside a seat is its machines' ring colour on the map. */
.lobby-body { display: flex; flex-direction: column; gap: 8px; }
.lobby-note { margin: 0; min-height: 1.3em; }
.lobby-seat { display: flex; align-items: center; gap: 10px; }
.lobby-ring { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--seat-0); }
.lobby-ring[data-colour="1"] { border-color: var(--seat-1); }
.lobby-ring[data-colour="2"] { border-color: var(--seat-2); }
.lobby-ring[data-colour="3"] { border-color: var(--seat-3); }
.lobby-link { display: flex; flex-direction: column; gap: 4px; }
.lobby-link input { min-height: var(--tap); font: inherit; color: var(--ink); background: var(--panel2); border: 1px solid var(--line); padding: 0 8px; }

/* ---- the project board (Dr. Ray 2026-12-04, "a project management feel"): pmdash.js tiles over the task cards ---- */
.pm-dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; flex: none; }
.pm-tile { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 5px 7px 7px; border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--panel2); }
.pm-k { color: var(--dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.pm-big { font-size: max(14px, 1.05em); font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-sub { font-size: max(11px, 0.8em); line-height: 1.25; }
.pm-prog { padding-right: 34px; }
.pm-ring { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--rule); }
.pm-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--panel2); }
.pm-tile[data-done="1"] { border-color: var(--good); }
.pm-days { position: relative; display: block; height: 6px; margin-top: 5px; border-radius: 3px; background: var(--rule); }
.pm-gone { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--good); }
.pm-due { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); }
.pm-eta { position: absolute; top: -3px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); background: var(--accent);
  border: 1px solid var(--accent-ink); box-sizing: border-box; }
.pm-due[hidden], .pm-eta[hidden] { display: none; }
.pm-sched[data-state="risk"] { border-color: var(--warn); }
.pm-sched[data-state="risk"] .pm-sub { color: var(--warn); }
.pm-sched[data-state="late"] { border-color: var(--bad); }
.pm-sched[data-state="late"] .pm-sub, .pm-sched[data-state="late"] .pm-gone { color: var(--bad); background-color: var(--bad); }
.pm-sched[data-state="late"] .pm-sub { background: none; }
.pm-money[data-state="practice"] .pm-big { color: var(--dim); }
@media (max-width: 420px) { .pm-dash { grid-template-columns: 1fr; } }

/* task cards: a status stripe down the left edge and a chip in the head; the count is one line, its full words on hover */
.task { border-left-width: 4px; border-left-color: var(--line); }
.task[data-state="doing"] { border-left-color: var(--accent); }
.task[data-state="done"] { border-left-color: var(--good); opacity: 0.85; }
.task-head { align-items: center; }
.task-title { flex: 1 1 auto; min-width: 0; }
.task-state { flex: none; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--rule); color: var(--dim); }
.task[data-state="doing"] .task-state { background: var(--sel-bg); color: var(--accent); }
.task[data-state="done"] .task-state { background: var(--good); color: var(--accent-ink); }
.task-line progress { height: 10px; }
.task .task-count { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; font-size: max(11px, 0.85em); }
.task-left { grid-column: 1 / -1; font-weight: 700; color: var(--warn); }
.task-left:empty { display: none; }

/* the crew in the Job window */
.pm-h { margin: 6px 0 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); }
.pm-crew { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pm-crew-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel2); }
.pm-crew-row .y-pic { --s: 32px; }
.pm-crew-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.pm-crew-txt .dim { font-size: max(11px, 0.8em); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-chip { flex: none; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--rule); color: var(--dim); }
.pm-chip[data-busy="1"] { background: var(--sel-bg); color: var(--accent); }

/* the layer picker: a tile per layer with its colours on top */
#overlay.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.seg .btn.layer-pick { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 4px; min-height: 0; white-space: normal; }
.layer-sw { display: block; height: 14px; border-radius: 2px; background: var(--rule); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 35%); }
.layer-name { font-size: max(11px, 0.82em); line-height: 1.15; text-align: center; }

/* the coach: the step's main line and its buttons; More holds the detail and the words */
.coach-more summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.coach-more[open] { padding-bottom: 4px; }
.coach-more .coach-terms { margin-top: 6px; font-size: max(11px, 0.88em); }
#w-tasks { width: clamp(340px, 27vw, 470px); }
#j-late[data-kind="pace"] { display: none; }   /* the Schedule tile says the practice forecast; a late warning still shows in red */
/* a done card folds to its head, so the open tasks fit without scrolling the list */
.task[data-state="done"] .task-line, .task[data-state="done"] .task-left { display: none; }
.task[data-state="done"] { padding-top: 3px; padding-bottom: 3px; }
