/* Claude Design 밤의 편집실 — 1440px 기준 400 / 24 / 824 */
:root {
  --room-ink: #121316;
  --room-surface: #1a1c21;
  --room-ivory: #eee7d8;
  --room-muted: #b9b2a4;
  --room-line: rgb(238 231 216 / .1);
  --room-outline: rgb(238 231 216 / .25);
  --room-gold: #e2b654;
  --room-ease: cubic-bezier(.2,.7,.2,1);
  --gutter: clamp(32px,6.66667vw,96px);
  --wrap: min(100% - 2 * var(--gutter),1248px);
  --columns: minmax(0,400fr) minmax(0,824fr);
  --section-space: clamp(74px,7.78vw,112px);
  --heading: clamp(32px,2.78vw,40px);
  --dark: var(--room-ink);
  --ivory: var(--room-ivory);
  --sand: var(--room-gold);
}
body { letter-spacing: -.012em; }
.skip:not(:focus) { clip-path: inset(100%); }
body :is(a, button, summary, select, input):focus-visible { outline: 2px solid var(--room-ivory); outline-offset: 3px; }
html { scroll-padding-top: 0; }
.top, .footer { background: var(--room-ink); border-color: var(--room-line); }
.top .nav { height: 71px; gap: 32px; justify-content: flex-start; --nav-label-size: 15px; }
.top .nav .brand { font-size: 19px; margin-right: auto; }
.top .nav .brand b { font-weight: 700; letter-spacing: -.025em; }
.top .nav nav { gap: clamp(16px,2.22vw,32px); }
.top .nav nav > a, .top .nav .nav-group > a { display: flex; align-items: center; font-size: var(--nav-label-size); font-weight: 500; min-height: 44px; color: var(--room-muted); }
.top .nav nav :is(a:hover,a:focus-visible), .top .nav nav .nav-group:first-child > a { color: var(--room-ivory); }
.top .nav-end { display: flex; flex: none; gap: 16px; position: relative; align-items: center; }
.top .nav-end::before { content: ""; position: absolute; left: 0; background: var(--room-outline); width: 1px; height: 20px; }
.top .nav-end > a { display: inline-flex; align-items: center; height: 44px; justify-content: center; color: var(--room-ivory); }
.top .nav .member-nav { justify-content: end; width: 72px; font-weight: 500; }
.top .nav .member-nav[aria-busy="true"] { visibility: hidden; }
.top .nav .member-nav:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
.top .nav .nav-try { width: 152px; white-space: nowrap; padding: 0; background: transparent; border: 1px solid #eee7d85c; border-radius: 6px; font-weight: 600; }
.top .nav .nav-try:hover { background: #eee7d810; border-color: var(--room-ivory); }
.nav .sub-nav { background: var(--room-surface); border: 1px solid var(--room-line); }
.nav .sub-nav :is(button,a) { min-height: 44px; color: var(--room-ivory); }
.nav .sub-nav .sound { margin: 0; position: static; }
.menu { width: 44px; height: 44px; }
@media (min-width:1051px) and (hover:hover) {
  .top .nav-group > button { position: absolute; right: -15px; width: 16px; opacity: 0; }
  .top .nav-group > button:focus-visible { opacity: 1; }
}
@media (max-width:1050px) {
  .top .nav nav { gap: 0; background: var(--room-ink); }
  .top .nav nav > a { border-bottom: 1px solid var(--room-line); padding-left: 4px; }
  .top .nav-end::before { display: none; }
  .top .nav-end .menu { margin-inline-end: -12px; }
}
@media (max-width:600px) {
  .top .nav { --nav-label-size: 14px; width: auto; margin: 0 12px 0 24px; height: 55px; gap: 12px; flex-wrap: nowrap; padding: 0; }
  .top .nav .brand { font-size: 17px; }
  .top .nav-end { gap: 0; inline-size: auto; }
  .top .nav .member-nav { width: 60px; margin-right: 8px; }
  .top .nav .nav-try { position: relative; width: 116px; font-size: 13px; height: 40px; }
  .top .nav .nav-try::after { content: ""; position: absolute; inset: -3px 0; }
  .top .nav-end .menu { margin: 0 0 0 4px; }
}
@media (max-width:359px) {
  .top .nav { --nav-label-size: 13px; margin: 0 4px 0 10px; gap: 4px; }
  .top .nav .brand { font-size: 15px; }
  .top .nav .member-nav { width: 52px; margin-right: 6px; }
  .top .nav .nav-try { width: 104px; font-size: 12px; }
  .top .nav-end .menu { margin-left: 2px; }
}

/* Roy */
.roy-hero { --roy-overrun: var(--room-gold); }
html[data-design] .roy-scene { background: var(--room-ink); }
.roy-stage {
  width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: var(--columns);
  grid-template-rows: auto 1fr; align-items: start; gap: 0 24px;
  padding-block: clamp(48px,5vw,72px) var(--section-space);
}
.roy-stage .roy-copy { position: static; display: block; width: 100%; height: auto; pointer-events: auto; }
.roy-stage .roy-copy > * { max-inline-size: none; }
.roy-kicker::before, .roy-visual::after { display: none; }
.roy-kicker, main .room-label, .sequence .sequence-copy > .room-label {
  margin: 0; padding: 0; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--room-muted);
}
.roy-hero #headline { font-size: clamp(40px,3.889vw,56px); letter-spacing: -.035em; word-spacing: normal; line-height: 1.2; font-weight: 700; margin: 16px 0 24px; }
.roy-question, #transferCopy, .manual-heading > p:last-child {
  font-size: 17px; font-weight: 400; line-height: 1.7; color: var(--room-muted); word-break: normal; margin: 0;
}
.roy-media { grid-column: 2; grid-row: 1/-1; }
.roy-visual { block-size: auto; width: 100%; aspect-ratio: 16/9; background: var(--room-surface); border-radius: 8px; }
.roy-visual .roy-still { mask-image: none; object-fit: cover; object-position: 65% center; }
.roy-caption { padding: 0; border: 0; margin-top: 18px; }
.roy-caption #royLine { color: var(--room-ivory); font-size: 19px; font-weight: 500; line-height: 1.5; min-height: 1.5em; }
.roy-playback { gap: 10px; margin-top: 10px; }
.roy-playback button, .roy-playback #royPlayback { flex: none; display: grid; place-items: center; padding: 0; width: 44px; min-width: 44px; height: 44px; color: var(--room-ivory); border-radius: 6px; background: transparent; }
.roy-playback button:hover, #royCC[aria-pressed=true] { background: #eee7d811; }
.roy-playback #royPlayback { border: 1px solid var(--room-outline); border-radius: 50%; }
.roy-playback svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
#royPlayback path, #royVoice[aria-pressed=false] .sound-on, #royVoice[aria-pressed=true] .sound-off { display: none; }
#royPlayback[data-state=play] .start-icon, #royPlayback[data-state=pause] .pause-icon, #royPlayback[data-state=replay] .replay-icon { display: block; }
#royCC { border: 1px solid var(--room-outline); font-size: 14px; font-weight: 600; }
.roy-clock { color: var(--room-muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#roySeek { appearance: none; min-width: 0; margin: 0 6px; cursor: pointer; height: 44px; background: linear-gradient(to right,var(--room-ivory) var(--played),#303136 var(--played)) center / 100% 4px no-repeat; }
#roySeek::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--room-ivory); }
#roySeek::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--room-ivory); }
.roy-media:fullscreen { display: flex; flex-direction: column; justify-content: center; background: var(--room-ink); }
.roy-media:fullscreen .roy-visual { min-height: 0; }
.roy-media:fullscreen .roy-still { object-fit: contain; }
.roy-media:fullscreen .roy-caption { margin: 10px auto; width: 94%; }
html[data-design] .roy-stage .roy-actions { display: grid; gap: 24px; margin: 30px 0 0; justify-items: start; }
html[data-design] .roy-actions .roy-plan-cta { min-height: 56px; padding: 0 28px; font-size: 17px; font-weight: 700; color: #141210; border-radius: 6px; }
.roy-plan-summary { border-top: 1px solid var(--room-line); width: 100%; gap: 10px; scroll-margin-top: 20px; padding-top: 14px; }
.roy-times { width: 100%; gap: 0; }
.roy-times > div { width: 50%; }
.roy-times > div + div { border-color: var(--room-line); padding-left: 16px; }
.roy-times dt { font-size: 13px; font-weight: 500; color: var(--room-muted); }
.roy-times dd, #royForecast { font-size: 40px; font-weight: 300; color: var(--room-ivory); letter-spacing: -.03em; }
.roy-actions .roy-deadline-status { background: none; border: 0; font-size: 14px; padding: 0; font-weight: 500; }
.roy-actions .roy-deadline-status[data-late] { color: var(--room-gold); }
#royPlan { --roy-overrun: var(--room-gold); --roy-overrun-fill: #52442b; }
.roy-hero:has(.roy-plan:not([hidden])) .roy-stage { min-height: 0; padding-bottom: 32px; }
#royPlan .roy-plan-head { display: block; }
.roy-plan-title { width: 100%; }
.roy-plan-close { margin-left: auto; min-height: 44px; color: var(--room-muted); }
#royForecast { display: inline-block; }

/* Common section grid */
main > :is(#films,#workflows,#cases,#guide,.voices) {
  padding-block: var(--section-space); border: 0; border-top: 1px solid var(--room-line);
  background: var(--room-ink); color: var(--room-ivory); scroll-margin-top: 0;
}
html[data-design] body #films { background: var(--room-ink); padding-top: var(--section-space); }
@media (min-width:900px) {
  .roy-stage { min-height: min(62.5vw - 72px, 828px); }
  html[data-design] body #films { min-height: min(59.72vw, 860px); }
}
html[data-design] body #films #films-title, #workflows #seq-title, #casesTitle, #afternoonStoryTitle, #manualTitle, #projectDesignTitle {
  font-size: var(--heading); letter-spacing: -.03em; line-height: 1.25; font-weight: 700; color: var(--room-ivory); margin: 12px 0 0;
}
html[data-design] body .tour-layout, #workflows .sequence-grid, .cases-intro, .afternoon-layout, .manual-layout, .activation {
  display: grid; grid-template-columns: var(--columns); align-items: start; gap: 24px;
}
#films .tour-story, #films .tour-player { background: none; padding: 0; border: 0; box-shadow: none; }
#films .tour-story { gap: 40px; }
#films h2 br { display: block; }
#films .tour-layout .tour-dots { position: relative; border: 0; border-left: 1px solid var(--room-outline); }
#films .tour-layout .tour-dots button { height: auto; width: auto; gap: 10px 12px; padding: 16px 18px; margin: 0 0 0 -1px; font-size: 20px; font-weight: 600; color: var(--room-muted); background: none; border: 0; border-left: 2px solid transparent; border-radius: 0; }
#films .tour-layout .tour-dots button + button { border-top: 1px solid var(--room-line); }
#films .tour-layout .tour-dots button:is([aria-pressed=true],:hover) { background: transparent; color: var(--room-ivory); }
#films .tour-layout .tour-dots button[aria-pressed=true] { border-left-color: var(--room-ivory); font-weight: 700; }
#films .tour-layout .tour-dots button > span:first-child { font-size: 14px; color: var(--room-muted); }
#tourStoryText { grid-column: 2; display: block; color: var(--room-muted); font-size: 16px; line-height: 1.65; font-weight: 400; word-break: normal; padding-bottom: 8px; }
#films .tour-layout .shot { width: 100%; margin: 0; animation: none; }
#films .tour-player { width: min(100%, calc(clamp(540px, 74svh, 780px) * var(--shot-ratio, .71852))); justify-self: center; }
#films .tour-layout .shot-preview { width: 100%; aspect-ratio: var(--shot-ratio, .71852); border-radius: 9px; padding: 0; border: 0; overflow: hidden; }
#films .tour-layout .shot-picture { background: var(--room-surface); }
#films .shot-picture video { object-fit: cover; }
#films .tour-player .tour-controls { border: 0; margin: 12px 0 0; padding: 0; color: var(--room-muted); }
#films .view-tools button, #films #openTourChapter, #films .tour-nav button, #tourMode {
  min-height: 44px; background: transparent; color: var(--room-muted); border: 0; border-radius: 5px; padding: 0 10px; font: inherit; font-size: 14px; cursor: pointer;
}
#films .tour-nav button { font-size: 20px; }
#films .tour-controls button:is(:hover,[aria-pressed=true]), #films .tour-controls #loopShot { color: var(--room-ivory); }
#films .tour-controls button:hover { background: var(--room-surface); }
#tourMode { background: var(--room-ink); }
#films .tour-nav { gap: 4px; }

