.rev{padding:40px 0 72px}
.screen{display:flex;flex-direction:column;gap:28px}
.screen[hidden]{display:none}
.rev h1{margin:8px 0 0;font-size:clamp(30px,4.2vw,44px);line-height:1.1;letter-spacing:-.02em}
.rev h1:focus{outline:none}
.rev h2{margin:0;font-size:22px}
.rev .lead{margin:0;max-width:720px;color:var(--muted);font-size:16px}
.rev .note{margin:0;color:var(--muted);font-size:13px}
.rev button{font:inherit;cursor:pointer}
.rev :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px}
.rev input[type=text]{min-height:44px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;font-size:16px;padding:0 12px;width:100%}

.intro{max-width:760px;gap:18px}
.start{display:flex;flex-direction:column;gap:8px;max-width:360px;margin-top:8px}
.start label{font-size:14px;color:var(--text)}
.start label span{color:var(--muted)}
.start .button{margin-top:8px;align-self:flex-start;min-width:160px;cursor:pointer;border:0}
.status{margin:0;font-size:14px;color:var(--muted)}

.steps{display:flex;flex-direction:column;gap:10px}
.steps-text{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted)}
.segments{display:flex;gap:6px}
.segments span{flex:1;height:4px;border-radius:2px;background:var(--line)}
.segments span.on{background:var(--accent)}
.room-intro{display:flex;flex-wrap:wrap;gap:28px;align-items:center}
.room-intro img{width:260px;height:260px;object-fit:cover;border-radius:14px;border:1px solid var(--line);background:var(--panel)}
.room-text{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:12px}
.brief{margin:0;font-size:17px;font-weight:500}
.plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.plan{padding:20px;display:flex;flex-direction:column;gap:14px;min-width:0}
.plan svg{width:100%;max-width:420px;height:auto;align-self:center;display:block}
.rows{list-style:none;margin:0;padding:0}
.rows li{display:flex;gap:12px;padding:10px 0;border-top:1px solid var(--line);min-width:0}
.rows .num{flex:none;width:24px;height:24px;border-radius:50%;background:var(--accent);color:var(--bg);font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.rows .t{font-weight:650;font-size:14px;overflow-wrap:anywhere}
.rows .t span{font-weight:400;color:var(--muted)}
.rows .f{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.pick{padding:24px;display:flex;flex-wrap:wrap;gap:20px 24px;align-items:flex-end;justify-content:space-between}
.pick fieldset{border:0;margin:0;padding:0;flex:1 1 480px;min-width:0;display:flex;flex-direction:column;gap:10px}
.pick legend{font-size:20px;font-weight:650;padding:0;margin-bottom:12px}
.pick label{font-size:13px;color:var(--muted);margin-top:4px}
.choices{display:flex;flex-wrap:wrap;gap:8px}
.choices button,.nav-buttons button{min-height:48px;border-radius:12px;border:1px solid var(--line);background:var(--panel);color:var(--text);font-size:15px;font-weight:500;padding:0 20px}
.choices button{min-width:150px}
.choices button[aria-pressed=true]{border-color:var(--accent);background:var(--soft);color:var(--accent);font-weight:650}
.nav-buttons{display:flex;gap:10px}
.nav-buttons .next{background:var(--accent);border-color:var(--accent);color:var(--bg);font-weight:650}
.nav-buttons button:disabled{opacity:.45;cursor:default}

.finish{max-width:960px}
.answer{padding:24px;display:flex;flex-direction:column;gap:16px}
.answer-top{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.answer .label{display:block;font-size:13px;color:var(--muted)}
#code{display:block;font-family:ui-monospace,'SF Mono',Menlo,monospace;font-size:clamp(20px,4vw,28px);letter-spacing:.04em;overflow-wrap:anywhere}
.copy{min-height:48px;border-radius:12px;border:1px solid var(--accent);background:var(--soft);color:var(--accent);font-weight:650;padding:0 20px}
#answer-text{margin:0;padding:14px;border-radius:10px;background:var(--bg);border:1px solid var(--line);font-family:ui-monospace,'SF Mono',Menlo,monospace;font-size:13px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;user-select:all}
.reveal{display:flex;flex-direction:column;gap:12px}
.reveal[hidden]{display:none}
.table-wrap{overflow-x:auto}
.reveal table{width:100%;border-collapse:collapse;font-size:15px}
.reveal th,.reveal td{text-align:left;padding:12px 16px;border-top:1px solid var(--line)}
.reveal thead th{border-top:0;color:var(--muted);font-size:13px;font-weight:500}
.reveal tbody th{font-weight:500}
.reveal .director{color:var(--accent)}
.link{background:none;border:0;padding:0;color:var(--accent);text-decoration:underline;font-size:13px}

@media(max-width:860px){
.plans{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:720px){
.rev{padding-top:24px}
.screen{gap:20px}
.room-intro img{width:100%;height:200px}
.plan{padding:16px}
.pick{padding:18px}
.pick legend{font-size:17px}
.choices button{flex:1 1 0;min-width:0;padding:0 8px}
.nav-buttons{width:100%}
.nav-buttons button{flex:1}
.reveal th,.reveal td{padding:10px 10px}
}
