/* HalfScripted V7-derived staging shell – DEV326 */
:root{--hs-ink:#071c20;--hs-paper:#dcfef2;--hs-accent:#a7ed72;--hs-line:#315158;--hs-panel:#102d31}
body{font-family:Inter,Arial,sans-serif}body:not(.light){color-scheme:dark}
select,select:focus{background:var(--hs-panel)!important;color:var(--hs-paper)!important;border:1px solid var(--hs-line)!important;border-radius:8px!important;padding:10px 12px!important;accent-color:var(--hs-accent)}
select option{background:#102d31!important;color:#dcfef2!important;padding:10px!important}
body.light select,body.light select option{background:#fff!important;color:#092c2e!important;border-color:#8ab9ae!important}
button.primary,.inv-cta{background:var(--hs-accent)!important;color:var(--hs-ink)!important;border:0;font-weight:800}
footer a{color:inherit;text-underline-offset:4px}textarea{background:#0d252a;color:#e6fff1;border:1px solid #42666b;border-radius:8px;padding:13px;font:inherit;box-sizing:border-box;display:block;width:100%;max-width:100%;min-height:100px;line-height:1.5}
.report-form{border:1px solid #42666b;padding:18px;margin:23px 0;background:#102d31;border-radius:10px}.report-form summary{font-weight:800;cursor:pointer}.report-form p{max-width:800px}.report-form button{margin-top:10px}
.report-entry{background:#15383d;border:1px solid #42666b;padding:22px;margin:13px 0;border-radius:12px}.report-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.report-entry textarea{margin:10px 0}
.switch-row{display:flex;align-items:center;gap:12px;font-weight:750;line-height:1.5}.switch-row input{accent-color:var(--hs-accent);width:19px;height:19px;flex-shrink:0}.switch-row+p{margin:0 0 18px 32px}
#generatorInvitePanel{margin:20px 0;border:1px solid var(--hs-line);background:var(--hs-panel);padding:20px;border-radius:10px}#generatorInvitePanel .invite-note{color:#a7ed72}
/* DEV389: public invite page is part of the canonical dark / lime V7 identity.
   Keep all styles external for the strict CSP. */
.invite-screen{
 --inv-lime:#c9ff4e;--inv-ink:#081d20;--inv-panel:#102c30;--inv-sub:#aec8c1;
 margin:0;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;
 background:radial-gradient(ellipse at 84% 12%,rgba(41,106,91,.30),transparent 48%),#081d20;
 color:#e7f9ef;font-family:Inter,'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased;
}
.invite-screen *{box-sizing:border-box}
.invite-screen [hidden]{display:none!important}
.invite-screen a,.invite-screen button{-webkit-tap-highlight-color:transparent}
.invite-screen a:focus-visible,.invite-screen button:focus-visible{outline:3px solid #75e8d5;outline-offset:4px}
.inv-header{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:14px;
 padding:13px clamp(20px,5vw,70px);background:var(--inv-lime);border-bottom:1px solid rgba(6,32,24,.16);
 color:#0b2923}
.inv-header .inv-brand{display:flex;align-items:center;flex:0 1 228px;min-width:0;max-width:228px}
.inv-header .inv-brand img{display:block;width:100%;height:auto;max-height:57px;object-fit:contain}
.inv-header .inv-context{font-size:11px;font-weight:850;letter-spacing:.095em;line-height:1.35;text-align:right;white-space:nowrap;color:#15382b}
.inv-content{width:min(100%,1180px);padding:clamp(48px,8vh,105px) clamp(22px,4vw,62px) 78px;margin:0 auto;flex:1}
.inv-layout{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(320px,.96fr);gap:clamp(30px,5vw,76px);align-items:start}
.inv-lead{min-width:0;padding-top:9px}
.inv-lead .overline{display:flex;align-items:center;gap:13px;font-size:11px;font-weight:900;letter-spacing:.12em;color:var(--inv-lime);line-height:1.5}
.inv-lead .overline::before{content:"";display:block;width:37px;height:4px;flex:none;border-radius:5px;background:var(--inv-lime)}
.inv-lead h1{font-size:clamp(40px,4.75vw,70px);line-height:1.045;letter-spacing:-.045em;font-weight:860;margin:27px 0 22px;color:#e7f9ef;overflow-wrap:break-word}
.inv-description{font-size:clamp(15px,1.3vw,17px);line-height:1.72;max-width:550px;margin:0;color:var(--inv-sub)}
.inv-panel{min-width:0;margin:0;padding:clamp(22px,3vw,38px);background:var(--inv-panel);border:1px solid #37575a;border-radius:12px;box-shadow:0 14px 40px rgba(0,0,0,.08)}
.inv-panel::before{content:"";display:block;width:34px;height:4px;border-radius:5px;background:var(--inv-lime);margin-bottom:28px}
.inv-panel h2{margin:0 0 17px;line-height:1.2;letter-spacing:-.035em;font-size:clamp(23px,2.45vw,32px);color:#e7f9ef}
.inv-panel p{font-size:14px;line-height:1.65;margin:0 0 20px;color:var(--inv-sub);overflow-wrap:anywhere}
.inv-cta,.inv-panel button{display:inline-flex;align-items:center;justify-content:center;min-height:49px;max-width:100%;
 margin:5px 0 17px;padding:13px 20px;border:1px solid #c9ff4e;border-radius:9px;
 background:var(--inv-lime)!important;color:#092321!important;font-size:14px;line-height:1.3;
 font-family:inherit;font-weight:850;letter-spacing:-.01em;text-decoration:none;cursor:pointer}
.inv-cta:hover,.inv-panel button:hover:not(:disabled){filter:brightness(1.07)}
.inv-panel button:disabled{opacity:.5;cursor:not-allowed}
.inv-panel .back-link{display:table;width:fit-content;color:#b5d6d0;text-underline-offset:4px;font-size:13px;margin:5px 0 0}
.inv-panel .back-link:hover{color:#fff}
.inv-foot{font-size:12px!important;line-height:1.5;color:#8faeab;margin:30px 0 0}
.invite-screen footer{padding:22px clamp(20px,5vw,70px);border-top:1px solid #315158;text-align:right;font-size:12px;color:#b5d6d0}
.invite-screen footer a{text-decoration:none;color:inherit;font-weight:800}
@media(max-width:850px){
 .inv-layout{grid-template-columns:1fr;gap:29px;max-width:650px;margin:0 auto}
 .inv-content{padding-top:47px;padding-bottom:60px}
 .inv-lead{padding-top:0}
 .inv-lead h1{font-size:clamp(35px,6.8vw,52px);margin:21px 0 18px}
 .inv-description{font-size:15px;line-height:1.67}
 .inv-foot{max-width:650px;margin:23px auto 0}
}
@media(max-width:520px){
 .inv-header{min-height:76px;padding:12px 19px;gap:9px}
 .inv-header .inv-brand{flex-basis:190px;max-width:190px}
 .inv-header .inv-context{font-size:9px;letter-spacing:.06em}
 .inv-content{padding:42px 23px 51px}
 .inv-lead .overline{font-size:10px;gap:10px}
 .inv-lead .overline::before{width:27px;height:3px}
 .inv-lead h1{font-size:clamp(36px,9.6vw,45px);line-height:1.075;margin:20px 0 16px}
 .inv-description{font-size:14px;line-height:1.68}
 .inv-panel{padding:24px 22px}
 .inv-panel::before{margin-bottom:21px}
 .inv-panel h2{font-size:25px}
 .inv-panel p{font-size:14px;margin-bottom:19px}
 .inv-cta,.inv-panel button{width:100%;margin-top:5px;text-align:center}
 .invite-screen footer{padding:19px 23px}
}
@media(max-width:355px){.inv-header .inv-brand{flex-basis:160px}.inv-header .inv-context{font-size:8px}}

.hs-footer{max-width:1400px;margin:60px auto 0;padding:22px 30px;border-top:1px solid #315158;color:#9fbab8;font-size:12px;text-align:right}
.hs-footer a{color:inherit}.hs-generator-report{margin:30px 0;padding:18px 22px;border:1px solid #42666b;background:#102d31;color:#dcfef2;border-radius:10px}
.hs-generator-report summary{cursor:pointer;font-weight:850}.hs-generator-report textarea{margin:15px 0 10px;min-height:150px}
.hs-generator-report p{line-height:1.5}.hs-generator-report button{background:#a7ed72;color:#071c20;border:0;border-radius:7px;padding:12px 18px;font-weight:800;cursor:pointer}

/* Final-story-format mission sheet: narrative, brief, steps, objective, cast */
#detailBody .hs-mission-hero{background:linear-gradient(135deg,#0b2b30,#153d3c);border:1px solid #315158;border-radius:14px;padding:clamp(22px,4vw,40px);margin-top:16px;color:#dcfef2}
.hs-mission-meta{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:28px}.hs-mission-meta span{border:1px solid #4e7773;border-radius:100px;padding:6px 11px;color:#b8ded0;font-size:11px;font-weight:800}
.hs-eyebrow{letter-spacing:.12em;font-size:10px;font-weight:900;color:#a7ed72;margin:0 0 12px}.hs-story{font-size:clamp(17px,2vw,22px);line-height:1.55;max-width:910px;margin:0 0 31px!important;letter-spacing:-.012em}.hs-direct{font-size:14px;line-height:1.7;max-width:950px;margin:0!important}
.hs-mission-columns{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.8fr);gap:18px;align-items:start;margin:18px 0}
.hs-step-panel,.hs-info-card{background:#122d32;border:1px solid #37565c;border-radius:12px;padding:clamp(18px,2.2vw,29px)}.hs-step-list{padding:0;margin:4px 0;list-style:none}.hs-step-row{display:flex;gap:20px;padding:21px 0;border-bottom:1px solid #35535a}.hs-step-row:last-child{border-bottom:0;padding-bottom:0}.hs-num{font-size:13px;font-weight:900;color:#a7ed72;min-width:24px}.hs-step-copy{min-width:0}.hs-step-copy strong{display:block;font-size:16px;margin-bottom:7px}.hs-step-copy p{margin:0!important;line-height:1.7;color:#c1d8d5;font-size:14px;overflow-wrap:anywhere}.hs-mission-aside{display:flex;flex-direction:column;gap:15px}.hs-info-card p{line-height:1.65;margin:3px 0;color:#d4e8dc}.hs-player{display:grid;grid-template-columns:30px minmax(0,1fr);gap:5px 12px;padding:10px 0;border-bottom:1px solid #35535a;align-items:center}.hs-player:last-child{border:0}.hs-player b{color:#a7ed72;font-size:12px}.hs-player span{overflow-wrap:anywhere}.hs-player small{grid-column:2;color:#a7c8c4}.hs-character-task{border-bottom:1px solid #315158;padding:11px 0}.hs-detailed-conditions{padding:20px;border:1px solid #37565c;border-radius:11px;margin:18px 0;background:#10272b;white-space:pre-line}.hs-detailed-conditions summary{cursor:pointer;font-weight:800}.hs-detailed-conditions p{line-height:1.65}.hs-mission-hero+.hs-mission-columns{margin-top:17px}
@media(max-width:850px){.hs-mission-columns{grid-template-columns:1fr}.hs-mission-aside{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}}

/* DEV326 renderer alignment for frozen DEV325 generator. */
#result{color:#dcfef2}#result .hs-result-head{padding:28px 31px;border:1px solid #315158;background:#102e32;border-radius:13px;margin-bottom:18px}
#result .hs-result-head h2{font-size:clamp(26px,3.6vw,46px);line-height:1.1;letter-spacing:-.04em;margin:0 0 13px}
#result .hs-result-head #directwrap{background:#14393a;color:#dcfef2;border:0;border-left:3px solid #a7ed72;border-radius:8px;margin-top:22px;padding:22px!important}
#result .hs-result-head #directwrap b{font-size:11px;letter-spacing:.12em;color:#a7ed72;text-transform:uppercase}
#result .hs-result-head #direct{line-height:1.75;font-size:14px}
#result .hs-result-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.8fr);gap:16px;align-items:start}
#result .hs-result-primary,#result .hs-result-secondary>*{border:1px solid #315158;background:#102e32;border-radius:12px;padding:22px}
#result .hs-result-primary h3{margin:0 0 20px;font-size:17px;color:#dcfef2}
#result .hs-result-secondary{display:flex;flex-direction:column;gap:14px}
#result #short>div{padding:14px 4px!important;border-bottom:1px solid #315158!important;background:transparent!important}
#result #short>div:last-child{border-bottom:0!important}
#result .hs-result-secondary .goal{margin:0!important;background:#102e32!important;color:#dcfef2!important;border:1px solid #315158!important}
#result .hs-result-secondary .goal b,#result .hs-result-secondary h3{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#a7ed72}
#result #expandedwrap{padding:18px 22px;margin-top:18px;border:1px solid #315158;border-radius:12px;background:#0c2629}
@media(max-width:850px){#result .hs-result-grid{grid-template-columns:1fr}#result .hs-result-head{padding:20px}}
