.agent-open{overscroll-behavior:none}#agent-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;height:95svh;max-height:95svh;border:0;border-top:1px solid #74602b;border-radius:16px 16px 0 0;padding:0;background:#0c0f16;color:#f0ece1;box-shadow:0 -12px 70px #000a;overflow:hidden;color-scheme:dark}#agent-dialog::backdrop{background:#020306ba;backdrop-filter:none}#agent-panel{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;min-height:0}#agent-panel button,#agent-panel a,#agent-panel textarea,#agent-panel input{outline-offset:4px}#agent-panel *:focus-visible{outline:2px solid #e7ca68}#agent-panel button{min-height:48px;border-radius:3px;border:1px solid #4e4c44;background:#171b25;color:#eee8d7;padding:.7rem .9rem;font:600 .7rem/1.4 Arial,sans-serif;cursor:pointer}#agent-panel button:hover{border-color:#d4af37;color:#f0d57d}#agent-panel button:disabled{color:#9a9ca4;background:#20222a;border-color:#41434b;opacity:.8;cursor:not-allowed}#agent-panel a{color:#dfc36b;text-underline-offset:.2em}#agent-panel p,#agent-panel li{overflow-wrap:anywhere}.agent-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 5vw .85rem;border-bottom:1px solid #333744;background:#11151f}#agent-panel .agent-identity{display:flex;align-items:center;gap:.7rem;min-width:0}#agent-panel .agent-identity>img{width:43px;height:43px;flex:0 0 43px}#agent-panel .agent-identity h2{font:600 .82rem/1.3 Arial,sans-serif;letter-spacing:.09em;color:#eee5cc;margin:0}#agent-panel .agent-identity p{font:.58rem/1.6 Arial,sans-serif;letter-spacing:.04em;color:#a9adb7;margin:.25rem 0 0}.agent-close{min-width:62px;padding:.7rem!important}.agent-toolbar{padding:.6rem 5vw .65rem;background:#0d111a;border-bottom:1px solid #333744}.agent-toolbar>p{font:.6rem/1.6 Arial,sans-serif;margin:.1rem 0 .6rem;color:#b6b6ac}.agent-toolbar>p:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#a58f51;margin-right:.5rem;vertical-align:middle}.agent-toolbar>.is-configured:before{background:#9bbdaa}.agent-modes{display:flex;gap:.4rem;overflow-x:auto;scrollbar-width:thin;padding-bottom:.25rem}.agent-modes button{white-space:nowrap;flex:0 0 auto;font-size:.57rem!important;min-height:48px;padding:.65rem .7rem!important;background:transparent!important;color:#afb4be!important}.agent-modes button[aria-pressed='true']{background:#29251a!important;color:#e8cf7b!important;border-color:#a58b3e!important}.agent-output{min-height:0;overflow:auto;overscroll-behavior:contain;padding:1.4rem 5vw 2rem;scrollbar-color:#675c3c #10141d}.agent-welcome{padding:.3rem 0 1rem;max-width:62ch}.agent-kicker{font:600 .54rem/1.8 Arial,sans-serif;text-transform:uppercase;letter-spacing:.13em;color:#d4af37;margin:0 0 .65rem}.agent-welcome h3{font:400 1.65rem/1.16 Georgia,serif;color:#e9dfc5;letter-spacing:-.02em;margin:.6rem 0 1rem}.agent-welcome>p:last-child{font:.8rem/1.8 Arial,sans-serif;color:#b4bac1;max-width:60ch}.agent-offline{border:1px solid #5c4d2e;background:linear-gradient(130deg,#272116,#121721);border-radius:4px;padding:1.1rem;margin:.6rem 0 1rem;max-width:65ch}.agent-offline>p:not(.agent-kicker){font:.79rem/1.8 Arial,sans-serif;color:#c1c0b4;margin:.7rem 0}.agent-discovery{display:grid;gap:.6rem;margin-top:1rem}.agent-discovery a{min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;border:1px solid #746334;text-decoration:none;border-radius:3px;padding:.75rem;font:600 .66rem/1.5 Arial,sans-serif;background:#171b22}.agent-composer{border-top:1px solid #535043;background:#11151e;padding:.9rem 5vw calc(.8rem + env(safe-area-inset-bottom,0px));margin:0;min-width:0;max-height:47svh;overflow:auto}.agent-composer>label{display:block;font:500 .64rem/1.5 Arial,sans-serif;color:#c0c4c9;margin:0 0 .45rem}.agent-composer textarea{display:block;resize:vertical;width:100%;min-height:78px;max-height:160px;border:1px solid #69624c;border-radius:4px;background:#090d15;color:#f0ece1;padding:.8rem;font:.82rem/1.65 Arial,sans-serif;box-sizing:border-box}.agent-composer textarea::placeholder{color:#878e9c;opacity:1}.agent-context{font:.6rem/1.65 Arial,sans-serif;color:#bfc0ba;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.agent-context:empty{display:none}.agent-send-row{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-top:.7rem}.agent-send-row>span{font:.55rem/1.5 Arial,sans-serif;color:#979fa9;max-width:24ch}.agent-send-row>#agent-send{background:#d4af37;border-color:#d4af37;color:#11130f;min-width:136px;font-size:.68rem;min-height:48px}.agent-send-row>#agent-send:hover:not(:disabled){background:#e7c95e}.agent-send-row>#agent-send:disabled{background:#282a2e;border-color:#484a50;color:#a6a8af;box-shadow:none}.agent-send-reason,.agent-destination{font:.55rem/1.65 Arial,sans-serif;color:#a8adb6;margin:.55rem 0 0}.agent-destination{color:#8f98a6;font-size:.51rem}.agent-file-label{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;font:.66rem/1.5 Arial,sans-serif;color:#d1c18e}.agent-file-label input{font-size:.6rem;max-width:100%;min-height:38px;background:#191e28;border:1px solid #464b59;padding:.35rem;min-width:0}.agent-file-note{font:.52rem/1.6 Arial,sans-serif;color:#9ea5b1;margin:.4rem 0 .6rem}.agent-error{font:.6rem/1.7 Arial,sans-serif;color:#d1af9d;margin:.5rem 0}.agent-error:empty{display:none}.agent-user-message{margin:1.3rem 0;padding:.85rem 1rem;background:#1c202b;border-left:2px solid #706b56;border-radius:3px;max-width:65ch}.agent-user-message>p:last-child{font:.78rem/1.8 Arial,sans-serif;white-space:pre-wrap;color:#d2d3ce;margin:.5rem 0;max-height:240px;overflow:auto}.agent-analysis{margin:1.3rem 0 2rem;padding:1.15rem;border:1px solid #6c5b2b;background:linear-gradient(140deg,#211f17,#111720 55%);border-radius:4px;max-width:78ch}.agent-analysis h3{font:400 1.5rem/1.2 Georgia,serif;color:#e6d8af;margin:.6rem 0 1rem}.agent-analysis-summary{font:.86rem/1.8 Arial,sans-serif;color:#c8c9c0;margin:1rem 0}.agent-analysis-section{border-top:1px solid #3c3f45;padding-top:1rem;margin-top:1rem}.agent-analysis h4{font:600 .63rem/1.7 Arial,sans-serif;letter-spacing:.04em;color:#e0c66e;margin:0 0 .5rem}.agent-analysis-section p{font:.78rem/1.85 Arial,sans-serif;color:#c2c7cd;margin:.5rem 0}.agent-analysis-sources{border-top:1px solid #3c3f45;margin-top:1.3rem;padding-top:1rem}.agent-analysis-sources ul{padding-left:1rem;margin:.6rem 0}.agent-analysis-sources li,.agent-analysis-sources p{font:.68rem/1.8 Arial,sans-serif;color:#aab3bd;margin:.55rem 0}.agent-analysis-sources a{overflow-wrap:anywhere}.agent-analysis-note{font:.57rem/1.8 Arial,sans-serif;color:#a3a8ae;margin:1.2rem 0}.agent-analysis-actions{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;margin-top:1rem}.agent-analysis-actions button{font-size:.58rem!important;min-height:48px;padding:.65rem!important;background:#1c202a!important}.agent-pending{border-left:2px solid #b69b4e;background:#252215;padding:.8rem 1rem;color:#d9c98d;font:.73rem/1.7 Arial,sans-serif;max-width:70ch}.agent-request-error{padding:.85rem 1rem;border-left:2px solid #9e594a;background:#2a1b1d;color:#dbbdb4;font:.73rem/1.8 Arial,sans-serif;max-width:70ch}body:has(#agent-dialog[open]) .thumbbar{visibility:hidden}.agent-entry{position:relative;border:1px solid #6e5a2a;background:radial-gradient(ellipse at 0 0,#45391c55,transparent 65%),#11151e;padding:1.5rem;border-radius:4px;overflow:hidden}.agent-entry:before{content:'';display:block;position:absolute;right:-10px;top:-15px;width:140px;height:140px;background:url('/assets/agent/agent-eye.svg') center/contain no-repeat;opacity:.13;pointer-events:none}.agent-entry h2{font:400 2rem/1.13 Georgia,serif;color:#eee0bb;max-width:22ch}.agent-entry p{font:.83rem/1.8 Arial,sans-serif;color:#b8c0c6;max-width:65ch}.agent-entry .button{min-height:48px}.agent-entry-actions{display:grid;gap:.7rem;margin-top:1.3rem}.agent-entry .agent-kicker{color:#d4af37;font-size:.57rem}.agent-avatar{width:48px;height:48px;display:block}.agent-status-label{font:.57rem/1.6 Arial,sans-serif;color:#b7b5a7}.agent-mini-trigger{display:flex;align-items:center;justify-content:center;min-height:48px;gap:.6rem;color:#e8cf80;border:1px solid #6b5a32;background:#131821;border-radius:3px;padding:.65rem .8rem;font:.65rem/1.5 Arial,sans-serif}.agent-mini-trigger img{width:28px;height:28px}
@media(min-width:701px){#agent-dialog{inset:0;margin:auto;width:min(1000px,92vw);max-width:1000px;height:70dvh;max-height:850px;border:1px solid #74602b;border-radius:8px;box-shadow:0 15px 90px #000b}.agent-header{padding:1rem 1.5rem}#agent-panel .agent-identity>img{width:48px;height:48px;flex-basis:48px}#agent-panel .agent-identity h2{font-size:.95rem}#agent-panel .agent-identity p{font-size:.64rem}.agent-toolbar{padding:.7rem 1.5rem}.agent-toolbar>p{font-size:.65rem}.agent-modes button{font-size:.64rem!important;padding:.65rem 1rem!important}.agent-output{padding:1.7rem 2rem 2.3rem}.agent-welcome h3{font-size:2rem}.agent-welcome>p:last-child{font-size:.88rem}.agent-offline{padding:1.4rem;max-width:76ch}.agent-discovery{display:flex;flex-wrap:wrap}.agent-discovery a{flex:1;font-size:.7rem;padding:.75rem 1rem}.agent-composer{padding:1rem 1.5rem;max-height:40dvh}.agent-composer textarea{min-height:82px;font-size:.88rem}.agent-composer>label{font-size:.7rem}.agent-send-row>span{font-size:.62rem;max-width:55ch}.agent-send-row>#agent-send{min-width:165px;font-size:.74rem}.agent-send-reason{font-size:.6rem}.agent-destination{font-size:.55rem}.agent-analysis{padding:1.5rem}.agent-analysis h3{font-size:1.9rem}.agent-analysis-section p{font-size:.87rem}.agent-analysis h4{font-size:.7rem}.agent-analysis-actions{display:flex;flex-wrap:wrap}.agent-analysis-actions button{font-size:.65rem!important;flex:1}.agent-entry{padding:2.4rem}.agent-entry h2{font-size:2.7rem}.agent-entry p{font-size:.9rem}.agent-entry-actions{display:flex;flex-wrap:wrap}.agent-entry-actions .button{min-width:200px}.agent-entry:before{width:230px;height:230px;right:10px;top:-25px}}
@media(max-width:390px){.agent-header{padding:.85rem 5vw}#agent-panel .agent-identity h2{font-size:.75rem}#agent-panel .agent-identity p{font-size:.53rem}#agent-panel .agent-identity>img{width:37px;height:37px;flex-basis:37px}.agent-close{font-size:.62rem!important;min-width:54px}.agent-toolbar{padding:.5rem 5vw}.agent-modes button{font-size:.52rem!important;padding:.6rem!important}.agent-output{padding:1.15rem 5vw 1.5rem}.agent-welcome h3{font-size:1.5rem}.agent-composer{padding:.75rem 5vw calc(.65rem + env(safe-area-inset-bottom,0px))}.agent-send-row>span{font-size:.5rem}.agent-send-row>#agent-send{min-width:130px;font-size:.62rem}.agent-analysis{padding:1rem}.agent-analysis-actions button{font-size:.53rem!important}.agent-discovery a{font-size:.6rem}.agent-send-reason{font-size:.51rem}.agent-destination{font-size:.48rem}}
@media(prefers-reduced-motion:reduce){#agent-dialog *,#agent-dialog *:before,#agent-dialog *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{#agent-dialog,.agent-entry,.agent-mini-trigger{display:none!important}}
.agent-callout{position:relative;display:grid;gap:1.25rem;border:1px solid #78612b;border-radius:5px;background:radial-gradient(ellipse at 100% 0,#51401c55,transparent 68%),#121721;padding:1.5rem;overflow:hidden}.agent-callout .agent-mark{margin:0;width:70px;height:70px}.agent-callout .agent-mark img,.agent-callout img.agent-mark{width:70px;height:70px;object-fit:contain;display:block}.agent-callout .agent-intro{min-width:0}.agent-callout h2{font:400 2rem/1.13 Georgia,serif;color:#eee0bd;letter-spacing:-.025em;max-width:24ch;margin:.6rem 0 1rem}.agent-callout .agent-intro>p{font:.83rem/1.85 Arial,sans-serif;color:#bec3c8;max-width:65ch}.agent-callout .agent-identity{display:block;color:#e2c879;font:600 .61rem/1.7 Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase}.agent-callout .agent-modes{display:grid;grid-template-columns:1fr;gap:.65rem;overflow:visible}.agent-callout .agent-modes button,.agent-callout .agent-modes a{display:flex;align-items:center;justify-content:center;min-height:48px;width:100%;padding:.85rem 1rem;border:1px solid #6d5b30;border-radius:3px;background:#1b1e25;color:#e6d397;text-decoration:none;font:600 .7rem/1.5 Arial,sans-serif;letter-spacing:.025em;white-space:normal}.agent-callout .agent-modes button:first-child,.agent-callout .agent-modes a:first-child{background:#d4af37;color:#15150f;border-color:#d4af37}.agent-service-note{font:.65rem/1.8 Arial,sans-serif;color:#b8b4a6;max-width:75ch;margin:.8rem 0 0}.agent-service-note a{color:#dfc370}[data-agent-service-state]{color:#d7bd70;font:.62rem/1.7 Arial,sans-serif;letter-spacing:.035em}[data-agent-service-state]:before{content:"";display:inline-block;width:5px;height:5px;background:#b79a4c;border-radius:50%;margin-right:.5rem}[data-agent-service-state][data-agent-configured="true"]{color:#b5d0bb}[data-agent-service-state][data-agent-configured="true"]:before{background:#99b9a3}.agent-trigger{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;padding:.65rem .8rem;border:1px solid #736035;border-radius:3px;background:#171b24;color:#e3ca7a;font:600 .64rem/1.5 Arial,sans-serif}.agent-trigger img{width:25px;height:25px}.agent-callout .agent-service-note{grid-column:1/-1}@media(min-width:701px){.agent-callout{grid-template-columns:90px minmax(0,1fr);gap:1.5rem 2rem;padding:2.5rem}.agent-callout .agent-mark,.agent-callout .agent-mark img,.agent-callout img.agent-mark{width:90px;height:90px}.agent-callout .agent-intro h2{font-size:2.8rem}.agent-callout .agent-intro>p{font-size:.92rem}.agent-callout .agent-modes{grid-column:2;grid-template-columns:repeat(2,minmax(0,1fr))}.agent-callout .agent-service-note{grid-column:2}.agent-callout .agent-modes button,.agent-callout .agent-modes a{font-size:.74rem}.agent-service-note{font-size:.7rem}}
/* Root SSR callout: introduction and avatar together, then three entry points. */
.cinema-section.agent-callout{position:relative;display:block;width:calc(100% - 12vw);max-width:1040px;margin:1.5rem auto 2rem;padding:1.4rem}.agent-callout .agent-intro{display:block;min-width:0}.agent-callout .agent-intro>.agent-identity{display:flex;align-items:center;gap:1rem;margin:0 0 1rem;letter-spacing:.1em}.agent-callout .agent-intro>.agent-identity>.agent-mark{display:block;width:80px;height:80px;max-width:80px;flex:0 0 80px;margin:0;object-fit:contain}.agent-callout .agent-intro>.agent-identity>.eyebrow{font-size:.52rem;line-height:1.9;max-width:24ch;margin:0;letter-spacing:.13em}.agent-callout .agent-intro>.agent-service-note{position:static;display:block;margin:0 0 1.4rem;font-size:.6rem;line-height:1.7}.agent-callout h2{font:400 2rem/1.12 Georgia,serif;letter-spacing:-.025em;max-width:25ch;margin:.8rem 0 1rem}.agent-callout .agent-intro>.agent-tagline{font:italic 1.05rem/1.65 Georgia,serif;color:#ddc779;max-width:47ch;margin:1rem 0}.agent-callout .agent-intro>p:not(.agent-tagline):not(.agent-service-note){font:.81rem/1.85 Arial,sans-serif;color:#b6bfc8;max-width:65ch}.agent-callout>.agent-modes{display:grid;grid-template-columns:1fr;gap:.65rem;margin:1.3rem 0;overflow:visible}.agent-callout>.agent-modes button,.agent-callout>.agent-modes a{min-height:50px;font-size:.68rem!important;white-space:normal;text-align:center}.agent-callout>.micro{font:.61rem/1.85 Arial,sans-serif;color:#9da8b4;max-width:90ch;margin:1rem 0}.agent-callout>.text-link{display:inline-flex;align-items:center;min-height:48px;font-size:.68rem}.agent-service-dot{display:none}.agent-page{padding-top:2rem}.agent-page>h1{font:400 clamp(2.5rem,9.5vw,4.2rem)/1.06 Georgia,serif;max-width:19ch;letter-spacing:-.03em;margin:1rem 0 1.5rem}.agent-page>.lead{font:1.05rem/1.8 Georgia,serif;color:#d0ccc0;max-width:63ch}.agent-page>.agent-service-note{margin:1rem 0 1.5rem}.agent-page-modes{display:grid;grid-template-columns:1fr;gap:.7rem;margin:1.5rem 0 2rem}.agent-page-modes .button{min-height:50px;font-size:.75rem}.agent-header-trigger{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;min-height:48px;padding:.5rem;border:1px solid #786031;border-radius:3px;background:#201e16;color:#e5ca77;font:600 .7rem/1 Arial,sans-serif;letter-spacing:.05em}.header>.agent-header-trigger{margin-left:.1rem}.story-actions{display:grid;gap:.7rem;max-width:760px;margin:1.5rem auto}.story-actions>.button,.story-actions>button{min-height:48px;font-size:.71rem;white-space:normal}.story-feedback{font:.71rem/1.8 Arial,sans-serif;color:#c5b477;border-left:2px solid #8a7239;padding:.7rem 1rem;background:#221f17;max-width:760px;margin:1rem auto}.story-feedback:empty{display:none}
@media(max-width:600px){.header{gap:.5rem;flex-wrap:nowrap}.header>.brand{margin-right:auto;min-width:0}.header>.brand span{font-size:.76rem}.header>.brand small{font-size:.32rem}.header>.brand img{width:38px;height:38px;flex:0 0 38px}.header>.nav-toggle{flex:0 0 auto;min-width:51px;padding:.6rem .65rem;font-size:.63rem}.header>.agent-header-trigger{flex:0 0 48px;width:48px;min-width:48px;margin-left:0}.agent-callout h2{font-size:1.9rem}.agent-callout>.agent-modes{grid-template-columns:1fr}.agent-callout>.text-link{font-size:.63rem}.agent-page .chapter-scene{padding-top:1.8rem}.agent-page-modes{grid-template-columns:1fr}.story-actions{margin:1.3rem auto}.story-actions>.button,.story-actions>button{font-size:.65rem}.agent-page>h1{font-size:2.4rem}}
@media(min-width:701px){.cinema-section.agent-callout{padding:2.4rem 2.6rem;margin-top:2rem;margin-bottom:3rem}.agent-callout .agent-intro>.agent-identity{padding-right:190px;min-height:80px;margin-bottom:1.8rem}.agent-callout .agent-intro>.agent-identity>.eyebrow{max-width:34ch;font-size:.61rem}.agent-callout .agent-intro>.agent-service-note{position:absolute;right:2.6rem;top:2.6rem;max-width:170px;text-align:right;margin:0}.agent-callout h2{font-size:2.9rem;max-width:29ch}.agent-callout .agent-intro>.agent-tagline{font-size:1.25rem}.agent-callout .agent-intro>p:not(.agent-tagline):not(.agent-service-note){font-size:.92rem;max-width:70ch}.agent-callout>.agent-modes{grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-top:1.8rem}.agent-callout>.agent-modes button,.agent-callout>.agent-modes a{font-size:.72rem!important;min-height:54px}.agent-callout>.micro{font-size:.66rem}.agent-callout>.text-link{font-size:.72rem}.agent-page-modes{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.agent-page-modes .button{font-size:.75rem;min-height:56px}.agent-page{padding-top:3rem}.story-actions{grid-template-columns:1fr 1fr}.header>.agent-header-trigger{margin-left:.4rem}.agent-page>.lead{font-size:1.2rem}}
/* Keep the mobile dialog grid within its viewport, including horizontally scrolling mode tabs. */#agent-panel{width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}#agent-panel>.agent-header,#agent-panel>.agent-toolbar,#agent-panel>.agent-output,#agent-panel>.agent-composer{box-sizing:border-box;min-width:0;max-width:100%;width:100%}#agent-panel .agent-modes{min-width:0;max-width:100%;width:100%;overflow-x:auto;box-sizing:border-box}#agent-panel .agent-header>.agent-identity{flex:1 1 auto;min-width:0}#agent-panel .agent-header>.agent-close{flex:0 0 auto;white-space:nowrap}#agent-panel .agent-identity>div{min-width:0}#agent-panel .agent-output>*{max-width:100%;min-width:0;box-sizing:border-box}#agent-panel .agent-composer textarea,#agent-panel .agent-composer input{min-width:0;max-width:100%;box-sizing:border-box}

.story-preview{max-width:min(92vw,650px);max-height:94svh;overflow:auto;background:#0a0b0e;color:#f0ece1;border:1px solid #78632c;border-radius:8px;padding:1.2rem}.story-preview::backdrop{background:#000b}.story-preview h2{font:1.7rem Georgia,serif;margin:.4rem 0}.story-preview p{font:.75rem/1.7 Arial,sans-serif;color:#b7b8b2}.story-preview canvas{display:block;width:auto;height:auto;max-width:100%;max-height:62svh;margin:1rem auto}.story-preview .button-row{display:flex;gap:.7rem;justify-content:center}.story-preview button,.story-preview .button{min-height:48px}.story-preview .button{font-size:.7rem}
