/* AI omni-channel learning lab. Bright multicolour is the default.
   Loaded after the reused frame, wow, and footer kit. */

:root {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-2: #ffffff;
  --ink: #16182b;
  --ink-dim: #334155;
  --muted: #3f4a63;
  --line: rgba(22, 24, 43, 0.12);
  --line-strong: rgba(22, 24, 43, 0.28);
  --accent: #0891b2;
  --accent-2: #7c3aed;
  --accent-ink: #042f2e;
  --card-bg: #ffffff;
  --field: #ffffff;
  --shadow: 0 16px 40px rgba(79, 70, 229, 0.14);
  --grad: linear-gradient(120deg, #22d3ee, #818cf8, #f472b6);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
}

html[data-font="sm"] { font-size: 16px; }
html[data-font="md"] { font-size: 18px; }
html[data-font="lg"] { font-size: 21px; }
html[data-font="xl"] { font-size: 24px; }

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-2: #12182c;
  --ink: #f8fafc;
  --ink-dim: #dbe4f3;
  --muted: #cbd5e1;
  --line: rgba(248, 250, 252, 0.14);
  --line-strong: rgba(248, 250, 252, 0.32);
  --card-bg: #151b2e;
  --field: #0f1528;
  --accent-ink: #042f2e;
}
html[data-theme="contrast"] {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #000;
  --ink: #fff;
  --ink-dim: #fff;
  --muted: #fff;
  --line: #ffe600;
  --line-strong: #ffe600;
  --card-bg: #000;
  --field: #000;
  --accent: #ffe600;
  --accent-2: #ffe600;
  --accent-ink: #000;
}

body.lab-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(920px 420px at -10% -20%, rgba(34, 211, 238, 0.55), transparent 55%),
    radial-gradient(840px 380px at 110% -10%, rgba(244, 114, 182, 0.48), transparent 50%),
    radial-gradient(760px 420px at 50% 120%, rgba(251, 191, 36, 0.42), transparent 52%),
    linear-gradient(180deg, #fff7ed 0%, #eef2ff 42%, #ecfeff 100%);
  line-height: 1.55;
}
html[data-theme="dark"] body.lab-body {
  background:
    radial-gradient(800px 360px at 0% 0%, rgba(34, 211, 238, 0.18), transparent 50%),
    radial-gradient(700px 320px at 100% 0%, rgba(244, 114, 182, 0.16), transparent 46%),
    var(--bg);
}
html[data-theme="contrast"] body.lab-body { background: #000; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  background: #fff;
  color: #082f49;
  padding: 8px 12px;
  border-radius: 10px;
}
.skip:focus { top: 8px; }

