@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');
:root{--ink:#241d2b;--muted:#89818f;--purple:#7563d4;--line:#ece8f0;--serif:'DM Serif Display',Georgia,serif;--sans:'DM Sans',Inter,system-ui,sans-serif}
*{box-sizing:border-box}html{min-width:320px;background:#faf9fc}body{margin:0;color:var(--ink);font:14px var(--sans);-webkit-font-smoothing:antialiased}button,a{font:inherit}button{cursor:pointer}.app{min-height:100vh;display:grid;grid-template-columns:248px 1fr}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:29px 18px 17px;background:#191521;color:#fff;z-index:10}.brand{display:flex;align-items:center;gap:10px;margin:0 10px 40px;color:#fff;text-decoration:none;font-size:18px;font-weight:700;letter-spacing:-.8px}.brand-text{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.15}.brand-name{display:block}.brand-tagline{display:block;font-size:9px;font-weight:500;letter-spacing:.15px;color:#a59cab;white-space:nowrap}.brand-light{font-weight:400;color:#b7adbf}.brand-mark{display:block;width:28px;height:28px;border-radius:50%;object-fit:cover;background:transparent;flex-shrink:0}.side-label,.panel-title small,.section-heading small{margin:0;color:#a59cab;font-size:9px;font-weight:700;letter-spacing:1.3px}.side-label{padding:0 11px 13px}.sidebar nav{display:grid;gap:5px}.nav-item{height:44px;display:flex;align-items:center;gap:12px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:#aaa3b2;text-align:left;font-size:12px;transition:.2s}.nav-item:hover,.nav-item.selected{background:#342b43;color:#fff}.nav-icon{width:18px;color:#c6b7e9;font-size:18px;text-align:center}.count{margin-left:auto;color:#d1c5e0;font-size:10px}.unread-dot{width:6px;height:6px;margin-left:auto;border-radius:50%;background:#f0927c;box-shadow:0 0 0 3px #f0927c22}.hidden{display:none!important}.side-bottom{margin-top:auto}.side-prompt{position:relative;overflow:hidden;margin:0 1px 16px;padding:16px;border:1px solid #393242;border-radius:12px;background:linear-gradient(145deg,#2b2336,#211c29)}.side-prompt:after{content:'';position:absolute;right:-30px;bottom:-46px;width:100px;height:100px;border:1px solid #b99be533;border-radius:50%;box-shadow:0 0 0 15px #b99be50a,0 0 0 30px #b99be508}.spark{display:grid;place-items:center;width:25px;height:25px;border:1px solid #534764;border-radius:8px;color:#c8b7f6}.side-prompt p{max-width:150px;margin:11px 0;color:#e7e1ed;font:16px/1.3 var(--serif)}.side-prompt button{position:relative;z-index:1;padding:0;border:0;background:none;color:#cbbaff;font-size:10px;font-weight:700}.profile{width:100%;display:flex;align-items:center;gap:10px;padding:12px 7px 5px;border:0;border-top:1px solid #393340;background:none;color:#fff;text-align:left}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#bba6ff,#f0a18d);color:#30263f;font-weight:700;font-size:11px}.profile b,.profile small{display:block}.profile b{font-size:10px;font-weight:600}.profile small{margin-top:3px;color:#9992a0;font-size:9px}.profile-more{margin-left:auto;color:#9f96a7;font-size:19px}.main{min-width:0;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:8;height:73px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,4vw,60px);border-bottom:1px solid #eeebf1;background:#faf9fcf2;backdrop-filter:blur(14px)}.crumb{display:flex;align-items:center;gap:10px;color:#a09aa5;font-size:9px;font-weight:700;letter-spacing:1.1px}.crumb b{color:#c3bec9;font-weight:400}.crumb strong{color:#544b59;font-size:10px;letter-spacing:0}.credits{height:37px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid #eee2c6;border-radius:9px;background:#fffdf7;color:#4e4232;font-size:10px}.credits:hover{border-color:#dfc781;box-shadow:0 5px 15px #ddb94c22}.coin{display:grid;place-items:center;width:21px;height:21px;border-radius:7px;background:#fbf0d5;color:#c18a33}.credits b{font-size:12px}.credits>span:nth-child(3){color:#8e826e}.credits i{height:15px;width:1px;margin:0 2px;background:#e9dfca}.credits strong{color:#a47c31;font-size:15px}.content{width:100%;max-width:1550px;margin:0 auto;padding:31px clamp(22px,4vw,60px) 22px;flex:1}.columns{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:25px}.primary{min-width:0}.welcome{min-height:104px;display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.eyebrow{margin:0 0 9px;color:#988f9c;font-size:9px;font-weight:700;letter-spacing:1.2px}.welcome h1,.library-heading h1{margin:0;color:#292230;font:400 clamp(34px,3.1vw,43px)/1.1 var(--serif);letter-spacing:-.6px}.welcome h1 em,.library-heading h1 em{color:#7967d8}.subcopy{margin:9px 0 0;color:#8d8591;font-size:11px;line-height:1.65}.stamp{display:flex;align-items:center;gap:8px;margin-right:6px;padding:8px 10px;border:1px solid #ebe6ee;border-radius:40px;color:#cf9b8c;transform:rotate(7deg);font-size:22px}.stamp small{color:#998f9b;font-size:6px;font-weight:700;line-height:1.25;letter-spacing:1px}.create{position:relative;overflow:hidden;padding:23px 25px 17px;border-radius:16px;background:radial-gradient(ellipse at 80% 5%,#67599e,transparent 35%),linear-gradient(115deg,#30263f,#443451);color:#fff;box-shadow:0 14px 28px #37274219}.create:before{content:'';position:absolute;right:-54px;top:40px;width:225px;height:225px;border:1px solid #e6b5c32c;border-radius:50%;box-shadow:0 0 0 17px #e6b5c30b,0 0 0 39px #e6b5c308}.create:after{content:'';position:absolute;right:44px;top:-115px;width:180px;height:245px;border:1px solid #f0d9c52b;border-radius:50%;transform:rotate(38deg)}.create-overline,.prompt-tools,.prompt-foot{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between}.create-overline{color:#d0c5da;font-size:8px;font-weight:700;letter-spacing:1px}.ready{display:flex;align-items:center;gap:6px;color:#c6bdcf;font-size:7px}.ready i{width:5px;height:5px;border-radius:50%;background:#83d2a5;box-shadow:0 0 0 3px #83d2a51d}.create h2{position:relative;z-index:2;margin:14px 0 5px;font:400 29px/1.12 var(--serif)}.create h2 em{color:#efc0ae}.create-copy{position:relative;z-index:2;margin:0 0 15px;color:#c8bdce;font-size:10px;line-height:1.6}.prompt-box{position:relative;z-index:2;padding:10px 11px 8px;border:1px solid #ffffff27;border-radius:11px;background:#211a2bbc}.prompt-box textarea,.chat-form textarea{width:100%;resize:vertical;outline:0;border:0;background:transparent;color:#fff;font:11px/1.6 var(--sans)}.prompt-box textarea{min-height:40px;max-height:120px}.prompt-box textarea::placeholder{color:#a195ae}.prompt-tools{gap:8px;padding-top:8px;border-top:1px solid #ffffff18}.genres{display:flex;flex-wrap:wrap;gap:5px}.genre{height:25px;padding:0 8px;border:1px solid #ffffff20;border-radius:20px;background:#ffffff09;color:#d6cedb;font-size:8px}.genre:hover,.genre.active{border-color:#d2afea66;background:#d1b1e926;color:#f2dafa}.start{height:34px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 12px;border:0;border-radius:8px;background:#eab7a8;color:#302431;font-size:9px;font-weight:700;white-space:nowrap;transition:.2s}.start:hover{background:#f5caba;transform:translateY(-1px)}.start span{font-size:14px}.prompt-foot{justify-content:flex-start;gap:7px;margin-top:10px;color:#b7adbd;font-size:8px}.prompt-foot button{padding:0;border:0;background:none;color:#f1c4b2;font-size:8px;font-weight:700}.prompt-foot small{margin-left:auto;color:#aaa1b1;font-size:8px}.orbit{position:absolute;z-index:1;right:27px;top:83px;width:6px;height:6px;border-radius:50%;background:#f6c4ac;box-shadow:0 0 15px 4px #f6c4ac65}.orbit-b{right:21%;top:78%;width:4px;height:4px;opacity:.7}.twinkle{position:absolute;right:20%;top:26%;z-index:1;color:#f2c5bc;font-size:16px}.stories{margin-top:29px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:13px}.section-heading small{color:#99909d}.section-heading h2,.panel-title h2{margin:5px 0 0;color:#302835;font:400 20px/1.15 var(--serif)}.view-all{padding:4px 0;border:0;background:none;color:#786d87;font-size:9px;font-weight:700}.story-grid,.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.story-card{overflow:hidden;min-width:0;border:1px solid #ece8f0;border-radius:12px;background:#fff;cursor:pointer;transition:.2s}.story-card:hover{transform:translateY(-3px);box-shadow:0 12px 25px #34243f10}.art{position:relative;overflow:hidden;height:101px;background:linear-gradient(145deg,#292e4c,#76698d 65%,#d69e91)}.art:before{content:'';position:absolute;right:23px;top:20px;width:68px;height:68px;border-radius:50%;background:radial-gradient(circle at 35% 33%,#fff0cf,#e1b5a4 59%,#aa7996);box-shadow:0 0 24px #f8d9c755}.art:after{content:'';position:absolute;right:-2px;bottom:-54px;width:190px;height:85px;border:1px solid #ffffff65;border-radius:50%;transform:rotate(-15deg);box-shadow:0 -9px 0 -8px #ffffff56,0 -22px 0 -21px #ffffff48}.art.sea{background:linear-gradient(145deg,#193b51,#4e9296 65%,#d6b98d)}.art.sea:before{width:88px;height:88px;background:radial-gradient(circle at 35% 35%,#ece7cc,#c7bc99 50%,#548b8a);box-shadow:0 0 25px #9fe0d84a}.art.garden{background:linear-gradient(145deg,#4d3456,#bd798e 65%,#edc094)}.art.garden:before{width:76px;height:76px;background:radial-gradient(circle at 38% 32%,#fff0cd,#f3c592 48%,#b86f85)}.art .badge{position:absolute;z-index:2;bottom:8px;left:9px;padding:4px 7px;border:1px solid #ffffff3d;border-radius:20px;background:#211a2ca8;color:#f9eef4;font-size:7px;font-weight:700;letter-spacing:.4px}.art .star{position:absolute;z-index:1;color:#ffebdc;font-size:10px}.art .s1{left:24px;top:17px}.art .s2{right:22px;top:14px;font-size:7px}.card-body{padding:10px 11px}.meta{display:flex;justify-content:space-between;color:#9a929f;font-size:7px;font-weight:700;letter-spacing:.45px;text-transform:uppercase}.meta:before{content:'•';margin-right:-5px;color:#a38bd9}.card-body h3{overflow:hidden;margin:7px 0 5px;color:#372f3d;font:400 14px/1.2 var(--serif);text-overflow:ellipsis;white-space:nowrap}.card-body p{overflow:hidden;height:27px;margin:0;color:#8d8591;font-size:8px;line-height:1.55}.card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:9px;padding-top:8px;border-top:1px solid #f0edf2;color:#9c94a0;font-size:7px}.progress{width:47%;height:3px;border-radius:4px;background:#efedf2}.progress i{display:block;height:100%;border-radius:4px;background:#a291df}.right{display:grid;align-content:start;gap:13px;padding-top:3px}.panel{padding:15px;border:1px solid #ece8f0;border-radius:13px;background:#fff}.panel-title{display:flex;align-items:flex-start;justify-content:space-between}.panel-title small{color:#99909e;font-size:8px}.panel-title h2{font-size:18px}.kebab{width:24px;height:24px;border:1px solid #f0edf2;border-radius:7px;background:#fff;color:#9d95a1}.quiet{margin:8px 0 13px;color:#918994;font-size:9px}.agent{display:flex;align-items:center;gap:8px;margin:10px 0}.agent-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;font-size:15px}.violet{background:#f0edff;color:#806dd1}.peach{background:#fff0e8;color:#c98b67}.green{background:#eaf4f1;color:#6aa79a}.agent b,.agent small{display:block}.agent b{color:#49414e;font-size:9px;font-weight:600}.agent small{margin-top:3px;color:#a097a3;font-size:7px}.agent i{width:5px;height:5px;margin-left:auto;border-radius:50%;background:#7ec39e;box-shadow:0 0 0 3px #7ec39e20}.crew-status{display:flex;align-items:center;gap:8px;margin-top:13px;padding:9px;border-radius:8px;background:#f7f5f9}.crew-status>b{width:21px;height:21px;display:grid;place-items:center;border-radius:6px;background:#e4f4ea;color:#55956e;font-size:12px}.crew-status strong,.crew-status small{display:block}.crew-status strong{color:#615a66;font-size:8px}.crew-status small{margin-top:3px;color:#a097a2;font-size:7px}.spark-card{position:relative;overflow:hidden;padding:15px;border:1px solid #efdfd7;border-radius:13px;background:linear-gradient(140deg,#fff9f4,#f8ece8)}.spark-card:after{content:'“';position:absolute;right:5px;bottom:-58px;color:#f1d8d0;font:140px var(--serif)}.spark-card>small{color:#a7827c;font-size:7px;font-weight:700;letter-spacing:.7px}.spark-card blockquote{position:relative;z-index:1;margin:12px 0;color:#493b45;font:17px/1.3 var(--serif)}.spark-card button{position:relative;z-index:1;padding:0;border:0;background:none;color:#b36f66;font-size:8px;font-weight:700}.week .panel-title{align-items:center}.week .panel-title>small{color:#99909e}.week-star{color:#d1a557}.week-total{display:flex;align-items:center;gap:9px;margin:8px 0}.week-total>b{font:400 29px var(--serif)}.week-total span{color:#8e8793;font-size:8px;line-height:1.3}.bars{height:44px;display:flex;align-items:flex-end;gap:7px;padding:0 3px}.bars i{flex:1;min-width:5px;border-radius:4px 4px 2px 2px;background:linear-gradient(#b6a5e3,#e1daf3)}.bars i:nth-child(6){background:linear-gradient(#9785dc,#cac1ed)}.days{display:flex;justify-content:space-between;padding:5px 1px;color:#b0a8b3;font-size:7px}footer{display:flex;justify-content:space-between;padding:0 clamp(22px,4vw,60px) 17px;color:#aaa2ad;font-size:8px}footer b{letter-spacing:1px}footer i{color:#c59a8e;font-style:normal}.view{animation:appear .25s ease}@keyframes appear{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
.library-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:9px 0 26px}.library-heading .subcopy{font-size:11px}.library-new{height:38px}.library-tools{display:flex;align-items:center;gap:12px;margin-bottom:16px}.search{width:min(330px,100%);height:38px;display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid #e9e5ed;border-radius:8px;background:#fff;color:#9d95a1}.search input{width:100%;border:0;outline:0;background:none;color:#3d3542;font:10px var(--sans)}.library-tools>small{color:#9d95a1;font-size:9px}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.library-grid .art{height:140px}.library-grid .card-body{padding:13px}.library-grid .card-body h3{font-size:17px}.library-grid .card-body p{height:31px;font-size:9px}.empty{text-align:center;padding:75px 15px}.empty span{color:#8473d2;font-size:28px}.empty h2{font:400 24px var(--serif)}.empty p{color:#8f8792;font-size:11px}
.chat-head{display:flex;align-items:center;gap:16px;padding:8px 0 18px;border-bottom:1px solid var(--line)}.back{padding:6px 0;border:0;background:none;color:#837a8a;font-size:10px}.chat-head>div{flex:1}.chat-head small{color:#9b91a2;font-size:8px;font-weight:700;letter-spacing:1px}.chat-head h1{margin:4px 0 0;font:400 21px var(--serif)}.preview-label{padding:5px 7px;border:1px solid #eee9f2;border-radius:20px;color:#a199a5;font-size:7px;font-weight:700;letter-spacing:.5px}.chat-scene{width:min(760px,100%);min-height:420px;margin:22px auto 13px;padding:21px 24px;border:1px solid #ebe6ef;border-radius:14px;background:#fff;box-shadow:0 5px 20px #30223c08}.scene-label{color:#a29aa6;font-size:8px;font-weight:700;letter-spacing:1px}.messages{display:grid;gap:15px;padding-top:22px}.message{max-width:88%;display:flex;align-items:flex-start;gap:9px}.message.user{margin-left:auto;flex-direction:row-reverse}.message-avatar{flex:0 0 auto;width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#f0edff;color:#7c69d1;font-size:10px}.message.user .message-avatar{background:#fff0e9;color:#bf8268}.bubble{padding:10px 12px;border:1px solid #f0edf2;border-radius:4px 11px 11px 11px;background:#fbfafc;color:#534a58;font:12px/1.7 var(--serif);white-space:pre-wrap}.message.user .bubble{border-color:#ede7fc;border-radius:11px 4px 11px 11px;background:#f5f1ff;color:#554b62;font:10px/1.6 var(--sans)}.caption{margin:5px 0 0 2px;color:#aaa2ad;font-size:7px}.chat-form{width:min(760px,100%);margin:0 auto;padding:10px 11px 8px;border:1px solid #e9e4ed;border-radius:11px;background:#fff}.chat-form>small{display:block;margin:0 0 9px;color:#9b93a0;font-size:8px}.chat-form textarea{min-height:36px;color:#453d4b;font:10px/1.6 var(--sans)}.chat-form textarea::placeholder{color:#aca4af}.chat-form>div{display:flex;align-items:center;justify-content:space-between;padding-top:7px;border-top:1px solid #f0edf2}.chat-form>div span{color:#a199a4;font-size:8px}.chat-form>div button{width:28px;height:28px;border:0;border-radius:8px;background:#7563d4;color:#fff}.shade{position:fixed;inset:0;z-index:19;background:#17132155;opacity:0;visibility:hidden;transition:.2s}.shade.open{opacity:1;visibility:visible}.drawer{position:fixed;z-index:20;right:0;top:0;width:min(380px,100vw);height:100dvh;padding:23px;background:#fff;box-shadow:-15px 0 45px #1c122018;transform:translateX(102%);transition:.28s}.drawer.open{transform:none}.drawer-head,.drawer-tools{display:flex;align-items:center;justify-content:space-between}.drawer-head small{color:#99919e;font-size:8px;font-weight:700;letter-spacing:1px}.drawer-head h2{margin:5px 0 0;font:400 24px var(--serif)}.drawer-head button,.modal-x{width:29px;height:29px;border:0;border-radius:7px;background:#f7f5f8;color:#736a7a;font-size:20px}.drawer-tools{margin:22px 0 8px;padding:11px 0;border-block:1px solid #efecf1;color:#a097a3;font-size:8px}.drawer-tools button{border:0;background:none;color:#7865ce;font-size:8px;font-weight:700}.notice{display:flex;gap:9px;padding:13px 1px;border-bottom:1px solid #f1eef3}.notice-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#f0edff;color:#8370d1}.notice-copy{flex:1}.notice-copy b{font-size:9px}.notice-copy p{margin:4px 0;color:#8f8793;font-size:8px;line-height:1.5}.notice-copy small{color:#aaa2ad;font-size:7px}.notice.unread:after{content:'';align-self:center;width:6px;height:6px;border-radius:50%;background:#e38f7b}.modal-shade{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:16px;background:#1a1521a8;backdrop-filter:blur(4px)}.modal{position:relative;width:min(420px,100%);padding:27px;border:1px solid #f1ecf2;border-radius:16px;background:#fff;box-shadow:0 22px 70px #130d1b4d;animation:appear .2s ease}.modal-x{position:absolute;top:13px;right:13px}.modal-symbol{width:39px;height:39px;display:grid;place-items:center;margin-bottom:14px;border-radius:11px;background:#f0edff;color:#7968cf;font-size:18px}.modal small.label{color:#9a909d;font-size:8px;font-weight:700;letter-spacing:1px}.modal h2{margin:5px 0;color:#302835;font:400 25px var(--serif)}.modal p{margin:7px 0 17px;color:#8c8490;font-size:10px;line-height:1.6}.modal-form label{display:block;margin-bottom:6px;color:#756c7b;font-size:8px;font-weight:700}.modal-form input{width:100%;height:38px;padding:0 10px;border:1px solid #e9e4ed;border-radius:8px;outline:0;font:10px var(--sans)}.modal-form input:focus{border-color:#a89adf}.modal-main{width:100%;height:38px;margin-top:11px;border:0;border-radius:8px;background:#7563d4;color:#fff;font-size:9px;font-weight:700}.balance{display:flex;align-items:center;gap:11px;margin:14px 0;padding:13px;border:1px solid #f0e4c8;border-radius:10px;background:#fffaf0}.balance b{font:400 28px var(--serif);color:#725430}.balance span{color:#554b3c;font-size:9px}.balance small{display:block;margin-top:3px;color:#a18d6f;font-size:8px}.modal-row{display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid #f1edf2;font-size:9px}.modal-row span{color:#988f9b}.toast{position:fixed;z-index:50;left:50%;bottom:22px;max-width:calc(100vw - 28px);padding:11px 14px;border:1px solid #463a51;border-radius:9px;background:#261f2e;color:#fff;font-size:9px;box-shadow:0 10px 28px #17121e40;opacity:0;pointer-events:none;transform:translate(-50%,10px);transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1150px){.columns{grid-template-columns:minmax(0,1fr) 240px;gap:16px}.content,.topbar{padding-left:28px;padding-right:28px}.create{padding:20px}.create h2{font-size:27px}.story-grid{gap:8px}.art{height:90px}.card-body{padding:9px}.right{gap:10px}.panel{padding:13px}}
@media(max-width:950px){.columns{grid-template-columns:1fr}.right{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;margin-top:2px}.crew{grid-column:span 1}.right .panel,.spark-card{height:100%}.agent{gap:6px}.agent-icon{width:26px;height:26px}.agent b{font-size:8px}.agent small{font-size:7px}.story-grid{gap:12px}.art{height:120px}}
@media(max-width:700px){.app{grid-template-columns:1fr}.sidebar{position:sticky;height:auto;min-height:60px;flex-direction:row;align-items:center;padding:9px 16px;border-bottom:1px solid #302a37}.brand{margin:0;font-size:16px}.brand-tagline{font-size:8px}.side-label,.side-bottom{display:none}.sidebar nav{display:flex;gap:4px;margin-left:auto}.nav-item{width:auto;height:38px;gap:7px;padding:0 9px;font-size:10px}.nav-icon{font-size:16px}.topbar{height:60px;padding:0 18px}.content{padding:23px 18px}.welcome{min-height:91px;margin-bottom:16px}.welcome h1,.library-heading h1{font-size:35px}.create{padding:18px}.right{grid-template-columns:repeat(2,minmax(0,1fr))}.crew{grid-column:span 2}.crew .agent{display:inline-flex;width:32%;margin:9px 0}.crew-status{margin-top:9px}.story-grid,.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.art{height:105px}.library-grid .art{height:125px}footer{padding:0 18px 15px}}
@media(max-width:500px){.sidebar{padding:8px 12px}.brand{gap:7px;font-size:14px}.brand-mark{width:25px;height:25px}.brand-tagline{font-size:7.5px;letter-spacing:0}.sidebar nav{gap:0}.nav-item{position:relative;width:36px;justify-content:center;padding:0}.nav-item:not(:has(.nav-icon)){width:36px}.nav-item{font-size:0}.nav-icon{font-size:17px}.count{position:absolute;top:1px;right:0;font-size:7px}.unread-dot{position:absolute;top:5px;right:5px}.topbar{padding:0 13px}.crumb span,.crumb b{display:none}.credits{height:33px;gap:5px;padding:0 8px}.credits>span:nth-child(3){font-size:8px}.content{padding:19px 13px}.welcome h1,.library-heading h1{font-size:31px}.welcome .subcopy{max-width:275px;font-size:10px}.stamp{display:none}.create{padding:16px 13px 14px}.create h2{font-size:25px}.create-copy{font-size:9px}.create-overline{font-size:7px}.ready{font-size:6px}.prompt-box{padding:8px}.prompt-box textarea{font-size:10px}.prompt-tools{align-items:flex-end}.genres{gap:4px}.genre{height:23px;padding:0 6px;font-size:7px}.start{height:31px;padding:0 8px;font-size:8px;gap:5px}.prompt-foot{font-size:7px;gap:5px}.prompt-foot button,.prompt-foot small{font-size:7px}.stories{margin-top:23px}.section-heading h2{font-size:18px}.story-grid,.library-grid{gap:7px}.art{height:82px}.card-body{padding:8px}.card-body h3{font-size:12px}.card-body p{font-size:7px}.card-foot{font-size:6px}.progress{width:42%}.right{grid-template-columns:1fr;margin-top:14px}.crew{grid-column:auto}.crew .agent{display:flex;width:auto;margin:9px 0}.crew-status{margin-top:13px}.spark-card,.week{height:auto}.library-heading{align-items:flex-start;gap:8px}.library-new{width:36px;padding:0;font-size:0}.library-new span{display:none}.library-tools{margin-bottom:12px}.library-grid .art{height:90px}.chat-head{gap:10px}.chat-head h1{font-size:18px}.preview-label{font-size:6px}.chat-scene{min-height:55vh;margin:16px auto 11px;padding:16px 12px}.message{max-width:98%}.bubble{font-size:11px}.chat-form>small{font-size:7px}.chat-form{padding:9px}.chat-form textarea{font-size:10px}footer{align-items:flex-start;flex-direction:column;gap:6px;padding:0 13px 12px}}

/* Movie research homepage */
.movie-hero{position:relative;overflow:hidden;min-height:176px;display:flex;align-items:center;justify-content:space-between;padding:25px 31px;margin:0 0 19px;border:1px solid #e9e3ef;border-radius:16px;background:linear-gradient(112deg,#fff 0%,#fcf9ff 56%,#f3effb 100%)}.movie-hero .eyebrow{color:#8f829e}.movie-hero h1{margin:0;color:#292230;font:400 clamp(34px,3.3vw,44px)/1.06 var(--serif);letter-spacing:-.7px}.movie-hero h1 em{color:#7967d8}.movie-hero .subcopy{max-width:460px;margin-top:10px}.hero-orbit{position:relative;width:150px;height:130px;margin:0 14px 0 20px;border:1px solid #dbd0eb;border-radius:50%;transform:rotate(-25deg)}.hero-orbit:before,.hero-orbit:after{content:'';position:absolute;inset:13px -14px;border:1px solid #e8d8db;border-radius:50%;transform:rotate(38deg)}.hero-orbit:after{inset:27px -24px;border-color:#e1d8eb;transform:rotate(-40deg)}.hero-orbit span{position:absolute;z-index:2;inset:0;display:grid;place-items:center;width:51px;height:51px;margin:auto;border:1px solid #ffffffad;border-radius:50%;background:linear-gradient(145deg,#e8c2b5,#d5c5ed);color:#59466d;font-size:18px;padding-left:3px;box-shadow:0 8px 20px #81719826}.hero-orbit i,.hero-orbit b{position:absolute;z-index:2;width:7px;height:7px;border-radius:50%;background:#d48d82;box-shadow:0 0 0 5px #d48d8219}.hero-orbit i{top:21px;right:14px}.hero-orbit b{bottom:15px;left:13px;width:auto;height:auto;background:none;box-shadow:none;color:#af91db;font-size:18px}
.movie-layout{display:grid;grid-template-columns:minmax(0,1fr) 258px;gap:15px}.query-card{padding:19px 20px 15px;border:1px solid #ece8f0;border-radius:14px;background:#fff;box-shadow:0 7px 22px #2d1e3807}.query-heading{display:flex;align-items:center;gap:10px;margin-bottom:17px}.query-symbol{width:33px;height:33px;display:grid;place-items:center;border-radius:10px;background:#f1edff;color:#7663d3;font-size:22px}.query-heading small,.rail-kicker{color:#9b91a0;font-size:8px;font-weight:700;letter-spacing:1px}.query-heading h2{margin:4px 0 0;color:#342d3a;font:400 18px var(--serif)}.movie-fields{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:11px}.movie-field{display:grid;gap:6px}.movie-field>span{color:#8d8492;font-size:8px;font-weight:700;letter-spacing:.8px}.movie-field input{width:100%;height:41px;padding:0 11px;outline:none;border:1px solid #e9e4ed;border-radius:8px;background:#fff;color:#392f3e;font:11px var(--sans);transition:.16s}.movie-field input::placeholder{color:#aaa2ad}.movie-field input:focus{border-color:#aa9bdf;box-shadow:0 0 0 3px #8370d617}.query-controls{display:flex;justify-content:space-between;align-items:center;margin:11px 0 10px}.spoiler-note{color:#a26e61;font-size:8px;font-weight:600}.query-cost{color:#a39ba7;font-size:8px}.movie-submit{width:100%;height:39px;display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:8px;background:#7160d9;color:#fff;font-size:10px;font-weight:700;transition:.2s}.movie-submit:hover{background:#5c49c8;transform:translateY(-1px)}.movie-submit:disabled{opacity:.7;cursor:wait;transform:none}.movie-submit b{font-size:16px;font-weight:500}.query-foot{margin:9px 0 0;color:#a49ca8;font-size:8px;line-height:1.5}.research-rail{display:grid;align-content:start;gap:10px}.rail-card{padding:16px 14px;border:1px solid #ece8f0;border-radius:13px;background:#fff}.rail-kicker{display:block;margin-bottom:13px}.rail-item{display:flex;gap:9px;margin:12px 0}.rail-num{color:#ab9bd9;font:400 14px var(--serif)}.rail-item b,.rail-item small{display:block}.rail-item b{color:#4b4350;font-size:9px;font-weight:600}.rail-item small{max-width:160px;margin-top:3px;color:#98909c;font-size:8px;line-height:1.45}.rail-proof{display:flex;align-items:center;gap:7px;margin-top:14px;padding-top:11px;border-top:1px solid #f0edf2;color:#89818e;font-size:7px}.rail-proof i{width:6px;height:6px;border-radius:50%;background:#82c49e}.rail-note{padding:14px;border:1px solid #efdfd7;border-radius:12px;background:#fff8f4}.rail-note span{color:#a7827c;font-size:7px;font-weight:700;letter-spacing:.8px}.rail-note p{margin:8px 0 0;color:#7f6c72;font:12px/1.5 var(--serif)}
.search-status{display:flex;align-items:center;gap:10px;margin-top:17px;padding:13px 14px;border:1px solid #e5dff1;border-radius:10px;background:#f7f4ff;color:#6e6285;font-size:10px;line-height:1.5}.status-icon{width:21px;height:21px;display:grid;place-items:center;flex:none;border-radius:50%;background:#f8e8e2;color:#a95f54;font-weight:700}.loader,.spinner{width:17px;height:17px;flex:none;border:2px solid #d8d0ed;border-top-color:#7160d9;border-radius:50%;animation:spin .75s linear infinite}.spinner{width:13px;height:13px;border-color:#ffffff65;border-top-color:#fff}@keyframes spin{to{transform:rotate(360deg)}}
.result-panel{margin-top:21px;padding:22px 24px 18px;border:1px solid #ebe6ef;border-radius:15px;background:#fff;box-shadow:0 9px 25px #2c193508;scroll-margin-top:94px}.result-top{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid #f0edf2}.spoiler-badge{padding:5px 8px;border-radius:20px;background:#fff0e9;color:#ab6f61;font-size:7px;font-weight:700;letter-spacing:.5px}.result-top>span:nth-child(2){color:#a19aa5;font-size:7px;font-weight:700;letter-spacing:.8px}.result-top button{margin-left:auto;padding:5px 0;border:0;background:none;color:#7664cb;font-size:8px;font-weight:700}.result-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 0 12px}.result-heading .eyebrow{margin-bottom:5px;font-size:7px}.result-heading h2{margin:0;color:#2e2733;font:400 26px/1.15 var(--serif)}.result-heading p:last-child{margin:5px 0 0;color:#9a929f;font-size:8px}.film-reel{width:39px;height:39px;display:grid;place-items:center;border:1px solid #e9e2f1;border-radius:12px;background:#f6f2ff;color:#8a79d8}.answer-body{color:#564e5c;font-size:10px;line-height:1.75}.answer-body h2{margin:19px 0 8px;padding-bottom:7px;border-bottom:1px solid #f0edf2;color:#39313f;font:400 18px var(--serif)}.answer-body h2:first-child{margin-top:7px}.answer-body h3{margin:14px 0 5px;color:#4c4351;font:600 11px var(--sans)}.answer-body p{margin:7px 0}.answer-body strong{color:#3d3344;font-weight:700}.answer-body a,.sources a{color:#6655c4;text-decoration:underline;text-decoration-color:#c7bce9;text-underline-offset:2px}.answer-body ol,.answer-body ul{display:grid;gap:10px;padding-left:21px;margin:10px 0 15px}.answer-body li{padding-left:3px}.answer-body li::marker{color:#8876d5;font-weight:700}.sources{margin-top:17px;padding-top:12px;border-top:1px solid #eeebf1}.sources summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;color:#625969;font-size:9px;font-weight:700;list-style:none}.sources summary::-webkit-details-marker{display:none}.sources summary span+span{color:#a19aa5;font-size:8px;font-weight:500}.sources ol{display:grid;gap:7px;margin:11px 0 0;padding-left:19px;color:#9a929f;font-size:8px}.sources li::marker{color:#a28fdc}
.recent-section{margin-top:25px}.recent-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:10px}.recent-head small{color:#99909e;font-size:8px;font-weight:700;letter-spacing:1px}.recent-head h2{margin:5px 0 0;font:400 19px var(--serif)}.recent-list,.history-list{display:grid;gap:8px}.history-card{display:flex;align-items:center;gap:11px;padding:11px 12px;border:1px solid #ece8f0;border-radius:10px;background:#fff;cursor:pointer;transition:.18s}.history-card:hover{border-color:#d8d0eb;box-shadow:0 6px 17px #34243f0c;transform:translateY(-1px)}.history-play{width:31px;height:31px;display:grid;place-items:center;flex:none;border-radius:9px;background:linear-gradient(145deg,#e7c3b8,#d9d0f1);color:#54436c;font-size:10px}.history-copy{flex:1;min-width:0}.history-copy>div{display:flex;align-items:center;gap:8px}.history-copy>div b{overflow:hidden;color:#423947;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.history-copy>div span{color:#9e95a2;font-size:8px}.history-copy p{overflow:hidden;margin:4px 0;color:#8f8793;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.history-copy small{color:#a69eaa;font-size:7px}.history-arrow{color:#9f95aa;font-size:15px}.no-searches{padding:14px;border:1px dashed #e4dfea;border-radius:10px;color:#a39ba7;font-size:9px}
.history-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:9px 0 24px}.history-heading h1{margin:0;color:#292230;font:400 40px/1.1 var(--serif)}.history-heading h1 em{color:#7967d8}.history-heading .subcopy{margin-top:8px}.history-new{height:37px;padding:0 12px;border:0;border-radius:8px;background:#7160d9;color:#fff;font-size:9px;font-weight:700}.history-new:hover{background:#5d4bc6}.history-tools{display:flex;align-items:center;gap:12px;margin-bottom:13px}.history-search{width:min(330px,100%);height:37px;display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid #e9e5ed;border-radius:8px;background:#fff;color:#9d95a1}.history-search input{width:100%;border:0;outline:0;background:none;color:#3d3542;font:10px var(--sans)}.history-tools>small{color:#9d95a1;font-size:9px}.history-empty{text-align:center;padding:72px 15px}.history-empty>span{color:#8473d2;font-size:28px}.history-empty h2{margin:10px 0 4px;font:400 23px var(--serif)}.history-empty p{color:#908894;font-size:10px}.history-empty button{padding:8px 10px;border:0;border-radius:7px;background:#7160d9;color:#fff;font-size:9px;font-weight:700}
.drawer .empty-notices{color:#938b97;font-size:9px}.modal .label{color:#9a909d;font-size:8px;font-weight:700;letter-spacing:1px}
@media(max-width:1050px){.movie-layout{grid-template-columns:minmax(0,1fr) 235px;gap:12px}.movie-hero{min-height:162px}.hero-orbit{width:126px;height:110px;margin-right:0}.result-panel{padding:19px}.answer-body{font-size:9px}}
@media(max-width:850px){.movie-layout{grid-template-columns:1fr}.research-rail{grid-template-columns:1fr 1fr}.rail-card,.rail-note{height:100%}.rail-item{margin:9px 0}.rail-item small{max-width:none}.movie-hero{min-height:150px}.hero-orbit{width:112px;height:98px}.result-panel{margin-top:16px}}
@media(max-width:600px){.movie-hero{min-height:0;padding:22px 18px}.movie-hero h1{font-size:35px}.movie-hero .subcopy{max-width:300px;font-size:10px}.hero-orbit{width:75px;height:72px;margin-left:5px}.hero-orbit:before{inset:8px -9px}.hero-orbit:after{inset:17px -14px}.hero-orbit span{width:38px;height:38px;font-size:14px}.hero-orbit i{right:7px;top:9px;width:5px;height:5px}.hero-orbit b{bottom:7px;left:4px;font-size:12px}.movie-layout{gap:10px}.query-card{padding:15px 13px 12px}.query-heading{margin-bottom:13px}.query-heading h2{font-size:16px}.movie-fields{grid-template-columns:minmax(0,1fr) 100px;gap:7px}.movie-field input{height:38px;padding:0 8px;font-size:10px}.query-cost,.spoiler-note{font-size:7px}.movie-submit{height:37px;font-size:9px}.query-foot{font-size:7px}.research-rail{gap:8px}.rail-card{padding:13px 11px}.rail-item{gap:6px}.rail-item b{font-size:8px}.rail-item small{font-size:7px}.rail-proof{font-size:6px}.rail-note{padding:12px}.rail-note p{font-size:11px}.result-panel{padding:16px 13px}.result-top{gap:6px}.result-top>span:nth-child(2){font-size:6px}.spoiler-badge{font-size:6px}.result-heading h2{font-size:22px}.answer-body{font-size:9px}.answer-body h2{font-size:16px}.history-heading{align-items:flex-start;gap:7px}.history-heading h1{font-size:33px}.history-new{height:34px;padding:0 9px;font-size:8px}.history-card{gap:8px;padding:9px}.history-play{width:27px;height:27px}.history-copy>div b{font-size:9px}.history-copy p{font-size:7px}.history-copy small{font-size:6px}}

.whatif-panel{margin-top:20px;padding:17px;border:1px solid #e9e2ef;border-radius:13px;background:linear-gradient(135deg,#fbf9ff,#fff 75%)}.whatif-heading{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px}.whatif-icon{width:31px;height:31px;display:grid;place-items:center;flex:none;border-radius:9px;background:#f0edff;color:#7968d0;font-size:18px}.whatif-heading small,.roleplay-heading small{color:#9a90a1;font-size:7px;font-weight:700;letter-spacing:1px}.whatif-heading h3,.roleplay-heading h3{margin:4px 0;color:#332a3a;font:400 18px var(--serif)}.whatif-heading p,.roleplay-heading p{margin:0;color:#8f8793;font-size:8px;line-height:1.5}.whatif-field{display:grid;gap:6px;margin:11px 0}.whatif-field>span{color:#8c8391;font-size:7px;font-weight:700;letter-spacing:.7px}.whatif-field textarea,.whatif-field input{width:100%;padding:9px 10px;outline:none;border:1px solid #e9e4ed;border-radius:8px;background:#fff;color:#453d4a;font:9px/1.55 var(--sans)}.whatif-field textarea{min-height:62px;resize:vertical}.whatif-field input{height:37px}.whatif-field textarea::placeholder,.whatif-field input::placeholder{color:#aaa2ad}.whatif-field textarea:focus,.whatif-field input:focus{border-color:#a99bdd;box-shadow:0 0 0 3px #8370d617}.roleplay-rule{display:flex;align-items:flex-start;gap:8px;margin:12px 0;padding:9px 10px;border-radius:8px;background:#f5f2fb;color:#847796}.roleplay-rule>span{color:#8e7bd8;font-size:12px}.roleplay-rule p{margin:0;font-size:8px;line-height:1.5}.roleplay-rule b{color:#5c4f6a}.whatif-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.whatif-footer>small{color:#a19aa5;font-size:7px}.whatif-submit{height:34px;display:flex;align-items:center;gap:9px;padding:0 11px;border:0;border-radius:8px;background:#7160d9;color:#fff;font-size:8px;font-weight:700;white-space:nowrap}.whatif-submit:hover{background:#5c49c8}.whatif-submit:disabled{opacity:.7;cursor:wait}.whatif-submit b{font-size:14px;font-weight:500}.whatif-error{margin-top:10px;padding:9px 10px;border:1px solid #f1ddd7;border-radius:8px;background:#fff6f2;color:#a65f53;font-size:8px;line-height:1.5}.roleplay-panel{margin-top:18px;padding:17px;border:1px solid #eae5ef;border-radius:13px;background:#fff;box-shadow:0 8px 20px #30223c07}.roleplay-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid #f0edf2}.roleplay-heading h3{margin-bottom:3px}.ai-cast{padding:5px 7px;border:1px solid #e9e3f2;border-radius:20px;background:#f7f4ff;color:#7969c5;font-size:7px;font-weight:700;letter-spacing:.4px;white-space:nowrap}.roleplay-messages{display:grid;gap:12px;max-height:500px;overflow:auto;padding:14px 2px}.roleplay-message{display:flex;align-items:flex-start;gap:8px}.roleplay-avatar{width:25px;height:25px;display:grid;place-items:center;flex:none;border-radius:8px;background:#f0edff;color:#7763d1;font-size:7px;font-weight:700}.player-message .roleplay-avatar{background:#fff0e9;color:#b97563}.roleplay-message>div{flex:1;min-width:0}.roleplay-message>div>small{color:#a29aa6;font-size:6px;font-weight:700;letter-spacing:.7px}.roleplay-message p{margin:4px 0 0;color:#534a58;font:10px/1.65 var(--serif);white-space:pre-wrap}.player-message p{color:#554b62;font:9px/1.6 var(--sans)}.roleplay-loading p{color:#9388a2;font-style:italic}.roleplay-form{padding:9px 10px 8px;border:1px solid #e9e4ed;border-radius:10px;background:#fdfcff}.roleplay-form textarea{width:100%;min-height:39px;resize:vertical;outline:0;border:0;background:transparent;color:#453d4b;font:9px/1.55 var(--sans)}.roleplay-form textarea::placeholder{color:#aca4af}.roleplay-form>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:7px;border-top:1px solid #f0edf2}.roleplay-form>div small{color:#a098a4;font-size:7px}.roleplay-form button{height:28px;display:flex;align-items:center;gap:7px;padding:0 10px;border:0;border-radius:7px;background:#7160d9;color:#fff;font-size:8px;font-weight:700}.roleplay-form button:disabled{opacity:.65;cursor:wait}.roleplay-form button b{font-size:13px;font-weight:500}
@media(max-width:600px){.whatif-panel,.roleplay-panel{padding:13px}.whatif-heading h3,.roleplay-heading h3{font-size:16px}.whatif-footer{align-items:flex-start;flex-direction:column}.whatif-submit{align-self:stretch;justify-content:center}.roleplay-form>div{align-items:flex-start}.roleplay-form>div small{max-width:195px;line-height:1.4}.roleplay-messages{max-height:55vh}}

.character-guide{margin-top:17px;padding:11px 13px;border:1px solid #eee9f1;border-radius:10px;background:#fdfcff}.character-guide summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer;color:#5d5362;font-size:9px;font-weight:700;list-style:none}.character-guide summary::-webkit-details-marker{display:none}.character-guide summary span+span{color:#a198a5;font-size:8px;font-weight:500}.character-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.character-card{padding:10px;border:1px solid #eee9f1;border-radius:9px;background:#fff}.character-card h4{margin:0 0 6px;color:#453a4b;font:600 11px var(--sans)}.character-card p{margin:4px 0;color:#807684;font-size:8px;line-height:1.5}.character-card p b{margin-right:3px;color:#685d70}.scene-guide{margin-top:19px}.scene-guide-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:9px}.scene-guide-heading small{color:#978da0;font-size:7px;font-weight:700;letter-spacing:1px}.scene-guide-heading h3{margin:4px 0;color:#3b323f;font:400 18px var(--serif)}.scene-guide-heading p{margin:0;color:#99909c;font-size:8px;line-height:1.5}.scene-list{display:grid;gap:8px}.scene-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid #ece7ef;border-radius:10px;background:#fff;transition:.16s}.scene-card.scene-selected{border-color:#a99bdd;background:#fbf9ff;box-shadow:0 0 0 2px #8370d612}.scene-card-copy{min-width:0}.scene-card-copy>small{color:#9a8bc4;font-size:7px;font-weight:700;letter-spacing:.7px}.scene-card-copy h4{margin:3px 0;color:#433949;font:600 10px var(--sans)}.scene-card-copy p{margin:0;color:#746a79;font-size:8px;line-height:1.55}.scene-card-copy>span{display:block;margin-top:5px;color:#a097a4;font-size:7px}.scene-card>button{min-width:91px;height:29px;padding:0 8px;border:1px solid #e6e0ed;border-radius:7px;background:#fff;color:#7565c5;font-size:7px;font-weight:700;white-space:nowrap}.scene-card.scene-selected>button{border-color:#dcd4f0;background:#f2effa;color:#6453b8}.scene-card>button:disabled{opacity:.75;cursor:default}.selected-scene{display:grid;gap:4px;margin:0 0 10px;padding:10px 11px;border:1px solid #dcd5f0;border-radius:9px;background:#f8f6ff}.selected-scene small{color:#8878c9;font-size:7px;font-weight:700;letter-spacing:.7px}.selected-scene b{color:#493f54;font-size:9px}.selected-scene p{margin:0;color:#7c7384;font-size:8px;line-height:1.5}.scene-selection-hint{margin:0 0 8px;color:#a28268;font-size:8px}.selected-character{margin:-3px 0 10px;padding:9px 10px;border-left:2px solid #b09ce6;background:#faf8ff}.selected-character>b{color:#574b64;font-size:8px}.selected-character p{margin:4px 0;color:#7f748a;font-size:8px;line-height:1.5}.selected-character small{color:#9b91a1;font-size:7px;line-height:1.45}.whatif-submit:disabled{opacity:.48;cursor:not-allowed}.director-status{margin:11px 0 0;padding:9px 10px;border:1px solid #e7dff5;border-radius:8px;background:#f8f5ff;color:#7968ba;font-size:8px;line-height:1.5}
@media(max-width:600px){.character-list{grid-template-columns:1fr}.scene-card{grid-template-columns:1fr}.scene-card>button{justify-self:start}.scene-guide-heading h3{font-size:16px}}
/* PlotAndCast collection homepage */
.hub-heading{padding:14px 0 28px}.hub-heading h1{margin:0;font:400 clamp(36px,4vw,56px)/1.08 var(--serif);letter-spacing:-1.4px;color:#302638}.hub-heading h1 em{color:#8170c5;font-style:italic}.hub-heading>p:last-child{max-width:490px;margin:15px 0 0;color:#877d91;font-size:12px;line-height:1.8}.featured-bot{position:relative;display:grid;grid-template-columns:1.15fr 1fr;min-height:370px;overflow:hidden;border:1px solid #4c3f60;border-radius:22px;background:radial-gradient(ellipse at 88% 15%,#685280 0%,transparent 50%),linear-gradient(130deg,#251d32,#3a2946);color:#fff;text-decoration:none;box-shadow:0 18px 45px #3e295522;transition:box-shadow .2s,border-color .2s}.featured-bot:hover{border-color:#ac91cd;box-shadow:0 20px 50px #3e295536}.featured-bot:focus-visible,.back-to-hub:focus-visible{outline:3px solid #b594e4;outline-offset:5px}.featured-copy{position:relative;z-index:1;padding:35px}.featured-label{display:flex;align-items:center;gap:7px;color:#d3c3e1;font-size:8px;font-weight:700;letter-spacing:1.1px}.featured-label i{width:6px;height:6px;border-radius:50%;background:#b4ddbc;box-shadow:0 0 0 4px #b4ddbc15}.featured-copy h2{margin:23px 0 12px;font:400 clamp(34px,3.3vw,46px)/1 var(--serif);letter-spacing:-1px}.featured-tagline{margin:0;color:#e9c5b3;font:400 23px/1.3 var(--serif)}.featured-description{max-width:330px;margin:15px 0 23px;color:#c6b9d0;font-size:11px;line-height:1.8}.featured-cta{display:inline-flex;align-items:center;gap:30px;padding:12px 18px;border-radius:9px;background:#edc5b2;color:#35253d;font-size:11px;font-weight:700}.featured-cta b{font-size:18px;font-weight:400}.featured-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:21px}.featured-tags span{padding:5px 8px;border:1px solid #ffffff20;border-radius:20px;font-size:8px;color:#c6b8d2}.featured-art{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;padding:30px 30px 55px;isolation:isolate}.art-orbit{position:absolute;width:360px;height:360px;border:1px solid #d2a5d638;border-radius:50%;box-shadow:0 0 0 30px #d2a5d608,0 0 0 60px #d2a5d605;z-index:-1}.film-ticket{width:220px;max-width:100%;padding:17px;border:1px solid #f0d3bd55;border-radius:14px;background:linear-gradient(145deg,#d8b6a6,#f4dfc6);color:#483146;transform:rotate(8deg);box-shadow:18px 22px 0 -7px #130e202f,0 18px 50px #170d3444}.ticket-top{display:flex;justify-content:space-between;border-bottom:1px solid #63445a30;padding-bottom:13px;font-size:7px;letter-spacing:1.1px;font-weight:700}.ticket-play{display:grid;place-items:center;width:62px;height:62px;margin:27px auto 23px;border:1px solid #714f6655;border-radius:50%;font-size:23px;padding-left:4px}.film-ticket p{font:26px/1.15 var(--serif);letter-spacing:-.5px;margin:0 0 24px}.film-ticket p em{color:#8d5b77}.ticket-bottom{border-top:1px dashed #734f6955;padding-top:12px;font-size:6px;letter-spacing:1px}.art-star{position:absolute;top:40px;right:25px;color:#dfb8b7;font-size:37px}.art-caption{position:absolute;bottom:25px;color:#c6afd4;font:italic 12px var(--serif)}.upcoming-bots{margin-top:32px}.hub-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.hub-section-heading h2{margin:0;font:25px var(--serif);color:#3d3246}.hub-section-heading>span{color:#9b8fa5;font-size:9px}.bot-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.future-bot{padding:22px;border:1px solid #e8e1ee;border-radius:15px;background:#fff}.future-icon{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#f1edfa;color:#8c72b7;font-size:24px}.coming-label{float:right;margin-top:12px;color:#a495b0;font-size:7px;letter-spacing:.8px;font-weight:700}.future-bot h3{margin:18px 0 8px;font:23px var(--serif);color:#584964}.future-bot p{max-width:320px;min-height:38px;margin:0;color:#9a8da5;font-size:11px;line-height:1.7}.future-footer{display:flex;justify-content:space-between;border-top:1px solid #eee8f3;padding-top:15px;margin-top:21px;color:#a496af;font-size:9px}.future-footer b{font-size:14px;font-weight:400}.future-placeholder{background:#f6f3f9;border-style:dashed}.back-to-hub{display:inline-block;margin:0 0 18px;color:#81718f;text-decoration:none;font-size:11px}.back-to-hub:hover{color:#5d4380}
@media(max-width:900px){.featured-copy{padding:26px}.film-ticket{width:190px}.featured-art{padding:25px 20px 55px}.art-orbit{width:250px;height:250px}}
@media(max-width:600px){.hub-heading{padding:8px 0 23px}.hub-heading>p:last-child{font-size:11px}.featured-bot{grid-template-columns:1fr;min-height:0}.featured-copy{padding:25px}.featured-art{display:none}.featured-copy h2{font-size:38px}.featured-description{max-width:100%;font-size:12px}.featured-cta{width:100%;justify-content:space-between}.bot-grid{grid-template-columns:1fr}.hub-section-heading h2{font-size:23px}.future-bot{padding:19px}.featured-tagline{font-size:24px}.sidebar nav{flex-wrap:wrap}.hub-section-heading>span{white-space:nowrap}}

.available-series{display:block;text-decoration:none;color:inherit;border-color:#a696d1;background:#f2edff}.available-series:hover{border-color:#6f4ca5;transform:translateY(-2px)}.season-heading{grid-column:1/-1;margin:24px 0 4px;padding-bottom:12px;border-bottom:1px solid #d9cdec;color:#694697}.movie-fields{flex-wrap:wrap}#season-field{min-width:140px}.bot-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}

.rules-panel{margin:24px 0;background:#f7f3ff}.rules-panel #rules-help{font-size:13px;line-height:1.6;color:#6d637c}.rules-panel #rules-status{display:block;margin-top:10px;color:#65448c}.rules-panel textarea{width:100%;box-sizing:border-box}

.featured-series{margin-top:24px;border-color:#365b66;background:radial-gradient(ellipse at 88% 15%,#3c7980 0%,transparent 55%),linear-gradient(130deg,#142e39,#234c53)}
.featured-series:hover{border-color:#94d3c7;box-shadow:0 20px 50px #183e4236}
.featured-series .featured-label,.featured-series .featured-description,.featured-series .featured-tags span{color:#c0dedc}
.featured-series .featured-tagline{color:#d0edcc}
.featured-series .featured-cta{background:#cde8c4;color:#23433c}
.featured-series .art-orbit{border-color:#b8e1c938;box-shadow:0 0 0 30px #b8e1c908,0 0 0 60px #b8e1c905}
.featured-series .art-star,.featured-series .art-caption{color:#c4e4d5}
.series-ticket{background:linear-gradient(145deg,#afcec2,#e2efd0);color:#2e534d;transform:rotate(-7deg);border-color:#d3edcd55}
.series-ticket p em{color:#487f73}.series-ticket .ticket-play{padding-left:0;border-color:#49766a55}.series-ticket .ticket-top{border-color:#49766a30}.series-ticket .ticket-bottom{border-color:#49766a55}

.featured-character{margin-top:24px;border-color:#79504f;background:radial-gradient(ellipse at 88% 15%,#9a6464 0%,transparent 55%),linear-gradient(130deg,#39252e,#65404a)}
.featured-character{background:radial-gradient(ellipse at 88% 15%,#9a6464 0%,transparent 55%),linear-gradient(130deg,#39252e,#65404a)}
.featured-character:hover{border-color:#79504f;box-shadow:0 18px 45px #3e295522}
.featured-character .featured-label,.featured-character .featured-description,.featured-character .featured-tags span{color:#ecd0d0}
.featured-character .featured-label i{background:#efc6a0;box-shadow:0 0 0 4px #efc6a015}
.featured-character .featured-tagline{color:#f6d6b7}
.featured-character .art-orbit{border-color:#efc9ba38;box-shadow:0 0 0 30px #efc9ba08,0 0 0 60px #efc9ba05}
.featured-character .art-star,.featured-character .art-caption{color:#ecc8c4}
.character-ticket{background:linear-gradient(145deg,#e0b4ab,#f5dec2);color:#65404a;transform:rotate(6deg)}
.character-ticket p em{color:#99625f}.character-ticket .ticket-play{padding-left:0}
.character-coming{display:inline-flex;align-items:center;gap:30px;padding:12px 18px;border:1px solid #efc9ba55;border-radius:9px;color:#f6d6b7;font-size:11px;font-weight:700}.character-coming b{font-size:18px;font-weight:400}

.featured-character .featured-cta{background:#f1c9b4;color:#54313b}.featured-character:hover{border-color:#e3b8a5;box-shadow:0 20px 50px #3e295536}
.character-browser-tools{display:flex;justify-content:space-between;gap:16px;align-items:center}.character-browser-tools .history-search{flex:1;max-width:460px}.character-sample-note{font-size:12px;line-height:1.7;color:#86768c;margin:16px 0 24px}.character-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.catalog-card{overflow:hidden;border:1px solid #e8e1ee;border-radius:18px;background:#fff}.character-portrait{height:150px;position:relative;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#302449,#7970a4);color:#eadfff}.character-portrait:before{content:"";position:absolute;width:130px;height:130px;border:1px solid #ffffff30;border-radius:50%;box-shadow:0 0 0 20px #ffffff08,0 0 0 40px #ffffff05}.character-portrait>span{font-size:64px;z-index:1}.character-portrait i{position:absolute;bottom:12px;left:16px;font-size:10px;font-style:normal;letter-spacing:1px}.portrait-forest{background:linear-gradient(135deg,#203b35,#789583);color:#dbefd1}.portrait-amber{background:linear-gradient(135deg,#443237,#a27f55);color:#f5deaf}.portrait-rose{background:linear-gradient(135deg,#61364e,#c18d9b);color:#ffe2ce}.portrait-ocean{background:linear-gradient(135deg,#203d55,#719fa7);color:#d6f0ec}.portrait-copper{background:linear-gradient(135deg,#58372d,#bc9464);color:#ffe6bd}.catalog-copy{padding:20px}.catalog-copy>small{font-size:10px;color:#897791}.catalog-copy h2{font:27px var(--serif);margin:8px 0;color:#49364f}.catalog-copy p{font-size:12px;line-height:1.8;color:#86778c;margin:0 0 16px}.character-traits{display:block;font-size:10px;color:#946880;line-height:1.7}.catalog-copy button{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:19px;padding:12px 0 0;border:0;border-top:1px solid #eee5ef;background:transparent;color:#644274;font:inherit;font-size:12px;cursor:pointer}.catalog-copy button:focus-visible{outline:2px solid #9376ba;outline-offset:4px}.character-opening{margin:16px 0;padding:18px;background:#f7f1f7;border-left:3px solid #ba94b4;font-size:14px;line-height:1.8;color:#674f70}
@media(max-width:1000px){.character-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.character-catalog{grid-template-columns:1fr}.character-browser-tools{align-items:stretch;flex-direction:column}.character-browser-tools .history-search{max-width:none}.character-portrait{height:170px}}

.character-workspace{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;align-items:start}.character-collection{min-width:0}.character-create-rail{padding:20px;background:#fff7f5;border:1px solid #ead9d8;border-radius:16px;position:sticky;top:20px}.character-create-rail h2{font:25px var(--serif);color:#624551;margin:18px 0 10px}.character-create-rail p{font-size:12px;line-height:1.8;color:#8b7883}.character-create-rail button{width:100%;margin:8px 0 14px}.character-create-rail>small{font-size:10px;color:#8b7883}.character-collection .character-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.character-create-form textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #ded3e4;border-radius:8px;font:inherit;resize:vertical}.character-create-form label{display:block;margin-top:12px}.modal:has(.character-create-form){max-height:85vh;overflow-y:auto}
@media(max-width:800px){.character-workspace{grid-template-columns:1fr}.character-create-rail{position:static}.character-create-rail button{width:auto}}@media(max-width:600px){.character-collection .character-catalog{grid-template-columns:1fr}}

.character-sort{display:flex;gap:8px;flex-wrap:wrap}.character-sort button{padding:10px 20px;border:1px solid #e4d9e9;border-radius:24px;background:#fff;color:#806b8a;font:inherit;font-size:12px;cursor:pointer;transition:background .15s,color .15s}.character-sort button[aria-pressed="true"]{background:#684874;border-color:#684874;color:#fff}.character-sort button:hover{border-color:#9975a6}.character-sort button:focus-visible{outline:3px solid #c3a6d0;outline-offset:3px}.character-sort-note{font-size:11px;line-height:1.7;color:#88758f;margin:12px 0 20px}

.character-gender-filter{display:flex;align-items:center;gap:12px;margin-top:16px;font-size:12px;color:#806b8a}.character-gender-filter select,.character-create-form select{padding:10px 12px;border:1px solid #e4d9e9;border-radius:9px;background:#fff;color:#644274;font:inherit}.character-create-form select{width:100%;box-sizing:border-box}.character-gender-filter select:focus-visible,.character-create-form select:focus-visible{outline:2px solid #9975a6;outline-offset:2px}

.character-chat-settings{padding:18px;border-bottom:1px solid #ddd3e5}.character-chat-settings summary{cursor:pointer}.character-chat-settings textarea{display:block;width:100%;box-sizing:border-box;padding:12px;margin:10px 0;border:1px solid #cfc4da;border-radius:10px;font:inherit}.character-chat-bubble{padding:14px 18px;margin:12px 0;border-radius:14px;background:#f4f0f8}.character-chat-bubble.from-user{background:#e9e0f4;margin-left:10%}.character-chat-bubble p{white-space:pre-wrap;line-height:1.65;margin:6px 0}.character-chat-bubble small{font-size:10px;letter-spacing:.12em}#character-chat-error{color:#a12946;padding:0 18px}#character-chat-panel{scroll-margin-top:30px}
#character-new-chat,.character-chat-bubble button,#character-cancel-edit{border:1px solid #cfc4da;background:#fff;color:#49315e;border-radius:9px;padding:8px 12px;cursor:pointer;font:inherit}#character-sessions{max-width:100%;padding:10px;margin:10px;border:1px solid #cfc4da;border-radius:9px}#character-edit-note{padding:12px 18px;background:#f5ecff;line-height:1.6}#character-chat-panel button:disabled{opacity:.55;cursor:wait}.character-chat-bubble button{font-size:12px;margin-top:4px}
/* Medium character cards: fit more profiles without shrinking chat controls. */
.character-collection .character-catalog{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:14px}
.catalog-card{border-radius:13px;display:flex;flex-direction:column}
.character-portrait{height:96px;flex-shrink:0}
.character-portrait:before{width:76px;height:76px;box-shadow:0 0 0 14px #ffffff08,0 0 0 28px #ffffff05}
.character-portrait>span{font-size:40px}
.character-portrait i{bottom:9px;left:12px;font-size:9px}
.catalog-copy{padding:14px;display:flex;flex-direction:column;flex:1;min-width:0}
.catalog-copy>small{font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.catalog-copy h2{font-size:21px;margin:6px 0;overflow-wrap:anywhere}
.catalog-copy p{font-size:12px;line-height:1.55;margin:0 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.character-traits{font-size:10px;line-height:1.5;margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.catalog-copy button{margin-top:auto;padding:10px 0 0;min-height:40px}
@media(max-width:480px){.character-collection .character-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.catalog-copy{padding:10px}.catalog-copy h2{font-size:19px}.character-portrait{height:80px}}
@media(max-width:340px){.character-collection .character-catalog{grid-template-columns:1fr}}

.character-portrait>img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.character-portrait:has(img):before{display:none}.character-portrait:has(img) i{background:#20172bcc;color:#fff;padding:3px 6px;border-radius:4px}.character-thumbnail-preview{display:block;width:100%;max-height:220px;object-fit:cover;border-radius:12px;margin-bottom:16px}.thumbnail-upload{display:block;margin:14px 0 8px;font-size:13px}.thumbnail-upload input{display:block;max-width:100%;margin-top:8px}#new-character-thumbnail{padding:10px;width:100%;box-sizing:border-box}
.featured-movie{grid-template-columns:1fr 1.2fr}.featured-movie .featured-cta{text-decoration:none}.cinema-carousel{position:relative;min-height:410px;overflow:hidden;background:#201927;isolation:isolate}.cinema-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease;pointer-events:none}.cinema-slide.is-active{opacity:1}.cinema-carousel:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#30223c55,transparent 30%),linear-gradient(0deg,#140d20e8,transparent 65%);pointer-events:none}.cinema-overlay{position:absolute;z-index:1;bottom:25px;left:25px;right:25px;color:#fff}.cinema-overlay small{font-size:9px;letter-spacing:2px;color:#ead4bd}.cinema-caption{font:27px/1.15 var(--serif);margin:10px 0 20px}.cinema-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.cinema-dots{display:flex;gap:5px}.cinema-dots button{width:25px;height:28px;padding:0;border:0;background:transparent;cursor:pointer}.cinema-dots button:after{content:'';display:block;height:3px;border-radius:8px;background:#ffffff60}.cinema-dots button[aria-pressed=true]:after{background:#f0c7a6}.cinema-pause{background:#251c3290;color:#fff;border:1px solid #ffffff55;border-radius:20px;padding:8px 14px;cursor:pointer;font:inherit;font-size:11px}.cinema-carousel button:focus-visible{outline:2px solid #fff;outline-offset:3px}@media(max-width:700px){.featured-movie{grid-template-columns:1fr}.cinema-carousel{min-height:280px}.cinema-caption{font-size:25px}}@media(prefers-reduced-motion:reduce){.cinema-slide{transition:none}}

.featured-series-cinema{grid-template-columns:1fr 1.2fr}.featured-series-cinema .featured-cta{text-decoration:none}.featured-series-cinema .cinema-carousel:after{background:linear-gradient(0deg,#101e2bea,transparent 60%)}.featured-series-cinema .cinema-overlay small{color:#d1f6ed}.featured-series-cinema .cinema-dots button[aria-pressed=true]:after{background:#a2eddb}@media(max-width:700px){.featured-series-cinema{grid-template-columns:1fr}}

.bot-howto{margin:0 0 20px;padding:18px 22px;border:1px solid #e3dced;border-radius:15px;background:#fff}.bot-howto summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;color:#493556;font-weight:600}.bot-howto summary:after{content:'⌄'}.bot-howto summary small{margin-left:auto;font-weight:400;color:#85748c;font-size:11px}.bot-howto-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px;padding-left:22px;margin:22px 0 15px}.bot-howto-steps li{padding-left:3px;color:#8163a0;font-size:13px}.bot-howto-steps b{color:#493556}.bot-howto-steps p{font-size:12px;line-height:1.7;color:#75667d;margin:7px 0}.bot-howto-example{background:#f6f1fa;padding:13px 16px;border-radius:10px;color:#604c6d;font-size:12px}.bot-howto-example p{margin:7px 0;font-style:italic}.bot-howto-example span{line-height:1.6}.bot-howto-note{font-size:11px;line-height:1.7;color:#85748c;margin:14px 0 0}@media(max-width:900px){.bot-howto-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.bot-howto{padding:16px}.bot-howto-steps{grid-template-columns:1fr;gap:10px}.bot-howto summary small{display:none}}

#account-button{margin:12px 0;padding:10px;border:1px solid #b9a3ce;background:#f6efff;border-radius:9px;color:#493556;cursor:pointer}#account-dialog{border:1px solid #d8c9e3;border-radius:18px;padding:26px;max-width:420px;width:calc(100% - 72px);color:#493556}#account-dialog::backdrop{background:#17102099}#account-close{float:right;border:0;background:none;font-size:24px;cursor:pointer}#account-dialog label{display:block;margin:14px 0}#account-dialog input{display:block;box-sizing:border-box;width:100%;margin-top:5px;padding:12px;border:1px solid #cbbbd6;border-radius:8px;font:inherit}#account-dialog button:not(#account-close){padding:10px 15px;border:1px solid #cbbbd6;border-radius:8px;background:#f2eaf8;color:#493556;cursor:pointer}#account-dialog p{font-size:13px;line-height:1.6}#account-dialog dd{margin:4px 0 12px}

.topbar-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.topbar-actions #account-button{margin:0;white-space:nowrap;font-size:12px;font-weight:600;min-height:37px}.topbar{gap:10px}@media(max-width:500px){.topbar-actions{gap:6px}.topbar-actions #account-button{font-size:11px;padding:8px;min-height:33px}}

.cloud-save-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:10px 18px;font-size:12px;background:#f1eaf7;color:#493257}.cloud-save-bar button{margin:3px;border:1px solid #c9b6d6;border-radius:6px;background:white;color:inherit;padding:5px 9px;cursor:pointer}
#character-role-form fieldset { border: 1px solid #d6cde5; border-radius: 12px; padding: 14px; max-height: 240px; overflow: auto; }
#character-role-form fieldset label { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
#character-role-form input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; }

/* Compact scenario discovery page */
#characters-view .character-heading{margin:16px 0 22px}
#characters-view .character-heading h1{font-size:clamp(28px,3.4vw,42px);line-height:1.15;margin:8px 0 10px}
#characters-view .character-heading>p:last-child{font-size:14px;max-width:650px}
#characters-view .character-workspace{display:flex;flex-direction:column;gap:18px}
#characters-view .character-create-rail{position:static;display:flex;align-items:center;gap:14px;width:100%;box-sizing:border-box;padding:12px 16px;border-radius:12px}
#characters-view .character-create-rail .future-icon,#characters-view .character-create-rail p,#characters-view .character-create-rail>small{display:none}
#characters-view .character-create-rail h2{font-size:19px;margin:0;flex:1}
#characters-view .character-create-rail button{width:auto;margin:0;min-height:44px}
#characters-view .character-collection{width:100%}
#characters-view .character-sample-note{font-size:12px;margin:10px 0}
#characters-view .character-catalog{grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px;margin-top:16px}
#characters-view .catalog-card{border-radius:12px;transition:transform .16s,box-shadow .16s;min-width:0}
#characters-view .catalog-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #39214514}
#characters-view .character-portrait{height:110px}
#characters-view .character-portrait>span{font-size:42px}
#characters-view .character-portrait i{font-size:10px;bottom:9px;left:10px}
#characters-view .catalog-copy{padding:12px}
#characters-view .catalog-copy h2{font-size:20px;line-height:1.2;margin:6px 0 8px}
#characters-view .catalog-copy>small{font-size:10px}
#characters-view .catalog-copy p{font-size:12px;line-height:1.55;-webkit-line-clamp:2}
#characters-view .character-traits{display:none}
#characters-view .catalog-copy button{font-size:12px;min-height:44px}
@media(max-width:600px){
 #characters-view .character-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #characters-view .character-portrait{height:100px}
 #characters-view .catalog-copy{padding:10px}
 #characters-view .catalog-copy h2{font-size:18px}
 #characters-view .character-create-rail{flex-wrap:wrap}
}
@media(max-width:350px){#characters-view .character-catalog{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#characters-view .catalog-card{transition:none}#characters-view .catalog-card:hover{transform:none}}

/* Image-first scenario cards, with compact sans-serif typography. */
#characters-view{font-family:Arial,Helvetica,sans-serif}
#characters-view .character-heading h1,#characters-view .character-create-rail h2{font-family:Arial,Helvetica,sans-serif;font-weight:700}
#characters-view .character-catalog{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:12px}
#characters-view .catalog-card{border-radius:9px;border-color:#ded5ed;background:#faf8ff}
#characters-view .character-portrait{height:auto;aspect-ratio:1/1;min-height:0}
#characters-view .character-portrait>img{object-fit:cover;object-position:center}
#characters-view .character-portrait>span{font-size:54px}
#characters-view .character-portrait i{font:600 10px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.2px;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#21172ccc;color:white;padding:4px 7px;border-radius:5px}
#characters-view .catalog-copy{padding:9px 10px 8px;gap:0}
#characters-view .catalog-copy>small{font:400 10px/1.4 Arial,Helvetica,sans-serif;color:#6d6275;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#characters-view .catalog-copy h2{font:700 13px/1.35 Arial,Helvetica,sans-serif;letter-spacing:0;margin:5px 0 6px;color:#241b2c;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#characters-view .catalog-copy p{font:400 12px/1.45 Arial,Helvetica,sans-serif;color:#514759;margin-bottom:7px;-webkit-line-clamp:2}
#characters-view .catalog-copy button{font:600 12px/1.3 Arial,Helvetica,sans-serif;min-height:40px;padding-top:7px;color:#7144a0}
@media(max-width:600px){#characters-view .character-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#characters-view .character-portrait{height:auto;aspect-ratio:1/1}#characters-view .catalog-copy h2{font-size:13px}}
@media(max-width:350px){#characters-view .character-catalog{grid-template-columns:1fr}}

.scenario-tags{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}
.scenario-tags button{border:1px solid #e6dfef;background:#f5f1f8;color:#65566e;border-radius:20px;padding:8px 12px;font:12px Arial,sans-serif;cursor:pointer;min-height:36px}
.scenario-tags button[aria-pressed=true]{background:#7952a8;color:white;border-color:#7952a8}
.scenario-tags button:focus-visible{outline:2px solid #7952a8;outline-offset:3px}
.scenario-tag-picker{margin:16px 0;border:1px solid #ded3e4;border-radius:10px;padding:12px}
.scenario-tag-picker label{display:flex!important;align-items:center;gap:8px;font-size:13px}
.scenario-tag-picker input{width:auto!important;margin:0!important}

/* Compact image-led theme picker. Only widens the theme selection dialog. */
.modal:has(#scenario-base-options){width:min(900px,100%);box-sizing:border-box;max-height:90dvh;overflow-y:auto;padding:26px;font-family:Arial,Helvetica,sans-serif}
.modal:has(#scenario-base-options) h2{font:700 24px/1.25 Arial,Helvetica,sans-serif;margin:8px 32px 8px 0}
.modal:has(#scenario-base-options) .theme-picker-intro{font:400 13px/1.5 Arial,Helvetica,sans-serif;color:#716578;margin-bottom:20px}
#scenario-base-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.scenario-theme-card{display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;text-align:left;white-space:normal;border:1px solid #ded5ed;border-radius:10px;background:#faf8ff;color:#241b2c;cursor:pointer;font-family:Arial,Helvetica,sans-serif;transition:transform .16s,border-color .16s,box-shadow .16s}
.scenario-theme-card:hover{transform:translateY(-3px);border-color:#a18aca;box-shadow:0 6px 18px #35214819}
.scenario-theme-card:focus-visible{outline:3px solid #7954bf;outline-offset:3px}
.scenario-theme-card>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.scenario-theme-copy{display:flex;flex-direction:column;flex:1;padding:10px}
.scenario-theme-copy>strong{font:700 13px/1.35 Arial,Helvetica,sans-serif;margin-bottom:5px}
.scenario-theme-description{font:400 12px/1.45 Arial,Helvetica,sans-serif;color:#665970;min-height:35px}
.scenario-theme-action{display:block;margin-top:auto;padding-top:10px;font:600 11px/1.4 Arial,Helvetica,sans-serif;color:#7751a4}
@media(max-width:650px){.modal:has(#scenario-base-options){padding:20px 16px}#scenario-base-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.modal:has(#scenario-base-options) h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.scenario-theme-card{transition:none}.scenario-theme-card:hover{transform:none}}

.site-policy-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}.site-policy-footer>div{display:flex;gap:14px;flex-wrap:wrap}.policy-links{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;line-height:1.6}.policy-links a{color:inherit;text-decoration:underline;text-underline-offset:3px}.policy-links a:focus-visible{outline:2px solid currentColor;outline-offset:3px}.account-policy-note{font-size:12px;line-height:1.6;color:#796a87}.account-policy-note a{color:#674297}.standalone-policy-footer{max-width:1080px;margin:24px auto;padding:20px}.standalone-policy-footer .policy-links{justify-content:center}


/* Optional post-chat feedback invitation */
.feedback-nudge{position:fixed;z-index:45;right:22px;bottom:22px;width:min(390px,calc(100vw - 32px));padding:18px 18px 15px;border:1px solid #d8c5e8;border-radius:18px;background:rgba(255,252,255,.98);box-shadow:0 18px 54px rgba(48,29,68,.22);color:#30213d;display:grid;gap:14px;animation:feedbackNudgeIn .22s ease-out}
.feedback-nudge-copy{display:grid;gap:5px}.feedback-nudge-copy strong{font-size:15px}.feedback-nudge-copy span{font-size:13px;line-height:1.5;color:#74667d}
.feedback-nudge-actions{display:flex;align-items:center;gap:14px}.feedback-nudge-actions a{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border-radius:11px;background:#7244a1;color:#fff;text-decoration:none;font-weight:700;font-size:13px}.feedback-nudge-actions button{border:0;background:transparent;color:#74667d;font:inherit;font-size:13px;cursor:pointer;padding:8px}
@keyframes feedbackNudgeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.feedback-nudge{right:12px;bottom:12px;width:calc(100vw - 24px)}}
@media(prefers-reduced-motion:reduce){.feedback-nudge{animation:none}}


/* Keep the intro page scrollable at any browser zoom and provide direct jumps to each featured bot. */
html{min-height:100%;overflow-y:auto;scroll-padding-top:88px;scroll-behavior:smooth}
body{min-height:100vh;min-height:100dvh;overflow-x:hidden;overflow-y:auto}
.app{min-height:100vh;min-height:100dvh;height:auto}
.main{min-height:0}
.content{min-height:0}
.sidebar{height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior:contain}
.home-bot-jumps{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 24px;color:#81768a;font-size:11px}
.home-bot-jumps a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border:1px solid #e4dce9;border-radius:22px;background:#fff;color:#554467;text-decoration:none;font-size:12px;font-weight:600;transition:background .15s,border-color .15s}
.home-bot-jumps a:hover{background:#f3eef8;border-color:#b9a6cc}
.home-bot-jumps a:focus-visible{outline:3px solid #b594e4;outline-offset:3px}
#movie-bot,#series-bot,#scenario-bot{scroll-margin-top:90px}
@media(max-width:700px){.sidebar{height:auto;overflow:visible}.home-bot-jumps{margin-bottom:18px}.home-bot-jumps a{min-height:44px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.home-bot-jumps a{transition:none}}


/* Keep tall scenario preview dialogs inside the viewport and scroll their contents. */
#modal:has(.character-opening){max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#modal:has(.character-opening) .modal-x{position:sticky;top:0;float:right;z-index:3;display:grid;place-items:center;margin:-14px -14px -28px auto;width:28px;height:28px}
@media(max-height:640px){#modal:has(.character-opening){max-height:calc(100dvh - 20px);padding:18px}}


/* Dedicated full-page view for Scenario Bot conversations. */
.scenario-chat-view{width:100%;max-width:1180px;box-sizing:border-box;margin:0 auto;padding-top:18px}
.scenario-chat-back{display:inline-flex;align-items:center;min-height:44px;margin:0 0 14px;padding:0 14px;border:1px solid #e4dce9;border-radius:10px;background:#fff;color:#554467;text-decoration:none;font-size:13px;font-weight:600}
.scenario-chat-back:hover{background:#f3eef8;border-color:#b9a6cc}
.scenario-chat-back:focus-visible{outline:3px solid #b594e4;outline-offset:3px}
#scenario-chat-view #character-chat-panel{width:100%;box-sizing:border-box;margin:0}
@media(max-width:700px){.scenario-chat-view{padding-top:8px}.scenario-chat-back{margin-bottom:10px}}

/* Scenario Bot launch gate. */
.nav-item:disabled{cursor:not-allowed;opacity:.72}.featured-bot.coming-soon-card{cursor:default}.featured-bot.coming-soon-card:hover{border-color:#4c3f60;box-shadow:0 18px 45px #3e295522}

.history-card{gap:8px}
.history-open{display:flex;flex:1;align-items:center;gap:11px;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.history-open:hover{background:transparent}
.history-open:focus-visible{outline:2px solid #7967d8;outline-offset:2px}
.history-delete{flex:none;min-height:30px;padding:0 8px;border:1px solid #eee3e3;border-radius:7px;background:#fff;color:#9d4c4c;font:600 8px var(--sans);cursor:pointer;transition:.18s}
.history-delete:hover{background:#fff5f5;border-color:#e2baba}
.history-delete:focus-visible{outline:2px solid #9d4c4c;outline-offset:2px}
.referral-box{margin-top:12px;padding:13px;border:1px solid #e9e4ed;border-radius:10px;background:#fbf9fc}.referral-box>b{font-size:10px;color:#4b4252}.referral-box p{margin:5px 0 10px;font-size:9px}.referral-link{display:flex;gap:8px}.referral-link input{flex:1;min-width:0;height:34px;padding:0 10px;border:1px solid #e9e4ed;border-radius:8px;background:#fff;color:#4b4252;font:9px var(--sans)}.referral-link button{height:34px;padding:0 14px;border:0;border-radius:8px;background:#7563d4;color:#fff;font-size:9px;font-weight:700;cursor:pointer}.referral-box small{display:block;margin-top:8px;color:#8c8490;font-size:8px}
.referral-badge{margin-left:6px;padding:2px 7px;border-radius:20px;background:#efeaf9;color:#5a49b8;font-size:8px;font-weight:700}
#account-dialog .account-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
#account-dialog hr{border:0;border-top:1px solid #e6dbee;margin:16px 0}
#account-dialog h3{margin:0 0 6px;font-size:15px}
#account-dialog .account-warning{padding:10px 12px;border:1px solid #e3b4bd;border-radius:8px;background:#fdf1f3;color:#6f1d2d}
#account-dialog button.account-danger:not(#account-close){border-color:#d49aa6;background:#fbeaee;color:#8a1f36}
#account-dialog button:disabled:not(#account-close){opacity:.6;cursor:default}
