/* Tier One layout on top of the shared library theme (../../style.css) */
body.t1 { --t1-teal: #5fd0c0; --t1-amber: #f3c74f; }
#t1-main { flex: 1; padding: 12px 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
#panel .err { color: var(--bad); }
body.t1 button { min-height: 44px; }
#t1-scene, #t1-office { image-rendering: pixelated; image-rendering: crisp-edges; display: block; cursor: pointer; }

/* ---- Notices that never move the page ------------------------------------------------------------------ */
#t1-savefail { position: fixed; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); z-index: 60; pointer-events: none;
  max-width: min(420px, calc(100% - 16px)); background: #3a1f1f; border: 2px solid var(--bad); border-radius: 4px; padding: 6px 10px; font-size: 13px; line-height: 1.35; }
#t1-gloss { position: fixed; left: 8px; top: 8px; z-index: 70; max-width: min(340px, calc(100vw - 16px)); background: #0c0e14; border: 2px solid var(--accent);
  border-radius: 4px; padding: 8px 10px; font-size: 13px; line-height: 1.4; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); }
#t1-gloss b { color: var(--accent); }
.t1-term { border-bottom: 1px dotted var(--accent); cursor: help; }
.t1-term:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ---- The call screen (desk view). Every box has a fixed size from the viewport; content scrolls inside. ---- */
body.t1.in-call #app { height: 100vh; height: 100dvh; min-height: 0; }
body.t1.in-call #t1-main { min-height: 0; overflow: hidden; display: flex; padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.t1-call { flex: 1; min-height: 0; min-width: 0; width: 100%; max-width: 1400px; margin: 0 auto; display: grid; gap: 6px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr) minmax(0, 0.95fr);
  grid-template-rows: 36px auto minmax(0, 1fr) auto;
  grid-template-areas: "strip strip strip" "scene scene scene" "talk tools notes" "acts acts acts"; }
