:root {
  --ink: #171713;
  --paper: #f3f0e7;
  --paper-2: #e7e2d5;
  --acid: #e6ff48;
  --signal: #ff4f31;
  --muted: #69685f;
  --line: rgba(23, 23, 19, 0.2);
  --display: "Noto Serif SC", serif;
  --sans: "Noto Sans SC", sans-serif;
  --shadow: 0 20px 60px rgba(23, 23, 19, 0.16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23,23,19,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,23,19,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--sans);
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  padding: 12px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 231, 0.91);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; color: var(--paper); background: var(--ink); font-weight: 800; letter-spacing: -1px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--display); font-size: 16px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.header-actions { display: flex; gap: 10px; }
.text-button, .solid-button, .outline-button { border: 0; cursor: pointer; }
.text-button { padding: 10px 12px; background: transparent; }
kbd { margin-left: 5px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; }
.solid-button, .outline-button { padding: 14px 20px; font-weight: 700; }
.solid-button { color: var(--paper); background: var(--ink); box-shadow: 5px 5px 0 var(--signal); }
.solid-button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--signal); }
.solid-button.compact { padding: 10px 16px; }
.outline-button { border: 1px solid var(--ink); background: transparent; }
.outline-button:hover { background: var(--acid); }

.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(70px, 9vw, 130px) clamp(20px, 6vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  overflow: hidden;
}
.eyebrow, .section-index, .panel-kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: inline-block; padding: 7px 10px; background: var(--acid); }
.hero h1 { max-width: 790px; margin: 24px 0; font-family: var(--display); font-size: clamp(48px, 6.4vw, 88px); font-weight: 900; line-height: 1.04; letter-spacing: -.06em; }
.hero-lead { max-width: 680px; margin: 0; color: #44433d; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-board { position: relative; min-height: 560px; padding: 24px; color: var(--paper); background: var(--ink); box-shadow: 18px 18px 0 var(--signal); }
.board-label { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; letter-spacing: .15em; }
.board-daymap { margin-top: 34px; border-top: 1px solid rgba(243,240,231,.3); }
.mini-ruler { margin-left: 47px; padding: 12px 0 8px; display: grid; grid-template-columns: repeat(6, 1fr); color: rgba(243,240,231,.48); font-size: 9px; }
.mini-row { position: relative; height: 43px; border-top: 1px solid rgba(243,240,231,.13); background: repeating-linear-gradient(90deg, transparent 0, transparent calc(20% - 1px), rgba(243,240,231,.07) 20%); }
.mini-row b { position: absolute; left: 0; top: 15px; width: 40px; color: rgba(243,240,231,.58); font-size: 9px; letter-spacing: .1em; }
.mini-row i { position: absolute; left: calc(47px + var(--x)); top: 10px; width: var(--w); height: 23px; background: var(--c); }
.mini-row i::after { content: ""; position: absolute; right: -4px; top: 8px; width: 7px; height: 7px; border: 2px solid var(--ink); border-radius: 50%; background: var(--c); }
.map-caption { margin-top: 25px; padding-top: 20px; display: grid; grid-template-columns: 120px 1fr; gap: 16px; border-top: 1px solid rgba(243,240,231,.3); }
.map-caption span { color: rgba(243,240,231,.5); font-size: 9px; letter-spacing: .15em; }
.map-caption strong { font-family: var(--display); font-size: 20px; line-height: 1.45; }
.board-orbit { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 22px auto 5px; border: 1px solid rgba(243,240,231,.35); border-radius: 50%; }
.board-orbit::before { content: ""; position: absolute; inset: 17%; border: 1px dashed rgba(243,240,231,.25); border-radius: 50%; }
.orbit-center { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%) rotate(-7deg); display: grid; place-items: center; width: 105px; height: 105px; color: var(--ink); background: var(--acid); font-family: var(--display); font-weight: 900; line-height: 1.05; text-align: center; }
.orbit-dot { position: absolute; padding: 7px 10px; color: var(--ink); background: var(--paper); font-size: 12px; font-weight: 700; }
.dot-a { left: 8%; top: 16%; }.dot-b { right: -3%; top: 34%; }.dot-c { right: 15%; bottom: 7%; }.dot-d { left: 0; bottom: 20%; }.dot-e { left: 42%; top: -4%; }
.board-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid rgba(243,240,231,.25); }
.board-stats div { padding: 22px 10px 0; border-right: 1px solid rgba(243,240,231,.25); }
.board-stats div:last-child { border: 0; }
.board-stats dt { font-family: var(--display); font-size: 40px; font-weight: 900; }
.board-stats dd { margin: 4px 0 0; color: rgba(243,240,231,.65); font-size: 12px; }

