/* Talk-inspired theme. Shared by the reading, writing and owner screens. */
:root{--ink:#27282c;--muted:#71747b;--line:#e8eaee;--yellow:#fee500;--chat:#b8ccdc;--paper:#fff;--radius:18px}
html{background:#f7f8fa;color:var(--ink);font-family:system,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body{background:transparent}
button{background:var(--yellow);color:#29251c;border-radius:11px;font-weight:700;box-shadow:none;min-height:44px}
button:hover{filter:brightness(.97)}
button.secondary{background:#f2f3f5;color:var(--ink)}
button.ghost{background:#fff;color:#535761;border:1px solid #e0e3e8}
button:disabled{background:#eceef1;color:#9a9da4;opacity:1}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #698ba9;outline-offset:3px}
a{color:#485e73}
input,textarea{border-color:#dfe2e7;border-radius:11px;background:#fff;color:var(--ink);font-size:16px}
input:focus,textarea:focus{border-color:#9caec0;outline:2px solid #c6d4e255}
textarea:disabled{background:#f5f6f8;color:#898e97}
small,.muted,.note,.intro p,.footer,.install-row,.status-mini{color:var(--muted)}
.brand{font-family:inherit;font-size:23px;letter-spacing:-1.2px;font-weight:800;display:flex;align-items:center;gap:9px}
.brand:before{content:'';display:inline-block;width:27px;height:23px;background:var(--yellow);border-radius:9px;clip-path:polygon(0 0,100% 0,100% 86%,35% 86%,16% 100%,18% 86%,0 86%)}
.brand span{font-family:inherit;color:#7e8187;background:#f0f1f3;border-radius:7px;font-size:11px;padding:3px 6px;margin:0;letter-spacing:0}
.topbar{background:#fffffff5;border-color:var(--line);padding-top:calc(16px + env(safe-area-inset-top));padding-bottom:16px;backdrop-filter:blur(14px)}
.topbar .ghost{border:0;background:#f5f6f8;color:#676b73}
.status-mini{font-size:11px;font-weight:500}
.shell{max-width:1100px;padding-top:32px}
.intro{margin-bottom:24px}.intro h1{font-size:29px;letter-spacing:-1.25px;line-height:1.4}
.eyebrow{color:#9298a0;font-size:10px;letter-spacing:1.6px}
.badge{border:1px solid #e4e7eb;background:#fff;color:#5c6571;padding:7px 11px;font-size:11px}
.dot{background:#6d9d86}
.grid{grid-template-columns:minmax(0,1fr) 264px;gap:20px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 4px 20px #26334604}
.card-head{border-color:#ffffff60;margin-bottom:16px;padding-bottom:16px}
.card-head h2{font-size:16px;font-weight:750}
.story-card{background:var(--chat);border-color:#b8cbdc;padding:24px}
.story-card .card-head .ghost,.story-card .toolbar .ghost{background:#ffffffb5;border:1px solid #ffffff50;color:#4c5b69}
.story-card .toolbar{gap:6px;margin-bottom:16px}.toolbar button{font-size:12px;padding:9px 12px;min-height:36px}
.story-settings{background:#ffffff70;border:1px solid #ffffff50;color:#536273;border-radius:10px;font-size:12px;margin-bottom:24px}
.story{font-family:inherit;font-size:16px;line-height:1.95;letter-spacing:-.15px;padding:3px 2px}
.story-entry{position:relative;background:#fff;border-radius:3px 15px 15px 15px;padding:16px 18px;margin:0 40px 18px 7px;box-shadow:0 2px 4px #344c6210}
.story-entry:before{content:'';position:absolute;left:-7px;top:0;border-top:9px solid #fff;border-left:9px solid transparent}
.story-entry.mine{background:var(--yellow);border-radius:15px 3px 15px 15px;margin-right:7px;margin-left:40px}
.story-entry.mine:before{left:auto;right:-7px;border-left:0;border-right:9px solid transparent;border-top-color:var(--yellow)}
.story-footer{color:#5f7181;border-color:#ffffff60;font-size:11px}
.empty{color:#5f7384}.empty-symbol{color:#718a9f}.empty p{font-size:13px}
.side{gap:16px}.side .card{padding:20px}.side h3{font-size:14px}
.turn-list{gap:5px;margin:16px 0}.turn-list li{padding:10px 9px;border:1px solid transparent}
.turn-list li.current{background:#fffbe0;border-color:#f7eb9b}
.avatar{width:34px;height:34px;border:0;border-radius:12px;background:#eef1f5;color:#718294;font-weight:700}
.current .avatar{background:var(--yellow);border:0;color:#413b16}.person{font-size:13px}.turn-tag{color:#8a752a;font-size:10px}
.note{border-color:var(--line);font-size:11px}.rules .eyebrow{margin-bottom:10px}.rules p{font-size:12px}
.compose{margin-top:20px}.compose-head{margin-bottom:17px}.compose-head h2{font-size:17px}
.state-line{background:#f3f5f7;color:#626d79;border-radius:10px;font-size:12px}
.state-line.alert{background:#fff6dc;color:#886d30}
.setup-box{border-color:#e2e6eb;border-radius:12px;padding:17px;background:#fafbfc}
.setup-box legend{color:#5c6571;font-size:12px}.setup-box label{font-size:12px;color:#66707b}
.draft-input{position:relative;border-radius:12px;background:#fff}
.draft-input textarea{display:block;min-height:130px;padding:15px 16px 48px;resize:vertical;line-height:1.85}
.draft-counter{position:absolute;right:12px;bottom:11px;display:grid;place-items:center;width:72px;height:29px;flex:none;white-space:nowrap;text-align:center;font-family:inherit;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1;letter-spacing:0;color:#69727c;background:#f1f3f6;border:1px solid #e7eaee;border-radius:8px;pointer-events:none}
.draft-counter.bad{color:#bc3d43;background:#fff0f0;border-color:#f4cdd0}
.count-row{margin-top:9px;color:#9a9fa7;font-size:11px;min-height:18px}
.compose-actions{gap:8px;margin-top:15px}.compose-actions button{font-size:13px;min-height:44px;padding:11px 15px}
.compose>.muted{font-size:11px;color:#959ba4;margin-bottom:0}
.error{color:#bd4047;font-size:12px}.error:empty{margin:0}
.ai-preview:not(:empty){background:#fffde9;border:1px solid #f2e79d;border-radius:12px;padding:18px}
.ai-preview p{font-family:inherit;font-size:15px;line-height:1.95}
.original-text{font-size:12px;color:#7c8792;border-color:#e3e6eb}
.history-item{background:#ffffffdf;border:0;border-radius:12px;padding:18px;margin-bottom:14px}
.history-meta{color:#79848f;font-size:11px}.history-text{font-size:16px;line-height:1.95}
.reader-page[data-loaded=false]{background:linear-gradient(180deg,#ffffff16,transparent);border-color:#ffffff44}
.reader-status{color:#526b80}.reader-status button{background:#ffffffa0}
.toolbar button.selected,.selected{outline:2px solid #899faf;outline-offset:1px;background:#fff;color:#334c62}
.jump-form{min-width:0}.jump-form input{background:#ffffffc4;border-color:#ffffff50;width:98px;font-size:12px;min-height:36px}.jump-form button{min-height:36px}
.login-layout{background:#fff}.login-art{background:var(--yellow);color:#302d26}
.login-art .eyebrow{color:#74692a}.login-art h1{font-family:inherit;font-size:44px;line-height:1.45;font-weight:750;letter-spacing:-2px}
.login-art p{color:#827532}.login-art:before,.login-art:after{border-color:#6c601815}
.art-numbers span{font-family:inherit;border-color:#b6a62f;color:#6a601f}.art-numbers span:first-child{background:#3b3622;color:var(--yellow);border-color:#3b3622}
.login-box .brand{margin-bottom:45px}.login-box .subtitle,.login-box .footnote{color:#91969e}
.login-box .primary{background:var(--yellow);color:#2e291e}.login-links button{color:#737c88}
.boot{font-family:inherit;font-weight:750;color:#343638}.boot span{font-weight:400;color:#8b9199}
.toast{background:#363b43;color:#fff;border-radius:12px;font-size:13px}
.privacy-cover{background:#f7f8fa}.update{background:#fffbe7;border-color:#f4e8a6;color:#766831}
.old-draft{background:#fff6e5}.footer{letter-spacing:0;color:#a0a5ac}.install-row button{color:#788490}
.works-dialog{background:#fff;color:var(--ink);border-color:#e2e5e9}.work-item,.story-admin{border-color:var(--line)}
.scene-thumb{background:#fff;border-color:#fff}.image-dialog{background:#202831;border-color:#3a4652}.image-close{background:#fff;color:#343b43}
body.has-scene:before{background:#16212f99}body.has-scene .card{background:#fffffff5}body.has-scene .story-card{background:#b8ccdcf0}
body.has-scene .intro,body.has-scene .footer,body.has-scene .install-row{color:#fff}body.has-scene .intro p,body.has-scene .intro .eyebrow{color:#e5edf4}
body.has-scene .shell>button.ghost,body.has-scene .install-row button{background:#fff;color:#535f6c}
@media(min-width:761px){.side{position:sticky;top:100px}}
@media(max-width:760px){
 .topbar{padding-top:calc(13px + env(safe-area-inset-top));padding-bottom:13px;gap:9px}.brand{font-size:20px;gap:6px}.brand:before{width:23px;height:20px}.brand span{font-size:10px;padding:2px 5px}
 .topbar .status-mini{font-size:9px;line-height:1.6}.topbar button{font-size:11px;padding:7px 9px}
 .shell{padding:23px 13px 75px}.intro{gap:10px;margin-bottom:18px}.intro h1{font-size:23px}.intro p{font-size:12px}.intro .eyebrow{font-size:9px}
 .grid{grid-template-columns:minmax(0,1fr);gap:16px}.side{grid-row:1}.side .card{padding:15px}.side h3{font-size:12px}.turn-list{margin:11px 0 0;gap:4px}.turn-list li{padding:9px 2px}.turn-list .avatar{width:29px;height:29px;border-radius:10px}.turn-list .person{font-size:11px}.turn-list .turn-tag{font-size:9px}
 .side .note{font-size:10px;margin-top:10px;padding-top:10px}.card{padding:18px 15px;border-radius:15px}.story-card{padding:18px 13px}.story{font-size:15px}.story-entry{padding:14px;margin-right:19px}.story-entry.mine{margin-left:19px}
 .card-head h2{font-size:15px}.card-head button{font-size:11px;padding:7px 9px;min-height:34px}.toolbar button{font-size:11px;padding:8px 9px}.jump-form{flex-wrap:wrap}.jump-form input{width:86px}.jump-form button{font-size:11px}
 .compose-head h2{font-size:16px}.draft-input textarea{font-size:16px}.draft-counter{width:72px;font-size:13px}.compose-actions button{width:auto;flex:1 1 140px;font-size:12px}
 .login-art{min-height:240px;padding:32px 27px}.login-art h1{font-size:31px}.login-panel{padding:32px 26px 50px}.login-box .brand{margin-bottom:27px}
 .history-item{padding:15px}.history-text{font-size:15px}.story-footer{font-size:10px}.scene-thumb{width:48px;height:36px}
}
@media(max-width:360px){.topbar .brand span{display:none}.topbar .status-mini{font-size:8px}.intro h1{font-size:21px}}
