:root{color-scheme:light;--bg:#f6f5f1;--ink:#252321;--muted:#625d57;--line:#dedad3;--accent:#a72d26;--paper:#fffefa}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--bg);font:500 15px/1.45 Arial,Helvetica,sans-serif}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.topbar{height:81px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,70px);border-bottom:1px solid var(--line);background:var(--paper)}
.brand{line-height:0}
.brand img{width:136px;height:auto}
.top-actions,.scene-actions{display:flex;align-items:center;gap:12px}
.plain,.outline{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;background:transparent;border:0;border-radius:8px;padding:8px 12px}
.outline{border:1px solid var(--line);background:var(--paper)}
.plain:hover,.outline:hover{color:var(--accent);background:#eeeae4}
.workspace{width:min(100%,1600px);min-height:calc(100svh - 81px);margin:auto;padding:clamp(28px,6vh,74px) clamp(20px,4vw,70px) 34px;display:grid;grid-template-columns:minmax(123px,.65fr) minmax(0,3fr) minmax(226px,1.28fr);gap:clamp(18px,3vw,53px);align-items:start}
.passport{padding-top:4px}
.passport h2,.result h2{font-size:14px;margin:0;font-weight:700}
.steps{padding:0;list-style:none;margin:23px 0;display:grid;gap:21px;color:var(--muted)}
.steps li{display:flex;gap:10px;align-items:flex-start}
.steps li>span{display:grid;place-items:center;width:25px;height:25px;flex:none;border:1px solid var(--line);border-radius:50%;font-size:10px;letter-spacing:.03em}
.steps li>div{padding-top:2px}
.steps .active{color:var(--ink);font-weight:700}
.steps .active>span{background:var(--accent);border-color:var(--accent);color:white}
.steps small{display:block;color:var(--muted);font-weight:500;max-width:14ch}
.scene{min-width:0}
.eyebrow{display:flex;align-items:center;gap:9px;color:var(--accent);font-size:11px;font-weight:700;letter-spacing:.15em;margin:0 0 15px}
.eyebrow span{width:18px;height:1px;background:currentColor}
h1{font-size:clamp(36px,4.35vw,76px);letter-spacing:-.064em;line-height:1.02;margin:0;font-weight:700}
.intro{color:var(--muted);margin:16px 0 26px;max-width:55ch}
.task-search{margin:0 0 26px;padding:17px;background:var(--paper);border:1px solid var(--line);border-radius:11px}
.task-search label{display:block;font-weight:700;margin-bottom:9px}
.search-row{display:flex;gap:8px}
.search-row input{min-width:0;flex:1;height:52px;padding:0 14px;border:1px solid #bdb7ad;border-radius:7px;background:#fff;font-size:15px}
.search-row input::placeholder{color:#77716a}
.search-submit{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 17px;border:1px solid var(--accent);border-radius:7px;background:var(--accent);color:white;font-weight:700;white-space:nowrap;transition:background .16s,border-color .16s}
.search-submit:hover{background:#84221d;border-color:#84221d}
.search-submit:disabled{cursor:wait;opacity:.72}
.search-hint{margin:8px 0 0;color:var(--muted);font-size:12px}
.search-feedback{margin-top:11px;padding-top:11px;border-top:1px solid var(--line)}
.search-feedback p{margin:0 0 8px;color:var(--muted);font-size:13px}
.search-suggestions{display:flex;flex-wrap:wrap;gap:7px}
.suggestion{min-height:40px;padding:7px 11px;border:1px solid var(--line);border-radius:7px;background:#fff;text-align:left;font-size:13px;transition:border-color .16s,background .16s}
.suggestion:hover{border-color:var(--accent);background:#faf1eb}
.choice-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 10px}
.choice-heading h2{margin:0;font-size:14px}
.choice-heading>span{color:var(--muted);font-size:11px;letter-spacing:.04em}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.choice{min-height:65px;background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:10px 12px;display:grid;grid-template-columns:32px minmax(0,1fr) 16px;align-items:center;gap:9px;text-align:left;font-weight:700;transition:background .16s,border-color .16s}
.choice:hover{border-color:var(--accent);background:#faf1eb}
.choice svg{width:29px;height:29px;stroke:var(--accent);fill:none;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.arrow{color:var(--muted);text-align:right}
.choice:hover .arrow{color:var(--accent)}
.scene-actions{margin-top:12px;flex-wrap:wrap}
.scene-actions .plain{padding-left:0;margin-right:8px;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#c3b9ae}
.result{overflow:hidden;background:#ece9e2;border:1px solid var(--line);border-radius:12px;min-width:0}
.result-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:17px 18px;border-bottom:1px solid var(--line)}
.result-head i{width:7px;height:7px;background:var(--accent);border-radius:50%}
.result-content{padding:19px 18px 3px}
.count{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.count strong{font-size:clamp(45px,5vw,71px);letter-spacing:-.08em;line-height:1}
.count span{font-size:13px;color:var(--muted)}
.result-content p{font-size:13px;color:var(--muted);margin:10px 0}
.machine{aspect-ratio:1.08;display:grid;place-items:center;padding:12px;background:radial-gradient(ellipse at 53% 57%,#d1c9bd 0,transparent 71%)}
.machine img{width:100%;height:auto;max-height:100%;object-fit:contain;filter:drop-shadow(0 13px 10px #33271f26)}
#panel{background:var(--paper);border:1px solid var(--line);border-radius:14px;color:var(--ink);padding:20px}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dialog-head h2{margin:0;font-size:23px}
.close{width:44px;font-size:22px}
#panel label{display:grid;gap:6px;margin:16px 0}
#panel input,#panel textarea{width:100%;background:#fff;border:1px solid var(--line);border-radius:6px;min-height:44px;padding:9px}
#panel .outline{margin:5px 0;text-align:left}
@media(min-width:1051px) and (min-height:700px){body{height:100svh;overflow:hidden}.workspace{height:calc(100svh - 81px);overflow:auto}}
@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,2fr) minmax(210px,1fr)}.passport{grid-column:1/-1}.passport h2{display:none}.steps{display:flex;margin:0;gap:15px;flex-wrap:wrap}.steps small{display:none}}
@media(max-width:650px){.desktop{display:none}.topbar{height:62px;padding:0 14px}.brand img{width:101px}.top-actions{gap:4px}.top-actions button{padding-inline:7px;font-size:12px}.workspace{height:calc(100svh - 62px);min-height:0;overflow:auto;display:flex;flex-direction:column;gap:14px;padding:16px 14px 0}.passport,.scene,.result{width:100%}.steps{gap:8px;flex-wrap:nowrap;justify-content:space-between;font-size:10px}.steps li{gap:3px;white-space:nowrap;align-items:center}.steps li>span{width:17px;height:17px;font-size:8px}.steps li>div{padding:0}.eyebrow{margin-bottom:9px}.intro{margin:11px 0 16px;font-size:13px}h1{font-size:clamp(33px,9vw,54px)}.task-search{margin-bottom:20px;padding:12px}.task-search label{font-size:13px}.search-row{flex-direction:column;gap:8px}.search-row input{width:100%;height:48px;font-size:16px}.search-submit{width:100%;min-height:48px}.choice-heading{margin-bottom:8px}.choice-heading h2{font-size:13px}.choice{min-height:55px;grid-template-columns:22px minmax(0,1fr) 10px;padding:7px;gap:5px;font-size:12px}.choice svg{width:22px;height:22px}.scene-actions{gap:7px;margin-top:8px;font-size:12px}.result{position:sticky;bottom:0;margin-top:auto;flex:none;background:#ece9e2}.result-head{padding:8px 12px}.result-content{padding:7px 12px}.result-content p{margin:3px 0}.count strong{font-size:30px}.machine{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
.scene-actions[hidden]{display:none}
.choice[aria-pressed=true]{border-color:var(--accent);background:#faf1eb}
.choices[hidden],#panel[hidden]{display:none}
.task-search[hidden],.choice-heading[hidden],.search-feedback[hidden]{display:none}
