:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#eee9e6;background:#151318;font-synthesis:none;--bg: #151318;--panel: #1e1b21;--line: #353038;--muted: #aba1ad;--pink: #efa1ae;--cream: #f5ede4;--serif: Georgia, "Times New Roman", serif;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--pink);outline-offset:4px}button{border:0}a{color:inherit;text-decoration:none}p{line-height:1.65}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:500}small{line-height:1.5}::selection{background:#9a5065;color:#fff}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:222px;padding:43px 25px 24px;background:#1a171d;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.wordmark{font-family:var(--serif);font-size:58px;font-style:italic;letter-spacing:-4px;line-height:1;color:var(--cream);display:inline-block}.wordmark span{font-style:normal;font-size:22px;vertical-align:top;margin:3px 0 0 9px;display:inline-block;color:var(--pink);letter-spacing:0}.brand-note{font-size:8px;letter-spacing:2.1px;color:var(--muted);margin:16px 0 48px}.sidebar nav{display:flex;flex-direction:column;gap:10px}.nav{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:10px;background:transparent;color:var(--muted);text-align:left;font-size:14px}.nav:hover{background:#242027;color:var(--cream)}.nav.active{background:#36272f;color:#f4bbc5}.unread-dot{display:block;width:7px;height:7px;border-radius:50%;background:var(--pink);flex:none}.nav .unread-dot{margin-left:auto}.sidebar-bottom{margin-top:auto;padding:20px 10px 0}.small-heart{color:var(--pink)}.sidebar-bottom p{color:var(--muted);font-size:12px;line-height:1.8;margin:13px 0 22px}.sidebar-bottom strong{font-weight:400;color:#d9cdd6}.local-badge{font-size:8px;letter-spacing:1.4px;display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:16px}.local-badge span{color:#a2bca4}.app-shell main{margin-left:222px;flex:1;min-width:0}.topbar{height:76px;padding:0 48px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:1.5px;color:var(--muted)}.slash{margin:0 12px;color:#625365}.connection{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:0}.connection i{width:6px;height:6px;background:#a99687;border-radius:100%}.connection.connected i{background:#a1bda2}.discover-page,.settings-page{max-width:1500px;padding:48px;margin:0 auto;min-height:calc(100vh - 138px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:38px}.eyebrow{display:block;font-size:9px;letter-spacing:2.2px;color:#c9b2bd;font-weight:500;margin-bottom:16px}h1{font-family:var(--serif);font-size:46px;letter-spacing:-1.5px;margin-bottom:15px;line-height:1.1}h1 em{color:var(--pink);font-weight:400}.page-heading p{color:var(--muted);font-size:13px;margin-bottom:0;max-width:550px}.surprise-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.surprise-family{display:inline-flex;min-width:0}.surprise-family select{height:42px;min-width:152px;max-width:230px;padding:0 12px;border:1px solid #554050;border-radius:8px;color:var(--cream);background:#211b25;font-size:12px;cursor:pointer}.surprise-family select:disabled{opacity:.55;cursor:not-allowed}.surprise-counter{display:inline-flex;align-items:center;border:1px solid #554050;border-radius:8px;background:#211b25;height:42px;overflow:hidden}.surprise-counter button{width:30px;height:100%;color:var(--cream);font-size:17px;background:transparent}.surprise-counter button:hover:not(:disabled){background:#352934}.surprise-counter button:disabled{opacity:.35;cursor:not-allowed}.surprise-counter output{min-width:28px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums;color:var(--cream)}.surprise-progress{width:100%;text-align:right;color:var(--muted);font-size:11px}.button{border-radius:8px;padding:13px 20px;font-size:12px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;transition:background .18s,transform .18s}.button:not(:disabled):active{transform:translateY(1px)}.primary{background:var(--pink);color:#34212b;font-weight:650}.primary:hover:not(:disabled){background:#f5b7c1}.secondary{background:#28232b;border:1px solid #403641;color:#e5d8e0}.secondary:hover:not(:disabled){background:#332b35}.compact{padding:9px 12px;min-height:36px;font-size:11px}.full{width:100%}.text-button{background:none;color:var(--pink);font-size:12px;padding:8px 0;display:inline-flex;align-items:center;gap:6px}.text-button:hover{text-decoration:underline}.icon-button{background:transparent;padding:8px;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;border-radius:8px}.icon-button:hover{background:#312a34;color:var(--cream)}.muted{color:var(--muted);font-size:12px}.dot{padding:0 8px}.section-line{display:flex;justify-content:space-between;gap:15px;font-size:11px;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:27px;color:#c5b7c2}.section-line>span:last-child{font-size:9px;letter-spacing:.8px;color:var(--muted)}.welcome-panel{position:relative;overflow:hidden;text-align:center;border:1px solid #44303e;border-radius:18px;padding:50px 30px 0;background:radial-gradient(ellipse at 50% 20%,#432936,#211b25,#1c1920)}.welcome-panel:before,.welcome-panel:after{content:"";position:absolute;border:1px solid #ffffff08;border-radius:50%;width:650px;height:650px;top:-300px;left:calc(50% - 325px);pointer-events:none}.welcome-panel:after{width:840px;height:840px;left:calc(50% - 420px);top:-390px}.orb{height:125px;width:125px;display:flex;align-items:center;justify-content:center;border-radius:50%;margin:0 auto 30px;color:var(--pink);background:radial-gradient(circle at 30% 20%,#b46b8260,#612a4620 70%);border:1px solid #bf82913d;box-shadow:0 0 85px #a34e6733}.welcome-panel h2{font-family:var(--serif);font-size:38px;line-height:1.25;letter-spacing:-.8px}.welcome-panel p{max-width:450px;margin:0 auto 28px;font-size:13px;color:#bcb0bc}.welcome-panel .eyebrow{color:#d59aaa}.welcome-notes{position:relative;margin-top:48px;border-top:1px solid #ffffff0c;padding:25px 8px;display:flex;justify-content:center;gap:40px;font-size:10px;color:#b8a3b2}.welcome-notes span:first-letter{color:var(--pink)}.empty-state{padding:85px 30px;text-align:center;color:var(--muted);border:1px dashed #44343f;border-radius:14px}.empty-state>svg{color:#9e6c84;margin-bottom:25px}.empty-state h2,.chat-empty h2{font-family:var(--serif);font-size:29px;color:var(--cream);margin:0 0 15px}.empty-state p{max-width:430px;margin:0 auto 15px;font-size:13px}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:24px}.character-card{min-width:0;overflow-wrap:anywhere;border:1px solid #3b2e3b;border-radius:15px;overflow:hidden;background:#221c25}.portrait{width:100%;height:320px;position:relative;padding:0;display:block;background:#30212f;overflow:hidden;text-align:left}.portrait>img{height:100%;width:100%;object-fit:cover;transition:transform .4s}.portrait:hover>img{transform:scale(1.035)}.portrait:after{content:"";position:absolute;top:40%;right:0;bottom:0;left:0;background:linear-gradient(transparent,#1b1328d9);pointer-events:none}.world-tag{position:absolute;top:16px;left:16px;border-radius:25px;background:#1b142daa;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:6px 11px;font-size:9px;letter-spacing:.4px;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portrait-caption{position:absolute;z-index:1;bottom:22px;left:23px;right:18px}.portrait-caption>span{font-size:9px;letter-spacing:1.8px;text-transform:uppercase;color:#efbdc8}.portrait-caption h2{font-family:var(--serif);font-size:clamp(24px,2.5vw,33px);line-height:1.12;margin:7px 0 3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.portrait-caption h2 small{font-family:ui-sans-serif,sans-serif;font-size:18px;color:#d6becb;margin-left:7px}.portrait-caption p{font-size:11px;line-height:1.5;color:#d9c7d3;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.portrait-placeholder{height:100%;background:radial-gradient(ellipse at 65% 20%,#6c3e58,#31223c 70%);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#e0b0c960}.portrait-placeholder>span{font-size:125px;font-family:var(--serif);font-style:italic}.portrait-placeholder small{color:#c4a9ba;font-size:10px;margin-bottom:48px}.card-body{padding:22px}.card-setup{margin:14px 0 17px;padding:10px 12px;border-left:2px solid #ab789a;background:#2d2430;border-radius:0 7px 7px 0;display:grid;gap:5px;overflow-wrap:anywhere}.card-setup strong{font-size:10px;color:#edd0df}.card-setup span{font-size:11px;line-height:1.5;color:#c9b6c2;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card-body h3{font-size:15px;margin-bottom:10px}.card-body p{font-size:12px;line-height:1.7;color:#bbaeba;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:61px}.chips{display:flex;flex-wrap:wrap;gap:6px}.chips span{max-width:100%;overflow-wrap:anywhere;font-size:9px;padding:6px 9px;border:1px solid #4c3647;border-radius:5px;color:#d2adbf;background:#342630}.card-actions{display:flex;gap:10px;border-top:1px solid #3c2d3b;margin-top:21px;padding-top:18px}.card-actions .button{flex:1}.app-footer{height:62px;border-top:1px solid var(--line);padding:0 48px;font-size:8px;letter-spacing:1.3px;display:flex;align-items:center;gap:12px;color:#8e808f}.app-footer>span:last-child{margin-left:auto}.error-banner{margin:18px 32px 0;padding:13px 18px;background:#43242b;color:#f2c7c9;border:1px solid #79404d;border-radius:8px;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:15px;overflow-wrap:anywhere}.error-banner button{background:transparent;display:flex}.spinner{display:inline-block;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .9s linear infinite;vertical-align:middle;flex:none}@keyframes spin{to{transform:rotate(360deg)}}.boot{height:100vh;display:flex;align-items:center;justify-content:center;gap:30px}.chat-layout{height:calc(100dvh - 138px);min-height:550px;display:flex}.matches{width:285px;flex-shrink:0;border-right:1px solid var(--line);overflow-y:auto;background:#19161c}.matches-heading{padding:34px 24px 20px}.matches-heading .eyebrow{font-size:8px;margin-bottom:12px}.matches-heading h1{font-size:35px;margin:0}.matches-heading h1 small{font-family:ui-sans-serif,sans-serif;font-size:13px;color:var(--muted);margin-left:7px}.match-row{background:none;display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:17px 20px;border-left:3px solid transparent}.match-row:hover{background:#25202a}.match-row.selected{background:#30212d;border-left-color:var(--pink)}.avatar{width:45px;height:45px;display:flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#69405e,#443554);font-family:var(--serif);font-size:24px;color:#ead4de;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.large{width:82px;height:82px;font-size:42px}.match-row>span,.profile-link>span{min-width:0;display:flex;flex-direction:column;gap:5px}.match-row strong,.profile-link strong{font-size:13px;font-weight:600}.match-row small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.match-row .unread-dot{margin-left:auto}.chat-empty{display:flex;flex:1;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:30px}.chat-empty>svg{color:#82556e;margin-bottom:30px}.chat-empty p{font-size:12px;color:var(--muted)}.small-empty{padding:30px 24px;color:var(--muted);font-size:12px;line-height:1.7}.small-empty .text-button{display:block;margin-top:12px}.conversation{display:flex;flex-direction:column;flex:1;min-width:0;background:radial-gradient(ellipse at 100% 0%,#28202e45,transparent 60%)}.conversation-head{padding:19px 25px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}.profile-link{background:transparent;display:flex;align-items:center;gap:13px;text-align:left;padding:0;min-width:0}.profile-link small{font-size:10px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px}.conversation-tools{display:flex;align-items:center;gap:10px}.mobile-back{display:none}.messages{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:30px;display:flex;flex-direction:column;gap:20px}.message{max-width:80%;align-self:flex-start;background:#2a2330;border:1px solid #3b2d42;border-radius:0 14px 14px;padding:15px 18px;min-width:75px;overflow-wrap:anywhere}.message p{white-space:pre-wrap;font-size:13px;margin:0;line-height:1.8}.message.user{align-self:flex-end;border-radius:14px 0 14px 14px;background:#47313e;border-color:#644354}.message-author{font-size:9px;color:var(--pink);display:block;margin-bottom:7px;letter-spacing:.4px}.message time{display:block;font-size:8px;text-align:right;color:#a48f9f;margin-top:6px}.message.prose.assistant{max-width:100%;background:transparent;border:0;padding:5px 2px}.message.prose.assistant p{font-family:var(--serif);font-size:17px;line-height:1.85;color:#e6d9dd}.message.prose .spoken-dialogue{color:var(--pink)}.message .spoken-dialogue.speaker-neutral,.message.prose .spoken-dialogue.speaker-neutral{color:#e6d9dd}.message .speaker-tagged{font-weight:500}.message .expressive-strong{font-weight:750;color:inherit}.message .expressive-em{font-style:italic;color:inherit}.message.image{border:0;background:none;padding:0;max-width:320px}.message-image{display:block;background:none;padding:0;max-width:100%;border-radius:12px;overflow:hidden}.message-image img{max-width:100%;max-height:400px;display:block}.event-message{text-align:center;align-self:center;color:#ae94a7;font-size:10px;letter-spacing:.5px;margin:10px 0;line-height:1.6}.message-error{font-size:11px;color:#efaab2;display:flex;flex-direction:column;gap:7px}.message-error button{align-self:flex-start;background:#5b3446;border-radius:5px;padding:5px 12px;font-size:10px}.image-wait{padding:25px;background:#302331;border:1px dashed #664258;border-radius:9px;display:flex;gap:12px;align-items:center;font-size:11px;color:var(--muted)}.typing{display:flex;gap:5px;padding:6px 0}.typing i{width:5px;height:5px;border-radius:50%;background:var(--pink);animation:pulse 1.2s infinite}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}@keyframes pulse{50%{opacity:.2;transform:translateY(-3px)}}.composer{display:flex;gap:15px;align-items:center;padding:12px 16px;margin:5px 25px 0;border:1px solid #4e3a4b;border-radius:12px;background:#231d28}.composer textarea{background:transparent;border:0;resize:none;padding:6px;font-size:13px;margin:0;min-height:44px;max-height:120px;flex:1}.composer textarea:focus{outline:none}.send-button{background:var(--pink);color:#3c2133;width:39px;height:39px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:none}.composer-hint{font-size:8px;text-align:center;margin:9px 0 13px;color:#8d7d8e;letter-spacing:.3px}.working-line{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:8px;padding:4px 28px 8px}.working-line .spinner{width:11px;height:11px}.scene-ribbon{display:flex;align-items:center;gap:10px;padding:12px 25px;background:#352434;color:#d5adc5;font-size:8px;letter-spacing:1px}.scene-ribbon strong{display:block;font-size:11px;letter-spacing:0;margin-top:3px;font-weight:400}.story-clock-label{margin-left:auto;color:#f0bfda;font-size:10px;font-weight:650;letter-spacing:0;white-space:nowrap;flex:0 0 auto}.scene-ribbon:has(.story-clock-label) small{margin-left:8px}.scene-ribbon small{margin-left:auto;letter-spacing:0;color:#a48a9f;font-size:9px}.date-suggestion{margin:0 25px 10px;text-align:left;display:flex;align-items:center;gap:12px;border:1px solid #67505e;border-radius:9px;padding:12px 16px;background:#3b2834;color:#e3c7d4}.date-suggestion>span{display:flex;flex-direction:column;gap:4px;flex:1}.date-suggestion strong{font-size:12px;font-weight:500}.date-suggestion small{font-size:10px;color:#b89caf}.settings-page{max-width:1120px}.settings-page .page-heading{margin-bottom:35px}.settings-section{border:1px solid var(--line);border-radius:12px;padding:27px;margin-bottom:22px;background:#1c191f}.section-title{display:flex;align-items:flex-start;gap:17px;margin-bottom:25px}.section-number{font-family:var(--serif);font-style:italic;font-size:22px;color:#b2869a;line-height:1.1}.section-title h2{font-size:18px;letter-spacing:-.3px;margin-bottom:6px}.section-title p{font-size:11px;color:var(--muted);margin-bottom:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-grid>label{min-width:0}label{display:block;font-size:11px;color:#e0d3db;margin-bottom:17px}input:not([type=checkbox]),select,textarea{display:block;background:#151318;border:1px solid #463a47;border-radius:7px;color:#efe5e9;width:100%;padding:11px 12px;margin-top:9px;font-size:12px;line-height:1.5}input::placeholder,textarea::placeholder{color:#776879}input:focus,textarea:focus,select:focus{border-color:#ac758c}textarea{resize:vertical}label>small{display:block;font-size:10px;color:#978997;margin-top:7px;line-height:1.6}.inline-status{color:#b894a7;font-size:7px;letter-spacing:.8px;margin-left:8px}.inline-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.inline-actions>.muted{font-size:10px}.model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:16px}.model-panel{background:#231d27;border:1px solid #433446;border-radius:10px;padding:22px;min-width:0}.model-panel .eyebrow{font-size:7px;letter-spacing:1.6px;margin-bottom:7px;color:#c89aae}.model-panel h3{font-family:var(--serif);font-size:27px;margin-bottom:22px}.model-panel .form-grid{gap:12px}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:17px 0;margin-bottom:12px;border-top:1px solid #342c37}.toggle-row strong{font-size:12px;font-weight:500;display:block;margin-bottom:5px}.toggle-row small{font-size:10px;color:var(--muted);display:block;line-height:1.6;max-width:610px}.toggle-row input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:35px;height:20px;flex:none;background:#524352;border-radius:30px;position:relative;cursor:pointer}.toggle-row input:before{content:"";position:absolute;width:14px;height:14px;border-radius:100%;background:#e1d4de;top:3px;left:3px;transition:transform .2s}.toggle-row input:checked{background:#ae637f}.toggle-row input:checked:before{transform:translate(15px);background:#ffdae4}.save-bar{position:sticky;bottom:15px;background:#3b2835ef;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid #795169;border-radius:10px;padding:13px 20px;display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:28px;z-index:2;box-shadow:0 8px 35px #0006}.save-bar>span{font-size:11px;color:#d6b8ca}.success-note{margin:15px 0 0;background:#23312a;border:1px solid #3f5b49;border-radius:7px;padding:12px;color:#b2d3ba;font-size:11px;overflow-wrap:anywhere}.inline-form{display:flex;align-items:center;gap:15px}.inline-form label{flex:1}.inline-form .button{margin-top:5px}.danger{color:#f4a0a9!important}.danger-section{display:flex;justify-content:space-between;align-items:center;gap:20px;border-color:#55323e}.danger-section h2{font-size:18px;color:#e9b8c3}.danger-section p{font-size:11px;color:var(--muted);margin:0}.danger-outline{background:#3b232d;border:1px solid #814452;color:#f1b7c1}.log-list{margin-top:20px;max-height:400px;overflow:auto}.log-list details{border-top:1px solid var(--line);font-size:10px;padding:12px 2px}.log-list summary{cursor:pointer;display:flex;gap:15px;align-items:center}.log-list summary time{color:var(--muted)}.log-list summary strong{margin-left:auto;font-weight:400}.log-list pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;line-height:1.7;background:#141016;padding:14px;border-radius:5px}.field-error{font-size:12px;color:#f1acb7}dialog{overflow-wrap:anywhere;background:#221b26;color:var(--cream);border:1px solid #644355;border-radius:16px;width:min(590px,calc(100vw - 30px));max-height:88dvh;padding:28px;box-shadow:0 25px 100px #0008}dialog::backdrop{background:#09060fc9;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}dialog.profile-dialog{width:min(920px,calc(100vw - 30px))}dialog.gallery-dialog:has(.gallery-viewer),dialog.image-dialog{width:min(1080px,calc(100vw - 30px));max-height:94dvh}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.modal-head h2{font-family:var(--serif);font-size:30px;margin:0}.profile-hero{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);align-items:start;gap:28px}.profile-portrait{display:grid;place-items:center;width:100%;aspect-ratio:1;border:1px solid var(--line);border-radius:12px;background:#16121b;overflow:hidden}.profile-portrait>img{display:block;width:100%;height:100%;object-fit:contain}.profile-portrait .avatar.large{width:min(45%,180px);height:auto;aspect-ratio:1;font-size:64px}.profile-hero-copy,.profile-summary{min-width:0}.starting-setup{display:grid;gap:7px;padding:12px 16px;margin-top:10px;border-left:2px solid #ab789a;background:#2d2430;border-radius:0 7px 7px 0}.starting-setup>p{margin:0}.starting-setup strong{margin-top:5px;font-size:12px}.profile-premise{white-space:pre-wrap;line-height:1.7}.profile-summary .eyebrow{font-size:8px;margin-bottom:7px}.profile-summary h3{font-size:17px;margin-bottom:6px}.profile-summary p{font-size:11px;color:var(--muted);margin:0}.profile-bio{font-family:var(--serif);font-style:italic;line-height:1.65;font-size:21px;margin:24px 0;color:#e1c4d4}.subheading{font-size:14px;border-top:1px solid var(--line);padding-top:22px;margin-top:25px}.profile-appearance{color:#d5c4d0;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.profile-cast-note{font-size:12px;line-height:1.6}.profile-cast-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px;padding:0;margin:14px 0 0;list-style:none}.profile-cast-member{border:1px solid #473445;background:#2c2330;border-radius:10px;padding:14px 16px;min-width:0;overflow-wrap:anywhere}.profile-cast-header{display:grid;gap:5px}.profile-cast-header strong{font-size:14px;color:var(--cream);display:inline-flex;align-items:center;gap:8px}.speaker-swatch{display:inline-block;width:11px;height:11px;flex:0 0 11px;border-radius:50%;border:1px solid #ffffff55;vertical-align:middle}.dialogue-color-label{display:flex;align-items:center;gap:7px}.speaker-npc-list{display:flex;flex-wrap:wrap;gap:8px}.speaker-npc{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid #473445;border-radius:8px;font-size:12px;color:#dfcedb}.profile-cast-header span{font-size:11px;color:#bfaabd;line-height:1.5}.profile-cast-member p{margin:10px 0 0;color:#dfcedb;font-size:12px;line-height:1.7;white-space:pre-wrap}.dossier{display:grid;gap:15px}.dossier-section h4{margin:0 0 6px;color:#dfcedb;font-size:12px;font-weight:650}.discoveries{margin:0;padding-left:18px;color:#c8b5c3;font-size:12px;line-height:1.75}.discoveries li+li{margin-top:5px}.profile-tools{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:25px;border-top:1px solid var(--line);padding-top:20px;align-items:center}.lightbox{display:block;width:100%;max-height:70dvh;object-fit:contain;border-radius:8px}.gallery-viewer .lightbox,.image-dialog .lightbox{max-height:75dvh;margin-inline:auto}.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.gallery-tile{min-width:0;padding:0 0 10px;text-align:left;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#16121b;color:var(--cream)}.gallery-tile img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.gallery-tile span,.gallery-tile time{display:block;padding:8px 10px 0;font-size:12px}.gallery-tile time{color:var(--muted);font-size:10px}.gallery-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:18px 0}.library-editor label,.library-page section>label{display:grid;gap:8px;margin:18px 0}.library-page input:not([type=checkbox]),.library-page select,.library-page textarea{width:100%}.library-editor .library-toggle{display:flex;align-items:center}.library-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:26px 0}.library-stats>div{padding:17px 20px;border:1px solid var(--line);border-radius:12px;background:#231d27;display:grid;gap:4px}.library-stats strong{color:var(--cream);font-family:var(--serif);font-size:28px;font-weight:500}.library-stats span{font-size:11px;color:var(--muted)}.library-section-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:14px}.library-section-heading h2{margin-bottom:4px}.library-section-heading p{margin:0}.library-family-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;flex:0 1 auto;min-width:0}.library-family-search,.library-family-sort{display:grid;gap:7px;font-size:12px;min-width:0}.library-family-search{width:min(270px,100%)}.library-family-sort{width:min(185px,100%)}.library-family-controls input,.library-family-controls select{width:100%;min-width:0}@media(max-width:650px){.library-family-controls{width:100%;justify-content:stretch}.library-family-search{flex:1 1 180px;width:auto}.library-family-sort{flex:1 1 150px;width:auto}}.library-families{display:grid;gap:0;max-height:380px;overflow-y:auto;border:1px solid var(--line);border-radius:10px}.library-families>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:9px 14px;border-bottom:1px solid var(--line)}.library-families>div:last-child{border-bottom:0}.library-families>div:hover{background:#ffffff06}.library-family-copy{display:grid;gap:4px;flex:1 1 180px;min-width:0}.library-family-copy strong{font-size:13px;overflow-wrap:anywhere}.library-family-description{margin:0;font-size:11px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;overflow-wrap:anywhere}.library-family-count{font-size:11px}.library-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;margin:18px 0}.library-filters label{flex:1 1 160px;min-width:150px;display:grid;gap:8px;font-size:12px}.library-results-bar,.library-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.library-results-bar{margin:0 0 14px}.library-results-bar p{margin:0;font-size:12px}.library-results-bar label{display:flex;align-items:center;gap:10px;font-size:12px;white-space:nowrap}.library-results-bar select{width:auto!important;min-width:75px}.library-list{display:grid;gap:8px}.library-list article{padding:15px 18px;border:1px solid var(--line);border-radius:10px;min-width:0;overflow-wrap:anywhere}.library-list article:hover{border-color:#624558}.library-premise-main{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.library-premise-copy{flex:1;min-width:0}.library-premise-copy .eyebrow{font-size:9px}.library-premise-copy h3{font-size:17px;margin:8px 0 5px;font-family:var(--serif)}.library-premise-excerpt,.library-premise-full{margin:0;font-size:12px;line-height:1.55;overflow-wrap:anywhere}.library-premise-excerpt{color:var(--muted)}.library-premise-full{white-space:pre-wrap}.library-expand{flex:0 0 auto;font-size:11px}.library-premise-actions{margin-top:10px;gap:14px;align-items:center}.library-premise-actions .button{padding:8px 11px;font-size:11px}.library-premise-actions .text-button{font-size:11px}.library-pagination{margin-top:20px;padding-top:14px;border-top:1px solid var(--line);font-size:12px}.library-page-jump{display:flex;align-items:center;gap:8px}.library-page-jump select{width:auto!important;min-width:100px}@media(max-width:680px){.library-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.library-stats>div:last-child{grid-column:1 / -1}.library-section-heading{align-items:stretch}.library-family-search,.library-family-count{width:100%}.library-premise-main{flex-direction:column;gap:4px}.library-premise-actions{flex-wrap:wrap}}.library-import-preview{padding-top:16px}.gallery .lightbox{margin-top:15px}.login-wrap{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 40%,#3d2438,#16121b 65%);padding:25px}.login-card{width:min(430px,100%);padding:40px;background:#211a2599;border:1px solid #543b4d;border-radius:18px}.login-card .wordmark{margin-bottom:35px}.login-card h1{font-size:32px}.login-card>p{font-size:12px;color:var(--muted);margin-bottom:30px}@media(min-width:1550px){.card-grid{grid-template-columns:repeat(3,minmax(260px,1fr))}.portrait{height:380px}}@media(max-width:1150px){.sidebar{width:185px;padding:35px 18px 22px}.app-shell main{margin-left:185px}.discover-page,.settings-page{padding:34px}.topbar,.app-footer{padding-left:34px;padding-right:34px}h1{font-size:39px}.page-heading{align-items:flex-start}.page-heading>.surprise-actions{margin-top:25px}.matches{width:230px}.conversation-head{padding:15px}.conversation-tools .compact{font-size:10px}.messages{padding:23px}.model-panel{padding:18px}.inline-status{display:block;margin:5px 0 0}}@media(max-width:850px){.sidebar{width:82px;align-items:center;padding:25px 8px}.sidebar .wordmark{font-size:37px;letter-spacing:-3px}.sidebar .wordmark span{display:none}.brand-note,.sidebar-bottom,.nav>span{display:none}.sidebar nav{margin-top:45px}.nav{padding:15px}.nav .unread-dot{position:absolute;margin:0 0 21px 20px;width:5px;height:5px}.app-shell main{margin-left:82px}.topbar{height:65px}.discover-page,.settings-page{padding:28px}.page-heading{flex-wrap:wrap;gap:10px}.page-heading>.surprise-actions{margin-top:5px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.portrait{height:280px}.card-body{padding:17px}.portrait-caption{left:18px}.portrait-caption h2{font-size:29px}.matches{width:205px}.chat-layout{height:calc(100dvh - 127px)}.profile-link small{max-width:100px}.model-grid{grid-template-columns:1fr}.welcome-notes{gap:18px}.message{max-width:90%}.scene-ribbon small{display:none}.story-clock-label{margin-left:auto}}@media(max-width:600px){.sidebar{position:fixed;inset:auto 0 0;width:100%;height:65px;border-top:1px solid var(--line);border-right:0;background:#211925f5;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);padding:0}.sidebar>a{display:none}.sidebar nav{flex-direction:row;justify-content:space-around;align-items:center;width:100%;margin:0;height:100%}.nav{flex-direction:column;gap:5px;padding:7px 22px;font-size:8px;border-radius:8px}.nav>span{display:block}.nav svg{width:18px;height:18px}.nav .unread-dot{margin:0 0 17px 29px}.app-shell main{margin-left:0;margin-bottom:65px}.topbar{height:55px;padding:0 20px;font-size:8px}.connection{font-size:9px}.discover-page,.settings-page{padding:28px 20px;min-height:calc(100dvh - 165px)}.page-heading{margin-bottom:26px}.page-heading .eyebrow{font-size:8px;margin-bottom:12px}h1{font-size:37px}.page-heading p{font-size:12px}.page-heading>.surprise-actions{margin-top:12px;justify-content:flex-start}.surprise-family{flex:1 1 145px}.surprise-family select{width:100%;min-width:0}.surprise-progress{text-align:left}.card-grid{grid-template-columns:1fr;gap:24px}.portrait{height:390px}.card-body{padding:22px}.portrait-caption h2{font-size:36px}.portrait-caption{left:23px;bottom:24px}.section-line{font-size:10px}.section-line>span:last-child{font-size:8px;max-width:145px;text-align:right;line-height:1.5}.welcome-panel{padding:32px 20px 0}.orb{width:100px;height:100px;margin-bottom:25px}.orb svg{width:55px;height:55px}.welcome-panel h2{font-size:29px}.welcome-panel p{font-size:12px}.welcome-notes{display:flex;flex-direction:column;gap:12px;padding:22px 0;margin-top:30px}.welcome-panel .eyebrow{font-size:7px;letter-spacing:1.7px}.app-footer{padding:0 20px;height:45px;font-size:6px;letter-spacing:.9px}.settings-section{padding:22px 17px;margin-bottom:17px}.section-title{gap:12px}.section-title h2{font-size:17px}.form-grid{grid-template-columns:1fr;gap:0}.model-panel .form-grid{grid-template-columns:1fr 1fr;gap:12px}.model-panel{padding:17px}.inline-actions{gap:12px}.inline-actions>.muted{order:3;width:100%}.save-bar{bottom:77px;padding:12px}.save-bar>.button{padding:10px 12px;font-size:11px}.save-bar>span{font-size:10px}.inline-form{flex-wrap:wrap;gap:0}.inline-form label{flex-basis:100%}.inline-form .button{margin:0 0 15px}.danger-section{flex-direction:column;align-items:flex-start}.error-banner{margin:12px 15px;padding:12px;font-size:11px}.chat-layout{height:calc(100dvh - 120px);min-height:0}.matches{width:100%;border:0}.chat-layout:not(.has-selection) .chat-empty{display:none}.has-selection .matches{display:none}.conversation-head{padding:12px 10px;gap:6px}.mobile-back{display:flex;padding:7px}.profile-link{gap:9px;flex:1}.profile-link .avatar{width:35px;height:35px}.profile-link strong{font-size:12px}.profile-link small{max-width:115px;font-size:9px}.conversation-tools{gap:3px}.conversation-tools .compact{padding:8px;font-size:9px}.conversation-tools .compact svg{display:none}.messages{padding:20px 17px;gap:18px}.message{max-width:90%;padding:12px 15px}.message p{font-size:12px}.message.prose.assistant p{font-size:16px}.composer{margin:5px 13px 0;padding:7px 10px}.composer textarea{font-size:16px}.composer-hint{margin-bottom:9px;font-size:7px}.scene-ribbon{padding:10px 18px;gap:7px}.scene-ribbon>span:not(.story-clock-label){min-width:0;overflow-wrap:anywhere}.date-suggestion{margin:0 15px 8px;padding:10px 12px}.date-suggestion strong{font-size:11px}.message.image{max-width:260px}.chat-layout+.app-footer{display:none}.working-line{padding-left:18px}.matches-heading{padding:30px 24px}.match-row{padding:18px 22px}dialog{padding:23px}.modal-head h2{font-size:27px}.profile-bio{font-size:19px}}@media(max-width:720px){.profile-hero{grid-template-columns:minmax(0,1fr);gap:18px}.profile-portrait{max-width:480px;margin-inline:auto}.gallery-viewer .lightbox,.image-dialog .lightbox{max-height:65dvh}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.channel-picker select{max-width:145px;min-width:94px;padding:9px 11px;border:1px solid var(--border, #52404c);border-radius:9px;color:inherit;background:var(--surface, #241e27);font:inherit;font-size:12px}.chapter-dialog{width:min(690px,95vw);max-height:86vh;overflow:auto}.chapter-dialog h3{margin:18px 0 8px}.chapter-list,.chapter-options{display:grid;gap:12px;margin:14px 0}.chapter-entry,.chapter-option{border:1px solid rgba(210,167,188,.22);background:#b4809e12;padding:14px 16px;border-radius:12px}.chapter-entry strong,.chapter-entry small{display:block}.chapter-entry small{margin-top:4px}.chapter-entry p,.chapter-option p{margin:8px 0;line-height:1.55;overflow-wrap:anywhere}.chapter-option h3{margin:0 0 6px}.chapter-option .button{margin-top:8px}@media(max-width:750px){.conversation-tools{flex-wrap:wrap}.channel-picker select{max-width:112px}}.conversation-tabs{display:flex;gap:8px;padding:10px 22px;border-bottom:1px solid var(--line)}.conversation-tabs button{border-radius:9px;padding:9px 15px;background:transparent;color:var(--muted);font-size:12px}.conversation-tabs button.selected{background:#503449;color:#ffe4f0}.ooc-panel{display:flex;flex:1;min-height:0;flex-direction:column}.ooc-intro{padding:14px 26px 8px;border-bottom:1px solid var(--line);font-size:12px}.ooc-intro p{margin:5px 0;color:var(--muted);line-height:1.6}.ooc-notes{margin:10px 25px;border:1px solid #574050;border-radius:10px;background:#241e28;padding:10px 14px;max-height:35%;overflow-y:auto;font-size:12px}.ooc-notes summary{cursor:pointer;font-weight:600}.ooc-note-list{display:grid;gap:12px;margin-top:12px}.ooc-note{border-top:1px solid #483644;padding-top:10px}.ooc-note-meta,.ooc-note-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.ooc-note-meta{justify-content:space-between;color:var(--muted);font-size:10px}.ooc-note p{margin:7px 0;line-height:1.55;overflow-wrap:anywhere}.ooc-note-actions button{font-size:10px}.ooc-messages{min-height:0;padding-top:18px}.ooc-messages .message{max-width:90%}.ooc-composer{flex:none}@media(max-width:600px){.conversation-tabs{padding:8px 12px}.conversation-tabs button{padding:8px 10px;font-size:11px}.ooc-intro{padding:12px 16px 7px}.ooc-notes{margin:8px 14px}}.message{position:relative}.message-actions{margin:0}.message-actions>summary{position:absolute;top:5px;right:6px;display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#302633;border:1px solid #5a4556;color:#e0cad8;font-size:22px;line-height:1;list-style:none;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .12s ease}.message-actions>summary::-webkit-details-marker{display:none}.message:hover .message-actions>summary,.message:focus-within .message-actions>summary,.message-actions[open]>summary{opacity:.9;pointer-events:auto}.message-actions>summary:hover{background:#50374b}.message-actions>summary:focus-visible,.message-action-menu button:focus-visible{outline:2px solid var(--pink);outline-offset:2px}.message-action-menu{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;padding-top:12px}.message-action-menu button{display:inline-flex;align-items:center;gap:5px;border:1px solid #5a4556;border-radius:7px;padding:5px 7px;font-size:10px;color:#e0cad8;background:#302633}.message-action-menu button:hover:not(:disabled){background:#50374b}.message-action-menu button:disabled{opacity:.4;cursor:not-allowed}@media(hover:none){.message-actions>summary{opacity:.55;pointer-events:auto}.message-actions[open]>summary{opacity:1}}.discover-preview{position:relative}.image-regenerate-trigger{position:absolute;z-index:3;top:10px;right:10px;display:grid;place-items:center;width:33px;height:33px;color:#ffe2ef;background:#2c1e30d9;border:1px solid #ab779c88;border-radius:9px;opacity:0;transition:opacity .12s ease,background .12s ease}.discover-preview:hover .image-regenerate-trigger,.profile-portrait:hover .image-regenerate-trigger,.image-regenerate-trigger:focus-visible{opacity:1}.image-regenerate-trigger:hover:not(:disabled){background:#714057}.image-regenerate-trigger:disabled{opacity:.25;cursor:not-allowed}.profile-portrait{position:relative}@media(hover:none){.image-regenerate-trigger{opacity:.7}}.message.image .message-actions>summary{top:6px;right:6px;z-index:4}.message.image .message-action-menu{padding-top:8px}.profile-cast-top{display:flex;gap:11px;align-items:flex-start}.profile-cast-top .profile-cast-header{flex:1;min-width:0}.profile-cast-photo{position:relative;padding:0;width:68px;height:auto;aspect-ratio:13 / 19;flex:0 0 68px;border-radius:8px;overflow:hidden;background:#1a1420;border:1px solid #785468}.profile-cast-photo img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;display:block}.profile-cast-photo:hover{border-color:#dca4c6}.profile-cast-actions{margin-top:11px;display:flex;align-items:center;flex-wrap:wrap}.profile-cast-actions .button{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;font-size:11px}.profile-cast-member .profile-cast-error{color:#efaab2;margin-top:8px}.app-shell.chat-focused .topbar,.app-shell.chat-focused .app-footer{display:none}.app-shell.chat-focused .chat-layout{height:100dvh;min-height:0}.chat-focused .conversation{min-height:0;background:radial-gradient(ellipse at 100% 0%,#28202e33,transparent 55%)}.chat-focused .conversation-head{min-height:64px;padding:9px 24px;gap:13px;flex:none;background:#1a171ddd}.chat-focused .conversation-head .profile-link{flex:1 1 220px;min-width:0}.chat-focused .conversation-head .profile-link>span{overflow:hidden}.chat-focused .conversation-head .profile-link strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-focused .conversation-head .profile-link small{max-width:320px}.chat-focused .conversation-tabs{display:flex;flex:0 0 auto;margin-left:auto;gap:3px;padding:4px;border:1px solid #453340;border-radius:11px;background:#231b25}.chat-focused .conversation-tabs button{padding:7px 12px;border-radius:7px;font-size:11px;white-space:nowrap}.chat-focused .conversation-tabs button.selected{background:#503449}.chat-focused .conversation-tools{flex:0 0 auto;gap:7px;flex-wrap:nowrap}.chat-list-toggle{display:none}.chat-focused .conversation-menu{position:relative;z-index:12;flex:none}.chat-focused .conversation-menu>summary{width:39px;height:39px;display:grid;place-items:center;border:1px solid #554253;border-radius:10px;background:#2a212d;color:#f0d3df;font-size:23px;line-height:1;cursor:pointer;list-style:none}.chat-focused .conversation-menu>summary::-webkit-details-marker{display:none}.chat-focused .conversation-menu[open]>summary,.chat-focused .conversation-menu>summary:hover{background:#473143}.chat-focused .conversation-menu>summary:focus-visible,.chat-focused .scene-context>summary:focus-visible{outline:2px solid var(--pink);outline-offset:3px}.chat-focused .conversation-menu-content{position:absolute;right:0;top:calc(100% + 8px);width:234px;max-width:calc(100vw - 24px);display:grid;gap:4px;padding:8px;background:#29212e;border:1px solid #665064;border-radius:12px;box-shadow:0 14px 36px #0008}.chat-focused .conversation-menu-content>button{display:flex;align-items:center;gap:11px;width:100%;padding:10px 12px;text-align:left;background:transparent;border-radius:8px;color:#efe4e9;font-size:12px}.chat-focused .conversation-menu-content>button:hover:not(:disabled){background:#453348}.chat-focused .conversation-menu .channel-picker{display:grid;gap:7px;margin-top:5px;padding:11px 10px 5px;border-top:1px solid #554253;color:var(--muted);font-size:11px}.chat-focused .conversation-menu .channel-picker select{width:100%;max-width:none;font-size:13px;color:#f5e7ef}.chat-focused .scene-context{border-bottom:1px solid #48313f;background:#2b202d;flex:none;color:#d8bacb}.chat-focused .scene-context>summary{display:flex;align-items:center;gap:10px;min-height:36px;padding:7px 26px;list-style:none;cursor:pointer}.chat-focused .scene-context>summary::-webkit-details-marker{display:none}.chat-focused .scene-context-location{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px}.chat-focused .scene-context-clock{margin-left:auto;flex:none;color:#f2b4cc;font-size:10px;font-weight:600;white-space:nowrap}.chat-focused .scene-context-chevron{color:#aa899c;transition:transform .15s}.chat-focused .scene-context[open] .scene-context-chevron{transform:rotate(180deg)}.chat-focused .scene-context-details{padding:0 26px 13px 49px;font-size:12px;line-height:1.65}.chat-focused .scene-context-details p{margin:0 0 5px}.chat-focused .scene-context-details small{color:#b6a0b2}.chat-focused .messages{min-height:0;padding:22px 26px 15px;gap:0;scroll-padding-bottom:18px}.chat-focused .message-stream{display:flex;flex-direction:column;gap:19px;width:100%;max-width:1050px;margin-inline:auto}.chat-focused .message-stream>.message.prose.assistant{max-width:100%;padding:2px 0}.chat-focused .message-stream>.message.prose.assistant p{font-size:17px;line-height:1.76}.chat-focused .message-stream>.message.user{max-width:min(82%,850px)}.chat-focused .message-stream>.event-message{align-self:center}.chat-focused .composer{width:calc(100% - 52px);max-width:1050px;margin:0 auto 13px;padding:9px 13px;gap:12px;flex:none}.chat-focused .composer textarea{min-height:36px;max-height:160px;line-height:1.5}.chat-focused .keyboard-hint{display:none}.chat-focused .paused-hint{display:block}.chat-focused .date-suggestion{width:calc(100% - 52px);max-width:1050px;margin-inline:auto}.chat-focused .working-line{max-width:1050px;width:100%;margin-inline:auto}.chat-focused .ooc-panel .messages{padding-top:16px}.chat-focused .ooc-panel .composer{margin-bottom:11px}.chat-focused .ooc-panel .composer-hint{display:none}@media(min-width:601px){.app-shell.chat-focused .sidebar{width:76px;padding:23px 8px 16px;align-items:center}.app-shell.chat-focused .sidebar .wordmark{display:grid;place-items:center;width:50px;height:52px;font-size:0;letter-spacing:0}.app-shell.chat-focused .sidebar .wordmark:before{content:"F";font-family:var(--serif);font-size:45px;font-style:italic;line-height:1;color:var(--cream)}.app-shell.chat-focused .sidebar .wordmark span,.app-shell.chat-focused .brand-note,.app-shell.chat-focused .sidebar-bottom,.app-shell.chat-focused .nav>span{display:none}.app-shell.chat-focused .sidebar nav{margin-top:48px;align-items:center}.app-shell.chat-focused .sidebar .nav{justify-content:center;padding:14px;position:relative}.app-shell.chat-focused .sidebar .nav .unread-dot{position:absolute;width:6px;height:6px;margin:0 0 22px 22px}.app-shell.chat-focused main{margin-left:76px;margin-bottom:0}.chat-focused .chat-list-toggle{display:inline-flex;flex:none}.app-shell.chat-focused .chat-layout.has-selection:not(.show-chat-list) .matches{display:none}.app-shell.chat-focused .chat-layout.show-chat-list .matches{display:block;width:264px;flex:0 0 264px}}@media(min-width:601px)and (max-width:1100px){.app-shell.chat-focused .chat-layout{position:relative}.app-shell.chat-focused .chat-layout.show-chat-list .matches{position:absolute;top:64px;bottom:0;left:0;z-index:8;width:min(290px,calc(100vw - 110px));box-shadow:18px 0 40px #0009}}@media(max-width:850px){.chat-focused .conversation-head{padding:9px 12px;gap:7px}.chat-focused .conversation-head .profile-link{flex-basis:130px}.chat-focused .conversation-head .profile-link small{max-width:140px}.chat-focused .conversation-tabs button{padding:8px 9px}}@media(max-width:600px){.app-shell.chat-focused main{margin-left:0;margin-bottom:65px}.app-shell.chat-focused .chat-layout{height:calc(100dvh - 65px);min-height:0}.app-shell.chat-focused .chat-layout.has-selection .matches{display:none}.chat-focused .conversation-head{min-height:55px;padding:7px 10px;gap:5px}.chat-focused .conversation-head .profile-link{flex-basis:95px;gap:7px}.chat-focused .conversation-head .profile-link small{display:none}.chat-focused .conversation-head .profile-link strong{font-size:11px}.chat-focused .conversation-head .profile-link .avatar{width:32px;height:32px}.chat-focused .conversation-tabs{gap:0;padding:2px}.chat-focused .conversation-tabs button{padding:7px 8px;font-size:10px}.chat-focused .conversation-menu>summary{width:34px;height:34px}.chat-focused .scene-context>summary{padding:6px 14px;min-height:32px}.chat-focused .scene-context-details{padding:2px 14px 11px 37px}.chat-focused .messages{padding:16px 14px 12px}.chat-focused .message-stream{gap:16px}.chat-focused .message-stream>.message.prose.assistant p{font-size:16px;line-height:1.75}.chat-focused .message-stream>.message.user{max-width:92%}.chat-focused .composer{width:calc(100% - 24px);margin-bottom:9px;padding:7px 9px}.chat-focused .composer textarea{min-height:37px;font-size:16px}.chat-focused .date-suggestion{width:calc(100% - 24px)}}.language-setting{max-width:560px;padding:16px 18px;margin-bottom:21px;border:1px solid #513e4b;border-radius:12px;background:#281f2a}.language-setting label{display:grid;gap:9px;font-size:13px}.language-setting select{max-width:250px}.language-setting small{color:var(--muted);line-height:1.65;font-size:11px}@media(max-width:600px){.language-setting{padding:13px 14px}.language-setting select{max-width:100%}}.conversation{position:relative}.intensity-rail{position:absolute;z-index:4;right:13px;top:50%;transform:translateY(-50%);width:86px;height:355px;padding:12px 9px;border:1px solid #493747;border-radius:16px;background:#201a24f2;box-shadow:0 7px 26px #0006;display:flex;align-items:center;flex-direction:column;gap:6px;color:var(--pink);-webkit-user-select:none;user-select:none}.intensity-title{font:600 10px ui-sans-serif,sans-serif;letter-spacing:.055em;color:#eec9de}.intensity-top,.intensity-bottom{font:600 9px ui-sans-serif,sans-serif;color:#b99aac}.intensity-slider-wrap{display:flex;justify-content:center;flex:1 1 auto;min-height:135px;width:100%}.intensity-slider{writing-mode:vertical-lr;direction:rtl;-webkit-appearance:slider-vertical;-moz-appearance:slider-vertical;appearance:slider-vertical;accent-color:#e98eaf;cursor:pointer;height:100%;width:30px;margin:0}.intensity-slider:focus-visible{outline:2px solid var(--pink);outline-offset:3px}.intensity-slider:disabled{opacity:.5;cursor:wait}.intensity-current{font:700 12px ui-sans-serif,sans-serif;color:#f2c1d7}.intensity-hint{display:none;position:absolute;right:100%;top:50%;transform:translateY(-50%);width:195px;padding:12px;border-radius:10px;border:1px solid #594356;background:#281f2c;box-shadow:0 8px 24px #0007;color:#f2d9e5;font-size:11px;line-height:1.45;pointer-events:none}.intensity-rail:hover .intensity-hint,.intensity-rail:focus-within .intensity-hint{display:block}@media(min-width:601px){.chat-focused .message-stream{padding-right:65px}.chat-focused .intensity-rail{top:51%}}@media(max-width:600px){.intensity-rail{position:relative;transform:none;top:auto;right:auto;flex:none;flex-direction:row;height:48px;width:calc(100% - 24px);margin:0 auto 8px;padding:7px 12px;gap:10px;border-radius:11px}.intensity-slider-wrap{flex:1 1 auto;width:auto;min-width:30px;min-height:0;align-items:center}.intensity-slider{writing-mode:horizontal-tb;direction:ltr;-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;width:100%;height:26px}.intensity-top,.intensity-bottom{display:none}.intensity-current{min-width:41px;text-align:right}.intensity-hint{right:0;top:auto;bottom:100%;transform:none}}.portrait.book-cover{display:block;width:100%;height:auto;aspect-ratio:3 / 4;background:#241c2c}.portrait.book-cover:after{display:none}.portrait.book-cover>img{object-fit:contain}.story-card-body{display:flex;flex-direction:column;gap:9px}.story-kicker{color:#d8a0c5;line-height:1.5}.story-card-body h3.story-title{font-family:var(--serif);font-size:24px;font-weight:650;line-height:1.16;margin:0;overflow-wrap:anywhere}.story-card-body p.story-subtitle,.story-detail-summary p.story-subtitle{margin:0;font-size:12px;color:#d5bdcf;font-style:italic;min-height:0;display:block}.story-card-body p.story-tagline,.story-detail-summary p.story-tagline{margin:3px 0;font-family:var(--serif);font-style:normal;color:#e6c5d9;font-size:14px;line-height:1.55;display:block;min-height:0}.story-card-body p.story-blurb{color:#d4c4d1;font-size:12px;line-height:1.7;margin:5px 0;min-height:0;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.story-cast{font-size:11px;line-height:1.5;color:#c3b5c5;display:grid;gap:3px}.story-cast strong{color:#f0d7e4;font-size:9px;text-transform:uppercase;letter-spacing:1px}.story-card-body p.story-player-role{margin:2px 0;min-height:0;font-size:11px;-webkit-line-clamp:3}.story-player-role strong{color:#e8d3e0}.story-tags{margin:6px 0 0}.story-channel{color:#af94a9;font-size:9px;letter-spacing:1px;margin-top:7px}.story-card-body .card-actions{margin-top:auto}.profile-hero.story-hero{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.profile-portrait.story-cover{aspect-ratio:3 / 4}.story-detail-summary h3{font:600 26px/1.15 var(--serif);margin:8px 0}.story-detail-summary p.story-detail-cast{margin:14px 0 0;font-size:11px;line-height:1.5}.story-detail-blurb{line-height:1.85;font-size:14px;color:#e2ccdc;margin:22px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:720px){.profile-hero.story-hero{grid-template-columns:minmax(0,1fr)}.story-detail-summary h3{font-size:23px}}.card-grid.featured-grid{display:block;max-width:1000px;margin-inline:auto}.featured-story{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:stretch}.featured-story .discover-preview{min-width:0}.featured-story .book-cover{height:auto;aspect-ratio:3 / 4}.featured-story .book-cover img{width:100%;height:100%;object-fit:contain}.featured-story .story-card-body{padding:clamp(20px,3vw,36px);gap:13px}.featured-story .story-card-body h3.story-title{font-size:clamp(28px,2.7vw,38px)}.featured-story .story-card-body p.story-blurb{-webkit-line-clamp:8;font-size:14px}.card-grid.bookshelf-grid{grid-template-columns:repeat(auto-fill,minmax(255px,1fr));max-width:1480px;margin-inline:auto}.compact-story .story-card-body{gap:8px}.compact-story .story-card-body p.story-blurb{-webkit-line-clamp:3}.compact-story .story-card-body p.story-hook{-webkit-line-clamp:2}.compact-story .story-card-body p.story-player-role{display:none}.story-genre-list{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0}.story-genre{font-size:10px;font-weight:600;padding:6px 9px;background:#3b283b;color:#f3c7df;border:1px solid #69435d;border-radius:7px}.story-genre--family{background:#4b2c43;border-color:#86556f;color:#ffe0eb}.story-card-body p.story-hook{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;min-height:0;margin:7px 0 0;color:#f1d6e7;font-size:13px;font-weight:600;line-height:1.55}.story-detail-hook{padding-left:14px;margin:20px 0 10px;border-left:3px solid #ce8eae;color:#f0cfe3;font:500 17px/1.5 var(--serif);overflow-wrap:anywhere}.story-detail-summary h3{font-size:clamp(24px,2.8vw,34px)}.story-hero-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.story-hero-actions .button{flex:1;min-width:160px;justify-content:center}.story-jacket-hint{margin-top:12px;line-height:1.5}.story-gallery-button{margin-top:16px}.story-rules{margin:0 0 4px;padding-left:20px;color:#d7c5d2;font-size:12px;line-height:1.75}.story-character-details{margin-top:25px;border-top:1px solid var(--line);padding-top:17px}.story-character-details>summary{cursor:pointer;color:#ecd0e0;font-weight:600;font-size:13px;padding:7px 0}.story-character-details .subheading{margin-top:15px}@media(max-width:850px){.featured-story{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.featured-story .story-card-body{padding:20px}}@media(max-width:650px){.featured-story{display:flex;flex-direction:column}.featured-story .book-cover{aspect-ratio:3 / 4;height:auto}.featured-story .story-card-body h3.story-title{font-size:28px}.featured-story .story-card-body p.story-blurb{-webkit-line-clamp:5}}.novel-shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,255px),1fr));align-items:start;gap:clamp(18px,2.2vw,28px);width:100%;max-width:1420px;margin-inline:auto}.novel-shelf--featured{grid-template-columns:minmax(0,830px);justify-content:center}.novel-tile{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#211b25;border:1px solid #443341;border-radius:13px;box-shadow:0 16px 30px #00000021;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}.novel-tile:hover{border-color:#78546b;transform:translateY(-2px);box-shadow:0 23px 46px #00000038}.novel-cover-frame{position:relative;width:100%;aspect-ratio:13 / 19;overflow:hidden;background:#241d2b}.novel-cover-button{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;overflow:hidden}.novel-cover-ambient{position:absolute;top:-22px;right:-22px;bottom:-22px;left:-22px;width:calc(100% + 44px);height:calc(100% + 44px);object-fit:cover;filter:blur(24px) brightness(.57) saturate(.76);transform:scale(1.03);pointer-events:none}.novel-cover-art{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block;object-fit:contain;transition:transform .25s ease}.novel-cover-button:hover .novel-cover-art{transform:scale(1.012)}.novel-cover-placeholder{width:100%;height:100%}.novel-cover-placeholder>span{font-size:clamp(70px,12vw,120px)}.novel-tile-copy{display:flex;flex-direction:column;gap:0;flex:1;min-width:0;padding:18px 19px 19px}.novel-tile-title{color:#ffebee;font-family:var(--serif);font-weight:650;font-size:25px;line-height:1.13;letter-spacing:-.025em;margin:0;overflow-wrap:anywhere}.novel-tile-teaser{margin:10px 0 0;color:#d9bacd;font-family:var(--serif);font-style:normal;font-size:13px;line-height:1.55;overflow-wrap:anywhere}.novel-browse-tags{display:flex;flex-wrap:wrap;align-items:start;gap:7px;margin-top:17px}.novel-browse-tag{display:inline-block;max-width:100%;padding:6px 9px;border-radius:6px;border:1px solid #5b4459;background:#342938;color:#e9c2d8;font-size:10px;line-height:1.4;font-weight:550;overflow-wrap:anywhere}.novel-browse-tag--family{background:#4b2c43;border-color:#86556f;color:#ffe0eb}.novel-view-details{display:inline-flex;justify-content:space-between;align-items:center;gap:14px;width:100%;padding:13px 0 0;margin-top:auto;border:0;border-top:1px solid #403240;background:transparent;color:#edb5d2;font-size:12px;font-weight:650;letter-spacing:.025em;text-align:left;cursor:pointer}.novel-browse-tags+.novel-view-details{margin-top:18px}.novel-view-details:hover{color:#fff2f8}.novel-cover-button:focus-visible,.novel-view-details:focus-visible{outline:2px solid #f7b5d0;outline-offset:-3px}.novel-tile--featured{display:grid;grid-template-columns:minmax(0,44%) minmax(0,56%)}.novel-tile--featured .novel-cover-frame{height:auto;min-height:0;aspect-ratio:13 / 19;align-self:start}.novel-tile--featured .novel-tile-copy{padding:clamp(25px,3vw,39px);justify-content:center}.novel-tile--featured .novel-tile-title{font-size:clamp(31px,3vw,43px)}.novel-tile--featured .novel-tile-teaser{font-size:16px}.novel-tile--featured .novel-browse-tags{margin-top:23px}.novel-tile--featured .novel-view-details{margin-top:27px}.profile-portrait.story-cover{aspect-ratio:auto;height:auto;display:block;overflow:hidden;padding:0;background:transparent;border:0}.profile-portrait.story-cover>img{display:block;width:100%;height:auto;object-fit:contain;border-radius:10px}.novel-dismiss{margin-top:24px}@media(max-width:680px){.novel-shelf{grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr))}.novel-tile--featured{grid-template-columns:minmax(0,1fr)}.novel-tile--featured .novel-cover-frame{height:auto;min-height:0;aspect-ratio:13 / 19}.novel-tile--featured .novel-tile-copy{padding:20px 21px 22px}.novel-tile--featured .novel-tile-title{font-size:30px}.novel-tile--featured .novel-tile-teaser{font-size:14px}}@media(prefers-reduced-motion:reduce){.novel-tile,.novel-cover-art{transition:none}.novel-tile:hover,.novel-cover-button:hover .novel-cover-art{transform:none}}.batch-activity{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}.batch-worker{border:1px solid #55405a;background:#322637;color:#eed5e6;border-radius:8px;padding:9px 12px;font-size:12px}.batch-worker strong{color:#ffe8f4}.batch-result{display:flex;flex-wrap:wrap;gap:9px;padding:14px 18px;margin:12px 0;background:#392c33;border:1px solid #85555c;border-radius:10px;color:#f3cfd5;font-size:12px}.batch-result>span{flex-basis:100%}.rp-workspace{display:flex;flex:1;min-height:0;min-width:0;overflow:hidden}.rp-workspace>.messages{flex:1;min-width:0}.scene-cast-panel{width:clamp(220px,21vw,310px);flex:none;overflow-y:auto;background:#18151d;border-right:1px solid #3d303f;padding:20px 13px 30px}.scene-cast-head{display:flex;flex-direction:column;gap:6px;padding:1px 9px 18px;border-bottom:1px solid #41303f;margin-bottom:12px}.scene-cast-head strong{font-family:var(--serif);font-size:19px;color:#eedfeb}.scene-cast-head small{font:500 11px ui-sans-serif,sans-serif;color:#a891a7;margin-left:7px}.scene-cast-list{display:flex;flex-direction:column;gap:10px}.scene-cast-person{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start;gap:10px;padding:10px 8px;border:1px solid #403040;border-left:3px solid #b6a5ff;border-radius:10px;background:#241d2a;min-width:0}.scene-cast-portrait{position:relative;flex:0 0 72px;width:72px;height:auto;aspect-ratio:13 / 19;overflow:hidden;border-radius:7px;padding:0;border:1px solid #60445d;background:#34283a;font:35px var(--serif);color:#eacdda}.scene-cast-portrait img{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;height:100%;object-fit:contain}.scene-cast-portrait:disabled{cursor:default;opacity:.8}.scene-cast-info{flex:1;display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:6px}.scene-cast-name{font-weight:650;font-size:12px;color:#ffe7f1;background:none;border:0;padding:0;text-align:left;overflow-wrap:anywhere;cursor:pointer}.scene-cast-name:hover{text-decoration:underline}.scene-cast-name small{font-size:10px;color:#cdb6c4;white-space:nowrap}.scene-cast-swatch{width:7px;height:7px;display:inline-block;border-radius:50%;margin-right:5px}.scene-cast-presence{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#a78da2}.scene-cast-info p{margin:0;font-size:11px;line-height:1.45;color:#d1c0d1;overflow-wrap:anywhere}.scene-cast-live{grid-column:1 / -1;display:grid;gap:9px;margin:2px 0 0;padding:11px 4px 0;border-top:1px solid #443547;min-width:0}.scene-cast-live>div{min-width:0}.scene-cast-live dt{margin-bottom:3px;font-size:9px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:#d9a6ca}.scene-cast-live dd{margin:0;font-size:11px;line-height:1.5;color:#e6d7e4;overflow-wrap:anywhere;white-space:pre-wrap}.scene-cast-live dd.scene-cast-unknown{color:#988796;font-style:italic}.scene-portrait-action{display:inline-flex;align-items:center;gap:5px;background:none;border:none;padding:3px 0;color:#edabd0;font-size:10px;text-align:left;cursor:pointer}.scene-portrait-action:disabled{opacity:.55;cursor:wait}.scene-cast-error{font-size:10px;color:#f4a6ab;overflow-wrap:anywhere}.scene-cast-empty{font-size:12px;color:var(--muted);padding:10px}.scene-cast-lightbox{display:block;max-width:100%;max-height:78dvh;width:auto;height:auto;object-fit:contain;margin:auto;border-radius:9px}.scene-person-details{display:flex;flex-direction:column;gap:12px;max-width:560px}.scene-person-details p{line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.scene-cast-mobile-tab{display:none!important}.cast-mobile-workspace{display:none}@media(max-width:1020px){.rp-workspace>.scene-cast-panel{display:none}.scene-cast-mobile-tab{display:inline-flex!important}.cast-mobile-workspace{display:flex;flex:1;min-height:0;overflow:auto}.cast-mobile-workspace .scene-cast-panel{width:100%;border:0;padding:18px}.cast-mobile-workspace .scene-cast-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}.streaming-prose{white-space:pre-wrap;overflow-wrap:anywhere}.streaming-caret{display:inline;margin-left:2px;color:var(--pink);font-weight:700}.working-line .text-button{font-size:11px;padding:2px 6px;margin-left:6px}.working-line .text-button:disabled{opacity:.6;cursor:default}.identity-manager{margin:14px 0 22px;padding:14px;border:1px solid #6b4b63;border-radius:12px;background:#241a24}.identity-manager>p{font-size:12px;line-height:1.6;margin-bottom:12px}.identity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.identity-item{display:flex;gap:12px;background:#2c222d;border:1px solid #594456;border-radius:10px;padding:10px;min-width:0}.identity-photo{border:0;display:flex;align-items:center;justify-content:center;width:90px;min-width:90px;height:128px;border-radius:8px;overflow:hidden;background:#3c3040;color:#cbb7c8;font-size:12px;cursor:pointer}.identity-photo img{width:100%;height:100%;object-fit:cover}.identity-empty{padding:8px;text-align:center;cursor:default}.identity-info{min-width:0;display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:6px}.identity-info strong{font-size:13px}.identity-info small{font-size:11px;color:#cdbacd;line-height:1.4}.identity-actions{display:flex;flex-wrap:wrap;gap:6px}.identity-upload{position:relative;cursor:pointer}.identity-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.identity-crop{margin-top:3px;width:100%}.identity-crop-result{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-top:8px}.identity-crop-result img{width:96px;height:96px;border-radius:8px;object-fit:cover}.identity-crop-result label{display:flex;flex-direction:column;gap:4px;font-size:11px}.identity-crop-result input{width:130px}.identity-error{color:#ff9eb3!important;font-size:12px;overflow-wrap:anywhere}.library-generator{display:grid;gap:16px}.library-generator-panel{display:grid;gap:16px;min-width:0}.library-generator-panel>label{display:grid;gap:7px;max-width:650px}.library-generator-panel input:not([type=checkbox]),.library-generator-panel textarea,.library-generator-panel select{width:100%}.library-generator-draft{display:grid;gap:12px;padding:18px;border:1px solid #4a384c;border-radius:12px;background:#ffffff06;min-width:0}.library-generator-draft>label{display:grid;gap:6px}.library-generator-draft textarea{min-height:78px}.library-generator-results{display:grid;gap:14px}.library-generator-item-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.library-generator-draft .library-toggle{display:flex;align-items:center;gap:8px}.library-generator-list{display:grid;gap:8px;min-width:0}.library-generator-results .library-generator-draft{padding:12px 14px;gap:0}.library-generator-results .library-generator-item-heading{display:flex;align-items:flex-start;flex-wrap:nowrap;justify-content:stretch;gap:10px;min-width:0}.library-generator-results .library-toggle{flex:0 0 auto;padding:6px 4px;white-space:nowrap;font-size:12px;cursor:pointer}.library-generator-item-index{color:var(--text-muted, #c8b6c8)}.library-generator-expand{display:flex;flex:1 1 auto;gap:12px;justify-content:space-between;align-items:flex-start;min-width:0;width:100%;text-align:left;border:0;border-radius:7px;padding:5px 7px;cursor:pointer;background:transparent;color:inherit;font:inherit}.library-generator-expand:hover{background:#ffffff0e}.library-generator-expand:focus-visible{outline:2px solid currentColor;outline-offset:2px}.library-generator-preview{display:grid;gap:4px;flex:1;min-width:0}.library-generator-preview-title{font-weight:700;font-size:14px;overflow-wrap:anywhere}.library-generator-preview-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:12px;line-height:1.45;color:var(--text-muted, #c8b6c8)}.library-generator-preview-review{font-size:11px;color:#e9b986}.library-generator-chevron{display:inline-block;flex:none;line-height:1;font-size:22px;transform:rotate(0);transition:transform .16s ease}.library-generator-chevron.open{transform:rotate(180deg)}.library-generator-details{display:grid;gap:12px;padding:14px 2px 2px;border-top:1px solid var(--border-color,#4a384c);margin-top:12px;min-width:0}.library-generator-details[hidden]{display:none!important}.library-generator-details>label{display:grid;gap:6px}.library-generator-batch-actions{flex-wrap:wrap;gap:8px}@media(max-width:520px){.library-generator-results .library-generator-draft{padding:10px}.library-generator-results .library-generator-item-heading{gap:5px}.library-generator-preview-title{font-size:13px}.library-generator-batch-actions .button{flex:1 1 auto}}@media(prefers-reduced-motion:reduce){.library-generator-chevron{transition:none}}.premise-focus-fields{display:grid;gap:10px;min-width:0}.premise-focus-fields>label{display:grid;gap:6px}.premise-focus-fields select,.premise-focus-fields textarea{width:100%}.premise-focus-fields .muted{margin:0;font-size:12px;line-height:1.5}.premise-focus-secondary{display:flex;flex-wrap:wrap;gap:8px 16px;border:1px solid var(--border-color, #4b374c);padding:12px;border-radius:8px;min-width:0}.premise-focus-secondary legend{padding:0 6px;font-size:12px}.premise-focus-secondary label{display:inline-flex;align-items:center;gap:7px;font-size:12px}.premise-identity-fields{display:grid;gap:12px;min-width:0;padding:15px;border:1px solid var(--border);border-radius:12px}.premise-identity-fields legend{padding:0 6px;font-weight:650}.premise-identity-fields>label{display:grid;gap:6px;min-width:0}.premise-identity-fields textarea,.premise-identity-fields select{width:100%}.premise-identity-fields .muted{margin:0;font-size:12px;line-height:1.5}.library-premise-identity{display:grid;gap:4px;margin-top:10px}.library-premise-identity p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.library-editorial-issues{display:grid;gap:6px;border-inline-start:3px solid var(--muted);background:var(--surface, transparent);border-radius:5px;padding:10px 12px;font-size:12px;line-height:1.5}.library-editorial-issues ul{margin:0;padding-inline-start:19px}.library-editorial-issues li+li{margin-top:4px}.identity-appeal-controls{width:100%;margin-top:8px;padding:10px;border:1px solid #614860;border-radius:8px;background:#231b27}.identity-appeal-controls summary{font-size:12px;font-weight:650;cursor:pointer}.identity-appeal-controls[open]{display:block}.identity-appeal-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:10px 0}.identity-appeal-fields label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#dfcede}.identity-appeal-fields select{width:100%;min-width:0;padding:6px;background:#302535;border:1px solid #76617b;border-radius:6px;color:#f5ecf5}.identity-appeal-controls>small{display:block;margin-bottom:8px}.library-generator-jobs{margin-top:18px;border-top:1px solid #584958;padding-top:14px}.library-generator-jobs h3{font-size:14px;margin:0 0 8px}.library-generator-jobs ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}.library-generator-jobs li{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;padding:9px 11px;border:1px solid #655168;border-radius:8px;background:#29212b}.library-generator-jobs li strong,.library-generator-jobs li span{font-size:12px}.library-generator-jobs li small{flex-basis:100%;font-size:11px;line-height:1.5}.library-generator-jobs>p{font-size:12px;margin-top:12px;line-height:1.5}.library-family-profile{display:grid;gap:12px;min-width:0;max-width:100%;padding:14px;margin:6px 0 14px;border:1px solid var(--line);border-radius:10px}.library-family-profile legend{padding:0 6px;font-size:13px;font-weight:650}.library-family-profile>label{display:grid;gap:6px;min-width:0;margin:0}.library-family-profile>p{margin:0}.library-family-profile input,.library-family-profile textarea,.library-family-profile select{width:100%;max-width:100%;min-width:0}.premise-canonical-references{display:grid;gap:12px;min-width:0;border:1px solid var(--line);border-radius:10px;padding:14px}.premise-canonical-references>legend{padding:0 6px;font-weight:650;font-size:13px}.premise-canonical-references>p{margin:0}.premise-canonical-item{display:grid;gap:10px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:9px;background:#ffffff06}.premise-canonical-item>label{display:grid;gap:5px;min-width:0}.premise-canonical-item input,.premise-canonical-item textarea{width:100%;min-width:0}.voice-identity-manager{margin:14px 0 22px;padding:14px;border:1px solid #6b4b63;border-radius:12px;background:#241a24}.voice-identity-heading{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}.voice-identity-heading .subheading{margin:0 0 6px}.voice-identity-heading p{font-size:12px;line-height:1.5;margin:0 0 12px;max-width:680px}.voice-identity-grid{display:grid;gap:8px}.voice-identity-item{border:1px solid #594456;border-radius:9px;background:#2c222d;min-width:0}.voice-identity-item>summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;cursor:pointer;padding:11px;font-size:13px}.voice-identity-item>summary span{font-size:11px;color:#cdbacd;margin-left:auto}.voice-identity-item[open]>summary{border-bottom:1px solid #594456}.voice-identity-body{padding:12px;display:grid;gap:10px;font-size:12px;line-height:1.6}.voice-identity-body>p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.voice-identity-body>button{justify-self:start}.voice-identity-examples{display:grid;gap:8px}.voice-identity-examples blockquote{margin:0;padding:8px 11px;border-left:2px solid #a97c9b;background:#271e2a}.voice-identity-examples blockquote small{color:#cdbacd;font-size:11px}.voice-identity-examples blockquote p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.rp-workspace{position:relative;isolation:isolate}.rp-workspace>.messages{position:relative;z-index:1;min-width:0}.ambient-chat-layer{position:absolute;inset:0 0 0 clamp(220px,21vw,310px);z-index:0;overflow:hidden;pointer-events:none}@media(max-width:1020px){.ambient-chat-layer{left:0}}.ambient-chat-image{position:absolute;top:-32px;right:-32px;bottom:-32px;left:-32px;background-position:center;background-size:cover;background-repeat:no-repeat}.ambient-chat-image--incoming{animation:ambient-appear .65s ease-out both}.ambient-chat-shade{position:absolute;top:0;right:0;bottom:0;left:0;transition:background-color .14s ease}@keyframes ambient-appear{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.ambient-chat-image--incoming{animation:none}}.chat-focused .ambient-chat-layer~.messages .message.prose.assistant{background:#17121c5c;border-radius:10px;padding:10px 14px}.ambient-controls{border-top:1px solid #554253;padding:12px 10px 6px;display:flex;flex-direction:column;gap:10px}.ambient-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.ambient-heading strong{font-size:12px;color:#f0d3df}.ambient-heading label{display:flex;align-items:center;gap:5px;font-size:11px}.ambient-place{color:#b6a0b2;overflow-wrap:anywhere}.ambient-slider{display:flex;flex-direction:column;gap:5px;font-size:11px}.ambient-slider>span{display:flex;justify-content:space-between;align-items:center}.ambient-slider output{color:#eab7d4;font-variant-numeric:tabular-nums}.ambient-slider input{width:100%;accent-color:#dca4c6}.ambient-controls>button{display:flex;align-items:center;gap:8px;width:100%;padding:9px 6px;border-radius:6px;text-align:left;font-size:12px;background:#38293a}.ambient-controls>button:hover:not(:disabled){background:#50374b}.ambient-controls>button:disabled{opacity:.5;cursor:not-allowed}.ambient-controls .field-error{font-size:11px;line-height:1.4}.spice-rating{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%;font-size:12px;color:#e8d2da;line-height:1.4}.spice-rating--compact{font-size:11px;gap:6px}.spice-rating-flames{display:inline-block;font-family:system-ui,sans-serif;font-size:.95em;letter-spacing:-1px;white-space:nowrap}.spice-rating-name{font-weight:600}.spice-rating--unrated{color:var(--muted);font-weight:400}.spice-filter{min-width:0;width:100%;margin:16px 0 20px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:#211b25}.spice-filter legend{color:var(--cream);font-size:12px;font-weight:700;padding:0 6px}.spice-filter-heading{display:flex;align-items:center;margin-bottom:9px}.spice-filter-actions{display:flex;flex-wrap:wrap;align-items:center;column-gap:14px;row-gap:0}.spice-filter-actions .text-button{padding:4px 0;font-size:11px}.spice-filter-options{display:flex;flex-wrap:wrap;gap:7px}.spice-filter-option{border:1px solid #594453;border-radius:8px;min-height:38px;min-width:52px;padding:7px 10px;background:#29222c;color:#bdaeb9;display:inline-flex;justify-content:center;align-items:center;gap:7px;font-size:11px;font-weight:650;transition:border-color .12s,background .12s}.spice-filter-option:hover{background:#3b2a37}.spice-filter-option.selected{border-color:#b87990;color:#f6e4eb;background:#4b2b3b}.spice-filter-option:focus-visible,.spice-filter-actions button:focus-visible{outline:2px solid #e8a4bf;outline-offset:2px}.spice-filter-unrated{min-width:75px}.spice-filter-summary{margin:8px 0 0;font-size:11px}.library-premise-spice{margin:3px 0 9px}.family-spice-summary{display:grid;gap:6px;flex:1 1 245px;min-width:min(245px,100%);max-width:360px;padding:4px 0}.family-spice-typical{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:11px;color:var(--muted)}.family-spice-counts{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.family-spice-count{display:inline-flex;min-width:33px;border:1px solid #634b59;border-radius:6px;background:#362832;font-size:10px;color:#ead0dc;overflow:hidden}.family-spice-count-level{padding:4px 5px;border-right:1px solid #634b59;color:#edb4c4}.family-spice-count-value{padding:4px 5px;font-variant-numeric:tabular-nums}.family-spice-count--zero{opacity:.42}.family-spice-legacy{font-size:10px;color:var(--muted);white-space:nowrap}.novel-tile-copy .spice-rating{margin:3px 0 8px}.story-spice-detail{margin:7px 0 11px}.discover-spice-empty{padding:26px 20px;margin-bottom:14px}.discover-spice-empty h2{font-size:20px}.discover-spice-empty .button{margin-top:9px}@media(max-width:700px){.spice-filter{padding:11px 12px}.spice-filter-option{padding:6px 7px;min-width:43px}.spice-filter-unrated{min-width:68px}.family-spice-summary{flex:1 1 100%;max-width:none}}.surprise-spice select{min-width:184px;max-width:248px}.surprise-availability{flex:1 0 100%;text-align:right;color:var(--muted);font-size:11px;line-height:1.4}.surprise-availability--empty{color:#e6a6b8}@media(max-width:700px){.surprise-spice select{min-width:154px;max-width:210px}.surprise-availability{text-align:left}}
