:root {
  --paper: #f0ede5; --surface: #fbfaf6; --ink: #111719; --muted: #646867; --line: rgba(17,23,25,.18);
  --blue: #214f9e; --red: #a34237; --green: #176247; --amber: #a06f22;
  --font: Helvetica, "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "BIZ UDPMincho", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); }
button, textarea { font: inherit; } [hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 30; top: -5rem; left: 1rem; padding: .75rem 1rem; color: #fff; background: var(--ink); }
.skip-link:focus { top: 1rem; }
.topbar { min-height: 72px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(1rem,5vw,5rem); border-bottom: 1px solid var(--line); }
.brand, .status, .eyebrow, .element-map span, .element-badge span, .step-label, .preview-kicker, .hud small { font-family: Helvetica, sans-serif; letter-spacing: .13em; }
.brand, .status { display: flex; align-items: center; gap: .8rem; margin: 0; font-size: .72rem; }
.brand { color: inherit; text-decoration: none; }
.brand-mark { display: block; width: 40px; height: 40px; object-fit: cover; border-radius: 10px; }
.status span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(23,98,71,.1); }
main { max-width: 1500px; margin: 0 auto; }
.screen { min-height: calc(100vh - 136px); padding: clamp(2.5rem,6vw,6rem) clamp(1rem,5vw,5rem); }
.intro-screen { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,6vw,7rem); align-items: center; }
.eyebrow { color: var(--blue); font-size: .7rem; font-weight: 700; }
.intro-copy h1 { margin: 1rem 0 1.5rem; font-size: clamp(3rem,6.8vw,7.2rem); font-weight: 500; line-height: 1.03; letter-spacing: -.065em; }
.intro-copy h1 em { color: var(--blue); font-style: normal; }
.lead { max-width: 650px; font-size: clamp(1rem,1.3vw,1.2rem); line-height: 2; }
button { min-height: 50px; padding: .85rem 1.1rem; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; cursor: pointer; }
button:hover { transform: translateY(-1px); }
button:focus-visible, textarea:focus-visible, pre:focus-visible { outline: 3px solid rgba(33,79,158,.35); outline-offset: 3px; }
button:disabled { opacity: .55; cursor: default; transform: none; }
.primary-button { min-width: 230px; margin-top: 1.4rem; color: #fff; background: var(--ink); }
.primary-button span { margin-left: 1rem; opacity: .65; font-family: Helvetica, sans-serif; font-size: .7rem; }
.element-map { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; list-style: none; padding: 1px; margin: 0; background: var(--line); }
.element-map li { min-height: 155px; display: grid; align-content: end; padding: 1.4rem; background: var(--surface); }
.element-map li:first-child { grid-column: 1 / -1; background: var(--ink); color: #fff; }
.element-map span { color: var(--blue); font-size: .65rem; font-weight: 700; }
.element-map li:first-child span { color: #9db9ee; }
.element-map b { margin-top: .8rem; font-size: clamp(1.4rem,2.5vw,2.3rem); font-weight: 500; }
.element-map p { margin: .4rem 0 0; color: var(--muted); }
.element-map li:first-child p { color: rgba(255,255,255,.65); }
.instructions { grid-column: 1 / -1; margin: 0; text-align: center; color: var(--muted); }
kbd { min-width: 1.8rem; display: inline-block; padding: .1rem .4rem; border: 1px solid var(--line); background: var(--surface); font-family: Helvetica, sans-serif; }
.play-screen { padding-top: clamp(1.5rem,3vw,3rem); }
.hud { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 1.2rem; border-block: 1px solid var(--line); }
.hud p { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0; padding: 1rem 1.2rem; border-right: 1px solid var(--line); }
.hud p:last-child { border-right: 0; } .hud small { font-size: .62rem; } .hud strong { font-family: Helvetica, sans-serif; font-size: clamp(1.2rem,2.6vw,2.2rem); }
.urgent { color: var(--red); }
.workbench { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(330px,.85fr); gap: 1.2rem; align-items: start; }
.question-panel, .prompt-preview { border: 1px solid var(--line); background: var(--surface); }
.question-panel { padding: clamp(1.5rem,3.5vw,3.5rem); }
.element-badge { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.5rem; }
.element-badge span { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--blue); font-size: .7rem; }
.element-badge b { font-size: 1.1rem; font-weight: 500; }
.step-label { margin: 0; color: var(--blue); font-size: .68rem; font-weight: 700; }
.question-panel h1 { margin: .7rem 0 1.5rem; font-size: clamp(2rem,4vw,4rem); line-height: 1.3; font-weight: 500; }
.bad-example { padding: 1rem 1.2rem; border-left: 4px solid var(--red); background: #f5e7e2; }
.bad-example small { color: var(--red); font-weight: 700; } .bad-example p { margin: .4rem 0 0; line-height: 1.7; }
.choice-list { display: grid; gap: .65rem; margin: 1.4rem 0 0; padding: 0; border: 0; }
.choice-list legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.choice-list button { min-height: 78px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; text-align: left; background: #fff; border-color: var(--line); }
.choice-list button span { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: var(--ink); font-family: Helvetica, sans-serif; }
.choice-list button b { font-weight: 500; line-height: 1.65; }
.choice-list button:hover { color: #fff; background: var(--ink); }
.choice-list button:hover span { color: var(--ink); background: #fff; }
.prompt-preview { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; padding: 1.5rem; background: var(--ink); color: #fff; }
.preview-kicker { margin: 0; color: #9db9ee; font-size: .65rem; font-weight: 700; }
.prompt-preview h2 { margin: .6rem 0 1rem; font-weight: 500; }
.prompt-preview pre { min-height: 520px; margin: 0; padding: 1.2rem; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85); font: .9rem/1.8 var(--font); }
.feedback { margin-top: 1rem; padding: 1.3rem; border: 1px solid var(--line); background: #e3e5df; }
.feedback > p:first-child { margin: 0; font-family: Helvetica, sans-serif; font-size: .68rem; letter-spacing: .12em; font-weight: 700; }
.feedback .correct { color: var(--green); } .feedback .incorrect { color: var(--red); }
.feedback h2 { margin: .55rem 0; font-size: 1.6rem; font-weight: 500; } .feedback p { line-height: 1.75; }
#next-button { color: #fff; background: var(--ink); }
.result-screen { max-width: 1250px; margin: 0 auto; }
.result-hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem,4vw,4rem); align-items: center; padding: 2rem 0 3rem; border-bottom: 1px solid var(--line); }
.result-hero > strong { color: var(--blue); font-family: Helvetica, sans-serif; font-size: clamp(7rem,16vw,14rem); line-height: .8; }
.result-hero h1 { margin: 0 0 .7rem; font-size: clamp(2rem,4vw,4rem); font-weight: 500; } .result-hero p { line-height: 1.8; }
.result-stats { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.result-stats p { display: grid; gap: .5rem; margin: 0; padding: 1.4rem; border-right: 1px solid var(--line); }
.result-stats p:last-child { border-right: 0; } .result-stats span { color: var(--muted); } .result-stats strong { font-family: Helvetica, sans-serif; font-size: 1.8rem; }
.final-prompt { margin-top: 2.5rem; padding: clamp(1.5rem,3vw,2.5rem); border: 1px solid var(--line); background: var(--surface); }
.final-prompt h2 { margin: .5rem 0 1.2rem; font-size: clamp(1.8rem,3vw,3rem); font-weight: 500; }
.final-prompt textarea { width: 100%; min-height: 520px; resize: vertical; padding: 1.2rem; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .95rem; line-height: 1.8; }
.final-prompt .primary-button { margin-top: 1rem; } #copy-status { min-height: 1.4em; color: var(--green); }
.mistakes { margin-top: 2.5rem; } .mistakes h2 { font-size: clamp(1.8rem,3vw,3rem); font-weight: 500; }
#mistake-list { display: grid; gap: 1px; padding: 1px; background: var(--line); }
#mistake-list article { padding: 1.4rem; background: var(--surface); } #mistake-list h3 { margin: 0 0 .7rem; }
#mistake-list p { margin: .35rem 0; line-height: 1.7; } #mistake-list p:nth-of-type(1) { color: var(--red); } #mistake-list p:nth-of-type(2) { color: var(--green); }
.result-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; } .result-actions .primary-button { margin-top: 0; }
footer { min-height: 64px; display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 1rem clamp(1rem,5vw,5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
@media (max-width: 980px) { .intro-screen { grid-template-columns: 1fr; } .workbench { grid-template-columns: 1fr; } .prompt-preview { position: static; max-height: none; } .prompt-preview pre { min-height: 320px; } }
@media (max-width: 620px) {
  .topbar { min-height: 58px; padding: 0 1rem; } .brand b, .status { font-size: 0; } .status span { display: block; }
  .screen { min-height: calc(100vh - 116px); padding: 2.5rem 1rem; } .intro-copy h1 { font-size: clamp(3.2rem,16vw,5.4rem); }
  .element-map { grid-template-columns: 1fr; } .element-map li:first-child { grid-column: auto; } .element-map li { min-height: 120px; }
  .hud p { min-height: 58px; display: grid; padding: .65rem; } .question-panel { padding: 1.2rem; } .question-panel h1 { font-size: 2rem; }
  .choice-list button { min-height: 88px; } .result-hero { grid-template-columns: 1fr; } .result-hero > strong { font-size: 8rem; }
  .result-stats { grid-template-columns: 1fr 1fr; } .result-stats p:nth-child(2) { border-right: 0; } .final-prompt textarea { min-height: 620px; }
  .result-actions button { flex: 1 1 100%; } footer { flex-direction: column; align-items: flex-start; padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } button:hover { transform: none; } }

.tools-return{display:inline-flex;align-items:center;gap:.35rem;color:inherit;font-size:.78rem;font-weight:700;text-decoration:none}
.tools-return:hover,.tools-return:focus-visible{text-decoration:underline}
.ai-secretary-note{max-width:46rem;margin-top:1rem;padding:.8rem 1rem;border-left:3px solid currentColor;font-size:.84rem;line-height:1.7;opacity:.8}
.related-exit{display:grid;gap:.7rem;margin-top:1.5rem;padding:1.2rem;border:1px solid currentColor}
.related-exit[hidden]{display:none!important}
.related-exit p{margin:0;font-weight:700}
.related-exit a{color:inherit;font-weight:700;text-underline-offset:.25em}
@media(max-width:620px){.tools-return{font-size:.72rem}.related-exit{padding:1rem}}
