@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Prata; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/prata-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Prata; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/prata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #142531;
  --muted: #4d616f;
  --paper: #eef3f6;
  --white: #fff;
  --wash: #f5f8fa;
  --line: #d9e3e9;
  --border-strong: #8399a7;
  --accent: #214d65;
  --accent-hover: #14364b;
  --accent-soft: #e1f0f8;
  --accent-border: #94c1d6;
  --brand-cyan: #9eddf2;
  --night: #102130;
  --display: Manrope, "Golos Text", system-ui, sans-serif;
  --editorial: Prata, Georgia, serif;
  --body: "Golos Text", system-ui, sans-serif;
  --text: clamp(1rem, .95rem + .18vw, 1.065rem);
  --small: .875rem;
  --page: 1344px;
  --gutter: clamp(16px, 4vw, 56px);
  --space: clamp(18px, 3.65vw, 42px);
  --gap: clamp(14px, 2vw, 24px);
  --section-gap: clamp(23px, 3.1vw, 42px);
  --radius: 16px;
  --control-height: 46px;
  --control-radius: 10px;
  --control-border: #bbccd6;
  --control-hover: #e8f1f6;
  --focus-ring: #14799d;
  --error-ink: #762b50;
  --error-bg: #faedf4;
  --success-ink: #225846;
  --success-bg: #e3f2eb;
  --progress-ink: #355571;
  --progress-bg: #e6eff6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text)/1.64 var(--body); }