/* Reallocation — keep each session's base colour underneath the time signal. */
#workflows .sequence-copy { display: block; position: sticky; top: 36px; }
#workflows .timing-choice { background: var(--room-surface); border: 0; padding: 4px; border-radius: 8px; margin: 40px 0 24px; width: 100%; grid-template-columns: repeat(5,minmax(0,1fr)); }
#workflows .timing-choice::before { inset: 4px auto 4px 4px; width: calc((100% - 8px) / 5); transform: translateX(calc(100% * var(--selected,1))); border-radius: 6px; background: var(--room-ivory); box-shadow: none; transition: transform .2s var(--room-ease); }
#workflows .timing-choice button { font-size: clamp(12px,1.08vw,15px); padding-inline: 1px; font-weight: 600; background: transparent; color: var(--room-muted); }
#workflows .timing-choice [aria-pressed=true] { color: var(--room-ink); }
#workflows #transferCopy { word-break: keep-all; margin: 0; max-width: 26em; color: var(--room-muted); }
#workflows .timeline-box {
  --fourth: #dfb66a; --fifth: #76b8b6; --first: #e8785b; --second: #6aa7d8; --third: #aa91d4; --signal: #961326;
  min-width: 0; margin: 0; border: 1px solid #eee7d80d; background: var(--room-surface); color: var(--room-ivory); border-radius: 8px;
  padding: clamp(24px,2.78vw,40px);
}
#workflows .timeline-box[data-scenario=early] { --first: #f6a48e; --second: #e6be73; --third: #9cc595; --signal: #2d9c55; }
#workflows #plannedBars > div:first-child { background: var(--first); }
#workflows #plannedBars > div:nth-child(2) { background: var(--second); }
#workflows #plannedBars > div:last-child, #workflows #bars [data-allocation=third] { background: var(--third); }
#workflows .timeline-head { display: flex; align-items: baseline; justify-content: start; gap: 14px; border-bottom: 1px solid var(--room-line); padding-bottom: 20px; }
#transferName { margin: 0; color: var(--room-ivory); font-weight: 700; font-size: 22px; line-height: 1.25; }
#workflows .timeline-head > span { color: var(--room-muted); font-size: 15px; }
#transferHeadline { margin-left: auto; }
.timeline-data, .transfer-practice { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,5fr); gap: 24px; align-items: center; margin-top: 28px; }
.transfer-dial { min-width: 0; margin: 0; text-align: center; }
.dial-sessions { display: grid; grid-template-columns: 1.1fr 1.1fr .8fr; margin: 0 auto 14px; max-width: 340px; background: var(--room-ink); border-radius: 8px; padding: 3px; }
.dial-sessions button { padding: 0 2px; min-height: 44px; font: inherit; font-size: clamp(12px,1vw,14px); font-weight: 600; white-space: nowrap; color: var(--room-muted); background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.dial-sessions button:hover { color: var(--room-ivory); background: #eee7d80d; }
.dial-sessions button[aria-pressed=true] { color: var(--room-ink); background: var(--room-ivory); }
.dial-sessions button:focus-visible { outline: 2px solid var(--room-gold); outline-offset: 1px; }
.dial-face { width: min(100%,266px); aspect-ratio: 1; margin: auto; }
.dial-face svg { display: block; width: 100%; height: 100%; }
.dial-numbers { paint-order: stroke fill; stroke: #ffffff; stroke-linejoin: round; stroke-width: 4; fill: #34382f; font: 600 34px "Segoe UI",sans-serif; font-variant-numeric: tabular-nums; }
.dial-unit-label { font: 500 25px "Segoe UI","Malgun Gothic",sans-serif; fill: #34382f; }
#dialKey { display: flex; gap: 5px 12px; justify-content: center; flex-wrap: wrap; align-content: start; min-height: 2.9em; margin-top: 10px; font-size: 13px; color: var(--room-ivory); }
#workflows [data-scenario=early] .transfer-dial { --first: #e8785b; }
#dialKey span { display: inline-flex; align-items: center; gap: 6px; }
#dialKey span::before { content: ""; width: 11px; height: 11px; border-radius: 2px; background: var(--first); }
#dialKey .second::before { background: var(--second); }
#dialKey .third::before { background: var(--third); }
#dialKey .fourth::before { background: var(--fourth); }
#dialKey .fifth::before { background: var(--fifth); }
#dialKey .arc::before { width: 17px; height: 5px; background: var(--signal); }
#workflows .transfer-tracks { min-width: 0; margin: 0; --transfer-plan-height: 16px; }
.transfer-tracks h4 { font-size: 16px; margin: 0 0 22px; }
#workflows .scale { display: flex; justify-content: space-between; color: var(--room-muted); margin: 0 0 14px; font-size: 12px; font-variant-numeric: tabular-nums; position: relative; }
#workflows .scale span:not(:first-child):not(:last-child) { position: absolute; transform: translateX(-50%); }

#transferReading { color: var(--room-muted); font-size: 14px; line-height: 1.6; margin: 16px 0 0; word-break: normal; }
#workflows .transfer-track-label { color: var(--room-muted); font-size: 13px; margin: 10px 0 6px; }
#workflows .transfer-baseline, #workflows #bars { display: flex; width: 100%; overflow: hidden; border: 0; padding: 0; border-radius: 3px; gap: 0; }
#workflows #bars > div { padding: 0; min-width: 0; position: relative; transition: flex-grow .48s var(--room-ease); }
#workflows #bars [data-allocation=first] { background: var(--first); }
#workflows #bars [data-allocation=second] { background: var(--second); }
#workflows #bars [data-allocation]:not(:first-child)::after, #workflows #plannedBars > div + div::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 1.5px; background: var(--room-surface); pointer-events: none;
}
#workflows #plannedBars > div { position: relative; }
#workflows #bars #earlyBand { position: absolute; margin: 0; inset: 0 auto auto 0; height: 50%; background: var(--signal); transition: width .48s var(--room-ease); }
#workflows #bars #transferOvertime { position: absolute; padding: 0; margin: 0; inset: auto 0 0 auto; height: 50%; background: var(--signal); transition: width .48s var(--room-ease); }
#workflows .timeline-box:is([data-playing],:has(#shift:active)) :is(#bars > div,#earlyBand,#transferOvertime) { transition: none; }
#workflows .timeline-box:not([data-film-available]) .transfer-practice { grid-template-columns: minmax(0,1fr); }
#workflows .transfer-film[hidden] { display: none; }
#workflows [data-example="lecture"] .dial-sessions { grid-template-columns: repeat(4,minmax(0,1fr)) 1.35fr; }
#workflows [data-example="lecture"] .dial-sessions button { font-size: 12px; }
#workflows [data-example="lecture"] .transfer-results { justify-content: flex-start; column-gap: 18px; }
#workflows .transfer-results span::before { background: var(--swatch); }
.transfer-results { display: flex; gap: 7px; flex-wrap: wrap; justify-content: space-between; margin-top: 12px; color: var(--room-ivory); font-size: 14px; line-height: 1.5; }
.transfer-results span { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.transfer-results span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--first); }
.transfer-results span:nth-child(2)::before { background: var(--second); }
.transfer-results span:nth-child(3)::before { background: var(--third); }
.transfer-practice { grid-template-columns: minmax(0,1fr) minmax(170px,36%); border-top: 1px solid var(--room-line); padding-top: 28px; gap: 32px; }
.slider-area { min-width: 0; }
#workflows .range-label { display: block; margin: 0 0 20px; line-height: 1.5; color: var(--room-ivory); font-size: 17px; }
#workflows .range-labels { color: var(--room-muted); }
#workflows .shift-track { background: linear-gradient(to right,var(--room-gold) var(--shift-position),#65635e var(--shift-position)); }
#workflows #shiftValue { background: var(--room-ivory); color: var(--room-ink); }
#workflows #shiftValue::after { border-top-color: var(--room-ivory); }
#workflows #shift::-webkit-slider-thumb { background: var(--room-gold); border-color: var(--room-ink); }
#workflows #shift::-moz-range-thumb { background: var(--room-gold); border-color: var(--room-ink); }
#workflows .transfer-film { margin: 0; width: 100%; text-align: center; }
#workflows .transfer-film video { display: block; width: 100%; height: auto; margin: auto; aspect-ratio: auto 404/696; max-width: 300px; border: none; border-radius: 6px; background: #101112; }
#workflows [data-scenario=early] .transfer-film video { aspect-ratio: auto 394/686; }
#workflows .transfer-film figcaption { color: var(--room-muted); font-size: 13px; line-height: 1.55; }

/* Cases and window docking */
.case-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.case-cards a { display: flex; flex-direction: column; gap: 8px; }
.case-cards img { display: block; border-radius: 8px; width: 100%; aspect-ratio: 3/2; object-fit: cover; object-position: center 25%; margin-bottom: 8px; background: var(--room-surface); }
.case-cards strong { font-size: 18px; }
.case-cards a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.case-cards span { font-size: 16px; color: var(--room-muted); line-height: 1.6; word-break: normal; }
.case-library { margin: 26px 0 0; }
.case-library > summary, .service-detail > summary { display: list-item; width: fit-content; min-height: 44px; cursor: pointer; font-size: 15px; padding: 12px 0; color: var(--room-muted); }
.case-library:not([open]) > summary { margin-left: calc((100% - 24px) * 400 / 1224 + 24px); }
.case-index-links a { border-radius: 6px; min-height: 44px; border-color: var(--room-outline); }
.case-index-links a:is([aria-current=true],:hover) { background: var(--room-ivory); color: var(--room-ink); }
.case-controls, .case-rail .case-topic, .case-prose, .project-design-screen figcaption { color: var(--room-muted); }
.case-controls button { height: 44px; width: 44px; }
.case-controls button:hover:not(:disabled) { background: var(--room-surface); }
.case-library .case-story, #project-design { color: var(--room-ivory); background: var(--room-ink); }
.case-library .story-chapter, .case-library .story-outcome { background: var(--room-surface); color: var(--room-ivory); border-color: var(--room-line); }
.case-library :is(.story-clock,.day-scale,.story-action,.story-outcome a,.category) { color: var(--room-ivory); border-color: var(--room-outline); }
#project-design { padding-block: 56px 0; }
.project-design-grid { max-width: none; }
#cases .afternoon-story { margin-top: 48px; padding: var(--section-space) 0 0; border: 0; border-top: 1px solid var(--room-line); background: transparent; border-radius: 0; }
.afternoon-steps { padding: 0; margin-top: 32px; gap: 0; list-style: none; counter-reset: step; border-bottom: 1px solid var(--room-line); color: var(--room-ivory); font-size: 16px; }
.afternoon-steps li { display: flex; gap: 20px; counter-increment: step; padding-block: 15px; border-top: 1px solid var(--room-line); }
.afternoon-steps li::before { content: counter(step); color: var(--room-muted); }
.afternoon-workbench { border: 1px solid var(--room-line); border-radius: 8px; height: auto; aspect-ratio: 16/9; min-height: 365px; }
.afternoon-workbench[data-layout=vertical] { aspect-ratio: auto; }
#guide .manual-layout { max-width: none; grid-template-rows: auto 1fr; }
.manual-heading { margin: 0; }
.manual-heading > p:last-child { margin-top: 20px; }
.manual-screen { width: min(100%, clamp(360px, 44svh, 510px)); justify-self: center; border: 0; border-radius: 8px; background: var(--room-surface); }
.manual-screen.wide-guide { width: 100%; }
#fullManual { aspect-ratio: 3/5; background: #121316; object-position: center; margin-inline: auto; }
.wide-guide #fullManual { aspect-ratio: 1320/556; }
.manual-options { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; padding: 0 12px 4px; }
.guide-elapsed { margin: -4px 0 0; padding-inline: 13px; color: var(--room-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
#wideManual { color: var(--room-muted); font-size: 14px; line-height: 1.5; min-height: 44px; padding: 0; text-underline-offset: 4px; text-decoration: underline; }
#wideManual:hover { color: var(--room-ivory); }
.manual-tools { max-width: 100%; }
.manual-current { color: var(--room-ivory); border-color: var(--room-line); }
.manual-current span, .manual-chapters .manual-chapter-time { color: var(--room-muted); }
.manual-play { position: static; min-height: 44px; background: none; padding: 0; margin-right: auto; border: 0; color: var(--room-ivory); }
.manual-chapters { max-height: 226px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; gap: 0; }
.manual-chapters button { border: 0; border-bottom: 1px solid var(--room-line); border-radius: 0; background: transparent; }
.manual-chapters button:is(:hover,[aria-current=true]) { background: var(--room-surface); color: var(--room-ivory); }
.manual-chapters button[aria-current=true] { box-shadow: inset 2px 0 var(--room-ivory); }
.manual-shorts { margin-top: 10px; }
.manual-shorts summary { color: var(--room-muted); font-size: 15px; min-height: 44px; cursor: pointer; padding: 12px 0; }
.manual-shorts button { background: none; border-color: var(--room-outline); min-height: 44px; }

/* Download, plans, support and activation */
.service-hub { padding-bottom: 88px; display: grid; gap: 24px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.service-card, .activation { min-width: 0; }
.service-card { padding: clamp(20px,2.22vw,32px); background: var(--room-surface); border: 1px solid #eee7d80d; border-radius: 8px; }
.service-card h2, .activation h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; }
.service-hub :is(.service-card,.activation) p, .service-prices dd, .activation h3 { color: var(--room-muted); font-size: 15px; line-height: 1.65; margin: 0 0 20px; font-weight: 400; }
.service-card .cta { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 52px; margin: 26px 0 12px; font-weight: 700; border: 0; box-shadow: none; background: var(--room-gold); color: #141210; border-radius: 6px; }
.service-card .cta:hover, .service-card .cta:focus-visible { background: #f0c977; }
.service-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--room-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.service-prices { margin: 0 0 6px; }
.price-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 20px; }
.price-links .service-link { margin: 0; }
#register-pass { scroll-margin-top: 96px; }
.service-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; min-height: 44px; font-size: 16px; border-top: 1px solid var(--room-line); }
#pricing h2 { display: flex; align-items: center; gap: 10px; }
#pricing h2 small { font-size: 13px; color: var(--room-gold); font-weight: 600; }
.service-prices > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; border-top: 1px solid var(--room-line); padding-block: 12px; gap: 3px 8px; }
.service-prices dd { margin: 0; text-align: right; }
.service-prices dt { font-weight: 600; }
.service-prices dd:first-of-type, #planDetails .period-amount { color: var(--room-ivory); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; text-align: right; white-space: nowrap; }
.service-prices dd:last-child { grid-column: 1/-1; font-size: 14px; word-break: keep-all; line-height: 1.55; }

.service-row span { color: var(--room-muted); }
.service-hub a:not(.cta):hover { color: var(--room-gold); }
.activation { grid-column: 1/-1; margin-top: 22px; }
.activation h3 { color: var(--room-ivory); font-size: 17px; font-weight: 650; margin: 0 0 8px; }
.activation p, .activation li { word-break: keep-all; }
.activation > div:last-child { padding-top: 2px; }
@media (min-width: 900px) { .activation > div:last-child { padding-top: 41px; } }
.activation ol { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 0; padding: 0; counter-reset: step; list-style: none; }
.activation li { counter-increment: step; border-top: 1px solid var(--room-line); padding-top: 12px; font-size: 15px; line-height: 1.5; }
.activation li::before { display: block; content: counter(step); color: var(--room-muted); }
.service-hub .service-detail { grid-column: 1/-1; padding: 0; margin: 0; background: transparent; color: var(--room-ivory); }
.service-hub .service-detail:not([open]) { display: none; }
.service-detail > summary { border-top: 1px solid var(--room-line); width: 100%; }
.service-detail .pricing-heading { margin: 22px 0; text-align: left; }
.service-detail .pricing-heading h2 { font-size: var(--heading); }
.service-detail .pricing-heading p, .service-detail .plan-note { margin: 10px 0; color: var(--room-muted); }
.service-detail :is(.plan-cards,.product-comparison,.plan-note) { max-width: none; }
.service-detail .plan-card { background: var(--room-surface); color: var(--room-ivory); border: 1px solid var(--room-line); border-radius: 8px; }
.service-detail .plan-card :is(header p,dd,dt,span,small), .service-detail .product-comparison th { color: var(--room-muted); }
.service-detail .plan-card :is(.plan-price,button,strong,h3) { color: var(--room-ivory); }
.service-detail .product-comparison { margin-top: 24px; border-top-color: var(--room-line); }
.product-comparison > summary, .help-links summary { cursor: pointer; min-height: 44px; padding-block: 12px; }
.help-links details > p { color: var(--room-muted); }
.service-detail .compare-example { color: #232a26; }
#planDetails .plan-periods { container-type: inline-size; }
#planDetails .plan-periods > div { grid-template-columns: 1fr auto; padding: 18px 0; gap: 10px 12px; }
#planDetails .plan-periods dt { font-size: 16px; color: var(--room-ivory); }
#planDetails .period-info, #planDetails .period-saving { grid-column: 1/-1; display: flex; align-items: center; gap: 8px 14px; }
#planDetails .period-info { justify-content: space-between; }
#planDetails .plan-periods span { font-size: 14px; word-break: keep-all; line-height: 1.6; }
#planDetails .plan-periods button { min-height: 44px; padding-inline: 13px; flex-shrink: 0; font-size: 14px; }
#planDetails .period-saving { flex-wrap: wrap; }
#planDetails .period-saving b { background: #ffe1a0; color: #30200b; padding: 3px 9px; font-size: 13px; border-radius: 999px; }
@container (max-width: 380px) {
  #planDetails .period-info { flex-direction: column; align-items: stretch; }
  #planDetails .period-info button { align-self: stretch; }
}
@media (min-width:900px) and (max-width:1120px) {
  :root { --gutter: 36px; }
  #workflows .scale span:nth-child(even) { display: none; }
  .timeline-data { grid-template-columns: 1fr 1.6fr; gap: 16px; }
}
@media (max-width:899px) {
  :root { --gutter: 24px; --heading: 26px; --section-space: 56px; --columns: minmax(0,1fr); }
  main > :is(#films,#workflows,#cases,#guide,.voices) { padding-bottom: 72px; }
  .roy-stage { width: 100%; display: flex; flex-direction: column; padding: 24px 0 72px; gap: 22px; align-items: stretch; }
  .roy-stage .roy-copy, .roy-caption, html[data-design] .roy-stage .roy-actions { width: var(--wrap); margin: 0 auto; }
  .roy-kicker, main .room-label, .sequence .sequence-copy > .room-label { font-size: 14px; }
  .roy-hero #headline { font-size: clamp(27px,8.21vw,40px); line-height: 1.28; margin: 10px 0 0; }
  .roy-hero #headline br, .roy-question, #films #films-title br, #casesTitle br, #afternoonStoryTitle br, #manualTitle br, #workflows #seq-title .desktop-break { display: none; }
  .roy-visual { border-radius: 0; }
  .roy-caption { margin-top: 14px; }
  .roy-caption #royLine { font-size: 16px; line-height: 1.5; min-height: 3em; }
  .roy-playback { gap: 4px; margin-top: 6px; }
  .roy-clock { font-size: 13px; }
  .roy-clock span { display: none; }
  html[data-design] .roy-stage .roy-actions { gap: 18px; }
  .roy-times dd, #royForecast { font-size: 34px; }
  .roy-plan-title { display: grid; grid-template-columns: 1fr auto; gap: 2px; }
  .roy-plan-close { grid-area: 1 / 2 / 3 / 3; align-self: center; }
  html[data-design] .roy-actions .roy-plan-cta { width: 100%; min-height: 52px; font-size: 16px; }
  html[data-design] body .tour-layout, #workflows .sequence-grid, .cases-intro, .afternoon-layout, #guide .manual-layout { gap: 20px; }
  html[data-design] body #films #films-title, #workflows #seq-title, #casesTitle, #afternoonStoryTitle, #manualTitle { letter-spacing: -.035em; line-height: 1.3; margin-top: 10px; }
  #films .tour-story { gap: 20px; }
  #films .tour-layout .tour-dots { display: flex; border: none; overflow-x: auto; gap: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  #films .tour-layout .tour-dots button { display: block; flex: none; border-radius: 22px; margin: 0; font-size: 15px; min-height: 44px; padding: 0 13px; border: 1px solid var(--room-outline); white-space: nowrap; }
  #films .tour-layout .tour-dots button[aria-pressed=true] { background: var(--room-ivory); border-color: var(--room-ivory); color: var(--room-ink); }
  #films .tour-layout .tour-dots button > span:first-child, #films .tour-nav { display: none; }
  #films .tour-layout .tour-dots button:focus-visible { outline-offset: -4px; }
  #films .tour-player .tour-controls { margin-top: 4px; }
  #films .tour-player { width: min(100%, calc(max(530px, 74svh) * var(--shot-ratio, .71852))); }
  #films .tour-player .view-tools { width: 100%; justify-content: space-between; gap: 2px; }
  #films .view-tools button, #films #openTourChapter, #tourMode { font-size: 13px; padding: 0 5px; }
  #tourStoryText { font-size: 15px; margin-top: 10px; padding: 0; }
  #workflows .sequence-copy { position: static; }
  #workflows #seq-title br:not(.desktop-break) { display: block; }
  #workflows .timing-choice { margin: 22px 0 0; width: 100%; }
  #workflows .timing-choice button { font-size: clamp(12px,3.65vw,15px); }
  #workflows #transferCopy { font-size: 15px; margin-top: 14px; }
  #workflows .timeline-box { order: 0; padding: 22px 20px; }
  #workflows .timeline-head { justify-content: space-between; border: 0; padding: 0; }
  #transferName { font-size: 20px; }
  #transferReading, #transferHeadline, .transfer-tracks h4, #workflows .scale { display: none; }
  .timeline-data, .transfer-practice { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .dial-face { width: min(100%,234px); }
  .dial-sessions button { font-size: 14px; }
  #dialKey { min-height: 1.5em; }
  #workflows .transfer-tracks { --transfer-plan-height: 14px; }
  .transfer-results { display: grid; gap: 4px; }
  #workflows .range-label { font-size: 15px; }
  .case-cards { grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid var(--room-line); }
  .case-cards a { display: grid; grid-template-columns: 96px 1fr; gap: 5px 16px; padding-block: 16px; border-top: 1px solid var(--room-line); align-content: start; }
  .case-cards img { grid-row: 1/3; aspect-ratio: 1; margin: 0; }
  .case-cards strong { font-size: 16px; }
  .case-cards span { font-size: 15px; }
  .case-library { margin-top: 6px; }
  .case-library:not([open]) > summary { margin-left: 0; }
  #cases .afternoon-story { margin-top: 22px; }
  .afternoon-intro { display: contents; }
  .afternoon-layout { row-gap: 0; }
  .afternoon-workbench { order: 1; margin-block: 20px 12px; min-height: 340px; }
  .afternoon-steps { order: 2; margin: 0; font-size: 15px; }
  #guide .manual-layout { grid-template-areas: "heading" "screen" "tools"; grid-template-rows: auto; }
  .manual-heading > p:last-child { display: none; }
  .manual-screen { width: min(100%,480px); }
  .service-hub { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .service-card, .activation { padding: 24px; }
  .service-card h2, .activation h2 { font-size: 20px; }
  .service-card .cta { margin: 16px 0 0; font-size: 16px; }
  .activation { background: var(--room-surface); border-radius: 8px; margin: 0; gap: 0; display: flex; flex-direction: column; }
  .activation > div:first-child { margin-bottom: 22px; }
  .activation > div:last-child { width: 100%; }
  .service-hub .activation p { margin: 0 0 10px; }
  .activation ol { grid-template-columns: 1fr; gap: 0; }
  .activation li { display: flex; padding: 12px 0; gap: 12px; }
  .service-hub #support { grid-row: 4; }
  .service-prices > div { font-size: 15px; }
}
@media (max-width:600px) {
  #films .tour-player { width: 100%; }
  #films .tour-layout .tour-rail, .manual-screen, .manual-screen.wide-guide { width: calc(100% + var(--gutter) * 2); margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  #films .tour-layout .shot-preview { border-radius: 0; }
  .manual-options, .manual-current, .guide-elapsed { padding-inline: var(--gutter); }
}
@media (max-width:359px) {
  :root { --gutter: 16px; --heading: 24px; }
  .roy-playback { gap: 2px; }
  #roySeek { margin: 0 3px; }
  #films .tour-layout .tour-dots button { font-size: 14px; padding-inline: 9px; }
  .case-cards a { grid-template-columns: 78px 1fr; gap: 4px 12px; }
  .service-prices dd { font-size: 13px; }
  #workflows .timeline-box { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #workflows #bars > div, #workflows #bars #earlyBand, #workflows #bars #transferOvertime, .hero-rail, .roy-track i, .roy-spill, #workflows .timing-choice::before { transition: none; }
}
