@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;450;500;550;600;650;700;750;800&family=Prata&display=swap');
:root{color-scheme:dark;--bg:#101216;--panel:#17191f;--raised:#1d2027;--line:#2a2d34;--muted:#a0a1aa;--text:#f4f1ed;--accent:#efbb9b;--accent-hover:#f7ceb1;--accent-ink:#282019;--green:#b9d2bd;--sidebar:228px;font-family:'Golos Text',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-synthesis:none}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.55}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
a{color:inherit;text-decoration:none}
button{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
img{max-width:100%;display:block}
button svg,a svg{pointer-events:none}
svg.icon{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{letter-spacing:-.035em;line-height:1.16}
h1{font-size:36px}
h2{font-size:25px}
h3{font-size:18px}
[hidden]{display:none!important}
.muted{color:var(--muted)}
.small{font-size:12px}
.accent{color:var(--accent)}
.eyebrow{font-size:11px;letter-spacing:.17em;font-weight:650;text-transform:uppercase;color:var(--accent)}
.serif{font-family:'Prata',Georgia,serif;font-style:italic;font-weight:400;letter-spacing:-.06em}
.skip-link{position:fixed;top:-100px;left:15px;z-index:1000;padding:10px;background:var(--accent);color:var(--bg)}
.skip-link:focus{top:12px}
.brand-word{font-size:28px;line-height:1.2;font-weight:750;letter-spacing:-1.5px;display:inline-flex;align-items:center;gap:4px}
.brand-word span{font-size:23px;color:var(--accent);line-height:1}
.brand-tagline{font-size:9px;letter-spacing:.17em;color:#777b85;text-transform:uppercase;margin-top:4px}
.sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:var(--sidebar);background:#13151a;border-right:1px solid var(--line);padding:30px 16px 20px;display:flex;flex-direction:column}
.sidebar-brand{display:block;padding:0 14px 29px}
.sidebar-nav{display:grid;gap:6px}
.nav-button{border:0;background:transparent;width:100%;text-align:left;display:flex;align-items:center;gap:12px;color:#afb0ba;padding:12px 15px;border-radius:10px;font-size:13px;font-weight:500}
.nav-button:hover{background:#202229;color:var(--text)}
.nav-button.active{background:#27252a;color:#f4d4bf}
.nav-button.active svg{color:var(--accent)}
.nav-button .nav-count{margin-left:auto;font-size:11px;color:#bfc0c9}
.sidebar-separator{height:1px;background:var(--line);margin:24px 12px 20px}
.recent-title{display:flex;justify-content:space-between;padding:0 15px;color:#777b86;font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.recent-list{display:grid;gap:4px;margin-top:12px;overflow:auto;max-height:240px;scrollbar-width:thin}
.recent-story{border:0;background:none;padding:9px 12px;display:flex;align-items:center;text-align:left;gap:10px;border-radius:9px;color:#b8bac3;min-width:0}
.recent-story:hover{background:var(--raised)}
.recent-story .portrait-media{width:31px;height:35px;border-radius:7px;object-fit:cover}
.recent-story span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.recent-empty{font-size:11px;color:#747783;padding:8px 15px}
.sidebar-bottom{margin-top:auto;padding-top:20px}
.plus-card{border:1px solid #4b3c35;border-radius:12px;background:linear-gradient(115deg,#2a2422,#1d1d23);padding:16px;width:100%;text-align:left}
.plus-card strong{display:flex;align-items:center;gap:8px;font-size:13px;color:#f5d0b9}
.plus-card p{font-size:11px;color:#b3a7a0;margin:7px 0 10px}
.plus-card .plus-link{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--accent)}
.account-button{border:0;background:none;padding:19px 9px 0;display:flex;align-items:center;gap:10px;width:100%;text-align:left}
.account-avatar{width:32px;height:32px;border-radius:50%;background:#2c2c36;display:grid;place-items:center;color:#e7c8b4;font-size:12px;flex-shrink:0}
.account-button strong{display:block;font-size:12px;font-weight:500;max-width:125px;overflow:hidden;text-overflow:ellipsis}
.account-button small{font-size:10px;color:#81848e}
.account-button>.icon{margin-left:auto;width:16px;color:#777b86}
.workspace{margin-left:var(--sidebar);min-width:0}
.topbar{height:82px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #20232a}
.topbar-left{display:flex;align-items:center;gap:12px;min-width:0}
.topbar-title{font-size:13px;font-weight:500;white-space:nowrap}
.topbar-right{display:flex;align-items:center;gap:18px}
.age-badge{font-size:10px;color:#8a8e98;border:1px solid #383b43;border-radius:6px;padding:2px 6px;white-space:nowrap}
.search-wrap{position:relative;width:350px;max-width:100%}
.search-wrap>.icon{position:absolute;left:14px;top:12px;width:18px;height:18px;color:#797e8a}
.search-input{width:100%;height:43px;padding:0 37px 0 42px;border-radius:10px;border:1px solid #30333c;background:#1a1d24;color:var(--text);outline:none;font-size:12px}
.search-input::placeholder{color:#757b88}
.search-input:focus{border-color:#8c6d5b}
.search-hint{position:absolute;right:12px;top:11px;border:1px solid #343741;border-radius:4px;font-size:11px;color:#6e7380;width:19px;text-align:center}
.main{padding:32px 40px 60px;max-width:1610px;margin:auto;min-height:calc(100dvh - 82px)}
.initial-loading{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}
.initial-loading p{color:var(--muted)}
.loader{display:inline-block;width:20px;height:20px;border:2px solid #57514d;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}
}
.button{border:1px solid var(--line);background:#24262e;color:var(--text);border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 17px;font-weight:550;font-size:12px;line-height:1.45;transition:background .15s,transform .15s}
.button:hover{background:#30313a}
.button.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.button.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.button.quiet{background:transparent;border-color:var(--line);color:#c0c1c8}
.button.ghost{background:transparent;border-color:transparent;padding:8px 4px;color:var(--muted)}
.button.danger{color:#edb7b3;border-color:#66413f;background:#322326}
.button.wide{width:100%}
.button .icon{width:17px;height:17px}
.button.compact{min-height:35px;padding:7px 12px;font-size:11px}
.icon-button{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid transparent;background:transparent;border-radius:9px;color:#9297a2;flex-shrink:0}
.icon-button:hover{background:var(--raised);color:var(--text)}
.icon-button .icon{width:18px;height:18px}
.hero{min-height:335px;position:relative;overflow:hidden;isolation:isolate;border:1px solid #333039;border-radius:18px;background:radial-gradient(ellipse at 74% 20%,#3a2928 0,transparent 62%),linear-gradient(120deg,#202027,#1a191f);padding:40px 40px 34px;display:flex;align-items:center}
.hero::after{content:'';position:absolute;pointer-events:none;inset:0;background:radial-gradient(ellipse at 5% 100%,#59433a30,transparent 60%);z-index:-1}
.hero-copy{position:relative;width:58%;z-index:2}
.hero .eyebrow{display:flex;align-items:center;gap:9px;margin-bottom:19px;font-size:10px}
.hero .eyebrow span{width:5px;height:5px;background:var(--accent);border-radius:50%}
.hero h1{font-size:clamp(32px,3.8vw,56px);line-height:1.1;margin-bottom:18px;letter-spacing:-.055em}
.hero h1 .serif{color:var(--accent);font-size:1.02em;display:block;margin-top:3px}
.hero-description{max-width:360px;font-size:12px;line-height:1.75;color:#b2aeb3;margin-bottom:25px}
.hero-actions{display:flex;align-items:center;gap:18px}
.hero-caption{font-size:10px;color:#a49a99}
.hero-art{position:absolute;width:45%;height:100%;right:0;top:0;display:flex;align-items:center;justify-content:center;pointer-events:none;mask-image:linear-gradient(to right,transparent,#000 9%)}
.hero-portrait{position:absolute;overflow:hidden;width:40%;height:76%;border:1px solid #9e7f6966;border-radius:15px;box-shadow:0 15px 30px #0009;transform:rotate(-13deg) translate(-61%,-3%);background:#28212a}
.hero-portrait:nth-child(2){transform:rotate(6deg) translate(34%,-7%);height:82%;z-index:1}
.hero-portrait:nth-child(3){transform:rotate(17deg) translate(111%,12%);height:72%}
.hero-portrait .portrait-media{width:100%;height:100%;object-fit:cover;object-position:center 26%;filter:saturate(.8) brightness(.8)}
.hero-portrait::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#17141be6,transparent 58%)}
.hero-portrait-label{position:absolute;bottom:15px;left:12px;right:12px;font-size:11px;font-weight:550;z-index:2;color:#ede3df}
.hero-spark{position:absolute;right:23%;bottom:20px;color:var(--accent);font-size:40px;z-index:3}
.intro-bar{display:flex;align-items:center;gap:25px;padding:21px 2px 24px;border-bottom:1px solid var(--line);margin-bottom:26px}
.intro-bit{display:flex;align-items:center;gap:8px;font-size:10px;color:#9696a0}
.intro-bit .icon{width:15px;height:15px;color:#c3a998}
.intro-bar .intro-last{margin-left:auto}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:19px}
.section-heading h2{margin:0;font-size:23px}
.section-heading p{margin:7px 0 0;font-size:11px;color:#8e919b}
.section-heading .text-link{font-size:11px;white-space:nowrap}
.text-link{border:0;background:none;color:var(--accent);padding:0;display:inline-flex;align-items:center;gap:5px;font-size:12px}
.text-link .icon{width:16px;height:16px}
.filter-row{display:flex;align-items:center;gap:8px;overflow:auto;padding:1px 0 12px;margin-bottom:11px;scrollbar-width:none}
.filter-row::-webkit-scrollbar{display:none}
.filter-pill{border:1px solid #2f323a;background:#181a20;color:#a9abb5;border-radius:8px;padding:7px 12px;font-size:10px;white-space:nowrap;min-height:34px;transition:all .15s}
.filter-pill:hover{border-color:#8a6a58;color:#eed0bc}
.filter-pill.active{background:#efbb9b;color:#282019;border-color:#efbb9b}
.catalog-tools{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:3px 0 18px;font-size:11px;color:#797e8a}
.segmented{display:flex;gap:3px;background:#191b21;padding:3px;border:1px solid #2a2d34;border-radius:8px}
.segmented button{border:0;border-radius:5px;padding:5px 9px;background:none;color:#8e929e;font-size:10px}
.segmented button.active{background:#30313b;color:#ece7e4}
.story-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:17px}
.story-card{background:#191c23;border:1px solid #2b2e36;border-radius:12px;overflow:hidden;text-align:left;display:flex;flex-direction:column;padding:0;position:relative;min-width:0;transition:transform .18s,border-color .18s,box-shadow .18s}
.story-card:hover{transform:translateY(-5px);border-color:#96725d;box-shadow:0 12px 28px #0004}
.story-card-media{aspect-ratio:3/3.65;overflow:hidden;position:relative;width:100%;background:linear-gradient(135deg,#51413f,#242634)}
.story-card-media .portrait-media{height:100%;width:100%;object-fit:cover;object-position:center 25%;transition:transform .5s;filter:saturate(.88)}
.story-card:hover .portrait-media{transform:scale(1.04)}
.story-card-media::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#090a0d12 30%,#13151b1f 59%,#191c23 100%)}
.card-badge{position:absolute;top:10px;left:10px;z-index:2;background:#16161ec7;border:1px solid #ffffff1b;backdrop-filter:blur(12px);border-radius:5px;padding:3px 6px;color:#e9ddd5;font-size:8px;letter-spacing:.03em;display:inline-flex;gap:4px;align-items:center}
.card-badge .icon{width:10px;height:10px}
.card-genre{position:absolute;bottom:8px;left:13px;color:#dbbaaa;font-size:9px;z-index:2}
.story-card-content{padding:5px 13px 14px;flex:1;display:flex;flex-direction:column}
.story-card h3{font-size:14px;font-weight:550;line-height:1.3;letter-spacing:-.02em;margin:0 0 6px}
.story-card p{color:#8e929e;font-size:10px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 13px;min-height:33px}
.story-card-footer{font-size:9px;color:#6e7380;display:flex;align-items:center;gap:5px;margin-top:auto}
.story-card-footer .icon{width:11px;height:11px}
.story-card-footer>span:last-child{margin-left:auto;color:#b59b8b}
.empty-state{border:1px dashed #3c3e47;border-radius:15px;min-height:240px;padding:38px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;max-width:100%;grid-column:1/-1}
.empty-state>.icon{width:30px;height:30px;color:var(--accent);margin-bottom:19px}
.empty-state h2,.empty-state h3{font-size:21px;margin-bottom:11px}
.empty-state p{max-width:400px;font-size:12px;color:var(--muted)}
.empty-state .button{margin-top:8px}
.load-more{display:flex;justify-content:center;margin-top:26px}
.editor-banner{background:linear-gradient(110deg,#29232a,#1b1c24);border:1px solid #3c343e;border-radius:14px;display:flex;align-items:center;gap:23px;padding:25px 28px;margin-top:35px}
.editor-banner>.icon{width:32px;height:32px;color:#dcb7a4;flex-shrink:0}
.editor-banner h3{font-size:19px;margin:0 0 7px}
.editor-banner p{font-size:11px;color:#aaa3ad;margin:0}
.editor-banner .button{margin-left:auto;flex-shrink:0}
.site-footer{display:flex;flex-wrap:wrap;align-items:center;gap:16px;border-top:1px solid var(--line);margin-top:35px;padding-top:23px;font-size:10px;color:#6f737f}
.site-footer span:first-child{margin-right:auto}
.site-footer a:hover{color:#d4b5a0}
.mobile-nav{display:none}
.page-intro{margin-bottom:32px;max-width:690px}
.page-intro .eyebrow{margin-bottom:13px}
.page-intro h1{margin-bottom:13px}
.page-intro p{font-size:13px;color:var(--muted);line-height:1.8}
.session-list{display:grid;gap:13px}
.session-card{display:flex;align-items:center;gap:20px;background:#191c22;border:1px solid var(--line);padding:15px;border-radius:13px}
.session-card .portrait-media{width:70px;height:88px;object-fit:cover;object-position:center 25%;border-radius:8px}
.session-card-main{flex:1;min-width:0}
.session-card-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.session-card h3{font-size:17px;margin:0 0 7px}
.session-card p{font-size:12px;color:#9499a4;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.session-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:10px;color:#797d89}
.status-label{display:inline-flex;align-items:center;font-size:10px;border-radius:5px;padding:3px 7px;background:#2d2b30;color:#bdb3c0;white-space:nowrap}
.status-published,.status-approved{background:#25372e;color:#b9d2bd}
.status-pending{background:#3d3426;color:#d7bf92}
.status-rejected{background:#3b272c;color:#e3abad}
.creation-actions{display:flex;gap:5px;flex-wrap:wrap}
.form-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:30px;align-items:start;max-width:1120px}
.form-card{padding:26px;border:1px solid var(--line);border-radius:14px;background:#171a20;margin-bottom:18px}
.form-card h2{font-size:18px;margin-bottom:7px}
.form-card>.muted{font-size:11px;margin-bottom:22px}
.field{display:block;margin-bottom:20px}
.field:last-child{margin-bottom:0}
.field-label{display:block;margin-bottom:8px;font-size:12px;font-weight:500;color:#d9d5d4}
.field-note{display:block;font-size:10px;color:#818693;margin-top:7px;line-height:1.6}
.input{width:100%;border:1px solid #3b3e48;border-radius:9px;background:#11141a;color:#e6e3e0;padding:11px 13px;min-height:43px;font-size:12px;line-height:1.6}
.input::placeholder{color:#686f7c}
.input:focus{outline:0;border-color:#b79078;box-shadow:0 0 0 2px #efbb9b12}
textarea.input{resize:vertical;min-height:90px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:22px}
.mode-option{display:block;border:1px solid #343743;border-radius:10px;padding:16px;cursor:pointer}
.mode-option:has(input:checked){border-color:#a78069;background:#30272055}
.mode-option input{accent-color:var(--accent);margin:0 0 10px}
.mode-option strong{display:block;font-size:12px;margin-bottom:5px}
.mode-option span{display:block;font-size:10px;color:#9197a3}
.form-side{position:sticky;top:24px}
.guidance{font-size:11px;color:#969aa5;line-height:1.85}
.guidance h3{font-size:14px;color:#d5d0cc}
.guidance ul{padding-left:16px;margin-top:0}
.guidance li{margin-bottom:10px}
.guidance .tip{padding:15px;border:1px solid #493c35;border-radius:10px;background:#29231f;color:#c9b1a1;margin-top:20px}
.cover-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-height:255px;overflow:auto;padding:3px;scrollbar-width:thin}
.cover-option{position:relative}
.cover-option input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer;z-index:1}
.cover-option .portrait-media{height:82px;width:100%;object-fit:cover;border-radius:7px;border:2px solid transparent;opacity:.6}
.cover-option:has(input:checked) .portrait-media{border-color:var(--accent);opacity:1}
.cover-option:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}
.form-message{font-size:12px;color:#e5b6a4;margin-top:16px}
.form-message:empty{display:none}
.inline-notice{display:flex;gap:9px;align-items:flex-start;border:1px solid #3d3d49;background:#20212a;border-radius:10px;padding:12px 15px;color:#bcb7c5;font-size:11px;margin-bottom:18px}
.inline-notice .icon{width:17px;height:17px;margin-top:1px;flex-shrink:0}
.error-notice{border-color:#63423b;background:#342422;color:#edc0b3}
.modal{width:min(900px,calc(100vw - 40px));max-height:calc(100dvh - 48px);background:#181a21;border:1px solid #41414b;border-radius:18px;color:var(--text);padding:0;box-shadow:0 40px 120px #0009;overscroll-behavior:contain;scrollbar-width:thin}
.modal::backdrop{background:#05060abf;backdrop-filter:blur(9px)}
.modal.small-modal{width:min(470px,calc(100vw - 32px))}
.modal.medium-modal{width:min(650px,calc(100vw - 32px))}
.modal-close{position:absolute;top:14px;right:14px;border:1px solid #ffffff19;background:#171921b8;color:#d6d1d1;z-index:4;border-radius:50%}
.modal-content{padding:34px}
.modal-content h2{font-size:26px;margin-bottom:12px;padding-right:27px}
.modal-content>p{font-size:12px;color:var(--muted);line-height:1.8}
.preview-layout{display:grid;grid-template-columns:36% 64%;min-height:570px}
.preview-image{position:relative;background:#24222b;min-height:100%;overflow:hidden}
.preview-image .portrait-media{width:100%;height:100%;position:absolute;object-fit:cover;object-position:60% center}
.preview-image::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#14131ae6,transparent 65%)}
.preview-image-caption{position:absolute;bottom:30px;left:25px;right:20px;z-index:1}
.preview-image-caption .eyebrow{font-size:9px}
.preview-image-caption p{font-family:'Prata',Georgia,serif;font-size:22px;margin:10px 0 0;color:#f1d8c8;line-height:1.4}
.preview-content{padding:36px 35px 30px}
.preview-kicker{display:flex;gap:7px;align-items:center;font-size:10px;color:var(--accent);margin-bottom:17px}
.preview-content h2{font-size:30px;margin:0 0 15px;line-height:1.2;padding-right:15px}
.preview-description{font-size:12px;line-height:1.8;color:#aeb0bb}
.tag-list{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:22px}
.tag{font-size:9px;color:#a8a4ae;border:1px solid #3a3640;border-radius:5px;padding:3px 7px}
.preview-info{display:grid;gap:13px;margin:22px 0}
.preview-info strong{font-size:10px;font-weight:550;color:#d5b9a5;display:block;margin-bottom:3px}
.preview-info p{font-size:11px;color:#a7a9b3;line-height:1.7;margin:0}
.preview-greeting{border-left:2px solid #b58d73;padding:3px 0 3px 14px;font-size:11px;color:#c8bcc0;line-height:1.8;margin:22px 0;max-height:100px;overflow:auto}
.preview-start{display:grid;gap:9px}
.preview-start .button{min-height:45px}
.preview-footnote{font-size:9px;color:#7d818e;text-align:center;margin:12px 0 0}
.preview-role{margin:20px 0}
.preview-role summary{font-size:11px;cursor:pointer;color:#bda895;margin-bottom:10px}
.preview-report{margin:16px 0 0;display:flex;justify-content:space-between;font-size:9px;color:#737986}
.preview-report button{font-size:9px;color:#89828b}
.auth-options{display:grid;gap:10px;margin:25px 0 20px}
.auth-options .button{justify-content:flex-start;padding-left:20px}
.auth-logo{font-weight:700;width:24px;font-size:17px;text-align:center}
.auth-small{font-size:10px;color:#888c98;line-height:1.8}
.checkbox-field{display:flex;align-items:flex-start;gap:10px;font-size:11px;color:#b9b7c0;line-height:1.75}
.checkbox-field input{accent-color:var(--accent);margin-top:4px}
.plan-badge{display:inline-flex;border:1px solid #76523c;padding:4px 9px;border-radius:6px;font-size:10px;color:#efc5a8;margin-bottom:17px}
.plan-price{font-size:40px;letter-spacing:-2px;font-weight:650;margin:14px 0}
.plan-price span{font-size:12px;letter-spacing:0;color:#96949f;font-weight:400}
.plan-benefits{list-style:none;padding:0;display:grid;gap:13px;font-size:12px;color:#b9b8c3;margin:22px 0}
.plan-benefits li{display:flex;gap:9px;align-items:center}
.plan-benefits .icon{color:#e9b593;width:16px;height:16px}
.payment-qr{background:white;padding:12px;border-radius:12px;width:210px;height:210px;margin:20px auto;object-fit:contain}
.payment-status{font-size:11px;text-align:center;color:#ccb4a2}
.account-details{border:1px solid var(--line);border-radius:11px;padding:15px;margin:20px 0;font-size:12px}
.account-details p{display:flex;justify-content:space-between;gap:15px;margin:0 0 10px}
.account-details p:last-child{margin:0}
.account-details span{color:#9096a3}
.usage-bar{height:5px;background:#34343d;border-radius:10px;overflow:hidden;margin:14px 0}
.usage-bar span{height:100%;display:block;background:#d0a285;border-radius:10px}
.toast{position:fixed;bottom:25px;left:calc(50% + var(--sidebar)/2);transform:translateX(-50%);background:#eec4a8;color:#281f19;border:1px solid #f7d7be;border-radius:10px;padding:12px 20px;font-size:12px;box-shadow:0 7px 30px #0006;z-index:120;max-width:calc(100vw - 40px);width:max-content}
.chat-mode .topbar{display:none}
.chat-mode .main{padding:0;max-width:none;height:100dvh;min-height:0;display:flex;overflow:hidden}
.chat-layout{display:flex;flex-direction:column;flex:1;min-width:0;height:100%;background:radial-gradient(ellipse at top,#25212a44,transparent 60%)}
.chat-header{height:80px;display:flex;align-items:center;gap:14px;padding:0 28px;border-bottom:1px solid #2b2c34;flex-shrink:0;background:#15171dd9}
.chat-header .portrait-media{width:38px;height:45px;object-fit:cover;border-radius:8px;object-position:center 25%}
.chat-title{min-width:0;flex:1}
.chat-title h1{font-size:15px;margin:0 0 4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.chat-title p{font-size:10px;color:#8e929e;margin:0}
.chat-header-actions{display:flex;gap:5px}
.chat-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:30px max(26px,calc((100% - 770px)/2)) 25px;scrollbar-width:thin;scrollbar-color:#46424a transparent}
.chat-story-intro{text-align:center;margin:0 auto 35px;max-width:500px;padding:16px 0 25px;border-bottom:1px solid #ffffff0b}
.chat-story-intro .portrait-media{width:70px;height:84px;object-fit:cover;object-position:center 25%;border-radius:14px;margin:0 auto 14px;border:1px solid #6b5149}
.chat-story-intro h2{font-size:23px;margin:0 0 9px}
.chat-story-intro p{font-size:11px;color:#9a98a4;line-height:1.8;margin-bottom:11px}
.chat-story-intro .eyebrow{font-size:9px}
.message{margin-bottom:26px;display:flex;gap:12px;align-items:flex-start}
.message-avatar{width:28px;height:32px;object-fit:cover;object-position:center 25%;border-radius:7px;flex-shrink:0;margin-top:1px}
.message-avatar.user-avatar{display:grid;place-items:center;background:#3d302a;color:#dfb99e;font-size:11px;height:28px;border-radius:50%}
.message-main{min-width:0;flex:1}
.message-speaker{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:550;margin:0 0 8px;color:#d9ceca}
.message-speaker span{font-size:8px;color:#9e939f;background:#292630;padding:1px 4px;border-radius:3px;font-weight:400}
.message-text{font-size:13px;line-height:1.95;color:#d4d2d7;white-space:pre-wrap;overflow-wrap:anywhere}
.message-text em{color:#93909f;font-style:italic}
.message-text strong{color:#f1e8df;font-weight:550}
.message.user .message-text{background:#23252e;border:1px solid #30323b;border-radius:0 12px 12px 12px;padding:13px 16px;display:inline-block;color:#e0dde0;max-width:100%}
.message-tools{display:flex;align-items:center;gap:5px;margin-top:6px;opacity:.45}
.message:hover .message-tools,.message:focus-within .message-tools{opacity:1}
.message-tools .icon-button{width:27px;height:27px}
.message-tools .icon{width:13px;height:13px}
.message-tools .is-pinned{color:var(--accent);opacity:1}
.message-tools small{font-size:9px;color:#b7a193}
.message.pending{opacity:.6}
.typing-dots{display:flex;align-items:center;gap:4px;padding:12px 0}
.typing-dots span{width:5px;height:5px;background:#b4a091;border-radius:50%;animation:pulse 1.3s ease-in-out infinite}
.typing-dots span:nth-child(2){animation-delay:.15s}
.typing-dots span:nth-child(3){animation-delay:.3s}
@keyframes pulse{0%,70%,100%{opacity:.3;transform:translateY(0)}
35%{opacity:1;transform:translateY(-3px)}
}
.composer-wrap{flex-shrink:0;padding:12px max(26px,calc((100% - 770px)/2)) 15px;background:linear-gradient(0deg,#101216 85%,#10121600);border-top:1px solid #ffffff05}
.composer{position:relative;border:1px solid #4c4140;border-radius:13px;background:#1d1f27;padding:13px 52px 12px 16px;box-shadow:0 4px 30px #0002}
.composer:focus-within{border-color:#94705a}
.composer textarea{width:100%;max-height:150px;min-height:27px;height:27px;padding:0;resize:none;border:0;outline:none;background:transparent;color:#e9e1de;font-size:12px;line-height:1.8;display:block;scrollbar-width:thin}
.composer textarea::placeholder{color:#797b89}
.composer-send{position:absolute;bottom:8px;right:9px;width:34px;height:34px;border-radius:9px;background:var(--accent);border:0;display:grid;place-items:center;color:#3c2820}
.composer-send:hover{background:var(--accent-hover)}
.composer-send .icon{width:17px;height:17px}
.composer-hints{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:9px;color:#777985;margin-top:9px}
.composer-hints button{font-size:9px;white-space:nowrap}
.composer-error{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#e3b2a1;padding:0 0 10px;line-height:1.6}
.chat-suggestions{display:flex;gap:7px;flex-wrap:wrap;margin:5px 0 15px 40px}
.chat-suggestions button{border:1px solid #4a3b36;background:#2b2423;border-radius:8px;padding:8px 11px;color:#cbb4a4;font-size:10px}
.memory-panel{width:300px;background:#16181f;border-left:1px solid var(--line);display:flex;flex-direction:column;padding:24px;overflow:auto;scrollbar-width:thin}
.memory-header{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:15px}
.memory-header h2{font-size:18px;margin:0}
.memory-panel>p{font-size:11px;color:#9794a2;line-height:1.8}
.memory-panel .field-label{font-size:11px}
.memory-panel textarea{font-size:11px;min-height:160px}
.memory-panel .button{font-size:10px}
.memory-panel .divider{border-top:1px solid var(--line);margin:24px 0}
.pin-item{font-size:10px;line-height:1.8;color:#aba5b3;padding:12px;background:#22212a;border:1px solid #38313c;border-radius:9px;margin-bottom:10px}
.pin-item p{margin:0;white-space:pre-wrap;max-height:130px;overflow:auto}
.pin-item .text-link{font-size:9px;margin-top:9px}
.memory-small{font-size:9px;color:#787784;line-height:1.8}
.chat-back{display:none}
.report-card{border:1px solid var(--line);border-radius:12px;padding:20px;background:#191c22;margin-bottom:15px}
.report-card h3{font-size:16px}
.report-card p{font-size:12px;color:var(--muted)}
.moderation-section{margin-top:32px}
.moderation-section h2{font-size:22px}
.no-script{position:fixed;inset:20px;background:#282129;color:white;padding:30px;z-index:100}
@media(min-width:1500px){.hero{min-height:380px}
.story-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.hero-art{width:41%}
.hero-copy{width:62%}
.hero h1{font-size:58px}
}
@media(max-width:1250px){:root{--sidebar:204px}
.sidebar{padding-left:11px;padding-right:11px}
.main{padding:28px 28px 50px}
.topbar{padding:0 28px}
.hero{padding:32px 30px;min-height:300px}
.hero h1{font-size:43px}
.hero-description{max-width:310px;font-size:11px}
.hero-art{width:45%}
.story-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.intro-bit{font-size:9px}
.intro-bar{gap:18px}
.form-layout{grid-template-columns:minmax(0,1fr) 220px}
.memory-panel{width:270px;padding:20px}
.hero-caption{display:none}
}
@media(max-width:1000px){:root{--sidebar:190px}
.sidebar-brand{padding-left:10px}
.nav-button{padding:11px 10px;font-size:12px;gap:10px}
.sidebar{padding-top:25px}
.plus-card{padding:12px}
.hero h1{font-size:36px}
.hero{padding:28px;min-height:290px}
.hero-copy{width:60%}
.hero-art{width:42%}
.hero-portrait{width:53%;height:72%}
.hero-portrait:nth-child(2){height:78%;transform:rotate(6deg) translate(35%,-5%)}
.hero-portrait:nth-child(3){display:none}
.hero-description{max-width:265px}
.hero .eyebrow{font-size:8px}
.story-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.intro-bar .intro-last{display:none}
.search-wrap{width:290px}
.topbar-right{gap:10px}
.topbar{gap:15px;height:72px}
.topbar-title{display:none}
.main{min-height:calc(100dvh - 72px)}
.form-layout{display:block}
.form-side{position:static}
.guidance{margin-top:20px}
.guidance ul{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}
.memory-panel{position:fixed;right:0;top:0;bottom:0;z-index:35;width:320px;box-shadow:-30px 0 80px #0008}
.chat-header{height:72px;padding:0 21px}
.chat-scroll{padding:25px}
.composer-wrap{padding:10px 25px 16px}
.editor-banner{padding:23px;gap:15px}
.editor-banner h3{font-size:17px}
.editor-banner>.icon{display:none}
}
@media(max-width:760px){:root{--sidebar:0px}
.sidebar{display:none}
.workspace{margin-left:0}
.topbar{height:66px;padding:0 20px;border-bottom:1px solid #24262d;gap:15px}
.topbar-left{flex:1;gap:10px}
.mobile-brand{font-weight:750;letter-spacing:-1px;font-size:21px}
.mobile-brand span{color:var(--accent);font-size:19px;margin-left:2px}
.search-wrap{width:100%;min-width:0}
.topbar-right{gap:9px}
.topbar-right>.age-badge{display:none}
.topbar .button{min-height:34px;font-size:10px;padding:7px 11px;white-space:nowrap}
.search-input{height:36px;font-size:11px;padding-left:34px;padding-right:10px}
.search-wrap>.icon{left:11px;top:10px;width:15px;height:15px}
.search-hint{display:none}
.main{padding:21px 20px 95px;min-height:calc(100dvh - 66px)}
.hero{min-height:305px;padding:28px 25px;border-radius:14px}
.hero-copy{width:64%}
.hero h1{font-size:36px}
.hero .eyebrow{font-size:8px;margin-bottom:15px;letter-spacing:.13em}
.hero-description{font-size:11px;max-width:240px;line-height:1.75;margin-bottom:23px}
.hero-art{width:43%;right:-12px;mask-image:linear-gradient(to right,transparent,#000 12%)}
.hero-portrait{width:63%;height:68%;transform:rotate(-12deg) translate(-25%,-10%)}
.hero-portrait:nth-child(2){height:70%;transform:rotate(8deg) translate(53%,5%)}
.hero-portrait-label{font-size:10px;bottom:18px;left:10px}
.hero-spark{right:24%;bottom:17px;font-size:28px}
.hero .button{min-height:38px;font-size:11px;padding:9px 13px}
.intro-bar{padding:18px 0;gap:20px;margin-bottom:23px}
.intro-bit{font-size:9px;gap:6px}
.intro-bit .icon{width:13px;height:13px}
.intro-bar .intro-bit:nth-child(3){display:none}
.section-heading{margin-bottom:16px}
.section-heading h2{font-size:22px}
.section-heading p{font-size:10px}
.section-heading .text-link{font-size:10px}
.filter-row{margin-right:-20px;padding-right:20px;margin-bottom:6px;gap:7px}
.filter-pill{font-size:10px;padding:7px 11px;min-height:33px}
.story-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.story-card-media{aspect-ratio:3/3.7}
.story-card h3{font-size:12px}
.story-card p{font-size:9px;min-height:30px}
.story-card-content{padding:5px 10px 11px}
.card-genre{left:10px;font-size:8px}
.card-badge{font-size:7px;left:8px;top:8px}
.story-card-footer{font-size:8px}
.mobile-nav{position:fixed;z-index:40;bottom:0;left:0;right:0;border-top:1px solid #343139;background:#14161dee;backdrop-filter:blur(18px);height:calc(64px + env(safe-area-inset-bottom));padding:5px 8px calc(5px + env(safe-area-inset-bottom));display:flex;align-items:stretch;justify-content:space-around}
.mobile-nav button{width:20%;background:none;border:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:#868996;font-size:8px}
.mobile-nav button>.icon{width:19px;height:19px}
.mobile-nav button.active{color:var(--accent)}
.mobile-nav button[data-view=create]>.icon{background:var(--accent);color:#34271f;width:28px;height:28px;padding:5px;border-radius:9px;margin-top:-4px}
.editor-banner{margin-top:28px;flex-wrap:wrap;padding:22px;gap:16px}
.editor-banner .button{margin-left:0}
.editor-banner p{font-size:10px}
.site-footer{gap:12px;font-size:9px;margin-top:28px;padding-top:20px}
.site-footer span:first-child{width:100%}
.page-intro{margin-bottom:25px}
.page-intro h1{font-size:29px}
.page-intro p{font-size:12px}
.page-intro .eyebrow{font-size:9px}
.session-card{gap:13px;padding:12px;flex-wrap:wrap}
.session-card .portrait-media{width:58px;height:74px}
.session-card h3{font-size:15px}
.session-card p{font-size:11px}
.session-card>.button{font-size:10px;padding:8px 10px;min-height:35px}
.session-meta{font-size:9px}
.creation-actions{width:100%;padding-left:71px}
.form-card{padding:21px}
.form-card h2{font-size:18px}
.form-side{margin:23px 0}
.form-actions .button{flex:1}
.guidance ul{display:block}
.cover-picker{grid-template-columns:repeat(6,minmax(0,1fr))}
.cover-option .portrait-media{height:80px}
.modal{width:calc(100vw - 24px);max-height:calc(100dvh - 28px);border-radius:15px}
.preview-layout{grid-template-columns:32% 68%;min-height:520px}
.preview-content{padding:29px 23px 25px}
.preview-content h2{font-size:25px}
.preview-image-caption{left:17px;bottom:24px}
.preview-image-caption p{font-size:18px}
.preview-image-caption .eyebrow{font-size:8px}
.modal-content{padding:28px}
.modal-content h2{font-size:24px}
.toast{bottom:calc(80px + env(safe-area-inset-bottom));left:50%}
.chat-mode .mobile-nav{display:none}
.chat-mode .main{height:100dvh;padding:0}
.chat-back{display:grid}
.chat-header{height:68px;padding:0 12px;gap:10px}
.chat-header .portrait-media{width:31px;height:37px;border-radius:7px}
.chat-title h1{font-size:13px}
.chat-title p{font-size:9px}
.chat-header-actions{gap:0}
.chat-header .icon-button{width:32px;height:34px}
.chat-header .icon-button .icon{width:17px}
.chat-header-actions .new-game-button{display:none}
.chat-scroll{padding:23px 18px 14px}
.chat-story-intro{margin-bottom:24px;padding-top:8px;padding-bottom:20px}
.chat-story-intro h2{font-size:21px}
.chat-story-intro p{font-size:10px}
.message{gap:10px;margin-bottom:23px}
.message-text{font-size:13px;line-height:1.85}
.message-avatar{width:25px;height:29px}
.message-speaker{font-size:10px}
.message.user .message-text{padding:11px 13px}
.message-tools{opacity:.65}
.composer-wrap{padding:10px 14px calc(12px + env(safe-area-inset-bottom))}
.composer{padding-left:13px}
.composer textarea{font-size:13px}
.composer-hints{font-size:8px;gap:8px}
.composer-hints .desktop-hint{display:none}
.composer-hints button{font-size:8px}
.memory-panel{width:min(340px,100vw);padding:23px}
.chat-mode .toast{bottom:110px}
.chat-suggestions{margin-left:35px}
.chat-suggestions button{font-size:9px}
.status-label{font-size:9px}
}
@media(max-width:480px){.topbar{padding:0 16px;gap:12px}
.topbar-left{gap:12px}
.mobile-brand{font-size:20px}
.topbar .search-wrap{max-width:165px}
.main{padding:18px 16px 95px}
.hero{padding:25px 20px;min-height:295px}
.hero-copy{width:71%}
.hero h1{font-size:34px}
.hero-description{font-size:10px;max-width:200px}
.hero-art{width:37%;right:-14px;opacity:.65;mask-image:linear-gradient(to right,transparent,#000 28%)}
.hero-portrait{height:71%;width:108%;transform:rotate(-8deg) translate(19%,3%)}
.hero-portrait:nth-child(2){display:none}
.hero-portrait-label{display:none}
.hero-spark{right:30%;bottom:23px;font-size:25px}
.hero .eyebrow{font-size:7px;white-space:nowrap}
.hero h1 .serif{font-size:1em;white-space:nowrap}
.intro-bar{gap:14px;padding:16px 0}
.intro-bit{font-size:8px;gap:5px}
.intro-bit .icon{width:12px}
.filter-row{margin-right:-16px;padding-right:16px}
.story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.story-card-media{aspect-ratio:3/3.6}
.story-card h3{font-size:13px;line-height:1.35}
.story-card p{font-size:10px;line-height:1.65;min-height:33px}
.story-card-content{padding:4px 12px 12px}
.card-genre{left:12px;font-size:8px}
.card-badge{font-size:7px;padding:3px 5px}
.catalog-tools{font-size:9px}
.segmented button{font-size:9px;padding:5px 7px}
.editor-banner h3{font-size:18px}
.site-footer{font-size:9px}
.preview-layout{display:block;min-height:0}
.preview-image{height:170px;min-height:0}
.preview-image .portrait-media{object-position:center 26%}
.preview-image::after{background:linear-gradient(0deg,#181a21,transparent)}
.preview-image-caption{left:24px;bottom:7px;right:50px}
.preview-image-caption p{display:none}
.preview-image-caption .eyebrow{font-size:8px}
.preview-content{padding:12px 24px 25px}
.preview-kicker{margin-bottom:11px;font-size:9px}
.preview-content h2{font-size:27px;margin-bottom:13px}
.preview-description{font-size:11px}
.preview-info{gap:11px;margin:17px 0}
.preview-greeting{font-size:10px;max-height:100px;margin:18px 0}
.tag-list{margin-bottom:16px}
.preview-role{margin:17px 0}
.preview-start .button{min-height:43px}
.field-row{grid-template-columns:1fr}
.field-row .field{margin-bottom:4px}
.mode-options{gap:9px}
.mode-option{padding:13px}
.mode-option strong{font-size:11px}
.mode-option span{font-size:9px}
.form-card{padding:19px 17px}
.field-label{font-size:11px}
.input{font-size:12px}
.cover-picker{grid-template-columns:repeat(5,minmax(0,1fr))}
.cover-option .portrait-media{height:75px}
.modal-content{padding:29px 24px}
.plan-price{font-size:36px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
.mobile-brand{display:none}
.center{text-align:center}
.mode-option strong .icon{width:15px;height:15px;vertical-align:-3px;margin-right:3px}
.resume-strip{margin:0 0 25px}
.resume-button{width:100%;display:flex;align-items:center;gap:13px;border:1px solid #3f3634;background:linear-gradient(90deg,#282225,#1b1c23);border-radius:11px;padding:13px 16px;text-align:left}
.resume-button .portrait-media{height:42px;width:34px;object-fit:cover;border-radius:6px}
.resume-button small{display:block;font-size:9px;color:#a49b9e}
.resume-button strong{font-size:12px;font-weight:500}
.resume-continue{display:flex;gap:9px;align-items:center;margin-left:auto;font-size:11px;color:#e6bda0}
.resume-continue .icon{width:15px;height:15px}
.chat-blocked-note{border:1px solid #75483f;padding:15px;border-radius:10px;color:#e3b5a8;font-size:12px;margin-top:20px}
@media(max-width:760px){.mobile-brand{display:inline-block}
.resume-continue{font-size:10px}
.resume-button{padding:11px 13px}
.resume-button strong{font-size:11px}
.resume-button small{font-size:8px}
.resume-strip{margin-bottom:22px}
}

/* Long user-created titles must stay inside cards and mobile previews. */
.story-card h3,.session-card h3,.preview-content h2,.report-card h3{overflow-wrap:anywhere}
.resume-button>span:nth-child(2){min-width:0;flex:1}
.resume-button strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resume-continue{flex-shrink:0}
/* Characters and plots are separate catalog pages; their counts come from the API. */
.hero-actions{flex-wrap:wrap;gap:12px 18px}
.hero-other-catalog{display:inline-flex;align-items:center;gap:5px;padding:8px 0;background:transparent;border:0;color:#c3aa9a;font-size:11px;text-align:left}
.hero-other-catalog:hover{color:var(--accent-hover)}
.hero-other-catalog .icon{width:13px;height:13px}
.catalog-type-label{display:inline-flex;align-items:center;gap:6px;color:#bca594;font-size:10px}
.catalog-type-label .icon{width:14px;height:14px}
.section-heading>div{min-width:0}
.sidebar{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#3d3940 transparent}
@media(max-width:760px){.hero-other-catalog{display:none}.catalog-type-label{font-size:9px}.section-heading h2{font-size:21px}.section-heading>div{flex:1}}
@media(max-width:480px){.character-hero h1 .serif,.scenario-hero h1 .serif{font-size:clamp(26px,7.2vw,33px);white-space:normal;line-height:1.22}.character-hero .hero-description,.scenario-hero .hero-description{max-width:210px}}

/* A single media contract supports legacy images and cropped portrait atlases. */
.portrait-media{display:block;max-width:100%;overflow:hidden;flex-shrink:0}
.portrait-placeholder{display:grid;place-items:center;background:radial-gradient(ellipse at 30% 20%,#5c4154,#282537 70%);color:#e9bb9b;font-size:32px}

/* Reading comes first; secondary labels remain quieter than the story itself. */
:root{--chat-font-size:18px}
body{font-size:16px}
.message-text{font-size:var(--chat-font-size);line-height:1.65}
.message-text em{color:#b4aebb}
.message-speaker{font-size:13px}
.composer textarea{font-size:16px;line-height:1.6;min-height:28px}
.input,.search-input{font-size:16px}
.story-card h3{font-size:17px;line-height:1.3}
.story-card p{font-size:13px;line-height:1.6;min-height:42px}
.story-card-footer{font-size:11px;color:#9a9ba8}
.story-card-footer>span:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.button,.button.compact{min-height:44px}
.icon-button{width:44px;height:44px}
.message-tools{flex-wrap:wrap;min-height:44px;gap:2px}
.message-tools .icon-button{width:44px;height:44px}
.message-tools .icon-button .icon{width:19px;height:19px}
.message-tools .reveal-skip{font-size:13px;min-height:44px;padding:6px 10px;margin-left:auto;color:var(--accent);white-space:nowrap}
.reply-revealing .message-text{cursor:pointer}
.reply-revealing .message-text::after{content:'';display:inline-block;width:5px;height:1em;vertical-align:-.1em;background:var(--accent);border-radius:3px;margin-left:4px;animation:reply-caret 1s ease-in-out infinite}
@keyframes reply-caret{50%{opacity:.3}}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.chat-font-options{display:flex;gap:8px;margin:12px 0 20px}
.chat-font-options button{min-width:52px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--raised);font-size:16px}
.chat-font-options button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}

@media(max-width:760px){
 body{font-size:16px}
 .topbar{height:auto;min-height:69px;padding:12px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
 .topbar-left{display:contents}
 .mobile-brand{font-size:24px;line-height:44px}
 .topbar-title{display:none}
 .topbar-right{margin-left:auto;grid-column:2;grid-row:1}
 .topbar .button{min-height:44px;font-size:15px;padding:9px 16px}
 .topbar .search-wrap{position:relative;inset:auto;grid-column:1/-1;grid-row:2;width:100%;max-width:none}
 .topbar .mobile-brand{grid-column:1;grid-row:1;justify-self:start}
 .topbar.has-search{min-height:125px}
 .search-input{height:44px;font-size:16px;padding-left:42px;border-radius:11px}
 .search-wrap>.icon{left:14px;top:12px;width:20px;height:20px}
 .main{padding:16px 16px calc(100px + env(safe-area-inset-bottom));min-height:calc(100dvh - 125px)}
 .hero{min-height:194px;padding:20px 18px;margin-bottom:24px;border-radius:16px}
 .hero-copy{width:78%}
 .hero h1{font-size:clamp(28px,7.7vw,38px);line-height:1.12;margin-bottom:17px}
 .character-hero h1 .serif,.scenario-hero h1 .serif{font-size:clamp(25px,6.8vw,33px);line-height:1.25;white-space:normal}
 .hero .eyebrow{font-size:10px;letter-spacing:.08em;white-space:normal;margin-bottom:10px;max-width:235px;line-height:1.45}
 .hero-description,.intro-bar{display:none}
 .hero .button{min-height:44px;font-size:14px;padding:10px 13px}
 .hero-art{width:34%;right:-5px;opacity:.8;mask-image:linear-gradient(to right,transparent,#000 45%)}
 .hero-portrait{height:91%;width:125%;transform:rotate(-8deg) translate(16%,3%)}
 .hero-portrait:nth-child(2),.hero-portrait:nth-child(3){display:none}
 .hero-spark{font-size:22px;right:18%;bottom:10px}
 .section-heading{gap:8px;margin-bottom:14px;align-items:flex-start}
 .section-heading h2{font-size:23px;line-height:1.18}
 .section-heading p{font-size:14px;line-height:1.55;margin-top:8px}
 #catalog .section-heading p{display:none}
 .section-heading .text-link{font-size:13px;min-height:44px;gap:4px}
 #catalog .section-heading .text-link{font-size:0;width:44px;flex-shrink:0;justify-content:center;border:1px solid var(--line);border-radius:10px}
 #catalog .section-heading .text-link .icon{width:22px;height:22px}
 .filter-row{gap:8px;margin-right:-16px;padding-right:16px;margin-bottom:12px;scrollbar-width:none;padding-bottom:2px}
 .filter-pill{min-height:44px;padding:10px 15px;font-size:14px;border-radius:10px}
 .catalog-tools{font-size:14px;margin:0 0 14px;min-height:24px}
 .catalog-type-label{font-size:12px}
 .story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .story-card{border-radius:13px}
 .story-card-media{aspect-ratio:3/3.65}
 .story-card-content{padding:5px 12px 14px}
 .story-card h3{font-size:17px;line-height:1.3;margin-bottom:8px;overflow-wrap:anywhere}
 .story-card p{font-size:14px;line-height:1.5;min-height:42px;margin-bottom:13px;color:#a8a9b5}
 .card-badge{font-size:10px;line-height:1.4;padding:4px 6px;top:8px;left:8px}
 .card-badge .icon{width:12px;height:12px}
 .card-genre{font-size:12px;left:12px;bottom:9px}
 .story-card-footer{font-size:10px;gap:4px}
 .story-card-footer .icon{display:none}
 .mobile-nav{height:calc(72px + env(safe-area-inset-bottom));padding:5px 4px calc(5px + env(safe-area-inset-bottom))}
 .mobile-nav button{font-size:11px;min-height:56px;gap:5px;min-width:0}
 .mobile-nav button>.icon{width:24px;height:24px}
 .mobile-nav button[data-view=create]>.icon{width:30px;height:30px;padding:4px;margin-top:-6px}
 .resume-strip{margin:0 0 22px}
 .resume-button{padding:11px 12px;gap:10px}
 .resume-button strong{font-size:15px}
 .resume-button small{font-size:12px}
 .resume-continue{font-size:13px;gap:5px}
 .editor-banner h3{font-size:23px;line-height:1.25}
 .editor-banner p,.page-intro p,.empty-state p{font-size:16px;line-height:1.65}
 .editor-banner .button,.button,.button.compact{font-size:15px;min-height:44px}
 .text-link{font-size:14px;min-height:44px}
 .site-footer{font-size:12px;gap:8px 16px;line-height:1.6}
 .site-footer a{min-height:44px;display:inline-flex;align-items:center}
 .input,.memory-panel textarea,.composer textarea{font-size:16px}
 .input{min-height:48px;padding:12px}
 .field-label{font-size:16px;line-height:1.45}
 .field-note,.form-card>.muted,.mode-option span,.guidance,.form-message{font-size:14px;line-height:1.6}
 .form-card h2{font-size:23px;line-height:1.2}
 .mode-options{grid-template-columns:1fr}
 .mode-option{padding:16px}
 .mode-option strong{font-size:17px}
 .checkbox-field{font-size:14px;line-height:1.6;gap:12px}
 .checkbox-field input{width:22px;height:22px;flex-shrink:0;margin-top:2px}
 .checkbox-field .text-link{min-height:0;font-size:inherit}
 .cover-picker{grid-template-columns:repeat(4,minmax(0,1fr));max-height:330px;overflow:auto;padding:4px}
 .cover-option .portrait-media{height:auto;aspect-ratio:3/4}
 .inline-notice{font-size:14px;line-height:1.6}
 .inline-notice .text-link{min-height:0;font-size:inherit}
 .session-card{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:start;gap:12px;padding:12px}
 .session-card>.portrait-media{grid-column:1;grid-row:1;width:58px;height:74px}
 .session-card-main{grid-column:2;grid-row:1;width:100%;min-width:0}
 .session-card-actions{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px;width:100%}
 .session-card-actions>.button{min-width:0;min-height:44px;width:100%;font-size:15px}
 .session-card-actions>.icon-button{width:44px;height:44px;border-color:var(--line)}
 .session-card>.creation-actions{grid-column:1/-1;width:100%;justify-content:flex-start;flex-wrap:wrap}
 .session-card h3{font-size:18px;line-height:1.3;word-break:normal;overflow-wrap:anywhere}
 .session-card .session-card-main>p{-webkit-line-clamp:2;overflow-wrap:anywhere}
 .session-meta>span{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .session-card p{font-size:14px;line-height:1.5}
 .session-meta{font-size:12px;gap:5px 10px}
 .session-card>.button{min-height:44px;font-size:14px}
 .status-label{font-size:12px}
 .preview-kicker{font-size:12px;line-height:1.6;flex-wrap:wrap}
 .preview-description,.preview-info p{font-size:16px;line-height:1.65}
 .preview-info strong,.preview-role summary{font-size:14px;line-height:1.5}
 .preview-role summary{min-height:44px;padding:8px 0}
 .preview-greeting{font-size:16px;line-height:1.65;max-height:150px}
 .preview-footnote,.preview-report,.preview-report button{font-size:12px;line-height:1.5}
 .preview-report{align-items:center}
 .tag{font-size:12px;padding:4px 7px}
 .preview-start .button{min-height:48px;font-size:16px}
 .preview-content{padding:14px 20px 24px}
 .modal-content>p,.plan-benefits,.account-details{font-size:16px;line-height:1.6}
 .modal-content h2{font-size:28px;line-height:1.2}
 .auth-small,.plan-price span,.payment-status{font-size:14px;line-height:1.6}
 .plan-badge{font-size:12px}
 .small,.memory-small{font-size:13px;line-height:1.65}
 .modal-close{width:44px;height:44px;right:8px;top:8px;background:#17191fd9}
 .chat-mode{overflow:hidden}
 .chat-mode .workspace{position:fixed;top:var(--chat-viewport-top,0px);left:0;right:0;height:var(--chat-viewport-height,100dvh)}
 .chat-mode .main{height:100%;min-height:0;padding:0}
 .chat-header{height:70px;padding:0 10px;gap:7px}
 .chat-header .portrait-media{width:35px;height:42px}
 .chat-header .icon-button{width:44px;height:44px}
 .chat-header .icon-button .icon{width:22px;height:22px}
 .chat-title h1{font-size:17px;line-height:1.3;margin-bottom:3px}
 .chat-title p{font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .chat-scroll{padding:22px 14px 14px;overflow-anchor:none;-webkit-overflow-scrolling:touch}
 .chat-story-intro h2{font-size:25px;line-height:1.2}
 .chat-story-intro p{font-size:15px;line-height:1.65}
 .chat-story-intro .eyebrow{font-size:12px}
 .chat-story-intro .age-badge{font-size:11px;white-space:normal;display:inline-block}
 .message{gap:9px;margin-bottom:22px}
 .message-avatar{width:28px;height:34px}
 .message-speaker{font-size:14px;line-height:1.5;margin-bottom:7px}
 .message-speaker span{font-size:10px}
 .message-text{font-size:var(--chat-font-size);line-height:1.65}
 .message.user .message-text{padding:12px}
 .message-tools{opacity:1;margin-top:7px}
 .message-tools small{font-size:12px}
 .message-tools .reveal-skip{font-size:13px}
 .composer-wrap{padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#101216}
 .composer{padding:13px 58px 13px 14px;border-radius:16px;min-height:56px}
 .composer textarea{font-size:16px;line-height:1.6;min-height:28px;max-height:130px}
 .composer-send{width:44px;height:44px;bottom:6px;right:6px;border-radius:12px}
 .composer-send .icon{width:22px;height:22px}
 .composer-hints{font-size:10px;gap:4px;margin-top:3px;min-height:28px}
 .composer-hints button{font-size:11px;min-height:30px;line-height:1.4}
 .composer-error{font-size:14px;line-height:1.5;align-items:flex-start}
 .composer-error .text-link{font-size:14px;min-height:36px;flex-shrink:0}
 .chat-suggestions{margin-left:37px;gap:8px}
 .chat-suggestions button{font-size:14px;min-height:44px;padding:10px 12px}
 .memory-panel{width:min(380px,100vw);padding:22px;top:var(--chat-viewport-top,0px);height:var(--chat-viewport-height,100dvh)}
 .memory-panel>p,.memory-panel .field-label{font-size:15px;line-height:1.6}
 .memory-panel .button{font-size:15px}
 .pin-item{font-size:14px;line-height:1.65}
 .pin-item .text-link{font-size:14px}
 .toast{font-size:14px;line-height:1.5;bottom:calc(90px + env(safe-area-inset-bottom))}
 .chat-mode .toast{bottom:calc(118px + env(safe-area-inset-bottom))}
}
@media(max-width:359px){
 .filter-row{margin-right:-12px;padding-right:12px}
 .main{padding-left:12px;padding-right:12px}
 .hero{padding:18px 15px;min-height:188px}
 .hero-copy{width:88%}
 .hero .eyebrow{max-width:205px;font-size:9px}
 .hero h1{font-size:28px}
 .character-hero h1 .serif,.scenario-hero h1 .serif{font-size:25px}
 .story-grid{gap:9px}
 .story-card-content{padding-left:10px;padding-right:10px}
 .story-card h3{font-size:17px}
 .card-badge{font-size:9px}
 .card-genre{font-size:11px;left:10px}
 .card-badge .icon{display:none}
 .story-card-footer>span:last-child{display:none}
 .section-heading h2{font-size:21px}
 .chat-header{gap:5px;padding:0 6px}
 .chat-header>.portrait-media{display:none}
 .chat-title h1{font-size:16px}
 .chat-scroll{padding-left:12px;padding-right:12px}
 .message-avatar{width:24px;height:29px}
 .message{gap:8px}
 .message-tools{gap:0}
 .message-tools .reveal-skip{margin-left:0;padding-left:0}
 .composer-hints>span{font-size:9px}
 .composer-hints button{font-size:10px}
}
@media(max-width:760px) and (max-height:480px){
 .chat-header{height:56px}
 .chat-header .portrait-media{height:36px;width:30px}
 .chat-header .icon-button{height:44px}
 .composer-wrap{padding-top:6px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}
 .composer{min-height:52px;padding-top:11px;padding-bottom:11px}
 .composer-hints{margin-top:0;min-height:23px}
 .composer-hints button{min-height:23px}
 .composer textarea{max-height:90px}
}

/* Keep discovery close to the thumb for returning mobile players. */
@media(max-width:760px){body.has-sessions .hero{display:none}.resume-strip{margin-top:0}}
@media(min-width:761px) and (max-height:780px){.sidebar-brand{padding-bottom:18px}.sidebar-nav{gap:3px}.sidebar-separator{margin-top:14px;margin-bottom:12px}.sidebar-bottom{padding-top:12px}.plus-card p{display:none}.plus-card .plus-link{margin-top:8px}.recent-list{flex-shrink:0;min-height:52px;max-height:120px}}

.preview-context{margin:18px 0}.preview-context>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px}.preview-context>summary::before{content:"+";font-size:20px}.preview-context[open]>summary::before{content:"−"}.preview-context .preview-info{margin-top:10px}.preview-start{margin-top:20px}

/* One catalogue grid: editorial picks or genuine seven-day activity, never duplicate rows. */
.catalog-source-row{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:0 0 14px;min-width:0}
.catalog-source-tabs{display:flex;align-items:center;gap:4px;min-width:0;border-bottom:1px solid var(--line)}
.catalog-source-tabs button{min-height:44px;padding:10px 14px;background:none;border:0;border-bottom:2px solid transparent;font-size:14px;font-weight:550;color:#9297a5;white-space:nowrap}
.catalog-source-tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}
.catalog-source-tabs button:hover{color:var(--text)}
.catalog-random{color:var(--accent);border-color:var(--line)}
.catalog-tools{flex-wrap:wrap;gap:5px 12px}
#catalog-picks-note{line-height:1.5}
@media(max-width:760px){
 #catalog>.section-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .catalog-source-row{gap:8px;margin-bottom:12px}
 .catalog-source-tabs{flex:1;gap:2px}
 .catalog-source-tabs button{font-size:14px;padding:10px 9px}
 .catalog-random{width:44px;height:44px}
 #catalog-picks-note{font-size:12px}
}
@media(max-width:359px){.catalog-source-tabs button{font-size:13px;padding-left:8px;padding-right:8px}}

/* The Fazbear console reads persisted server state; the composer keeps its draft. */
.scene-console{position:relative;min-width:0;margin-bottom:8px;color:var(--text)}
.scene-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 10px;padding:7px 11px;border:1px solid var(--line);border-radius:14px;background:#171a20}
.scene-metrics{display:flex;align-items:center;gap:18px;min-width:0;font-size:16px;font-variant-numeric:tabular-nums}
.scene-metrics>span{display:flex;align-items:center;gap:7px;white-space:nowrap}
.scene-metrics .icon{width:17px;height:17px;color:var(--muted)}
.scene-power>span{font-size:12px;color:var(--muted)}
.scene-low-power strong{color:#ffb39c}
.scene-toggle{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 9px;background:transparent;border:0;border-radius:9px;color:var(--accent);font-size:15px}
.scene-toggle:hover{background:var(--surface-hover,#252931)}
.scene-toggle .icon{width:15px;height:15px;transform:rotate(-90deg)}
.scene-toggle[aria-expanded=true] .icon{transform:rotate(90deg)}
.scene-status{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:3px 14px;margin-top:-2px;padding-bottom:3px;font-size:12px;line-height:1.45;color:var(--muted)}
.scene-outcome{color:var(--accent);font-weight:500}
.scene-controls{position:absolute;z-index:20;left:0;right:0;bottom:calc(100% + 8px);max-height:min(420px,max(100px,calc(var(--chat-viewport-height,100dvh) - 245px)));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px 14px 14px;border:1px solid #3b414b;border-radius:18px;background:#1b1f26;box-shadow:0 12px 35px #0008}
.scene-controls[hidden]{display:none}
.scene-controls-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.scene-controls-heading>strong{font-size:17px}
.scene-controls-heading .icon-button{width:44px;height:44px}
.scene-explanation{margin:2px 0 12px;color:#bfc4ce;font-size:14px;line-height:1.5}
.scene-duration{display:flex;gap:6px;align-items:center;margin-bottom:12px}
.scene-duration>span{margin-right:auto;color:var(--muted);font-size:13px}
.scene-duration button{min-width:54px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:9px;background:#232833;color:var(--text);font-size:15px}
.scene-duration button[aria-pressed=true]{border-color:var(--accent);background:#42342e;color:var(--accent)}
.scene-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.scene-actions button{min-width:0;min-height:46px;padding:10px 8px;border:1px solid #3c424d;border-radius:10px;background:#272c36;color:var(--text);font-size:15px;line-height:1.3}
.scene-actions button:hover:not(:disabled){border-color:var(--accent);background:#32313a}
.scene-actions button:last-child{grid-column:1/-1}
.scene-actions button:disabled,.scene-duration button:disabled{opacity:.4;cursor:default}
.scene-footnote{margin:12px 0 0;font-size:12px;line-height:1.55;color:var(--muted)}
.scene-ending{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.scene-ending p,.scene-unavailable{font-size:13px;line-height:1.5;color:var(--muted)}
.scene-unavailable{margin:0;padding:8px 0}
@media(max-width:760px){
 .scene-summary{padding:2px 9px 6px;gap:0 5px}
 .scene-metrics{gap:14px}
 .scene-toggle{padding-left:6px;padding-right:6px}
 .scene-status{font-size:12px;gap:2px 12px}
 .scene-controls{padding:8px 11px 12px}
 .scene-actions button,.scene-duration button{font-size:16px}
}
@media(max-width:359px){.scene-metrics{gap:10px}.scene-power>span{font-size:11px}.scene-toggle{font-size:14px;padding-left:3px;padding-right:3px}.scene-status{font-size:11px}.scene-duration{gap:4px}.scene-duration button{min-width:49px}.scene-duration>span{font-size:12px}}
/* Put duration and the first action row above the fold when a keyboard reduces the viewport. */
@media(max-width:760px) and (max-height:480px){
 .scene-console{margin-bottom:5px}.scene-summary{padding-top:0;padding-bottom:3px}.scene-status{line-height:1.3}
 .scene-controls{max-height:max(100px,calc(var(--chat-viewport-height,100dvh) - 220px));padding-top:8px}
 .scene-controls-heading,.scene-explanation{display:none}
 .scene-duration{margin-bottom:8px}
}
@media(max-width:760px){
 html.chat-viewport-short .scene-controls{max-height:max(100px,calc(var(--chat-viewport-height,100dvh) - 220px));padding-top:8px}
 html.chat-viewport-short .scene-controls-heading,html.chat-viewport-short .scene-explanation{display:none}
 html.chat-viewport-short .scene-duration{margin-bottom:8px}
}

/* A branch is a separate chat; the source stays one visible action away. */
.branch-origin{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 12px;flex-shrink:0;padding:0 max(18px,calc((100% - 770px)/2));border-bottom:1px solid #343139;background:#211e23;font-size:13px;line-height:1.4}
.branch-origin>span,.branch-origin>button,.session-branch-label{display:inline-flex;align-items:center;gap:7px;min-width:0}
.branch-origin>span{color:#c1b2a8}
.branch-origin .icon,.session-branch-label .icon{width:16px;height:16px;flex-shrink:0}
.branch-origin>button{min-height:44px;border:0;background:none;padding:7px 0;color:var(--accent);font-size:13px;text-align:left}
.branch-origin>button:hover{text-decoration:underline}
.session-meta .session-branch-label{color:var(--accent)}
.message-action-dialog .branch-excerpt{margin:16px 0;padding:10px 13px;border-left:2px solid #776052;border-radius:0 8px 8px 0;background:#111318;color:#c8c4c5;font-size:14px;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.message-action-dialog>p{font-size:15px;line-height:1.55;margin:12px 0}
.message-action-dialog>p.eyebrow{font-size:12px;margin-top:0}
.message-action-dialog .branch-quota-note{color:#d7c5b7}
.branch-confirm{white-space:normal;line-height:1.4;min-height:48px;margin-top:8px;text-align:center}
.branch-confirm .icon{flex-shrink:0}
.message-action-dialog .form-message{font-size:14px;line-height:1.5;margin:12px 0;overflow-wrap:anywhere}
.message-report-link{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;border:0;background:none;margin-top:12px;padding:8px 0;color:var(--muted);font-size:13px;line-height:1.4}
.message-report-link .icon{width:17px;height:17px;flex-shrink:0}
.message-report-link:hover{color:var(--text)}
@media(max-width:760px){
 .branch-origin{padding:0 12px;gap:0 7px;font-size:12px}
 .branch-origin>button{font-size:13px}
 .message-action-dialog{padding:28px 22px 18px}
 .message-action-dialog h2{font-size:26px;line-height:1.2}
 .message-action-dialog>p{font-size:15px;line-height:1.55}
 .message-action-dialog .branch-excerpt{font-size:14px}
}
@media(max-width:359px){
 .branch-origin{padding:2px 10px;gap:0 6px;font-size:11px}
 .branch-origin>span{gap:4px}.branch-origin>button{font-size:12px;gap:4px}
 .message-action-dialog{padding:26px 18px 16px}
 .message-action-dialog h2{font-size:24px}
}

/* Public story collections keep their supplied order and an explicit search scope. */
.collection-entry{display:flex;align-items:center;gap:15px;min-width:0;min-height:86px;margin:0 0 22px;padding:15px 20px;border:1px solid #776052;border-radius:15px;background:linear-gradient(115deg,#30262a,#1d2029 75%);color:var(--text);text-decoration:none}
.collection-entry:hover{border-color:var(--accent);background:linear-gradient(115deg,#3b2c30,#252831 75%)}
.collection-entry:focus-visible,.collection-back:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.collection-entry-icon{display:grid;place-items:center;width:43px;height:43px;flex-shrink:0;border-radius:12px;background:#ffffff08;color:var(--accent)}
.collection-entry-icon .icon{width:25px;height:25px}
.collection-entry-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.collection-entry-copy small{font-size:12px;line-height:1.4;color:#c0aea7}
.collection-entry-copy strong{font-size:22px;line-height:1.25;overflow-wrap:anywhere}
.collection-entry-count{display:inline-flex;align-items:center;justify-content:flex-end;gap:12px;flex-shrink:0;font-size:14px;line-height:1.4;color:var(--accent)}
.collection-entry-count .icon{width:20px;height:20px;flex-shrink:0}
.collection-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:4px 0;margin-bottom:15px;color:var(--accent);font-size:15px;line-height:1.4;text-decoration:none}
.collection-back:hover{text-decoration:underline}.collection-back .icon{width:20px;height:20px}
.collection-heading{max-width:760px;margin-bottom:18px}
.collection-heading .eyebrow{margin:0 0 9px;font-size:12px}
.collection-heading h1{margin:0 0 12px;font-size:38px;line-height:1.15;overflow-wrap:anywhere}
.collection-heading>p:not(.eyebrow){margin:0;color:#c0c1ca;font-size:17px;line-height:1.6}
.collection-scope-note,.collection-availability{font-size:14px;line-height:1.55;color:var(--muted);margin:0 0 15px;max-width:760px}
.collection-availability{color:#d8bba4}
.collection-tools{gap:5px 14px;min-height:44px}.collection-tools #catalog-count{color:var(--text)}
.collection-tools .text-link{margin-left:auto;font-size:14px;min-height:44px;white-space:normal;text-align:right}
.collection-tools .text-link[hidden]{display:none}
.collection-empty{grid-column:1/-1;min-width:0}.collection-empty .button{white-space:normal}
.collection-unavailable>.button{margin-bottom:20px}
@media(max-width:760px){
 .collection-entry{min-height:82px;margin-bottom:18px;padding:13px 14px;gap:11px;border-radius:13px}
 .collection-entry-icon{width:36px;height:40px}.collection-entry-icon .icon{width:24px;height:24px}
 .collection-entry-copy small{font-size:11px}.collection-entry-copy strong{font-size:21px}
 .collection-entry-count{font-size:13px;gap:7px}.collection-entry-count .icon{width:18px;height:18px}
 .collection-back{margin-bottom:6px;font-size:15px}
 .collection-heading{margin-bottom:10px}.collection-heading h1{font-size:32px;margin-bottom:10px}
 .collection-heading .eyebrow{font-size:11px;letter-spacing:.05em}
 .collection-heading>p:not(.eyebrow){font-size:16px;line-height:1.5}
 .collection-scope-note{display:none}
 .collection-availability{font-size:13px;line-height:1.5;margin-bottom:13px}
 .collection-tools .catalog-type-label{display:none}
 .collection-tools .text-link{font-size:13px}
}
@media(max-width:359px){
 .collection-entry{padding:12px;gap:8px}.collection-entry-icon{width:28px}.collection-entry-copy small{font-size:10px}
 .collection-entry-copy strong{font-size:20px}.collection-entry-count{font-size:12px;gap:5px}.collection-entry-count .icon{width:16px;height:16px}
 .collection-heading h1{font-size:30px}
}

/* Server-confirmed history preparation is progress, not an additional reply. */
.memory-preparing{max-width:320px;min-width:0;padding:5px 0 12px}
.memory-preparing p{font-size:14px;line-height:1.5;color:var(--muted);margin:0 0 10px}
.memory-preparing progress{display:block;width:100%;height:6px;appearance:none;-webkit-appearance:none;border:0;border-radius:10px;overflow:hidden;background:#35333a;accent-color:var(--accent)}
.memory-preparing progress::-webkit-progress-bar{background:#35333a;border-radius:10px}
.memory-preparing progress::-webkit-progress-value{background:var(--accent);border-radius:10px}
.memory-preparing progress::-moz-progress-bar{background:var(--accent);border-radius:10px}