[hidden] { display: none !important; }
a { color: var(--accent-hover); text-decoration-thickness: .075em; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.2; }
h2 { font-size: clamp(1.52rem, 1.1rem + 1.45vw, 2.18rem); font-weight: 760; letter-spacing: -.043em; }
h3 { font-size: 1.14rem; font-weight: 740; letter-spacing: -.02em; }
h4 { font-size: 1rem; font-weight: 740; }
p { margin: .7rem 0; }
p.eyebrow { margin: 0 0 .6rem; color: var(--muted); font-size: .73rem; font-weight: 650; letter-spacing: .105em; text-transform: uppercase; }
button, .action-link, .picker-action {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: var(--control-height); padding: .58rem .95rem; border: 1px solid transparent;
  border-radius: var(--control-radius); background: var(--accent); color: white;
  font: inherit; font-weight: 680; line-height: 1.25; text-align: center; text-decoration: none;
}
button, .action-link { cursor: pointer; }
button.secondary, .picker-action { background: var(--white); color: var(--ink); border-color: var(--control-border); }
button.quiet { background: transparent; color: var(--muted); }
button.secondary[aria-pressed=true], button.secondary[aria-expanded=false] {
  background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-hover);
}
button:disabled { background: #e9eff3; color: var(--muted); border-color: var(--line); cursor: default; }
button:active:not(:disabled), .action-link:active { box-shadow: inset 0 2px 4px #10213035; }
@media (hover: hover) {
  button:where(:not(:disabled, .secondary, .quiet)):hover, .action-link:hover { background: var(--accent-hover); }
  button.secondary:not(:disabled):hover, button.quiet:not(:disabled):hover { background: var(--control-hover); }
  a:not(.action-link):hover { color: var(--ink); text-decoration-thickness: .12em; }
}
label { display: grid; gap: .4rem; margin: 1rem 0; font-weight: 650; }
input, textarea, select {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: var(--control-height);
  padding: .62rem .78rem; border: 1px solid var(--border-strong); border-radius: var(--control-radius);
  background: var(--white); color: var(--ink); font: inherit; font-weight: 450;
}
select {
  appearance: none; padding-right: 2.2rem; cursor: pointer; font-weight: 580;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat;
}
[aria-invalid=true] { border-color: var(--error-ink); }
textarea { resize: vertical; }
::placeholder { color: #647785; }
code { padding: .12rem .28rem; border-radius: .3rem; background: #e7eff4; }

.skip-link { position: fixed; top: 10px; left: var(--gutter); z-index: 5; padding: .55rem .75rem; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header-inner, .layout {
  max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter);
}
.site-header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.brand { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); min-width: 0; }
.agency-logo {
  display: inline-flex; align-items: center; justify-self: start; gap: .65rem;
  color: var(--ink); font-size: 1.14rem; white-space: nowrap;
}
.agency-logo svg { width: 2.15em; height: 2.15em; flex: 0 0 auto; }
.agency-logo > span { display: grid; gap: .2em; }
.agency-logo strong { font-size: 1em; line-height: 1.04; letter-spacing: -.035em; }
.agency-logo span span { color: var(--muted); font-size: .82em; line-height: 1.12; letter-spacing: -.012em; }
.course-name { color: var(--muted); font: 620 .84rem/1.25 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; }
.header-actions button { font-size: .88rem; white-space: nowrap; }

.layout {
  display: grid; grid-template-columns: clamp(212px, 21vw, 264px) minmax(0, 1fr);
  align-items: start; gap: clamp(20px, 3vw, 40px); padding-block: clamp(18px, 3vw, 38px) 60px;
}
#main { min-width: 0; }
.course-sidebar { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; scrollbar-width: thin; }
.sidebar-heading { padding: .15rem .75rem .75rem; border-bottom: 1px solid var(--line); margin-bottom: .48rem; }
.sidebar-heading .eyebrow { margin-bottom: .2rem; }
.sidebar-title { margin: 0; font: 740 1.35rem/1.12 var(--display); letter-spacing: -.04em; }
#lessons { display: grid; gap: 2px; padding: 4px; }
#lessons button {
  display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); align-items: baseline; gap: .55rem;
  width: 100%; padding: .65rem .55rem; border-radius: 8px;
  background: transparent; color: var(--ink); font-size: .9rem; line-height: 1.35; font-weight: 540; text-align: left;
}
.nav-number { color: var(--muted); font: 650 .74rem/1.5 ui-monospace, Consolas, monospace; }
#lessons button:hover { background: var(--white); }
#lessons button[aria-current="step"] { color: var(--accent-hover); background: var(--accent-soft); border-color: var(--accent-border); font-weight: 650; }
#lessons button[aria-current="step"] .nav-number { color: var(--accent-hover); }
.mobile-lessons { display: none; }

.lesson-brief, .setup-panel, #videos:not(:empty), #text, #upload, #history:not(:empty), .gallery-panel {
  min-width: 0; margin: 0 0 var(--section-gap); padding: var(--space);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); overflow-wrap: anywhere; scroll-margin-top: 16px;
}
.lesson-brief { padding: 0; box-shadow: 0 14px 36px #122e4010; }
.lesson-cover {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 36%); gap: clamp(10px, 2.3vw, 29px);
  min-height: clamp(214px, 24vw, 318px); padding: var(--space);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: #111f2d;
  color: #f5fbff;
}
.lesson-cover::before {
  content: ""; position: absolute; inset: 0 0 0 18%; z-index: -1;
  background: linear-gradient(90deg, #111f2d 0%, #111f2de8 32%, #111f2d30 73%),
              url("studio-window.webp") right 83% / cover no-repeat;
}
.cover-light { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cover-copy { position: relative; min-width: 0; }
.lesson-cover .eyebrow { color: var(--brand-cyan); margin-bottom: .85rem; }
.lesson-cover h2 {
  font: 400 clamp(1.72rem, 3.22vw, 3.05rem)/1.17 var(--editorial);
  letter-spacing: -.032em; text-wrap: balance;
}
.editorial-title-line { display: block; }
.editorial-title-line + .editorial-title-line { margin-top: .12em; color: #c9e8f4; }
.lesson-cover h2:focus-visible { outline-color: var(--brand-cyan); }
.cover-camera { position: relative; aspect-ratio: 1.47; }
.cover-camera img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: block; width: 145%; height: auto; filter: drop-shadow(0 12px 13px #080f1a9c);
}
[data-ambient] {
  --ambient-blur: clamp(15px, 2.5vw, 32px);
  --ambient-opacity: .65;
  position: relative;
  isolation: isolate;
}
[data-ambient]:not([data-ambient="camera"]) {
  box-shadow: 0 12px 22px -15px #1226359c, 0 3px 8px -5px #12263569;
}
.ambient-halo {
  position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; filter: blur(var(--ambient-blur)) saturate(1.35);
}
[data-ambient-ready] > .ambient-halo { opacity: var(--ambient-opacity); }
[data-ambient="camera"] { --ambient-opacity: .78; }
[data-ambient="camera"] > .ambient-halo { inset: -9% -12%; width: 124%; height: 118%; }
[data-ambient="preview"] { --ambient-blur: 9px; --ambient-opacity: .52; align-self: start; border-radius: 7px; }
[data-ambient="viewer"] { --ambient-opacity: .85; border-radius: 11px; }
@media (min-width: 821px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ambient-halo { transition: opacity .22s ease; }
  [data-ambient-ready]:is(a,button):hover > .ambient-halo { opacity: .86; }
}
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 var(--space); }
.brief-grid > div { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; padding: clamp(17px, 2.15vw, 29px) 0; }
.brief-grid > div + div { border-left: 1px solid var(--line); padding-left: clamp(14px, 2.2vw, 28px); margin-left: clamp(12px, 2vw, 24px); }
.brief-number { padding-top: .02rem; color: var(--accent); font: 700 .77rem/1.5 ui-monospace, Consolas, monospace; }
.brief-grid h3 { margin: 0 0 .4rem; font-size: 1.02rem; }
.brief-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.lesson-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem;
  padding: .75rem var(--space); border-top: 1px solid var(--line);
}
.lesson-links a { font-size: .9rem; }
.action-icon { width: 18px; height: 18px; flex: 0 0 auto; }
#brief-setup { justify-content: flex-start; }
#brief-setup::after { margin-left: auto; }
.jump-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: var(--control-height); padding: .52rem .7rem; border: 1px solid var(--line); border-radius: var(--control-radius);
  color: var(--ink); background: var(--wash); font-weight: 650; line-height: 1.24; text-decoration: none;
}
.jump-link::after {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-right: 2px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg);
}
.jump-link:hover { border-color: var(--control-border); background: var(--control-hover); }
.field-note {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem;
  margin: 0 0 var(--section-gap); padding: .2rem var(--space);
}
.field-note-icon {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: #e0ecf3; color: var(--accent);
}
.field-note-icon svg { width: 21px; height: 21px; }
.field-note h3 { margin: 0 0 .25rem; font-size: 1.03rem; }
.field-note p { max-width: 66ch; margin: 0; color: var(--muted); line-height: 1.55; }
#status:empty, #upload-status:empty, #error:empty { display: none; }

