:root{color:#2a201a;background:#f4eee2;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang TC,Noto Sans TC,Microsoft JhengHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;font-optical-sizing:auto;-webkit-font-smoothing:antialiased;--screen-width: 760px;--screen-gutter: 14px;--panel-shadow: 0 12px 32px rgba(78, 52, 32, .1);--safe-bottom: max(14px, env(safe-area-inset-bottom));color-scheme:light;--bg: #f4ead8;--panel: #fbf4e8;--panel-2: #eadcc6;--panel-3: #e0d0b6;--text: #35291f;--body: #4a3c30;--muted: #76695d;--subtle: #8d7f71;--line: rgba(53, 41, 31, .13);--accent: #348f75;--accent-ink: #ffffff;--accent-soft: rgba(52, 143, 117, .13);--page-bg: radial-gradient(circle at top, rgba(255, 250, 242, .82), transparent 30%), linear-gradient(180deg, #f7efe0 0%, #f1e5d4 100%)}:root[data-theme=light]{color-scheme:light;background:#f7f7f8;--bg: #f7f7f8;--panel: #ffffff;--panel-2: #eceef0;--panel-3: #e1e4e8;--text: #202124;--body: #3a3e44;--muted: #656970;--subtle: #80848b;--line: rgba(25, 28, 32, .11);--accent: #2d9d80;--accent-ink: #ffffff;--accent-soft: rgba(45, 157, 128, .12);--page-bg: #f7f7f8}:root[data-theme=dark]{color-scheme:dark;background:#111317;--bg: #111317;--panel: #17191e;--panel-2: #202329;--panel-3: #282c33;--text: #f4f5f6;--body: #d6d8dc;--muted: #a6a9b0;--subtle: #8a8e96;--line: rgba(255, 255, 255, .09);--accent: #63d5b5;--accent-ink: #0d2d25;--accent-soft: rgba(99, 213, 181, .13);--page-bg: #111317}:root[data-theme=eye]{color-scheme:light;background:#eef4e8;--bg: #eef4e8;--panel: #f7faf3;--panel-2: #e1eadb;--panel-3: #d5e0cd;--text: #263024;--body: #3c4739;--muted: #667061;--subtle: #7e8877;--line: rgba(38, 48, 36, .12);--accent: #3b987b;--accent-ink: #ffffff;--accent-soft: rgba(59, 152, 123, .12);--page-bg: #eef4e8}:root[data-theme=paper]{color-scheme:light;background:#f4ead8}*{box-sizing:border-box}html,body{overscroll-behavior-x:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{min-width:320px;min-height:100dvh;margin:0;overflow:hidden;background:var(--page-bg);color:var(--text)}button,textarea,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.game-icon{width:var(--game-icon-size, 24px);height:var(--game-icon-size, 24px);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:currentColor}.game-icon-sm{--game-icon-size: 24px}.game-icon-md{--game-icon-size: 32px}.game-icon-lg{--game-icon-size: 42px}.game-icon-picture img{width:100%;height:100%;display:block;object-fit:contain}.game-icon-lucide svg{width:78%;height:78%}.game-icon-muted{color:var(--muted, currentColor)}.game-icon-accent{color:var(--accent, currentColor)}.game-icon-danger{color:#c84b3f}.screen{width:min(100%,var(--screen-width));min-height:100dvh;height:100dvh;margin:0 auto;padding:12px var(--screen-gutter) var(--safe-bottom);overflow-y:auto;overflow-x:hidden}.android-auth-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#111317;color:#f7f7f8}.android-auth-card{width:min(100%,420px);display:grid;gap:12px;padding:20px;border-radius:12px;background:#1d1f26f5;border:1px solid rgba(255,255,255,.08);box-shadow:0 20px 48px #00000047}.android-auth-card strong{font-size:1rem;font-weight:700}.android-auth-card p{margin:0;color:#f7f7f8d6;line-height:1.5}.home-screen{display:grid;grid-template-rows:auto auto auto;align-content:start;gap:12px}.home-hero{display:grid;gap:12px;padding:14px}.eyebrow{margin:0 0 10px;color:#8d6042;font-size:.82rem;font-weight:700;letter-spacing:0}h1,h2,p{margin-top:0}h1{margin-bottom:12px;font-size:clamp(2rem,12vw,4.6rem);line-height:1.02;letter-spacing:0}h2{font-size:1.7rem;line-height:1.16;letter-spacing:0}.hero-copy{max-width:28rem;color:#6e5547;font-size:.98rem;line-height:1.55}.entry-actions,.bottom-actions,.save-actions,.export-actions{display:flex;gap:10px}.entry-actions{flex-direction:column}.primary-action,.secondary-action,.ghost-button,.danger-button,.choice-card,.choice-button,.theme-button{min-height:30px;border:0;border-radius:6px;padding:4px 10px;font-weight:650;font-size:.85em}.compact-icon{min-height:38px;padding:8px 12px}.primary-action{background:#7a4d2b;color:#fffaf2;box-shadow:0 10px 24px #52331c38}.primary-action.compact{min-height:40px;padding:9px 14px}.secondary-action{background:#fff8ee;color:#3b2b22;border:1px solid rgba(122,77,43,.22)}.ghost-button{background:#ffffff85;color:inherit;border:1px solid rgba(80,56,39,.18)}.danger-button{background:#fff1ef;color:#a13328;border:1px solid rgba(161,51,40,.22)}.latest-save,.content-status,.empty-library,.save-item,.step-panel,.story-card{border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:var(--panel-shadow)}.latest-save{display:grid;gap:8px;padding:18px}.content-status{padding:12px 14px;color:var(--muted);font-size:.92rem;font-weight:800}.latest-save span,.latest-save small,.save-item small,.story-header p,.turn-label,.save-status{color:var(--muted)}.latest-save strong{font-size:1.08rem}.top-bar,.story-header,.story-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-appbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.top-bar h1,.story-header h1{margin:0;font-size:1.2rem;line-height:1.25}.start-screen,.library-screen{display:grid;align-content:start;gap:12px}.story-screen{display:grid;gap:12px;align-content:stretch}.step-panel{min-height:0;padding:16px;overflow:auto}.option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.world-list{display:grid;gap:10px;margin-top:12px}.world-card{display:grid;gap:4px;width:100%;min-height:0;border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--panel);color:var(--text);text-align:left}.world-card.selected{border-color:color-mix(in srgb,var(--accent) 62%,var(--line));box-shadow:inset 0 0 0 2px var(--accent-soft)}.world-card span,.world-card em,.world-card small{color:var(--muted)}.world-card span{font-size:.78rem;font-weight:800}.world-card strong{font-size:1rem}.world-card em{font-style:normal;font-size:.82rem}.world-card b,.missing-files{color:#a6452f}.choice-card{min-height:60px;background:#fff9f0;color:#3a2b23;border:1px solid rgba(122,77,43,.18);text-align:left}.choice-card.selected,.theme-button.selected{color:#fffaf2;background:#7a4d2b}.custom-input{width:100%;min-height:48px;margin-top:14px;border:1px solid rgba(122,77,43,.22);border-radius:8px;padding:12px 14px;background:#fffdf8}.difficulty-panel{display:grid;gap:10px;margin-top:12px}.segmented-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bottom-actions{position:sticky;bottom:0;padding:8px 0 0;background:linear-gradient(180deg,#f4eee200,#f4eee2 35%)}.bottom-actions>button{flex:1}.story-screen{width:min(100%,820px);grid-template-rows:auto auto auto minmax(0,1fr) auto auto;padding-bottom:var(--safe-bottom);transition:background .18s ease,color .18s ease}.theme-light{background:#fbfbfb;color:#202020}.theme-dark{background:#111317;color:#f6f7f9}.theme-eye{background:#edf3df;color:#233021}.theme-paper{background:linear-gradient(#ffffff29,#ffffff29),#f4ead8;color:#30231b}.theme-switcher{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.story-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.theme-button{min-height:40px;padding:8px;background:#ffffff80;color:inherit;border:1px solid rgba(104,83,64,.18)}.missing-files{border:1px solid rgba(166,69,47,.18);border-radius:8px;padding:11px 13px;background:#fff4efb8;font-size:.9rem;font-weight:700}.story-card{padding:16px;background:#ffffffa3}.story-stage{min-height:0;overflow:auto}.theme-dark .story-card,.theme-dark .latest-save,.theme-dark .save-item{background:#1f2227db;border-color:#ffffff1a}.story-output{font-size:1.06rem;line-height:1.9}.story-output p:last-child{margin-bottom:0}.turn-label{margin-bottom:12px;font-size:.85rem;font-weight:800}.choice-list{display:grid;gap:9px}.compact-choice-list{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}.choice-button{background:transparent;color:inherit;border:0;width:100%;height:auto;min-height:0;padding:6px 0;text-align:left;line-height:1.62;white-space:normal;border-radius:0;display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:6px}.choice-button-label{display:block;width:100%;font-size:inherit;line-height:1.56;font-weight:650;color:#f8f9fbfa}.choice-index{color:#b2b4ba;font-size:.84rem;font-weight:700;line-height:1.5;padding-top:1px}.free-action-inline{display:flex;align-items:center;gap:8px;width:100%}.free-action-inline input{flex:1;min-width:0;min-height:42px;padding:9px 12px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#ffffff14;color:inherit;font-size:.95em;outline:none}.free-action-inline input:focus{border-color:#7a4d2b}.fa-submit{min-height:42px;border:0;border-radius:12px;padding:0 14px;background:#7a4d2b;color:#fffaf2;font-size:.85em;font-weight:700;cursor:pointer}.fa-submit:hover{background:#8e5d3a}.player-input{display:grid;gap:10px;position:sticky;bottom:0;padding-top:6px;background:linear-gradient(180deg,#f4eee200,#f4eee2f0 30%)}.player-input textarea{width:100%;resize:vertical;border:1px solid rgba(93,70,50,.2);border-radius:8px;padding:13px;background:#ffffffd1;color:inherit;line-height:1.6}.theme-dark .player-input textarea{background:#1c1f25;border-color:#ffffff1f}.composer-shell{position:sticky;bottom:0;margin:0 calc(var(--screen-gutter) * -1);padding:0 var(--screen-gutter) var(--safe-bottom);background:linear-gradient(180deg,#11131700,#111317eb 30%,#111317fa)}.composer-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;padding-top:0;position:static;bottom:auto;background:transparent}.composer-bar textarea{min-height:34px;padding:9px 12px;line-height:1.45;resize:none}.story-footer{align-items:flex-start}.export-actions{flex-wrap:wrap;justify-content:flex-end}.compact-export{gap:6px}.save-list{display:grid;gap:12px;min-height:0;overflow:auto;padding-right:2px}.save-item{display:grid;gap:10px;padding:14px}.save-item h2{margin-bottom:8px;font-size:1.08rem}.save-item p{margin-bottom:8px;color:#6e5547}.save-actions{flex-wrap:wrap}.empty-library{padding:24px}.loading-screen{display:grid;place-items:center}.compact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.compact-grid>.primary-action:first-child{grid-column:1 / -1}.compact-card{padding:14px 16px;align-self:end}.home-stat-row{display:flex;gap:8px;flex-wrap:wrap}.status-pill{display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border-radius:999px;background:var(--accent-soft);color:var(--muted);font-size:.8rem;font-weight:800}.status-pill.muted{background:#ffffffc7}.step-progress{display:flex;gap:6px}.step-dot{width:10px;height:10px;border-radius:999px;background:#7a4d2b29}.step-dot.active{background:#7a4d2b}.compact-step-panel h2,.compact-step-panel p,.compact-step-panel .difficulty-panel{margin-bottom:0}.compact-step-panel .world-card small,.compact-step-panel .world-card em,.compact-step-panel .world-card b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.compact-save-list .save-item p,.compact-save-list .save-item h2{margin-bottom:4px}@media(min-width:680px){.entry-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.save-item{grid-template-columns:1fr auto;align-items:center}.player-input{grid-template-columns:1fr auto;align-items:end}.player-input textarea{min-height:72px}.composer-bar{grid-template-columns:1fr auto}}@media(max-width:679px){.screen{--screen-gutter: 12px}.content-status,.story-footer{font-size:.84rem}.story-output{font-size:1rem;line-height:1.72}.world-card,.save-item,.story-card{border-radius:7px}}.pending-thread{opacity:.96}.ai-waiting-hint{display:flex;align-items:center;gap:8px;padding:8px 14px;margin:10px 0 6px;border-radius:10px;background:linear-gradient(135deg,#7a4d2b0f,#7a4d2b08);color:var(--story-muted, #8b8b92);font-size:.88rem;font-weight:560;line-height:1.4;transition:opacity .18s ease,transform .18s ease,background-color .18s ease}.story-continuation-indicator{position:absolute;top:0;left:50%;display:grid;width:20px;height:18px;place-items:center;transform:translate(-50%,calc(-100% - 5px));z-index:4;pointer-events:none;color:var(--story-muted);opacity:.56;animation:story-continuation-fade-in .18s ease}.story-continuation-indicator svg{width:14px;height:14px}@keyframes story-continuation-fade-in{0%{opacity:0}to{opacity:.56}}@keyframes wiggleHourglass{0%,to{transform:rotate(0)}25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}.waiting-hourglass{display:inline-block;font-size:1.1em;animation:wiggleHourglass 3s ease-in-out infinite}.pending-player .message-body{box-shadow:inset 0 0 0 1px #ffffff0f}.typing-indicator{display:inline-flex;align-items:center;gap:8px;min-height:48px}.typing-indicator span{width:8px;height:8px;border-radius:999px;background:currentColor;opacity:.5;animation:typing-bounce 1.2s infinite ease-in-out}.typing-indicator span:nth-child(2){animation-delay:.16s}.typing-indicator span:nth-child(3){animation-delay:.32s}@keyframes typing-bounce{0%,80%,to{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:.95}}.story-screen{--composer-offset: 118px;--story-col: 620px;--story-lh: 1.88;--story-para: 1.05em;--story-reading-gutter: 18px;width:min(100%,920px);padding-top:8px;padding-bottom:0;overflow:hidden;display:flex;flex-direction:column;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang TC,Noto Sans TC,Microsoft JhengHei,sans-serif;font-synthesis:none;font-optical-sizing:auto}.story-screen.font-small{--story-col: 600px;--story-lh: 1.9;--story-para: 1.1em;--story-reading-gutter: 18px}.story-screen.font-medium{--story-col: 620px;--story-lh: 1.88;--story-para: 1.05em;--story-reading-gutter: 18px}.story-screen.font-large{--story-col: 640px;--story-lh: 1.85;--story-para: 1em;--story-reading-gutter: 20px}.story-screen.font-xlarge{--story-col: 650px;--story-lh: 1.8;--story-para: .95em;--story-reading-gutter: 20px}.chat-header{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:8px;margin-bottom:0}.chat-header-copy{min-width:0}.chat-header-menu{width:100%;min-width:0;padding:3px 4px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;cursor:pointer;display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:6px}.chat-header-menu-icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;background:#ffffff0f;color:#c9cbd1;font-size:1rem;font-weight:800;line-height:1}.chat-header-menu-copy{min-width:0;display:block}.chat-header-menu:hover,.chat-header-menu:focus-visible{background:#ffffff0d}.chat-header-menu:focus-visible{outline:2px solid rgba(255,255,255,.22);outline-offset:1px}.chat-header-copy h1{margin:0 0 2px;font-size:.92rem;line-height:1.1;font-weight:700;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.chat-header-copy p{margin:0;color:#c9cbd1;font-size:.74rem;font-weight:600}.chat-icon-button{width:36px;height:36px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:#28282ceb;color:inherit;font-size:1.12rem;line-height:1}.chat-back-button{font-size:1rem}.chat-icon-button.close{width:38px;height:38px;font-size:1.2rem}.chat-status-pill{display:inline-flex;align-items:center;min-height:20px;padding:4px 6px;border-radius:999px;background:#ffffff0f;color:#9b9ba1;font-size:.7rem;font-weight:700}.story-feed{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;scrollbar-width:none;-ms-overflow-style:none;display:flex;flex-direction:column;padding:0;cursor:text}.story-feed::-webkit-scrollbar{display:none}.turn-thread{display:grid;gap:14px;margin-bottom:22px}.story-feed>.turn-thread:last-child{margin-bottom:0}.message-block{display:grid;gap:8px}.gm-block{justify-items:start}.player-block{justify-items:end}.message-role{margin:0;color:#b0b2b8;font-size:.8rem;font-weight:700}.gm-role{color:#8b8b92;font-size:.76rem;letter-spacing:.02em}.message-body{max-width:min(100%,44rem)}.message-body p{margin:0 0 14px;font-size:1.03rem;line-height:1.72;font-weight:650;color:#f8f9fbfa}.message-body p:last-child{margin-bottom:0}.shop-panel{display:grid;gap:7px;margin-top:10px;padding:8px;border:1px solid var(--story-line);border-radius:12px;background:var(--story-surface)}.shop-panel.is-read-only .shop-item-list>li:hover{transform:none;border-color:var(--story-line);box-shadow:none}.shop-panel-header,.shop-item-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.shop-checkout-pending{min-height:168px;display:grid;place-items:center;align-content:center;gap:8px;padding:18px 12px;border:1px solid color-mix(in srgb,var(--story-accent) 30%,var(--story-line));border-radius:10px;background:color-mix(in srgb,var(--story-accent) 8%,var(--story-elevated));text-align:center}.shop-checkout-pending strong{color:var(--story-text);font-size:.94rem}.shop-checkout-pending small{color:var(--story-muted);font-size:.74rem;line-height:1.45}.shop-checkout-hourglass{font-size:1.55rem}.shop-panel-kicker,.shop-item-category{display:block;color:var(--story-muted);font-size:.68rem;font-weight:750}.shop-panel h3{margin:1px 0 0;font-size:.92rem}.shop-panel-currency,.shop-item-heading>span{flex:0 0 auto;color:var(--story-accent);font-size:.72rem;font-weight:850}.shop-item-list{display:grid;gap:4px;margin:0;padding:0;list-style:none}.shop-item-list>li{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:5px;padding:4px 6px;border:1px solid var(--story-line);border-radius:9px;background:var(--story-elevated);transition:transform .16s ease,border-color .16s ease,background-color .16s ease,box-shadow .16s ease;overflow:hidden}.shop-item-list>li:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--story-accent);opacity:.6}.shop-item-list>li:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--story-accent) 40%,var(--story-line));box-shadow:inset 0 1px #ffffff14,0 5px 14px #00000024}.shop-item-list>li.is-unavailable{opacity:.58}.shop-item-list>li.is-selected{border-color:color-mix(in srgb,var(--story-accent) 55%,var(--story-line));background:color-mix(in srgb,var(--story-accent) 12%,var(--story-elevated));box-shadow:0 0 0 1px color-mix(in srgb,var(--story-accent) 18%,transparent)}.shop-item-list>li.is-selected:before{opacity:1}.shop-item-toggle{display:grid;justify-items:center;align-content:start;gap:3px}.shop-item-toggle input{width:13px;height:13px;margin:0;accent-color:var(--story-accent)}.shop-item-index{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:color-mix(in srgb,var(--story-accent) 14%,var(--story-elevated));color:var(--story-accent);font-size:.68rem;font-weight:900}.shop-item-content{min-width:0}.shop-item-heading strong{display:inline-flex;align-items:center;gap:4px;font-size:.84rem;line-height:1.16}.shop-item-emoji{display:inline-grid;place-items:center;width:1.35em;height:1.35em;border-radius:7px;background:color-mix(in srgb,var(--story-accent) 14%,var(--story-elevated));font-size:.88em}.shop-panel .shop-item-content p,.shop-panel .shop-panel-instruction{margin:1px 0 0;color:var(--story-muted);font-size:.72rem;font-weight:550;line-height:1.22}.shop-item-content small{display:block;margin-top:4px;color:#e39a8f}.shop-panel .shop-panel-instruction{margin:0;padding-top:6px;border-top:1px solid var(--story-line)}.shop-panel-summary{display:grid;gap:6px;padding:8px;border-radius:10px;background:color-mix(in srgb,var(--story-elevated) 70%,var(--story-surface))}.shop-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;margin:0}.shop-summary-grid div{min-width:0}.shop-summary-grid dt{color:var(--story-muted);font-size:.68rem;font-weight:750}.shop-summary-grid dd{margin:1px 0 0;color:var(--story-text);font-size:.82rem;font-weight:850}.shop-panel-status{margin:0;color:#f0c27c;font-size:.76rem;line-height:1.28}.shop-panel-actions{display:flex;justify-content:flex-end;gap:8px}.shop-panel-actions button{min-height:44px;border:0;border-radius:8px;padding:0 10px;font-size:.8rem;font-weight:850}.shop-panel-primary{background:var(--story-accent);color:var(--story-accent-ink)}.shop-panel-secondary{border:1px solid var(--story-line);background:var(--story-elevated);color:var(--story-text)}.shop-panel-actions button:disabled{opacity:.5}.message-suggestions{display:grid;gap:6px;margin-top:12px;padding-top:10px;font-size:1.03rem;border-top:1px solid rgba(255,255,255,.08)}.message-suggestions strong{display:block;margin-bottom:2px;font-size:.8rem;color:#8f9098}.message-action-label{text-transform:none;letter-spacing:.04em}.choice-grid{margin:0;padding-inline-start:1.8rem;display:grid;grid-template-columns:minmax(0,1fr);gap:2px;list-style:decimal}.message-suggestions li{margin:0}.choice-grid li{display:list-item;min-width:0}.choice-utility-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.choice-utility-row.single{grid-template-columns:minmax(0,1fr)}.player-block .message-body{padding:10px 12px;border-radius:16px;background:#ffffff0d;border:1px solid rgba(255,255,255,.06);max-width:min(88%,30rem)}.player-block .message-role{font-size:.72rem;color:#84848b}.player-block .message-body p{font-size:.98rem;line-height:1.58;font-weight:650;color:#ececf0d6}.composer-bar textarea::placeholder{color:#8f9096}.composer-send{width:42px;height:42px;border:0;border-radius:999px;background:#ececec;color:#111214;font-size:1.05rem;font-weight:900}.composer-send:disabled{background:#ffffff29;color:#ffffff5c}.composer-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#8f9096;font-size:.72rem;padding:4px 2px 0}.message-body.revealing{cursor:pointer}.font-small .message-body p,.font-small .message-suggestions,.font-small .message-suggestions li{font-size:.85rem}.font-medium .message-body p,.font-medium .message-suggestions,.font-medium .message-suggestions li{font-size:.95rem}.font-large .message-body p,.font-large .message-suggestions,.font-large .message-suggestions li{font-size:1.1rem}.font-xlarge .message-body p,.font-xlarge .message-suggestions,.font-xlarge .message-suggestions li{font-size:1.3rem}.theme-light.story-screen{background:#f7f7f8;color:#1b1b1d}.theme-eye.story-screen{background:#eef4e8;color:#253022}.theme-paper.story-screen{background:#f4ead8;color:#31251d}.theme-light .chat-icon-button,.theme-light .composer-bar,.theme-eye .chat-icon-button,.theme-eye .composer-bar,.theme-paper .chat-icon-button,.theme-paper .composer-bar{background:#fffffff5;color:inherit}.theme-light .composer-shell{background:linear-gradient(180deg,transparent,rgba(247,247,248,.92) 30%,rgba(247,247,248,.98) 100%)}.theme-eye .composer-shell{background:linear-gradient(180deg,transparent,rgba(238,244,232,.92) 30%,rgba(238,244,232,.98) 100%)}.theme-paper .composer-shell{background:linear-gradient(180deg,transparent,rgba(244,234,216,.92) 30%,rgba(244,234,216,.98) 100%)}.theme-light .player-block .message-body,.theme-eye .player-block .message-body,.theme-paper .player-block .message-body{background:#0000000a;border-color:#0000000f}.theme-light .message-role,.theme-light .chat-header-copy p,.theme-light .composer-meta,.theme-eye .message-role,.theme-eye .chat-header-copy p,.theme-eye .composer-meta,.theme-paper .message-role,.theme-paper .chat-header-copy p,.theme-paper .composer-meta{color:#777b80}.theme-light .chat-status-pill,.theme-eye .chat-status-pill,.theme-paper .chat-status-pill{background:#0000000d;color:#6d7278}.theme-light .chat-header-menu:hover,.theme-light .chat-header-menu:focus-visible,.theme-eye .chat-header-menu:hover,.theme-eye .chat-header-menu:focus-visible,.theme-paper .chat-header-menu:hover,.theme-paper .chat-header-menu:focus-visible{background:#0000000a}.theme-light .chat-header-menu-icon,.theme-eye .chat-header-menu-icon,.theme-paper .chat-header-menu-icon{background:#0000000d;color:#6d7278}.theme-light .chat-header-menu:focus-visible,.theme-eye .chat-header-menu:focus-visible,.theme-paper .chat-header-menu:focus-visible{outline-color:#0000002e}.theme-light .message-suggestions,.theme-eye .message-suggestions,.theme-paper .message-suggestions{border-top-color:#00000014}.theme-light .shop-panel,.theme-eye .shop-panel,.theme-paper .shop-panel{border-color:#8a704033;background:#fffcf4ad;box-shadow:inset 0 1px #ffffff80}.theme-light .shop-item-list>li,.theme-eye .shop-item-list>li,.theme-paper .shop-item-list>li{border-color:#9a804a24;background:linear-gradient(135deg,#fffdf7e6,#fff4ddad);box-shadow:inset 0 1px #ffffffb8,0 3px 9px #60441c14}.theme-light .shop-item-list>li.is-selected,.theme-eye .shop-item-list>li.is-selected,.theme-paper .shop-item-list>li.is-selected{border-color:#bf922e80;background:linear-gradient(135deg,#ffeec4fa,#fff7e2d6);box-shadow:inset 0 1px #ffffffd9,0 0 0 1px #bf922e1f}.theme-light .shop-summary-grid dt,.theme-eye .shop-summary-grid dt,.theme-paper .shop-summary-grid dt{color:#5f5648}.theme-light .shop-summary-grid dd,.theme-eye .shop-summary-grid dd,.theme-paper .shop-summary-grid dd{color:#1f1b14}.theme-light .shop-panel-status,.theme-eye .shop-panel-status,.theme-paper .shop-panel-status{color:#7a4e0b}.theme-light .shop-panel-currency,.theme-light .shop-item-heading>span,.theme-light .shop-item-index,.theme-eye .shop-panel-currency,.theme-eye .shop-item-heading>span,.theme-eye .shop-item-index,.theme-paper .shop-panel-currency,.theme-paper .shop-item-heading>span,.theme-paper .shop-item-index{color:#9a6b13}.theme-light .shop-item-emoji,.theme-eye .shop-item-emoji,.theme-paper .shop-item-emoji{background:#bf922e24}.theme-light .shop-panel .shop-item-content p,.theme-light .shop-panel .shop-panel-instruction,.theme-eye .shop-panel .shop-item-content p,.theme-eye .shop-panel .shop-panel-instruction,.theme-paper .shop-panel .shop-item-content p,.theme-paper .shop-panel .shop-panel-instruction,.theme-light .shop-panel-kicker,.theme-light .shop-item-category,.theme-eye .shop-panel-kicker,.theme-eye .shop-item-category,.theme-paper .shop-panel-kicker,.theme-paper .shop-item-category,.theme-light .message-suggestions strong,.theme-eye .message-suggestions strong,.theme-paper .message-suggestions strong{color:#666a70}.theme-light .message-body p,.theme-eye .message-body p,.theme-paper .message-body p,.theme-light .choice-button-label,.theme-eye .choice-button-label,.theme-paper .choice-button-label{color:#1f2226}.theme-light .choice-index,.theme-eye .choice-index,.theme-paper .choice-index{color:#6d7278}.theme-light .player-block .message-body p,.theme-eye .player-block .message-body p,.theme-paper .player-block .message-body p{color:#292b2ecc}.theme-dark .choice-button{color:#f5f5f7f0;box-shadow:none}.theme-dark .choice-button:hover,.theme-dark .choice-button:focus-visible{color:#fff}.theme-dark .free-action-inline input{background:#ffffff0d;border-color:#ffffff14;color:#f5f5f7f0}.theme-dark .free-action-inline input::placeholder{color:#c8c8ce8c}.theme-light .theme-button,.theme-eye .theme-button,.theme-paper .theme-button,.theme-light .secondary-action,.theme-eye .secondary-action,.theme-paper .secondary-action{background:#0000000a;color:inherit;border-color:#00000014}.theme-dark .theme-button,.theme-dark .secondary-action{background:#ffffff0d;color:inherit;border-color:#ffffff14}.theme-dark .theme-button.selected,.theme-light .theme-button.selected,.theme-eye .theme-button.selected,.theme-paper .theme-button.selected{background:#9d6b3f;color:#fffdf8}@media(min-width:680px){.chat-header-copy h1{font-size:1.08rem}}@media(max-width:679px){.chat-header{grid-template-columns:42px minmax(0,1fr) auto;gap:10px}.chat-header-copy h1{font-size:.98rem}.chat-status-pill{display:none}.message-body p{font-size:1.03rem;line-height:1.72}}.cropper-overlay{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;background:#0000008c;padding:16px}.cropper-modal{display:grid;gap:14px;width:min(100%,460px);max-height:90vh;padding:18px;border-radius:10px;background:#fff;box-shadow:0 8px 32px #00000038;color:#1b1b1d;overflow:auto}.cropper-upload-label{display:inline-flex;align-items:center;padding:8px 14px;border-radius:6px;background:#1b1b1d;color:#fff;font-size:.85rem;font-weight:700;cursor:pointer;transition:opacity .15s}.cropper-upload-label:hover{opacity:.85}.cropper-delete-btn{padding:8px 14px;border:1px solid rgba(0,0,0,.1);border-radius:6px;background:none;color:#b33;font-size:.82rem;cursor:pointer}.cropper-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.theme-light .cropper-modal,.theme-paper .cropper-modal,.theme-eye .cropper-modal{background:#fff;color:#1b1b1d}.theme-dark .cropper-modal{background:#1b1b1d;color:#f2f2f3}.theme-dark .cropper-upload-label{background:#f2f2f3;color:#1b1b1d}.theme-dark .cropper-delete-btn{border-color:#ffffff1f;color:#f55}.app-shell{--shadow-soft: none;--space-xs: 4px;--space-sm: 8px;--space-md: 12px;--space-lg: 16px;width:min(100%,700px);min-height:100dvh;height:100dvh;margin:0 auto;padding:14px 16px 112px;background:var(--bg);color:var(--text);overflow-y:auto;overflow-x:clip;position:relative;-webkit-overflow-scrolling:touch}.app-shell.app-home-shell{display:flex;flex-direction:column;padding-bottom:0;overflow:hidden;touch-action:pan-y}.privacy-page{height:auto;min-height:100dvh;padding-bottom:calc(32px + env(safe-area-inset-bottom))}.privacy-page-header{display:grid;gap:10px;padding:12px 0 22px;border-bottom:1px solid var(--line)}.privacy-page h1,.privacy-page h2,.privacy-page p{margin:0}.privacy-page h1{font-size:clamp(25px,7vw,32px);line-height:1.2}.privacy-page h2{font-size:17px;line-height:1.35}.privacy-page p,.privacy-page li{color:var(--muted);font-size:14px;line-height:1.7}.privacy-page code{overflow-wrap:anywhere;color:var(--text)}.privacy-page-section{display:grid;gap:10px;padding:20px 0;border-bottom:1px solid var(--line)}.privacy-page-section ul{display:grid;gap:5px;margin:0;padding-left:22px}.privacy-back-link,.home-legal-footer a{color:var(--muted);font-size:13px;font-weight:700;text-decoration:none}.privacy-back-link:hover,.home-legal-footer a:hover{color:var(--text);text-decoration:underline}.privacy-page-footer,.home-legal-footer{padding:20px 0 6px;color:var(--muted);font-size:12px;line-height:1.5}.home-legal-footer{padding-bottom:16px;text-align:center}.app-shell .home-header{flex:0 0 auto;position:relative;z-index:40;margin:-14px -16px 6px;padding:8px 16px 7px;background:var(--bg);border-bottom:1px solid var(--line);isolation:isolate;overflow:hidden;transition:padding .2s ease,margin .2s ease,border-color .2s ease}.app-shell .home-header:before{display:none}.app-shell .home-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:clip;padding:2px 0 104px;overscroll-behavior:contain;scroll-behavior:smooth;-webkit-overflow-scrolling:auto;touch-action:pan-y}.app-shell .home-appbar{display:flex;align-items:center;min-height:40px;gap:8px;margin-bottom:5px;transition:margin .2s ease}.home-appbar-center{flex:1;min-width:0}.home-appbar-title{font-size:15px;font-weight:650;line-height:1.1;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-appbar-subtitle{margin-top:3px;overflow:hidden;color:var(--muted);font-size:11px;font-weight:550;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.home-appbar-actions{display:flex;align-items:center;gap:5px}.home-brand-mark,.app-shell .icon-btn,.home-appbar-btn,.account-avatar-button{width:36px;height:36px;border:1px solid var(--line);border-radius:13px;background:var(--panel);color:var(--text);box-shadow:inset 0 1px color-mix(in srgb,#ffffff 28%,transparent);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;transition:transform .12s ease,background-color .15s ease,border-color .15s ease}.home-brand-mark{padding:0;border-color:color-mix(in srgb,var(--accent) 28%,var(--line));background:var(--panel);overflow:hidden}.home-appbar-btn{width:auto;min-width:58px;padding:0 9px;gap:5px;border-radius:9px;color:var(--muted);font-size:12px;font-weight:700}.home-brand-mark:active,.app-shell .icon-btn:active,.home-appbar-btn:active,.account-avatar-button:active{transform:scale(.98)}.home-brand-mark img,.ui-icon-img{width:20px;height:20px;object-fit:contain;display:block}.home-brand-mark img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.home-appbar-btn,.account-avatar-button{cursor:pointer}.account-avatar-button{padding:0;overflow:hidden;background:var(--panel-2);color:var(--text);font-size:.9rem;font-weight:900}.account-avatar-image{width:100%;height:100%;display:flex;align-items:center;justify-content:center;object-fit:cover}.app-shell .home-info-card{padding:0;border-radius:0;border:0;background:transparent;box-shadow:none;overflow:hidden;transition:padding .2s ease,border-radius .2s ease}.app-shell-dark .home-info-card{background:transparent;box-shadow:none}.home-search-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(112px,.72fr);gap:6px;align-items:center;margin-bottom:5px;max-height:46px;overflow:hidden;transform-origin:top center;transition:max-height .2s ease,opacity .2s ease,transform .2s ease,margin .2s ease}.search-shell{height:40px;display:flex;align-items:center;gap:8px;min-width:0;padding:0 11px;border-radius:10px;border:1px solid var(--line);background:var(--panel-2)}.search-lead{color:var(--subtle);font-size:1rem}.search-shell .search{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font-size:14px;font-weight:600}.search-shell .search::placeholder{color:var(--subtle)}.home-mode-switch{height:40px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:4px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2)}.home-mode-btn{height:100%;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:13px;font-weight:700;cursor:pointer}.home-mode-btn.active{border:1px solid transparent;background:var(--accent-soft);color:var(--text);box-shadow:none}.home-chip-shell{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-x pan-y;padding-bottom:1px}.home-chip-shell::-webkit-scrollbar{display:none}.app-shell .filter-bar{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:1px;width:max-content;min-width:100%;overflow:visible;padding-bottom:1px}.app-shell .chip{width:auto;min-width:42px;min-height:50px;display:inline-grid;grid-template-rows:auto auto;align-content:center;justify-items:center;gap:1px;border:1px solid transparent;border-radius:12px;padding:4px 2px 3px;background:transparent;color:var(--muted);font-size:9.5px;font-weight:700;cursor:pointer;flex:0 0 auto;transition:transform .12s ease,background-color .15s ease,border-color .15s ease}.app-shell .chip.active{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 52%,var(--line));color:var(--text);box-shadow:inset 0 1px color-mix(in srgb,#ffffff 20%,transparent)}.app-shell .chip:active{transform:scale(.98)}.home-filter-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:0;background:transparent;font-size:18px;flex:0 0 auto}.home-filter-icon img{width:18px;height:18px;object-fit:contain;display:block}.home-filter-emoji{display:inline-flex;align-items:center;justify-content:center;line-height:1}.home-filter-label{display:block;width:100%;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;font-weight:800;line-height:1.08;letter-spacing:-.015em}.home-header.is-compact{padding-top:6px;padding-bottom:5px;margin-bottom:4px}.home-header.is-compact .home-appbar{margin-bottom:6px}.home-header.is-compact .home-brand-mark,.home-header.is-compact .account-avatar-button{width:32px;height:32px;border-radius:11px}.home-header.is-compact .home-appbar-btn{height:32px;min-width:54px;padding:0 7px;border-radius:8px;font-size:11px}.home-header.is-compact .ui-icon-img{width:18px;height:18px}.home-header.is-compact .home-appbar-title{font-size:.88rem;opacity:.86}.home-header.is-compact .home-appbar-subtitle{display:none}.home-header.is-compact .home-info-card{padding:0;border-radius:0}.home-header.is-compact .home-search-row{max-height:0;margin-bottom:0;opacity:0;transform:translateY(-9px) scale(.986);pointer-events:none}.home-header.is-compact .chip{width:auto;min-width:42px;min-height:48px;gap:1px;padding:4px 3px 3px;font-size:9.5px}.home-header.is-compact .home-filter-icon{width:20px;height:20px}.home-header.is-compact .home-filter-icon img{width:18px;height:18px}.home-header.is-compact .home-filter-label{font-size:10px;font-weight:800}.home-stream-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;margin:0 1px 7px;color:var(--muted)}.home-stream-meta div{min-width:0;display:flex;align-items:baseline;gap:6px}.home-stream-meta strong{color:var(--text);font-size:13px;line-height:1.2;font-weight:700}.home-stream-meta span,.home-stream-meta small{color:var(--subtle);font-size:11px;line-height:1.2;font-weight:550}.home-stream-meta small{flex:0 0 auto}.world-pack-grid.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0;align-items:stretch;max-width:100%;min-width:0}.app-shell .world-pack-card.card-v2{width:100%;padding:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel);box-shadow:none;color:var(--text);text-align:left;cursor:pointer;display:flex;flex-direction:column;touch-action:manipulation;transition:border-color .16s ease,background-color .16s ease,transform .12s ease,box-shadow .16s ease}.app-shell .world-pack-card.card-v2:hover{border-color:color-mix(in srgb,var(--accent) 24%,var(--line));transform:translateY(-2px);box-shadow:0 8px 20px #0000001a}.app-shell-dark .world-pack-card.card-v2{box-shadow:none}.app-shell .world-pack-cover{position:relative;aspect-ratio:1 / 1;width:100%;overflow:hidden;background:var(--panel-3);border-bottom:1px solid var(--line)}.app-shell .world-pack-cover img{width:100%;height:100%;object-fit:cover;display:block}.app-shell .world-pack-cover-icon{color:var(--subtle);font-size:24px;line-height:1}.app-shell .world-pack-badge{position:absolute;top:8px;left:8px;z-index:2;padding:3px 8px;border-radius:999px;background:linear-gradient(135deg,var(--accent, #e85d3f),color-mix(in srgb,var(--accent, #e85d3f) 70%,#000000 8%));color:#fff;font-size:11px;font-weight:800;letter-spacing:.03em;line-height:1.2;box-shadow:0 2px 6px #00000038;pointer-events:none}.app-shell .world-pack-recommended-badge{position:absolute;top:8px;right:8px;z-index:2;padding:3px 8px;border-radius:999px;background:#141820b8;color:#fff;font-size:10.5px;font-weight:700;letter-spacing:.02em;line-height:1.3;box-shadow:0 2px 6px #0000003d;pointer-events:none}.app-shell-dark .world-pack-recommended-badge{background:#ffffff24;color:#fff}.app-shell .world-pack-info{min-height:80px;display:flex;flex-direction:column;justify-content:flex-start;gap:2px;padding:7px 9px 8px;border-top:1px solid color-mix(in srgb,#ffffff 18%,transparent);flex:none;overflow:hidden}.app-shell .world-pack-type{color:var(--subtle);font-size:11.5px;font-weight:600;line-height:1.1;letter-spacing:.02em;text-transform:none}.app-shell .world-pack-title{color:var(--text);font-size:14px;line-height:1.2;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.4em;word-break:break-word;overflow-wrap:anywhere}.world-pack-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:4px;color:var(--muted)}.world-pack-meta b{min-width:0;color:inherit;font-size:11px;line-height:1.2;font-weight:600}.world-pack-meta b{flex:0 0 auto;padding:2px 6px;border-radius:6px;background:color-mix(in srgb,var(--panel-3) 78%,transparent);color:var(--text);font-weight:650}.topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.topic-card{min-height:76px;display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;column-gap:10px;row-gap:2px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);box-shadow:none;text-align:left;cursor:pointer}.topic-icon{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;grid-row:1 / span 2;border-radius:10px;background:var(--accent-soft);color:var(--text);font-size:1rem}.topic-icon img{width:32px;height:32px;display:block;object-fit:contain}.topic-card strong{font-size:14px;font-weight:750}.topic-card small{color:var(--muted);font-size:11px;line-height:1.25}.home-empty-state{grid-column:1 / -1;min-height:88px;display:grid;place-items:center;border:1px dashed var(--line);border-radius:16px;color:var(--muted);background:color-mix(in srgb,var(--panel-2) 72%,transparent);font-weight:850}.home-action-dock{position:fixed;left:max(14px,calc((100vw - 700px)/2 + 14px));right:max(14px,calc((100vw - 700px)/2 + 14px));bottom:calc(10px + env(safe-area-inset-bottom));z-index:16;min-height:54px;border:1px solid var(--line);border-radius:16px;padding:7px 10px 7px 8px;display:flex;align-items:center;gap:8px;background:var(--panel);color:var(--text);box-shadow:0 8px 20px #0a1c141a,inset 0 1px color-mix(in srgb,#ffffff 20%,transparent);cursor:pointer;text-align:left;transition:transform .12s ease,border-color .15s ease}.home-action-dock:active{transform:scale(.98)}.home-action-icon{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:var(--accent);color:var(--accent-ink);font-size:18px;font-weight:700}.home-action-copy{min-width:0;flex:1;display:grid;gap:1px}.home-action-copy strong{font-size:14px;font-weight:750}.home-action-copy small{overflow:hidden;color:var(--muted);font-size:11px;font-weight:550;text-overflow:ellipsis;white-space:nowrap}.home-action-arrow{color:var(--muted);font-size:22px;line-height:1}.viewport-debug{position:fixed;left:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:120;display:grid;gap:2px;min-width:88px;padding:6px 8px;border-radius:12px;background:#121214e0;color:#f4f6f8;font-size:.68rem;line-height:1.1;box-shadow:0 10px 24px #00000038;pointer-events:none}.viewport-debug strong{font-size:.74rem;font-weight:900}.viewport-debug span{opacity:.82}.app-shell.app-package-shell{display:flex;flex-direction:column;padding-bottom:0;overflow:hidden}.package-appbar{flex:0 0 auto;z-index:18;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;min-height:50px;gap:7px;margin:-14px -16px 8px;padding:8px 16px 7px;background:var(--bg);border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent)}.package-nav-btn{width:36px;height:36px;border-radius:10px;font-size:1rem;font-weight:900;box-shadow:none}.package-nav-btn .ui-icon-img{width:19px;height:19px}.package-detail-hero{display:flex;align-items:center;gap:8px;min-width:0;padding:0;border-radius:0;border:0;background:transparent;box-shadow:none}.package-detail-icon{width:32px;height:32px;border-radius:8px;flex:0 0 auto;overflow:hidden;display:grid;place-items:center;background:var(--panel-2);border:1px solid var(--line)}.package-detail-icon img{width:100%;height:100%;object-fit:cover;display:block}.package-detail-copy{min-width:0}.package-detail-title{color:var(--text);font-size:15px;line-height:1.1;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.package-detail-meta{margin-top:2px;color:var(--subtle);font-size:11px;line-height:1.2;font-weight:550}.package-detail-actions{display:flex;align-items:center;gap:6px}.package-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:2px 0 calc(18px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}.package-hero{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:12px;margin-bottom:12px;padding:12px;border-radius:14px;background:var(--panel);border:1px solid var(--line)}.package-cover{width:88px;height:88px;aspect-ratio:auto;border-radius:8px;overflow:hidden;background:var(--panel-3);border:1px solid color-mix(in srgb,var(--line) 70%,transparent);box-shadow:none}.package-cover img{width:100%;height:100%;object-fit:cover;display:block}.package-copy{display:grid;align-content:start;gap:4px;min-width:0;padding:0;border:0;background:transparent}.package-copy>span{color:var(--accent);font-size:11px;line-height:1.2;font-weight:650}.package-copy p{color:var(--body);font-size:13px;line-height:1.48;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.package-action-stack{display:grid;gap:12px;margin-bottom:14px}.package-adventure-card{display:grid;gap:12px;padding:14px;border-radius:16px;border:1px solid color-mix(in srgb,var(--accent) 14%,var(--line));background:color-mix(in srgb,var(--panel) 90%,var(--accent) 10%)}.package-mode-copy{display:grid;gap:5px}.package-mode-badge{width:fit-content;display:inline-flex;align-items:center;min-height:26px;padding:4px 10px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,transparent);color:color-mix(in srgb,var(--accent) 70%,var(--text));font-size:11px;font-weight:650}.package-mode-copy strong{color:var(--text);font-size:15px;line-height:1.45}.package-latest-title{min-width:0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;font-size:17px}.package-latest-heading{min-width:0;display:flex;align-items:center;gap:5px}.package-cloud-backed{flex:0 0 auto;display:inline-flex;align-items:center;color:#2f86d2}.package-mode-copy p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.package-actionbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:7px;padding:0;border-radius:0;border:0;background:transparent}.package-actionbar.has-save{grid-template-columns:minmax(0,1fr) auto}.package-cloud-action{width:fit-content;min-height:24px;display:inline-flex;align-items:center;justify-content:flex-start;gap:4px;padding:2px 3px;border:0;border-radius:6px;background:transparent;color:#287fc8;font:inherit;font-size:11px;font-weight:650;line-height:1.25;cursor:pointer}.package-cloud-action:hover,.package-cloud-action:focus-visible{color:#1769aa;background:color-mix(in srgb,#2f86d2 9%,transparent)}.package-cloud-action:disabled{opacity:.48;cursor:default;background:transparent}.package-cloud-action-latest{justify-self:start;margin-top:-5px}.package-primary-action,.package-mini-action{border:0;border-radius:9px;cursor:pointer;font-weight:700}.package-primary-action{min-height:58px;display:flex;align-items:center;gap:9px;padding:10px 14px;color:color-mix(in srgb,var(--accent) 55%,var(--text));background:color-mix(in srgb,var(--accent) 24%,var(--panel));border:1px solid color-mix(in srgb,var(--accent) 40%,transparent);box-shadow:none}.package-primary-action strong{font-weight:650}.package-primary-copy{min-width:0;display:grid;gap:2px;text-align:left}.package-primary-copy small{font-size:11px;font-weight:550;opacity:.86}.package-mini-action{min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 14px;color:var(--body);background:var(--panel-2);border:1px solid var(--line);font-size:12.5px;font-weight:650;line-height:1.15}.package-submode-card{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 13px;border-radius:12px;border:1px solid var(--line);background:color-mix(in srgb,var(--panel) 90%,var(--panel-2) 10%)}.package-submode-copy{min-width:0;display:grid;gap:4px}.package-submode-badge{width:fit-content;max-width:100%;display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border-radius:999px;background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent);font-size:11px;font-weight:760}.package-submode-copy strong{color:var(--text);font-size:13px;line-height:1.42;font-weight:720}.package-submode-copy p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.package-submode-action{flex:0 0 auto;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;border-radius:10px;border:1px solid var(--line);background:var(--panel-2);color:var(--text);font-size:12px;font-weight:700}.package-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 7px;margin-bottom:0;border:0;background:transparent}.package-section-head strong,.package-section-head span{display:block}.package-section-head strong{font-size:14px;line-height:1.25;font-weight:750}.package-section-head span{margin-top:1px;color:var(--muted);font-size:11px;font-weight:550}.package-section-head .package-cloud-action{flex:0 0 auto;max-width:48%;text-align:left}.package-section-head .package-cloud-action span{margin:0;color:inherit;font-size:inherit;font-weight:inherit}.package-save-stack{display:grid;gap:0;border-top:1px solid var(--line);max-height:min(48dvh,420px);overflow-y:auto}.package-save-row{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;align-items:center;gap:2px;border-bottom:1px solid color-mix(in srgb,var(--line) 55%,transparent)}.package-save-row:last-child{border-bottom:0}.package-save-row .save-row-card{border-bottom:0;border-radius:8px}.package-save-row .save-row-card:hover{background:color-mix(in srgb,var(--panel-2) 55%,transparent)}.package-save-main{min-width:0;display:grid;align-content:center}.package-save-main .save-row-card{min-height:48px;padding-bottom:5px}.package-save-title{min-width:0;display:flex!important;align-items:center;gap:5px;overflow:visible!important}.package-save-title .package-save-name{min-width:0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.save-row-card .package-save-title .package-cloud-backed{display:inline-flex;overflow:visible}.package-save-cloud-action{margin:-4px 0 5px 10px}.package-cloud-restore{display:grid;gap:7px;padding:9px 10px;border-top:1px solid var(--line);background:color-mix(in srgb,#2f86d2 5%,transparent)}.package-cloud-restore>strong{color:var(--text);font-size:12px}.package-cloud-restore>p,.package-drive-message{margin:0;color:var(--muted);font-size:11px;line-height:1.4}.package-drive-message.is-error{color:#b63f47}.package-cloud-restore-list{display:grid;gap:5px}.package-cloud-restore-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-top:1px solid color-mix(in srgb,var(--line) 60%,transparent)}.package-cloud-restore-row>span{min-width:0;display:grid;gap:2px}.package-cloud-restore-row strong,.package-cloud-restore-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.package-cloud-restore-row strong{font-size:12px}.package-cloud-restore-row small{color:var(--muted);font-size:10px}.package-cloud-restore-row button{flex:0 0 auto;min-height:30px;padding:0 8px;border:1px solid color-mix(in srgb,#2f86d2 38%,var(--line));border-radius:7px;background:transparent;color:#287fc8;font-size:10.5px;font-weight:650}.package-save-delete{width:44px;height:44px;min-height:44px;align-self:center;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:var(--subtle);cursor:pointer}.package-save-delete:hover,.package-save-delete:focus-visible{background:color-mix(in srgb,#c54f55 10%,transparent);color:#b63f47}.package-save-delete:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.package-save-edit{width:44px;height:44px;min-height:44px;align-self:center;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:var(--subtle);cursor:pointer}.package-save-edit:hover,.package-save-edit:focus-visible{background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent)}.save-rename-form{grid-column:1 / -1;display:flex;align-items:center;gap:6px;padding:6px 8px}.save-rename-input{flex:1 1 auto;min-width:0;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--elevated);color:var(--text);font-size:.9rem;font-family:inherit}.save-rename-form button{flex-shrink:0;min-height:32px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--elevated);color:var(--text);font-size:.78rem;font-weight:650;cursor:pointer}.save-rename-form button:disabled{opacity:.45;cursor:default}.save-rename-form button:hover:not(:disabled){background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.package-provider-chip{min-height:30px;padding:2px 8px;border:1px solid var(--line);border-radius:8px;background:var(--elevated);color:var(--text);font-size:.72rem;font-weight:650;font-family:inherit;cursor:pointer;flex-shrink:0;margin-left:auto}.save-row-card{position:relative;width:100%;min-height:56px;display:grid;gap:4px;padding:11px 34px 11px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);text-align:left;cursor:pointer;box-shadow:none}.save-row-card span{font-size:14px;font-weight:700;line-height:1.3;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.save-row-card small{color:var(--muted);font-size:11px;line-height:1.3;font-weight:550}.save-row-card:after{content:"";position:absolute;right:11px;top:50%;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;opacity:.32;transform:translateY(-50%) rotate(-45deg)}.package-empty-state{display:grid;gap:6px;padding:14px 2px;border-top:1px solid var(--line);border-radius:0;border-right:0;border-bottom:0;border-left:0;background:transparent;color:var(--muted)}.package-save-list{display:grid;gap:8px;padding:10px 12px 8px;border-radius:14px;background:var(--panel);border:1px solid var(--line)}.package-save-hint{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.package-empty-state strong{color:var(--text);font-size:14px;font-weight:750}.package-empty-state span{font-size:12px;line-height:1.42}.app-shell-dark .package-detail-hero,.app-shell-dark .package-actionbar,.app-shell-dark .save-row-card{background:transparent;border-color:var(--line);box-shadow:none}.app-shell-dark .package-hero,.app-shell-dark .package-save-list{background:var(--panel);border-color:var(--line)}.app-shell-dark .package-save-delete,.app-shell-dark .package-save-edit{border-color:var(--line)}.app-shell-dark .package-copy{background:transparent;border-color:transparent}.app-shell-dark .package-nav-btn,.app-shell-dark .package-mini-action{background:var(--panel-2);border-color:var(--line)}.app-shell-dark .package-empty-state{background:transparent;border-color:var(--line)}.app-shell button{transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .12s ease}.app-shell button:active:not(:disabled){transform:scale(.98)}.app-shell button:focus-visible,.app-shell input:focus-visible{outline:2px solid color-mix(in srgb,var(--accent) 72%,white);outline-offset:2px}.bottom-sheet-root{--sheet-bg: var(--panel);--sheet-elevated: var(--panel-2);--sheet-text: var(--text);--sheet-muted: var(--muted);--sheet-line: var(--line);--sheet-accent: var(--accent);position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center}.confirm-dialog-root{--dialog-bg: var(--panel);--dialog-text: var(--text);--dialog-muted: var(--muted);--dialog-line: var(--line);--dialog-danger: #c15454;position:fixed;inset:0;z-index:75;display:flex;align-items:center;justify-content:center;padding:20px}.confirm-dialog-dark{--dialog-danger: #df6d6d}.confirm-dialog-backdrop{position:absolute;inset:0;border:0;background:#0000008f}.confirm-dialog-panel{position:relative;z-index:1;width:min(100%,420px);display:grid;gap:14px;padding:18px;border-radius:18px;background:var(--dialog-bg);color:var(--dialog-text);border:1px solid var(--dialog-line);box-shadow:0 20px 48px #00000047}.confirm-dialog-head h2{margin:0;font-size:18px;line-height:1.2;font-weight:800}.confirm-dialog-body{display:grid;gap:8px}.confirm-dialog-body p,.confirm-dialog-body small{margin:0;display:block}.confirm-dialog-body p{font-size:15px;line-height:1.55;font-weight:650}.confirm-dialog-body small{color:var(--dialog-muted);font-size:12px;line-height:1.5}.confirm-dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.confirm-dialog-actions button{min-height:44px;border-radius:12px;font-size:14px;font-weight:750;cursor:pointer}.confirm-dialog-cancel{border:1px solid var(--dialog-line);background:transparent;color:var(--dialog-text)}.confirm-dialog-confirm{border:0;background:#3f9f70;color:#071a11}.confirm-dialog-confirm.danger{background:color-mix(in srgb,var(--dialog-danger) 84%,#fff 16%);color:#fff}.confirm-dialog-actions button:disabled{opacity:.6;cursor:default}.bottom-sheet-backdrop{position:absolute;inset:0;border:0;background:#0000007a;animation:story-backdrop-in .18s ease-out}.bottom-sheet-panel{position:relative;z-index:1;width:min(100%,560px);min-width:0;max-height:88dvh;display:flex;flex-direction:column;overflow:hidden;padding-top:env(safe-area-inset-top);border:1px solid var(--sheet-line);border-bottom:0;border-radius:16px 16px 0 0;background:var(--sheet-bg);color:var(--sheet-text);box-shadow:0 -8px 24px #0000002e;animation:story-sheet-in .22s cubic-bezier(.22,1,.36,1)}.bottom-sheet-tall .bottom-sheet-panel{height:min(88dvh,760px)}.bottom-sheet-content .bottom-sheet-panel{height:auto;max-height:min(88dvh,760px)}.bottom-sheet-handle{flex:0 0 auto;width:36px;height:4px;margin:8px auto 3px;border-radius:999px;background:color-mix(in srgb,var(--sheet-muted) 45%,transparent)}.bottom-sheet-head{flex:0 0 auto;min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 14px 8px}.bottom-sheet-title{min-width:0;display:grid;gap:2px}.bottom-sheet-title strong{font-size:15px;line-height:1.25;font-weight:750}.bottom-sheet-title small{overflow:hidden;color:var(--sheet-muted);font-size:11px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.bottom-sheet-head-actions{position:relative;flex:0 0 auto;display:flex;align-items:center;gap:8px}.bottom-sheet-close{flex:0 0 auto;width:36px;height:36px;border:0;border-radius:10px;background:var(--sheet-elevated);color:var(--sheet-text);display:grid;place-items:center}.bottom-sheet-tabs{flex:0 0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 14px;padding:3px;border-radius:10px;background:var(--sheet-elevated)}.bottom-sheet-tabs button{min-height:38px;border:0;border-radius:8px;background:transparent;color:var(--sheet-muted);font-size:14px;font-weight:700}.bottom-sheet-tabs button.selected{background:var(--sheet-bg);color:var(--sheet-text)}.bottom-sheet-close:focus-visible,.bottom-sheet-tabs button:focus-visible,.bottom-sheet-head-actions button:focus-visible{outline:2px solid var(--sheet-accent);outline-offset:2px}.bottom-sheet-scroll{width:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none}.bottom-sheet-scroll::-webkit-scrollbar{display:none}.account-center-sheet{--sheet-bg: var(--panel);--sheet-elevated: var(--panel-2);--sheet-text: var(--text);--sheet-muted: var(--muted);--sheet-line: var(--line);--sheet-accent: var(--accent)}.account-center-page{width:100%;min-width:0;display:grid;gap:0;padding:10px 14px calc(18px + env(safe-area-inset-bottom));overflow-x:hidden}.account-profile{min-height:72px;display:flex;align-items:center;gap:12px;padding:12px 0 16px;border-bottom:1px solid var(--line)}.account-profile-avatar{width:48px;height:48px;flex:0 0 auto;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;background:var(--panel-2);color:var(--text);font-size:1rem;font-weight:900}.account-profile-copy,.account-section-heading{min-width:0;display:grid;gap:3px}.account-profile-copy strong,.account-section-heading strong{color:var(--text);font-size:14px;line-height:1.3;font-weight:750}.account-profile-copy small,.account-section-heading small{overflow-wrap:anywhere;color:var(--muted);font-size:12px;line-height:1.45}.account-status-list{min-width:0;display:grid;padding:5px 0;border-bottom:1px solid var(--line)}.account-status-row{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--muted);font-size:13px}.account-status-label{min-width:0;flex:1 1 auto;display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-weight:550}.account-status-value{min-width:0;max-width:56%;overflow-wrap:anywhere;color:var(--text);font-size:13px;font-weight:700;line-height:1.35;text-align:right;white-space:normal}.account-status-value.success{color:#2f8d66}.account-status-value.warning{color:#a36b1e}.account-status-value.danger,.account-error-text{color:#c15454}.account-action-section,.account-tool-section{min-width:0;display:grid;gap:10px;padding:16px 0;border-bottom:1px solid var(--line)}.account-action-section p,.account-error-text{max-width:100%;margin:0;overflow-wrap:anywhere;word-break:break-word;color:var(--muted);font-size:12px;line-height:1.5}.account-primary-action,.account-install-action{min-height:44px;border:0;border-radius:10px;background:var(--accent);color:var(--accent-ink, #0b2b20);font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px}.account-primary-action:disabled{opacity:.46}.account-signout{min-height:44px;margin-top:14px;border:0;background:transparent;color:var(--muted);font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px}.account-tool-list{display:grid}.account-tool-list button{min-height:58px;display:grid;grid-template-columns:24px minmax(0,1fr) 20px;align-items:center;gap:9px;align-content:center;padding:9px 2px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);text-align:left}.account-tool-list a{min-height:58px;display:grid;grid-template-columns:24px minmax(0,1fr) 20px;align-items:center;gap:9px;align-content:center;padding:9px 2px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);text-align:left;text-decoration:none}.account-tool-list button:last-child{border-bottom:0}.account-tool-list a:last-child{border-bottom:0}.account-tool-copy{min-width:0;display:grid;gap:3px}.account-tool-list button strong,.account-tool-list a strong{font-size:14px;font-weight:700}.account-tool-list button small,.account-tool-list a small{color:var(--muted);font-size:12px;line-height:1.4}.account-tool-list button:disabled{opacity:.48}.account-theme-control{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:3px;border-radius:10px;background:var(--panel-2)}.account-theme-dot{width:14px;height:14px;border-radius:50%;border:1px solid var(--line);flex:0 0 auto}.account-theme-control button{min-height:38px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:6px}.account-theme-control button.selected{background:var(--panel);color:var(--text)}@media(min-width:560px){.package-hero{grid-template-columns:96px minmax(0,1fr)}.package-cover{width:96px;height:96px}}@media(max-width:480px){.app-shell{padding-top:8px;padding-left:12px;padding-right:12px}.app-shell .home-header{margin-left:-12px;margin-right:-12px;margin-bottom:4px;padding:5px 12px 4px}.app-shell .home-appbar{gap:6px;margin-bottom:3px}.home-appbar-title{font-size:15px}.home-brand-mark,.app-shell .icon-btn,.account-avatar-button{width:36px;height:36px;border-radius:10px}.home-appbar-btn{min-width:54px;height:36px;padding:0 7px}.ui-icon-img{width:16px;height:16px}.home-beta-card{margin:0 0 10px;padding:12px 14px;border:1px solid rgba(122,77,43,.15);border-radius:12px;background:#fff9f0d9;font-size:.84rem}.app-shell-dark .home-beta-card{background:#1e221fd9;border-color:#ffffff1a;color:#d8dfdb}.home-announcement-backdrop{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:20px;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.home-announcement-card{width:min(92vw,420px);max-height:76vh;overflow:auto;padding:18px 18px 14px;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);box-shadow:0 18px 48px #00000052}.home-announcement-title{display:block;font-size:1.02rem;margin-bottom:10px;color:var(--accent, #e85d3f)}.home-announcement-body{font-size:.88rem;line-height:1.7;color:var(--muted, #666)}.home-announcement-body p{margin:0 0 6px}.home-announcement-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.home-announcement-confirm,.home-announcement-close{border:1px solid var(--line);border-radius:10px;padding:8px 14px;background:var(--panel-2);color:var(--text);font-size:.85rem;font-weight:700;cursor:pointer}.home-announcement-confirm{background:var(--accent, #e85d3f);border-color:transparent;color:#fff}.app-shell-dark .home-announcement-card{background:#1e221ff7}.app-shell .home-info-card{padding:0;border-radius:0}.home-search-row{grid-template-columns:minmax(0,1fr) minmax(104px,.68fr);gap:6px;margin-bottom:4px;max-height:40px}.search-shell,.home-mode-switch{height:38px}.search-shell{padding:0 9px;border-radius:10px}.search-shell .search,.home-mode-btn{font-size:13px}.app-shell .chip{width:auto;min-width:40px;min-height:46px;gap:1px;padding:4px 2px 3px;font-size:9px}.home-filter-icon{width:18px;height:18px}.home-filter-icon img{width:16px;height:16px}.home-filter-label{font-size:10px;font-weight:800}.app-shell .world-pack-info{min-height:76px;gap:2px;padding:6px 8px 7px}.app-shell .world-pack-type{font-size:11px}.app-shell .world-pack-title{font-size:14px;line-height:1.18}.world-pack-meta b{font-size:11px}.world-pack-grid.card-grid,.topic-grid{gap:8px}.package-appbar{grid-template-columns:36px minmax(0,1fr) auto;gap:6px;margin-left:-12px;margin-right:-12px;padding:7px 12px 5px}.package-nav-btn{width:36px;height:36px;border-radius:10px}.package-nav-btn .ui-icon-img{width:16px;height:16px}.package-detail-icon{width:32px;height:32px;border-radius:10px}.package-detail-title{font-size:15px}.package-detail-meta{font-size:11px}.package-actionbar{gap:6px;padding:0;border-radius:0}.package-primary-action{min-height:50px;padding:8px 10px}.package-primary-action strong,.package-mini-action{font-size:13px}.package-primary-copy small{font-size:11px}.package-mini-action{min-width:0;padding:0 8px}.package-submode-card{flex-direction:column;align-items:stretch}.package-submode-action{width:100%}.package-section-head{align-items:flex-start}.package-section-head .package-cloud-action{max-width:46%;justify-content:flex-end;text-align:right}.package-save-row{grid-template-columns:minmax(0,1fr) 40px 40px}.package-save-edit,.package-save-delete{width:40px}.package-cloud-restore-row{align-items:flex-start}.package-hero{grid-template-columns:82px minmax(0,1fr);gap:10px;padding:10px}.package-cover{width:82px;height:82px;border-radius:10px}.package-copy p{font-size:13px}.save-row-card{min-height:54px;padding:10px 30px 10px 11px;border-radius:0}.package-save-list{padding:10px;border-radius:12px}}@media(prefers-reduced-motion:reduce){.app-shell *,.app-shell *:before,.app-shell *:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.story-screen{--story-bg: #111317;--story-surface: #17191e;--story-elevated: #202329;--story-text: #f4f5f6;--story-muted: #a6a9b0;--story-line: rgba(255, 255, 255, .09);--story-accent: #63d5b5;--story-accent-ink: #0d2d25;--trade-entry-hint: #71baff;--story-title: #8ecbff;--story-hint: #d6a148;--judge-fail: color-mix(in oklab, #c15454 78%, white);--judge-crit: color-mix(in oklab, #c15454 62%, white);--judge-part: color-mix(in oklab, #7a4d2b 62%, white);background:var(--story-bg);color:var(--story-text)}.story-screen.theme-light{--story-bg: #f7f7f8;--story-surface: #ffffff;--story-elevated: #eceef0;--story-text: #202124;--story-muted: #656970;--story-line: rgba(25, 28, 32, .11);--story-accent: #2d9d80;--story-accent-ink: #ffffff;--trade-entry-hint: #1769aa;--story-title: #2f6f9f;--story-hint: #916820;--judge-fail: #c15454;--judge-crit: color-mix(in oklab, #c15454 68%, #2a201a);--judge-part: #7a4d2b}.story-screen.theme-eye{--story-bg: #eef4e8;--story-surface: #f7faf3;--story-elevated: #e1eadb;--story-text: #263024;--story-muted: #667061;--story-line: rgba(38, 48, 36, .12);--story-accent: #3b987b;--story-accent-ink: #ffffff;--trade-entry-hint: #236b9a;--story-title: #376f96;--story-hint: #916820;--judge-fail: #c15454;--judge-crit: color-mix(in oklab, #c15454 68%, #2a201a);--judge-part: #7a4d2b}.story-screen.theme-paper{--story-bg: #f4ead8;--story-surface: #fbf4e8;--story-elevated: #eadcc6;--story-text: #35291f;--story-muted: #76695d;--story-line: rgba(53, 41, 31, .13);--story-accent: #348f75;--story-accent-ink: #ffffff;--trade-entry-hint: #286b9c;--story-title: #396b8f;--story-hint: #916820;--judge-fail: #c15454;--judge-crit: color-mix(in oklab, #c15454 68%, #2a201a);--judge-part: #7a4d2b}.story-screen .chat-header{flex:0 0 auto;min-height:52px;grid-template-columns:34px minmax(0,1fr);gap:8px;align-items:start;padding:2px 0 5px;border-bottom:1px solid color-mix(in srgb,var(--story-line) 72%,transparent)}.story-screen .chat-icon-button{width:34px;height:34px;border:1px solid color-mix(in srgb,var(--story-line) 78%,transparent);border-radius:12px;background:var(--story-elevated);color:var(--story-text);box-shadow:inset 0 1px color-mix(in srgb,#ffffff 12%,transparent);transition:transform .12s ease,background-color .15s ease,border-color .15s ease}.story-screen .chat-icon-button:active{transform:scale(.98)}.story-screen .chat-icon-button:hover,.story-screen .chat-icon-button:focus-visible,.story-screen .chat-header-menu:hover,.story-screen .chat-header-menu:focus-visible{background:var(--story-elevated)}.story-screen .chat-icon-button:focus-visible,.story-screen .chat-header-menu:focus-visible,.story-screen .choice-button:focus-visible,.story-screen .composer-send:focus-visible{outline:2px solid var(--story-accent);outline-offset:2px}.story-screen .chat-header-menu{min-height:40px;padding:2px 4px;grid-template-columns:20px minmax(0,1fr);gap:5px}.story-screen .story-header-actions{display:flex;align-items:center;gap:3px;flex:0 0 auto;margin-left:auto}.story-screen .story-header-actions .chat-icon-button{flex:0 0 36px;width:36px;height:36px;border-color:transparent;border-radius:10px;background:color-mix(in srgb,var(--story-elevated) 16%,transparent);box-shadow:none;color:var(--story-text)}.story-screen .story-header-actions .chat-icon-button:hover,.story-screen .story-header-actions .chat-icon-button:focus-visible{border-color:color-mix(in srgb,var(--story-line) 42%,transparent);background:color-mix(in srgb,var(--story-accent) 8%,transparent)}.story-screen .story-action-emoji{display:inline-flex;align-items:center;justify-content:center;width:100%;font-size:20px;line-height:1;transform:translateY(-.5px)}.story-screen .chat-header-menu-icon{width:20px;height:20px;border-radius:6px;background:transparent;color:var(--story-muted);font-size:.98rem}.story-screen .chat-header-copy{min-width:0}.story-screen .chat-header-copy h1{margin-bottom:1px;color:var(--story-text);font-size:15px;line-height:1.15;font-weight:750}.story-screen .story-appbar-main{display:flex;flex-direction:column;gap:0;width:100%;max-width:100%;min-width:0;position:relative}.story-screen .story-appbar-top,.story-screen .story-appbar-identity{display:flex;align-items:center;min-width:0}.story-screen .story-appbar-top{gap:8px;min-height:39px}.story-screen .story-appbar-identity{flex:1 1 auto;gap:8px}.story-screen .story-header-cover{width:40px;height:40px;border-radius:12px;overflow:hidden;flex-shrink:0;background:color-mix(in srgb,var(--story-accent) 15%,transparent)}.story-screen .story-header-cover-img{width:100%;height:100%;object-fit:cover}.story-screen .story-header-cover-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:20px;font-weight:750;color:var(--story-accent);-webkit-user-select:none;user-select:none}.story-screen .story-header-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:750;line-height:1.16;color:var(--story-text)}.story-screen .story-header-provider{display:inline-flex;align-items:center;gap:4px;min-height:21px;max-width:100%;padding:0 5px;border:1px solid transparent;border-radius:8px;background:transparent;color:color-mix(in srgb,var(--story-accent) 72%,var(--story-text));font-size:.66rem;font-weight:700;line-height:1.18;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,color .12s ease}.story-screen .story-header-provider[disabled]{opacity:.48;cursor:not-allowed;filter:grayscale(.35)}.story-screen .story-header-provider:hover,.story-screen .story-header-provider:focus-visible{background:color-mix(in srgb,var(--story-accent) 10%,transparent);border-color:color-mix(in srgb,var(--story-accent) 22%,var(--story-line));color:var(--story-text)}.story-screen .story-header-provider:focus-visible{outline:2px solid var(--story-accent);outline-offset:2px}.story-screen .story-header-generating{display:inline-flex;align-items:center;gap:4px;min-height:21px;padding:0;color:color-mix(in srgb,#22c55e 68%,var(--story-text));font-size:.64rem;font-weight:700;line-height:1.16;white-space:nowrap;-webkit-user-select:none;user-select:none}.story-screen .story-header-generating-dot{width:7px;height:7px;border-radius:50%;background:#22c55e;flex-shrink:0;animation:provider-dot-breathe 1.5s ease-in-out infinite}.story-screen .story-header-metaline{display:flex;align-items:center;gap:0;min-width:0;max-width:calc(100% - 46px);margin-top:-2px;margin-left:46px;overflow:hidden;color:color-mix(in srgb,var(--story-muted) 88%,var(--story-text));font-size:.65rem;font-weight:560;line-height:1.12}.story-screen .story-header-meta-entry{display:inline-flex;align-items:center;min-width:0;flex-shrink:0}.story-screen .story-header-meta-entry+.story-header-meta-entry:before{content:"·";margin:0 5px;color:color-mix(in srgb,var(--story-muted) 72%,transparent);flex-shrink:0}.story-screen .story-header-meta-entry-provider{flex:0 1 auto;max-width:48%;min-width:0}.story-screen .story-header-meta-entry-location{flex:0 1 auto;max-width:44%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-screen .story-header-meta-entry-turn{white-space:nowrap}.story-screen .story-header-provider-symbol,.story-screen .story-header-provider-caret{flex-shrink:0}.story-screen .story-header-provider-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes provider-dot-breathe{0%,to{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.7)}}@media(prefers-reduced-motion:reduce){.story-screen .story-header-generating-dot{animation:none}}.story-screen .chat-header.story-status-hud{grid-template-columns:minmax(0,1fr);align-items:start;gap:0;padding-bottom:3px}.story-screen .story-status-main{width:100%;min-width:0;position:relative}.story-screen .story-status-card{display:grid;gap:0;min-width:0;border:1px solid color-mix(in srgb,var(--story-line) 78%,transparent);border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--story-accent) 8%,transparent),transparent 52%),color-mix(in srgb,var(--story-elevated) 82%,var(--story-surface));box-shadow:0 6px 18px #0000000d,inset 0 1px color-mix(in srgb,#ffffff 18%,transparent);overflow:hidden}.story-screen .story-status-topline{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:6px;padding:6px 8px 6px 6px}.story-screen .story-status-card .story-status-back{width:34px;height:34px;border-radius:11px;background:color-mix(in srgb,var(--story-surface) 46%,transparent)}.story-screen .story-status-summary{width:100%;min-width:0;min-height:58px;position:relative;display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:8px;padding:0;color:var(--story-text);text-align:left}.story-screen .story-status-avatar{width:46px;height:46px;border-radius:14px;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:color-mix(in srgb,var(--story-accent) 14%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--story-line) 40%,transparent)}.story-screen .story-status-avatar-img{width:100%;height:100%;object-fit:cover}.story-screen .story-status-avatar-button{border:0;padding:0;cursor:pointer}.story-screen .story-status-avatar-button:focus-visible{outline:2px solid color-mix(in srgb,var(--story-accent) 68%,transparent);outline-offset:2px}.story-screen .story-status-avatar-button:active{transform:translateY(1px) scale(.98)}.story-screen .story-status-avatar-fallback{color:var(--story-accent);font-size:1.15rem;font-weight:800}.story-screen .story-status-copy{min-width:0;display:grid;gap:1px;padding-top:11px}.story-screen .story-status-name-row{min-width:0;display:flex;align-items:baseline;gap:6px}.story-screen .story-status-name-button{min-width:0;max-width:54%;flex:0 1 auto;display:inline-flex;align-items:baseline;gap:2px;padding:0;border:0;background:transparent;color:var(--story-text);cursor:pointer}.story-screen .story-status-name{min-width:0;max-width:54%;overflow:hidden;color:var(--story-text);font-size:.95rem;line-height:1.18;font-weight:790;text-overflow:ellipsis;white-space:nowrap}.story-screen .story-status-name-button .story-status-name{max-width:100%}.story-screen .story-status-rename-hint{color:var(--story-muted);font-size:.62rem;font-weight:650;white-space:nowrap}.story-screen .story-status-detail,.story-screen .story-status-line{overflow:hidden;color:var(--story-muted);font-size:.66rem;line-height:1.2;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.story-screen .story-status-detail{flex:1;min-width:0}.story-screen .story-status-detail-title{color:var(--story-title);font-weight:720;letter-spacing:.02em}.story-screen .story-status-line-goal{max-width:100%;overflow:visible;color:color-mix(in srgb,var(--story-text) 72%,var(--story-muted));text-overflow:clip;white-space:normal}.story-screen .story-status-quick{position:absolute;top:0;right:0;z-index:1;display:inline-flex;color:color-mix(in srgb,var(--story-text) 82%,var(--story-muted));font-size:.62rem;line-height:1;font-weight:760;white-space:nowrap}.story-screen .story-status-quick span{display:inline-flex;align-items:center;gap:2px}.story-screen .story-status-compact-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;padding:0 10px 8px}.story-screen .story-status-chip-button{appearance:none;border:1px solid color-mix(in srgb,var(--story-line) 62%,transparent);border-radius:9px;background:color-mix(in srgb,var(--story-elevated) 48%,transparent);box-shadow:inset 0 1px color-mix(in srgb,#ffffff 5%,transparent),0 1px 1px color-mix(in srgb,#000000 5%,transparent);color:var(--story-text);font-family:inherit;font-size:.78rem;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent;min-width:0;min-height:46px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;align-items:center;justify-content:center;row-gap:2px;padding:5px 2px 4px;overflow:hidden;text-align:center;transition:transform .12s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}.story-screen .story-status-chip-button>span{grid-row:1;font-size:1rem;line-height:1}.story-screen .story-status-chip-button strong{grid-column:1;grid-row:2;min-width:0;max-width:100%;overflow:hidden;color:var(--story-text);font-size:.65rem;font-weight:800;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}.story-screen .story-status-chip-button:hover{border-color:color-mix(in srgb,var(--story-accent) 8%,var(--story-line));background:color-mix(in srgb,var(--story-elevated) 58%,var(--story-accent) 2%);box-shadow:inset 0 1px color-mix(in srgb,#ffffff 6%,transparent),0 1px 2px color-mix(in srgb,#000000 6%,transparent)}.story-screen .story-status-chip-button:focus{outline:none}.story-screen .story-status-chip-button:focus-visible{outline:2px solid color-mix(in srgb,var(--story-accent) 72%,transparent);outline-offset:2px}.story-screen .story-status-chip-button:active{transform:translateY(.5px) scale(.995);border-color:color-mix(in srgb,var(--story-accent) 12%,var(--story-line));background:color-mix(in srgb,var(--story-accent) 3%,var(--story-elevated));box-shadow:inset 0 1px 1px color-mix(in srgb,#000000 7%,transparent)}.story-screen .story-status-inline-message{margin:0;color:var(--story-muted);font-size:.68rem;font-weight:700}.story-screen .story-status-inline-message-collapsed{padding:0 10px 8px}.story-screen .story-rename-overlay{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:18px;background:#00000061;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.story-screen .story-rename-dialog{width:min(420px,100%);display:grid;gap:14px;padding:18px;border:1px solid color-mix(in srgb,var(--story-line) 72%,transparent);border-radius:20px;background:linear-gradient(135deg,color-mix(in srgb,var(--story-accent) 10%,transparent),transparent 56%),var(--story-elevated);color:var(--story-text);box-shadow:0 22px 58px #00000047}.story-screen .story-rename-heading{display:grid;gap:4px}.story-screen .story-rename-kicker{color:var(--story-accent);font-size:.68rem;font-weight:820;letter-spacing:.08em}.story-screen .story-rename-heading h3{margin:0;font-size:1.12rem;line-height:1.2;font-weight:840}.story-screen .story-rename-heading p{margin:0;color:var(--story-muted);font-size:.78rem;line-height:1.45}.story-screen .story-rename-field{display:grid;gap:7px;color:var(--story-muted);font-size:.72rem;font-weight:760}.story-screen .story-rename-field input{width:100%;min-height:44px;padding:0 13px;border:1px solid color-mix(in srgb,var(--story-line) 82%,transparent);border-radius:13px;background:color-mix(in srgb,var(--story-surface) 82%,transparent);color:var(--story-text);font-size:1rem;font-weight:720;outline:none}.story-screen .story-rename-field input:focus{border-color:color-mix(in srgb,var(--story-accent) 62%,var(--story-line));box-shadow:0 0 0 3px color-mix(in srgb,var(--story-accent) 18%,transparent)}.story-screen .story-rename-message{margin:-4px 0 0;color:var(--story-muted);font-size:.72rem;font-weight:720}.story-screen .story-rename-actions{display:flex;justify-content:flex-end;gap:9px}.story-screen .story-rename-actions button{min-height:38px;padding:0 15px;border-radius:12px;font-size:.82rem;font-weight:790}.story-screen .story-rename-cancel{border:1px solid color-mix(in srgb,var(--story-line) 72%,transparent);background:color-mix(in srgb,var(--story-surface) 58%,transparent);color:var(--story-muted)}.story-screen .story-rename-submit{border:1px solid color-mix(in srgb,var(--story-accent) 52%,transparent);background:color-mix(in srgb,var(--story-accent) 24%,var(--story-elevated));color:var(--story-text)}.story-screen .avatar-picker-overlay{position:fixed;inset:0;z-index:125;display:flex;align-items:flex-end;justify-content:center;padding:18px 12px max(18px,env(safe-area-inset-bottom));background:#0000006b;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.story-screen .avatar-picker-dialog{width:min(520px,100%);max-height:min(76vh,680px);display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:12px;padding:16px;overflow:hidden;border:1px solid color-mix(in srgb,var(--story-line) 72%,transparent);border-radius:24px;background:linear-gradient(135deg,color-mix(in srgb,var(--story-accent) 10%,transparent),transparent 58%),var(--story-elevated);color:var(--story-text);box-shadow:0 22px 58px #00000047}.story-screen .avatar-picker-heading{display:grid;gap:4px}.story-screen .avatar-picker-kicker{color:var(--story-accent);font-size:.68rem;font-weight:820;letter-spacing:.08em}.story-screen .avatar-picker-heading h3{margin:0;font-size:1.12rem;line-height:1.2;font-weight:840}.story-screen .avatar-picker-heading p{margin:0;color:var(--story-muted);font-size:.76rem;line-height:1.45}.story-screen .avatar-picker-grid{min-height:0;max-height:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:9px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:2px 1px 4px}.story-screen .avatar-picker-option{min-width:0;display:grid;gap:5px;justify-items:center;padding:7px 5px;border:1px solid color-mix(in srgb,var(--story-line) 58%,transparent);border-radius:15px;background:color-mix(in srgb,var(--story-surface) 62%,transparent);color:var(--story-muted);font-size:.66rem;font-weight:760;cursor:pointer}.story-screen .avatar-picker-option.is-selected{border-color:color-mix(in srgb,var(--story-accent) 72%,var(--story-line));background:color-mix(in srgb,var(--story-accent) 18%,var(--story-elevated));color:var(--story-text);box-shadow:0 0 0 2px color-mix(in srgb,var(--story-accent) 14%,transparent)}.story-screen .avatar-picker-option img{width:58px;height:58px;border-radius:15px;object-fit:cover;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--story-line) 35%,transparent)}.story-screen .avatar-picker-option span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-screen .avatar-picker-message{margin:-2px 0 0;color:var(--story-muted);font-size:.72rem;font-weight:740}.story-screen .avatar-picker-toast{position:fixed;top:calc(env(safe-area-inset-top) + 88px);left:50%;z-index:130;max-width:min(320px,calc(100vw - 32px));padding:9px 13px;border:1px solid color-mix(in srgb,var(--story-accent) 42%,transparent);border-radius:999px;background:color-mix(in srgb,var(--story-elevated) 92%,transparent);color:var(--story-text);font-size:.76rem;font-weight:780;line-height:1.25;text-align:center;box-shadow:0 12px 28px #00000038;pointer-events:none;transform:translate(-50%)}.story-screen .avatar-picker-actions{display:flex;justify-content:flex-end}.story-screen .avatar-picker-close{min-height:38px;padding:0 16px;border:1px solid color-mix(in srgb,var(--story-accent) 52%,transparent);border-radius:12px;background:color-mix(in srgb,var(--story-accent) 24%,var(--story-elevated));color:var(--story-text);font-size:.82rem;font-weight:790}.story-screen .story-status-provider-row{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:6px;padding:1px 6px 2px;border-top:1px solid color-mix(in srgb,var(--story-line) 48%,transparent);background:color-mix(in srgb,var(--story-surface) 16%,transparent)}.story-screen .story-status-provider-main{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:5px}.story-screen .story-status-provider-title{color:var(--story-muted);font-size:.68rem;font-weight:760;white-space:nowrap}.story-screen .story-status-provider-row .story-header-meta-entry-provider{min-width:0;max-width:none}.story-screen .story-status-provider-row .story-header-provider{width:100%;justify-content:flex-start;min-height:20px;padding:0 4px;border-color:color-mix(in srgb,var(--story-line) 34%,transparent);background:color-mix(in srgb,var(--story-elevated) 46%,transparent);color:color-mix(in srgb,var(--story-text) 88%,var(--story-accent));font-size:.68rem;font-weight:760}.story-screen .story-status-provider-row .story-header-provider-label{max-width:none;color:inherit}.story-screen .story-status-provider-row .story-header-provider-static{cursor:default}.story-screen .story-status-generating{display:inline-flex;align-items:center;gap:4px;color:color-mix(in srgb,#22c55e 70%,var(--story-text));font-size:.66rem;font-weight:780;white-space:nowrap}.story-screen .story-status-provider-row .story-settings-note{margin:0;font-size:.64rem}.story-screen .story-status-footer-settings{flex:0 0 auto;width:28px;height:24px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid color-mix(in srgb,var(--story-line) 70%,transparent);border-radius:9px;background:color-mix(in srgb,var(--story-elevated) 82%,transparent);color:var(--story-text);font-size:.86rem;font-weight:760}.story-screen .story-status-settings-emoji{line-height:1}.story-screen .provider-popover{position:absolute;top:calc(100% + 5px);left:48px;z-index:50;min-width:180px;max-width:min(260px,calc(100% - 48px));padding:3px;border:1px solid var(--story-line);border-radius:10px;background:var(--story-elevated);box-shadow:0 4px 16px #0000002e;display:flex;flex-direction:column;gap:2px}.story-screen .provider-popover-item{width:100%;padding:5px 8px;border:0;border-radius:7px;background:transparent;color:var(--story-text);font-size:.72rem;font-weight:600;text-align:left;cursor:pointer;line-height:1.35}.story-screen .provider-popover-item:hover,.story-screen .provider-popover-item:focus-visible{background:color-mix(in srgb,var(--story-accent) 10%,transparent)}.story-screen .provider-popover-item:focus-visible{outline:2px solid var(--story-accent);outline-offset:-2px}.story-screen .provider-popover-item-active{color:var(--story-accent);background:color-mix(in srgb,var(--story-accent) 8%,transparent)}.story-screen .provider-confirm-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;background:#00000073;animation:provider-overlay-in .16s ease}@keyframes provider-overlay-in{0%{opacity:0}to{opacity:1}}.story-screen .provider-confirm-dialog{width:min(100%,340px);border-radius:18px;padding:18px;background:var(--story-bg);box-shadow:0 12px 36px #00000047;animation:provider-dialog-in .18s ease}@keyframes provider-dialog-in{0%{transform:scale(.94);opacity:0}to{transform:scale(1);opacity:1}}.story-screen .provider-confirm-dialog-title{margin:0 0 8px;color:var(--story-text);font-size:1rem;font-weight:750}.story-screen .provider-confirm-dialog-body{margin:0 0 4px;color:var(--story-text);font-size:.82rem;font-weight:650;line-height:1.45}.story-screen .provider-confirm-dialog-note{margin:0 0 14px;color:var(--story-muted);font-size:.72rem;font-weight:600;line-height:1.5}.story-screen .provider-confirm-dialog-actions{display:flex;justify-content:flex-end;gap:8px}.story-screen .provider-confirm-dialog-cancel,.story-screen .provider-confirm-dialog-ok{min-height:34px;padding:4px 16px;border-radius:10px;font-size:.8rem;font-weight:650;cursor:pointer;transition:background-color .12s ease,border-color .12s ease}.story-screen .provider-confirm-dialog-cancel{border:1px solid var(--story-line);background:var(--story-elevated);color:var(--story-text)}.story-screen .provider-confirm-dialog-cancel:hover,.story-screen .provider-confirm-dialog-cancel:focus-visible{background:color-mix(in srgb,var(--story-muted) 14%,transparent)}.story-screen .provider-confirm-dialog-ok{border:1px solid var(--story-accent);background:var(--story-accent);color:#fff;font-weight:750}.story-screen .provider-confirm-dialog-ok:hover,.story-screen .provider-confirm-dialog-ok:focus-visible{background:color-mix(in srgb,var(--story-accent) 85%,#000)}.story-screen .chat-status-pill{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:4px 8px;background:color-mix(in srgb,var(--story-accent) 14%,transparent);color:var(--story-accent);font-size:.68rem}.story-screen .story-feed{padding:4px 2px 8px}.story-screen .turn-thread{width:min(100%,46rem);margin-right:auto;margin-bottom:20px;margin-left:auto;gap:10px;min-width:0}.story-screen .message-block{gap:7px}.story-screen .message-role,.story-screen .gm-role{color:var(--story-muted);letter-spacing:0}.story-screen .gm-role{font-size:.75rem}.story-screen .message-body{width:100%;max-width:70ch;overflow-wrap:anywhere;word-break:break-word}.story-screen .message-body p{margin-bottom:11px;color:var(--story-text);line-height:1.68;font-weight:600;text-wrap:pretty;overflow-wrap:anywhere}.story-screen .story-soft-line{display:block}.story-screen .story-soft-separator{display:none}.story-screen .message-body pre,.story-screen .message-body code,.story-screen .message-body table{max-width:100%;overflow-x:auto;white-space:pre-wrap;word-break:break-word}.story-screen .player-block .message-body{width:auto;max-width:min(86%,30rem);padding:7px 10px;border:0;border-radius:12px;overflow-wrap:anywhere;background:var(--story-elevated)}.story-screen .player-block .message-role{color:var(--story-muted);font-size:.7rem}.story-screen .player-block .message-body p{color:color-mix(in srgb,var(--story-text) 78%,var(--story-muted));font-size:.94rem;line-height:1.55;font-weight:550}.story-screen .message-suggestions{gap:2px;margin-top:9px;padding-top:7px;border-top-color:var(--story-line)}.story-screen .message-suggestions strong{margin-bottom:2px;color:var(--story-muted);font-size:.76rem;letter-spacing:0}.story-screen .choice-button{min-height:40px;padding:4px 2px;border-radius:8px;display:block;color:var(--story-text);overflow-wrap:anywhere;transition:background-color .16s ease,color .16s ease}.story-screen .choice-button:hover,.story-screen .choice-button:focus-visible{background:color-mix(in srgb,var(--story-elevated) 78%,transparent);color:var(--story-text)}.story-screen .choice-button.is-selected,.story-screen .choice-button.is-selected:disabled{display:flex;align-items:center;gap:10px;padding-inline:8px;background:color-mix(in srgb,var(--story-accent) 12%,var(--story-elevated));color:var(--story-text);opacity:1}.story-screen .choice-selected-mark{flex:0 0 auto;color:var(--story-accent);font-size:.72rem;font-weight:750;letter-spacing:.02em}.story-screen .message-body .message-suggestions .choice-pending-status{display:flex;align-items:center;gap:5px;margin:7px 0 0;padding-left:2px;color:var(--story-muted);font-size:.76rem;font-weight:600;line-height:1.25;letter-spacing:.01em}.story-screen .choice-pending-runner{display:inline-block;flex:0 0 auto;animation:choice-pending-run 1.2s ease-in-out infinite}@keyframes choice-pending-run{0%,to{transform:translate(0)}50%{transform:translate(3px)}}.story-screen .choice-streaming-preview{margin-top:10px;padding-top:10px;border-top:1px solid var(--story-line)}.story-screen .choice-button-inline{display:inline-flex;align-items:flex-start;gap:8px;width:100%}.story-screen .choice-button-label{color:inherit;line-height:1.38;font-weight:650;flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.story-screen .choice-index,.story-screen .choice-ordinal{color:var(--story-muted)}.story-screen .trade-entry-extra{width:100%;margin-bottom:4px;text-align:left}.story-screen .trade-entry-hint{color:var(--trade-entry-hint);font-weight:700}.story-screen .choice-index{width:32px;text-align:center;font-variant-numeric:tabular-nums}.story-screen .choice-ordinal{min-width:2.4em;font-size:1rem;line-height:1.3}.story-screen .choice-action-icon{width:1.35em;min-width:1.35em;min-height:1.35em;display:inline-flex;align-items:center;justify-content:center;justify-self:start;background:transparent;color:inherit;font-size:1.08em;line-height:1;filter:saturate(1.04)}.story-screen .composer-shell{flex:0 0 auto;margin:0 calc(var(--screen-gutter) * -1);padding:7px var(--screen-gutter) calc(var(--safe-bottom) + 2px);border-top:1px solid var(--story-line);background:transparent}.story-generation-error{width:min(100%,46rem);display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 auto 8px;padding:9px 10px;border:1px solid color-mix(in srgb,#c75b55 42%,var(--story-line));border-radius:10px;background:color-mix(in srgb,#c75b55 10%,var(--story-surface));color:var(--story-text);font-size:13px;line-height:1.4}.story-generation-error button{flex:0 0 auto;min-height:34px;padding:0 11px;border:0;border-radius:8px;background:var(--story-accent);color:var(--story-accent-ink);font:inherit;font-weight:750}.story-screen .composer-bar{width:min(100%,46rem);margin:0 auto;gap:8px;background:transparent}.story-screen .composer-bar textarea{min-height:40px;max-height:176px;min-width:0;width:100%;padding:9px 12px;resize:none;border:1px solid transparent;border-radius:12px;background:var(--story-elevated);color:var(--story-text);line-height:1.45;outline:none;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;box-sizing:border-box}.story-screen .composer-bar textarea::-webkit-scrollbar{display:none}.story-screen .composer-bar textarea::placeholder{color:var(--story-muted);opacity:1}.story-screen .composer-bar textarea:focus{border-color:var(--story-accent)}.story-screen .composer-send{width:48px;height:44px;min-width:48px;flex-shrink:0;padding:0;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:14px;background:color-mix(in srgb,var(--story-accent) 16%,var(--story-elevated));color:var(--story-accent);cursor:pointer;box-shadow:0 2px 8px color-mix(in srgb,var(--story-accent) 22%,transparent);transition:background-color .15s ease,transform .1s ease,box-shadow .15s ease,color .15s ease,opacity .15s ease;box-sizing:border-box}.story-screen .composer-send-icon{font-size:1.85rem;line-height:1;font-weight:900;color:var(--story-accent);display:inline-flex;align-items:center;justify-content:center;transform:translateY(-1px)}.story-screen .composer-send:hover{background:color-mix(in srgb,var(--story-accent) 24%,var(--story-elevated));box-shadow:0 4px 14px color-mix(in srgb,var(--story-accent) 30%,transparent)}.story-screen .composer-send:active{transform:scale(.94)}.story-screen .composer-send:disabled{background:color-mix(in srgb,var(--story-accent) 10%,var(--story-elevated));color:var(--story-accent);cursor:not-allowed;transform:none;box-shadow:none;opacity:.68}.story-screen .composer-meta{width:min(100%,46rem);margin:0 auto;justify-content:flex-start;color:var(--story-muted)}.story-settings-sheet{--sheet-bg: var(--story-surface);--sheet-elevated: var(--story-elevated);--sheet-text: var(--story-text);--sheet-muted: var(--story-muted);--sheet-line: var(--story-line);--sheet-accent: var(--story-accent)}.story-setting-field{display:grid;gap:8px}.story-setting-field span{color:var(--muted);font-weight:700}.story-setting-field select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--text);padding:0 12px;font:inherit}.account-center-sheet .story-setting-field select{color-scheme:dark;background:var(--panel-2);color:var(--text)}.account-center-sheet .story-setting-field select option{background:var(--panel-2);color:var(--text)}.character-record-sheet{--sheet-bg: var(--story-surface);--sheet-elevated: var(--story-elevated);--sheet-text: var(--story-text);--sheet-muted: var(--story-muted);--sheet-line: var(--story-line);--sheet-accent: var(--story-accent)}.character-record-sheet .bottom-sheet-panel{width:min(100%,560px);height:100dvh;max-height:100dvh;margin-bottom:0;border-radius:0}.character-record-sheet-focused.bottom-sheet-root{pointer-events:none}.character-record-sheet-focused .bottom-sheet-backdrop{display:none}.character-record-sheet-focused .bottom-sheet-panel{width:min(100%,560px);height:min(72dvh,720px);max-height:calc(100dvh - 148px - env(safe-area-inset-top));margin-bottom:0;border:1px solid var(--sheet-line);border-bottom:0;border-radius:18px 18px 0 0;pointer-events:auto;box-shadow:0 -10px 28px #00000047}.character-record-sheet .bottom-sheet-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.character-record-sheet .bottom-sheet-tabs button{min-height:44px;padding:6px 2px;font-size:.8rem;font-weight:600}.character-record-sheet .bottom-sheet-tabs button.selected{font-weight:700}.focused-record-dock{width:min(100%,560px);min-height:min(56dvh,540px);max-height:72dvh;margin:-2px auto 0;border:1px solid color-mix(in srgb,var(--story-line) 84%,transparent);border-radius:18px 18px 0 0;overflow:hidden;background:var(--story-surface);box-shadow:0 -10px 28px #0000002e;color:var(--story-text);display:flex;flex-direction:column;min-width:0}.focused-record-dock-head{display:grid;justify-items:start;gap:8px;padding:10px 20px 8px;border-bottom:1px solid color-mix(in srgb,var(--story-line) 78%,transparent);background:color-mix(in srgb,var(--story-elevated) 34%,transparent)}.focused-record-dock-handle{justify-self:center;width:46px;height:5px;border-radius:999px;background:color-mix(in srgb,var(--story-muted) 38%,transparent)}.focused-record-dock-head h2{margin:0;font-size:1.08rem}.focused-record-dock-scroll{flex:1;min-height:0;overflow-y:auto;padding:14px 20px 28px}.story-screen.record-focused-open .story-feed,.story-screen.record-focused-open .composer-shell,.story-screen.record-focused-open .story-continuation-indicator{display:none}.character-record-overview{position:sticky;top:0;z-index:2;display:grid;gap:10px;padding:12px 14px;border-bottom:1px solid var(--story-line);background:var(--story-surface);animation:record-overview-in .16s ease-out}.character-record-summary{display:contents}.character-record-summary-collapsed{display:none}.character-record-summary-sections{display:grid;padding:0 14px}.character-record-summary-sections .record-section:last-child{border-bottom:1px solid var(--story-line)}.record-overview-toggle{display:flex;align-items:center;justify-content:center;width:100%;min-height:36px;padding:0;border:0;background:transparent}.record-overview-toggle-bar{display:flex;align-items:center;justify-content:center;width:100%;height:24px;border-bottom:1px solid var(--story-line);background:color-mix(in srgb,var(--story-elevated) 40%,transparent);color:var(--story-muted);font-size:11px;line-height:1;transition:background .12s ease,color .12s ease}.record-overview-toggle:hover .record-overview-toggle-bar{background:color-mix(in srgb,var(--story-elevated) 68%,transparent);color:var(--story-text)}.record-overview-toggle:focus-visible{outline:2px solid var(--story-accent);outline-offset:-2px}.record-overview-toggle-glyph{animation:record-overview-glyph-in .14s ease-out}@keyframes record-overview-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes record-overview-glyph-in{0%{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}.record-identity{min-width:0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.record-identity>span:first-child{min-width:0;display:grid;gap:2px}.record-identity-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px}.record-identity-button{min-height:32px;padding:0 12px;border:1px solid var(--story-line);border-radius:10px;background:transparent;color:var(--story-muted);font-size:.72rem;font-weight:600}.record-identity-feedback{color:var(--story-muted)}.record-identity strong{overflow:hidden;color:var(--story-text);font-size:1rem;line-height:1.25;font-weight:760;text-overflow:ellipsis;white-space:nowrap}.record-identity small,.record-location{color:var(--story-muted);font-size:.72rem;line-height:1.35;font-weight:600}.record-location{flex:0 1 auto;min-width:0;display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;padding-top:2px;text-align:right}.record-location svg{flex:0 0 auto}.record-resource-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:5px;border:1px solid var(--story-line);border-radius:12px;background:var(--story-elevated)}.record-metric{min-width:0;min-height:50px;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;background:color-mix(in srgb,var(--story-surface) 55%,transparent);color:var(--story-accent)}.record-metric+.record-metric{border-left:0}.record-metric>span{min-width:0;display:grid;gap:1px}.record-metric small{overflow:hidden;color:var(--story-muted);font-size:.68rem;line-height:1.2;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.record-metric strong{overflow:hidden;color:var(--story-text);font-size:.88rem;line-height:1.25;font-weight:720;text-overflow:ellipsis;white-space:nowrap}.record-overview-notes{display:grid;gap:5px}.record-overview-notes>span{display:flex;align-items:flex-start;gap:6px;color:var(--story-muted);font-size:.72rem;line-height:1.45}.record-overview-notes .record-note-warning{color:var(--story-text);font-weight:650}.record-overview-notes svg{flex:0 0 auto;margin-top:2px;color:var(--story-accent)}.character-record-page{display:grid;padding:0 14px calc(18px + env(safe-area-inset-bottom))}.record-section{display:grid;gap:8px;padding:15px 0;border-bottom:1px solid var(--story-line)}.record-section:last-child{border-bottom:0}.record-section-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.record-section h2,.record-world-group h3{margin:0;color:var(--story-text);letter-spacing:0}.record-section h2{font-size:.88rem;line-height:1.3;font-weight:750}.record-world-group h3{color:var(--story-muted);font-size:.72rem;line-height:1.3;font-weight:700}.record-summary,.record-empty,.record-detail-list p,.record-world-group p{margin:0;color:var(--story-muted);font-size:.78rem;line-height:1.65}.record-summary{color:var(--story-text)}.record-memory-progress{color:var(--story-muted);font-size:.7rem;font-weight:650}.record-memory-status{display:grid;gap:8px;padding:12px;border:1px solid color-mix(in srgb,var(--story-line) 82%,transparent);border-radius:12px;background:color-mix(in srgb,var(--story-elevated) 68%,transparent)}.record-memory-status>strong{color:var(--story-text);font-size:.9rem}.record-memory-status>p,.record-memory-repair>p{margin:0;color:var(--story-muted);font-size:.76rem;line-height:1.55}.record-memory-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.record-memory-status-grid>div{min-width:0;padding:8px 9px;border-radius:9px;background:color-mix(in srgb,var(--story-surface) 72%,transparent)}.record-memory-status-grid dt,.record-memory-status-grid dd{margin:0}.record-memory-status-grid dt{color:var(--story-muted);font-size:.68rem}.record-memory-status-grid dd{margin-top:3px;overflow-wrap:anywhere;color:var(--story-text);font-size:.78rem;font-weight:700}.record-memory-repair{padding:10px 12px;border:1px dashed color-mix(in srgb,var(--story-line) 86%,transparent);border-radius:10px}.record-memory-repair summary{min-height:32px;color:var(--story-muted);font-size:.74rem;font-weight:700;cursor:pointer}.record-memory-repair[open]{display:grid;gap:9px}.memory-inspector-dev-trigger{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:calc(86px + env(safe-area-inset-bottom));z-index:42;min-height:42px;display:inline-flex;align-items:center;gap:7px;padding:0 13px;border:1px solid var(--story-line);border-radius:999px;background:var(--story-elevated);color:var(--story-text);box-shadow:0 8px 24px #00000038;font-size:.72rem;font-weight:750}.memory-inspector-dev-trigger:focus-visible{outline:2px solid var(--story-accent);outline-offset:2px}.memory-inspector-sheet .bottom-sheet-panel{width:min(100%,760px);height:100dvh;max-height:100dvh;margin-bottom:0;border-radius:0}.memory-inspector-sheet .bottom-sheet-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.memory-inspector-query{position:sticky;top:0;z-index:2;display:grid;gap:7px;padding:12px 14px;border-bottom:1px solid var(--sheet-line);background:var(--sheet-surface)}.memory-inspector-query>label{color:var(--sheet-text);font-size:.78rem;font-weight:750}.memory-inspector-query>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.memory-inspector-query input,.memory-inspector-query button,.memory-inspector-record button{min-height:44px;border:1px solid var(--sheet-line);border-radius:10px;background:var(--sheet-elevated);color:var(--sheet-text)}.memory-inspector-query input{min-width:0;padding:0 11px}.memory-inspector-query button,.memory-inspector-record button{padding:0 12px;font-weight:700}.memory-inspector-query small,.memory-inspector-footnote,.memory-inspector-panel small{color:var(--sheet-muted);font-size:.7rem;line-height:1.45}.memory-inspector-panel{display:grid;gap:12px;padding:14px 14px calc(24px + env(safe-area-inset-bottom))}.memory-inspector-section{min-width:0;display:grid;gap:8px;padding:12px;border:1px solid var(--sheet-line);border-radius:12px;background:var(--sheet-elevated)}.memory-inspector-section h3,.memory-inspector-section p{margin:0}.memory-inspector-section h3{color:var(--sheet-text);font-size:.82rem}.memory-inspector-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}.memory-inspector-metrics>div{min-width:0;padding:8px;border-radius:8px;background:color-mix(in srgb,var(--sheet-surface) 72%,transparent)}.memory-inspector-metrics dt,.memory-inspector-metrics dd{margin:0;overflow-wrap:anywhere}.memory-inspector-metrics dt{color:var(--sheet-muted);font-size:.66rem}.memory-inspector-metrics dd{margin-top:2px;color:var(--sheet-text);font-weight:750}.memory-inspector-record{min-width:0;padding:10px;border:1px solid color-mix(in srgb,var(--sheet-line) 78%,transparent);border-radius:9px;overflow-wrap:anywhere}.memory-inspector-record summary{color:var(--sheet-text);font-weight:700;cursor:pointer}.memory-inspector-record p{margin:7px 0;color:var(--sheet-muted);line-height:1.55}.memory-inspector-raw-turns{display:grid;gap:7px;margin-top:8px}.memory-inspector-json{max-width:100%;max-height:55dvh;margin:0;padding:12px;overflow:auto;border-radius:9px;background:color-mix(in srgb,#000 72%,var(--sheet-surface));color:#d8f4df;font-size:.7rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.memory-inspector-warning,.memory-inspector-notice{margin:0;padding:10px 12px;border-radius:9px;background:color-mix(in srgb,var(--sheet-accent) 10%,transparent);color:var(--sheet-text);font-size:.74rem;line-height:1.5}.memory-inspector-error{color:var(--sheet-danger)}@media(max-width:420px){.memory-inspector-query>div{grid-template-columns:1fr}.memory-inspector-dev-trigger{right:10px;bottom:calc(78px + env(safe-area-inset-bottom))}}.record-progress-list{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 12px;margin:0;padding:10px 12px;border:1px solid color-mix(in srgb,var(--story-line) 80%,transparent);border-radius:12px;background:color-mix(in srgb,var(--story-elevated) 62%,transparent)}.record-progress-list dt,.record-progress-list dd{margin:0;min-width:0;font-size:.78rem;line-height:1.45}.record-progress-list dt{color:var(--story-muted);font-weight:650}.record-progress-list dd{color:var(--story-text);font-weight:620}.record-section-action{min-height:30px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:1px solid color-mix(in srgb,var(--story-accent) 24%,var(--story-line));border-radius:999px;background:color-mix(in srgb,var(--story-accent) 10%,var(--story-elevated));color:var(--story-text);font-size:.72rem;font-weight:700}.record-section-action:disabled{opacity:.7;cursor:wait}.record-creation-entry{display:grid;gap:4px}.record-creation-entry-button{width:100%;justify-content:center}.record-creation-entry small{color:var(--story-muted);font-size:.7rem;line-height:1.4}.record-inline-error{margin:0;color:#c65b5b;font-size:.72rem;line-height:1.45;font-weight:600}.record-string-list,.record-timeline,.record-detail-list,.record-world-group ul{display:grid;margin:0;padding:0;list-style:none}.record-string-list li{position:relative;padding:7px 0 7px 16px;color:var(--story-text);font-size:.78rem;line-height:1.55}.record-string-list--with-icon li{display:flex;align-items:flex-start;gap:8px;padding-left:0}.record-string-list li:before{content:"";position:absolute;top:14px;left:2px;width:5px;height:5px;border-radius:50%;background:var(--story-accent)}.record-string-list--with-icon li:before{display:none}.record-string-list--with-icon li svg{flex:0 0 auto;margin-top:2px;color:var(--story-accent)}.record-string-list--with-icon li span{min-width:0}.record-timeline li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px;padding:9px 0;border-bottom:1px solid var(--story-line)}.record-timeline li:last-child,.record-detail-list li:last-child,.record-world-group li:last-child{border-bottom:0}.record-timeline small{color:var(--story-muted);font-size:.68rem;font-weight:650}.record-timeline span{color:var(--story-text);font-size:.78rem;line-height:1.55}.record-world-group{display:grid;gap:4px;padding-top:6px}.record-world-group li,.record-detail-list li{min-width:0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--story-line)}.record-world-group li>span,.record-detail-list li>span{min-width:0;display:grid;gap:3px}.record-world-group strong,.record-detail-list strong{color:var(--story-text);font-size:.82rem;line-height:1.35;font-weight:720}.record-world-group small,.record-detail-list small{color:var(--story-muted);font-size:.7rem;line-height:1.4;font-weight:580}.record-detail-list b{flex:0 0 auto;color:var(--story-accent);font-size:.72rem;line-height:1.4;font-weight:720}.record-detail-list .record-item-entry{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"copy quantity actions";align-items:center;gap:6px 8px}.record-item-copy{grid-area:copy;min-width:0;display:grid;gap:3px}.record-item-quantity{grid-area:quantity;justify-self:end}.record-item-actions button:focus-visible,.story-screen .story-status-chip-button:focus-visible{outline:2px solid var(--story-accent);outline-offset:2px}.record-item-actions{grid-area:actions;display:flex;align-items:center;justify-content:flex-end;gap:6px}.record-item-actions button{min-width:46px;min-height:42px;padding:0 10px;border:1px solid color-mix(in srgb,var(--story-accent) 24%,var(--story-line));border-radius:9px;background:color-mix(in srgb,var(--story-accent) 10%,var(--story-elevated));color:var(--story-text);font-size:.74rem;font-weight:650}.record-item-actions button:hover:not(:disabled),.record-item-actions button:focus-visible{background:color-mix(in srgb,var(--story-accent) 20%,var(--story-elevated));border-color:color-mix(in srgb,var(--story-accent) 45%,var(--story-line))}.record-item-actions button:disabled{opacity:.45}.record-inline-warning{margin:2px 0 0;color:color-mix(in srgb,var(--story-accent) 72%,var(--story-text) 28%);font-size:.72rem;line-height:1.5;font-weight:650}.record-large-value{margin:0;color:var(--story-text);font-size:1.15rem;line-height:1.3;font-weight:760}.record-quest-list li>span{gap:4px}.rpg-browser-shell{container:rpg-browser / inline-size;min-width:0;margin-top:4px}.rpg-browser{display:grid;gap:10px;min-width:0}.rpg-chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.rpg-chips::-webkit-scrollbar{display:none}.rpg-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 12px;border:1px solid color-mix(in srgb,var(--story-line) 90%,transparent);border-radius:999px;background:color-mix(in srgb,var(--story-elevated) 55%,transparent);color:var(--story-muted);font-size:.74rem;font-weight:650;white-space:nowrap;transition:background .12s ease,border-color .12s ease}.rpg-chip-emoji{flex:0 0 auto;font-size:15px;line-height:1.1}.rpg-chip:hover{background:color-mix(in srgb,var(--story-elevated) 85%,transparent)}.rpg-chip--active,.rpg-chip--active:hover{border-color:color-mix(in srgb,var(--story-accent) 55%,var(--story-line));background:color-mix(in srgb,var(--story-accent) 14%,transparent);color:var(--story-text)}.rpg-chip:focus-visible{outline:2px solid var(--story-accent);outline-offset:2px}.rpg-chip-count{padding:1px 6px;border-radius:999px;background:color-mix(in srgb,var(--story-muted) 18%,transparent);color:var(--story-muted);font-size:.64rem;font-weight:700;font-variant-numeric:tabular-nums}.rpg-browser--record-categories .rpg-chips,.rpg-browser--people-categories .rpg-chips{gap:3px;padding-bottom:2px}.rpg-browser--record-categories .rpg-chip,.rpg-browser--people-categories .rpg-chip{gap:3px;min-height:29px;padding:0 7px;font-size:.7rem}.rpg-browser--record-categories .rpg-chip-emoji,.rpg-browser--people-categories .rpg-chip-emoji{font-size:13px}.rpg-browser--record-categories .rpg-chip-count,.rpg-browser--people-categories .rpg-chip-count{padding:1px 4px;font-size:.6rem}.rpg-people-shell .rpg-row-badges{gap:3px}.rpg-people-shell .rpg-badge{min-height:20px;max-width:100%;padding:2px 6px;font-size:.68rem;line-height:1.2;overflow-wrap:anywhere;white-space:normal}.rpg-people-shell .rpg-badge--role{border-color:color-mix(in srgb,#5b9bd5 48%,var(--story-line));background:color-mix(in srgb,#5b9bd5 16%,var(--story-elevated))}.rpg-people-shell .rpg-badge--positive{border-color:color-mix(in srgb,#70a66d 48%,var(--story-line));background:color-mix(in srgb,#70a66d 16%,var(--story-elevated))}.rpg-people-shell .rpg-badge--hostile{border-color:color-mix(in srgb,#bf6965 48%,var(--story-line));background:color-mix(in srgb,#bf6965 15%,var(--story-elevated))}.rpg-people-shell .rpg-badge--warning{border-color:color-mix(in srgb,#c5943e 48%,var(--story-line));background:color-mix(in srgb,#c5943e 16%,var(--story-elevated))}.rpg-people-shell .rpg-badge--neutral{border-color:color-mix(in srgb,var(--story-muted) 48%,var(--story-line));background:color-mix(in srgb,var(--story-muted) 12%,var(--story-elevated))}.rpg-people-shell .rpg-badge--dead{border-color:color-mix(in srgb,#8f5555 50%,var(--story-line));background:color-mix(in srgb,#8f5555 16%,var(--story-elevated))}.rpg-chip--active .rpg-chip-count{background:color-mix(in srgb,var(--story-accent) 24%,transparent);color:var(--story-text)}.rpg-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none;min-width:0;align-content:start}.rpg-row-wrap{min-width:0;display:grid;gap:4px}.rpg-row{width:100%;height:100%;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;align-content:center;gap:4px 8px;padding:8px 9px;border:1px solid color-mix(in srgb,var(--story-line) 82%,transparent);border-radius:10px;background:color-mix(in srgb,var(--story-elevated) 42%,transparent);color:var(--story-text);font:inherit;text-align:left;transition:background .12s ease,border-color .12s ease}.rpg-row:hover{background:color-mix(in srgb,var(--story-elevated) 72%,transparent);border-color:var(--story-line)}.rpg-row:focus-visible{outline:2px solid var(--story-accent);outline-offset:2px}.rpg-row-emoji{width:22px;color:var(--story-text);font-size:18px;line-height:1.25;text-align:center}.rpg-row-copy{min-width:0;display:grid;gap:3px}.rpg-row-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--story-text);font-size:.8rem;line-height:1.3;font-weight:680}.rpg-row-meta{overflow:hidden;color:var(--story-muted);font-size:.68rem;line-height:1.35;font-weight:580;text-overflow:ellipsis;white-space:nowrap}.rpg-row-badges{display:flex;flex-wrap:wrap;gap:4px}.rpg-row-value{color:var(--story-accent);font-size:.74rem;line-height:1.3;font-weight:720;font-variant-numeric:tabular-nums;white-space:nowrap}.rpg-badge{display:inline-flex;align-items:center;padding:1px 6px;border:1px solid color-mix(in srgb,var(--story-muted) 35%,transparent);border-radius:5px;color:var(--story-muted);font-size:.62rem;line-height:1.5;font-weight:650;letter-spacing:.02em;white-space:nowrap}.rpg-badge--accent{border-color:color-mix(in srgb,var(--story-accent) 45%,transparent);background:color-mix(in srgb,var(--story-accent) 12%,transparent);color:var(--story-text)}.rpg-detail-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}.rpg-detail-emoji{color:var(--story-text);font-size:26px;line-height:1.2;text-align:center}.rpg-detail-title{min-width:0;color:var(--story-text);font-size:.92rem;line-height:1.3;font-weight:750;overflow-wrap:anywhere}.rpg-detail-value{color:var(--story-accent);font-size:.8rem;line-height:1.3;font-weight:740;font-variant-numeric:tabular-nums;white-space:nowrap}.rpg-detail-badges{display:flex;flex-wrap:wrap;gap:5px}.rpg-detail-grid{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:0;align-content:start}.rpg-detail-grid dt{padding-top:1px;color:var(--story-muted);font-size:.68rem;font-weight:680;letter-spacing:.02em;white-space:nowrap}.rpg-detail-grid dd{margin:0;color:var(--story-text);font-size:.76rem;line-height:1.55;overflow-wrap:anywhere}.rpg-detail-tags{display:flex;flex-wrap:wrap;gap:4px}.rpg-detail-tag{padding:1px 8px;border-radius:999px;background:color-mix(in srgb,var(--story-muted) 14%,transparent);color:var(--story-muted);font-size:.66rem;line-height:1.5;font-weight:620}.rpg-detail-actions{display:flex;gap:8px}.rpg-detail-actions--item-hub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.rpg-detail-actions button{flex:1;min-height:42px;padding:0 10px;border:1px solid color-mix(in srgb,var(--story-accent) 24%,var(--story-line));border-radius:9px;background:color-mix(in srgb,var(--story-accent) 10%,var(--story-elevated));color:var(--story-text);font-size:.76rem;font-weight:680}.rpg-detail-actions button:hover:not(:disabled),.rpg-detail-actions button:focus-visible{background:color-mix(in srgb,var(--story-accent) 20%,var(--story-elevated));border-color:color-mix(in srgb,var(--story-accent) 45%,var(--story-line))}.rpg-detail-actions button:focus-visible{outline:2px solid var(--story-accent);outline-offset:2px}.rpg-detail-actions button:disabled{opacity:.45}.rpg-detail-interaction-picker{display:grid;gap:7px;padding-top:2px}.rpg-detail-interaction-picker>strong{color:var(--story-muted);font-size:.72rem;font-weight:700}.rpg-detail-interaction-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.rpg-detail-interaction-targets button{min-width:0;min-height:38px;padding:0 9px;border:1px solid color-mix(in srgb,var(--story-accent) 22%,var(--story-line));border-radius:8px;background:color-mix(in srgb,var(--story-accent) 7%,var(--story-elevated));color:var(--story-text);font-size:.74rem;font-weight:650;overflow-wrap:anywhere}.rpg-detail-interaction-targets button:hover,.rpg-detail-interaction-targets button:focus-visible{background:color-mix(in srgb,var(--story-accent) 18%,var(--story-elevated));border-color:color-mix(in srgb,var(--story-accent) 42%,var(--story-line))}.rpg-detail-interaction-targets button:focus-visible{outline:2px solid var(--story-accent);outline-offset:2px}.rpg-detail-interaction-empty{color:var(--story-muted);font-size:.7rem;line-height:1.5}@container rpg-browser (min-width: 640px){.rpg-list{grid-template-columns:repeat(3,minmax(0,1fr))}}.rpg-popup-root{position:fixed;inset:0;z-index:70;display:flex;align-items:flex-end;justify-content:center}.rpg-popup-backdrop{position:absolute;inset:0;border:0;background:#0000007a;animation:story-backdrop-in .18s ease-out}.rpg-popup-panel{position:relative;z-index:1;width:min(100%,480px);max-height:min(82dvh,620px);overflow-y:auto;display:grid;gap:10px;padding:6px 16px calc(16px + env(safe-area-inset-bottom));border:1px solid var(--story-line);border-bottom:0;border-radius:16px 16px 0 0;background:var(--story-surface);color:var(--story-text);box-shadow:0 -8px 24px #00000038;animation:story-sheet-in .22s cubic-bezier(.22,1,.36,1)}.rpg-popup-panel .rpg-detail-head{padding-right:38px}.rpg-popup-handle{width:36px;height:4px;margin:6px auto 0;border-radius:999px;background:color-mix(in srgb,var(--story-muted) 45%,transparent)}.rpg-popup-close{position:absolute;top:10px;right:10px;width:36px;height:36px;border:0;border-radius:10px;background:var(--story-elevated);color:var(--story-text);display:grid;place-items:center}.rpg-popup-close:focus-visible{outline:2px solid var(--story-accent);outline-offset:2px}.character-record-page--story{gap:10px;padding-top:12px}.character-record-page--story .record-section{padding:12px;border:1px solid color-mix(in srgb,var(--story-line) 85%,transparent);border-radius:12px;background:color-mix(in srgb,var(--story-elevated) 32%,transparent)}.record-progress-panel{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:7px 12px;margin:0;padding:10px 12px;border:1px solid color-mix(in srgb,var(--story-line) 80%,transparent);border-radius:10px;background:color-mix(in srgb,var(--story-surface) 55%,transparent);align-content:start}.record-progress-panel dt,.record-progress-panel dd{margin:0;min-width:0}.record-progress-panel dt{color:var(--story-muted);font-size:.72rem;line-height:1.5;font-weight:680;letter-spacing:.02em;white-space:nowrap}.record-progress-panel dd{color:var(--story-text);font-size:.76rem;line-height:1.55;overflow-wrap:anywhere}.record-mini-emoji{flex:0 0 auto;width:1.4em;color:var(--story-text);font-size:.92rem;line-height:1.5;text-align:center}.record-section-action:hover:not(:disabled){background:color-mix(in srgb,var(--story-accent) 20%,var(--story-elevated));border-color:color-mix(in srgb,var(--story-accent) 45%,var(--story-line))}.rpg-people-shell{container:rpg-people / inline-size;min-width:0;margin-top:4px}.rpg-people-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none;min-width:0;align-content:start}@container rpg-people (min-width: 640px){.rpg-people-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.rpg-quest-shell{min-width:0;margin-top:4px}.rpg-quest-list{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin:0;padding:0;list-style:none;min-width:0;align-content:start}.rpg-quest-card{grid-template-columns:minmax(0,1fr)}.rpg-quest-objective{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}.rpg-quest-steps{display:grid;gap:4px;margin:0;padding:0;list-style:none}.rpg-quest-steps li{display:flex;gap:7px;color:var(--story-text);font-size:.74rem;line-height:1.5}.rpg-quest-steps li span{flex:0 0 auto;color:var(--story-muted);font-weight:700}.rpg-detail-note{margin:0;color:var(--story-muted);font-size:.74rem;line-height:1.6;overflow-wrap:anywhere}.story-theme-option:focus-visible,.story-segment:focus-visible,.story-switch:focus-visible,.story-data-heading:focus-visible,.story-save-actions button:focus-visible,.story-export-actions button:focus-visible,.story-checkpoint button:focus-visible,.story-settings-home:focus-visible{outline:2px solid var(--story-accent);outline-offset:2px}.story-settings-page{display:grid;gap:0;padding:10px 14px calc(16px + env(safe-area-inset-bottom))}.story-control-section{display:grid;gap:12px;padding:15px 0;border-bottom:1px solid var(--story-line)}.story-control-section:last-child{border-bottom:0}.story-control-heading{display:grid;gap:3px}.story-control-heading strong,.story-setting-copy strong,.story-data-heading strong{font-size:.9rem;line-height:1.3;font-weight:740}.story-control-heading small,.story-setting-copy small,.story-data-heading small{color:var(--story-muted);font-size:.75rem;line-height:1.4;font-weight:550}.story-theme-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.story-theme-option{position:relative;min-width:0;min-height:72px;display:grid;place-items:center;align-content:center;gap:6px;padding:7px 4px;border:1px solid var(--story-line);border-radius:10px;background:transparent;color:var(--story-muted);font-size:.76rem;font-weight:700}.story-theme-option.selected{border-color:var(--story-accent);color:var(--story-text)}.story-theme-option.selected:after{content:"✓";position:absolute;top:5px;right:6px;color:var(--story-accent);font-size:.68rem;font-weight:800}.story-theme-preview{width:38px;height:30px;display:grid;place-items:center;border:1px solid rgba(0,0,0,.12);border-radius:7px;font-size:.72rem;font-weight:750}.story-segmented{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;padding:3px;border-radius:10px;background:var(--story-elevated)}.story-segment{min-width:0;min-height:38px;padding:6px 4px;border:0;border-radius:8px;background:transparent;color:var(--story-muted);font-size:.78rem;font-weight:680}.story-segment.selected{background:var(--story-surface);color:var(--story-text)}.story-setting-row{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:16px}.story-setting-copy{min-width:0;display:grid;gap:3px}.story-switch{position:relative;flex:0 0 auto;width:46px;height:28px;padding:0;border:0;border-radius:999px;background:var(--story-elevated);transition:background-color .18s ease}.story-switch span{position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;background:var(--story-muted);transition:transform .18s ease,background-color .18s ease}.story-switch.checked{background:color-mix(in srgb,var(--story-accent) 32%,var(--story-elevated))}.story-switch.checked span{transform:translate(18px);background:var(--story-accent)}.story-data-page{padding-top:8px}.story-data-section{border-bottom:1px solid var(--story-line)}.story-data-heading{width:100%;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 2px;border:0;background:transparent;color:var(--story-text);text-align:left}.story-data-heading>span:first-child{min-width:0;display:grid;gap:3px}.story-data-chevron{flex:0 0 auto;color:var(--story-muted);font-size:1.05rem;transition:transform .18s ease}.story-data-section.expanded .story-data-chevron{transform:rotate(180deg)}.story-data-content{display:grid;gap:12px;padding:0 2px 14px}.story-save-slots,.story-checkpoint-list{display:grid}.story-save-slot,.story-checkpoint{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--story-line)}.story-save-slot:last-child,.story-checkpoint:last-child{border-bottom:0}.story-save-slot>span:first-child,.story-checkpoint>span:first-child{min-width:0;display:grid;gap:3px}.story-save-slot strong,.story-checkpoint strong,.story-memory-block strong{font-size:.82rem;font-weight:720}.story-save-slot small,.story-checkpoint small{color:var(--story-muted);font-size:.7rem}.story-save-actions{flex:0 0 auto;display:flex;gap:5px}.story-save-actions button,.story-export-actions button,.story-checkpoint button{min-height:36px;padding:6px 10px;border:0;border-radius:8px;background:var(--story-elevated);color:var(--story-text);font-size:.75rem;font-weight:680}.story-save-actions button:disabled{color:var(--story-muted)}.story-export-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.story-export-actions button:last-child{grid-column:1 / -1}.story-settings-list{display:grid;gap:0;margin:0;padding:0;list-style:none}.story-settings-list li{padding:9px 0;border-bottom:1px solid var(--story-line);color:var(--story-text);font-size:.8rem;line-height:1.55}.story-settings-list li:last-child{border-bottom:0}.story-memory-block{display:grid;gap:6px}.story-memory-block p,.story-settings-empty,.story-settings-note{margin:0;color:var(--story-muted);font-size:.78rem;line-height:1.6}.story-settings-warning{display:grid;gap:4px;margin-top:12px;padding:12px;border-radius:10px;background:color-mix(in srgb,#d35f45 12%,var(--story-elevated));color:var(--story-text)}.story-settings-warning strong{font-size:.82rem}.story-settings-warning span{color:var(--story-muted);font-size:.75rem;line-height:1.5}.story-settings-home{min-height:44px;margin-top:14px;border:0;border-radius:10px;background:var(--story-elevated);color:var(--story-text);font-size:.82rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px}@keyframes ui-spin{to{transform:rotate(360deg)}}.is-spinning{animation:ui-spin .85s linear infinite}@keyframes story-sheet-in{0%{transform:translateY(24px);opacity:.92}to{transform:translateY(0);opacity:1}}@keyframes story-backdrop-in{0%{opacity:0}to{opacity:1}}@media(min-width:680px){.story-screen .chat-header-copy h1{font-size:15px}.bottom-sheet-panel{margin-bottom:18px;border-radius:16px}.character-record-sheet .bottom-sheet-panel{width:min(100%,900px)}}@media(max-width:679px){.story-screen .chat-header{grid-template-columns:34px minmax(0,1fr);gap:6px}.story-screen .story-header-cover{width:40px;height:40px}.story-screen .story-header-title{font-size:16px}.story-screen .story-header-provider{font-size:.62rem}.story-screen .story-status-provider-row .story-header-provider{min-height:20px;font-size:.68rem}.story-screen .story-header-metaline{font-size:.63rem;max-width:calc(100% - 44px);margin-left:44px}.story-screen .story-header-actions .chat-icon-button{width:36px;height:36px}.story-screen .story-action-emoji{font-size:19px}.story-screen .message-body p{line-height:1.72}.bottom-sheet-panel{width:100%}.story-screen .composer-send{width:52px;height:52px;min-width:52px;border-radius:16px}.story-screen .composer-send-icon{font-size:2rem}}@media(max-width:360px){.story-screen .story-status-topline{gap:4px;padding-inline:5px 6px}.story-screen .story-status-summary{grid-template-columns:42px minmax(0,1fr);gap:5px}.story-screen .story-status-avatar{width:42px;height:42px}.story-screen .story-status-compact-metrics{gap:2px;padding-inline:6px}.story-screen .story-status-chip-button{padding-inline:1px}.story-screen .story-status-chip-button small{font-size:.54rem}.story-theme-options{gap:5px}.story-theme-option{min-height:68px}.story-settings-page{padding-right:12px;padding-left:12px}}@media(prefers-reduced-motion:reduce){.story-screen *,.story-screen *:before,.story-screen *:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.story-continuation-indicator{animation:none!important;opacity:.56}.story-screen .choice-pending-runner{animation:none!important;transform:none!important}}.story-access-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:12px 14px;border:1px solid rgba(214,161,72,.45);border-radius:8px;background:#d6a14824;color:inherit}.site-runtime-banner,.story-maintenance-panel{display:grid;gap:6px;padding:12px 14px;border-radius:12px;border:1px solid rgba(83,58,40,.16);background:#fffaf2c7;color:inherit}.site-runtime-banner strong,.story-maintenance-panel strong{font-size:.9rem;font-weight:760}.site-runtime-banner span,.story-maintenance-panel span{margin:0;color:#6e5547;font-size:.82rem;line-height:1.55}.site-runtime-banner.is-notice{border-color:#d6a14866;background:#d6a1481f}.site-runtime-banner.is-maintenance,.story-maintenance-panel{border-color:#a1332838;background:#fff1efc7}.home-site-banner-wrap,.package-site-banner,.story-site-banner{margin:0 0 12px}.novel-mode-screen{width:min(100%,920px);min-height:100dvh;height:100dvh;margin:0 auto;padding:10px 16px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}.novel-mode-screen.theme-dark{background:#111317;color:#f6f7f9}.novel-mode-screen.theme-light{background:#f7f7f8;color:#1b1b1d}.novel-mode-screen.theme-eye{background:#eef4e8;color:#253022}.novel-mode-screen.theme-paper{background:#f4ead8;color:#31251d}.novel-mode-header{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:8px}.novel-mode-header-copy h1{margin:0;font-size:.98rem;line-height:1.15;font-weight:760}.novel-mode-header-copy p{margin:2px 0 0;color:#8b8b92;font-size:.78rem;font-weight:600}.novel-mode-shell{display:grid;gap:10px;min-height:0}.novel-mode-hero,.novel-mode-card{display:grid;gap:10px;padding:14px;border-radius:16px;border:1px solid rgba(83,58,40,.14);background:#ffffffb8}.novel-mode-screen.theme-dark .novel-mode-hero,.novel-mode-screen.theme-dark .novel-mode-card{background:#1f2227e0;border-color:#ffffff14}.novel-mode-hero-top{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.novel-mode-badge,.novel-mode-tag{width:fit-content;max-width:100%;display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:#63d5a321;color:inherit;font-size:.78rem;font-weight:720}.novel-mode-hero h2{margin:0;font-size:1.12rem;line-height:1.28}.novel-mode-hero p,.novel-mode-section-head span,.novel-mode-hint,.novel-mode-status{margin:0;color:#8b8b92;font-size:.84rem;line-height:1.6}.novel-mode-tags{display:flex;flex-wrap:wrap;gap:6px}.novel-mode-section-head{display:grid;gap:3px}.novel-mode-section-head strong{font-size:.96rem;font-weight:760}.novel-preview-card{gap:12px}.novel-preview-action{border:0;border-radius:12px;min-height:44px;padding:0 14px;background:var(--accent);color:var(--accent-ink);font-size:.92rem;font-weight:760;cursor:pointer}.novel-setting-list,.novel-goal-list{display:grid;gap:8px}.novel-setting-card,.novel-goal-card{border-radius:12px;border:1px solid rgba(83,58,40,.14);padding:12px;text-align:left}.novel-setting-card{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff6;color:inherit}.novel-setting-card small{color:#8b8b92;flex:0 0 auto}.novel-goal-card{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:10px;background:#fff3;color:inherit}.novel-goal-card span{font-weight:680;line-height:1.45}.novel-goal-card small{color:#8b8b92;font-size:.74rem;font-weight:650}.novel-mode-status{padding:10px 12px;border-radius:12px;border:1px solid rgba(99,213,163,.22);background:#63d5a31a;color:inherit;font-weight:650}.novel-maintenance-panel{margin-top:4px}.opening-setup-card{display:grid;gap:14px;margin-bottom:12px;padding:16px;border-radius:18px;border:1px solid var(--story-line);background:color-mix(in srgb,var(--story-surface) 90%,var(--story-accent) 10%)}.opening-setup-hero{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:center}.opening-setup-cover{width:72px;height:72px;overflow:hidden;border-radius:16px;border:1px solid var(--story-line);background:var(--story-elevated);display:grid;place-items:center;color:var(--story-text);font-size:1.6rem;font-weight:800}.opening-setup-cover img{width:100%;height:100%;object-fit:cover}.opening-setup-copy{min-width:0;display:grid;gap:4px}.opening-setup-kicker{color:var(--story-muted);font-size:.74rem;font-weight:760}.opening-setup-copy h2{margin:0;font-size:1.04rem;line-height:1.25;font-weight:800}.opening-setup-meta{display:flex;flex-wrap:wrap;gap:6px}.opening-setup-meta span{min-height:24px;display:inline-flex;align-items:center;padding:0 9px;border-radius:999px;background:#ffffff14;color:var(--story-muted);font-size:.72rem;font-weight:700}.opening-setup-synopsis{margin:0;color:var(--story-muted);font-size:.92rem;line-height:1.6;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.opening-setup-field{display:grid;gap:8px}.opening-setup-field span{color:var(--story-muted);font-size:.78rem;font-weight:700}.opening-setup-field input{width:100%;min-height:44px;border:1px solid var(--story-line);border-radius:12px;background:var(--story-bg);color:var(--story-text);padding:0 12px;font-size:.96rem}.opening-setup-gender-field{min-width:0;margin:0;padding:0;border:0;display:grid;gap:8px}.opening-setup-gender-field legend,.opening-setup-gender-field>span{color:var(--story-muted);font-size:.78rem;font-weight:700}.opening-setup-gender-field>span{font-size:.72rem;font-weight:500;line-height:1.45}.opening-setup-gender-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.opening-setup-gender-option{min-height:42px;border:1px solid var(--story-line);border-radius:12px;background:var(--story-bg);color:var(--story-text);font-weight:760}.opening-setup-gender-option.is-selected{border-color:var(--story-accent);background:color-mix(in srgb,var(--story-accent) 18%,var(--story-bg))}.opening-setup-avatar-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.opening-setup-avatar-preview{min-width:0;display:flex;align-items:center;gap:10px}.opening-setup-avatar-preview-button{width:48px;height:48px;flex:0 0 auto;padding:0;border:0;border-radius:14px;background:transparent;cursor:pointer}.opening-setup-avatar-preview-button:focus-visible{outline:2px solid var(--story-accent);outline-offset:3px}.opening-setup-avatar-preview img{width:48px;height:48px;display:block;border-radius:14px;object-fit:cover;border:1px solid var(--story-line)}.opening-setup-avatar-preview div{min-width:0;display:grid;gap:3px}.opening-setup-avatar-preview strong{font-size:.9rem;font-weight:760}.opening-setup-avatar-preview span{color:var(--story-muted);font-size:.74rem;line-height:1.45}.opening-setup-avatar-button,.opening-setup-start,.opening-setup-back{min-height:44px;border-radius:12px;font-weight:760}.opening-setup-avatar-button{flex:0 0 auto;border:1px solid var(--story-line);background:var(--story-elevated);color:var(--story-text);padding:0 12px}.opening-setup-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.opening-setup-start{border:0;background:var(--story-accent);color:var(--story-accent-ink)}.opening-setup-back{border:1px solid var(--story-line);background:transparent;color:var(--story-text);padding:0 14px}.story-opening-state{display:grid;gap:10px;margin-bottom:12px;padding:16px;border-radius:16px;border:1px solid rgba(99,213,163,.18);background:color-mix(in srgb,var(--panel) 86%,var(--accent) 14%)}.story-opening-state.is-error{border-color:#e96e6e38;background:color-mix(in srgb,var(--panel) 88%,#b85b5b 12%)}.story-opening-state.is-streaming{margin-bottom:20px;padding:0;border:0;border-radius:0;background:transparent}.story-opening-state h2{margin:0;font-size:1rem;font-weight:780}.story-opening-state p{margin:0;color:var(--muted);line-height:1.6}.story-opening-badge{width:fit-content;display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:999px;background:#63d5a326;color:var(--text);font-size:.78rem;font-weight:760}.story-opening-state.is-error .story-opening-badge{background:#e96e6e29}.story-opening-actions{display:flex;flex-wrap:wrap;gap:8px}.story-opening-actions button{border:0;border-radius:12px;min-height:42px;padding:0 14px;font-weight:760;cursor:pointer}.story-opening-actions button:not(.secondary){background:var(--accent);color:var(--accent-ink)}.story-opening-actions .secondary{background:var(--panel-2);color:var(--text);border:1px solid var(--line)}.story-opening-wait{width:fit-content}@media(max-width:640px){.novel-goal-card{grid-template-columns:18px minmax(0,1fr)}.novel-goal-card small{grid-column:2}.opening-setup-card{padding:14px;gap:12px}.opening-setup-hero{grid-template-columns:60px minmax(0,1fr);gap:10px}.opening-setup-cover{width:60px;height:60px;border-radius:14px}.opening-setup-copy h2{font-size:.98rem}.opening-setup-avatar-row{align-items:flex-start;flex-direction:column}.opening-setup-avatar-button,.opening-setup-actions{width:100%}.opening-setup-actions{grid-template-columns:1fr}}.site-maintenance-gate{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,rgba(236,214,181,.34),transparent 44%),linear-gradient(180deg,#f8f1e5,#f5ede0)}.site-maintenance-card{width:min(100%,30rem);display:grid;gap:18px;justify-items:center;text-align:center;padding:36px 26px 30px;border:1px solid rgba(109,77,58,.12);border-radius:28px;background:#fffcf7eb;box-shadow:0 20px 60px #6d4d3a1f}.site-maintenance-gate-icon{font-size:clamp(3rem,10vw,4.25rem);line-height:1}.site-maintenance-title{margin:0;color:#4f372c;font-size:clamp(1.9rem,5vw,2.5rem);font-weight:820;letter-spacing:.01em}.site-maintenance-copy{display:grid;gap:10px}.site-maintenance-copy p,.site-maintenance-footnote{margin:0;color:#6e5547;font-size:1rem;line-height:1.75}.site-maintenance-signoff{margin-top:4px;color:#5d4337;font-weight:700}.site-maintenance-footnote{color:#8a7465;font-size:.92rem}.app-shell-dark .site-maintenance-gate{background:radial-gradient(circle at top,rgba(109,77,58,.24),transparent 42%),linear-gradient(180deg,#211c19,#161311)}.app-shell-dark .site-maintenance-card{border-color:#ffecda14;background:#231d19f0;box-shadow:0 20px 60px #00000059}.app-shell-dark .site-maintenance-title{color:#f2e6d6}.app-shell-dark .site-maintenance-copy p,.app-shell-dark .site-maintenance-footnote{color:#d4c2af}.app-shell-dark .site-maintenance-signoff{color:#f0dcc8}.app-shell-dark .site-maintenance-footnote{color:#b39f8b}.story-access-banner button{border:0;border-radius:8px;padding:8px 12px;background:var(--accent, #58d6a0);color:#122018;font-weight:700}@media(min-width:1024px){:root{--screen-width: 960px;--screen-gutter: 24px}.app-shell{width:min(100%,960px);padding:18px 32px 24px}.message-body{max-width:min(100%,56rem)}.player-block .message-body{max-width:min(78%,36rem)}.choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.save-list{max-height:460px;overflow-y:auto}.composer-bar textarea{font-size:.95rem;min-height:56px}.chat-header-copy h1{font-size:1.12rem}}@media(min-width:1400px){:root{--screen-width: 1200px}.app-shell{width:min(100%,1140px)}.message-body{max-width:min(100%,64rem)}.choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.trade-panel{--trade-bg: var(--story-surface);--trade-card: var(--story-elevated);--trade-soft: color-mix(in srgb, var(--story-elevated) 55%, var(--story-surface));--trade-border: var(--story-line);--trade-text: var(--story-text);--trade-muted: var(--story-muted);--trade-accent: var(--story-accent);--trade-accent-ink: var(--story-accent-ink);--trade-accent-soft: color-mix(in srgb, var(--story-accent) 14%, var(--story-elevated));--trade-disabled-bg: var(--story-elevated);--trade-disabled-text: var(--story-muted);margin:.65rem 0;min-width:0;padding:10px 11px 11px;color:var(--trade-text);font-size:13px;line-height:1.35;border:1px solid var(--trade-border);border-radius:14px;background:var(--trade-bg);box-shadow:0 7px 18px #00000014}.trade-panel__header{display:flex;align-items:center;justify-content:space-between;gap:8px}.trade-panel__heading{min-width:0;display:grid;gap:1px}.trade-panel__heading>small{color:var(--trade-muted);font-size:10px;font-weight:750;letter-spacing:.04em}.trade-panel__heading>strong{font-size:18px;line-height:1.15;letter-spacing:-.01em}.trade-panel__heading>p{display:-webkit-box;margin:1px 0 0;overflow:hidden;color:var(--trade-muted);font-size:12px;line-height:1.3;-webkit-box-orient:vertical;-webkit-line-clamp:1}.trade-panel__wallet{flex:0 0 auto;display:grid;gap:0;min-width:62px;padding:5px 7px;text-align:right;border:1px solid color-mix(in srgb,var(--trade-accent) 22%,var(--trade-border));border-radius:10px;background:var(--trade-accent-soft)}.trade-panel__wallet small{color:var(--trade-muted);font-size:10px;line-height:1.2}.trade-panel__wallet strong{font-size:16px;line-height:1.15;font-variant-numeric:tabular-nums}.trade-panel__tabs{display:inline-grid;grid-template-columns:repeat(2,auto);gap:2px;width:fit-content;margin:5px 0;padding:2px;border-radius:9px;background:var(--trade-soft)}.trade-panel__tabs button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 9px;color:var(--trade-muted);font-size:12.5px;font-weight:750;line-height:1;border:1px solid transparent;border-radius:7px;background:transparent;transition:background .14s ease,border-color .14s ease,color .14s ease,transform .14s ease}.trade-panel__tabs button>span{font-size:13px;line-height:1}.trade-panel__tabs button.is-active{color:var(--trade-text);border-color:color-mix(in srgb,var(--trade-accent) 28%,var(--trade-border));background:var(--trade-card);box-shadow:0 2px 6px #00000014}.trade-panel__tabs button:not(:disabled):active,.trade-panel__actions button:not(:disabled):active{transform:translateY(1px)}.trade-panel__tabs button:focus-visible,.trade-panel__stepper button:focus-visible,.trade-panel__actions button:focus-visible{outline:2px solid var(--trade-accent);outline-offset:2px}.trade-panel__items{display:grid;gap:5px;margin:6px 0}.trade-panel__item{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px;padding:7px 8px;border:1px solid var(--trade-border);border-radius:10px;background:var(--trade-card)}.trade-panel__item-copy{min-width:0;display:grid;gap:2px}.trade-panel__item-title{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:3px}.trade-panel__item-title strong{overflow-wrap:anywhere;font-size:14px;line-height:1.2}.trade-panel__item-emoji{display:inline-block;margin-right:3px}.trade-panel__badge,.trade-panel__price{width:fit-content;padding:1px 5px;border-radius:999px;font-size:9.5px;font-weight:750;line-height:1.2}.trade-panel__badge{color:var(--trade-muted);background:var(--trade-soft)}.trade-panel__price{color:var(--trade-text);background:var(--trade-accent-soft)}.story-screen .trade-panel__item-copy>p{display:-webkit-box;margin:0;overflow:hidden;color:var(--trade-muted);font-size:10.5px;line-height:1.28;font-weight:500;-webkit-box-orient:vertical;-webkit-line-clamp:2}.trade-panel__item-meta{display:flex;align-items:center;flex-wrap:wrap;gap:3px 6px;color:var(--trade-muted);font-size:10px;line-height:1.2}.trade-panel__stepper{display:grid;grid-template-columns:42px minmax(24px,auto) 42px;align-items:center;gap:3px}.trade-panel__stepper button{width:42px;min-width:42px;height:42px;padding:0;color:var(--trade-text);font-size:18px;font-weight:800;line-height:1;border:1px solid var(--trade-border);border-radius:10px;background:var(--trade-soft);transition:background .14s ease,border-color .14s ease,transform .14s ease}.trade-panel__stepper button:not(:disabled):hover{border-color:color-mix(in srgb,var(--trade-accent) 34%,var(--trade-border))}.trade-panel__stepper button:not(:disabled):active{transform:translateY(1px);background:var(--trade-accent-soft)}.trade-panel__stepper button:disabled{opacity:.42}.trade-panel__stepper output{min-width:24px;text-align:center;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}.trade-panel__fixed-quantity{min-width:56px;padding:5px;text-align:center;white-space:nowrap;border-radius:8px;background:var(--trade-soft)}.trade-panel__unavailable,.trade-panel__insufficient{color:#a23e31!important;font-weight:750}.theme-dark .trade-panel__unavailable,.theme-dark .trade-panel__insufficient{color:#ffab9e!important}.trade-panel__item.is-disabled{opacity:.64;filter:grayscale(.14)}.trade-panel__empty{margin:0;padding:16px 10px;color:var(--trade-muted);text-align:center;border:1px dashed var(--trade-border);border-radius:10px}.trade-panel__footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding-top:8px;border-top:1px solid var(--trade-border)}.trade-panel__summary{min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px;color:var(--trade-muted);font-size:11.5px;line-height:1.3}.trade-panel__summary strong{color:var(--trade-text);font-size:13px}.trade-panel__actions{display:grid;grid-template-columns:minmax(70px,auto) minmax(104px,auto);gap:6px}.trade-panel__session-actions{grid-template-columns:minmax(0,1fr)}.trade-panel__actions button{min-height:44px;padding:7px 10px;white-space:nowrap;font-size:13.5px;font-weight:800;border-radius:10px;transition:background .14s ease,border-color .14s ease,color .14s ease,transform .14s ease}.trade-panel__cancel{color:var(--trade-text);border:1px solid var(--trade-border);background:var(--trade-soft)}.trade-panel__confirm{color:var(--trade-accent-ink);border:1px solid var(--trade-accent);background:var(--trade-accent)}.trade-panel__confirm:not(:disabled):hover{filter:brightness(1.04)}.trade-panel__actions button:disabled{opacity:1}.trade-panel__confirm:disabled{color:var(--trade-disabled-text);border-color:var(--trade-border);background:var(--trade-disabled-bg)}.trade-panel__cancel:disabled{color:var(--trade-disabled-text);background:var(--trade-disabled-bg)}@media(max-width:480px){.trade-panel{width:100%;padding:8px;border-radius:12px}.trade-panel__header{gap:5px}.trade-panel__heading>strong{font-size:16px}.trade-panel__wallet{min-width:56px;padding-inline:5px}.trade-panel__item{grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:6px 7px}.trade-panel__item-title strong{font-size:13.5px}.story-screen .trade-panel__item-copy>p{font-size:10px;line-height:1.24}.trade-panel__stepper{grid-template-columns:42px minmax(22px,auto) 42px}.trade-panel__stepper button{width:42px;min-width:42px;height:42px;font-size:17px}.trade-panel__stepper output{min-width:22px;font-size:13px}.trade-panel__stepper,.trade-panel__fixed-quantity{justify-self:end}.trade-panel__footer{grid-template-columns:minmax(0,1fr);align-items:stretch}.trade-panel__actions{width:100%;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.trade-panel__actions.trade-panel__session-actions{grid-template-columns:minmax(0,1fr)}.trade-panel__actions button{width:100%;min-width:0}}.home-install-banner{width:100%;min-height:46px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin:2px 0 8px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--accent) 34%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--panel) 82%,var(--accent-soft));color:var(--text);text-align:left}.home-install-banner:hover,.home-install-banner:focus-visible{border-color:color-mix(in srgb,var(--accent) 62%,var(--line));background:color-mix(in srgb,var(--panel) 72%,var(--accent-soft))}.home-install-banner-icon{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:var(--accent);color:var(--accent-ink)}.home-install-banner-copy{min-width:0;display:grid;gap:2px}.home-install-banner-copy strong{font-size:.86rem;line-height:1.2}.home-install-banner-copy small{overflow:hidden;color:var(--muted);font-size:.7rem;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.install-guide-backdrop{--install-bg: #ffffff;--install-panel: #f3f6f4;--install-text: #18201d;--install-muted: #5f6b65;--install-line: rgba(24, 48, 37, .14);--install-accent: #3f9f70;position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:18px;background:#080c0a9e;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.install-guide-backdrop.app-shell-dark{--install-bg: #171a18;--install-panel: #1d211f;--install-text: #f3f6f4;--install-muted: #a7b1ab;--install-line: rgba(235, 245, 239, .1);--install-accent: #63d5a3}.install-guide-dialog{width:min(100%,520px);display:grid;gap:16px;padding:18px;border:1px solid var(--install-line);border-radius:18px;background:var(--install-bg);color:var(--install-text);box-shadow:0 24px 70px #00000047}.install-guide-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px}.install-guide-icon{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:13px;background:var(--install-accent);color:#071a11}.install-guide-header h2,.install-guide-header p{margin:0}.install-guide-header h2{font-size:1.04rem;line-height:1.25}.install-guide-header p{margin-top:4px;color:var(--install-muted);font-size:.8rem;line-height:1.45}.install-guide-close{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--install-line);border-radius:10px;background:var(--install-panel);color:var(--install-text)}.install-guide-steps{display:grid;gap:9px;margin:0;padding:0;list-style:none;counter-reset:install-step}.install-guide-steps li{counter-increment:install-step;display:grid;grid-template-columns:28px minmax(0,1fr);gap:2px 10px;padding:10px;border:1px solid var(--install-line);border-radius:12px;background:var(--install-panel)}.install-guide-steps li:before{content:counter(install-step);grid-row:1 / span 2;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--install-accent);color:#071a11;font-size:.76rem;font-weight:800}.install-guide-steps strong{display:inline-flex;align-items:center;gap:6px;font-size:.86rem}.install-guide-steps span{color:var(--install-muted);font-size:.76rem;line-height:1.45}.install-guide-done{min-height:44px;border:0;border-radius:12px;background:var(--install-accent);color:#071a11;font-weight:800}@media(max-width:560px){.home-install-banner-copy small{white-space:normal}.install-guide-backdrop{align-items:end;padding:10px}.install-guide-dialog{border-radius:18px 18px 12px 12px}}@media(min-width:1024px){:root{--screen-width: 1180px;--screen-gutter: 28px}.app-shell{width:min(calc(100% - 48px),1180px);padding:18px 28px 24px}.app-shell.app-home-shell,.app-shell.app-package-shell{width:min(calc(100% - 48px),1280px)}.app-shell .home-header{margin:-18px -28px 10px;padding:12px 28px 10px}.app-shell .home-scroll{padding-top:10px;padding-bottom:96px}.home-search-row{grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:10px;margin-bottom:8px}.world-pack-grid.card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.app-shell .world-pack-card.card-v2{border-radius:14px}.app-shell .world-pack-info{min-height:90px;gap:4px;padding:10px 12px 12px}.app-shell .world-pack-title{font-size:15px;line-height:1.25}.home-action-dock{left:auto;right:max(24px,calc((100vw - 1280px)/2 + 24px));bottom:20px;width:min(420px,calc(100vw - 48px));min-height:58px;border-radius:18px}.package-appbar{margin:-18px -28px 14px;padding:12px 28px 10px}.package-scroll{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);align-content:start;gap:20px;padding:8px 0 28px}.package-hero,.package-site-banner,.package-access-banner{grid-column:1 / -1}.package-hero{grid-template-columns:120px minmax(0,1fr);gap:18px;margin-bottom:0;padding:18px;border-radius:18px}.package-cover{width:120px;height:120px;border-radius:12px}.package-copy{gap:8px}.package-copy>span{font-size:13px}.package-copy p{display:block;overflow:visible;font-size:15px;line-height:1.7;-webkit-line-clamp:unset}.package-action-stack{grid-column:1;margin-bottom:0}.package-adventure-card{gap:16px;padding:20px;border-radius:18px}.package-mode-copy strong{font-size:17px}.package-mode-copy p{font-size:13px}.package-save-list{grid-column:2;align-self:start;position:sticky;top:8px;gap:12px;padding:16px;border-radius:18px}.package-save-stack{max-height:min(56dvh,560px)}.screen.story-screen{--screen-gutter: 14px;width:min(calc(100% - 24px),1600px);padding:10px 14px var(--safe-bottom)}.story-screen .chat-header.story-status-hud{width:100%;margin:0 0 4px}.story-screen .story-feed{padding:8px 0}.story-screen .turn-thread,.story-generation-error,.story-screen .composer-bar,.story-screen .composer-meta{width:100%;max-width:none}.story-screen .turn-thread{margin-bottom:20px;gap:10px;max-width:none}.story-screen .gm-block{width:100%;justify-items:stretch}.story-screen .message-body{display:block;width:100%;max-width:none}.story-screen .message-body p{width:100%;max-width:none;margin-bottom:16px;line-height:1.78;text-wrap:wrap}.story-screen .story-soft-line,.story-screen .story-soft-separator{display:inline}.story-screen.font-small .message-body p,.story-screen.font-small .message-suggestions,.story-screen.font-small .message-suggestions li{font-size:.95rem}.story-screen.font-medium .message-body p,.story-screen.font-medium .message-suggestions,.story-screen.font-medium .message-suggestions li{font-size:1.05rem}.story-screen.font-large .message-body p,.story-screen.font-large .message-suggestions,.story-screen.font-large .message-suggestions li{font-size:1.18rem}.story-screen.font-xlarge .message-body p,.story-screen.font-xlarge .message-suggestions,.story-screen.font-xlarge .message-suggestions li{font-size:1.34rem}.story-screen .message-suggestions{margin-top:18px;padding-top:16px}.story-screen .choice-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;margin:0;padding:0;list-style:none;counter-reset:desktop-story-choice}.story-screen .choice-grid li{min-width:0;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;counter-increment:desktop-story-choice}.story-screen .choice-grid li:before{content:counter(desktop-story-choice) ".";align-self:center;color:var(--story-text);font-size:.86rem;font-weight:560;line-height:1;text-align:center;font-variant-numeric:tabular-nums}.story-screen .choice-button{width:100%;min-height:42px;padding:6px 9px;border:1px solid color-mix(in srgb,var(--story-line) 66%,transparent);border-radius:9px;background:color-mix(in srgb,var(--story-elevated) 36%,transparent)}.story-screen .story-status-card{border-radius:10px}.story-screen .story-status-topline{grid-template-columns:30px minmax(0,1fr);gap:5px;padding:3px 6px 3px 4px}.story-screen .story-status-card .story-status-back{width:28px;height:28px;border-radius:9px}.story-screen .story-status-summary{min-height:40px;grid-template-columns:34px minmax(0,1fr);gap:6px}.story-screen .story-status-avatar{width:34px;height:34px;border-radius:10px}.story-screen .story-status-copy{gap:0;padding-top:2px}.story-screen .story-status-name{max-width:68%;font-size:.82rem;font-weight:620;letter-spacing:-.01em}.story-screen .story-status-rename-hint,.story-screen .story-status-detail,.story-screen .story-status-line,.story-screen .story-status-provider-title,.story-screen .story-header-provider{font-weight:560}.story-screen .story-status-detail,.story-screen .story-status-line{font-size:.64rem;letter-spacing:-.012em}.story-screen .story-status-line-goal{font-weight:560}.story-screen .story-status-compact-metrics{gap:2px;padding:0 6px 5px}.story-screen .story-status-chip-button{min-height:34px;padding:3px 2px;border-radius:7px}.story-screen .story-status-chip-button>span{font-size:.62rem}.story-screen .story-status-chip-button small{font-size:.5rem;font-weight:540;letter-spacing:-.015em}.story-screen .story-status-chip-button strong{font-size:.57rem;font-weight:600;letter-spacing:-.01em}.story-screen .story-status-provider-row{min-height:22px;gap:4px;padding:0 4px 1px}.story-screen .story-status-provider-row .story-header-provider{min-height:18px;font-size:.62rem}.story-screen .story-status-footer-settings{width:24px;height:20px;border-radius:7px;font-size:.74rem}.story-screen .choice-button-label{font-size:.84rem;line-height:1.38;font-weight:520}.story-screen .choice-ordinal{min-width:1.8em;font-size:.82rem}.story-screen .choice-action-icon{width:1.08em;min-width:1.08em;min-height:1.08em;font-size:.92em}.story-screen .composer-shell{position:relative;bottom:auto;margin-inline:-14px;padding:5px 14px calc(var(--safe-bottom) + 1px)}.story-screen .composer-bar{gap:7px}.story-screen .composer-bar textarea{min-height:40px;max-height:132px;padding:8px 12px;border-radius:10px;font-size:.92rem}.story-screen .composer-send{width:42px;min-width:42px;height:40px;border-radius:11px}.story-screen .composer-send-icon{font-size:1.55rem}}@media(min-width:1400px){.app-shell.app-home-shell,.app-shell.app-package-shell{width:min(100%,1920px)}.world-pack-grid.card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.app-shell.app-home-shell .world-pack-cover{aspect-ratio:4 / 3}.app-shell.app-home-shell .world-pack-info{min-height:72px;gap:2px;padding:8px 10px 9px}.home-action-dock{right:max(32px,calc((100vw - 1360px)/2 + 28px))}.screen.story-screen{width:min(calc(100% - 24px),1720px)}.story-screen .choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.command-shortcut-launcher{flex:0 0 auto;position:relative}.command-shortcut-trigger{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:40px;padding:0 8px;border:1px solid color-mix(in srgb,var(--story-accent) 38%,var(--story-line));border-radius:11px;background:color-mix(in srgb,var(--story-accent) 10%,var(--story-surface));color:var(--story-text);font-weight:720;font-size:.82rem;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease,transform .1s ease;box-sizing:border-box;white-space:nowrap}.command-shortcut-trigger-glyph{font-size:.98rem;line-height:1;color:var(--story-accent)}.command-shortcut-trigger:hover:not(:disabled),.command-shortcut-trigger:focus-visible:not(:disabled){background:color-mix(in srgb,var(--story-accent) 20%,var(--story-surface));border-color:color-mix(in srgb,var(--story-accent) 62%,var(--story-line))}.command-shortcut-trigger[aria-expanded=true]{background:var(--story-accent);border-color:var(--story-accent);color:var(--story-accent-ink)}.command-shortcut-trigger[aria-expanded=true] .command-shortcut-trigger-glyph{color:var(--story-accent-ink)}.command-shortcut-trigger:disabled{opacity:.5;cursor:not-allowed}.command-shortcut-coachmark{position:absolute;bottom:calc(100% + 10px);left:0;z-index:31;width:min(286px,calc(100vw - 32px));padding:10px 34px 10px 12px;border:1px solid color-mix(in srgb,var(--story-accent) 34%,var(--story-line));border-radius:12px;background:color-mix(in srgb,var(--story-surface) 92%,var(--story-accent));box-shadow:0 10px 24px color-mix(in srgb,var(--story-text) 16%,transparent);color:var(--story-text);pointer-events:none;box-sizing:border-box}.command-shortcut-coachmark:after{content:"";position:absolute;bottom:-6px;left:17px;width:10px;height:10px;border-right:1px solid color-mix(in srgb,var(--story-accent) 34%,var(--story-line));border-bottom:1px solid color-mix(in srgb,var(--story-accent) 34%,var(--story-line));background:color-mix(in srgb,var(--story-surface) 92%,var(--story-accent));transform:rotate(45deg)}.command-shortcut-coachmark strong{display:block;margin-bottom:3px;color:var(--story-accent);font-size:.78rem;font-weight:760;line-height:1.25}.command-shortcut-coachmark span{display:block;color:var(--story-hint);font-size:.71rem;line-height:1.45}.command-shortcut-coachmark button{position:absolute;top:5px;right:5px;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--story-hint);font:inherit;font-size:1rem;line-height:1;cursor:pointer;pointer-events:auto}.command-shortcut-coachmark button:hover,.command-shortcut-coachmark button:focus-visible{background:color-mix(in srgb,var(--story-accent) 12%,transparent);color:var(--story-accent)}.command-shortcut-layout{grid-column:1 / -1;position:relative;width:100%;min-width:0;min-height:48px;max-height:140px;display:flex;flex-wrap:nowrap;align-items:flex-end;gap:4px;padding:4px;overflow:visible;border:1px solid var(--story-line);border-radius:14px;background:var(--story-elevated);box-sizing:border-box;transition:border-color .15s ease,background-color .15s ease}.command-shortcut-layout:focus-within{border-color:var(--story-accent)}.composer-input-group{position:relative;min-width:0;min-height:40px;max-height:132px;display:flex;flex:1 1 auto;align-items:flex-end;overflow:hidden;border:0;background:transparent}.story-screen .command-shortcut-layout .command-shortcut-trigger{height:40px;min-height:40px;max-height:40px;align-self:flex-end;border:0;background:transparent;box-shadow:none}.story-screen .command-shortcut-layout .command-shortcut-trigger:hover:not(:disabled),.story-screen .command-shortcut-layout .command-shortcut-trigger:focus-visible:not(:disabled){background:color-mix(in srgb,var(--story-accent) 12%,transparent)}.story-screen .command-shortcut-layout .command-shortcut-trigger.is-discoverable:not(:disabled){box-shadow:0 0 0 1px color-mix(in srgb,var(--story-accent) 20%,transparent),0 0 12px color-mix(in srgb,var(--story-accent) 22%,transparent);animation:command-shortcut-discovery-pulse 7s ease-in-out infinite}@keyframes command-shortcut-discovery-pulse{0%,15%,to{transform:scale(1);box-shadow:0 0 0 1px color-mix(in srgb,var(--story-accent) 20%,transparent),0 0 12px color-mix(in srgb,var(--story-accent) 22%,transparent)}7%{transform:scale(1.03);box-shadow:0 0 0 1px color-mix(in srgb,var(--story-accent) 32%,transparent),0 0 18px color-mix(in srgb,var(--story-accent) 36%,transparent)}}@media(prefers-reduced-motion:reduce){.story-screen .command-shortcut-layout .command-shortcut-trigger.is-discoverable:not(:disabled){animation:none;transform:none}}.story-screen .composer-input-group textarea{min-width:0;width:100%;min-height:40px;max-height:132px;flex:1 1 auto;padding:8px 40px 8px 8px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow-y:hidden}.story-screen .composer-input-group textarea:focus{border-color:transparent}.story-screen .composer-input-group .composer-send{position:absolute;right:4px;bottom:4px;width:32px;min-width:32px;height:32px;min-height:32px;max-height:32px;border-radius:10px}.command-shortcut-popover{position:absolute;bottom:calc(100% + 8px);left:0;z-index:30;width:min(360px,calc(100vw - 24px));max-height:min(68vh,680px);overflow-y:auto;overscroll-behavior:contain;padding:10px;border:1px solid var(--story-line);border-radius:14px;background:var(--story-surface);box-shadow:0 16px 40px #00000047}.theme-light .command-shortcut-popover{box-shadow:0 16px 40px #191c201f}.command-shortcut-panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 4px 8px}.command-shortcut-panel-header strong{font-size:18px;font-weight:700;letter-spacing:-.01em}.command-shortcut-hint,.command-shortcut-panel-text,.command-shortcut-panel-subtitle,.command-shortcut-empty,.command-shortcut-confirm-line{margin:0 0 10px;color:var(--story-muted);font-size:.94rem;line-height:1.5}.command-shortcut-confirm-line{background:color-mix(in srgb,var(--story-accent) 10%,var(--story-elevated));border:1px solid color-mix(in srgb,var(--story-accent) 22%,var(--story-line));border-radius:10px;padding:8px 10px;color:var(--story-text);font-size:.88rem;word-break:break-word}.command-shortcut-close{width:34px;height:34px;min-width:34px;padding:0;border:0;border-radius:9px;background:transparent;color:var(--story-muted);cursor:pointer;font-size:1.3rem;line-height:1}.command-shortcut-close:hover,.command-shortcut-close:focus-visible{background:var(--story-elevated);color:var(--story-text)}.command-shortcut-row,.command-shortcut-option{display:flex;align-items:center;gap:9px;width:100%;min-height:46px;padding:6px 10px;border:1px solid color-mix(in srgb,var(--story-line) 78%,transparent);border-radius:10px;background:color-mix(in srgb,var(--story-elevated) 82%,transparent);color:var(--story-text);cursor:pointer;text-align:left;font:inherit;box-sizing:border-box;transition:background-color .15s ease,border-color .15s ease,transform .1s ease}.command-shortcut-option{min-height:52px;padding:8px 10px;gap:9px;border-radius:11px}.command-shortcut-row+.command-shortcut-row{margin-top:4px}.command-shortcut-row:active:not(:disabled):not(.is-disabled){transform:scale(.99)}.command-shortcut-row:hover:not(:disabled):not(.is-disabled),.command-shortcut-option:hover:not(:disabled){background:color-mix(in srgb,var(--story-accent) 10%,var(--story-elevated));border-color:color-mix(in srgb,var(--story-accent) 40%,var(--story-line))}.command-shortcut-option.is-selected{background:color-mix(in srgb,var(--story-accent) 14%,var(--story-elevated));border-color:var(--story-accent)}.command-shortcut-row:disabled,.command-shortcut-option:disabled,.command-shortcut-row.is-disabled{opacity:.5;cursor:not-allowed}.command-shortcut-icon{display:grid;place-items:center;width:28px;height:28px;min-width:28px;background:transparent;font-size:1.08rem;line-height:1}.command-shortcut-badge{display:grid;place-items:center;width:36px;height:36px;min-width:36px;border-radius:10px;background:color-mix(in srgb,var(--story-accent) 14%,transparent);font-size:1.1rem;line-height:1}.command-shortcut-row>span:not(.command-shortcut-icon){flex:1 1 auto;min-width:0}.command-shortcut-label{display:block;font-weight:700;font-size:.9rem;line-height:1.18;color:var(--story-text)}.command-shortcut-description{display:block;color:var(--story-muted);font-size:.75rem;line-height:1.25;margin-top:2px}.command-shortcut-option-main{flex:1 1 auto;min-width:0;display:grid;gap:2px}.command-shortcut-option-name{font-size:1rem;font-weight:680;line-height:1.3;color:var(--story-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.command-shortcut-option-sub{font-size:.875rem;line-height:1.45;color:var(--story-muted)}.command-shortcut-option-qty{flex:0 0 auto;font-size:.9rem;font-weight:700;color:var(--story-accent);font-variant-numeric:tabular-nums}.command-shortcut-check{flex:0 0 auto;color:var(--story-accent);font-weight:700;font-size:1rem}.command-shortcut-list{display:grid;gap:6px;margin:8px 0 4px;padding:0;list-style:none;max-height:240px;overflow-y:auto}.command-shortcut-choice-list{display:grid;gap:6px;margin:0 0 8px;padding:0;list-style:none;max-height:220px;overflow-y:auto}.command-shortcut-sequence-line{margin:0 0 8px;color:var(--story-text);font-size:.94rem;line-height:1.45;font-weight:600}.command-shortcut-choice-item{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;padding:10px 12px;border:1px solid var(--story-line);border-radius:12px;background:var(--story-elevated);color:var(--story-text);font:inherit;text-align:left;cursor:pointer;box-sizing:border-box;transition:background-color .15s ease,border-color .15s ease}.command-shortcut-choice-item:hover:not(:disabled),.command-shortcut-choice-item:focus-visible:not(:disabled){background:color-mix(in srgb,var(--story-accent) 10%,var(--story-elevated));border-color:color-mix(in srgb,var(--story-accent) 40%,var(--story-line))}.command-shortcut-choice-item.is-selected{background:color-mix(in srgb,var(--story-accent) 14%,var(--story-elevated));border-color:var(--story-accent)}.command-shortcut-ordinal{display:grid;place-items:center;width:28px;height:28px;min-width:28px;border-radius:9px;background:color-mix(in srgb,var(--story-accent) 16%,transparent);color:var(--story-accent);font-weight:700;font-size:.9rem;font-variant-numeric:tabular-nums}.command-shortcut-choice-name{flex:1 1 auto;min-width:0;font-size:1rem;font-weight:650;line-height:1.4;color:var(--story-text)}.command-shortcut-field-label{display:block;margin:10px 0 5px;color:var(--story-muted);font-size:.875rem;font-weight:650}.command-shortcut-input{width:100%;min-height:42px;padding:8px 10px;border:1px solid var(--story-line);border-radius:10px;background:var(--story-elevated);color:var(--story-text);font:inherit;font-size:.95rem;outline:none;box-sizing:border-box}.command-shortcut-input:focus{border-color:var(--story-accent)}.command-shortcut-fieldset{display:grid;gap:6px;margin:10px 0 0;padding:10px;border:1px solid var(--story-line);border-radius:12px}.command-shortcut-fieldset legend{padding:0 4px;color:var(--story-muted);font-size:.875rem;font-weight:650}.command-shortcut-fieldset label{display:flex;align-items:center;gap:6px;min-height:32px;color:var(--story-text);font-size:.94rem}.command-shortcut-error{margin:4px 0 0;color:#e8a06a;font-size:.875rem;line-height:1.4}.command-shortcut-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px;padding-top:10px;border-top:1px solid var(--story-line)}.command-shortcut-action-stack{display:grid;gap:6px;margin:8px 0}.command-shortcut-section{margin-top:10px}.command-shortcut-section-title{margin:0 0 6px;font-size:.875rem;color:var(--story-muted);font-weight:650}.command-shortcut-major-action{display:grid;gap:2px;width:100%;min-height:56px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--story-accent) 22%,var(--story-line));border-radius:12px;background:color-mix(in srgb,var(--story-accent) 8%,var(--story-elevated));color:var(--story-text);cursor:pointer;text-align:left;font:inherit;box-sizing:border-box}.command-shortcut-major-action:disabled{opacity:.5;cursor:not-allowed}.command-shortcut-major-action span{font-weight:700;font-size:1rem}.command-shortcut-major-action small{color:var(--story-muted);font-size:.875rem;line-height:1.45}.command-shortcut-section-divider{height:1px;background:var(--story-line);margin:12px 0 4px}.command-shortcut-primary,.command-shortcut-secondary{min-height:44px;padding:0 16px;border-radius:11px;font-size:1rem;font-weight:700;cursor:pointer}.command-shortcut-primary{border:0;background:var(--story-accent);color:var(--story-accent-ink)}.command-shortcut-primary:disabled{opacity:.5;cursor:not-allowed}.command-shortcut-secondary{border:1px solid var(--story-line);background:var(--story-elevated);color:var(--story-text)}.command-shortcut-secondary:hover:not(:disabled){background:color-mix(in srgb,var(--story-accent) 10%,var(--story-elevated));border-color:color-mix(in srgb,var(--story-accent) 25%,var(--story-line))}@media(min-width:1024px){.command-shortcut-popover{left:-4px}}@media(max-width:679px){.command-shortcut-popover{right:auto;left:0;margin-inline:0;width:min(360px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:min(60vh,560px)}}@keyframes turn-outcome-card-in{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}.turn-outcome-card{display:grid;gap:0;margin:10px 0 6px;max-width:min(100%,44rem);box-sizing:border-box;border:1px solid color-mix(in srgb,var(--story-line) 82%,transparent);border-radius:10px;background:linear-gradient(135deg,color-mix(in srgb,var(--story-accent) 12%,transparent),transparent 54%),color-mix(in srgb,var(--story-elevated) 58%,transparent);color:var(--story-text);overflow:hidden;animation:turn-outcome-card-in .16s ease-out both}@media(prefers-reduced-motion:reduce){.turn-outcome-card{animation:none}}.turn-outcome-list{list-style:none;margin:0;padding:5px 9px;display:flex;flex-direction:column;gap:0}.turn-outcome-line{display:flex;flex-direction:row;align-items:center;gap:5px;padding:4px;font-size:.84rem;color:var(--story-text)}.turn-outcome-line--major{color:var(--story-text);font-weight:650}.turn-outcome-line--routine{font-size:.78rem;color:color-mix(in srgb,var(--story-text) 88%,var(--story-muted))}.turn-outcome-heading{padding:7px 10px 6px;border-bottom:1px solid color-mix(in srgb,var(--story-line) 62%,transparent);color:var(--story-text);font-size:.82rem;font-weight:700;letter-spacing:.02em}.turn-outcome-icon{flex-shrink:0;width:1.5em;text-align:center;font-size:1em}.turn-outcome-label{flex:1;min-width:0;overflow-wrap:anywhere}.turn-outcome-detail{flex-shrink:0;font-variant-numeric:tabular-nums;color:color-mix(in srgb,var(--story-text) 68%,var(--story-muted))}.turn-outcome-more{display:flex;justify-content:center;padding-top:3px;min-height:36px}.turn-outcome-more button{background:transparent;border:0;color:var(--story-muted);font-size:.76rem;cursor:pointer;padding:4px 12px;border-radius:6px}.turn-outcome-more button:hover{background:color-mix(in srgb,var(--story-accent) 8%,transparent);color:var(--story-text)}.turn-outcome-more button:focus-visible{outline:2px solid var(--story-accent);outline-offset:1px}@media(max-width:679px){.turn-outcome-card{border-radius:10px;margin:8px 0 5px}.turn-outcome-line{font-size:.8rem}}.creation-panel-sheet{--sheet-bg: var(--story-surface);--sheet-elevated: var(--story-elevated);--sheet-text: var(--story-text);--sheet-muted: var(--story-muted);--sheet-line: var(--story-line);--sheet-accent: var(--story-accent);--creation-accent-soft: color-mix(in srgb, var(--story-accent) 13%, transparent)}.creation-form{container-type:inline-size;display:block}.creation-invest-head{display:flex;align-items:baseline;justify-content:space-between;margin:2px 1px 8px}.creation-invest-label{font-size:.8rem;font-weight:650;color:var(--sheet-muted);letter-spacing:.5px}.creation-invest-count{font-size:.72rem;color:var(--sheet-muted);font-variant-numeric:tabular-nums}.creation-slots{display:flex;align-items:stretch;gap:5px}.creation-slot{position:relative;flex:1 1 0;min-width:0;min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 3px;border-radius:12px;background:var(--sheet-elevated);border:1.5px dashed color-mix(in srgb,var(--sheet-line) 90%,var(--sheet-muted));cursor:pointer;transition:background .12s ease,border-color .12s ease}.creation-slot.is-empty{color:var(--sheet-muted);font-size:.72rem;cursor:default}.creation-slot.is-filled{border-style:solid;border-color:color-mix(in srgb,var(--sheet-accent) 55%,var(--sheet-line));background:var(--creation-accent-soft)}.creation-slot-emoji{font-size:22px;line-height:1}.creation-slot-name{font-size:.72rem;font-weight:700;color:var(--sheet-text);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.creation-slot-own{font-size:.62rem;color:var(--sheet-muted)}.creation-slot-step{display:flex;align-items:center;gap:5px;margin-top:2px}.creation-slot-step button{width:22px;height:22px;border-radius:7px;border:1px solid var(--sheet-line);background:var(--sheet-bg);color:var(--sheet-text);font-size:13px;line-height:1;display:grid;place-items:center;cursor:pointer}.creation-slot-step output{font-size:.78rem;min-width:14px;text-align:center;font-weight:750;color:var(--sheet-accent);font-variant-numeric:tabular-nums}.creation-slot-remove{position:absolute;top:3px;right:5px;width:18px;height:18px;border:0;background:transparent;color:var(--sheet-muted);font-size:14px;line-height:1;cursor:pointer}.creation-slot-plus{align-self:center;color:var(--sheet-muted);font-weight:400;font-size:11px;opacity:.6;flex:0 0 auto}.creation-clear{margin-top:8px;background:transparent;border:1px solid var(--sheet-line);color:var(--sheet-muted);font-size:.74rem;font-family:inherit;border-radius:8px;padding:5px 10px;cursor:pointer}.creation-clear:hover:not(:disabled){color:var(--sheet-text);border-color:var(--sheet-muted)}.creation-clear:disabled{opacity:.4;cursor:not-allowed}.creation-field-label{display:block;font-size:.8rem;font-weight:650;color:var(--sheet-muted);margin:16px 0 6px}.creation-desc{position:relative}.creation-desc textarea{width:100%;resize:none;height:60px;background:var(--sheet-elevated);border:1px solid var(--sheet-line);color:var(--sheet-text);border-radius:11px;padding:10px 12px;font-size:.85rem;font-family:inherit;line-height:1.5}.creation-desc textarea::placeholder{color:var(--sheet-muted)}.creation-desc-count{position:absolute;right:10px;bottom:8px;font-size:.64rem;color:var(--sheet-muted);font-variant-numeric:tabular-nums}.creation-chips{display:flex;gap:6px;overflow-x:auto;padding:2px 0 8px;margin-top:4px;scrollbar-width:none}.creation-chips::-webkit-scrollbar{display:none}.creation-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid color-mix(in srgb,var(--sheet-line) 90%,transparent);border-radius:999px;background:color-mix(in srgb,var(--sheet-elevated) 55%,transparent);color:var(--sheet-muted);font-size:.74rem;font-weight:650;font-family:inherit;white-space:nowrap;cursor:pointer;transition:background .12s ease,border-color .12s ease}.creation-chip:hover{background:color-mix(in srgb,var(--sheet-elevated) 85%,transparent)}.creation-chip.is-active,.creation-chip.is-active:hover{border-color:color-mix(in srgb,var(--sheet-accent) 55%,var(--sheet-line));background:var(--creation-accent-soft);color:var(--sheet-text)}.creation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}@container (min-width: 480px){.creation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.creation-card{position:relative;display:flex;align-items:center;gap:8px;padding:8px 9px;border:1px solid color-mix(in srgb,var(--sheet-line) 82%,transparent);border-radius:10px;background:color-mix(in srgb,var(--sheet-elevated) 42%,transparent);color:var(--sheet-text);font-family:inherit;text-align:left;cursor:pointer;transition:background .12s ease,border-color .12s ease}.creation-card:hover:not(:disabled){background:color-mix(in srgb,var(--sheet-elevated) 72%,transparent);border-color:var(--sheet-line)}.creation-card-emoji{font-size:19px;width:22px;text-align:center;flex:0 0 auto}.creation-card-info{min-width:0}.creation-card-info b{display:block;font-size:.8rem;font-weight:680;color:var(--sheet-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.creation-card-info small{font-size:.66rem;color:var(--sheet-muted)}.creation-card-mark{position:absolute;top:5px;right:7px;font-size:.7rem;color:var(--sheet-accent)}.creation-card.is-disabled{opacity:.4;cursor:not-allowed;filter:grayscale(.5)}.creation-submit{margin-top:14px;width:100%;min-height:46px;border:0;border-radius:12px;background:var(--sheet-accent);color:var(--story-accent-ink);font-size:.95rem;font-weight:750;font-family:inherit;letter-spacing:.5px;cursor:pointer;transition:filter .12s ease}.creation-submit:hover:not(:disabled){filter:brightness(1.08)}.creation-submit:disabled{background:var(--sheet-elevated);color:var(--sheet-muted);border:1px solid var(--sheet-line);cursor:not-allowed}.creation-submit-tip{text-align:center;font-size:.72rem;color:var(--sheet-muted);margin-top:8px;min-height:14px}.creation-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 16px;min-height:320px}.creation-dice-stage{justify-content:flex-start;padding-top:18px;gap:0}.creation-bench{position:relative;width:min(86%,320px);height:250px;margin:0 auto}.creation-bench-plate{position:absolute;left:4%;right:4%;bottom:14px;height:82px;border:1px solid var(--sheet-line);border-radius:10px;background:linear-gradient(180deg,color-mix(in srgb,var(--sheet-elevated) 78%,transparent),color-mix(in srgb,var(--sheet-bg) 70%,var(--sheet-elevated)));box-shadow:0 14px 30px color-mix(in srgb,var(--sheet-text) 14%,transparent)}.creation-bench-plate:before{content:"";position:absolute;left:14px;right:14px;top:9px;height:1px;background:color-mix(in srgb,var(--sheet-line) 80%,transparent)}.creation-bench-mark{position:absolute;left:50%;top:32px;width:36px;height:5px;border-radius:3px;background:color-mix(in srgb,var(--verdict-color) 46%,transparent);transform:translate(-50%) scaleX(0);transform-origin:center;transition:transform .26s cubic-bezier(.2,.9,.3,1.18)}.creation-dice-stage.is-locked .creation-bench-mark{transform:translate(-50%) scaleX(1)}.creation-bench-mat{position:absolute;bottom:100px;font-size:24px;line-height:1;filter:drop-shadow(0 3px 4px color-mix(in srgb,var(--sheet-text) 20%,transparent));opacity:0;transform:translateY(16px) scale(.8)}.creation-dice-stage .creation-bench-mat{transition:opacity .3s ease,transform .34s cubic-bezier(.2,.9,.3,1.2)}.creation-dice-stage .creation-bench-mat.is-in,.creation-bench-step-spin .creation-bench-mat,.creation-bench-step-strike .creation-bench-mat,.creation-bench-step-locked .creation-bench-mat{opacity:1;transform:none}.creation-die{position:absolute;left:50%;bottom:92px;width:92px;height:100px;transform:translate(-50%);opacity:0;transition:opacity .22s ease}.creation-die.is-visible{opacity:1}.creation-die.is-rolling{animation:creation-die-wobble .19s ease-in-out infinite alternate}@keyframes creation-die-wobble{0%{transform:translate(-52%) rotate(-7deg) translateY(-2px)}to{transform:translate(-48%) rotate(7deg) translateY(1px)}}.creation-die.is-locked{animation:creation-die-snap .32s cubic-bezier(.2,.65,.3,1.22) both}@keyframes creation-die-snap{0%{transform:translate(-50%) scale(1.14) rotate(4deg)}60%{transform:translate(-50%) scale(.96) rotate(-2deg)}to{transform:translate(-50%) scale(1) rotate(0)}}.creation-die-shell{position:absolute;inset:0;background:color-mix(in srgb,var(--sheet-muted) 52%,var(--sheet-text));clip-path:polygon(50% 0%,93% 26%,93% 74%,50% 100%,7% 74%,7% 26%)}.creation-dice-stage.is-locked .creation-die-shell{background:var(--verdict-color)}.creation-die-face{position:absolute;inset:3px;background:var(--sheet-bg);clip-path:polygon(50% 0%,93% 26%,93% 74%,50% 100%,7% 74%,7% 26%);display:grid;place-items:center}.creation-die-num{font-size:30px;font-weight:800;color:var(--sheet-text);font-variant-numeric:tabular-nums}.creation-dice-stage.is-locked .creation-die-num{color:var(--verdict-color)}.creation-hammer{position:absolute;left:50%;bottom:158px;width:112px;height:122px;margin-left:-56px;transform-origin:50% 6%;transform:rotate(56deg);opacity:0;transition:opacity .18s ease;pointer-events:none}.creation-hammer.is-in{opacity:1}.creation-hammer-handle{position:absolute;bottom:22px;left:50%;transform:translate(-50%);width:9px;height:96px;border-radius:4px;background:color-mix(in srgb,var(--sheet-muted) 72%,var(--sheet-text))}.creation-hammer-head{position:absolute;bottom:0;left:50%;transform:translate(-50%);width:44px;height:24px;border-radius:6px;background:var(--sheet-text);box-shadow:inset 0 3px color-mix(in srgb,var(--sheet-bg) 26%,transparent)}.creation-hammer.is-swing{animation:creation-hammer-swing .22s cubic-bezier(.3,.7,.4,1.2) both}@keyframes creation-hammer-swing{0%{transform:rotate(56deg)}55%{transform:rotate(-9deg)}75%{transform:rotate(-3deg)}to{transform:rotate(56deg)}}.creation-hammer.is-swing-final{animation:creation-hammer-final .26s cubic-bezier(.3,.7,.4,1.15) both}@keyframes creation-hammer-final{0%{transform:rotate(56deg)}60%{transform:rotate(-11deg)}to{transform:rotate(-6deg)}}.creation-hit-flash{position:absolute;left:50%;bottom:128px;width:116px;height:58px;margin-left:-58px;background:radial-gradient(closest-side,color-mix(in srgb,var(--sheet-bg) 92%,transparent),transparent);opacity:0;pointer-events:none}.creation-hit-flash.is-on{animation:creation-hit-flash .2s ease-out both}@keyframes creation-hit-flash{0%{opacity:.85}to{opacity:0}}.creation-shock{position:absolute;left:50%;bottom:96px;width:140px;height:140px;margin-left:-70px;margin-bottom:-20px;border:2px solid color-mix(in srgb,var(--sheet-muted) 58%,transparent);border-radius:50%;opacity:0;pointer-events:none}.creation-shock.is-on{animation:creation-shock-wave .42s ease-out both}.creation-shock.is-strong{border-color:color-mix(in srgb,var(--verdict-color) 62%,transparent)}@keyframes creation-shock-wave{0%{opacity:.6;transform:scale(.35)}to{opacity:0;transform:scale(1.6)}}.creation-bench.is-shake{animation:creation-bench-shake .17s ease-out}@keyframes creation-bench-shake{0%{transform:translate(0)}30%{transform:translate(-2px,1px)}60%{transform:translate(2px,-1px)}to{transform:translate(0)}}.creation-forge-fx{--fx-gold: color-mix(in oklab, var(--sheet-accent) 58%, #e8b54a);--fx-gold-soft: color-mix(in oklab, var(--fx-gold) 36%, var(--sheet-bg));--fx-glow-c: color-mix(in srgb, var(--fx-gold) 45%, transparent);--fx-flash-c: color-mix(in srgb, var(--fx-gold-soft) 62%, transparent);--fx-spark-c: var(--fx-gold);position:absolute;left:50%;bottom:190px;width:0;height:0;pointer-events:none;z-index:3}.creation-forge-glow{position:absolute;left:-95px;top:10px;width:190px;height:64px;border-radius:50%;background:radial-gradient(closest-side,var(--fx-glow-c),transparent 72%);filter:blur(2px);opacity:0}.creation-impact-ring{position:absolute;left:-43px;top:-43px;width:86px;height:86px;border-radius:50%;border:3px solid var(--fx-gold-soft);box-shadow:0 0 14px color-mix(in srgb,var(--fx-gold) 35%,transparent);opacity:0}.creation-impact-ring:after{content:"";position:absolute;inset:-14px;border-radius:50%;border:2px solid var(--fx-gold);opacity:0}.creation-forge-spark{position:absolute;left:-1.5px;top:-4px;width:3px;height:8px;border-radius:2px;background:var(--fx-spark-c);opacity:0}.creation-forge-sparks{position:absolute;left:0;top:0}.creation-forge-spark:nth-child(1){--fx-a: -90deg;--fx-i: 0}.creation-forge-spark:nth-child(2){--fx-a: -52deg;--fx-i: 1;--fx-m: .85}.creation-forge-spark:nth-child(3){--fx-a: -14deg;--fx-i: 2;--fx-m: 1.15}.creation-forge-spark:nth-child(4){--fx-a: 22deg;--fx-i: 3;--fx-m: .9}.creation-forge-spark:nth-child(5){--fx-a: 58deg;--fx-i: 4;--fx-m: 1.05}.creation-forge-spark:nth-child(6){--fx-a: 96deg;--fx-i: 5;--fx-m: .8}.creation-forge-spark:nth-child(7){--fx-a: 138deg;--fx-i: 6;--fx-m: 1.1}.creation-forge-spark:nth-child(8){--fx-a: 176deg;--fx-i: 7;--fx-m: .9}.creation-forge-spark:nth-child(9){--fx-a: 216deg;--fx-i: 8;--fx-m: 1.2}.creation-forge-spark:nth-child(10){--fx-a: 254deg;--fx-i: 9;--fx-m: .85}.creation-forge-flash{position:absolute;left:-60px;top:-38px;width:120px;height:76px;border-radius:50%;background:radial-gradient(closest-side,var(--fx-flash-c),transparent 70%);opacity:0}.creation-forge-smoke-a,.creation-forge-smoke-b{position:absolute;width:44px;height:44px;border-radius:50%;background:radial-gradient(closest-side,color-mix(in srgb,var(--sheet-muted) 50%,transparent),transparent 70%);filter:blur(5px);opacity:0}.creation-forge-smoke-a{left:-30px;top:-32px}.creation-forge-smoke-b{left:2px;top:-20px}.creation-forge-crack{position:absolute;left:-80px;top:10px;width:160px;height:56px;color:var(--judge-crit);opacity:0}.creation-forge-struck .creation-forge-glow{animation:creation-forge-glow 2.1s ease-out both}.creation-forge-struck .creation-impact-ring{animation:creation-forge-ring .42s ease-out .14s both}.creation-forge-struck .creation-forge-spark{animation:creation-forge-spark .36s cubic-bezier(.1,.7,.3,1) both;animation-delay:calc(145ms + var(--fx-i, 0) * 16ms)}.creation-forge-struck .creation-forge-flash{animation:creation-forge-flash .46s ease-out .12s both}@keyframes creation-forge-glow{0%{opacity:0;transform:scale(.6)}12%{opacity:.55;transform:scale(1)}22%{opacity:.8}46%{opacity:.3}78%,to{opacity:0}}@keyframes creation-forge-ring{0%{transform:scale(.22);opacity:0}14%{opacity:.95}to{transform:scale(1.05);opacity:0}}@keyframes creation-forge-spark{0%{transform:rotate(var(--fx-a, 0deg)) translateY(-8px) scaleY(.6);opacity:0}12%{opacity:var(--fx-o, 1)}60%{opacity:var(--fx-o, 1)}to{transform:rotate(var(--fx-a, 0deg)) translateY(calc(-1 * var(--fx-d, 38px) * var(--fx-m, 1))) scaleY(1);opacity:0}}@keyframes creation-forge-flash{0%,12%{opacity:0}22%{opacity:.55}to{opacity:0}}.creation-outcome-critical-fail .creation-forge-fx{--fx-d: 20px;--fx-spark-c: var(--judge-crit);--fx-glow-c: color-mix(in srgb, var(--judge-crit) 40%, transparent);--fx-flash-c: color-mix(in srgb, var(--judge-crit) 55%, transparent)}.creation-outcome-critical-fail .creation-impact-ring{border-style:dashed;border-color:color-mix(in srgb,var(--judge-crit) 85%,transparent);animation-name:creation-forge-ring-cf}@keyframes creation-forge-ring-cf{0%{transform:scale(.22) rotate(0) scaleY(1);opacity:0}14%{opacity:.9}to{transform:scale(1.05) rotate(26deg) scaleY(.78);opacity:0}}.creation-outcome-critical-fail .creation-forge-spark:nth-child(n+7){display:none}.creation-outcome-critical-fail .creation-forge-flash{animation-name:creation-forge-flash-cf}@keyframes creation-forge-flash-cf{0%,10%{opacity:0}20%{opacity:.8}38%{opacity:.15}58%{opacity:.6}to{opacity:0}}.creation-outcome-critical-fail .creation-forge-crack{animation:creation-forge-crack 1.5s ease-out .16s both}@keyframes creation-forge-crack{0%{opacity:0;transform:scale(.9)}18%{opacity:.95;transform:scale(1)}62%{opacity:.85}to{opacity:0}}.creation-outcome-fail .creation-forge-fx{--fx-d: 16px;--fx-o: .5;--fx-spark-c: var(--judge-fail);--fx-glow-c: color-mix(in srgb, var(--judge-fail) 28%, transparent);--fx-flash-c: color-mix(in srgb, var(--judge-fail) 35%, transparent)}.creation-outcome-fail .creation-impact-ring{border-color:color-mix(in srgb,var(--judge-fail) 50%,transparent);animation-name:creation-forge-ring-fail}@keyframes creation-forge-ring-fail{0%{transform:scale(.2);opacity:0}16%{opacity:.5}to{transform:scale(.7);opacity:0}}.creation-outcome-fail .creation-forge-spark:nth-child(n+7){display:none}.creation-outcome-fail .creation-forge-smoke-a{animation:creation-forge-smoke .76s ease-out .38s both}.creation-outcome-fail .creation-forge-smoke-b{animation:creation-forge-smoke .76s ease-out .56s both}@keyframes creation-forge-smoke{0%{transform:translateY(4px) scale(.7);opacity:0}25%{opacity:.4}to{transform:translateY(-24px) scale(1.15);opacity:0}}.creation-outcome-partial .creation-forge-fx{--fx-d: 30px}.creation-outcome-partial .creation-impact-ring{animation-name:creation-forge-ring-flicker}@keyframes creation-forge-ring-flicker{0%{transform:scale(.22);opacity:0}12%{opacity:.85}30%{opacity:.35}45%{opacity:.8}60%{opacity:.45}to{transform:scale(1.02);opacity:0}}.creation-outcome-partial .creation-forge-spark{animation-name:creation-forge-spark-flicker}@keyframes creation-forge-spark-flicker{0%{transform:rotate(var(--fx-a, 0deg)) translateY(-8px) scaleY(.6);opacity:0}12%{opacity:var(--fx-o, 1)}32%{opacity:.25}48%{opacity:.9}62%{opacity:.3}to{transform:rotate(var(--fx-a, 0deg)) translateY(calc(-1 * var(--fx-d, 38px) * var(--fx-m, 1))) scaleY(1);opacity:0}}.creation-outcome-partial .creation-forge-flash{animation-name:creation-forge-flash-flicker}@keyframes creation-forge-flash-flicker{0%,10%{opacity:0}20%{opacity:.4}38%{opacity:.12}58%{opacity:.42}to{opacity:0}}.creation-outcome-success .creation-forge-fx{--fx-d: 38px}.creation-outcome-critical-success .creation-forge-fx{--fx-d: 52px;--fx-glow-c: color-mix(in srgb, var(--fx-gold) 55%, transparent)}.creation-outcome-critical-success .creation-forge-spark:nth-child(3n){--fx-m: 1.3;background:var(--fx-gold-soft)}.creation-outcome-critical-success .creation-impact-ring{border-color:var(--fx-gold-soft);box-shadow:0 0 18px color-mix(in srgb,var(--fx-gold) 55%,transparent)}.creation-outcome-critical-success .creation-impact-ring:after{animation:creation-forge-ring-echo .48s ease-out .22s both}@keyframes creation-forge-ring-echo{0%{transform:scale(.3);opacity:0}15%{opacity:.8}to{transform:scale(1.18);opacity:0}}.creation-outcome-critical-success .creation-forge-flash{animation-name:creation-forge-flash-cs}@keyframes creation-forge-flash-cs{0%,10%{opacity:0}20%{opacity:.75}to{opacity:0}}.creation-stage-caption{min-height:20px;margin-top:14px;text-align:center;font-size:.84rem;font-weight:650;color:var(--sheet-muted);letter-spacing:.3px}.creation-stage-skiphint{min-height:15px;margin-top:4px;text-align:center;font-size:.68rem;color:color-mix(in srgb,var(--sheet-muted) 74%,transparent)}.creation-fate-help{position:relative;display:inline-flex}.creation-fate-help-trigger{min-height:32px;padding:0 10px;border:1px solid var(--sheet-line);border-radius:999px;background:color-mix(in srgb,var(--sheet-elevated) 62%,transparent);color:var(--sheet-muted);font:inherit;font-size:.68rem;font-weight:700;white-space:nowrap;cursor:pointer}.creation-fate-help-trigger:hover,.creation-fate-help-trigger[aria-expanded=true]{color:var(--sheet-text);border-color:color-mix(in srgb,var(--sheet-accent) 42%,var(--sheet-line))}.creation-fate-help-popover{position:absolute;z-index:8;top:calc(100% + 7px);right:0;width:min(280px,calc(100vw - 32px));padding:11px 12px;border:1px solid var(--sheet-line);border-radius:12px;background:var(--sheet-bg);box-shadow:0 12px 30px color-mix(in srgb,var(--sheet-text) 14%,transparent);color:var(--sheet-muted);font-size:.72rem;line-height:1.6;white-space:normal}.creation-fate-help-popover b,.creation-fate-help-popover span{display:block}.creation-fate-help-popover b{margin-bottom:4px;color:var(--sheet-text);font-weight:750}.creation-fate-help-popover span+span{margin-top:5px}.creation-generating{min-height:372px}.creation-generating-card{width:100%;min-height:256px;display:flex;justify-content:center;align-items:flex-start}.creation-generating .creation-result-card{animation:none;opacity:1;transform:rotate(var(--card-tilt));box-shadow:0 12px 28px color-mix(in srgb,var(--sheet-text) 14%,transparent)}.creation-generating.verdict-critical .creation-card-sticker,.creation-generating.verdict-fail .creation-card-sticker{opacity:1}.creation-generating.verdict-critical .creation-result-card:after{opacity:.45}.creation-generating.verdict-great .creation-result-card{box-shadow:0 12px 28px color-mix(in srgb,var(--sheet-text) 14%,transparent),0 0 0 4px color-mix(in srgb,var(--sheet-accent) 14%,transparent)}.creation-generating.verdict-great .creation-card-sheen:before{transform:translate(470%) rotate(8deg)}.creation-generating-process{flex:1 1 auto;width:min(100%,340px);margin:4px auto 0;display:flex;flex-direction:column}.creation-gen-main{font-size:.92rem;font-weight:650;line-height:1.75;color:var(--sheet-text)}.creation-gen-recap{margin-top:12px;padding:10px 12px;border:1px solid var(--sheet-line);border-radius:10px;background:color-mix(in srgb,var(--sheet-elevated) 55%,transparent);font-size:.74rem;color:var(--sheet-muted);line-height:1.8}.creation-gen-recap b{color:var(--sheet-text);font-weight:650}.creation-gen-flavor{margin-top:12px;margin-bottom:12px;min-height:18px;font-size:.74rem;font-weight:600;color:var(--sheet-muted)}.creation-gen-prog{margin-top:auto;height:4px;border-radius:2px;background:color-mix(in srgb,var(--sheet-line) 70%,transparent);overflow:hidden}.creation-gen-prog i{display:block;height:100%;width:6%;border-radius:2px;background:var(--sheet-accent);transition:width .32s linear}.creation-reveal-rtag{font-size:.62rem;font-weight:750;border-radius:999px;padding:1px 8px;border:1px solid var(--sheet-line);color:var(--sheet-muted);background:color-mix(in srgb,var(--sheet-muted) 12%,transparent)}.creation-reveal-rtag.rt-skill{background:var(--sheet-accent);border-color:var(--sheet-accent);color:var(--story-accent-ink)}.creation-reveal-rtag.rt-kuso{background:var(--judge-fail);border-color:var(--judge-fail);color:var(--sheet-bg)}.creation-reveal-item.is-skillcard{border:1px solid var(--sheet-accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sheet-accent) 34%,transparent)}.creation-reveal-item.is-great-skill{animation:creation-great-glow .9s ease-out .25s both}@keyframes creation-great-glow{0%{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sheet-accent) 34%,transparent),0 0 color-mix(in srgb,var(--sheet-accent) 30%,transparent)}55%{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sheet-accent) 34%,transparent),0 0 0 9px color-mix(in srgb,var(--sheet-accent) 15%,transparent)}to{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sheet-accent) 34%,transparent),0 0 0 3px color-mix(in srgb,var(--sheet-accent) 13%,transparent)}}.creation-reveal-item.is-kuso{transform:rotate(-1.1deg)}.creation-reveal-ledger{width:100%;padding:10px 12px;border:1px solid var(--sheet-line);border-radius:10px;background:color-mix(in srgb,var(--sheet-elevated) 55%,transparent);font-size:.74rem;line-height:1.85;color:var(--sheet-muted)}.creation-reveal-ledger b{color:var(--sheet-text);font-weight:650}.creation-reveal-ledger-ttl{display:block;font-size:.68rem;font-weight:750;letter-spacing:.14em;margin-bottom:3px;color:var(--sheet-muted)}.creation-reveal-bagnote{width:100%;padding:9px 12px;border-radius:10px;border:1px solid color-mix(in srgb,var(--sheet-accent) 42%,var(--sheet-line));background:var(--creation-accent-soft);font-size:.76rem;font-weight:650;color:var(--sheet-text);line-height:1.6}.creation-result-row{display:flex;gap:10px}.creation-result-emoji{font-size:50px;animation:creation-res-pop .5s cubic-bezier(.2,1.4,.4,1) both;filter:drop-shadow(0 0 16px color-mix(in srgb,var(--sheet-accent) 60%,transparent))}.creation-result-row .creation-result-emoji{font-size:38px}.creation-reveal{justify-content:flex-start;width:100%;min-height:360px}.creation-reveal-scroll{flex:1 1 auto;width:100%;min-height:0;overflow-y:auto;display:flex;flex-direction:column;align-items:center;gap:14px;padding:4px 2px 12px}.creation-reveal-preview{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}.creation-reveal-title{font-size:1.05rem;font-weight:750;color:var(--sheet-text);animation:creation-res-up .4s .12s ease both}.creation-reveal-tag{font-size:.74rem;color:var(--sheet-text);letter-spacing:1px;background:var(--creation-accent-soft);border:1px solid color-mix(in srgb,var(--sheet-accent) 40%,var(--sheet-line));border-radius:999px;padding:4px 12px;animation:creation-res-up .4s .22s ease both}.creation-reveal-list{width:100%;display:flex;flex-direction:column;gap:8px}.creation-reveal-item{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--sheet-line);border-radius:12px;background:color-mix(in srgb,var(--sheet-elevated) 55%,transparent);text-align:left}.creation-reveal-item-emoji{font-size:26px;line-height:1.2;flex:0 0 auto}.creation-reveal-item-body{min-width:0;display:flex;flex-direction:column;gap:4px}.creation-reveal-item-body b{font-size:.9rem;font-weight:750;color:var(--sheet-text)}.creation-reveal-item-body p{margin:0;font-size:.78rem;color:var(--sheet-muted);line-height:1.55}.creation-reveal-qty{margin-left:6px;font-size:.74rem;font-weight:650;color:var(--sheet-accent)}.creation-reveal-tags{display:flex;flex-wrap:wrap;gap:4px}.creation-reveal-tags span{font-size:.66rem;color:var(--sheet-muted);background:color-mix(in srgb,var(--sheet-muted) 14%,transparent);border-radius:999px;padding:1px 8px}.creation-confirm{flex:0 0 auto;width:100%;min-height:46px;margin-top:10px;border:0;border-radius:12px;background:var(--sheet-accent);color:var(--story-accent-ink);font-size:.95rem;font-weight:750;font-family:inherit;cursor:pointer;transition:filter .12s ease}.creation-confirm:hover{filter:brightness(1.08)}.creation-intent-title{font-size:.74rem;font-weight:650;color:var(--sheet-muted);margin:12px 0 5px}.creation-intent-picker{position:relative}.creation-intent-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:36px;border:1px solid var(--sheet-line);border-radius:9px;padding:0 10px;font-family:inherit;font-size:.78rem;font-weight:650;color:var(--sheet-text);background:var(--sheet-elevated);cursor:pointer;transition:border-color .13s ease,background .13s ease}.creation-intent-trigger:hover{border-color:color-mix(in srgb,var(--sheet-accent) 30%,var(--sheet-line))}.creation-intent-trigger.is-on{border-color:color-mix(in srgb,var(--sheet-accent) 55%,var(--sheet-line));background:var(--creation-accent-soft)}.creation-intent-chevron{font-size:.58rem;color:var(--sheet-muted);flex:0 0 auto}.creation-intent-dropdown{position:absolute;top:calc(100% + 3px);left:0;right:0;z-index:30;background:var(--sheet-elevated);border:1px solid var(--sheet-line);border-radius:10px;max-height:200px;overflow-y:auto;box-shadow:0 12px 32px #0006}.creation-intent-dropdown::-webkit-scrollbar{width:4px}.creation-intent-dropdown::-webkit-scrollbar-thumb{background:var(--sheet-line);border-radius:2px}.creation-intent-option{display:flex;align-items:center;gap:7px;padding:8px 10px;font-family:inherit;font-size:.8rem;color:var(--sheet-text);cursor:pointer;border:0;background:transparent;width:100%;text-align:left;transition:background .1s ease}.creation-intent-option:hover{background:var(--creation-accent-soft)}.creation-intent-option.is-selected{background:var(--creation-accent-soft);font-weight:700}.creation-intent-option-emoji{font-size:.93rem;width:20px;text-align:center;flex:0 0 auto}.creation-panel-sheet .bottom-sheet-scroll{box-sizing:border-box;padding:4px 10px calc(18px + env(safe-area-inset-bottom))}.creation-slots{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;overflow:visible}.creation-slots::-webkit-scrollbar{display:none}.creation-slot{width:auto;min-width:0;min-height:68px;position:relative;border:1.5px dashed color-mix(in srgb,var(--sheet-line) 88%,var(--sheet-muted));border-radius:10px;background:var(--sheet-elevated);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:5px 2px 6px;cursor:pointer;transition:border-color .13s ease,background .13s ease}.creation-slot.is-empty{color:var(--sheet-muted);font-size:.68rem;cursor:default}.creation-slot.is-filled{border-style:solid;border-color:color-mix(in srgb,var(--sheet-accent) 55%,var(--sheet-line));background:var(--creation-accent-soft);cursor:pointer}.creation-slot-emoji{font-size:20px;line-height:1}.creation-slot-name{font-size:.66rem;font-weight:700;color:var(--sheet-text);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.creation-slot-own{font-size:.6rem;color:var(--sheet-muted)}.creation-slot-step{display:flex;align-items:center;gap:4px;margin-top:2px}.creation-slot-step button{width:20px;height:20px;border-radius:6px;border:1px solid var(--sheet-line);background:var(--sheet-bg);color:var(--sheet-text);font-family:inherit;font-size:.7rem;cursor:pointer;display:grid;place-items:center;padding:0}.creation-slot-step button:disabled{opacity:.35;cursor:not-allowed}.creation-slot-step output{font-size:.74rem;min-width:10px;text-align:center;color:var(--sheet-text);font-variant-numeric:tabular-nums}.creation-slot-plus{display:none}.creation-slot-remove{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:6px;background:color-mix(in srgb,var(--sheet-bg) 60%,var(--sheet-elevated));border:1px solid var(--sheet-line);color:var(--sheet-muted);font-size:.62rem;cursor:pointer;display:grid;place-items:center;transition:color .13s}.creation-slot-remove:hover{color:var(--sheet-text)}.creation-dice-stage .creation-tier-slam{min-height:0}.creation-judge-settle .creation-tier-slam{animation:creation-judge-up .3s ease both}.creation-tier-slam{--verdict-color: var(--sheet-accent);width:min(100%,306px);box-sizing:border-box;display:grid;place-items:center;padding:8px 0;min-height:300px;text-align:center}.verdict-critical{--verdict-color: var(--judge-crit)}.verdict-fail{--verdict-color: var(--judge-fail)}.verdict-partial{--verdict-color: var(--judge-part)}.verdict-normal,.verdict-great{--verdict-color: var(--sheet-accent)}.creation-result-card{--card-tilt: -1.2deg;grid-area:1 / 1;position:relative;width:262px;justify-self:center;transform-origin:center center;border-radius:8px;border:1px solid color-mix(in srgb,var(--verdict-color) 42%,var(--sheet-line));background:radial-gradient(120% 90% at 50% 0%,color-mix(in srgb,var(--sheet-text) 5%,transparent),transparent 55%),repeating-linear-gradient(0deg,color-mix(in srgb,var(--sheet-text) 3.5%,transparent) 0 1px,transparent 1px 4px),repeating-linear-gradient(90deg,color-mix(in srgb,var(--sheet-text) 2.5%,transparent) 0 1px,transparent 1px 5px),var(--sheet-bg);box-shadow:0 16px 36px color-mix(in srgb,var(--sheet-text) 18%,transparent);padding:15px 18px 13px;display:grid;justify-items:center;gap:4px;opacity:0;transform:perspective(700px) rotateY(84deg) rotate(-4deg)}.verdict-fail .creation-result-card{--card-tilt: -2.4deg}.verdict-critical .creation-result-card{--card-tilt: -3deg}.verdict-partial .creation-result-card{--card-tilt: -1.6deg}.creation-judge-flip .creation-result-card,.creation-judge-settle .creation-result-card{animation:creation-card-reveal .42s cubic-bezier(.2,.9,.3,1.18) both}@keyframes creation-card-reveal{0%{opacity:0;transform:perspective(700px) rotateY(84deg) rotate(-4deg)}62%{opacity:1;transform:perspective(700px) rotateY(-7deg) rotate(var(--card-tilt))}to{opacity:1;transform:perspective(700px) rotateY(0) rotate(var(--card-tilt))}}.creation-result-card:before{content:"";position:absolute;inset:5px;border:1px solid color-mix(in srgb,var(--verdict-color) 34%,var(--sheet-line));border-radius:5px;pointer-events:none}.verdict-partial .creation-result-card:before{border-style:dashed}.verdict-great .creation-result-card:before{border-color:color-mix(in srgb,var(--verdict-color) 58%,var(--sheet-line))}.verdict-great .creation-result-card:after{content:"";position:absolute;inset:9px;border:1px solid color-mix(in srgb,var(--verdict-color) 28%,transparent);border-radius:4px;pointer-events:none}.verdict-critical .creation-result-card:after{content:"";position:absolute;inset:0;border-radius:8px;box-shadow:inset 0 0 34px color-mix(in srgb,var(--judge-crit) 26%,transparent);opacity:0;pointer-events:none}.creation-judge-settle.verdict-critical .creation-result-card:after{animation:creation-card-vignette .5s ease-out .05s both}@keyframes creation-card-vignette{0%{opacity:0}35%{opacity:1}to{opacity:.45}}.creation-card-corner{position:absolute;width:10px;height:10px;border:0 solid color-mix(in srgb,var(--verdict-color) 48%,var(--sheet-line));pointer-events:none}.creation-card-corner.cc-tl{top:9px;left:9px;border-top-width:2px;border-left-width:2px}.creation-card-corner.cc-tr{top:9px;right:9px;border-top-width:2px;border-right-width:2px}.creation-card-corner.cc-bl{bottom:9px;left:9px;border-bottom-width:2px;border-left-width:2px}.creation-card-corner.cc-br{bottom:9px;right:9px;border-bottom-width:2px;border-right-width:2px}.verdict-great .creation-card-corner{border-color:color-mix(in srgb,var(--verdict-color) 72%,var(--sheet-line))}.creation-card-kicker{margin-top:4px;font-size:10px;font-weight:650;letter-spacing:.3em;text-indent:.3em;color:var(--sheet-muted)}.creation-tier-stamp{font-size:38px;font-weight:900;letter-spacing:.1em;line-height:1.1;color:var(--verdict-color)}.verdict-critical .creation-tier-stamp{font-size:42px}.creation-judge-settle.verdict-critical .creation-tier-stamp{animation:creation-card-glitch .3s steps(2,jump-none) both}@keyframes creation-card-glitch{0%{transform:translate(0);text-shadow:-2px 0 color-mix(in srgb,var(--judge-crit) 70%,transparent),2px 0 color-mix(in srgb,var(--sheet-accent) 55%,transparent)}50%{transform:translate(2px,-1px) skew(-3deg);text-shadow:2px 0 color-mix(in srgb,var(--judge-crit) 70%,transparent),-2px 0 color-mix(in srgb,var(--sheet-accent) 55%,transparent)}to{transform:translate(0);text-shadow:none}}.creation-card-epithet{font-size:11px;font-weight:650;letter-spacing:.22em;text-indent:.22em;color:var(--sheet-muted)}.creation-tier-roll{margin-top:2px;font-size:11px;font-weight:700;color:var(--verdict-color);border:1px solid color-mix(in srgb,var(--verdict-color) 46%,transparent);border-radius:999px;padding:2px 10px;font-variant-numeric:tabular-nums}.creation-card-divider{display:flex;align-items:center;gap:7px;width:100%;margin:6px 0 2px}.creation-card-divider i{flex:1;height:1px;background:var(--sheet-line)}.creation-card-divider b{width:6px;height:6px;transform:rotate(45deg);background:color-mix(in srgb,var(--verdict-color) 62%,var(--sheet-line))}.verdict-partial .creation-card-divider i{background:none;border-top:1px dashed color-mix(in srgb,var(--verdict-color) 52%,var(--sheet-line))}.creation-card-result{display:grid;justify-items:center;gap:2px;width:100%}.creation-card-result-emoji{font-size:28px;line-height:1.15}.creation-card-result-line{display:block;font-size:14px;font-weight:750;color:var(--sheet-text)}.creation-card-result-line small{display:block;font-size:9.5px;font-weight:700;letter-spacing:.26em;text-indent:.26em;color:var(--sheet-muted);margin-bottom:1px}.creation-card-result-line.is-note{font-size:11.5px;font-weight:500;line-height:1.55;color:var(--sheet-muted);max-width:200px}.creation-card-settlement{margin-top:4px;font-size:10.5px;color:var(--sheet-muted)}.creation-card-sticker{position:absolute;top:-11px;right:12px;font-size:15px;font-weight:900;letter-spacing:.06em;color:var(--sheet-bg);background:var(--judge-crit);border-radius:6px;padding:4px 10px;transform:rotate(12deg);opacity:0;box-shadow:0 6px 16px color-mix(in srgb,var(--sheet-text) 25%,transparent);pointer-events:none}.creation-judge-settle.verdict-critical .creation-card-sticker{animation:creation-sticker-pop .3s cubic-bezier(.2,.9,.3,1.18) both}@keyframes creation-sticker-pop{0%{opacity:0;transform:rotate(24deg) scale(.3)}to{opacity:1;transform:rotate(12deg) scale(1)}}.creation-card-shard{position:absolute;inset:0;margin:auto;width:7px;height:11px;border-radius:2px;background:color-mix(in srgb,var(--judge-crit) 75%,var(--sheet-text));opacity:0;pointer-events:none}.creation-card-shard.cs-1{--shard-x: -78px;--shard-y: -46px}.creation-card-shard.cs-2{--shard-x: 84px;--shard-y: -34px}.creation-card-shard.cs-3{--shard-x: -64px;--shard-y: 52px}.creation-card-shard.cs-4{--shard-x: 70px;--shard-y: 58px}.creation-card-shard.cs-5{--shard-x: 6px;--shard-y: -70px}.creation-judge-settle.verdict-critical .creation-card-shard{animation:creation-shard-fly .45s ease-out both}.creation-judge-settle.verdict-critical .creation-card-shard.cs-2{animation-delay:.05s}.creation-judge-settle.verdict-critical .creation-card-shard.cs-3{animation-delay:.08s}.creation-judge-settle.verdict-critical .creation-card-shard.cs-4{animation-delay:.03s}.creation-judge-settle.verdict-critical .creation-card-shard.cs-5{animation-delay:.1s}@keyframes creation-shard-fly{0%{opacity:.8;transform:translate(0) scale(1)}to{opacity:0;transform:translate(var(--shard-x),var(--shard-y)) scale(.3)}}.creation-card-spark{position:absolute;width:9px;height:9px;opacity:0;pointer-events:none}.creation-card-spark:before,.creation-card-spark:after{content:"";position:absolute;background:var(--verdict-color);border-radius:1.5px}.creation-card-spark:before{left:3.5px;top:0;width:2px;height:9px}.creation-card-spark:after{left:0;top:3.5px;width:9px;height:2px}.creation-card-spark.ck-1{top:13px;left:18px}.creation-card-spark.ck-2{top:19px;right:20px}.creation-card-spark.ck-3{bottom:42px;left:14px}.creation-card-spark.ck-4{bottom:36px;right:16px}.creation-judge-flip.verdict-great .creation-card-spark,.creation-judge-settle.verdict-great .creation-card-spark{animation:creation-spark-twinkle .5s ease-out .05s both}.creation-judge-flip.verdict-great .creation-card-spark.ck-2,.creation-judge-settle.verdict-great .creation-card-spark.ck-2{animation-delay:.15s}.creation-judge-flip.verdict-great .creation-card-spark.ck-3,.creation-judge-settle.verdict-great .creation-card-spark.ck-3{animation-delay:.25s}.creation-judge-flip.verdict-great .creation-card-spark.ck-4,.creation-judge-settle.verdict-great .creation-card-spark.ck-4{animation-delay:.1s}@keyframes creation-spark-twinkle{0%{opacity:0;transform:scale(.3) rotate(0)}40%{opacity:1;transform:scale(1.15) rotate(20deg)}to{opacity:0;transform:scale(.5) rotate(45deg)}}.creation-card-sheen{position:absolute;inset:0;border-radius:8px;overflow:hidden;pointer-events:none}.creation-card-sheen:before{content:"";position:absolute;top:-20%;bottom:-20%;left:-30%;width:34%;background:linear-gradient(105deg,transparent,color-mix(in srgb,var(--sheet-text) 9%,transparent),transparent);transform:translate(-140%) rotate(8deg)}.creation-judge-flip.verdict-great .creation-card-sheen:before,.creation-judge-settle.verdict-great .creation-card-sheen:before{animation:creation-sheen-sweep .6s ease-out .2s both}@keyframes creation-sheen-sweep{to{transform:translate(470%) rotate(8deg)}}@keyframes creation-judge-up{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.creation-result-aura{grid-area:1 / 1;place-self:center;width:306px;height:216px;border-radius:18px;background:radial-gradient(closest-side,color-mix(in srgb,var(--verdict-color) 38%,transparent),transparent 72%);opacity:0;pointer-events:none}.creation-judge-settle .creation-result-aura{animation:creation-forge-aura 1.6s ease-out .2s both}@keyframes creation-forge-aura{0%{opacity:0}42%{opacity:.5}72%,to{opacity:.26}}.creation-star{position:absolute;width:22px;height:22px;color:color-mix(in oklab,var(--sheet-accent) 58%,#e8b54a);opacity:0;pointer-events:none;z-index:4}.creation-star-a{right:-16px;top:18px}.creation-star-b{left:-14px;bottom:34px;width:16px;height:16px}@keyframes creation-forge-star{0%{opacity:0;transform:scale(0) rotate(-20deg)}14%{opacity:1;transform:scale(1.25) rotate(8deg)}24%{transform:scale(.95) rotate(0)}70%{opacity:.95}to{opacity:0;transform:scale(.85) rotate(14deg)}}.creation-judge-settle.creation-outcome-critical-fail .creation-result-aura{animation-name:creation-forge-aura-cf}@keyframes creation-forge-aura-cf{0%,12%{opacity:0}34%{opacity:.3}66%,to{opacity:0}}.creation-judge-settle.creation-outcome-critical-fail .creation-tier-slam{animation:creation-judge-up .3s ease both,creation-forge-jitter .42s ease-out .48s both}@keyframes creation-forge-jitter{0%,to{transform:translate(0)}20%{transform:translate(2.5px,-1px)}40%{transform:translate(-3px,1px)}60%{transform:translate(2px,.5px)}80%{transform:translate(-1px)}}.creation-judge-settle.creation-outcome-fail .creation-result-aura{animation-name:creation-forge-aura-fail}@keyframes creation-forge-aura-fail{0%,16%{opacity:0}48%{opacity:.3}80%,to{opacity:0}}.creation-judge-settle.creation-outcome-fail .creation-result-card{animation:creation-card-reveal .42s cubic-bezier(.2,.9,.3,1.18) both,creation-forge-dim 1.4s ease .52s both}@keyframes creation-forge-dim{0%,40%{filter:brightness(1) grayscale(0)}to{filter:brightness(.86) grayscale(.3)}}.creation-judge-settle.creation-outcome-partial .creation-result-aura{animation-name:creation-forge-aura-partial}@keyframes creation-forge-aura-partial{0%,14%{opacity:0}46%{opacity:.16}66%{opacity:.24}82%,to{opacity:.1}}.creation-judge-settle.creation-outcome-critical-success .creation-result-aura{animation-name:creation-forge-aura-cs}@keyframes creation-forge-aura-cs{0%,10%{opacity:0}26%{opacity:.12}60%{opacity:.62}82%,to{opacity:.4}}.creation-judge-settle.creation-outcome-critical-success .creation-result-card{border-color:color-mix(in srgb,var(--verdict-color) 72%,var(--sheet-line));box-shadow:0 16px 36px color-mix(in srgb,var(--sheet-text) 18%,transparent),0 0 22px color-mix(in srgb,var(--verdict-color) 35%,transparent)}.creation-judge-settle.creation-outcome-critical-success .creation-card-sheen:after{content:"";position:absolute;top:-30%;bottom:-30%;left:0;width:56px;background:linear-gradient(100deg,transparent,color-mix(in srgb,var(--sheet-bg) 95%,transparent),transparent);transform:translate(-100px) skew(-14deg);opacity:0;pointer-events:none;animation:creation-forge-shine .6s cubic-bezier(.3,.1,.3,1) 1.1s both}@keyframes creation-forge-shine{0%{transform:translate(-100px) skew(-14deg);opacity:0}18%{opacity:.9}to{transform:translate(320px) skew(-14deg);opacity:0}}.creation-judge-settle.creation-outcome-critical-success .creation-star-a{animation:creation-forge-star 1.25s cubic-bezier(.3,1.3,.4,1) .7s both}.creation-judge-settle.creation-outcome-critical-success .creation-star-b{animation:creation-forge-star 1.25s cubic-bezier(.3,1.3,.4,1) 1s both}.creation-generating .creation-result-aura,.creation-generating .creation-star,.creation-generating .creation-card-sheen:after{animation:none}.creation-generating .creation-star,.creation-generating .creation-result-aura{opacity:0}.creation-generating.creation-outcome-success .creation-result-aura{opacity:.26}.creation-generating.creation-outcome-critical-success .creation-result-aura{opacity:.4}.creation-generating.creation-outcome-partial .creation-result-aura{opacity:.1}.creation-generating.creation-outcome-critical-success .creation-card-sheen:after{opacity:0}.creation-tier-badge{display:flex;align-items:center;gap:8px;justify-content:center;animation:creation-judge-up .4s ease both}.creation-tier-badge-stamp{font-size:.86rem;font-weight:750;padding:3px 12px;border-radius:999px;background:color-mix(in srgb,var(--sheet-bg) 64%,transparent);border:1px solid var(--sheet-line);color:var(--sheet-accent)}.verdict-critical .creation-tier-badge-stamp{color:var(--judge-crit);border-color:color-mix(in srgb,var(--judge-crit) 45%,var(--sheet-line))}.verdict-fail .creation-tier-badge-stamp{color:var(--judge-fail);border-color:color-mix(in srgb,var(--judge-fail) 40%,var(--sheet-line))}.verdict-partial .creation-tier-badge-stamp{color:var(--judge-part);border-color:color-mix(in srgb,var(--judge-part) 40%,var(--sheet-line))}.verdict-normal .creation-tier-badge-stamp{color:var(--sheet-accent)}.verdict-great .creation-tier-badge-stamp{color:var(--sheet-accent);border-color:color-mix(in srgb,var(--sheet-accent) 45%,var(--sheet-line))}.tier-critical .creation-tier-badge-stamp{color:var(--judge-crit)}.tier-great .creation-tier-badge-stamp{color:var(--sheet-accent)}.creation-tier-badge-roll{font-size:.72rem;color:var(--sheet-muted);padding:2px 8px;border-radius:999px;background:color-mix(in srgb,var(--sheet-muted) 10%,transparent);font-variant-numeric:tabular-nums}.creation-judge-settle.verdict-fail .creation-card-sticker{animation:creation-sticker-pop .3s cubic-bezier(.2,.9,.3,1.18) .05s both}.creation-error{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:32px 20px;text-align:center}.creation-error-icon{font-size:38px}.creation-error-msg{font-size:.86rem;color:var(--sheet-text);line-height:1.6;margin:0}.creation-error .creation-submit{max-width:220px}.creation-flashnote{position:fixed;top:16px;left:50%;transform:translate(-50%);z-index:90;background:var(--story-surface);color:var(--story-accent);border:1px solid color-mix(in srgb,var(--story-accent) 50%,var(--story-line));font-size:.8rem;padding:9px 16px;border-radius:999px;box-shadow:0 8px 24px #00000059;animation:creation-res-up .3s ease both}@keyframes creation-res-pop{0%{opacity:0;transform:scale(.2)}to{opacity:1;transform:scale(1)}}@keyframes creation-res-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.creation-die,.creation-hammer,.creation-hit-flash,.creation-shock,.creation-bench.is-shake,.creation-reveal-item.is-great-skill,.creation-card-shard,.creation-card-spark,.creation-card-sheen:before,.creation-card-sticker{animation:none!important}.creation-bench-mat{transition:none;opacity:1;transform:none}.creation-die{transition:none}.creation-die.is-visible{opacity:1}.creation-gen-prog i{transition:none}.creation-tier-stamp,.creation-tier-roll,.creation-tier-badge,.creation-result-emoji,.creation-reveal-title,.creation-reveal-tag,.creation-flashnote,.creation-result-card{animation:none}.creation-judge-settle .creation-result-card{opacity:1;transform:rotate(var(--card-tilt))}.creation-judge-settle.verdict-critical .creation-card-sticker,.creation-judge-settle.verdict-fail .creation-card-sticker{opacity:1}}@media(prefers-reduced-motion:reduce){.creation-forge-glow,.creation-impact-ring,.creation-impact-ring:after,.creation-forge-spark,.creation-forge-flash,.creation-forge-smoke-a,.creation-forge-smoke-b,.creation-forge-crack,.creation-result-aura,.creation-star,.creation-card-sheen:after{animation:none!important;opacity:0}.creation-judge-settle.creation-outcome-critical-fail .creation-tier-slam{animation:none!important}.creation-judge-settle.creation-outcome-fail .creation-result-card{animation:none!important;opacity:1;transform:rotate(var(--card-tilt));filter:none}}.story-screen .turn-thread{width:min(100%,var(--story-col));max-width:var(--story-col);margin-left:auto;margin-right:auto}.story-screen .story-feed{margin-inline:calc(0px - var(--screen-gutter));padding-inline:var(--story-reading-gutter)}.story-screen .gm-block .message-body>p,.story-screen .choice-streaming-preview>p{font-weight:650;line-height:var(--story-lh);margin-bottom:var(--story-para);text-align:justify;text-align-last:left}.story-screen .player-block .message-body>p{color:var(--story-text);font-weight:650}.story-screen .message-role,.story-screen .gm-role,.story-screen .player-block .message-role,.story-screen .message-suggestions strong,.story-screen .message-body .message-suggestions .choice-pending-status{color:color-mix(in srgb,var(--story-text) 92%,var(--story-bg));font-weight:500;letter-spacing:.08em}.story-screen .choice-grid{grid-template-columns:minmax(0,1fr)}.story-screen .choice-button{border:0;background:transparent}.story-screen .choice-button:hover,.story-screen .choice-button:focus-visible{background:color-mix(in srgb,var(--story-text) 5%,transparent)}.story-screen .choice-button:active{background:color-mix(in srgb,var(--story-text) 9%,transparent)}.story-screen .choice-button-label{font-weight:650;color:var(--story-text)}.story-screen .choice-grid li::marker,.story-screen .choice-grid li:before,.story-screen .choice-index{color:color-mix(in srgb,#7a4d2b 62%,var(--story-text));font-weight:700}.story-updated-capsule{position:absolute;top:0;left:50%;transform:translate(-50%,calc(-100% - 5px));z-index:4;display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 11px;border-radius:999px;background:color-mix(in srgb,var(--story-hint) 12%,var(--story-surface));border:1px solid color-mix(in srgb,var(--story-hint) 28%,transparent);color:var(--story-hint);pointer-events:none}.story-updated-text{font-size:.69rem;font-weight:600;letter-spacing:.02em;line-height:1}.story-updated-chev{display:inline-flex;line-height:0;pointer-events:none}.story-updated-chev svg{display:block}.story-updated-chev path{stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:.6;animation:story-updated-chev-breathe 2s ease-in-out infinite}@keyframes story-updated-chev-breathe{0%,to{opacity:.45;transform:translateY(0)}50%{opacity:.85;transform:translateY(1px)}}@media(prefers-reduced-motion:reduce){.story-updated-chev path{animation:none;opacity:.6}}.story-screen.reading-font-system .gm-block .message-body>p,.story-screen.reading-font-system .choice-streaming-preview>p,.story-screen.reading-font-system .player-block .message-body>p,.story-screen.reading-font-system .choice-button-label,.story-screen.reading-font-system .choice-grid li::marker,.story-screen.reading-font-system .choice-grid li:before,.story-screen.reading-font-system .choice-index{font-weight:500}.story-screen.reading-font-noto-sans-tc .gm-block .message-body>p,.story-screen.reading-font-noto-sans-tc .choice-streaming-preview>p,.story-screen.reading-font-noto-sans-tc .player-block .message-body>p,.story-screen.reading-font-noto-sans-tc .choice-button-label,.story-screen.reading-font-noto-sans-tc .choice-grid li::marker,.story-screen.reading-font-noto-sans-tc .choice-grid li:before,.story-screen.reading-font-noto-sans-tc .choice-index{font-family:Noto Sans TC,PingFang TC,Microsoft JhengHei,sans-serif;font-weight:650}.story-screen.reading-font-jf-open-huninn .gm-block .message-body>p,.story-screen.reading-font-jf-open-huninn .choice-streaming-preview>p,.story-screen.reading-font-jf-open-huninn .player-block .message-body>p,.story-screen.reading-font-jf-open-huninn .choice-button-label,.story-screen.reading-font-jf-open-huninn .choice-grid li::marker,.story-screen.reading-font-jf-open-huninn .choice-grid li:before,.story-screen.reading-font-jf-open-huninn .choice-index{font-family:"jf-openhuninn-2.1",Noto Sans TC,PingFang TC,Microsoft JhengHei,sans-serif;font-weight:400}.story-screen.reading-font-lxgw-wenkai-tc .gm-block .message-body>p,.story-screen.reading-font-lxgw-wenkai-tc .choice-streaming-preview>p,.story-screen.reading-font-lxgw-wenkai-tc .player-block .message-body>p,.story-screen.reading-font-lxgw-wenkai-tc .choice-button-label,.story-screen.reading-font-lxgw-wenkai-tc .choice-grid li::marker,.story-screen.reading-font-lxgw-wenkai-tc .choice-grid li:before,.story-screen.reading-font-lxgw-wenkai-tc .choice-index{font-family:LXGW WenKai TC,Kaiti TC,DFKai-SB,Noto Sans TC,serif;font-weight:500}.story-font-notice{margin:8px 0 0;font-size:13px;line-height:1.5;letter-spacing:.01em;color:#6e5547}.story-font-notice-error{color:#7a4d2b}.screen{padding-top:calc(12px + env(safe-area-inset-top))}.app-shell .home-header{padding-top:calc(8px + env(safe-area-inset-top))}.app-shell .home-header.is-compact{padding-top:calc(6px + env(safe-area-inset-top))}.package-appbar{padding-top:calc(8px + env(safe-area-inset-top))}.novel-mode-screen{padding-top:calc(10px + env(safe-area-inset-top))}@media(max-width:480px){.app-shell .home-header,.app-shell .home-header.is-compact{padding-top:calc(5px + env(safe-area-inset-top))}.package-appbar{padding-top:calc(7px + env(safe-area-inset-top))}}@media(min-width:1024px){.app-shell .home-header,.app-shell .home-header.is-compact,.package-appbar{padding-top:calc(12px + env(safe-area-inset-top))}}@media(min-width:1800px){.app-shell.app-home-shell .world-pack-grid.card-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}.story-screen>.wide-desktop-record-rail{display:none}@media(min-width:1280px){.story-screen.font-small:not(.record-focused-open){--story-col: 840px}.story-screen.font-medium:not(.record-focused-open){--story-col: 920px}.story-screen.font-large:not(.record-focused-open){--story-col: 980px}.story-screen.font-xlarge:not(.record-focused-open){--story-col: 1040px}.screen.story-screen:not(.record-focused-open){--screen-gutter: 0px;display:grid;grid-template-columns:clamp(280px,18vw,320px) minmax(620px,1fr) clamp(280px,21vw,330px);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"hud notice rail" "hud story rail" "hud composer rail";gap:16px;width:min(100%,1920px);height:100dvh;min-height:0;padding:calc(12px + env(safe-area-inset-top)) 0 var(--safe-bottom);overflow:hidden}.story-screen:not(.record-focused-open)>.story-status-hud{grid-area:hud;display:flex;flex-direction:column;height:100%;min-width:0;min-height:0;align-self:stretch;align-items:stretch;overflow-y:auto;overflow-x:hidden}.story-screen:not(.record-focused-open) .story-status-main{height:auto;min-height:100%;display:flex;flex:1 0 auto;flex-direction:column}.story-screen:not(.record-focused-open) .story-status-card{height:auto;min-height:100%;flex:1 0 auto}.story-screen:not(.record-focused-open) .story-status-topline{grid-template-columns:42px minmax(0,1fr);gap:8px;padding:10px 10px 8px 8px}.story-screen:not(.record-focused-open) .story-status-card .story-status-back{width:38px;height:38px;border-radius:11px}.story-screen:not(.record-focused-open) .story-status-summary{min-height:60px;grid-template-columns:48px minmax(0,1fr);gap:10px}.story-screen:not(.record-focused-open) .story-status-avatar{width:48px;height:48px;border-radius:12px}.story-screen:not(.record-focused-open) .story-status-name{font-size:1rem}.story-screen:not(.record-focused-open) .story-status-detail,.story-screen:not(.record-focused-open) .story-status-line{font-size:.74rem}.story-screen:not(.record-focused-open) .story-status-compact-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px 10px 10px}.story-screen:not(.record-focused-open) .story-status-chip-button{min-height:54px;padding:6px 4px;border-radius:9px}.story-screen:not(.record-focused-open) .story-status-chip-button>span{font-size:1rem}.story-screen:not(.record-focused-open) .story-status-chip-button strong{font-size:.72rem}.story-screen:not(.record-focused-open) .story-status-provider-row{min-height:32px;gap:8px;padding:4px 8px 6px}.story-screen:not(.record-focused-open) .story-status-provider-main{gap:7px}.story-screen:not(.record-focused-open) .story-status-provider-title{font-size:.74rem}.story-screen:not(.record-focused-open) .story-status-provider-row .story-header-provider{min-height:28px;padding-inline:8px;font-size:.74rem}.story-screen:not(.record-focused-open) .story-status-generating{font-size:.72rem}.story-screen:not(.record-focused-open) .story-status-footer-settings{width:32px;height:28px;border-radius:8px;font-size:.9rem}.story-screen:not(.record-focused-open)>.story-site-banner{grid-area:notice;min-width:0;margin:0}.story-screen:not(.record-focused-open)>.story-feed{grid-area:story;min-width:0;min-height:0;margin:0;padding:8px clamp(12px,2vw,20px);overflow-y:auto;overflow-x:hidden}.story-screen:not(.record-focused-open)>.story-feed .turn-thread{width:min(100%,var(--story-col));max-width:var(--story-col);margin-inline:auto}.story-screen:not(.record-focused-open)>.composer-shell{grid-area:composer;min-width:0;min-height:0;position:relative;bottom:auto;margin:0;padding:7px 0 calc(var(--safe-bottom) + 2px)}.story-screen:not(.record-focused-open)>.composer-shell .composer-bar{width:100%;max-width:none;margin:0}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail{grid-area:rail;min-width:0;min-height:0;overflow:hidden}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail{display:flex}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock{width:100%;height:100%;min-height:0;max-height:none;margin:0;border-radius:14px;box-shadow:0 8px 24px color-mix(in srgb,#000 12%,transparent)}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock-head{gap:0;padding:12px 14px}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock-handle{display:none}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;min-width:0;padding:6px 8px;border-bottom:1px solid var(--story-line);background:color-mix(in srgb,var(--story-elevated) 22%,transparent)}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock-tabs button{min-width:0;min-height:36px;padding:4px 2px;overflow:hidden;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--story-muted);font-size:.72rem;font-weight:650;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock-tabs button:hover,.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock-tabs button:focus-visible,.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock-tabs button.selected{border-color:color-mix(in srgb,var(--story-accent) 42%,var(--story-line));background:color-mix(in srgb,var(--story-accent) 12%,transparent);color:var(--story-text)}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock-scroll{min-width:0;min-height:0;padding:12px 14px 22px}.story-screen:not(.record-focused-open) .story-status-card{border-color:color-mix(in srgb,var(--story-line) 70%,transparent);border-radius:6px;background:color-mix(in srgb,var(--story-surface) 92%,var(--story-elevated));box-shadow:none}.story-screen:not(.record-focused-open) .story-status-topline{border-bottom:1px solid color-mix(in srgb,var(--story-line) 64%,transparent)}.story-screen:not(.record-focused-open) .story-status-compact-metrics{padding-top:8px}.story-screen:not(.record-focused-open) .story-status-chip-button{border-color:color-mix(in srgb,var(--story-line) 46%,transparent);border-radius:6px;background:color-mix(in srgb,var(--story-elevated) 28%,transparent);box-shadow:none}.story-screen:not(.record-focused-open) .story-status-provider-row{border-top:1px solid color-mix(in srgb,var(--story-line) 64%,transparent);padding-top:8px}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock{border-color:color-mix(in srgb,var(--story-line) 70%,transparent);border-radius:6px;box-shadow:none}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock-head{gap:4px;padding:10px 14px 9px;background:color-mix(in srgb,var(--story-elevated) 20%,transparent)}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock-tabs{gap:3px;padding:6px 8px 7px;background:transparent}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock-tabs button{border-radius:5px;background:transparent}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .focused-record-dock-tabs button.selected{border-color:transparent transparent var(--story-accent) transparent;border-radius:5px 5px 0 0;background:color-mix(in srgb,var(--story-accent) 10%,transparent)}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .record-section{gap:7px;padding:12px 0;border-bottom-color:color-mix(in srgb,var(--story-line) 64%,transparent)}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .record-section-header{padding-bottom:3px}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .record-detail-list li,.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .record-world-group li{padding-block:8px;border-bottom-color:color-mix(in srgb,var(--story-line) 58%,transparent)}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .rpg-popup-root{align-items:center;padding:24px}.story-screen:not(.record-focused-open)>.wide-desktop-record-rail .rpg-popup-panel{max-height:min(calc(100dvh - 48px),620px);padding-bottom:calc(16px + env(safe-area-inset-bottom));border-bottom:1px solid var(--story-line);border-radius:12px;box-shadow:0 12px 32px #00000038}}