.workspace { padding: 90px clamp(20px, 6vw, 96px) 120px; border-top: 1px solid var(--ink); background: var(--paper-2); }
.workspace-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.workspace-heading h2 { margin: 10px 0 0; font-family: var(--display); font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.04em; }
.workspace-heading > p { max-width: 300px; margin: 0; color: var(--muted); }
.view-tabs { position: sticky; top: 75px; z-index: 20; display: grid; grid-template-columns: repeat(2, 1fr); margin: 56px 0 0; border: 1px solid var(--ink); background: var(--paper); }
.view-tabs button { min-height: 58px; border: 0; border-right: 1px solid var(--ink); background: transparent; cursor: pointer; font-weight: 700; }
.view-tabs button:last-child { border: 0; }
.view-tabs button[aria-selected="true"] { color: var(--paper); background: var(--ink); }
.view-panel { display: none; padding-top: 64px; }
.view-panel.active { display: block; animation: reveal .45s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }
.panel-intro { display: grid; grid-template-columns: 1.5fr .5fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.panel-intro h3 { margin: 12px 0 0; font-family: var(--display); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.24; letter-spacing: -.04em; }
.speaker-note { padding: 20px; border-left: 6px solid var(--signal); background: var(--paper); box-shadow: 8px 8px 0 rgba(23,23,19,.1); }
.speaker-note p { margin-bottom: 0; color: var(--muted); line-height: 1.7; }
.compact-intro { grid-template-columns: 1fr; }

.day-legend { display: flex; flex-wrap: wrap; gap: 24px; margin: -28px 0 28px; color: var(--muted); font-size: 12px; }
.day-legend span { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 10px; height: 10px; border: 1px solid var(--ink); }
.role-dot { background: var(--paper); }
.common-dot { background: var(--acid); }
.role-days { border-top: 1px solid var(--ink); }
.role-day { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-bottom: 1px solid var(--ink); background: var(--paper); }
.role-day-header { position: relative; min-height: 300px; padding: 22px; display: flex; flex-direction: column; border-right: 1px solid var(--ink); background: var(--role-color); }
.role-day-index { font-family: var(--display); font-size: 17px; font-weight: 900; }
.role-day-header .role-code { position: absolute; right: 18px; top: 18px; }
.role-day-header div { margin-top: auto; }
.role-day-header h4 { margin: 0 0 8px; font-family: var(--display); font-size: 27px; letter-spacing: -.035em; }
.role-day-header p { margin: 0; font-size: 12px; line-height: 1.65; }
.day-track { min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(145px, 1fr)); overflow-x: auto; }
.day-moment { min-height: 300px; padding: 18px; display: flex; flex-direction: column; border: 0; border-right: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.day-moment:last-child { border-right: 0; }
.day-moment:hover { background: var(--ink); color: var(--paper); }
.moment-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid currentColor; }
.moment-top time { font-family: var(--display); font-size: 18px; font-weight: 900; }
.moment-top small { opacity: .45; font-size: 9px; }
.moment-kind { margin-top: 14px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.moment-kind i { width: 7px; height: 7px; flex: 0 0 auto; border: 1px solid var(--ink); background: var(--acid); }
.day-moment:hover .moment-kind { color: rgba(243,240,231,.66); }
.day-moment:hover .moment-kind i { border-color: var(--paper); }
.day-moment strong { margin-top: 24px; font-family: var(--display); font-size: 19px; line-height: 1.35; }
.day-moment p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.day-moment:hover p { color: rgba(243,240,231,.62); }
.moment-open { margin-top: auto; padding-top: 18px; font-size: 10px; font-weight: 800; }

.timeline { position: relative; max-width: 1180px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 120px; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; min-height: 220px; }
.timeline-time { position: relative; padding-top: 18px; font-family: var(--display); font-size: 25px; font-weight: 900; }
.timeline-time::after { content: ""; position: absolute; right: -8px; top: 24px; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; background: var(--role-color); }
.timeline-time small { display: block; margin-top: 6px; color: var(--muted); font: 10px var(--sans); }
.timeline-card { margin: 0 0 34px 42px; padding: 26px 30px; border: 1px solid var(--ink); background: var(--paper); text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.timeline-card:hover { transform: translate(-5px, -5px); box-shadow: 10px 10px 0 var(--role-color); }
.timeline-role { display: inline-block; margin-bottom: 18px; padding: 5px 8px; background: var(--role-color); font-size: 11px; font-weight: 800; }
.timeline-card strong { display: block; font-family: var(--display); font-size: 30px; }
.timeline-card p { max-width: 680px; color: var(--muted); line-height: 1.7; }
.card-link { display: block; margin-top: 20px; font-size: 12px; font-weight: 800; }

.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.role-card { min-height: 330px; padding: 28px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr auto; gap: 18px 20px; border: 0; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); text-align: left; cursor: pointer; }
.role-card:hover { background: var(--role-color); }
.role-number { font-family: var(--display); font-weight: 900; }
.role-code { justify-self: end; padding: 6px 9px; color: var(--paper); background: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.role-card strong { grid-column: 1 / -1; align-self: end; font-family: var(--display); font-size: clamp(28px, 4vw, 48px); letter-spacing: -.04em; }
.role-card p { grid-column: 1 / -1; max-width: 500px; margin: 0; color: #494840; line-height: 1.7; }
.role-card-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.back-button { margin-bottom: 30px; padding: 10px 0; border: 0; background: transparent; cursor: pointer; font-weight: 700; }
.role-detail-header { display: grid; grid-template-columns: 180px 1fr; gap: 34px; align-items: stretch; margin-bottom: 40px; }
.role-code.large { display: grid; place-items: center; min-height: 180px; color: var(--ink); background: var(--role-color); font-family: var(--display); font-size: 40px; }
.role-detail-header > div { align-self: center; }
.role-detail-header p { font-size: 12px; font-weight: 800; }
.role-detail-header h3 { margin: 4px 0 10px; font-family: var(--display); font-size: 58px; }
.role-detail-header span:last-child { color: var(--muted); }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scene-card { min-height: 280px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--paper); text-align: left; cursor: pointer; }
.scene-card:hover { color: var(--paper); background: var(--ink); }
.scene-card-top { display: flex; justify-content: space-between; align-items: center; }
.status { padding: 4px 7px; color: var(--ink); background: var(--paper-2); font-size: 10px; font-style: normal; }
.status.ready { background: var(--acid); }
.scene-card strong { margin-top: 42px; font-family: var(--display); font-size: 24px; }
.scene-card p { color: var(--muted); line-height: 1.65; }
.scene-card:hover p { color: rgba(243,240,231,.7); }
.scene-card .card-link { margin-top: auto; }

.common-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.common-card { min-height: 310px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--paper); }
.common-card:nth-child(3n + 1) { background: var(--acid); }
.common-card:nth-child(4n + 2) { color: var(--paper); background: var(--ink); }
.common-index { font-family: var(--display); font-size: 30px; font-weight: 900; }
.common-label { align-self: start; margin-top: 18px; padding: 5px 7px; border: 1px solid currentColor; font-size: 10px; font-weight: 800; }
.common-card h4 { margin: auto 0 10px; font-family: var(--display); font-size: 28px; }
.common-card p { margin: 0; color: inherit; opacity: .72; line-height: 1.65; }

.workflow-list { display: grid; gap: 28px; }
.workflow-card { border: 1px solid var(--ink); background: var(--paper); }
.workflow-header { padding: 28px; display: grid; grid-template-columns: 78px minmax(260px, 1fr) minmax(300px, .8fr); gap: 26px; align-items: start; border-bottom: 1px solid var(--ink); }
.workflow-number { display: grid; place-items: center; width: 64px; height: 64px; color: var(--paper); background: var(--ink); font-family: var(--display); font-size: 26px; font-weight: 900; }
.workflow-card:nth-child(2) .workflow-number { color: var(--ink); background: var(--acid); }
.workflow-card:nth-child(3) .workflow-number { color: var(--paper); background: var(--signal); }
.workflow-header h4 { margin: 0; font-family: var(--display); font-size: 31px; letter-spacing: -.035em; }
.workflow-header p { max-width: 650px; margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.workflow-roles { padding-left: 24px; border-left: 1px solid var(--line); }
.workflow-roles small { display: block; margin-bottom: 12px; color: var(--muted); font-weight: 700; }
.workflow-roles div { display: flex; flex-wrap: wrap; gap: 7px; }
.workflow-roles span { padding: 5px 8px; border-left: 4px solid var(--role-color); background: var(--paper-2); font-size: 10px; font-weight: 700; }
.workflow-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.workflow-steps li { position: relative; min-height: 285px; padding: 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-top: 7px solid var(--role-color); }
.workflow-steps li:last-child { border-right: 0; }
.workflow-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; z-index: 2; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); font-weight: 800; }
.flow-step-index { color: var(--muted); font-size: 9px; }
.flow-role { margin-top: 14px; font-size: 11px; font-weight: 700; }
.flow-role b { margin-right: 7px; padding: 3px 5px; color: var(--ink); background: var(--role-color); font-size: 9px; }
.workflow-steps strong { margin-top: 28px; font-size: 14px; line-height: 1.75; }
.flow-handoff { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; line-height: 1.5; }
.flow-handoff small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.workflow-result { padding: 22px 28px; display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; color: var(--paper); background: var(--ink); }
.workflow-result span { color: var(--acid); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.workflow-result strong { font-family: var(--display); font-size: 20px; }

.closing { padding: 120px clamp(20px, 8vw, 140px); color: var(--paper); background: var(--ink); }
.closing blockquote { max-width: 1100px; margin: 28px 0; font-family: var(--display); font-size: clamp(32px, 4.4vw, 58px); font-weight: 900; line-height: 1.32; letter-spacing: -.04em; }
.closing > p:last-child { color: rgba(243,240,231,.65); font-size: 18px; }
footer { padding: 22px clamp(20px, 6vw, 96px); display: flex; justify-content: space-between; color: var(--paper); background: var(--signal); font-size: 11px; font-weight: 800; letter-spacing: .12em; }

dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
dialog::backdrop { background: rgba(23,23,19,.75); backdrop-filter: blur(5px); }
.dialog-shell { width: min(1500px, calc(100% - 24px)); height: 100%; margin-left: auto; padding: 30px clamp(22px, 3vw, 48px); background: var(--paper); box-shadow: var(--shadow); overflow-y: auto; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.scene-meta { display: inline-block; padding: 5px 8px; background: var(--acid); font-size: 11px; font-weight: 800; }
.dialog-header h2 { margin: 14px 0 0; font-family: var(--display); font-size: clamp(32px, 4.3vw, 52px); letter-spacing: -.04em; }
.dialog-close { width: 48px; height: 48px; flex: 0 0 auto; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 28px; }
.dialog-close:hover { color: var(--paper); background: var(--ink); }
.dialog-lead { max-width: 800px; margin: 28px 0 40px; font-size: 20px; line-height: 1.8; }
.embedded-common { margin: -16px 0 30px; padding: 18px 20px; display: grid; grid-template-columns: 160px 190px 1fr; gap: 18px; align-items: center; border-left: 7px solid var(--acid); background: var(--ink); color: var(--paper); }
.embedded-common span { color: var(--acid); font-size: 10px; font-weight: 800; }
.embedded-common strong { font-family: var(--display); font-size: 18px; }
.embedded-common p { margin: 0; color: rgba(243,240,231,.65); font-size: 12px; line-height: 1.6; }
.scene-story { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.story-block { min-height: 230px; padding: 25px; border: 1px solid var(--ink); }
.story-block.wide { grid-column: 1 / -1; min-height: auto; }
.story-block > span { font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.story-block p, .story-block li { line-height: 1.8; }
.story-block ul, .story-block ol { padding-left: 20px; }
.story-block.dark { color: var(--paper); background: var(--ink); }
.story-block.output { background: var(--acid); }
.story-block.fde { border: 0; border-left: 8px solid var(--signal); background: var(--paper-2); }

.scene-experience { min-height: calc(100vh - 154px); padding-top: 22px; display: grid; grid-template-columns: minmax(260px, 320px) minmax(680px, 1fr); gap: 24px; }
.scene-brief-panel { padding-right: 22px; border-right: 1px solid var(--line); }
.scene-brief-panel .dialog-lead { margin: 0 0 20px; font-size: 17px; line-height: 1.75; }
.brief-common { margin-bottom: 18px; padding: 14px; border-left: 5px solid var(--acid); color: var(--paper); background: var(--ink); }
.brief-common span { display: block; color: var(--acid); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.brief-common strong { display: block; margin-top: 7px; font-family: var(--display); font-size: 16px; }
.brief-common p { margin: 6px 0 0; color: rgba(243,240,231,.62); font-size: 11px; line-height: 1.6; }
.brief-section { padding: 16px 0; border-top: 1px solid var(--line); }
.brief-section > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.brief-section p { margin: 0; font-size: 12px; line-height: 1.72; }
.source-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.source-chips em { padding: 5px 7px; border: 1px solid var(--line); background: white; font-size: 10px; font-style: normal; }
.fde-brief { margin-top: 3px; padding: 14px; border: 0; border-left: 5px solid var(--signal); background: var(--paper-2); }

.scene-experience-refined { grid-template-columns: minmax(270px, 310px) minmax(720px, 1fr); align-items: start; }
.scene-brief-panel-refined { display: grid; gap: 18px; }
.brief-overview { padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.brief-eyebrow,
.brief-summary-heading > span,
.brief-implementation > span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.scene-brief-panel-refined .dialog-lead { margin: 10px 0 8px; color: var(--ink); font-family: var(--display); font-size: 19px; font-weight: 800; line-height: 1.42; }
.brief-trigger { margin: 0; color: #5f605b; font-size: 11px; line-height: 1.72; }
.brief-common-inline { margin-top: 14px; padding: 10px 11px; display: flex; gap: 8px; align-items: center; color: var(--paper); background: var(--ink); }
.brief-common-inline span { color: var(--acid); font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.brief-common-inline strong { font-size: 10px; font-weight: 700; }
.brief-demo-summary { padding: 16px; border: 1px solid var(--ink); background: rgba(255,255,255,.5); }
.brief-summary-heading { display: flex; align-items: center; justify-content: space-between; }
.brief-summary-heading small { color: var(--muted); font-size: 9px; }
.brief-demo-summary ol { margin: 14px 0 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.brief-demo-summary li { display: grid; grid-template-columns: 25px 1fr; gap: 9px; align-items: start; }
.brief-demo-summary li > b { display: grid; place-items: center; width: 25px; height: 25px; color: var(--ink); background: var(--acid); font-size: 8px; }
.brief-demo-summary li strong { display: block; font-size: 11px; }
.brief-demo-summary li p { margin: 3px 0 0; color: #686963; font-size: 10px; line-height: 1.55; }
.brief-implementation { padding: 14px; border-left: 5px solid var(--signal); background: var(--paper-2); }
.brief-implementation p { margin: 8px 0 12px; font-size: 10px; line-height: 1.65; }
.brief-implementation .source-chips { gap: 5px; }
.brief-implementation .source-chips em { padding: 4px 6px; background: rgba(255,255,255,.7); font-size: 8px; }
.workbuddy-embed { height: min(760px, calc(100vh - 196px)); min-height: 590px; border: 1px solid #d7d8da; border-radius: 13px; background: #f4f4f4; box-shadow: 0 18px 48px rgba(23,23,19,.14); overflow: hidden; }
.workbuddy-frame { display: block; width: 100%; height: 100%; border: 0; background: #f4f4f4; }

.wb-client { height: min(720px, calc(100vh - 206px)); min-height: 540px; display: flex; flex-direction: column; border: 1px solid #d9dbdc; border-radius: 14px; background: #fff; box-shadow: 0 18px 48px rgba(23,23,19,.13); overflow: hidden; font-family: var(--sans); }
.wb-client-header { min-height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e6e7e8; background: #f7f7f7; }
.wb-client-header > div { display: flex; align-items: center; gap: 8px; }
.wb-client-header strong { font-size: 12px; }
.wb-client-header small { color: #8a8d8d; font-size: 9px; }
.wb-client-dot { width: 8px; height: 8px; border-radius: 50%; background: #00b887; box-shadow: 0 0 0 4px rgba(0,184,135,.12); }
.wb-replay { padding: 6px 9px; border: 1px solid #dfe1e1; border-radius: 6px; background: white; color: #4d5150; cursor: pointer; font-size: 10px; }
.wb-replay:disabled { opacity: .4; cursor: wait; }
.wb-client-body { min-height: 0; flex: 1; display: grid; grid-template-columns: 158px minmax(0, 1fr); }
.wb-sidebar { min-height: 0; padding: 18px 12px; border-right: 1px solid #e5e6e6; background: #f5f5f5; overflow-y: auto; }
.wb-logo { display: flex; align-items: center; gap: 7px; margin-bottom: 20px; }
.wb-logo > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: white; background: #00b887; font-family: var(--display); font-weight: 900; }
.wb-logo b { font-size: 9px; line-height: .95; }
.wb-sidebar nav { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid #dedfdf; }
.wb-sidebar nav span { padding: 7px 8px; border-radius: 5px; color: #505453; font-size: 10px; }
.wb-sidebar nav span:first-child { color: #171713; background: white; }
.wb-side-label { margin: 16px 6px 7px; color: #999c9c; font-size: 8px; }
.wb-active-task { width: 100%; padding: 8px; border: 0; border-radius: 5px; background: #e5e6e6; text-align: left; font-size: 9px; font-weight: 700; }
.wb-integrations { display: flex; flex-wrap: wrap; gap: 5px; }
.wb-integrations span { padding: 4px 6px; border: 1px solid #d7dada; border-radius: 4px; background: white; color: #5c605f; font-size: 8px; }
.wb-main { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: white; }
.wb-task-title { min-height: 50px; padding: 9px 18px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid #ececec; }
.wb-task-title span { color: #8d9090; font-size: 8px; }
.wb-task-title strong { margin-top: 2px; font-size: 12px; }
.wb-thread { flex: 1; padding: 18px clamp(14px, 2.2vw, 28px); overflow-y: auto; overscroll-behavior: contain; }
.wb-stage { display: none; }
.wb-stage.is-visible { display: block; animation: wb-stage-in .28s ease both; }
.wb-tool.wb-stage.is-visible { display: grid; }
@keyframes wb-stage-in { from { opacity: 0; transform: translateY(8px); } }
.wb-user-bubble { width: fit-content; max-width: 78%; margin: 0 0 18px auto; padding: 10px 13px; border-radius: 10px 10px 2px 10px; background: #f0f1f1; font-size: 11px; line-height: 1.65; }
.wb-answer { margin-bottom: 12px; }
.wb-answer-head { display: flex; align-items: center; gap: 7px; }
.wb-answer-head > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: white; background: #303433; font-family: var(--display); font-size: 11px; font-weight: 900; }
.wb-answer-head strong { font-size: 11px; }
.wb-answer > p, .wb-final > p { margin: 8px 0 0 31px; color: #353938; font-size: 11px; line-height: 1.75; }
.wb-tools { margin: 4px 0 15px 31px; display: grid; gap: 5px; }
.wb-tool { min-height: 48px; padding: 8px 9px; display: grid; grid-template-columns: 26px 1fr 18px; gap: 8px; align-items: center; border: 1px solid #e5e7e6; border-radius: 7px; background: #fafafa; }
[data-sim-stage]:not(.is-visible) { display: none !important; }
.wb-tool-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; color: #006f55; background: #dff8ef; font-size: 9px; font-weight: 800; }
.wb-tool strong, .wb-tool small { display: block; }
.wb-tool strong { color: #3a3e3d; font-size: 10px; font-weight: 600; }
.wb-tool small { margin-top: 3px; color: #999c9b; font-size: 8px; }
.wb-tool > i { position: relative; width: 14px; height: 14px; border: 1px solid #c7caca; border-radius: 50%; }
.wb-tool.is-running > i { border: 2px solid #c7f0e5; border-top-color: #00a779; animation: wb-spin .7s linear infinite; }
.wb-tool.is-done > i { border-color: #00a779; background: #00a779; }
.wb-tool.is-done > i::after { content: "✓"; position: absolute; inset: -2px; display: grid; place-items: center; color: white; font: 9px var(--sans); }
@keyframes wb-spin { to { transform: rotate(360deg); } }
.wb-final { margin-top: 12px; padding-top: 14px; border-top: 1px solid #eceeee; }
.wb-document-card { width: calc(100% - 31px); margin: 13px 0 0 31px; padding: 11px; display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; border: 1px solid #dfe2e1; border-radius: 8px; background: #fbfbfb; text-align: left; cursor: pointer; }
.wb-document-card:hover { border-color: #00a779; background: #f1fcf8; }
.wb-doc-icon { display: grid; place-items: center; width: 32px; height: 36px; border-radius: 5px; color: #00785a; background: #dff8ef; font-size: 17px; }
.wb-document-card strong, .wb-document-card small { display: block; }
.wb-document-card strong { font-size: 10px; }
.wb-document-card small { margin-top: 4px; color: #8d9090; font-size: 8px; }
.wb-document-card b { color: #007e5e; font-size: 9px; }
.wb-composer { padding: 10px 14px 8px; border-top: 1px solid #e8e9e9; background: white; }
.wb-composer-box { min-height: 54px; padding: 10px 36px 10px 11px; border: 1px solid #e1e3e2; border-radius: 10px; background: #fafafa; font-size: 10px; line-height: 1.5; }
.wb-composer-box { position: relative; }
.wb-composer-box > i { position: absolute; right: 9px; bottom: 9px; width: 24px; height: 24px; border-radius: 50%; background: #d8dada; }
.wb-composer-box > i::after { content: "↑"; position: absolute; inset: 0; display: grid; place-items: center; color: white; font-style: normal; font-weight: 800; }
.wb-composer-meta { padding: 7px 2px 0; display: flex; justify-content: space-between; align-items: center; color: #8b8f8e; font-size: 8px; }
.wb-composer-meta > span { display: flex; align-items: center; gap: 5px; }
.wb-composer-meta i { width: 6px; height: 6px; border-radius: 50%; background: #00b887; box-shadow: 0 0 0 3px rgba(0,184,135,.12); }
.wb-composer-meta b { font-weight: 500; }
#wbRunStatus.is-done { color: #007e5e; }
.wb-document-preview { position: absolute; inset: 0; z-index: 8; background: white; overflow-y: auto; }
.wb-document-preview[hidden] { display: none !important; }
.wb-document-preview > header { position: sticky; top: 0; z-index: 2; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e7e6; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); }
.wb-document-preview header small, .wb-document-preview header strong { display: block; }
.wb-document-preview header small { color: #8b8f8e; font-size: 8px; }
.wb-document-preview header strong { margin-top: 2px; font-size: 11px; }
.wb-document-preview header button { width: 30px; height: 30px; border: 1px solid #dfe1e1; border-radius: 6px; background: white; cursor: pointer; }
.wb-document-body { max-width: 620px; margin: 0 auto; padding: 36px clamp(22px, 5vw, 64px); }
.wb-doc-date { color: #8d9090; font-size: 9px; }
.wb-document-body h3 { margin: 7px 0 20px; font-family: var(--display); font-size: 29px; }
.wb-document-body > p { font-size: 11px; line-height: 1.8; }
.wb-document-body ol { margin: 28px 0 0; padding: 0; list-style: none; }
.wb-document-body li { padding: 15px 0; display: grid; grid-template-columns: 32px 1fr; border-top: 1px solid #e7e8e8; }
.wb-document-body li > span { color: #00a779; font-size: 9px; font-weight: 800; }
.wb-document-body li strong { font-size: 12px; }
.wb-document-body li p { grid-column: 2; margin: 5px 0 0; color: #8c8f8e; font-size: 9px; }

.search-dialog { display: none; place-items: start center; padding-top: 10vh; }
.search-dialog[open] { display: grid; }
.search-shell { width: min(760px, calc(100% - 30px)); max-height: 78vh; padding: 24px; background: var(--paper); box-shadow: var(--shadow); overflow: auto; }
.search-shell header { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.search-shell input { width: 100%; margin: 20px 0; padding: 18px; border: 2px solid var(--ink); border-radius: 0; background: white; font-size: 18px; }
.search-results { display: grid; gap: 8px; }
.search-results button { padding: 16px; display: grid; grid-template-columns: 110px 1fr; gap: 5px 16px; border: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.search-results button:hover { background: var(--acid); }
.search-results button span { grid-row: 1 / 3; font-size: 11px; font-weight: 800; }
.search-results button strong { font-family: var(--display); font-size: 17px; }
.search-results button small { color: var(--muted); }
.search-empty { padding: 30px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-board { min-height: 500px; }
  .workspace-heading, .panel-intro { grid-template-columns: 1fr; }
  .workspace-heading { align-items: start; flex-direction: column; }
  .common-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .role-day { grid-template-columns: 180px minmax(0, 1fr); }
  .day-track { grid-template-columns: repeat(6, 170px); }
  .workflow-header { grid-template-columns: 64px 1fr; }
  .workflow-roles { grid-column: 1 / -1; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .workflow-steps { overflow-x: auto; grid-template-columns: repeat(5, 200px); }
  .scene-experience { grid-template-columns: 1fr; }
  .scene-brief-panel { padding-right: 0; border-right: 0; }
  .wb-client { height: 720px; order: -1; }
  .workbuddy-embed { height: 720px; order: -1; }
}

@media (max-width: 620px) {
  .site-header { min-height: 66px; }
  .brand small, .text-button { display: none; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero h1 { font-size: clamp(44px, 15vw, 64px); }
  .hero-board { min-height: 500px; box-shadow: 9px 9px 0 var(--signal); }
  .map-caption { grid-template-columns: 1fr; }
  .view-tabs { top: 65px; overflow-x: auto; grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .workspace { padding-top: 65px; }
  .timeline::before { left: 75px; }
  .timeline-item { grid-template-columns: 75px 1fr; }
  .timeline-time { font-size: 18px; }
  .timeline-card { margin-left: 22px; padding: 20px; }
  .timeline-card strong { font-size: 24px; }
  .role-grid, .scene-grid, .common-grid { grid-template-columns: 1fr; }
  .day-legend { margin-top: -20px; }
  .role-day { grid-template-columns: 1fr; }
  .role-day-header { min-height: 145px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .day-track { grid-template-columns: repeat(6, 190px); }
  .day-moment { min-height: 285px; }
  .role-card { min-height: 280px; }
  .role-detail-header { grid-template-columns: 1fr; }
  .role-code.large { min-height: 100px; }
  .role-detail-header h3 { font-size: 40px; }
  .workflow-header { grid-template-columns: 1fr; }
  .workflow-number { width: 52px; height: 52px; min-height: 0; border: 0; }
  .workflow-roles { grid-column: auto; }
  .workflow-result { grid-template-columns: 1fr; gap: 8px; }
  .embedded-common { grid-template-columns: 1fr; gap: 7px; }
  .scene-story { grid-template-columns: 1fr; }
  .story-block.wide { grid-column: auto; }
  .dialog-shell { width: 100%; padding: 25px 18px; }
  .wb-client { min-height: 620px; border-radius: 9px; }
  .workbuddy-embed { min-height: 640px; border-radius: 9px; }
  .wb-client-body { grid-template-columns: 1fr; }
  .wb-sidebar { display: none; }
  .wb-user-bubble { max-width: 92%; }
  .wb-document-card { grid-template-columns: 30px 1fr; }
  .wb-document-card b { grid-column: 2; }
  .search-results button { grid-template-columns: 1fr; }
  .search-results button span { grid-row: auto; }
  footer { gap: 16px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
