/* Cedar Ridge UI kit. Tokens from ART-BIBLE.md section 5. */
:root {
  --concrete: #5b5a55; --white: #e8edf1; --yellow: #f2c230; --red: #c0392b;
  --blue: #2f6fb3; --navy: #16202a; --green: #2f8a46;
  --panel-bg: rgba(22, 32, 42, .92); --panel-border: #26313a;
  --card: #1e2933; --card-border: #3b4855; --muted: #9aa7b2;
  --radius: 12px; --pad: 16px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 22px; color: var(--white);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1219; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
h2 { font-size: 20px; line-height: 24px; font-weight: 700; margin: 4px 0 6px; }
p { margin: 0 0 10px; }
.label { display: block; font-size: 11px; line-height: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.muted { color: var(--muted); }

.panel { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: var(--pad); }

/* Buttons: 44px touch target. Neutral by default; blue only for navigation. */
.btn, .choice {
  min-height: 44px; border-radius: 10px; font: inherit; color: var(--white); cursor: pointer;
  background: var(--card); border: 1px solid var(--card-border); padding: 10px 16px;
}
.btn:hover, .choice:hover { border-color: #64748a; }
.btn.nav { background: var(--blue); border-color: var(--blue); font-weight: 600; }
.choice { display: block; width: 100%; text-align: left; margin-top: 8px; }

/* HUD */
#scorebar {
  position: fixed; top: 0; left: 0; right: 0; height: 44px; z-index: 3;
  display: flex; justify-content: center; gap: 32px; align-items: center;
  background: var(--green); box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
#scorebar div { display: flex; align-items: baseline; gap: 8px; }
#scorebar .label { color: rgba(255,255,255,.8); }
#scorebar b { font-size: 18px; }
#chip { position: fixed; top: 52px; left: 12px; z-index: 3; padding: 8px 12px; display: flex; gap: 10px; align-items: baseline; }
#chip .label { color: var(--yellow); }
#tabletBtn {
  position: fixed; right: 16px; bottom: 16px; z-index: 3; width: 76px; height: 64px; border-radius: 14px;
  background: var(--blue); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 2px;
  font: 700 10px/1 inherit; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 4px 14px rgba(0,0,0,.4);
}

/* Lead's margin note: yellow sticky card. */
.note {
  position: fixed; top: 52px; right: 12px; z-index: 6; width: min(250px, 50vw);
  background: var(--yellow); color: #1b1f24; padding: 10px 12px 12px; border-radius: 3px;
  font-size: 14px; line-height: 19px; transform: rotate(1.2deg); box-shadow: 0 6px 14px rgba(0,0,0,.4);
  transition: opacity .8s, transform .8s;
}
.note .label { color: rgba(27,31,36,.7); margin-bottom: 2px; }
.note.gone { opacity: 0; transform: rotate(1.2deg) translateY(-8px); pointer-events: none; }
/* Phones: the note sits under the shift chip so it never covers the clock. */
@media (max-width: 759px) { .note { top: 98px; right: 12px; width: min(230px, 60vw); font-size: 13px; line-height: 17px; padding: 8px 10px 10px; } }

/* Interactive surfaces: soft yellow outline + verb label, never anything else. */
[data-verb] { position: relative; }
[data-verb]:active, [data-verb].hot { outline: 2px solid rgba(242,194,48,.85); box-shadow: 0 0 0 6px rgba(242,194,48,.18); }
[data-verb]:active::after, [data-verb].hot::after, #verb {
  content: attr(data-verb); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  background: var(--yellow); color: var(--navy); font-size: 11px; line-height: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 2;
}
@media (hover: hover) {
  [data-verb]:hover { outline: 2px solid rgba(242,194,48,.85); box-shadow: 0 0 0 6px rgba(242,194,48,.18); }
  [data-verb]:hover::after {
    content: attr(data-verb); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
    background: var(--yellow); color: var(--navy); font-size: 11px; line-height: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 2;
  }
}
#tabletBtn:hover::after, #tabletBtn:active::after { left: auto; right: 0; transform: none; }
#verb { position: fixed; left: 0; top: 0; bottom: auto; z-index: 2; transform: none; }

/* Scene labels (NPC names, zones) */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; font-size: 11px; line-height: 14px; font-weight: 600; white-space: nowrap;
  padding: 2px 6px; border-radius: 4px; background: rgba(22,32,42,.8); color: var(--white); }
.lbl.zone { background: none; color: rgba(232,237,241,.55); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 0; }
.lbl.you { background: #5d636b; }
@media (max-width: 759px) { .lbl.minor { display: none; } }
.lbl.fog { background: none; color: rgba(232,237,241,.75); font-style: italic; font-weight: 500; }

/* Faux tilt-shift: blur the top and bottom bands of the scene. */
.tilt { position: fixed; left: 0; right: 0; height: 16vh; z-index: 1; pointer-events: none;
  backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px); }
