:root{color-scheme:dark;--base:#0c0a12;--surface:#13101b;--line:#292235;--muted:#aaa1ba;--text:#f4effb;--accent:#c48bff;--mono:"IBM Plex Mono",monospace;--font:"Space Grotesk",system-ui,sans-serif;--sidebar:228px}
*{box-sizing:border-box}body{margin:0;background:var(--base);color:var(--text);font:16px/1.5 var(--font)}button,input,select,textarea{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}a{text-decoration:none;color:inherit}button{color:inherit}button,a,select,summary{cursor:pointer}a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #d6a9ff;outline-offset:3px}
h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.1}svg{width:18px;height:18px;display:block}ul{list-style:none;padding:0;margin:0}[hidden]{display:none!important}
.sr,.skip:not(:focus){position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.skip:focus{position:fixed;top:8px;left:8px;z-index:5;padding:10px;background:#211632}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#100d17;border-right:1px solid #211a2c;display:flex;flex-direction:column;padding:29px 19px 23px;z-index:2}.brand{display:flex;align-items:center;gap:10px;padding-left:4px;font-size:23px;font-weight:700;letter-spacing:-.065em;line-height:1}.brand small{display:block;font:500 9px/1.3 var(--mono);letter-spacing:.15em;color:#a999bb;margin-top:7px}.brand-glyph{width:39px;height:39px;border:1px solid #654581;border-radius:11px;display:grid;place-items:center;background:#251835;color:#d5a8ff;box-shadow:inset 0 0 15px #7541a72a}.brand-glyph svg{width:22px;height:22px}.sidebar nav{margin-top:55px}.nav-label{font:500 11px var(--mono);letter-spacing:.15em;color:#887a9a;margin:0 11px 13px}.nav-link{display:flex;align-items:center;gap:11px;padding:10px 11px;border:1px solid transparent;border-radius:8px;margin-bottom:5px;color:#b6aec5;font-size:15px;font-weight:500}.nav-link:hover{background:#1b1426;color:#f0e5ff}.nav-link[aria-current=page]{color:#e2beff;background:#241832;border-color:#402a54}.sidebar-bottom{margin-top:auto;padding:16px 6px 0;border-top:1px solid #292135}.sidebar-bottom p{font-size:12px;color:#9c8daa;margin-top:5px}.demo-mark{font:500 11px var(--mono);color:#d8b9ff;display:flex;align-items:center;gap:8px}.demo-mark span{width:7px;height:7px;background:#bc7bff;border-radius:100%;box-shadow:0 0 9px #b778f9}.count{margin-left:auto;font:12px var(--mono);color:#d9acf9}
main{margin-left:var(--sidebar);min-height:100vh;display:flex;flex-direction:column}.topbar{height:71px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid #211a2c}.breadcrumb{display:flex;gap:11px;align-items:center;font-size:14px;color:#a096af}.breadcrumb strong{color:#ece2f6;font-weight:600}.slash{color:#736584}.content{width:100%;max-width:1470px;margin:0 auto;padding:29px 34px 44px;flex:1}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:8px;border:1px solid transparent;padding:11px 16px;min-height:44px;font-weight:700;white-space:nowrap;transition:background .18s,border-color .18s,box-shadow .18s}.button.small{font-size:14px;min-height:37px;padding:7px 12px}.button.small svg{width:16px;height:16px}.primary{background:#ba7bf5;color:#160d22;border-color:#d3a2ff;box-shadow:0 6px 25px #9a4ceb35}.primary:hover{background:#d3a4ff;box-shadow:0 6px 25px #b571fc57}.secondary{color:#ead4ff;background:#1e152a;border-color:#49345c}.secondary:hover{background:#332141;border-color:#80629d}
.hero{position:relative;isolation:isolate;min-height:378px;display:flex;align-items:center;overflow:hidden;border-radius:16px;border:1px solid #403052;background:#130e21}.hero::before,.hero::after{content:"";position:absolute;inset:0;z-index:-1}.hero::before{background:radial-gradient(ellipse at 72% 45%,#462055,transparent 68%),url("assets/hero.webp") right 42%/72% auto no-repeat;background-blend-mode:screen}.hero::after{background:linear-gradient(90deg,#130e20 2%,#130e20 22%,#130e20ee 32%,#130e2055 48%,transparent 65%),linear-gradient(0deg,#110b1bd6,transparent 22%)}.hero-copy{padding:40px;max-width:590px}.eyebrow{display:flex;align-items:center;gap:8px;font:600 11px var(--mono);letter-spacing:.18em;color:#d4a6fc}.eyebrow svg{width:15px;height:15px}.hero h1{font-size:clamp(54px,6.2vw,98px);letter-spacing:-.09em;line-height:.91;margin:18px 0 16px}.hero h1 em{font-style:normal;color:#cb96ff}.intro{max-width:345px;color:#d1c4dd;margin-bottom:23px;font-size:16px}.hero-caption{position:absolute;right:17px;bottom:15px;display:flex;align-items:center;gap:7px;color:#dfc6f5;font:500 10px var(--mono);letter-spacing:.14em;padding:6px 9px;border:1px solid #886c9b70;border-radius:6px;background:#110d1bc9}.hero-caption svg{width:15px;height:15px}
.roster{margin-top:31px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:17px}.section-head h2,.page-heading h1{letter-spacing:-.055em}.section-head h2{font-size:33px}.section-head p,.page-heading>p:last-child{color:var(--muted);margin-top:5px}.filter select{width:auto;min-width:154px;font-size:14px;margin:0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{background:var(--surface);border:1px solid #30263c;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}.portrait{height:162px;position:relative;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--tint) 30%,#14101f),#100d18 80%);overflow:hidden}.portrait img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 40%}.portrait:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#15101b7a,transparent 40%);pointer-events:none}.portrait-icon{display:grid;place-items:center;height:100%;color:var(--tint)}.portrait-icon svg{width:55px;height:55px;filter:drop-shadow(0 0 15px var(--tint))}.archetype{position:absolute;bottom:10px;left:12px;z-index:1;background:#100c19dd;border:1px solid color-mix(in srgb,var(--tint) 60%,#100c19);color:var(--tint);padding:4px 7px;border-radius:4px;font:500 10px var(--mono);letter-spacing:.08em;text-transform:uppercase}.card-copy{padding:14px;display:flex;flex-direction:column;align-items:start;flex:1}.card h3{font-size:23px;letter-spacing:-.035em}.card p{color:var(--muted);font-size:14px;margin:5px 0 13px;flex:1;overflow-wrap:anywhere}.card h3,.line strong,.saved-entry summary{overflow-wrap:anywhere}.card .button{min-height:34px;padding:6px 9px;font-size:13px}.card .button svg{width:14px;height:14px}
footer{max-width:1470px;width:100%;margin:0 auto;border-top:1px solid #211a2c;display:flex;justify-content:space-between;gap:12px;padding:15px 34px;color:#a096af;font-size:13px}footer span:first-child{color:#d7c9e4;font-weight:700}.page-heading{padding:28px 0 24px}.page-heading h1{font-size:clamp(37px,6vw,65px);margin-top:10px}.studio-grid{display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,1.55fr);gap:17px;align-items:start}.panel,.saved-entry{border:1px solid #352842;background:var(--surface);border-radius:12px;padding:20px}.panel h2{font-size:24px;letter-spacing:-.04em}.panel label,dialog label{display:block;font-size:14px;font-weight:600;margin:16px 0 5px}.panel label span,dialog label span{font-weight:400;color:var(--muted)}input,select,textarea{border-radius:7px;border:1px solid #493758;background:#100d17;color:var(--text);width:100%;padding:9px 10px;min-height:42px}select{appearance:none;padding-right:33px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23cbabdf' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-size:17px;background-position:right 9px center;background-repeat:no-repeat}textarea{resize:vertical}.panel .primary,dialog .primary{margin-top:19px}.help{color:var(--muted);font-size:13px;margin-top:10px}.empty{display:grid;place-content:center;justify-items:center;text-align:center;min-height:270px;gap:12px;color:var(--muted)}.empty svg{width:29px;height:29px;color:var(--accent)}.empty h2{color:var(--text)}.empty p{max-width:35ch}.scene-meta{color:#d5adf7;font:500 12px var(--mono);margin:9px 0 15px}.line{padding:11px 12px;border-left:2px solid #915bb6;background:#1d1528;border-radius:0 7px 7px 0;margin:0 0 8px;color:#ded3e8}.line strong{display:block;color:#eccdff;margin-bottom:4px;font-size:13px}.line:nth-child(even){border-left-color:#cf78ac}.outcome{border-top:1px solid var(--line);padding-top:12px;margin-top:16px;color:#dcc9e9}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.saved-entry{margin-bottom:10px}.saved-entry summary{font-weight:700}.saved-entry summary::marker{color:var(--accent)}.saved-entry .danger{border-color:transparent;background:transparent;color:#e3a5bf}.saved-entry .danger:hover{background:#331925}
dialog{max-width:min(440px,calc(100% - 24px));width:100%;background:#181121;color:var(--text);border:1px solid #51386a;border-radius:13px;padding:22px;box-shadow:0 16px 90px #090610}dialog::backdrop{background:#06040bbd;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-head+p{color:var(--muted);margin-top:7px}.icon-button{border:1px solid #4a365a;background:#21162c;border-radius:6px;padding:6px}.icon-button:hover{background:#3b2555}.toast{position:fixed;right:20px;bottom:20px;z-index:4;background:#282036;color:#f2deff;border:1px solid #614575;border-radius:8px;padding:10px 14px;box-shadow:0 8px 24px #05030780}.toast:empty{display:none}
@media(max-width:1050px){:root{--sidebar:190px}.content,.topbar,footer{padding-left:24px;padding-right:24px}.hero-copy{padding:32px}.hero::before{background-size:auto,82% auto}.hero h1{font-size:clamp(55px,7.6vw,84px)}}
@media(max-width:760px){main{margin:0}.sidebar{position:sticky;top:0;width:100%;padding:10px 15px 0;border-right:0;border-bottom:1px solid #2a2037}.brand{font-size:20px}.brand small{margin-top:4px}.brand-glyph{width:34px;height:34px}.sidebar nav{margin-top:10px;display:flex;gap:4px;overflow:auto}.nav-label,.sidebar-bottom{display:none}.nav-link{margin:0 0 6px;white-space:nowrap;padding:6px 8px;font-size:13px;gap:6px}.nav-link svg{width:14px;height:14px}.topbar{height:54px}.content{padding-top:15px}.hero{min-height:340px}.hero::before{background-size:auto,auto 100%}.hero::after{background:linear-gradient(90deg,#130e20 1%,#130e20ee 29%,#130e2066 72%,#130e2020),linear-gradient(0deg,#130e20c2,transparent 25%)}.hero-copy{padding:25px}.hero h1{font-size:clamp(49px,10vw,70px)}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-grid{grid-template-columns:1fr}}
@media(max-width:460px){.topbar,.content,footer{padding-left:13px;padding-right:13px}.hero{min-height:316px}.hero-copy{padding:18px}.hero h1{font-size:53px}.intro{font-size:15px;max-width:235px}.hero-caption{right:8px;bottom:8px;font-size:9px}.section-head{align-items:start;flex-direction:column;gap:9px}.section-head h2{font-size:29px}.cards{grid-template-columns:1fr}.portrait{height:180px}.button.small{padding-inline:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.rewrite-note{padding:10px 12px;margin:0 0 13px;border:1px solid #51386a;background:#231830;color:#eed8ff;border-radius:7px}
.learning{margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.learning h3{font-size:17px}.learning .help{margin-top:6px}.learning .actions{margin-top:10px}.learning button[aria-pressed=true]{background:#413056;border-color:#ba7bf5}
.sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:6px}
.sidebar-header .brand{min-width:0;font-size:20px}
.sidebar-toggle{flex:none;display:grid;place-items:center}
body.sidebar-collapsed{--sidebar:68px}
body.world-view .content{max-width:none}
.sidebar-collapsed .sidebar{padding-left:9px;padding-right:9px}
.sidebar-collapsed .sidebar-header{flex-direction:column;gap:12px}
.sidebar-collapsed .brand{padding:0}
.sidebar-collapsed :is(.brand-text,.nav-label,.nav-text,.sidebar-bottom,.count){display:none}
.sidebar-collapsed .sidebar nav{margin-top:25px}
.sidebar-collapsed .nav-link{justify-content:center;padding:10px}
.portrait-avatar{--robot-shadow:#71627e;height:100%;display:grid;place-items:center}
.portrait-avatar .room-sprite{scale:1.55}
.avatar-picker{border:0;padding:0;margin:16px 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.avatar-picker legend{font-size:14px;font-weight:600;margin-bottom:8px}
.avatar-picker label{--robot-shadow:#71627e;display:grid;justify-items:center;gap:4px;position:relative;margin:0;font-size:12px;cursor:pointer}
.avatar-picker input{position:absolute;width:1px;height:1px;min-height:0;clip-path:inset(50%);overflow:hidden}
.avatar-preview{width:100%;min-height:88px;display:grid;place-items:center;border:1px solid #493758;border-radius:8px;background:#100d17}
.avatar-picker input:checked+.avatar-preview{border-color:#d6a9ff;background:#2c1e39}
.avatar-picker input:focus-visible+.avatar-preview{outline:2px solid #d6a9ff;outline-offset:3px}
#agent-link-account{margin-top:14px}
.studio-continuous{display:flex!important;align-items:center;gap:8px}
.studio-continuous input{width:16px;height:16px;min-height:0;accent-color:#ba7bf5}
.studio-scene{--mint:#9df5ca;--world-muted:#b1c2ba}
.studio-room{margin-top:12px}
.studio-room .room-floor{height:clamp(250px,32vw,330px)}
#studio-lines{max-height:400px;overflow-y:auto;list-style:none;padding:0;margin:14px 0 0;scrollbar-color:#496b5e #111813}
#studio-lines:focus-visible{outline:2px solid #9df5ca;outline-offset:3px}
#studio-status{min-height:1.5em}
.studio-source{display:inline-block;margin-top:5px;color:#cbb0ff;text-decoration:underline;text-underline-offset:3px;font-size:13px;overflow-wrap:anywhere}
.studio-history-entry{margin-top:10px;padding:10px;border:1px solid #352842;border-radius:8px}
.studio-history-entry summary{overflow-wrap:anywhere}
.studio-history-entry ol{padding:10px 0 0;margin:0;list-style:none}
#studio-history{margin-top:16px}
@media(max-width:1050px){.sidebar-header .brand{font-size:18px}.sidebar{padding-left:12px;padding-right:12px}}
@media(max-width:760px){.sidebar-collapsed .sidebar{padding:10px 15px}.sidebar-collapsed .sidebar-header{flex-direction:row}.sidebar-collapsed .sidebar nav{display:none}.sidebar-header .brand{font-size:20px}}
@media(max-width:460px){.breadcrumb{min-width:0}.breadcrumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .button{flex:none}}