.lab-top,
body.lab-body .topbar,
.v4-app .topbar,
.canon-banner {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}
.lab-top {
  z-index: 40;
  background: color-mix(in srgb, var(--card-bg) 96%, transparent);
  border-bottom: 1px solid var(--line);
}
.lab-top .bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  max-height: 56px;
  padding: 0 12px;
  overflow: hidden;
}
.menu-btn, .display-btn, .rail-arrow, .edge-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  color: #082f49;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
}
html[data-theme="dark"] .menu-btn,
html[data-theme="dark"] .display-btn,
html[data-theme="dark"] .rail-arrow { color: #ecfeff; background: #111827; }
.menu-btn { flex: none; }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
}
.brand small { display: block; font-weight: 650; color: var(--muted); font-size: 0.72rem; }
.identity-line {
  margin: 0;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.display-btn { margin-left: auto; flex: none; }
.display-panel {
  position: absolute;
  right: 12px;
  top: 60px;
  z-index: 45;
  width: min(420px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--card-bg);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.display-panel[hidden] { display: none !important; }
.display-panel .a11y-label { margin: 8px 0 4px; }
.ink-row, .a11y-font, .a11y-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.ink-swatch {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--line-strong);
  cursor: pointer;
}
.canon-banner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 6px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  overflow: hidden;
  padding: 0 8px !important;
}
.section-rail {
  flex: 1;
  min-width: 0;
  max-height: 40px;
  min-height: 40px;
  flex-wrap: nowrap;
}
.section-chip { white-space: nowrap; }
.edge-rail, .edge-tab { display: none !important; }
#edge-menu.edge-menu {
  display: flex !important;
  transform: translateX(-105%);
  transition: transform 0.35s ease;
  visibility: hidden;
  pointer-events: none;
}
#edge-menu.edge-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
#edge-scrim.edge-scrim {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
#edge-scrim.edge-scrim.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.edge-search {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  padding: 8px 12px;
}
.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding: 24px clamp(16px, 3vw, 48px) 64px;
}
.hero {
  display: grid;
  gap: 18px;
  align-items: center;
  margin: 0 0 8px;
  padding: 22px clamp(16px, 2vw, 28px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.55), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(244, 114, 182, 0.48), transparent 32%),
    radial-gradient(circle at 72% 110%, rgba(250, 204, 21, 0.38), transparent 36%),
    linear-gradient(145deg, #082f49 0%, #312e81 52%, #4c0519 100%);
  box-shadow: 0 22px 50px rgba(49, 46, 129, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 36px rgba(34, 211, 238, 0.28);
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
  color: #f8fafc;
}
html[data-theme="dark"] .hero h1 { color: #f8fafc; }
html[data-theme="contrast"] .hero h1 { color: #ffe600; }
.hero h1 .hue { color: #67e8f9; }
html[data-theme="dark"] .hero h1 .hue { color: #67e8f9; }
.hero .lede { color: #e0f2fe; max-width: 46ch; }
html[data-theme="contrast"] .hero,
html[data-theme="contrast"] .hero h1,
html[data-theme="contrast"] .hero .lede { background: #000; color: #ffe600; }
.hero .illu {
  border-radius: 24px;
  transform: perspective(900px) rotateY(-8deg) rotateX(5deg);
  box-shadow: 0 28px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(34, 211, 238, 0.45);
}
.hero-diagram .flow {
  stroke-dasharray: 12 14;
  animation: hero-dash 2.2s linear infinite;
}
.hero-diagram .orbit {
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-spin 18s linear infinite;
}
.hero-diagram .pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-pulse 2.6s ease-in-out infinite;
}
@keyframes hero-dash { to { stroke-dashoffset: -104; } }
@keyframes hero-spin { to { transform: rotate(360deg); } }
@keyframes hero-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.kicker { margin: 0 0 6px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #0e7490; font-size: 0.78rem; }
html[data-theme="dark"] .kicker { color: #67e8f9; }
html[data-theme="contrast"] .kicker { color: #ffe600; }
.wrap a { color: #0c4a6e; }
html[data-theme="dark"] .wrap a { color: #7dd3fc; }
html[data-theme="contrast"] .wrap a { color: #ffe600; }
.section-chip { background: #ffffff !important; color: #0f172a !important; }
html[data-theme="dark"] .section-chip { background: #0f172a !important; color: #f8fafc !important; }
html[data-theme="contrast"] .section-chip { background: #000 !important; color: #ffe600 !important; }
.brand-lt {
  background: #43e660;
  color: #052e16;
  box-shadow: 0 0 0 3px #bbf7d0, 0 0 22px #43e660;
}
.brand-web { box-shadow: 0 0 0 3px #c4b5fd, 0 0 22px #a78bfa; }
@media (max-width: 720px) {
  :root { --dock: calc(78px + env(safe-area-inset-bottom)); }
}
@media (min-width: 721px) {
  :root { --dock: 0px; }
}
.lede { font-size: 1.12rem; max-width: 62ch; }
.choice-row, .track-grid, .card-grid, .dl-grid { display: grid; gap: 14px; }
.choice-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.track-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card, .choice {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card-bg);
  color: var(--ink);
  text-decoration: none;
  border: 2px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: var(--shadow);
  min-height: 44px;
}
.hero .choice { color: #0f172a; border-width: 2px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 16px rgba(255, 255, 255, 0.2); }
.hero .choice:nth-child(1) { background: linear-gradient(160deg, #ecfeff, #67e8f9); border-color: #0891b2; }
.hero .choice:nth-child(2) { background: linear-gradient(160deg, #f5f3ff, #c4b5fd); border-color: #6d28d9; }
.hero .choice:nth-child(3) { background: linear-gradient(160deg, #fff7ed, #fdba74); border-color: #c2410c; }
.hero .choice strong, .hero .choice span { color: #0f172a; }
body.lab-body .track-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  text-decoration: none;
  color: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  min-height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.lab-body .track-card::before {
  content: "";
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  box-shadow: 0 0 0 2px #ffffff, 0 0 16px rgba(34, 211, 238, 0.85);
}
body.lab-body .track-card strong { grid-column: 2; color: #0f172a; }
body.lab-body .track-card span { grid-column: 2; color: #1e293b; }
body.lab-body .track-card:hover { transform: translateY(-6px); }
body.lab-body .track-card:nth-child(1) { background: linear-gradient(145deg, #ecfeff, #67e8f9 55%, #a5b4fc); }
body.lab-body .track-card:nth-child(2) { background: linear-gradient(145deg, #f5f3ff, #c4b5fd 50%, #f9a8d4); }
body.lab-body .track-card:nth-child(3) { background: linear-gradient(145deg, #fff7ed, #fdba74 48%, #fde68a); }
body.lab-body .track-card:nth-child(4) { background: linear-gradient(145deg, #ecfdf5, #6ee7b7 50%, #67e8f9); }
body.lab-body .track-card:nth-child(5) { background: linear-gradient(145deg, #fdf2f8, #f9a8d4 46%, #c4b5fd); }
body.lab-body .track-card:nth-child(6) { background: linear-gradient(145deg, #eff6ff, #93c5fd 50%, #a5b4fc); }
body.lab-body .track-card:nth-child(7) { background: linear-gradient(145deg, #fff1f2, #fda4af 42%, #fdba74); }
body.lab-body .track-card:nth-child(8) { background: linear-gradient(145deg, #fefce8, #fde047 40%, #86efac); }
body.lab-body .track-card:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230e7490' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M8 8 L4 12 L8 16 M16 8 L20 12 L16 16 M14 5 L10 19'/%3E%3C/svg%3E"); box-shadow: 0 0 0 2px #fff, 0 0 16px #22d3ee; }
body.lab-body .track-card:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%236d28d9' stroke-width='1.8' stroke-linecap='round' d='M12 3 L14 9 L20 11 L14 13 L12 20 L10 13 L4 11 L10 9 Z'/%3E%3C/svg%3E"); box-shadow: 0 0 0 2px #fff, 0 0 16px #a78bfa; }
body.lab-body .track-card:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23c2410c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M5 6 H19 M5 12 H13 M5 18 H16'/%3E%3C/svg%3E"); box-shadow: 0 0 0 2px #fff, 0 0 16px #fb923c; }
body.lab-body .track-card:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6' fill='none' stroke='%23047857' stroke-width='1.8'/%3E%3Cpath d='M15.5 15.5 L20 20' fill='none' stroke='%23047857' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); box-shadow: 0 0 0 2px #fff, 0 0 16px #34d399; }
body.lab-body .track-card:nth-child(5)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%239d174d' stroke-width='1.8' stroke-linecap='round' d='M7 8 A5 5 0 1 1 12 16 H8 M16 8 L20 5 M16 12 H21'/%3E%3C/svg%3E"); box-shadow: 0 0 0 2px #fff, 0 0 16px #f472b6; }
body.lab-body .track-card:nth-child(6)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231d4ed8' stroke-width='1.8' stroke-linecap='round' d='M8 8 H16 V16 H8 Z M4 12 H8 M16 12 H20 M12 4 V8 M12 16 V20'/%3E%3C/svg%3E"); box-shadow: 0 0 0 2px #fff, 0 0 16px #60a5fa; }
body.lab-body .track-card:nth-child(7)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23be123c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M5 10 V14 H8 L13 18 V6 L8 10 Z M16 9 A4 4 0 0 1 16 15'/%3E%3C/svg%3E"); box-shadow: 0 0 0 2px #fff, 0 0 16px #fb7185; }
body.lab-body .track-card:nth-child(8)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a16207' stroke-width='1.8' stroke-linecap='round' d='M6 16 A6 6 0 0 1 18 16 M8 16 V12 A4 4 0 0 1 16 12 V16'/%3E%3C/svg%3E"); box-shadow: 0 0 0 2px #fff, 0 0 16px #facc15; }
html[data-theme="dark"] body.lab-body .track-card,
html[data-theme="dark"] body.lab-body .track-card strong,
html[data-theme="dark"] body.lab-body .track-card span { color: #0f172a; }
html[data-theme="contrast"] body.lab-body .track-card,
html[data-theme="contrast"] body.lab-body .track-card strong,
html[data-theme="contrast"] body.lab-body .track-card span { background: #000; color: #ffe600; border-color: #ffe600; }
.choice strong, .track-card strong { display: block; font-size: 1.05rem; }
.choice span, .card p { color: var(--muted); }
.room-layout { display: grid; gap: 18px; }
.toc { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 700; }
.section-block {
  margin: 0 0 22px;
  padding: 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  border: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.section-block h2 { margin-top: 0; }
.export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  margin: 8px 0 0;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #082f49;
  background: #a5f3fc;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}
.dl-PNG { background: #fde68a; }
.dl-HTML { background: #ddd6fe; }
.dl-PDF { background: #fecdd3; }
.dl-JSON { background: #bbf7d0; }
.dl-DOCX { background: #bfdbfe; }
.dl-PPTX { background: #fed7aa; }
.dl-ZIP { background: #fde047; }
.illu, .diagram { width: 100%; height: auto; display: block; border-radius: 16px; }
pre, code { font-family: var(--mono); }
pre {
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.86rem;
}
.quiz label, .scenario label { display: block; margin: 6px 0; }
[data-match] { display: grid; gap: 12px; }
@media (min-width: 720px) {
  [data-match] { grid-template-columns: 1fr 1fr; }
}
[data-match] button,
[data-sort] button,
.quiz button,
.scenario button {
  min-height: 44px;
}
[data-match] button {
  display: block;
  width: 100%;
  margin: 6px 0;
  text-align: left;
  padding: 8px 12px;
}
.quiz-result { min-height: 1.4em; font-weight: 750; }
.is-reading {
  outline: 3px solid #22d3ee;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.25);
}
.is-spoken {
  background: #fde68a;
  color: #1c1408;
  border-radius: 4px;
}
.section-chip.is-readalong { box-shadow: 0 0 0 3px #fde68a, 0 0 18px #22d3ee; }
.cite-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }
.go-deeper {
  margin: 1.25rem 0 0;
  padding: 16px 18px;
  border: 3px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(#f0fdfa, #ecfeff) padding-box,
    linear-gradient(120deg, #22d3ee, #818cf8, #f472b6) border-box;
  color: #042f2e;
  box-shadow: 0 14px 28px rgba(8, 47, 73, 0.14), 0 0 18px rgba(34, 211, 238, 0.32);
}
.go-deeper h2 { margin: 0 0 10px; color: #042f2e; }
.go-deeper a { color: #0e7490; font-weight: 750; }
.go-deeper .source-title { font-weight: 750; }
.source-kind, .source-checked { font-size: 0.92rem; color: #134e4a; }
.go-deeper strong { font-weight: 800; color: #9a3412; }
html[data-theme="contrast"] .go-deeper {
  background: #000;
  color: #ffe600;
  border: 3px solid #ffe600;
  box-shadow: none;
}
html[data-theme="contrast"] .go-deeper h2,
html[data-theme="contrast"] .go-deeper a,
html[data-theme="contrast"] .go-deeper strong,
html[data-theme="contrast"] .source-kind,
html[data-theme="contrast"] .source-checked { color: #ffe600; }
.lab-footer { position: relative; z-index: 2; }
.brand-icons {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 28px;
  padding: 16px 22px;
  gap: 18px;
  border-radius: 32px;
  border: 3px solid transparent;
  background:
    linear-gradient(#14081f, #14081f) padding-box,
    linear-gradient(120deg, #22d3ee, #a78bfa, #f472b6, #fde047, #22d3ee) border-box;
  box-shadow: 0 0 28px rgba(167, 139, 250, 0.65), 0 0 42px rgba(34, 211, 238, 0.35);
}
.brand-icons a.brand-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.brand-icons a.brand-icon svg { width: 50px; height: 50px; }
.brand-icons a.brand-web {
  background: radial-gradient(circle at 30% 25%, #ddd6fe, #7c3aed 55%, #312e81);
  box-shadow: 0 0 0 3px #e9d5ff, 0 0 22px #a78bfa;
}
.brand-icons a.brand-gh {
  background: radial-gradient(circle at 30% 24%, #475569, #0f172a 70%);
  color: #fff;
  box-shadow: 0 0 0 3px #67e8f9, 0 0 22px #22d3ee;
}
.brand-icons a.brand-lt {
  background: radial-gradient(circle at 32% 22%, #bbf7d0, #22c55e 46%, #14532d);
  color: #f7fee7;
  box-shadow: 0 0 0 3px #86efac, 0 0 22px #4ade80;
}
.site-footer.lab-footer .brand-icons a.brand-web,
.site-footer.lab-footer .brand-icons a.brand-gh { color: #fff; }
.site-footer.lab-footer .brand-icons a.brand-lt { color: #f7fee7; }
.open-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.phone-dock { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.phone-dock .dock-item { color: var(--ink); text-decoration: none; background: transparent; font: inherit; }
@media (min-width: 960px) {
  body.lab-body { padding-right: 0; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); }
  .track-grid { padding-right: 270px; }
  .room-layout { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .toc { position: sticky; top: 12px; }
}
.site-footer.lab-footer {
  width: 100% !important;
  max-width: none !important;
  margin: 32px 0 0 !important;
  box-sizing: border-box;
}
.site-footer.lab-footer .disclaimer-panel a {
  color: #052447 !important;
  background: #ffffff !important;
  padding: 0 4px;
  border-radius: 4px;
  text-decoration: underline;
}
body.edge-open .monkey-dock { visibility: hidden; }
@media (max-width: 959px) {
  .wrap { padding-right: 104px; }
  .hero { width: calc(100% + 88px); margin-right: -88px; }
  .hero .choice-row { padding-right: 100px; }
  .disclaimer-panel { margin-right: 0; }
  .hero .illu { transform: none; }
}
@media (max-width: 720px) {
  .brand-icons { gap: 12px; padding: 12px; }
  .brand-icons a.brand-icon { width: 72px; height: 72px; }
  .brand-icons a.brand-icon svg { width: 40px; height: 40px; }
}
.phone-dock {
  background: #ffffff !important;
  color: #0f172a !important;
  border-top: 2px solid #0f172a;
}
html[data-theme="dark"] .phone-dock { background: #0b1020 !important; color: #f8fafc !important; border-top-color: #67e8f9; }
.phone-dock .dock-item, .phone-dock button.dock-item { color: inherit; background: transparent; border: 0; }
@media (max-width: 720px) {
  :root { --dock: 84px; }
  .identity-line { display: none; }
  .lab-top .bar-inner { gap: 8px; }
  .wrap { padding-right: 16px; }
  .hero { width: auto; margin-right: 0; padding: 8px 12px 6px; gap: 6px; }
  .hero .choice-row { padding-right: 0; }
  .hero h1 { font-size: 1.32rem; line-height: 1.12; margin-bottom: 2px; }
  .hero .lede { font-size: 0.84rem; line-height: 1.25; }
  .hero .choice-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .hero .choice { padding: 6px; min-height: 0; }
  .hero .choice strong { font-size: 0.78rem; line-height: 1.15; }
  .hero .choice span { font-size: 0.7rem; line-height: 1.2; }
  .hero .illu { margin-top: 6px; height: 84px; width: auto; max-width: 100%; }
  body.lab-body { padding-bottom: calc(var(--dock, 84px) + 108px); }
  .site-footer.lab-footer { padding-bottom: calc(var(--dock, 84px) + 120px); }
  .canon-banner { margin: 0; }
  .phone-dock .dock-item { font-size: 10px; line-height: 1.05; overflow: hidden; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  #edge-menu.edge-menu, #edge-scrim.edge-scrim { transition: none; }
  .hero .illu { transform: none; }
  .hero-diagram .flow, .hero-diagram .orbit, .hero-diagram .pulse { animation: none; }
}
html[data-motion="reduce"] #edge-menu.edge-menu,
html[data-motion="reduce"] #edge-scrim.edge-scrim { transition: none; }
html[data-motion="reduce"] .hero .illu { transform: none; }
html[data-motion="reduce"] .hero-diagram .flow,
html[data-motion="reduce"] .hero-diagram .orbit,
html[data-motion="reduce"] .hero-diagram .pulse { animation: none; }
