@import url('./visual-tokens.css');

:root {
  color-scheme: light;
  --canvas: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #edf3f5;
  --ink: #122b42;
  --ink-soft: #526777;
  --navy: #102d47;
  --blue: #1266b1;
  --blue-soft: #d9edf9;
  --orange: #c45412;
  --orange-soft: #fff0df;
  --green: #16704d;
  --yellow: #8a5a00;
  --red: #b42318;
  --line: #d5e0e5;
  --shadow: 0 20px 52px rgb(18 43 66 / 0.1);
  --shadow-small: 0 8px 24px rgb(18 43 66 / 0.08);
  --radius: 20px;
  --radius-small: 12px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --reading: 44rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; background: var(--canvas); }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 8% -8%, rgb(255 184 91 / 0.2), transparent 24rem), linear-gradient(180deg, #fbfcf9 0%, var(--canvas) 35rem);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .28; background-image: linear-gradient(rgb(18 43 66 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(18 43 66 / .035) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(180deg, #000, transparent 86%); z-index: -1; }
::selection { background: #ffd49a; color: var(--ink); }

a { color: var(--blue); text-decoration-thickness: .12em; text-underline-offset: .18em; }
a:hover { color: var(--orange); }
button, input, textarea, select { font: inherit; }
button { border: 0; border-radius: 999px; padding: .72rem 1.08rem; background: var(--blue); color: #fff; cursor: pointer; min-height: 46px; font-weight: 750; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
button:hover { background: #0d548f; box-shadow: 0 8px 18px rgb(18 102 177 / .18); transform: translateY(-1px); }
button.secondary { background: var(--blue-soft); color: var(--ink); }
button.secondary:hover { background: #c3e1f2; }
button.ghost { background: transparent; color: var(--blue); border: 1px solid currentColor; }
button.ghost:hover { background: var(--blue-soft); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #075985; outline-offset: 3px; }
input, textarea, select { width: 100%; padding: .72rem .82rem; border: 1px solid #b9cbd5; border-radius: var(--radius-small); background: #fff; color: var(--ink); min-height: 46px; }
textarea { min-height: 118px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 1.25rem; height: 1.25rem; min-height: 1.25rem; accent-color: var(--blue); flex: 0 0 auto; }
label { display: block; font-weight: 720; margin-bottom: .35rem; }
label small, .field-help { display: block; margin-top: .25rem; color: var(--ink-soft); font-weight: 450; font-size: .9rem; }
img, svg, video { max-width: 100%; height: auto; }
code, pre, .data-value { font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgb(16 45 71 / .96); color: #fffaf1; border-bottom: 1px solid rgb(255 255 255 / .12); box-shadow: 0 4px 18px rgb(18 43 66 / .12); backdrop-filter: blur(12px); }
.header-inner, .page, .footer-inner { width: min(1200px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 72px; }
.brand { color: #fffaf1; font-weight: 800; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.brand::before { content: "↳"; color: #ffb454; margin-right: .4rem; }
.site-nav { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-size: .9rem; }
.site-nav a { color: #dceaf2; text-decoration: none; padding: .45rem .56rem; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgb(255 255 255 / .12); color: #ffcf85; }

.page { padding: clamp(2rem, 5vw, 4.5rem) 0 6rem; overflow: clip; }
.kicker, .eyebrow { text-transform: uppercase; letter-spacing: .13em; color: var(--orange); font-size: .76rem; font-weight: 850; }
h1, h2, h3, h4 { line-height: 1.22; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 4.8vw, 4rem); margin: .35rem 0 1rem; max-width: 16ch; letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); margin: 0 0 .78rem; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
h4 { font-size: 1rem; margin: 0 0 .3rem; }
p { max-width: var(--reading); }
.lede { max-width: 46rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.section { margin-top: clamp(2.5rem, 6vw, 5rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head p { margin: 0; color: var(--ink-soft); }
.section-head > * { min-width: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(17rem, .75fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: end; padding: clamp(1rem, 2vw, 1.7rem); margin-inline: calc(-1 * clamp(.3rem, 1.5vw, 1rem)); border: 1px solid rgb(18 43 66 / .08); border-radius: 30px; background: rgb(255 255 255 / .55); box-shadow: 0 18px 60px rgb(18 43 66 / .06); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 18%, rgb(18 102 177 / .06) 48%, transparent 78%); transform: translateX(-110%); animation: hero-sweep 7s ease-in-out infinite; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-mark { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.35rem, 3vw, 2rem); background: linear-gradient(145deg, #173c59, #0d263c); color: #fffaf1; border-radius: 26px; box-shadow: var(--shadow); position: relative; isolation: isolate; overflow: hidden; }
.hero-mark::before { content: ""; width: 10rem; height: 10rem; border: 1px solid rgb(255 180 84 / .6); border-radius: 50%; position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: -1; animation: orbit 12s linear infinite; }
.hero-mark::after { content: ""; width: 17rem; height: 17rem; border: 1px dashed rgb(255 180 84 / .35); border-radius: 50%; position: absolute; right: -6rem; bottom: -7rem; z-index: -1; animation: orbit 18s linear infinite reverse; }
.hero-mark strong { display: block; font-size: clamp(4rem, 10vw, 7rem); line-height: .9; color: #ffb454; letter-spacing: -.08em; text-shadow: 0 0 28px rgb(255 180 84 / .24); animation: number-breathe 4s ease-in-out infinite; }
.hero-mark span { font-weight: 700; font-size: 1.1rem; }
.release-hero .hero-mark { align-self: start; margin-top: .15rem; }
.hero-meta { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.4rem 0 0; }
.badge, .tag { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem; border: 1px solid currentColor; border-radius: 999px; font-size: .82rem; line-height: 1.4; }
.badge { color: var(--blue); background: #fff; border-color: #b8d8ea; }
.badge.accent { color: var(--orange); background: var(--orange-soft); border-color: #efc293; }
.tool-row { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; margin: 1.35rem 0; }
.tool-row input[type="file"] { max-width: 280px; padding: .45rem; }
.tool-row label { margin: 0; }
.status { min-height: 1.6em; color: var(--green); font-weight: 720; }
.status.pending { color: var(--yellow); }
.status.error, .field-error { color: var(--red); }
.status-line { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; color: var(--ink-soft); font-size: .92rem; }

.panel, .practice-card, .surface { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 2.6vw, 1.7rem); box-shadow: var(--shadow-small); position: relative; overflow: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease, border-color .32s ease; }
.panel::before, .practice-card::before, .surface::before { content: ""; position: absolute; left: 0; top: 0; width: 5.5rem; height: 4px; background: linear-gradient(90deg, var(--orange), var(--blue)); transform-origin: left; transition: width .35s ease; }
.panel:hover, .practice-card:hover, .surface:hover { transform: translateY(-4px); border-color: #b5d2df; box-shadow: 0 18px 38px rgb(18 43 66 / .12); }
.panel:hover::before, .practice-card:hover::before, .surface:hover::before { width: 10rem; }
.panel > :first-child, .practice-card > :first-child, .surface > :first-child { margin-top: 0; }
.panel > :last-child, .practice-card > :last-child, .surface > :last-child { margin-bottom: 0; }
.panel.dark, .surface.dark { background: var(--navy); color: #fffaf1; border-color: #254c69; }
.panel.dark .muted, .surface.dark .muted { color: #d7e4eb; }
.panel.dark .callout, .surface.dark .callout { color: var(--ink); }
.panel.soft, .surface.soft { background: var(--surface-soft); box-shadow: none; }
.grid-2, .grid-3, .form-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-2, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 1rem; }
.reading { max-width: var(--reading); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; align-items: stretch; }
.flow-step { position: relative; min-width: 0; padding: 1.1rem; background: linear-gradient(180deg, #eef7fb, #e5eff3); border: 1px solid #c6dbe5; border-radius: 16px; transition: transform .3s ease, background-color .3s ease; }
.flow-step:hover { transform: translateY(-5px) rotate(-.5deg); background: linear-gradient(180deg, #f7fbfc, #e1f1f5); }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -.75rem; top: 40%; color: var(--orange); font-size: 1.5rem; font-weight: 900; z-index: 2; }
.flow-step strong { display: block; font-size: 1.4rem; color: var(--blue); }
.step-note, .callout { border-left: 5px solid var(--orange); padding: .85rem 1rem; background: var(--orange-soft); margin: 1rem 0; }
.callout { color: var(--ink); }
.callout p, .callout strong { color: inherit; }
.callout.blue { border-left-color: var(--blue); background: var(--blue-soft); }
.callout.green { border-left-color: var(--green); background: #e7f5ed; }
.source-note, .source-strip { font-size: .9rem; color: var(--ink-soft); }
.source-note { border-top: 1px solid var(--line); margin-top: 1.1rem; padding-top: .75rem; }
.source-strip { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: .85rem; margin-top: 1.2rem; }
.source-strip strong { color: var(--ink); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; padding: .7rem .1rem; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list label { margin: 0; font-weight: 550; }
.check-row { display: flex; gap: .65rem; align-items: flex-start; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.check-row label { margin: 0; font-weight: 600; }
.study-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; counter-reset: study; }
.study-step { position: relative; padding: 1.35rem 1.25rem 1.35rem 4.1rem; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 18px; background: rgb(255 255 255 / .82); box-shadow: var(--shadow-small); transition: transform .3s ease, border-color .3s ease; }
.study-step:hover { transform: translateY(-5px); border-top-color: var(--orange); }
.study-step::before { counter-increment: study; content: counter(study, decimal-leading-zero); position: absolute; left: 1rem; top: 1.15rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--navy); color: #ffcf85; font-weight: 850; box-shadow: 0 0 0 5px #edf3f5; }
.study-step::after { content: "→"; position: absolute; right: -.65rem; top: 1.35rem; color: var(--orange); font-size: 1.45rem; font-weight: 900; z-index: 2; animation: nudge-right 2.4s ease-in-out infinite; }
.study-step:last-child::after { display: none; }
.route-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; margin: 1.5rem 0 0; position: relative; }
.route-rail::before { content: ""; position: absolute; left: 4%; right: 4%; top: 1.05rem; height: 2px; background: linear-gradient(90deg, var(--blue), var(--orange), var(--green)); opacity: .55; }
.route-rail a { min-width: 0; padding: 2.1rem .65rem .85rem; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-small); position: relative; transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease, border-color .32s ease; }
.route-rail a::before { content: ""; position: absolute; left: 50%; top: .55rem; width: .95rem; height: .95rem; margin-left: -.475rem; border: 4px solid var(--canvas); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--blue); z-index: 1; transition: background .25s ease, box-shadow .25s ease, transform .25s ease; }
.route-rail a:hover { border-color: #a9cedd; transform: translateY(-7px); box-shadow: 0 18px 30px rgb(18 43 66 / .14); }
.route-rail a:hover::before { background: var(--orange); box-shadow: 0 0 0 2px var(--orange), 0 0 0 8px rgb(196 84 18 / .14); transform: scale(1.12); }
.route-rail small, .route-rail strong { display: block; overflow-wrap: anywhere; }
.route-rail small { color: var(--orange); font-weight: 800; }
.timeline { position: relative; display: grid; gap: .9rem; }
.timeline::before { content: ""; position: absolute; left: 1rem; top: 1.1rem; bottom: 1.1rem; width: 2px; background: linear-gradient(var(--orange), var(--blue), var(--green)); opacity: .65; background-size: 100% 220%; animation: timeline-flow 5s ease-in-out infinite; }
.timeline-item { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .95rem; align-items: start; }
.timeline-dot { width: 2rem; height: 2rem; border-radius: 50%; background: var(--orange); border: 5px solid var(--canvas); z-index: 1; box-shadow: 0 0 0 1px #e0a269; animation: dot-pulse 2.8s ease-in-out infinite; }
.timeline-item .panel { box-shadow: none; }
.prompt-block { margin: .8rem 0 0; background: #102d47; color: #fffaf1; padding: 1rem; border-radius: 14px; border: 1px solid #244a68; }
.prompt-block pre { margin: .6rem 0 0; color: #ffe2af; font-size: .92rem; }
.metric { border-top: 5px solid var(--blue); padding-top: 1rem; }
.metric strong { display: block; font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--blue); line-height: 1; margin-top: .25rem; }
.metric small { color: var(--ink-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 660px; background: #fff; }
th, td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: .75rem .65rem; }
th { color: var(--ink-soft); font-size: .88rem; background: var(--surface-soft); }
tbody tr:last-child td { border-bottom: 0; }
.progress { height: 10px; border-radius: 999px; background: #d8e5ea; overflow: hidden; margin: .8rem 0 1.2rem; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); transition: width .25s ease; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.stat { padding: .9rem; background: var(--surface-soft); border-radius: 14px; min-width: 0; }
.stat strong { display: block; font-size: 1.6rem; color: var(--navy); }
.bar-list { display: grid; gap: .8rem; }
.bar-row { display: grid; grid-template-columns: minmax(8rem, 1.1fr) minmax(8rem, 2fr) 4rem; align-items: center; gap: .7rem; }
.bar-track { height: .75rem; background: #d9e5e9; border-radius: 999px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #55b7e4); border-radius: inherit; }
.switcher { display: flex; gap: .45rem; flex-wrap: wrap; margin: 1rem 0; }
.switcher button { background: #e2edf2; color: var(--ink); }
.switcher button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.policy-output { border-top: 5px solid var(--orange); padding-top: 1.1rem; min-height: 10rem; }
.policy-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.policy-column { padding: 1rem; border-radius: 14px; background: var(--surface-soft); }
.policy-column.allowed { border-top: 4px solid var(--green); }
.policy-column.check { border-top: 4px solid var(--orange); }
.policy-column.blocked { border-top: 4px solid var(--red); }
.gate-list { display: grid; gap: .6rem; counter-reset: gates; }
.gate { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .8rem; align-items: start; padding: .95rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.gate::before { counter-increment: gates; content: counter(gates, decimal-leading-zero); color: var(--orange); font-weight: 900; font-size: 1.2rem; }
.gate > * { min-width: 0; }
.gate-status { color: var(--yellow); font-size: .85rem; font-weight: 750; }
.gate-status.ready { color: var(--green); }
.download-list { display: grid; gap: .6rem; }
.download-link { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: #fff; }
.download-link:hover { border-color: #8abbd4; background: var(--blue-soft); }
.download-link > :last-child { color: var(--orange); font-weight: 850; white-space: nowrap; transition: transform .25s ease; }
.download-link:hover > :last-child { transform: translateX(4px); }
.download-link span { min-width: 0; overflow-wrap: anywhere; }
.route-studio, .bars-control-preview, .release-control-preview { padding: 0; border: 1px solid #c9d1d3; border-radius: 24px; background: #f9f2e4; box-shadow: 0 26px 70px rgb(16 45 71 / .14); overflow: hidden; }
.studio-chrome, .control-chrome { min-height: 58px; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.15rem; background: linear-gradient(180deg, #09213e, #071a31); color: #f7f1e7; }
.chrome-dots { display: flex; gap: .5rem; }
.chrome-dots i { width: .85rem; height: .85rem; border-radius: 50%; background: #f4e9d6; box-shadow: inset 0 -1px 0 rgb(0 0 0 / .2); }
.chrome-dots i:nth-child(2) { background: #f3b63e; }
.chrome-dots i:nth-child(3) { background: #ed6b37; }
.chrome-title { flex: 1; color: #d6e1e9; font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace; font-size: .78rem; letter-spacing: .04em; }
.chrome-actions { display: flex; align-items: center; gap: .65rem; }
.chrome-actions i { width: 2.1rem; height: .32rem; background: #8fa4b7; border-radius: 999px; }
.chrome-actions b { padding: .45rem 1.15rem; border-radius: 999px; color: #071a31; background: #1266e6; font-size: .78rem; }
.route-studio-body { display: grid; grid-template-columns: 8rem minmax(0, 1fr); min-height: 31rem; }
.studio-side { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 2rem 1rem; background: #f8f0e1; border-right: 1px solid #d8ccb8; }
.side-clock { display: grid; place-items: center; width: 4.7rem; height: 4.7rem; border: 3px solid #777d7d; border-radius: 50%; color: #09213e; font-size: 1.35rem; font-weight: 900; position: relative; }
.side-clock::after { content: ""; position: absolute; width: 1.5rem; height: .22rem; background: #09213e; transform: rotate(-45deg); transform-origin: right center; }
.side-clock span { font-size: .7rem; margin-left: .18rem; color: #1266e6; }
.side-rule { width: 4.8rem; height: .34rem; border-radius: 999px; background: #09213e; }
.side-rule.short { width: 3.8rem; }
.side-palette { display: flex; gap: .45rem; margin-top: .7rem; }
.side-palette i { width: .85rem; height: .85rem; border-radius: 50%; background: #09213e; }
.side-palette i:nth-child(2) { background: #1266e6; }
.side-palette i:nth-child(3) { background: #f47d16; }
.side-palette i:nth-child(4) { background: #58a890; }
.route-studio-main { min-width: 0; padding: 2rem clamp(1rem, 3.5vw, 3rem) 1.7rem; }
.route-heading { margin: 0 0 .8rem; }
.route-heading h2 { color: #09213e; }
.route-rail { gap: 0; margin: 1.45rem 0 2.2rem; padding: 0 .35rem; }
.route-rail::before { left: 5%; right: 5%; top: 1.38rem; height: .3rem; background: #09213e; opacity: .95; border-radius: 50%; transform: rotate(-1deg); }
.route-rail a { padding: 3.1rem .7rem .7rem; background: transparent; border: 0; box-shadow: none; border-radius: 18px; text-align: center; }
.route-rail a::before { top: .85rem; width: 2rem; height: 2rem; margin-left: -1rem; border: 5px solid #f9f2e4; box-shadow: 0 0 0 2px #58a890; background: #58a890; }
.route-rail a:nth-child(2)::before, .route-rail a:nth-child(5)::before { background: #f47d16; box-shadow: 0 0 0 2px #f47d16; }
.route-rail a:nth-child(3)::before, .route-rail a:nth-child(4)::before { background: #1266e6; box-shadow: 0 0 0 2px #1266e6; }
.route-rail a:nth-child(6)::before { background: #58a890; box-shadow: 0 0 0 2px #58a890; }
.route-rail a:hover { transform: translateY(-5px); box-shadow: none; background: rgb(255 255 255 / .36); }
.route-rail a:hover::before { background: #1266e6; box-shadow: 0 0 0 2px #1266e6, 0 0 0 8px rgb(18 102 230 / .15); }
.route-rail small { color: #09213e; font-size: .72rem; }
.route-rail strong { color: #09213e; font-size: 1rem; }
.route-rail span { color: #707878; font-size: .78rem; }
.route-workbench { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; padding: 1.2rem; border: 1px solid #dacdb8; border-radius: 18px; background: rgb(255 252 245 / .72); position: relative; }
.route-workbench::before { content: ""; position: absolute; left: 7%; right: 7%; top: -1.7rem; height: 2.2rem; border: 1px solid #dacdb8; border-bottom: 0; border-radius: 13px 13px 0 0; background: rgb(255 252 245 / .56); }
.workbench-card { min-width: 0; min-height: 15rem; padding: 1.2rem; border: 1px solid #cbd6d4; border-radius: 15px; background: #fffdf7; position: relative; box-shadow: 0 10px 20px rgb(16 45 71 / .06); }
.workbench-card::before { content: ""; position: absolute; left: 1.15rem; top: 1.15rem; width: 4.2rem; height: .32rem; border-radius: 999px; background: #1266e6; }
.workbench-card.see::before { background: #f47d16; }
.workbench-card.next::before { background: #58a890; }
.workbench-icon { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; margin: 1.2rem 0 .85rem auto; border: 2px solid #1266e6; border-radius: 50%; color: #1266e6; font-size: 1.35rem; }
.workbench-card.see .workbench-icon { color: #f47d16; border-color: #f47d16; }
.workbench-card.next .workbench-icon { color: #58a890; border-color: #58a890; }
.workbench-card h3 { font-size: 1.03rem; margin-bottom: 1rem; }
.workbench-lines, .workbench-paper { display: grid; gap: .5rem; margin: 1rem 0; }
.workbench-lines span, .workbench-paper span { display: block; height: .35rem; border-radius: 999px; background: #b8b9b1; }
.workbench-lines span:nth-child(2) { width: 72%; }.workbench-lines span:nth-child(3) { width: 86%; }
.workbench-paper span { background: #bdd3c8; }.workbench-paper span:nth-child(2) { width: 88%; }.workbench-paper span:nth-child(3) { width: 67%; }.workbench-paper span:nth-child(4) { width: 91%; }.workbench-paper span:nth-child(5) { width: 56%; }
.workbench-button { display: inline-block; padding: .52rem .9rem; border-radius: 8px; background: #1266e6; color: white; font-size: .78rem; }
.next .workbench-button { background: #58a890; }
.workbench-evidence { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; margin: 1rem 0; }
.workbench-evidence i { padding: .45rem; border: 1px solid #b9d5e7; border-radius: 7px; color: #1266e6; font-size: .76rem; font-style: normal; text-align: center; }
.workbench-evidence i:nth-child(3), .workbench-evidence i:nth-child(4) { color: #f47d16; border-color: #f1c59f; }
.workbench-signal { display: flex; align-items: end; gap: .32rem; height: 2.3rem; }.workbench-signal span, .workbench-signal b { width: .48rem; border-radius: 4px 4px 0 0; background: #1266e6; height: 55%; }.workbench-signal b { height: 90%; background: #f47d16; }.workbench-signal span:nth-child(3) { height: 70%; }.workbench-signal span:nth-child(4) { height: 45%; }
.studio-status { display: flex; align-items: center; gap: .8rem; min-height: 3.4rem; padding: .7rem 1.2rem; background: #071a31; color: #cbd9e3; font-size: .83rem; }.studio-status b { margin-left: auto; color: #ffb454; font-family: monospace; }.status-dots { display: flex; gap: .48rem; }.status-dots i { width: .75rem; height: .75rem; border: 2px solid #7e90a0; border-radius: 50%; }.status-dots i.active { background: #1266e6; border-color: #1266e6; }
.bars-control-preview { background: #fbf5e9; }
.control-tag { padding: .32rem .68rem; border: 1px solid #f4a44e; border-radius: 999px; color: #ffb454; font-size: .74rem; }
.bars-preview-body { display: grid; grid-template-columns: 10rem minmax(0, 1fr); min-height: 25rem; }
.dimension-rail { padding: 1.4rem 1rem; background: #f8f0e1; border-right: 1px solid #d7cbb8; }.dimension-rail .eyebrow { margin: 0 0 .8rem; }.dimension-pill { display: flex; align-items: center; gap: .6rem; padding: .62rem .5rem; color: #718083; border-bottom: 1px solid #d9d0c0; }.dimension-pill b { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid #99a8a4; font-size: .73rem; }.dimension-pill.active { color: #1266e6; font-weight: 800; }.dimension-pill.active b { border-color: #1266e6; background: #1266e6; color: #fff; box-shadow: 0 0 0 4px #dbe9ff; }
.rating-board { padding: 1.7rem clamp(1rem, 3vw, 2.5rem); }.rating-board-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #d9d0c0; }.rating-board-head h2 { margin-bottom: .35rem; }.rating-board-head p { margin: 0; color: #667878; font-size: .9rem; }.rating-progress { min-width: 4.2rem; color: #77837e; text-align: center; }.rating-progress b { display: block; color: #1266e6; font-size: 2rem; line-height: 1; }.rating-progress i { display: block; width: 3.6rem; height: .28rem; margin: .55rem auto 0; background: #1266e6; border-radius: 999px; }
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; margin-top: 1rem; }.member-rating { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .3rem .65rem; padding: .75rem; border: 1px solid #d4c8b4; border-radius: 13px; background: #fffdf7; }.member-avatar { grid-row: span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid #a9b59f; border-radius: 50%; color: #324a4f; background: #e7e4d2; font-weight: 800; }.member-rating strong { display: block; font-size: .88rem; }.member-rating small { color: #7a8781; font-size: .72rem; }.rating-scale { grid-column: 2; display: flex; justify-content: space-between; align-items: center; padding: .5rem .3rem; border-top: 1px solid #e1d7c7; border-bottom: 1px solid #e1d7c7; color: #687477; font-size: .82rem; }.rating-scale b { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; color: white; background: #1266e6; }.orange .rating-scale b { background: #f47d16; }.rating-note { grid-column: 2; display: flex; align-items: center; gap: .4rem; }.rating-note span { color: #f47d16; }.rating-note i { width: 35%; height: .25rem; background: #a9aaa5; border-radius: 999px; }.rating-note i:last-child { width: 22%; }
.bars-analysis-preview { display: grid; grid-template-columns: 1.35fr 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-top: 1px solid #c7d5c9; background: #eaf5ee; }.bars-analysis-preview > div:first-child { display: flex; gap: .7rem; align-items: center; }.analysis-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #159763; color: white; font-size: 1.2rem; }.bars-analysis-preview p { margin: 0; }.bars-analysis-preview strong, .bars-analysis-preview small { display: block; }.bars-analysis-preview small { color: #527267; font-size: .78rem; }.mini-bars { display: flex; align-items: end; gap: .35rem; height: 2.7rem; }.mini-bars i { width: 18%; height: var(--bar); min-height: .35rem; border-radius: 4px 4px 0 0; background: #159763; }.mini-bars i:nth-child(even) { background: #f47d16; }.preview-arrow { color: #1266e6; font-size: 2rem; font-weight: 900; }
.release-control-preview { background: #fbf5e9; }.release-preview-body { display: grid; grid-template-columns: 13rem minmax(0, 1fr); min-height: 26rem; }.release-track { display: flex; flex-direction: column; gap: 0; padding: 1.7rem 1.3rem; background: #f8f0e1; border-right: 1px solid #d7cbb8; position: relative; }.release-track::before { content: ""; position: absolute; left: 2.2rem; top: 2.4rem; bottom: 2.4rem; width: .24rem; background: linear-gradient(#1266e6 46%, #f47d16 46%); }.release-step { display: grid; grid-template-columns: 2.1rem 1fr; align-items: center; gap: .75rem; min-height: 4.25rem; color: #6f7c7b; position: relative; z-index: 1; }.release-step b { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 3px solid #fbf5e9; background: #09213e; color: #fff; font-size: .82rem; }.release-step.done b { background: #1266e6; }.release-step.current b { background: #f47d16; }.release-step.current i, .release-step.done i { color: #09213e; font-weight: 800; }.release-step i { font-style: normal; font-size: .82rem; }.release-preview-main { padding: 1.7rem clamp(1rem, 3vw, 2rem); }.release-preview-head { display: flex; align-items: start; justify-content: space-between; border-bottom: 1px solid #d9d0c0; padding-bottom: 1rem; }.release-preview-head h2 { margin: 0; }.release-count { color: #f47d16; font-family: monospace; font-weight: 800; }.release-gates-preview { display: grid; gap: .15rem; margin-top: .7rem; }.release-gate { display: grid; grid-template-columns: 2.1rem 2.35rem minmax(0,1fr) 1.8rem; align-items: center; gap: .65rem; padding: .55rem .2rem; border-bottom: 1px solid #e2d8c8; }.release-gate > b { color: #09213e; font-family: monospace; }.gate-art { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 7px; color: white; font-size: 1.2rem; }.gate-art.blue { background: #1266e6; }.gate-art.orange { background: #f47d16; }.gate-art.purple { background: #6c52c5; }.gate-art.green, .gate-art.mint { background: #159763; }.release-gate strong, .release-gate small { display: block; }.release-gate small { color: #7d817b; font-size: .76rem; }.release-gate > i { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; color: #fff; background: #159763; font-style: normal; font-weight: 900; }.release-gate.active > i { background: #f6a61e; }.release-gate:not(.done):not(.active) > i { color: #7c837f; background: transparent; border: 1px solid #9eaaa4; }
.release-browser-row { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 1.2rem; padding: 1.2rem 1.5rem; border-top: 1px solid #d8ccb8; background: #fffaf0; }.browser-preview { border: 1px solid #c7c4bc; border-radius: 11px; overflow: hidden; background: #fff; box-shadow: 0 8px 16px rgb(16 45 71 / .08); }.browser-top { display: flex; align-items: center; gap: .35rem; height: 1.4rem; padding: 0 .5rem; background: #09213e; }.browser-top i { width: .4rem; height: .4rem; border-radius: 50%; background: #fff5e4; }.browser-top span { flex: 1; max-width: 4rem; height: .2rem; margin-left: auto; background: #8593a2; border-radius: 999px; }.browser-image { min-height: 4rem; padding: .6rem; background: linear-gradient(135deg, #e4e1da, #faf9f1); position: relative; }.browser-image b { display: block; color: #09213e; font-size: .78rem; }.browser-image i { display: block; width: 45%; height: .25rem; margin-top: .4rem; background: #959b97; border-radius: 999px; }.browser-image i:nth-child(3) { width: 30%; }.browser-image em { display: block; width: 2rem; height: 1rem; margin-top: .55rem; background: #d0d7d2; }.browser-preview.live .browser-image { background: linear-gradient(135deg, #8dc7e8, #e8f2ee); }.browser-preview.live .browser-image::after { content: "✓"; position: absolute; right: .7rem; bottom: .5rem; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; color: white; background: #159763; font-weight: 900; }.release-success { display: flex; align-items: center; gap: .6rem; color: #159763; font-weight: 800; font-size: .8rem; }.release-success > b { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 3px solid #159763; border-radius: 50%; font-size: 1.45rem; }.release-success small { color: #60766b; font-weight: 500; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.motion-ready [data-reveal] { opacity: 0; transform: translateY(18px); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal { animation: reveal .55s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hero-sweep { 0%, 20% { transform: translateX(-110%); } 55%, 100% { transform: translateX(110%); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes number-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes nudge-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 1px #e0a269, 0 0 0 0 rgb(196 84 18 / .2); } 50% { box-shadow: 0 0 0 1px #e0a269, 0 0 0 8px rgb(196 84 18 / .08); } }
@keyframes timeline-flow { 0%, 100% { background-position: 0 0; } 50% { background-position: 0 100%; } }
.footer { background: var(--navy); color: #c6d6e1; padding: 1.35rem 0; }
.footer a { color: #ffcf85; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }

@media (max-width: 960px) {
  .hero, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .grid-3, .policy-columns, .study-path { grid-template-columns: 1fr; }
  .route-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(2)::after { display: none; }
  .flow-step:nth-child(3)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -.95rem; }
  .study-step:nth-child(2)::after { display: none; }
  .route-studio-body, .bars-preview-body, .release-preview-body { grid-template-columns: 1fr; }
  .studio-side, .dimension-rail, .release-track { display: none; }
  .route-workbench { gap: .7rem; }
  .member-grid { grid-template-columns: 1fr; }
  .release-browser-row { grid-template-columns: 1fr auto 1fr; }
  .release-success { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: .8rem 0; }
  .site-nav { justify-content: flex-start; width: 100%; overflow: visible; flex-wrap: wrap; padding-bottom: .1rem; }
  .site-nav a { flex: 0 0 auto; padding-inline: .42rem; }
  .page { padding-top: 2rem; }
  h1 { max-width: none; }
  .route-rail, .flow, .stat-grid { grid-template-columns: 1fr; }
  .flow-step::after, .flow-step:nth-child(3)::after { display: none !important; }
  .study-step::after { display: none !important; }
  .section-head { display: block; }
  .bar-row { grid-template-columns: 1fr; gap: .25rem; }
  .gate { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .gate-status { grid-column: 2; }
  .tool-row > * { width: 100%; max-width: none !important; }
  button, .download-link { min-height: 48px; }
  .studio-chrome, .control-chrome { min-height: 48px; padding: .55rem .75rem; gap: .55rem; }
  .chrome-title { font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chrome-actions { display: none; }
  .chrome-tag { font-size: .65rem; padding: .22rem .45rem; white-space: nowrap; }
  .route-studio-main { padding: 1.35rem .8rem 1rem; }
  .route-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.5rem; }
  .route-rail::before { display: none; }
  .route-rail a { padding-top: 2.6rem; }
  .route-workbench { grid-template-columns: 1fr; padding: .7rem; }
  .route-workbench::before { display: none; }
  .workbench-card { min-height: 12rem; }
  .studio-status { align-items: flex-start; flex-direction: column; gap: .35rem; padding: .75rem; }
  .studio-status b { margin-left: 0; }
  .rating-board { padding: 1.1rem .8rem; }
  .rating-board-head { display: block; }
  .rating-progress { display: flex; align-items: baseline; gap: .4rem; margin-top: .8rem; text-align: left; }
  .rating-progress b { font-size: 1.45rem; }
  .rating-progress i { margin: 0; }
  .bars-analysis-preview { grid-template-columns: 1fr; padding: .9rem; }
  .mini-bars { max-width: 14rem; }
  .preview-arrow { display: none; }
  .release-preview-main { padding: 1.1rem .8rem; }
  .release-gate { grid-template-columns: 1.8rem 2rem minmax(0, 1fr) 1.6rem; gap: .45rem; }
  .gate-art { width: 1.9rem; height: 1.9rem; font-size: .95rem; }
  .release-browser-row { grid-template-columns: 1fr; gap: .65rem; padding: .9rem; }
  .release-browser-row .preview-arrow { display: block; justify-self: center; transform: rotate(90deg); }
  .release-success { grid-column: auto; justify-content: flex-start; }
}
@media print {
  :root { --canvas: #fff; --surface: #fff; --ink: #111; --ink-soft: #333; }
  body { background: #fff; }
  .site-header, .tool-row, button, input[type="file"], .footer, .site-nav { display: none !important; }
  .page { width: 100%; padding: 0; }
  .panel, .practice-card, .surface { box-shadow: none; break-inside: avoid; }
  a { color: #000; }
  table { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}

.questioning-loop, .questioning-supplement, .case-walkthrough, .prompt-branch, .evidence-supplement, .evidence-trail, .publish-trail {
  position: relative;
  overflow: hidden;
}
.questioning-loop {
  display: grid;
  grid-template-columns: minmax(16rem, .85fr) minmax(0, 1.5fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid #c8dbe5;
  border-radius: 24px;
  background: linear-gradient(125deg, #fffaf1 0%, #eef7fb 54%, #e7f5ed 100%);
  box-shadow: 0 22px 55px rgb(18 43 66 / .1);
}
.questioning-loop::after {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  right: -5rem;
  bottom: -8rem;
  border: 1px solid rgb(196 84 18 / .25);
  border-radius: 50%;
  animation: orbit 16s linear infinite reverse;
  pointer-events: none;
}
.questioning-loop-intro, .questioning-loop-steps { position: relative; z-index: 1; }
.questioning-loop-intro { align-self: center; }
.questioning-loop-intro h2 { margin-bottom: .65rem; }
.questioning-loop-intro p:last-child { margin-bottom: 0; }
.questioning-loop-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .65rem;
  align-items: stretch;
}
.questioning-step {
  min-height: 8rem;
  display: grid;
  place-items: center;
  padding: 1rem .65rem;
  color: var(--ink);
  text-align: center;
  border: 1px solid #c5dbe4;
  border-radius: 18px;
  background: rgb(255 255 255 / .78);
  box-shadow: 0 10px 22px rgb(18 43 66 / .08);
  transform: translateY(0) rotate(0);
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
  animation: questioning-rise .8s both;
}
.questioning-step:nth-child(2) { animation-delay: .08s; }
.questioning-step:nth-child(3) { animation-delay: .16s; }
.questioning-step:nth-child(4) { animation-delay: .24s; }
.questioning-step:nth-child(5) { animation-delay: .32s; }
.questioning-step:hover { transform: translateY(-7px) rotate(-1deg); border-color: #e0a269; background: #fff; }
.questioning-step strong { font-size: 1.02rem; }
.questioning-supplement, .case-walkthrough, .evidence-supplement, .evidence-trail, .publish-trail {
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f6fafb);
  box-shadow: var(--shadow-small);
}
.thinking-intro, .case-walkthrough-intro { max-width: var(--reading); padding: .85rem 1rem; border-left: 5px solid var(--blue); background: var(--blue-soft); }
.thinking-intro p, .case-walkthrough-intro p { margin: 0; }
.thinking-questions {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .65rem;
  padding: 0;
  margin: 1.25rem 0;
  counter-reset: questions;
}
.thinking-questions li {
  counter-increment: questions;
  min-height: 7rem;
  display: flex;
  align-items: end;
  padding: .9rem;
  color: var(--ink);
  font-weight: 800;
  border: 1px solid #c7dce5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(18 43 66 / .07);
  position: relative;
}
.thinking-questions li::before { content: counter(questions, decimal-leading-zero); position: absolute; top: .65rem; left: .8rem; color: var(--orange); font-size: .78rem; letter-spacing: .08em; }
.case-scenario { margin: 1rem 0; padding: 1rem 1.1rem; border: 1px solid #efc293; border-radius: 16px; background: var(--orange-soft); }
.case-scenario p { margin: 0; font-weight: 780; }
.case-steps, .evidence-trail-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; padding: 0; list-style: none; counter-reset: case-step; }
.case-step, .evidence-trail-list li { min-height: 5rem; display: flex; align-items: center; padding: .9rem; border-radius: 15px; border: 1px solid #c5dbe4; background: #eef7fb; color: var(--ink); font-weight: 800; position: relative; }
.case-step::before, .evidence-trail-list li::before { counter-increment: case-step; content: counter(case-step, decimal-leading-zero); position: absolute; top: .5rem; right: .7rem; color: var(--blue); font-size: .75rem; }
.prompt-branch { padding: clamp(1.1rem, 3vw, 1.8rem); border: 1px solid #d4c7e5; border-radius: 22px; background: linear-gradient(135deg, #f7f2ff, #eef7fb); box-shadow: var(--shadow-small); }
.prompt-branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.prompt-branch-card { min-height: 10rem; padding: 1rem; border: 2px solid transparent; border-radius: 17px; background: rgb(255 255 255 / .78); color: var(--ink); box-shadow: 0 9px 20px rgb(18 43 66 / .07); opacity: .62; transform: scale(.985); transition: opacity .25s ease, transform .25s ease, border-color .25s ease, background-color .25s ease; }
.prompt-branch-card.is-active { border-color: #8a6cc1; background: #fff; opacity: 1; transform: scale(1); }
.prompt-branch-card p { margin-bottom: 0; }
.stop-condition { margin-top: 1rem; padding: .9rem 1rem; border-left: 5px solid var(--green); background: #e7f5ed; color: var(--ink); }
.evidence-checks, .publish-checks { margin-top: 1rem; }
.evidence-trail-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.evidence-trail-list li { background: #fffaf1; border-color: #efc293; }
.publish-trail { background: linear-gradient(135deg, #fffaf1, #eef7fb); }
@keyframes questioning-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 960px) {
  .questioning-loop { grid-template-columns: 1fr; }
  .questioning-loop-steps, .thinking-questions, .evidence-trail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .questioning-loop-steps, .thinking-questions, .case-steps, .prompt-branch-grid, .evidence-trail-list { grid-template-columns: 1fr; }
  .questioning-step, .thinking-questions li { min-height: 5.4rem; }
  .case-step, .evidence-trail-list li { min-height: 4.2rem; }
}

/* Keep the gate counter, checkbox, label text, and status in separate hit areas. */
.gate { grid-template-columns: 2rem 1.35rem minmax(0, 1fr) auto; }
.gate::before { grid-column: 1; grid-row: 1; pointer-events: none; }
.gate > input { grid-column: 2; grid-row: 1; align-self: start; margin-top: .1rem; }
.gate > span:not(.gate-status) { grid-column: 3; grid-row: 1; }
.gate > .gate-status { grid-column: 4; grid-row: 1; }
@media (max-width: 720px) {
  .gate { grid-template-columns: 2.2rem 1.25rem minmax(0, 1fr); }
  .gate > span:not(.gate-status) { grid-column: 3; grid-row: 1; }
  .gate > .gate-status { grid-column: 3; grid-row: 2; }
}