.t1-strip { grid-area: strip; display: flex; gap: 16px; align-items: center; white-space: nowrap; overflow: hidden; background: #0c0e14; border: 2px solid var(--line);
  border-radius: 6px; padding: 0 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.t1-strip b { color: var(--gold); }
.t1-clk b { font-size: 15px; }
.t1-clk.over b { color: var(--bad); }
.t1-badge { margin-left: auto; border: 1px solid var(--line); border-radius: 3px; padding: 1px 7px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.t1-scene { grid-area: scene; position: relative; min-width: 0; display: flex; justify-content: center; }
.t1-stage { width: 100%; min-width: 0; }
.t1-call #canvas-wrap { margin: 0 auto; width: max-content; max-width: 100%; }
.t1-tap { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 2; pointer-events: none; margin: 0; width: max-content; max-width: min(94%, 900px);
  background: rgba(12, 14, 20, 0.92); border: 2px solid var(--gold); border-radius: 4px; padding: 4px 8px; font-size: 13px; line-height: 1.35; }
.t1-tap b { color: var(--gold); }
.t1-col { min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 3px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.t1-talk { grid-area: talk; } .t1-tools { grid-area: tools; } .t1-notes { grid-area: notes; }
.t1-col .lbl { flex: none; margin: 0 0 6px; font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t1-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.t1-transcript { flex: 1 1 0; }
.t1-bub { background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; margin: 0 0 5px; font-size: 13px; line-height: 1.4; }
.t1-bub.me { margin-left: 18px; background: #1f2a44; border-color: #4b5f8a; }
.t1-who { color: var(--accent); font-size: 11px; text-transform: uppercase; margin-right: 2px; }
.t1-coach { flex: none; height: 4.4em; overflow-y: auto; margin: 6px 0; padding: 4px 6px; border: 1px dashed var(--line); border-radius: 4px; font-size: 12.5px; line-height: 1.4; }
.t1-coach b { color: var(--gold); }
.t1-coach .sub { margin: 0; }
.t1-qs { flex: 0 0 38%; }
.t1-q { display: block; width: 100%; text-align: left; margin: 0 0 4px; padding: 4px 8px; font-size: 13px; line-height: 1.3; border-bottom-width: 2px; }
.t1-q.used { opacity: 0.55; }
.t1-tabs { flex: none; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.t1-tab { flex: none; font-size: 13px; padding: 4px 8px; border-bottom-width: 2px; }
.t1-tab.on { border-color: var(--gold); background: #3a3320; }
.t1-bar { flex: none; height: 98px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-content: flex-start; align-items: flex-end; overflow-y: auto; padding: 4px 0 6px; border-bottom: 1px solid var(--line); }
.t1-param { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); min-width: 0; max-width: 100%; }
.t1-param select, .t1-fc input, .t1-fc select, .t1-wrow select, .t1-wrow textarea, .t1-free {
  font: inherit; font-size: 13px; background: #0f1220; color: var(--ink); border: 2px solid var(--line); border-radius: 4px; padding: 4px 6px; max-width: 100%; }
.t1-param select { height: 36px; }
.t1-run { font-size: 13px; padding: 4px 10px; }
.t1-why { font-size: 12px; color: var(--muted); align-self: center; }
.t1-reading { flex: 1 1 0; padding-top: 6px; font-size: 13px; }
.t1-reading .sub, .t1-rhead { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.t1-pick { margin-bottom: 6px; }
.t1-rh { margin: 10px 0 4px; font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }
.t1-kv { border-collapse: collapse; width: 100%; font-size: 13px; }
.t1-kv th { text-align: left; color: var(--muted); font-weight: 400; padding: 2px 10px 2px 0; white-space: nowrap; vertical-align: top; width: 1%; }
.t1-kv td { padding: 2px 0; overflow-wrap: anywhere; }
.t1-grid { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.t1-grid th, .t1-grid td { text-align: left; padding: 2px 8px 2px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t1-grid th { color: var(--muted); font-weight: 400; }
.t1-log { margin: 0; background: #07090d; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; font-size: 12px; line-height: 1.45; color: #b7f5c9; white-space: pre-wrap; overflow-wrap: anywhere; }
.t1-raw { margin: 2px 0 4px; }
.t1-noreply { margin: 4px 0; font-weight: 700; }
.t1-led { display: inline-block; width: 9px; height: 9px; margin: 0 4px 0 0; vertical-align: -1px; border: 1px solid #0a0b10; }
.t1-led-green { background: var(--good); } .t1-led-red { background: var(--bad); } .t1-led-amber { background: var(--gold); }
.t1-led-off { background: #333a4a; } .t1-led-unknown { background: transparent; border: 1px dashed var(--muted); }
.t1-ledset { display: inline-block; margin-right: 10px; white-space: nowrap; }
.t1-barrow { display: grid; grid-template-columns: 7em minmax(0, 1fr) 2.5em; gap: 6px; align-items: center; font-size: 12.5px; margin: 2px 0; }
.t1-barbox { height: 10px; background: #0f1220; border: 1px solid var(--line); }
.t1-barbox i { display: block; height: 100%; background: var(--accent); }
.t1-barrow.own i { background: var(--gold); }
.t1-ev { flex: none; margin-bottom: 4px; }
.t1-evrow select { width: 100%; }
.t1-causes { flex: 1 1 0; }
.t1-causes .t1-rh:first-child { margin-top: 2px; }
.t1-cause { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) 2.4em; gap: 6px; align-items: center; width: 100%; text-align: left; margin: 0 0 3px; padding: 3px 6px;
  font-size: 12.5px; line-height: 1.3; border-bottom-width: 2px; }
.t1-mk { color: var(--muted); white-space: nowrap; }
.t1-evn { color: var(--muted); font-size: 11px; text-align: right; }
.t1-cause.m-out .t1-cl { color: var(--muted); text-decoration: line-through; }
.t1-cause.m-likely { border-color: #8a6a1c; } .t1-cause.m-likely .t1-mk { color: var(--gold); }
.t1-cause.m-confirmed { border-color: #3f8f69; } .t1-cause.m-confirmed .t1-mk { color: var(--good); }
.t1-free { flex: none; height: 5.2em; resize: none; width: 100%; }
@media (pointer: fine) { body.t1 .t1-q, body.t1 .t1-tab, body.t1 .t1-cause, body.t1 .t1-run { min-height: 32px; } }   /* mouse only; phones keep 44 px */
.t1-acts { grid-area: acts; min-width: 0; }
.t1-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.t1-slot { height: 54px; min-width: 0; padding: 2px 6px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px; line-height: 1.2; overflow: hidden; }
.t1-slot b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.t1-slot small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.t1-call [aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.t1-actx, .t1-thumb { display: none; }

/* ---- Sheets: fix, wrap-up, debrief, knowledge book -------------------------------------------------------- */
.t1-fixrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.t1-fc { display: flex; gap: 6px; flex-wrap: wrap; }
.t1-fc input { width: 11em; min-height: 36px; }
.t1-fc select { min-height: 36px; }
.t1-guide { display: block; width: 100%; text-align: left; margin: 4px 0; font-size: 14px; }
.t1-link { min-height: 0 !important; padding: 2px 6px; font-size: 13px; margin: 2px; }
.t1-res { margin-top: 4px; }
.t1-res label { display: inline-flex; align-items: center; min-height: 44px; }
.t1-res input[type=radio] { min-height: 0 !important; margin: 0 8px 0 0; }
.t1-res label.t1-locked { opacity: 0.5; cursor: not-allowed; flex-wrap: wrap; }
.t1-res label.t1-locked small { flex-basis: 100%; font-size: 11px; color: var(--muted); }
.t1-wrow select, .t1-wrow textarea { width: 100%; min-height: 40px; }
.t1-wrow select:disabled { opacity: 0.45; }
.t1-wrow textarea { resize: vertical; }
.t1-clue { color: var(--gold); }
.t1-explain { margin: 6px 0; padding-left: 20px; line-height: 1.5; }
.t1-scoreline { font-size: 14px; color: var(--muted); }
.t1-scoreline b { color: var(--ink); }

/* ---- Phones: strip, close-up scene, one panel at a time, thumb bar (Talk / Tools / Notes / Act) ---------- */
html.phone body.t1.in-call #hud { display: none; }
html.phone body.t1.in-call #t1-main { padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); }
html.phone .t1-call { gap: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "strip" "scene" "panel" "thumb"; }
html.phone .t1-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; height: auto; border-radius: 0; border-width: 0 0 2px;
  padding: max(4px, env(safe-area-inset-top)) 10px 4px; font-size: 12px; line-height: 1.5; }
html.phone .t1-strip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.phone .t1-badge { margin: 0; border: 0; padding: 0; font-size: 12px; }
html.phone .t1-scene { display: block; }
html.phone .t1-stage, html.phone .t1-call .cam-shell { width: 100%; }
html.phone .t1-call #canvas-wrap { width: 100%; }
html.phone .t1-col, html.phone .t1-acts { grid-area: panel; border-radius: 0; border-width: 2px 0 0; }
html.phone .t1-call:not([data-panel="talk"]) .t1-talk, html.phone .t1-call:not([data-panel="tools"]) .t1-tools,
html.phone .t1-call:not([data-panel="notes"]) .t1-notes, html.phone .t1-call:not([data-panel="acts"]) .t1-acts { display: none; }
html.phone .t1-acts { background: var(--panel); padding: 10px; overflow-y: auto; }
html.phone .t1-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html.phone .t1-slot { height: 62px; }
html.phone .t1-actx { display: flex; gap: 8px; margin-top: 10px; }
html.phone .t1-actx button { flex: 1; font-size: 13px; }
html.phone .t1-thumb { display: grid; grid-area: thumb; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: #0c0e14; border-top: 2px solid var(--line); }
html.phone .t1-thumb button { min-height: 48px; padding: 4px 2px; font-size: 14px; font-weight: 700; }
html.phone .t1-thumb [aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: #3a3320; }
html.phone body.t1 .t1-q, html.phone body.t1 .t1-tab, html.phone body.t1 .t1-cause, html.phone body.t1 .t1-run { min-height: 44px; }
html.phone .t1-call .cam-ctl button { min-height: 44px; min-width: 44px; }
html.phone .t1-param select { height: 44px; font-size: 16px; }
html.phone .t1-bar { height: 104px; }
html.phone .t1-qs { flex-basis: 40%; }
html.phone .t1-coach { height: 3.2em; }
@media (max-width: 400px) { html.phone .t1-long { display: none; } }
html.phone .t1-tap { bottom: 4px; font-size: 12px; }
html.phone .t1-fixrow { grid-template-columns: minmax(0, 1fr) auto; }
html.phone .t1-fixrow .t1-fl { grid-column: 1 / -1; }
html.phone .t1-fc input { width: 100%; }
html.phone .t1-fc { flex: 1; }
/* Short landscape: the thumb bar becomes a left rail; the scene and the one open panel sit side by side. */
@media (max-height: 500px) {
  html.phone .t1-call { grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "thumb strip strip" "thumb scene panel"; }
  html.phone .t1-strip { grid-template-columns: repeat(6, auto); justify-content: space-between; padding-top: 4px; }
  html.phone .t1-thumb { grid-template-columns: 1fr; grid-auto-rows: 1fr; border-top: 0; border-right: 2px solid var(--line);
    padding: max(6px, env(safe-area-inset-top)) 6px max(6px, env(safe-area-inset-bottom)) 6px; }
  html.phone .t1-thumb button { min-height: 44px; }
  html.phone .t1-col, html.phone .t1-acts { border-width: 0 0 0 2px; }
  html.phone .t1-slot { height: 52px; }
  html.phone .t1-bar { height: 96px; }
}

/* ---- The office hub: the pixel office, the big buttons and the noticeboard ---------------------------------- */
.t1-office { max-width: 1100px; margin: 0 auto; display: grid; gap: 10px; }
.t1-ohead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.t1-ohead h2 { margin: 0; color: var(--gold); font-size: 20px; text-transform: uppercase; letter-spacing: 1px; }
.t1-ohead .t1-badge { margin-left: auto; }
.t1-ostage { position: relative; min-width: 0; display: flex; justify-content: center; }
.t1-ostage .cam-shell { max-width: 100%; }
.t1-office #canvas-wrap { margin: 0 auto; width: max-content; max-width: 100%; }
.t1-obar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.t1-obtns { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.t1-obtns button { min-height: 60px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; font-size: 15px; font-weight: 700; }
.t1-obtns small { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.t1-obtns .primary small { color: inherit; opacity: 0.85; }
.t1-hot { border-color: var(--gold); color: var(--gold); animation: t1-pulse 1.6s ease-in-out infinite; }
@keyframes t1-pulse { 50% { box-shadow: 0 0 0 3px rgba(243, 199, 79, 0.35); } }
@media (prefers-reduced-motion: reduce) { .t1-hot, .t1-stamp { animation: none !important; } }
.t1-board { background: #6e5236; border: 3px solid #4a3524; border-radius: 6px; padding: 8px 12px; color: #1a1d24; }
.t1-board h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #f3e6c4; }
.t1-board ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.t1-board li { background: #eef0f5; border-radius: 2px; padding: 4px 8px; font-size: 13px; line-height: 1.35; box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35); }
.t1-board li.hot { background: #f6df8a; }
.t1-ox { display: none; }
html.phone .t1-ox { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
html.phone .t1-ox button { font-size: 13px; }
html.phone .t1-office { gap: 8px; }
html.phone .t1-ohead h2 { font-size: 16px; }
html.phone .t1-obar { grid-template-columns: minmax(0, 1fr); }
html.phone .t1-obtns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.phone .t1-ostage, html.phone .t1-office .cam-shell, html.phone .t1-office #canvas-wrap { width: 100%; }
@media (max-height: 500px) {
  html.phone .t1-office { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "head head" "stage bar"; align-items: start; }
  html.phone .t1-ohead { grid-area: head; } html.phone .t1-ostage { grid-area: stage; } html.phone .t1-obar { grid-area: bar; }
}

/* ---- Cards between calls: debrief, summary, review, career ---------------------------------------------------- */
.t1-verdict { display: inline-block; margin: 0 0 4px; padding: 3px 10px; border-radius: 3px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.t1-verdict.good { background: #1f3a2c; color: var(--good); border: 2px solid var(--good); }
.t1-verdict.warn { background: #3a3320; color: var(--gold); border: 2px solid var(--gold); }
.t1-verdict.bad { background: #3a1f1f; color: var(--bad); border: 2px solid var(--bad); }
.t1-kbnew .t1-link, .t1-see .t1-link { vertical-align: baseline; }
.t1-stamp { display: inline-block; margin: 2px 0 6px; padding: 6px 14px; border: 3px solid var(--gold); color: var(--gold); border-radius: 4px; font-size: 20px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 2px; transform: rotate(-3deg); animation: t1-stamp 0.5s ease-out; }
@keyframes t1-stamp { from { transform: scale(2.2) rotate(-12deg); opacity: 0; } to { transform: rotate(-3deg); opacity: 1; } }
table.sheet td.met { color: var(--good); font-weight: 700; }
table.sheet td.short { color: var(--gold); font-weight: 700; }
.t1-calls, .t1-labres, .t1-reviews { margin: 6px 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.t1-calls li, .t1-labres li, .t1-reviews li { background: var(--panel-2); border: 1px solid var(--line); border-left-width: 4px; border-radius: 3px; padding: 5px 8px; font-size: 13.5px; line-height: 1.4; }
.t1-calls li.good, .t1-labres li.good { border-left-color: var(--good); } .t1-calls li.bad, .t1-labres li.bad { border-left-color: var(--bad); }
.t1-calls li > span { font-weight: 700; }
.t1-calls small { color: var(--muted); }
.t1-next { background: #3a3320; border: 2px solid var(--gold); border-radius: 4px; padding: 6px 10px; }
.t1-warn { color: var(--gold); }
.t1-lead { background: var(--panel-2); border-left: 4px solid var(--accent); padding: 6px 10px; border-radius: 3px; }
.t1-mrow { display: grid; grid-template-columns: minmax(0, 1fr) 90px 6.5em; gap: 8px; align-items: center; font-size: 13px; margin: 3px 0; }
.t1-mbar { height: 10px; background: #0f1220; border: 1px solid var(--line); display: block; }
.t1-mbar i { display: block; height: 100%; background: var(--good); }
.t1-mrow small { color: var(--muted); }
html.phone .t1-mrow { grid-template-columns: minmax(0, 1fr) 60px; } html.phone .t1-mrow small { display: none; }

/* ---- The knowledge book and its diagrams ---------------------------------------------------------------------- */
.t1-book .t1-rh:first-child { margin-top: 2px; }
.t1-kbi { display: block; width: 100%; text-align: left; margin: 3px 0; font-size: 14px; }
.t1-kbi.locked { min-height: 44px; padding: 5px 10px; border: 2px dashed var(--line); border-radius: 4px; color: var(--muted); box-sizing: border-box; }
.t1-kbi.locked small { display: block; font-size: 11.5px; }
.t1-link.locked { display: inline-block; border: 1px dashed var(--line); border-radius: 3px; color: var(--muted); cursor: not-allowed; }
.t1-lockmsg { color: var(--muted); }
.t1-dg { margin: 8px 0; padding: 8px; background: #0f1220; border: 2px solid var(--line); border-radius: 4px; overflow-x: auto; }
/* At least 410 px wide, so the smallest diagram text (9.5 units of 320) is about 12 CSS px; narrower cards scroll inside. */
.t1-dgsvg { display: block; width: 100%; min-width: 410px; max-width: 560px; height: auto; margin: 0 auto; }
.t1-dg figcaption { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.t1-dgsvg text { font-family: var(--font); }
.t1-dgsvg .dg-t { fill: var(--ink); font-size: 11px; } .t1-dgsvg .dg-b { fill: var(--ink); font-size: 10px; } .t1-dgsvg .dg-s { fill: var(--muted); font-size: 9.5px; } .t1-dgsvg .dg-bad-t { fill: var(--bad); font-size: 9.5px; }
.t1-dgsvg .dg-box { fill: var(--panel-2); stroke: var(--line); stroke-width: 1.5; }
.t1-dgsvg .dg-ln { stroke: var(--ink); stroke-width: 1.5; } .t1-dgsvg .dg-ln-h { fill: var(--ink); }
.t1-dgsvg .dg-ok { stroke: var(--good); stroke-width: 1.5; } .t1-dgsvg .dg-ok-h { fill: var(--good); }
.t1-dgsvg .dg-no { stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 4 3; } .t1-dgsvg .dg-no-h { fill: var(--bad); }
.t1-dgsvg .dg-good { fill: var(--good); } .t1-dgsvg .dg-good2 { fill: #3f8f69; } .t1-dgsvg .dg-warn { fill: var(--gold); } .t1-dgsvg .dg-bad { fill: var(--bad); } .t1-dgsvg .dg-accent { fill: var(--accent); }
.t1-dgsvg .dg-led-green { fill: var(--good); } .t1-dgsvg .dg-led-red { fill: var(--bad); } .t1-dgsvg .dg-led-off { fill: #333a4a; stroke: #0a0b10; }
.t1-dgsvg .dg-arc24, .t1-dgsvg .dg-arc5 { fill: none; stroke-width: 3; } .t1-dgsvg .dg-arc24 { stroke: var(--accent); } .t1-dgsvg .dg-arc5 { stroke: var(--gold); }
.t1-dgsvg .dg-k24 { fill: var(--accent); } .t1-dgsvg .dg-k5 { fill: var(--gold); } .t1-dgsvg .dg-hub { fill: var(--ink); }
.t1-dgsvg .dg-wall { stroke: var(--muted); stroke-width: 4; }
.t1-dgsvg .dg-chan { fill: none; stroke: var(--good); stroke-width: 2; } .t1-dgsvg .dg-chan-bad { fill: none; stroke: var(--bad); stroke-width: 2; stroke-dasharray: 4 3; }
.t1-dgsvg .dg-weak { stroke: var(--bad); stroke-width: 2; stroke-dasharray: 3 4; } .t1-dgsvg .dg-strong { stroke: var(--good); stroke-width: 4; }
.t1-dgsvg .dg-pipe-big { stroke: var(--good); stroke-width: 10; } .t1-dgsvg .dg-pipe-small { stroke: var(--gold); stroke-width: 3; }

/* ---- The training room and labs ------------------------------------------------------------------------------- */
.t1-labcard { border: 2px solid var(--line); border-radius: 6px; padding: 8px 12px; margin: 8px 0; background: var(--panel-2); }
.t1-labcard h4 { margin: 0 0 4px; color: var(--accent); font-size: 15px; }
.t1-labcard.passed { border-color: var(--good); } .t1-labcard.locked { opacity: 0.6; border-style: dashed; }
.t1-labq { border-top: 2px solid var(--line); padding: 8px 0 4px; margin-top: 8px; }
.t1-labq h4 { margin: 0 0 2px; font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }
.t1-labread { background: #0c0e14; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; font-size: 13px; margin: 6px 0; overflow-x: auto; }
.t1-labch { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 10px; }
.t1-labch label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; line-height: 1.3; cursor: pointer; }
.t1-labch label:has(input:checked) { border-color: var(--gold); background: #3a3320; }
.t1-labch input[type=radio] { min-height: 0 !important; margin: 0; flex: none; }


/* ---- 2026-11-26 expansion: guided cases, progression and the larger pixel stages ---------------- */
:root { --t1-cyan: #79d5c5; --t1-navy: #111a29; --t1-line: #34445b; }
body.t1 { background: radial-gradient(circle at 75% -20%, #25354d 0, transparent 48%), #0b1019; }
body.t1 #hud { border-bottom-color: #35465d; background: rgba(12, 18, 29, .96); }
body.t1 #hud .brand { display: flex; align-items: center; gap: 8px; letter-spacing: .08em; }
body.t1 #hud .brand small { color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .04em; }
.t1-brand-mark { display: inline-grid; place-items: center; width: 29px; height: 25px; background: var(--t1-cyan); color: #10231f; border: 2px solid #b4fff0; box-shadow: 3px 3px 0 #244c50; font-size: 13px; }
body.t1 button { transition: border-color .12s, background-color .12s, transform .12s; }
body.t1 button:hover:not([aria-disabled="true"]) { border-color: #6f89a8; }
body.t1 button:active:not([aria-disabled="true"]) { transform: translateY(1px); }

/* Title: a compact arcade attract card, not an in-game interruption. */
.t1-title { text-align: center; max-width: 590px; margin: 0 auto 14px; }
.t1-title-art { position: relative; height: 68px; margin: -4px auto 10px; display: flex; align-items: center; justify-content: center; gap: 9px; overflow: hidden; background: linear-gradient(180deg, #263a55, #17263b); border: 2px solid #3c5572; box-shadow: inset 0 -8px #101a2a; }
.t1-title-art:before { content: ''; position: absolute; inset: 0; opacity: .22; background: repeating-linear-gradient(0deg, transparent 0 3px, #91b6d0 4px); }
.t1-title-art span { position: relative; z-index: 1; padding: 3px 12px; background: var(--t1-cyan); border: 3px solid #c4fff4; box-shadow: 5px 5px 0 #132e36; color: #10231f; font-size: 29px; font-weight: 900; letter-spacing: .08em; }
.t1-title-art i { width: 8px; height: 8px; background: #edc75d; box-shadow: 0 0 12px #edc75d; animation: t1-signal 1.5s steps(2) infinite; }
.t1-title-art i:nth-child(3) { animation-delay: .25s; } .t1-title-art i:nth-child(4) { animation-delay: .5s; }
@keyframes t1-signal { 50% { opacity: .25; } }
.t1-kicker { display: block; color: #8da5be; font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.t1-title h3 { margin: 8px 0; color: #f0d179; font-size: clamp(20px, 4vw, 29px); line-height: 1.2; text-transform: uppercase; }
.t1-title p:not(.t1-kicker) { color: #b7c5d5; line-height: 1.5; }
.t1-title-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.t1-title-features span { padding: 4px 8px; border: 1px solid #3b506b; background: #142033; color: #9fc3d7; font-size: 12px; }

/* The case plan is always visible and never covers the conversation or the scene. */
.t1-call { grid-template-rows: 36px 30px auto minmax(0, 1fr) auto; grid-template-areas: "strip strip strip" "flow flow flow" "scene scene scene" "talk tools notes" "acts acts acts"; }
.t1-caseflow { grid-area: flow; min-width: 0; display: flex; justify-content: center; align-items: center; gap: clamp(4px, 1vw, 14px); padding: 3px 8px; background: #111a28; border: 1px solid #2d3e54; border-radius: 5px; overflow: hidden; }
.t1-phase { display: inline-flex; align-items: center; gap: 5px; color: #6f8197; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.t1-phase i { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1px solid #46566c; border-radius: 50%; font-style: normal; font-size: 10px; }
.t1-phase.current { color: #f0d179; } .t1-phase.current i { border-color: #f0d179; background: #4b3f20; }
.t1-phase.done { color: var(--t1-cyan); } .t1-phase.done i { border-color: #4b9b89; background: #183e36; }
.t1-flow-arrow { color: #41536a; font-size: 16px; font-weight: 400; }
.t1-priority { color: #f0d179; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.t1-strip:has(.t1-priority) { border-color: #8a7134; }
.t1-scene .cam-shell, .t1-ostage .cam-shell { filter: drop-shadow(0 8px 16px rgba(0,0,0,.34)); }
.t1-scene #canvas-wrap, .t1-ostage #canvas-wrap { border: 2px solid #3c4e67; background: #152131; }
.t1-col { border-width: 2px; border-color: #33445b; background: linear-gradient(180deg, #192335, #141c2b); box-shadow: 0 4px 12px rgba(0,0,0,.16); }
.t1-col .lbl { color: #8fcbd0; }
.t1-bub { border-color: #35485f; } .t1-bub.me { background: #20344d; }
.t1-coach { border-color: #4b5c70; background: #111a27; }
.t1-slot { border-color: #3a4d64; background: #1b293c; }
.t1-slot.primary { background: #296c62; border-color: #70cbb8; }

/* Office progression, priority finale and richer room framing. */
.t1-office { max-width: 1180px; }
.t1-ohead { justify-content: space-between; padding: 2px 0; }
.t1-ohead > div:first-child { display: grid; gap: 3px; }
.t1-ohead h2 { color: #f0d179; font-size: 23px; }
.t1-level { width: min(340px, 48%); display: grid; gap: 5px; }
.t1-level > span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.t1-level b { color: var(--t1-cyan); text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.t1-level small { color: #9bacc0; font-size: 11px; text-align: right; }
.t1-xpbar { height: 12px; padding: 2px; background: #0b121e; border: 1px solid #42546c; }
.t1-xpbar i { display: block; height: 100%; min-width: 2px; background: repeating-linear-gradient(90deg, #55b7a7 0 8px, #79d5c5 8px 10px); box-shadow: 0 0 8px #4aa99755; }
.t1-priority-banner { padding: 6px 10px; border: 1px solid #9b7e37; background: #352f1e; color: #f0d179; font-size: 13px; text-align: center; }
.t1-obtns button { border-color: #3b4f68; background: #1a283b; }
.t1-obtns button.primary { background: #296c62; border-color: #70cbb8; }
.t1-board { box-shadow: 4px 4px 0 #080d14; }
.t1-ox { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t1-reward { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 7px 0; }
.t1-reward strong { padding: 5px 10px; background: #1b4b40; border: 1px solid #62bca5; color: #8ee3ca; font-size: 18px; }
.t1-reward span { padding: 3px 7px; border: 1px solid #665b37; color: #e5c86d; font-size: 12px; }
.t1-commendations { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 10px; }
.t1-commendations span { padding: 3px 7px; border: 1px solid #3b5567; background: #162a34; color: #9dd5d2; font-size: 12px; }

html.phone .t1-call { grid-template-rows: auto 28px auto minmax(0, 1fr) auto; grid-template-areas: "strip" "flow" "scene" "panel" "thumb"; }
html.phone .t1-caseflow { border-radius: 0; border-width: 0 0 1px; gap: 4px; padding: 2px 4px; }
html.phone .t1-phase { font-size: 9px; gap: 2px; }
html.phone .t1-phase i { width: 15px; height: 15px; font-size: 9px; }
html.phone .t1-flow-arrow { font-size: 12px; }
html.phone .t1-priority { grid-column: 1 / -1; text-align: center; }
html.phone .t1-ohead { align-items: end; }
html.phone .t1-level { width: 52%; }
html.phone .t1-level > span { display: grid; gap: 1px; }
html.phone .t1-level small { text-align: left; }
html.phone .t1-ox { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-height: 500px) {
  html.phone .t1-call { grid-template-rows: auto 25px minmax(0, 1fr); grid-template-areas: "thumb strip strip" "thumb flow flow" "thumb scene panel"; }
  html.phone .t1-caseflow { border-width: 0 0 1px 2px; }
  html.phone .t1-phase { font-size: 8px; }
  html.phone .t1-phase i { width: 13px; height: 13px; }
  html.phone .t1-ohead h2 { font-size: 16px; }
  html.phone .t1-ohead .t1-kicker { display: none; }
}
@media (max-width: 520px) {
  body.t1 #hud .brand small { display: none; }
  .t1-title-art { height: 56px; }
  .t1-title-features { gap: 4px; }
  .t1-title-features span { font-size: 10px; }
}
/* Toasts stay clear of the call's action bar and phone thumb rail. */
body.t1.in-call #toast { bottom: 80px; }
html.phone body.t1.in-call #toast { top: 64px; bottom: auto; }

@media (prefers-reduced-motion: reduce) {
  .t1-title-art i { animation: none; }
  body.t1 button { transition: none; }
}