.setup-panel { padding-block: 0; }
.ui-disclosure {
  display: flex; align-items: center; gap: .65rem; min-height: var(--control-height); padding: .55rem .75rem;
  border-radius: var(--control-radius); font-weight: 720; cursor: pointer; list-style: none;
}
.ui-disclosure::-webkit-details-marker { display: none; }
.ui-disclosure::after {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin: 0 3px 4px auto;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg);
}
details[open] > .ui-disclosure::after { margin-bottom: 0; transform: rotate(225deg); }
.ui-disclosure:hover { background: var(--control-hover); }
.camera-card { margin: 0 0 var(--section-gap); border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.camera-card-in-upload { margin-block: .85rem; }
.camera-card .ui-disclosure { align-items: baseline; }
.camera-card-label { flex: 0 0 auto; color: var(--accent-hover); font-size: .75rem; font-weight: 720; }
.camera-card-body { padding: .65rem .9rem .8rem; border-top: 1px solid var(--line); }
.camera-card-body ol { margin: 0; padding-inline-start: 1.2rem; }
.camera-card-body ol li + li { margin-top: .45rem; }
.camera-card-links { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .75rem 0 0; padding: 0; list-style: none; font-size: .85rem; }
.frame-reading { margin: 0 0 var(--section-gap); padding: var(--space); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.frame-reading > .teaching-ambient, .frame-reading-answer .teaching-ambient { max-width: 34rem; margin: .8rem 0; }
.frame-reading .teaching-frame-image { border-radius: 10px; }
.frame-reading ol { padding-inline-start: 1.35rem; }
.frame-reading-answer { border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.frame-reading-answer > :not(summary) { margin: .75rem; }
.setup-panel summary { min-height: 64px; padding-inline: 0; }
.setup-panel summary:hover { background: transparent; color: var(--accent-hover); }
.summary-icon, .picker-icon {
  display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent);
}
.summary-icon svg, .picker-icon svg { width: 22px; height: 22px; }
#setup-content { border-top: 1px solid var(--line); padding: clamp(16px, 2vw, 26px) 0 var(--space); }
#setup-content > h3 { margin: clamp(24px, 3vw, 38px) 0 .8rem; font-size: 1.4rem; font-weight: 760; }
.setup-grid { display: grid; gap: clamp(18px, 2.2vw, 29px); }
.setup-grid figure { min-width: 0; margin: 0; }
.scene-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(155deg, #f8fbfc, #e1edf4); }
.scene-viewport { display: block; width: 100%; height: auto; max-height: 490px; user-select: none; }
.scene-viewport.is-orbit { touch-action: pan-y pinch-zoom; cursor: grab; }
.scene-viewport.is-orbit:active { cursor: grabbing; }
.scene-label { fill: white; font: 700 16px var(--body); }
.scene-options, .scene-legend { display: flex; flex-wrap: wrap; gap: .35rem .45rem; margin: .55rem 0; }
.scene-options button { padding: .38rem .62rem; font-size: .9rem; }
.scene-options button[aria-label] { min-width: var(--control-height); }
.scene-legend { gap: .35rem .9rem; color: var(--muted); font-size: .86rem; }
.scene-legend span::before { content: ""; display: inline-block; width: .8rem; height: .28rem; margin-right: .38rem; border-radius: 1rem; background: #2278ca; vertical-align: middle; }
.scene-legend .light::before { background: #8b681e; }
.scene-legend .fill::before { background: #167f69; }
.scene-legend .motion::before { background: #994a80; }
.scene-metrics { margin: .55rem 0 .2rem; font-weight: 730; }
.scene-cue, .scene-help { margin: .25rem 0; }
.scene-help { color: var(--muted); font-size: .87rem; }
.studio-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 14px;
  background: #f2f0e8;
}
.studio-entry h3 { margin: 0 0 .35rem; font: 400 clamp(1.3rem, 2.6vw, 1.9rem)/1.25 var(--editorial); }
.studio-entry p { margin: 0; max-width: 55ch; }
.studio-launch { flex: 0 0 auto; }
body:has(.studio-dialog[open]) { overflow: hidden; }
.studio-dialog {
  --studio-inset: clamp(8px, 1vw, 18px);
  width: calc(100% - 2 * var(--studio-inset));
  height: calc(100dvh - 2 * var(--studio-inset));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f5ed;
  overflow: hidden;
}
.studio-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.studio-dialog::backdrop { background: #1a2828ba; }
.studio-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 12px; border-bottom: 1px solid var(--line); }
.studio-dialog-bar span { color: var(--muted); font-size: .8rem; font-weight: 650; }
.studio-dialog-bar button { min-height: 44px; }
.studio-iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 660px) {
  .studio-dialog { --studio-inset: 0px; margin: 0; border: 0; border-radius: 0; }
  .studio-dialog-bar { padding-top: max(2px, env(safe-area-inset-top)); }
}
.setup-instructions { padding: 1rem; border: 1px solid var(--line); border-radius: 11px; background: var(--wash); }
.setup-instructions h3 { margin: .3rem 0 .6rem; }
.setup-instructions p:last-child { margin-bottom: 0; }
.window-light {
  min-width: 0;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash);
}
.window-light h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); }
.window-light-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  margin-bottom: .65rem;
}
.window-light-controls button { font-size: .85rem; }
.window-light-switch { display: none; }
.window-light-frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.window-light-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.window-light-image { position: relative; aspect-ratio: 3 / 2; background: var(--line); }
.window-light-image img { display: block; width: 100%; height: auto; }
.window-light-outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.window-light-outline path { fill: none; stroke: #253b49; stroke-width: 4px; }
.window-light-outline path + path { stroke: #fff; stroke-width: 1.6px; }
.window-light-unmarked .window-light-outline { display: none; }
.window-light-frame figcaption { padding: .6rem .75rem; }
.window-light-frame figcaption p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.window-light-practice { margin: .85rem 0 0; max-width: 70ch; }
@media (max-width: 720px) {
  .window-light-controls { justify-content: flex-start; }
  .window-light-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: .4rem; }
  .window-light-controls button { min-width: 0; padding-inline: .45rem; }
  .window-light-frames { grid-template-columns: minmax(0, 1fr); }
  .window-light[data-side=a] .window-light-frame[data-side=b],
  .window-light[data-side=b] .window-light-frame[data-side=a] { display: none; }
}
.depth-demo {
  --depth-label: 6.7rem; --depth-tail: 7rem;
  margin: clamp(21px, 3vw, 36px) 0 0; padding: clamp(13px, 2.4vw, 26px);
  border: 1px solid var(--line); border-radius: 12px; background: var(--wash);
}
.depth-title { margin-bottom: .85rem; font: 400 clamp(1rem, 2vw, 1.32rem)/1.3 var(--editorial); }
.depth-row { display: grid; grid-template-columns: var(--depth-label) minmax(0, 1fr) var(--depth-tail); gap: .55rem; align-items: center; margin: .6rem 0; }
.depth-row strong, .depth-description, .depth-positions { font-size: .81rem; }
.depth-description { color: var(--muted); }
.depth-positions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-inline: calc(var(--depth-label) + .55rem) calc(var(--depth-tail) + .55rem); text-align: center; color: var(--muted); }
.depth-track {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); place-items: center; height: 25px;
  border-radius: 99px; background: linear-gradient(#b5c8d5,#b5c8d5) center / 100% 1px no-repeat;
  position: relative; isolation: isolate;
}
.depth-track::before {
  content: ""; position: absolute; inset: 2px calc((100% - var(--depth-range))/2); z-index: -1;
  border: 1px solid #99c4db; border-radius: inherit; background: #d4eaf6;
}
.depth-narrow { --depth-range: 23%; }
.depth-middle { --depth-range: 44%; }
.depth-wide { --depth-range: 77%; }
.depth-track i { width: 7px; height: 7px; border: 1px solid #516f85; border-radius: 50%; background: var(--white); }
.depth-track i:nth-child(2) { background: var(--accent); border-color: var(--accent); }
.depth-demo p { margin: .85rem 0 0; color: var(--muted); font-size: .87rem; }
.setup-errors, .setup-photo-board, .gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); gap: 12px;
}
.setup-error { padding: .9rem; border: 1px solid #e6cbd9; border-radius: 10px; background: var(--error-bg); }
.setup-error .eyebrow { margin: 0; color: var(--error-ink); }
.setup-error h4 { margin: .3rem 0; }
.setup-error p:last-child { margin-bottom: 0; }
.setup-photo-board { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.teaching-frame { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--wash); }
.teaching-ambient, .teaching-frame-image { border-radius: 10px 10px 0 0; }
.teaching-frame-image { position: relative; overflow: hidden; aspect-ratio: 3/2; background: var(--line); }
.teaching-frame-image img { position: absolute; inset: 0 auto auto 0; width: 200%; max-width: none; height: 200%; }
.teaching-frame-image[data-crop=top-right] img { transform: translateX(-50%); }
.teaching-frame-image[data-crop=bottom-left] img { transform: translateY(-50%); }
.teaching-frame-image[data-crop=bottom-right] img { transform: translate(-50%, -50%); }
.teaching-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.teaching-overlay.is-hidden { display: none; }
.teaching-pin { --pin: #174838; color: #b4f3d4; }
.teaching-pin.risk { --pin: #5d2545; color: #ffc8e3; }
.teaching-pin line, .teaching-pin rect { stroke: currentColor; stroke-width: 1.6; }
.teaching-pin rect { fill: var(--pin); }
.teaching-pin polygon { fill: currentColor; stroke: var(--pin); stroke-width: .8; }
.teaching-pin text { fill: white; font: 650 14px var(--body); }
.teaching-frame figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem; padding: .65rem .75rem 0; }
.teaching-toggle { padding: .4rem .55rem; font-size: .82rem; }
.teaching-notes { margin: .55rem .75rem .75rem; padding-left: 1.4rem; font-size: .9rem; }
.teaching-notes li { padding: .18rem 0; }
.teaching-notes li::marker, .teaching-notes strong { color: #175542; font-weight: 700; }
.teaching-notes .risk::marker, .teaching-notes .risk strong { color: var(--error-ink); }
.teaching-notes p { margin: .15rem 0 .3rem; }

.video-card { margin-top: .9rem; }
.video-card + .video-card { margin-top: clamp(23px, 3.2vw, 44px); }
.video-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.video-card.is-started .video-heading {
  position: static; width: auto; height: auto; margin: 0 0 .6rem; clip-path: none;
}
.video-stage { position: relative; margin-bottom: .75rem; scroll-margin-top: 16px; border-radius: 11px; }
.video-stage video {
  display: block; width: 100%; aspect-ratio: 16/9; max-height: 550px;
  border-radius: 11px; background: var(--night); object-fit: contain;
}
button.video-cover {
  position: absolute; inset: 0; display: flex; align-items: end; justify-content: space-between;
  gap: .65rem; width: 100%; padding: clamp(12px, 2.5vw, 28px);
  border: 0; border-radius: 11px; text-align: left; color: #f5fbff;
  background: linear-gradient(0deg, #101c27 0%, #12202ce8 16%, #12202ca8 33%, #12202c00 69%);
}
button.video-cover:hover {
  background: linear-gradient(0deg, #101c27 0%, #12202ceb 18%, #12202cb5 37%, #12202c00 73%);
}
.video-cover-copy { display: grid; min-width: 0; gap: .28rem; }
.video-cover-kicker {
  justify-self: start; padding: .16rem .48rem; border: 1px solid #b4dced87; border-radius: 5px;
  background: #102130eb; color: #e5f7ff; font-size: .69rem; font-weight: 660; letter-spacing: .075em; text-transform: uppercase;
}
.video-cover-title { font: 770 clamp(1.06rem, 2.7vw, 2.08rem)/1.13 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.video-cover-play {
  display: grid; flex: 0 0 auto; place-items: center; width: clamp(44px, 5vw, 62px); aspect-ratio: 1;
  border: 1px solid #d2f4ff; border-radius: 50%; background: var(--brand-cyan); color: var(--night);
}
.video-cover-play::before {
  content: ""; margin-left: 3px; border-block: 7px solid transparent; border-left: 11px solid currentColor;
}
.video-chapters { margin-block: .65rem; border: 1px solid var(--line); border-radius: 11px; background: var(--wash); }
.video-chapters summary { color: var(--ink); font-size: .94rem; }
.chapter-count {
  padding: .06rem .42rem; border-radius: 1rem; background: var(--accent-soft);
  color: var(--accent-hover); font-size: .75rem; font-variant-numeric: tabular-nums;
}
.chapter-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem;
  margin: 0; padding: .55rem; border-top: 1px solid var(--line); list-style: none;
}
.chapter-list li { display: grid; min-width: 0; }
button.chapter-button {
  display: grid; grid-template-columns: 4.45rem minmax(0, 1fr); align-items: center; gap: .4rem;
  width: 100%; padding: .35rem .45rem; border-color: var(--line); background: var(--white);
  color: var(--ink); text-align: left; font-size: .9rem; line-height: 1.28;
}
button.chapter-button:hover, button.chapter-button[aria-current] { border-color: var(--accent-border); background: var(--accent-soft); }
.chapter-time {
  justify-self: start; padding: .2rem .38rem; border-radius: 5px; background: var(--accent-soft);
  color: var(--accent-hover); font: 700 .79rem/1.2 ui-monospace, Consolas, monospace; white-space: nowrap;
}
.chapter-button[aria-current] .chapter-time { background: var(--accent); color: white; }
@media (max-width: 620px) { .chapter-list { grid-template-columns: minmax(0, 1fr); } }
#text { padding-inline: max(var(--space), calc(50% - 33.5ch)); }
#text > h2, #upload-title, .gallery-panel > h2 {
  font: 400 clamp(1.44rem, 2.6vw, 2.28rem)/1.25 var(--editorial);
  letter-spacing: -.032em;
}
#text > h2 { margin-bottom: 1.1em; }
#text > h2, #text > h3 { text-wrap: balance; }
#text h2:not(:first-child), #text h3 { margin-top: 2em; margin-bottom: .66em; }
#text h3 { font-size: 1.2rem; }
#text p, #text li { line-height: 1.74; }
#text p { margin-block: 1em; }
#text li { margin-block: .65rem; }
#text ul, #text ol { margin-block: 1.1em 1.35em; padding-left: 1.4rem; }

.file-picker {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: .85rem; padding: clamp(.75rem, 2vw, 1.15rem);
  border: 1px solid var(--control-border); border-radius: 14px; background: var(--wash); cursor: pointer;
}
.file-picker:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.file-picker:not(:has(input:disabled)):hover { background: var(--accent-soft); border-color: var(--accent-border); }
.file-picker:has(input:disabled) { opacity: .7; cursor: default; }
.file-picker input { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); }
.picker-icon { width: 44px; height: 44px; border-radius: 11px; }
.picker-copy { min-width: 0; line-height: 1.3; }
.picker-title, .picker-hint { display: block; }
.picker-hint { margin-top: .25rem; color: var(--muted); font-size: .85rem; font-weight: 500; }
.picker-action { font-size: .86rem; white-space: nowrap; }
.file-picker:not(:has(input:disabled)):hover .picker-action { border-color: var(--accent); color: var(--accent-hover); }
.upload-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.resume-drafts { display: grid; gap: .55rem; margin-bottom: clamp(12px, 2vw, 24px); }
.resume-draft {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .6rem 1rem; padding: .75rem 1rem; border: 1px solid var(--line);
  border-radius: 12px; background: var(--wash);
}
.resume-draft p, .draft-hint { margin: 0; color: var(--muted); font-size: .875rem; }
.draft-hint:not(:empty) { margin-top: .55rem; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .85rem 0 .55rem; }
.queue-heading h3 { font-size: .96rem; }
.ui-notice, .ui-chip { background: #e8eff4; color: var(--muted); }
.ui-notice { padding: .63rem .8rem; border-radius: var(--control-radius); font-size: .9rem; }
.ui-chip { display: inline-block; padding: .18rem .55rem; border-radius: 99px; font-size: .76rem; font-weight: 700; }
.ui-notice[data-tone=error], .upload-item[data-upload-state=failed] .ui-chip { background: var(--error-bg); color: var(--error-ink); }
.ui-notice[data-tone=progress], .upload-item[data-upload-state=uploading] .ui-chip { background: var(--progress-bg); color: var(--progress-ink); }
.ui-notice[data-tone=success], .upload-item[data-upload-state=uploaded] .ui-chip { background: var(--success-bg); color: var(--success-ink); }
#upload-queue { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: .7rem; }
.upload-item {
  min-width: 0; display: grid; grid-template-columns: clamp(68px, 9vw, 104px) minmax(0, 1fr); gap: .7rem;
  padding: .65rem; border: 1px solid var(--line); border-radius: 11px; background: var(--wash);
}
.upload-item[data-upload-state=failed] { border-color: #c98fae; background: var(--error-bg); }
.upload-preview { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 7px; background: var(--line); }
.upload-item-content { min-width: 0; }
.upload-self-check { margin-block: .8rem; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.upload-self-check h3, .upload-self-check p { margin: 0 0 .4rem; }
.upload-self-check ul { margin: 0; padding-inline-start: 1.2rem; }
.series-board { margin-block: .8rem; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
#series-count { font-weight: 650; }
#series-order { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(82px, 100%), 1fr)); gap: .45rem; margin: 0; padding: 0; list-style: none; }
#series-order li { min-width: 0; font-size: .79rem; line-height: 1.25; }
#series-order img { display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 105px; object-fit: cover; border-radius: 6px; margin-bottom: .25rem; }
.series-position { margin: .3rem 0; font-weight: 700; color: var(--accent-hover); }
.series-moves { display: flex; flex-wrap: wrap; gap: .25rem; }
.upload-photo-settings, .upload-histogram p, .histogram-axis { margin: .3rem 0; font-size: .83rem; color: var(--muted); }
.upload-histogram summary { cursor: pointer; font-weight: 650; font-size: .87rem; }
.upload-histogram svg { display: block; width: 100%; max-width: 320px; height: auto; margin-top: .45rem; fill: var(--accent); }
.histogram-axis { display: flex; justify-content: space-between; max-width: 320px; }
.upload-item-content strong { display: block; font-size: .87rem; overflow-wrap: anywhere; }
.upload-item-content label { gap: .2rem; margin: .35rem 0; font-size: .82rem; }
.upload-item-content input { padding: .45rem; font-size: max(1rem, 16px); font-weight: 400; }
.upload-item-status { margin: .42rem 0; color: var(--muted); font-size: .83rem; }
.upload-item-error { display: block; margin-top: .3rem; color: var(--error-ink); }
.upload-item-content button { margin: .14rem .2rem .14rem 0; padding-inline: .5rem; font-size: .81rem; }
#retake-context { margin-block: .8rem; padding: .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
#retake-context img { height: clamp(120px, 24vw, 225px); }

.work { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.work-status { display: inline-block; padding: .24rem .65rem; border-radius: 20px; background: var(--error-bg); color: var(--error-ink); font-size: var(--small); }
.work[data-state=passed] .work-status { background: var(--success-bg); color: var(--success-ink); }
.work[data-state=submitted] .work-status { background: var(--progress-bg); color: var(--progress-ink); }
.work-id, .photo-filename { color: var(--muted); font-size: .84rem; }
.review { white-space: pre-wrap; }
.photo-review-card { margin: .8rem 0; padding: clamp(.75rem, 2vw, 1.25rem); border: 1px solid var(--line); border-radius: 11px; background: var(--wash); }
.photo-review-card h3, .review-result h3 { margin: .2rem 0 .5rem; }
.photo-filename { margin: 0 0 .65rem; }
.review-photo-link { display: block; width: 100%; border-radius: 7px; background: var(--line); }
.review-photo-link img { display: block; width: 100%; height: clamp(140px, 32vw, 350px); object-fit: contain; border-radius: inherit; }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.photo-pair figure { margin: 0; min-width: 0; }
.photo-pair figcaption { margin-bottom: .25rem; font-weight: 700; }
.photo-pair img { height: clamp(120px, 25vw, 270px); }
.photo-annotation, .photo-caption { font-weight: 650; }
.comparison-note { color: var(--muted); }
.review-result { padding: .8rem 0 0; border-top: 1px solid var(--line); }
.review-legacy { margin: .7rem 0; }
.review-legacy .ui-disclosure { border: 1px solid var(--line); background: var(--white); }

.gallery-page h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.gallery-tools { display: flex; align-items: end; justify-content: space-between; gap: .45rem 1rem; flex-wrap: wrap; margin: .7rem 0; }
.gallery-tools label { width: min(26rem, 100%); margin: .5rem 0; }
.gallery-card { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--wash); }
.gallery-photo { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px 10px 0 0; background: var(--night); }
button.gallery-photo:hover { background: #233b4e; }
.gallery-photo img { display: block; width: 100%; height: clamp(165px, 23vw, 270px); object-fit: contain; border-radius: inherit; }
.gallery-photo:focus-visible { outline-offset: -5px; }
.gallery-caption { padding: .85rem 1rem; }
.gallery-caption h3 { margin: .2rem 0 .4rem; }
.gallery-caption button { font-size: .9rem; }
.gallery-empty { margin-bottom: 0; padding: 1rem; border: 1px dashed var(--control-border); border-radius: 10px; background: var(--wash); color: var(--muted); }
#photo-viewer { width: min(92vw, 900px); max-height: 94vh; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); }
#photo-viewer::backdrop { background: #0c1c28d9; }
#photo-viewer form { text-align: right; }
#photo-viewer h2 { margin: .45rem 0 .7rem; }
#photo-viewer img { display: block; width: 100%; height: auto; max-height: 65vh; object-fit: contain; background: var(--night); border-radius: inherit; }

.inspect-photo { margin-top: .6rem; }
.review-marker-list { display: grid; gap: .35rem; list-style: none; padding: 0; }
.review-marker-list button, #inspector-marker-list button { text-align: left; white-space: normal; }
#photo-inspector {
  width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0;
  padding: max(.55rem, env(safe-area-inset-top)) max(.55rem, env(safe-area-inset-right))
           max(.55rem, env(safe-area-inset-bottom)) max(.55rem, env(safe-area-inset-left));
  border: 0; background: var(--paper); color: var(--ink); overflow: hidden;
}
#photo-inspector[open] { display: flex; flex-direction: column; gap: .45rem; }
.inspector-header, .inspector-tools, .inspector-zoom, #inspector-pair {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
}
.inspector-header { justify-content: space-between; }
.inspector-header h2 { margin: 0; font: 400 clamp(1.15rem, 3vw, 1.7rem)/1.25 var(--editorial); }
.inspector-tools { column-gap: .75rem; }
#inspector-pair[hidden] { display: none; }
#inspector-pair label { display: flex; align-items: center; margin: 0; font-size: .85rem; }
#inspector-pair input { width: 1.15rem; min-height: auto; height: 1.15rem; margin: 0; }
#inspector-bind-help { margin: 0; font-size: .85rem; color: var(--muted); }
#photo-inspector button { padding-inline: .6rem; }
#photo-inspector button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-hover); }
.inspector-stage {
  position: relative; flex: 1; min-height: 0; overflow: auto;
  background: var(--night); border-radius: 9px; overscroll-behavior: contain;
}
.inspector-content { display: grid; place-items: center; }
.inspector-image { position: relative; }
.inspector-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.inspector-stage.is-picking img { cursor: crosshair; }
.inspector-pick {
  position: absolute; width: 18px; height: 18px; transform: translate(-50%, -50%);
  border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #122635;
  pointer-events: none;
}
.inspector-pin {
  position: absolute; display: grid; place-items: center; transform: translate(-50%, -50%);
  min-width: 1.55rem; height: 1.55rem; border: 2px solid white; border-radius: 50%;
  box-shadow: 0 2px 6px #0009; background: #174838; color: white; font: 700 .8rem/1 var(--body);
  pointer-events: none;
}
.inspector-pin[data-kind="fix"] { background: #782b4d; }
.inspector-pin[data-selected="true"] { outline: 2px solid #fde39c; outline-offset: 2px; }
.inspector-footer { overflow: auto; max-height: min(25dvh, 11rem); }
#inspector-status { margin: 0; font-size: .83rem; color: var(--muted); }
#inspector-marker-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }

.login { min-height: 100svh; display: grid; place-items: center; padding: var(--gutter); background: radial-gradient(ellipse at 78% 20%, #d9eaf5, transparent 56%), var(--paper); }
.login-card {
  display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 790px); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 20px 65px #122e401a;
}
.login-cover, .login-form { padding: clamp(20px, 4vw, 40px); }
.login-cover { display: grid; align-content: center; background: radial-gradient(ellipse at 100% 110%, #355a70, transparent 75%), var(--night); color: #f5fbff; }
.login-cover .agency-logo { margin-bottom: 1rem; color: #edf5f8; }
.login-cover .agency-logo span span { color: #d7e5eb; }
.login-cover .eyebrow { color: var(--brand-cyan); }
.login-cover h1 { font: 800 clamp(1.8rem, 3.7vw, 3rem)/1.08 var(--display); letter-spacing: -.055em; }
.login-cover > p:last-child { margin-bottom: 0; color: #d6e6f0; }
.login-form button { width: 100%; margin-top: .25rem; }
#error { padding: .63rem .8rem; border-radius: var(--control-radius); background: var(--error-bg); color: var(--error-ink); }

.kit-page { max-width: 1080px; margin: auto; padding: var(--gutter); }
.kit-title { margin-bottom: 1.1rem; font: 800 clamp(2rem, 6vw, 3.5rem)/1.05 var(--display); letter-spacing: -.055em; }
.kit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.kit-panel { min-width: 0; padding: var(--space); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.kit-panel > h2 { margin-bottom: .85rem; font-size: 1.5rem; }
.kit-panel-wide { grid-column: 1 / -1; }
.kit-row { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin: .65rem 0; }
@media (max-width: 700px) { .kit-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 820px) {
  /* Keep the colour in the small gutters around mobile media. */
  [data-ambient] {
    --ambient-blur: 8px;
    --ambient-opacity: .34;
    --ambient-edge: -3px -5px -5px;
  }
  [data-ambient] > .ambient-halo {
    clip-path: inset(var(--ambient-edge) round 12px);
    filter: blur(var(--ambient-blur)) saturate(1.12);
  }
  [data-ambient]:not([data-ambient="camera"]) {
    box-shadow: 0 3px 7px -4px #1226355c;
  }
  [data-ambient="camera"] {
    --ambient-opacity: .28;
    clip-path: inset(-3px);
  }
  [data-ambient="camera"] > .ambient-halo {
    inset: 0; width: 100%; height: 100%;
  }
  .cover-camera img { filter: drop-shadow(0 5px 6px #080f1a66); }
  [data-ambient="teaching"], .gallery-photo[data-ambient] {
    --ambient-edge: -3px -4px -2px;
    --ambient-opacity: .28;
  }
  .teaching-frame figcaption, .gallery-caption {
    position: relative;
    background: inherit;
  }
  [data-ambient="preview"] {
    --ambient-edge: -3px;
    --ambient-blur: 5px;
    --ambient-opacity: .25;
  }
  .photo-pair [data-ambient] { --ambient-edge: -1px -4px -4px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .course-sidebar { display: none; }
  .mobile-lessons { display: grid; margin: 0; color: var(--muted); font-size: .83rem; }
  #lesson-select { font-size: 1rem; font-weight: 610; }
  .scene-label { font-size: 20px; }
}
@media (max-width: 560px) {
  :root { --radius: 14px; --section-gap: 24px; }
  .site-header-inner { min-height: 55px; padding-inline: 12px; }
  .brand .agency-logo { gap: .42rem; font-size: .97rem; }
  .course-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .header-actions { gap: .12rem; }
  .header-actions button { padding-inline: .44rem; font-size: .81rem; }
  .layout { gap: 8px; padding: 8px 12px 48px; }
  .mobile-lessons { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .65rem; }
  #lesson-select { padding-block: .38rem; }
  .lesson-brief {
    --brief-inset: 14px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "cover cover" "task task" "upload setup" "delivery delivery" "detail gallery";
  }
  .lesson-cover {
    grid-area: cover; min-height: 94px; padding: 12px var(--brief-inset);
    grid-template-columns: minmax(0, 1fr) clamp(64px, 24vw, 108px);
  }
  .lesson-cover .eyebrow { margin-bottom: .33rem; font-size: .65rem; }
  .lesson-cover h2 { font-size: clamp(1.1rem, 4.55vw, 1.45rem); line-height: 1.18; text-wrap: initial; }
  .lesson-cover::before { inset-inline-start: 10%; }
  .brief-grid, .lesson-links { display: contents; }
  .brief-grid > div { grid-template-columns: minmax(0, 1fr); padding: .66rem var(--brief-inset); }
  .brief-number { display: none; }
  .brief-grid h3 { margin-bottom: .23rem; font-size: .94rem; }
  .brief-grid p { font-size: .93rem; line-height: 1.4; }
  .brief-task { grid-area: task; }
  .brief-grid > .brief-delivery {
    grid-area: delivery; margin: .65rem var(--brief-inset) 0; padding: .55rem 0 .35rem;
    border-left: 0; border-top: 1px solid var(--line);
  }
  .lesson-links a { padding-inline: .55rem; font-size: .84rem; line-height: 1.24; }
  .action-icon { width: 16px; height: 16px; }
  #brief-upload { grid-area: upload; margin-inline: var(--brief-inset) 4px; }
  #brief-setup { grid-area: setup; margin-inline: 4px var(--brief-inset); }
  .brief-setup-extra { display: none; }
  .lesson-links :is(.brief-detail-link, .brief-gallery-link) {
    margin-bottom: .35rem; border-color: transparent; background: transparent;
    color: var(--muted); padding-inline: 0; font-weight: 600;
  }
  .brief-detail-link { grid-area: detail; margin-inline: var(--brief-inset) 4px; }
  .brief-gallery-link { grid-area: gallery; margin-inline: 4px var(--brief-inset); }
  .field-note { gap: .65rem; padding-inline: 12px; }
  .field-note p { font-size: .9rem; }
  .field-note-icon { width: 35px; height: 35px; border-radius: 9px; }
  .depth-demo { --depth-label: 4.5rem; --depth-tail: 0px; }
  .depth-row { grid-template-columns: var(--depth-label) minmax(0, 1fr); row-gap: .15rem; }
  .depth-description { grid-column: 2; }
  .depth-positions { margin-inline-end: 0; font-size: .7rem; }
  .file-picker { grid-template-columns: auto minmax(0, 1fr); gap: .65rem; }
  .picker-action { grid-column: 1 / -1; }
  .login-card { grid-template-columns: minmax(0, 1fr); max-width: 390px; }
}
@media (max-width: 350px) {
  .brand .agency-logo { font-size: .86rem; }
  .lesson-links a { padding-inline: .45rem; }
}


/* Return from the protected course entrance to the public AI portal. */
body.login .login-access-note{margin:0;color:#52606d;font-size:14px;line-height:1.5}
body.login .portal-return{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:4px;color:#214c61;text-underline-offset:3px;font-size:14px}
body.login .portal-return:focus-visible{outline:2px solid #214c61;outline-offset:4px;border-radius:4px}