.tilt.top { top: 0; mask-image: linear-gradient(#000, transparent); -webkit-mask-image: linear-gradient(#000, transparent); }
.tilt.bottom { bottom: 0; mask-image: linear-gradient(transparent, #000); -webkit-mask-image: linear-gradient(transparent, #000); }

/* Inspect panel: bottom sheet on phones, right column on desktop. */
#inspect { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 56vh; overflow: auto;
  border-radius: var(--radius) var(--radius) 0 0; padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom)); }
@media (min-width: 760px) {
  #inspect { left: auto; right: 16px; top: 150px; bottom: 150px; width: 390px; max-height: none; border-radius: var(--radius); }
}
.crate { height: 96px; margin: 10px 0; border-radius: 6px;
  background: linear-gradient(#c49a63, #a67c4a); box-shadow: inset 0 -10px 0 rgba(0,0,0,.12), inset 0 22px 0 rgba(255,255,255,.08); position: relative; }
.crate::after { content: ""; position: absolute; left: 0; right: 0; top: 40px; height: 14px; background: rgba(230,215,180,.55); }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 8px; }
.doc { position: relative; display: flex; flex-direction: column; justify-content: flex-start; font: inherit; text-align: left; cursor: pointer; min-height: 150px; padding: 12px; border-radius: 8px; border: 0; color: #1b1f24; }
.doc.tag { background: #f3eedf; border-radius: 4px 14px 4px 4px; }
.doc.tag::before { content: ""; position: absolute; top: 10px; right: 12px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #a0522d; }
.doc.plate { background: linear-gradient(135deg, #d5dbe0, #a9b2ba 60%, #c8cfd5); }
.doc .label { color: #5b5a55; margin-bottom: 6px; }
.doc dl { margin: 0; font-size: 13px; line-height: 18px; }
.doc dt { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #6b6b66; }
.doc dd { margin: 0 0 4px; font-weight: 700; font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
.doc .face { display: grid; place-items: center; height: 100px; color: #6b6b66; font-size: 13px; }
.choices { margin-top: 12px; }

/* Trent speaks */
#say { position: fixed; left: 12px; right: 88px; bottom: 16px; z-index: 5; max-width: 460px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
#say .label { color: var(--yellow); }
#say p { margin: 6px 0 10px; }
.say-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 760px) { #say { left: 50%; right: auto; width: 460px; transform: translateX(-50%); } }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 7; display: grid; place-items: center; padding: 16px; background: rgba(8,12,16,.55); }
.sheet { width: min(520px, 100%); max-height: 86vh; overflow: auto; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.goal { margin: 12px 0 16px; padding: 10px 12px; border-left: 3px solid var(--yellow); background: rgba(242,194,48,.08); }
.goal .label { color: var(--yellow); }
#brief .label:first-child { color: var(--yellow); margin-bottom: 6px; }
.rec { padding: 10px 0; border-top: 1px solid var(--panel-border); font-size: 14px; }
.rec b { display: block; }
.state { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 99px; margin-top: 4px; }
.state.ok { background: rgba(47,138,70,.25); color: #8fd6a2; }
.state.stop { background: rgba(192,57,43,.25); color: #f29a90; }
.state.warn { background: rgba(242,194,48,.18); color: var(--yellow); }

/* Debrief */
#debrief { position: fixed; inset: 0; z-index: 7; overflow: auto; padding: 60px 16px 32px;
  background: radial-gradient(ellipse at top, #16202a, #080c10); }
.db { max-width: 960px; margin: 0 auto; display: grid; gap: 14px; }
.db h1 { font-size: 34px; line-height: 38px; margin: 0; }
@media (min-width: 760px) { .db { grid-template-columns: 1fr 1fr; } .db .wide { grid-column: 1 / -1; } }
.replay { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.replay li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.replay .n { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--yellow); color: var(--yellow); display: grid; place-items: center; font-weight: 700; }
.axis { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--panel-border); }
.axis:first-of-type { border-top: 0; }
.axis small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; line-height: 18px; }
.hist { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: 12px 0 4px; }
.hist div { flex: 1; background: #3d5a7a; border-radius: 3px 3px 0 0; position: relative; }
.hist div.you { background: var(--yellow); }
.hist-x { display: flex; gap: 6px; font-size: 11px; color: var(--muted); }
.hist-x span { flex: 1; text-align: center; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.notebook {
  color: #2a2a2a; border-radius: 4px; padding: 18px 18px 18px 46px; position: relative; box-shadow: 0 8px 20px rgba(0,0,0,.45);
  background: linear-gradient(90deg, transparent 34px, rgba(192,57,43,.55) 34px, rgba(192,57,43,.55) 36px, transparent 36px),
    repeating-linear-gradient(#f4efe2 0 25px, #c9d6e3 25px 26px);
  font: italic 17px/26px Georgia, "Times New Roman", serif;
}
.notebook .label { font-style: normal; color: #8a6d2a; line-height: 26px; }
.notebook p { margin: 0 0 26px; }
.next { border-left: 3px solid var(--blue); }

/* Gestures: the canvas owns touch so drag and pinch don't scroll the page. */
#scene { touch-action: none; }
#recenter { position: fixed; right: 26px; bottom: 92px; z-index: 3; width: 56px; height: 44px; border-radius: 12px; border: 1px solid var(--panel-border);
  background: rgba(22,32,42,.92); color: var(--white); display: grid; place-items: center; cursor: pointer; }

/* Next-step marker: bobbing yellow pin over the next place; sticks to the edge and points when off screen. */
#marker, .marker { position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none; display: flex; flex-direction: column; align-items: center;
  margin: -44px 0 0 -60px; width: 120px; }
#marker .txt, .marker .txt { background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.4); }
#marker .arrow, .marker .arrow { color: var(--yellow); font-size: 16px; line-height: 18px; text-shadow: 0 2px 6px rgba(0,0,0,.6); animation: bob 1.1s ease-in-out infinite; }
#marker { z-index: 4; } /* above Re-centre and Records */
#marker.edge { margin-top: -20px; }
#marker.edge .arrow { animation: none; }
@keyframes bob { 50% { transform: translateY(5px); } }
#marker.edge .arrow { display: inline-block; }

/* Next step inside a panel: a pulsing yellow ring. Never on the choice cards. */
.next-step { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,194,48,.0), 0 0 0 2px rgba(242,194,48,.9); } 50% { box-shadow: 0 0 0 7px rgba(242,194,48,.22), 0 0 0 2px rgba(242,194,48,.9); } }

/* Shift 1 debrief: two buttons in the "Coming next" card. */
.next { flex-wrap: wrap; }
.next .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* Shift 2 bench panel. Choice cards stay neutral; state chips appear only after the fact. */
.tv { font-size: 12px; line-height: 16px; color: var(--muted); margin: 0 0 4px; }
.label.sec { margin: 16px 0 0; }
.choice small { display: block; color: var(--muted); font-size: 13px; line-height: 18px; margin-top: 4px; }
.choice:disabled { cursor: default; }
.choice:disabled:hover { border-color: var(--card-border); }
.choice .state { margin: 0 0 0 6px; }
.readout { margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: #0f171f; border: 1px solid var(--panel-border); }
.readout .rpm { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 2px; }
.readout .rpm b { font-size: 18px; font-family: ui-monospace, Menlo, monospace; }
.readout small { display: block; color: var(--muted); font-size: 12px; line-height: 16px; }
.runrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.manual { background: #f3eedf; color: #1b1f24; border-radius: 6px; padding: 10px 12px; margin: 10px 0; font-size: 13px; line-height: 18px; }
.manual .label { color: #5b5a55; margin-bottom: 6px; }
.manual table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.manual th, .manual td { text-align: left; vertical-align: top; padding: 4px 6px 4px 0; border-top: 1px solid #d8d0bb; }
.manual th { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #6b6b66; border-top: 0; }
.manual p { margin: 0; font-weight: 600; }
.rec ul { margin: 4px 0 0; padding-left: 18px; }
.rec .label.sec { margin-top: 12px; }
.rec .choice { font-size: 14px; line-height: 20px; }

/* Part inspection: full screen on a neutral studio backdrop. Tray at the bottom on phones, on the right on desktop. */
#ins { position: fixed; inset: 0; z-index: 5; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  background: radial-gradient(ellipse at 50% 42%, #4a545e, #1c242c 78%); }
.ins-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top));
  background: var(--panel-bg); border-bottom: 1px solid var(--panel-border); }
.ins-top .ttl { flex: 1; min-width: 0; }
.ins-top h2 { margin: 2px 0 0; font-size: 17px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-stage { position: relative; min-height: 0; overflow: hidden; }
#insCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.ins-hint { position: absolute; left: 12px; right: 12px; bottom: 8px; margin: 0; font-size: 12px; line-height: 16px; color: rgba(232,237,241,.75); pointer-events: none; }
.fict { position: absolute; left: 12px; top: 10px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(232,237,241,.6); pointer-events: none; }
#insVerb { position: absolute; left: 0; top: 0; z-index: 2; background: var(--yellow); color: var(--navy); font-size: 11px; line-height: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
#insNext { position: absolute; }
.ins-tray { background: var(--panel-bg); border-top: 1px solid var(--panel-border); padding: 10px 56px calc(12px + env(safe-area-inset-bottom)) 12px; } /* right gutter: the sticky ✕ lives there */
.ins-read { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; line-height: 18px; margin-bottom: 8px; }
.ins-read .state { margin: 0 0 0 4px; }
.thumbs { display: flex; gap: 10px; margin-top: 6px; }
.thumb { flex: 1; min-width: 0; font: inherit; color: var(--white); text-align: left; background: var(--card); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.thumb:hover { border-color: #64748a; }
.thumb .mini { display: block; position: relative; align-self: stretch; height: 58px; overflow: hidden; border-radius: 4px; background: #fbfaf6; pointer-events: none; }
.thumb .mini > .paper { position: absolute; left: 0; top: 0; transform: scale(.2); transform-origin: 0 0; box-shadow: none; }
.thumb .t { font-size: 13px; font-weight: 600; line-height: 17px; }
.thumb .state { margin: 0; }
.thumb .muted { font-size: 12px; line-height: 16px; }
@media (min-width: 760px) {
  #ins { grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto minmax(0, 1fr); }
  #ins .ins-top { grid-column: 1 / -1; }
  .ins-tray { border-top: 0; border-left: 1px solid var(--panel-border); overflow: auto; }
  .thumbs { flex-direction: column; }
  .thumb { flex: none; }
  .thumb .mini { height: 150px; }
  .thumb .mini > .paper { transform: scale(.36); }
}

/* Document viewer: drag to pan, pinch / wheel / +/- to zoom. */
#docv { position: fixed; inset: 0; z-index: 6; display: grid; grid-template-rows: auto 1fr; background: rgba(8,12,16,.95); }
#docv .ins-top .btn { min-width: 44px; padding: 10px 12px; }
.docv-view { position: relative; overflow: hidden; touch-action: none; cursor: grab; }
.docv-page { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* Paper documents. Training copies, fictional data. */
.paper { position: relative; overflow: hidden; background: #fbfaf6; color: #111; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;
  padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.paper .foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: #555; }
.f8130 { width: 760px; }
.f8130 .form { display: grid; gap: 1px; background: #111; border: 1px solid #111; }
.f8130 .g { display: grid; gap: 1px; }
.f8130 .c { background: #fbfaf6; padding: 4px 6px 6px; min-height: 40px; }
.f8130 .c.row { min-height: 54px; }
.f8130 .c.tall { min-height: 64px; }
.f8130 b { display: block; font-size: 9.5px; line-height: 12px; font-weight: 700; }
.f8130 .v { display: block; margin-top: 4px; font-family: "Courier New", Courier, monospace; font-weight: 700; font-size: 14px; line-height: 18px; }
.f8130 .t { text-align: center; }
.f8130 .title { display: block; font-size: 16px; line-height: 20px; font-weight: 800; margin: 2px 0; }
.f8130 p { margin: 4px 0 0; font-size: 10.5px; line-height: 14px; }
.cb { display: inline-block; width: 12px; height: 12px; border: 1px solid #111; font: 700 11px/11px Arial, sans-serif; text-align: center; vertical-align: -2px; margin-right: 3px; }
.sig { display: block; margin-top: 2px; font: italic 22px/28px "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; color: #1d3d7a; }
.wm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-24deg); font: 800 32px/1 Arial, sans-serif;
  letter-spacing: .04em; color: rgba(0,0,0,.14); white-space: nowrap; pointer-events: none; }
.doc2 { width: 600px; font-size: 13px; line-height: 18px; }
.doc2 .dh { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 10px; border-bottom: 2px solid #111; }
.doc2 .dh b { display: block; font-size: 16px; }
.doc2 .dh span { display: block; color: #555; font-size: 12px; }
.doc2 .dt { text-align: right; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.doc2 .dt span { font: 700 15px/20px "Courier New", Courier, monospace; color: #111; letter-spacing: 0; }
.doc2 .kv { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; margin: 12px 0; }
.doc2 .kv dt { color: #555; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.doc2 .kv dd { margin: 0; font-weight: 600; }
.doc2 table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.doc2 th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #555; border-bottom: 1px solid #111; padding: 4px 6px 4px 0; }
.doc2 td { padding: 6px 6px 6px 0; border-bottom: 1px solid #ccc; vertical-align: top; }
.doc2 td b { font-family: "Courier New", Courier, monospace; font-size: 14px; }
.doc2 .cond { padding: 8px 10px; background: #eef0f2; border-radius: 4px; }
.doc2 .cond b { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #555; }

/* Receiving and bin panels: what you read, and what you opened. */
.doc.note-card { cursor: default; }
.paperwork { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; line-height: 18px; margin: 4px 0 8px; }
.paperwork .state { margin: 0 0 0 4px; }
.replay .chk { display: block; font-size: 13px; line-height: 18px; color: var(--muted); margin-top: 2px; }

/* Shift 1 desk panel + shared bits of the paperwork view (match.js). The view itself is in the block at the end. */
.m-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.m-acts .btn:disabled { opacity: .45; cursor: default; }
.m-sum { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 4px 0 8px; font-size: 13px; line-height: 18px; }
.m-sum dt { color: var(--muted); } .m-sum dd { margin: 0; }
.matching #note { display: none; }
#match { position: fixed; inset: 0; z-index: 5; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); background: #0f171f; }
.m-body { position: relative; overflow: auto; padding: 10px 12px 16px; }
.m-tip { font-size: 13px; line-height: 18px; margin: 0 0 8px; }
.m-body .fict { position: static; display: block; margin-top: 10px; }
.m-marks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; border-radius: 12px; }
/* Marked = neutral emphasis only. Colour never says right or wrong. */
.m-mark[aria-pressed=true] { background: #34434f; border-color: var(--white); font-weight: 700; }
.m-mark[aria-pressed=true]::before { content: "✓ "; }
.m-hi { animation: pulse 1.4s ease-in-out infinite; }
.m-coach { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.m-coach .label { flex-basis: 100%; color: var(--yellow); }
.m-coach p { flex: 1; min-width: 200px; margin: 0; font-size: 14px; line-height: 20px; }
.focus { outline: 3px solid var(--yellow); outline-offset: -2px; }

/* engine bench: full-screen 3D engine (engine.js). Same frame as the part inspection view; tray at the bottom on phones, right on desktop. */
#eng { position: fixed; inset: 0; z-index: 5; display: grid; grid-template-rows: auto minmax(0, 1fr) minmax(0, 44%); grid-template-columns: minmax(0, 1fr);
  background: radial-gradient(ellipse at 50% 40%, #4a545e, #1c242c 78%); }
#eng:not([hidden]) ~ #inspect { display: none; }
#engCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#engLabels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#engLabels span { position: absolute; left: 0; top: 0; font-size: 10px; line-height: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(232,237,241,.85); text-shadow: 0 1px 3px rgba(0,0,0,.9); white-space: nowrap; }
#engLabels .dir { color: var(--yellow); }
#engLabels .find { background: var(--red); color: #fff; text-shadow: none; padding: 3px 6px; border-radius: 4px; }
#engLabels .n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; letter-spacing: 0; font-size: 11px;
  background: rgba(22,32,42,.85); border: 1px solid #64748a; text-shadow: none; }
#engName { position: absolute; left: 0; top: 0; z-index: 2; background: var(--yellow); color: var(--navy); font-size: 11px; line-height: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  max-width: min(280px, 86%); overflow: hidden; text-overflow: ellipsis; }
.eng-tools { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.eng-tools > div { display: flex; flex-wrap: wrap; gap: 6px; pointer-events: auto; }
.eng-tools .btn { min-height: 40px; padding: 8px 12px; font-size: 13px; line-height: 18px; background: rgba(30,41,51,.94); }
.eng-tools .btn[aria-pressed="true"] { border-color: var(--white); background: #2c3d4e; }
.eng-cap { margin: 0; max-width: 520px; font-size: 12px; line-height: 16px; color: rgba(232,237,241,.9); background: rgba(22,32,42,.82); padding: 5px 8px; border-radius: 6px; }
.eng-tray { overflow: auto; }
.eng-card h3 { font-size: 17px; line-height: 22px; margin: 2px 0 6px; }
.eng-card p { font-size: 14px; line-height: 20px; margin: 0 0 8px; }
.eng-card .choice + p { margin-top: 12px; }
.eng-card .row { min-height: 32px; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 12px; }
.eng-tray .manual [data-hl] { cursor: pointer; }
.eng-tray .manual .on td, .eng-tray .manual p.on { background: rgba(242,194,48,.28); }
.eng-tray .manual small { display: block; margin-top: 6px; color: #6b6b66; font-size: 12px; }
@media (min-width: 760px) {
  #eng { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); }
  #eng .ins-top { grid-column: 1 / -1; }
}
/* Trent's note sits over the engine picture, not over the tray. */
body:has(#eng:not([hidden])) .note { top: 96px; right: 8px; width: min(210px, 56vw); font-size: 13px; line-height: 17px; padding: 8px 10px; }
@media (min-width: 760px) { body:has(#eng:not([hidden])) .note { right: 396px; top: 72px; } }

/* Dismiss (dismiss.js): a ✕ in the top-right corner of a card. Hides the card without making a choice. 44px touch target. */
.x-dismiss { float: right; position: sticky; top: 0; z-index: 2; width: 44px; height: 44px; margin: -10px -10px 4px 8px; padding: 0;
  border: 1px solid var(--card-border); border-radius: 10px; background: var(--card); color: var(--white); font: 18px/1 inherit; cursor: pointer; }
.x-dismiss:hover { border-color: #64748a; }
.note .x-dismiss { margin: -8px -10px 2px 6px; background: transparent; border-color: transparent; color: #1b1f24; }
.note .x-dismiss:hover { border-color: rgba(27,31,36,.35); }
.ins-tray > .x-dismiss { margin: -4px -50px 4px 8px; }
/* A dismissed tray gives its space back to the 3D view; tap the part (or the engine) to bring it back. */
#ins:has(> #insTray[hidden]), #eng:has(> #engTray[hidden]) { grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.m-coach { position: relative; }
.m-coach > .x-dismiss { position: absolute; top: 4px; right: 4px; margin: 0; }
.m-coach .label { padding-right: 48px; }

/* paperwork + receiving inspection */
/* Paperwork view (match.js): plate, 8130-3, PO. Phone: stacked, arrow labels in the bands between. Desktop: side by side. */
.pw-chips { position: sticky; top: -10px; z-index: 3; display: flex; align-items: center; gap: 6px; overflow-x: auto; margin: -10px -12px 8px; padding: 8px 12px;
  background: #16202a; border-bottom: 1px solid var(--panel-border); scrollbar-width: none; }
.pw-chips .label { flex: none; margin-right: 2px; }
.pw-chip { flex: none; min-height: 40px; padding: 6px 12px; border-radius: 20px; font: 600 13px/18px system-ui, sans-serif; color: var(--white);
  background: var(--card); border: 1px solid var(--card-border); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pw-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pw-chip[aria-pressed=true] { border-color: var(--white); background: #2c3d4e; }
.pw-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.pw-svg { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.pw-doc { display: block; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; font: inherit; color: inherit; }
.pw-doc .label { margin-bottom: 4px; } .pw-doc .label i { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; }
.pw-doc .state { margin: 0 0 0 4px; vertical-align: 1px; }
.pw-frame { display: block; position: relative; overflow: hidden; border-radius: 6px; border: 1px solid var(--card-border); background: #fbfaf6; }
.pw-doc:hover .pw-frame { border-color: #64748a; }
.pw-in { position: absolute; left: 0; top: 0; width: max-content; transform-origin: 0 0; pointer-events: none; }
.pw-in .paper { box-shadow: none; } .pw-in .wm { display: none; }
.pw-plate { width: 1024px; padding: 0; background: #b3bbc2; } .pw-plate img { display: block; }
.pw-band { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding: 12px 0 12px 34px; min-height: 24px; }
.pw-pill { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-height: 40px; padding: 6px 10px; text-align: left; cursor: pointer;
  font: 13px/18px system-ui, sans-serif; color: var(--white); background: #16202a; border: 1px solid var(--c); border-left-width: 4px; border-radius: 8px; }
.pw-pill.off { visibility: hidden; }
.pw-pill b { color: var(--c); font-size: 11px; letter-spacing: .06em; }
.pw-pill .v { font: 700 13px/18px ui-monospace, Menlo, Consolas, monospace; }
.pw-pill .to { color: var(--muted); }
.pw-pill em { flex-basis: 100%; font-style: normal; font-size: 12px; line-height: 16px; color: var(--muted); }
.pw-pill[aria-pressed=true] { background: #2c3d4e; }
.pw-rec { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--card-border); font-size: 13px; line-height: 18px; }
.pw-rec dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 6px 0; } .pw-rec dt { color: var(--muted); } .pw-rec dd { margin: 0; }
.pw-rec p { margin: 4px 0 0; }
.ck-src { font-size: 11px; line-height: 15px; color: var(--muted); margin: 8px 0 0; }
.pw-dock { border-radius: var(--radius) var(--radius) 0 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 10px; max-height: 46vh; overflow: auto; }
.pw-dock .m-coach { position: relative; padding-right: 48px; } /* clear of the ✕ */
.pw-judge .label { margin-bottom: 2px; }
.pw-vals { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 8px; font-size: 13px; line-height: 18px; color: var(--muted); }
.pw-vals b { color: var(--white); font: 700 13px/18px ui-monospace, Menlo, Consolas, monospace; }
@media (min-width: 760px) {
  .m-body { padding: 14px 20px 20px; }
  .pw-stage { grid-template-columns: minmax(0, 1fr) 176px minmax(0, 1.5fr) 176px minmax(0, 1.05fr); align-items: start; }
  .pw-band { display: block; align-self: stretch; padding: 0; margin: 0 16px; }
  .pw-pill { position: absolute; left: 0; right: 0; }
  .pw-dock { border-radius: var(--radius); margin: 0 auto 16px; width: min(760px, 92vw); grid-template-columns: 1fr; }
}
/* Receiving inspection checklist: the tray of the part inspection view (shift 1 boxes). Ticks are neutral white. */
.ck-tray { max-height: 44vh; overflow: auto; }
.ck-dale { margin: 0 0 8px; font-size: 14px; line-height: 20px; } .ck-dale b { color: var(--yellow); margin-right: 4px; }
.ck-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; margin-bottom: 4px; }
.ck-head small { font-size: 11px; }
.ck { list-style: none; margin: 0; padding: 0; }
.ck-row { width: 100%; min-height: 44px; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 8px; padding: 6px 4px; text-align: left;
  font: 14px/19px system-ui, sans-serif; color: var(--white); background: none; border: 0; border-top: 1px solid var(--panel-border); cursor: pointer; }
.ck-row small { display: block; font-size: 12px; line-height: 16px; color: var(--yellow); }
.ck-row sup { font-size: 10px; font-weight: 700; color: var(--muted); }
.ck-box { width: 22px; height: 22px; border: 1.5px solid #8796a3; border-radius: 5px; display: grid; place-items: center; font: 700 13px/1 system-ui, sans-serif; font-style: normal; }
.ck-row[aria-pressed=true] .ck-box { background: #34434f; border-color: var(--white); }
.ck-row:disabled { cursor: default; } .ck-row:disabled > span { color: var(--muted); }
.ck-row:disabled .ck-box { font-size: 9px; color: var(--muted); border-style: dashed; }
@media (min-width: 760px) { .ck-tray { max-height: none; } }
/* Trent's note sits left of the inspection tray on desktop, so it never covers the tray's ✕. */
@media (min-width: 760px) { body:has(#ins:not([hidden])) .note { right: 336px; top: 72px; } }

/* athelon device (device.js): the real Athelon app (dev / test) in a phone or laptop that rises out of the HUD. */
#athelonBtn {
  position: fixed; right: 100px; bottom: 16px; z-index: 3; width: 76px; height: 64px; border-radius: 14px;
  background: var(--navy); border: 1px solid var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 2px;
  font: 700 10px/1 inherit; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
#device { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: rgba(8,12,16,.82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: dev-fade .35s ease-out both; }
#device[hidden] { display: none; }
.dev-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
.dev-env { font-size: 11px; line-height: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy);
  background: var(--yellow); padding: 4px 8px; border-radius: 6px; margin-right: auto; }
.dev-form { display: flex; gap: 4px; }
.dev-bar .btn { padding: 8px 12px; text-decoration: none; display: inline-flex; align-items: center; }
.dev-bar .btn[aria-pressed="true"] { border-color: var(--white); background: #2c3d4e; font-weight: 600; }
.dev-bar > .x-dismiss { order: 9; float: none; position: static; margin: 0; }
@media (max-width: 559px) { .dev-env { flex-basis: 100%; margin-right: 0; text-align: center; } .dev-tab { margin-right: auto; } }
.dev-stage { position: relative; overflow: hidden; animation: dev-rise .45s cubic-bezier(.2,.8,.2,1) both; }
.dev-body { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--s, 1));
  padding: 14px; border-radius: 52px; background: #0d1217; border: 2px solid #3b4855; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 2px #1e2933; }
.dev-screen { position: relative; width: var(--w); height: var(--h); border-radius: 38px; overflow: hidden; background: #fff; }
.dev-screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.dev-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: #000; animation: dev-on .7s .25s ease-out both; }
.dev-base { display: none; }
.dev-body[data-form="laptop"] { padding: 16px; border-radius: 18px 18px 4px 4px; transform: translate(-50%, calc(-50% - 13px)) scale(var(--s, 1)); }
.dev-body[data-form="laptop"] .dev-screen { border-radius: 4px; }
.dev-body[data-form="laptop"] .dev-base { display: block; position: absolute; top: 100%; left: -64px; right: -64px; height: 26px;
  border-radius: 0 0 22px 22px; background: linear-gradient(#5d6b78, #2a343e); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.dev-body[data-form="laptop"] .dev-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 180px; height: 9px; transform: translateX(-50%);
  border-radius: 0 0 10px 10px; background: #1e2933; }
#device.closing { animation: dev-fade .3s ease-in reverse both; }
#device.closing .dev-stage { animation: dev-sink .3s ease-in both; }
@keyframes dev-fade { from { opacity: 0; } }
@keyframes dev-rise { from { transform: translateY(70vh) scale(.5); opacity: 0; } }
@keyframes dev-sink { to { transform: translateY(70vh) scale(.5); opacity: 0; } }
@keyframes dev-on { 0% { opacity: 1; box-shadow: none; } 35% { opacity: .85; box-shadow: inset 0 0 120px 30px rgba(120,190,255,.45); } 100% { opacity: 0; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { #device, #device .dev-stage, .dev-screen::after { animation: none; } .dev-screen::after { opacity: 0; } }

/* Orientation O3: the job clock panel (same placement as #inspect) */
#clockPanel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 56vh; overflow: auto;
  border-radius: var(--radius) var(--radius) 0 0; padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { #clockPanel { left: auto; right: 16px; top: 150px; bottom: 150px; width: 390px; max-height: none; border-radius: var(--radius); } }
#clockPanel .ck-dale { background: rgba(242,194,48,.08); border-left: 3px solid var(--yellow); padding: 8px 10px; margin: 8px 0; }
#clockPanel .ck-dale b { color: var(--yellow); margin-right: 6px; }
#clockPanel .fb { background: rgba(242,194,48,.12); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
#clockPanel .hint { display: block; color: var(--muted); font-size: 13px; line-height: 18px; margin: 2px 0 0; }
#clockPanel .choice.on { border-color: var(--white); background: #2c3d4e; font-weight: 600; }
#clockPanel .btn.nav { margin-top: 14px; width: 100%; }
#clockPanel button:disabled { cursor: default; opacity: .45; }
#clockPanel h3 { font-size: 16px; line-height: 22px; margin: 6px 0 8px; }
#clockPanel .small, .ath .small { font-size: 13px; line-height: 18px; }
/* The physical wall clock (badge reader) */
.wallclock { display: flex; align-items: center; gap: 12px; background: #2a3138; border: 2px solid #4a545d; border-radius: 10px; padding: 12px; margin: 10px 0; }
.wc-screen { flex: 1; font: 700 22px/28px ui-monospace, Menlo, monospace; color: #9fd8a8; background: #0d1a12; border-radius: 6px; padding: 8px 10px; }
.wc-screen small { display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: #7fb08a; }
.wc-screen.fail { color: #ff8a7a; background: #1f0d0b; } .wc-screen.fail small { color: #d0766a; }
.wc-led { width: 14px; height: 14px; border-radius: 50%; background: #555; flex: none; }
.wc-led.ok { background: #3ad06a; box-shadow: 0 0 10px #3ad06a; } .wc-led.fail { background: #e2493a; box-shadow: 0 0 10px #e2493a; }
/* Athelon replica: a light app screen inside the game panel (phone drawer or desktop popover) */
.ath { position: relative; background: #f6f7f9; color: #1b2430; border-radius: 10px; overflow: clip; margin: 10px 0; font-size: 14px; line-height: 20px; }
.ath .muted { color: #5f6b78; }
.ath .label.sec { color: #5f6b78; margin: 10px 0 4px; }
.ath-top { display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid #dde2e8; padding: 8px 10px; min-height: 48px; }
.ath-brand { font-weight: 800; letter-spacing: .02em; margin-right: auto; } .ath-brand:has(+ .mt-title) { margin-right: 4px; } .mt-title::before { content: '· '; color: #9aa5b1; }
.ath-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.ath-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ath-pill.wo { background: #dcf3e2; color: #1f7a3b; } .ath-pill.shop { background: #fdf2c8; color: #8a6400; }
.ath-pill.none { background: #fde0dc; color: #b3261e; } .ath-pill.none i { animation: ath-pulse 1.2s infinite; }
@keyframes ath-pulse { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .ath-pill.none i { animation: none; } }
.ath .ath-tc { min-height: 40px; min-width: 44px; border-radius: 8px; border: 1px solid #c9d1da; background: #fff; color: #1b2430; font: inherit; font-weight: 600; padding: 6px 10px; cursor: pointer; }
.ath-pop { margin: 8px 8px 10px auto; max-width: 22rem; background: #fff; border: 1px solid #dde2e8; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15); padding: 12px; }
.ath-drawer { background: #fff; border-radius: 14px 14px 0 0; border-top: 1px solid #dde2e8; margin-top: 12px; padding: 8px 12px 14px; }
.ath-grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: #c9d1da; margin: 0 auto 8px; }
.ath .btn { background: #fff; color: #1b2430; border-color: #c9d1da; min-height: 44px; }
.ath .btn.ath-in, .ath .btn.nav { background: #1f6fd1; border-color: #1f6fd1; color: #fff; width: 100%; }
.ath-h small { display: block; color: #5f6b78; font-size: 12px; line-height: 16px; } .ath-h .sec-l { font-weight: 700; letter-spacing: .06em; } .ath-h b { display: block; font-size: 18px; line-height: 24px; }
.ath-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: #8c1d14; cursor: pointer; }
.ath-grid.two { grid-template-columns: 1fr 1fr; } .ath-grid .wide { grid-column: 1 / -1; }
.ath-dh { position: sticky; top: -16px; z-index: 1; background: #f6f7f9; padding: 4px 0 6px; }
.ath-phone button.ath-pill, .ath-phone .ath-back { min-height: 44px; }
.ath-top .btn.ath-in { width: auto; min-height: 40px; padding: 6px 14px; }
button.ath-pill { border: 0; font-family: inherit; min-height: 36px; cursor: pointer; }
.mt-legend i.lunch, .mt-band.lunch { background: #dcecfb; }
.ath-red { border: 1px solid #f0b4ad; background: #fdecea; color: #8c1d14; border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.ath-red b, .ath-red small { display: block; } .ath-red small { font-size: 12px; line-height: 16px; }
.ath-run small { display: block; font-size: 12px; color: #5f6b78; }
.ath-run { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #b7e0c3; background: #effaf2; border-radius: 8px; padding: 6px 6px 6px 10px; }
.ath-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin: 8px 0; }
.ath .btn.ath-out { width: 100%; }
.ath .btn.ath-danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.ath-back { background: none; border: 0; color: #1f6fd1; font: inherit; font-weight: 600; padding: 6px 0; min-height: 36px; cursor: pointer; }
.ath-search { width: 100%; border: 1px solid #c9d1da; border-radius: 8px; padding: 8px 10px; font: inherit; margin-bottom: 6px; background: #fff; }
.ath-row { display: block; width: 100%; text-align: left; font: inherit; color: #1b2430; background: #fff; border: 1px solid #dde2e8; border-radius: 8px; padding: 8px 10px; margin: 4px 0; min-height: 44px; cursor: pointer; }
.ath-row small { display: block; color: #5f6b78; font-size: 12px; line-height: 16px; } .ath-row.on { border-color: #1f6fd1; background: #e8f1fc; font-weight: 600; }
.ath-toast { position: static; margin: 8px 10px 10px; background: #1b2430; color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.ath button.next-step { outline: 3px solid var(--yellow); outline-offset: 1px; }
/* My Time */
.mt-title { margin-right: auto; } .ath-top .mt-title + * { display: none; }
.mt { padding: 10px; } .mt .ath-dialog { background: #f6f7f9; }
.ath-dialog > .ath-grid:last-child { position: sticky; bottom: -16px; background: #f6f7f9; padding: 6px 0 10px; margin-bottom: 0; }
.mt-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: #5f6b78; margin-bottom: 8px; align-items: center; }
.mt-legend span { white-space: nowrap; } .mt-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px; vertical-align: -1px; }
.mt-legend i.wo, .mt-band.wo { background: #dcf3e2; } .mt-legend i.shop, .mt-band.shop { background: #fdf2c8; } .mt-legend i.red, .mt-band.red { background: #fde0dc; }
.mt-hint { font-size: 13px; color: #b3261e; margin: 0 0 6px; }
.mt-band { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; color: #1b2430; border: 1px solid rgba(0,0,0,.08); border-radius: 6px; padding: 8px 10px; margin: 4px 0; min-height: 40px; }
.mt-band small { display: block; color: #5f6b78; font-size: 12px; } button.mt-band.red { border-color: #e2493a; cursor: pointer; }
.mt-g { display: block; font-size: 12px; font-weight: 700; color: #5f6b78; margin: 8px 0 2px; }
.ath-dialog { border-top: 1px solid #dde2e8; margin-top: 10px; padding-top: 6px; }
