.mobile-nav{display:none}.generation-failure>header{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.generation-failure>header time{font-size:.75rem;color:var(--muted)}.generation-failure>p{margin:9px 0}.turn-controls{flex-wrap:wrap}.branch-origin{display:flex;align-items:center;gap:8px;font-size:.75rem;color:var(--muted);margin:0 0 18px;padding:12px 0;border-bottom:1px solid var(--line)}
@media(max-width:720px){
 html,body{overscroll-behavior:none}input,textarea,select{font-size:16px}.reference-shell{display:flex;flex-direction:column;height:var(--app-height,100dvh);padding-top:env(safe-area-inset-top)}.reference-shell>.rail{display:none}.workspace{flex:1;min-height:0}.game,.story-column,.story-scroll,.content{min-height:0}.story-scroll,.content,.modal-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.story-text{font-size:1.04rem;line-height:1.95;overflow-wrap:anywhere}.story-inner{padding:18px 19px 28px}.topbar{flex-shrink:0;min-height:54px}.topbar button{min-width:40px;min-height:40px}.topbar .model-picker{max-width:100%;min-width:0;font-size:.77rem}.mobile-nav{display:flex;flex-shrink:0;align-items:center;justify-content:space-around;border-top:1px solid var(--line);background:var(--bg);padding:5px max(6px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));z-index:30;gap:3px}.mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:48px;width:20%;padding:5px 2px;background:transparent;color:var(--muted);font-size:.65rem;border-radius:9px}.mobile-nav .ui-icon{width:21px;height:21px}.mobile-nav button.active{color:var(--accent);background:var(--accent-dark)}.mobile-nav .avatar-fallback,.mobile-nav img{width:23px;height:23px;border-radius:50%;object-fit:cover}.keyboard-open .mobile-nav{display:none}.composer-wrap{padding:9px 10px max(9px,env(safe-area-inset-bottom));flex-shrink:0}.composer textarea{font-size:16px;max-height:140px;overflow-y:auto}.composer .send-button,.composer-tools button{min-width:40px;min-height:42px}.composer-hint{display:none}.turn-heading{align-items:flex-start;flex-wrap:wrap;gap:9px}.turn-controls{margin-left:auto;gap:4px}.turn-controls button{min-height:36px;padding:6px 8px;font-size:.73rem}.turn-heading time{font-size:.68rem}.user-turn{font-size:.86rem;line-height:1.75}.user-turn header{gap:8px;flex-wrap:wrap}.drawer-modal{inset:0;margin:0;width:100vw;height:var(--app-height,100dvh);max-height:var(--app-height,100dvh);border:0}.drawer-modal .modal-head{padding-top:max(15px,env(safe-area-inset-top))}.drawer-modal .modal-body{max-height:none;flex:1;min-height:0;height:auto;padding-bottom:max(18px,env(safe-area-inset-bottom))}.drawer-modal[open]{display:flex;flex-direction:column}.modal-head{flex-shrink:0}dialog:not(.drawer-modal){max-height:calc(var(--app-height,100dvh) - 24px)}dialog:not(.drawer-modal) .modal-body{max-height:calc(var(--app-height,100dvh) - 115px)}.summary-panel{width:min(390px,100vw)}.home{padding:28px 21px}.auth{min-height:var(--app-height,100dvh);padding-bottom:max(24px,env(safe-area-inset-bottom))}.generation-failure .panel-actions button,.generation-failure>button{min-height:44px}.panel-actions button,.drawer-tabs button{min-height:40px}#toast{bottom:calc(78px + env(safe-area-inset-bottom));font-size:.85rem}.keyboard-open #toast{bottom:12px}
}

.android-download{display:grid;align-content:start;gap:14px}.app-download{display:inline-block;text-align:center;text-decoration:none;padding:12px 18px;border-radius:9px;background:var(--accent);color:var(--bg)}.android-client .android-download{display:none}.mobile-nav .avatar{width:23px;height:23px;border-radius:50%;overflow:hidden;display:grid;place-items:center;font-size:.75rem}
.home-heading{position:relative}.home-app-download{position:absolute;right:0;top:0;display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 14px;border:1px solid var(--theme-line,var(--line));border-radius:10px;background:var(--surface2);color:var(--accent);text-decoration:none;font-size:.82rem;transition:background .15s,border-color .15s}.home-app-download strong{font-weight:500}.home-app-download:hover{background:var(--theme-tint,var(--surface));border-color:var(--accent)}.home-app-download .ui-icon{width:20px;height:20px}.android-client .home-app-download{display:none}.composer-choices{max-width:1020px;margin:0 auto 9px;flex-shrink:0;background:var(--surface)}.composer-choices>summary{align-items:center;gap:9px;justify-content:flex-start;min-height:40px;padding:10px 14px;color:var(--muted)}.composer-choices>summary:after{content:'⌄';margin-left:auto;color:var(--accent);transition:transform .15s}.composer-choices[open]>summary:after{transform:rotate(180deg)}.composer-choices .options{max-height:min(30vh,260px);overflow:auto;overscroll-behavior:contain}.composer-choices .option{font-size:.85rem;padding:10px 13px}.composer-wrap{flex-shrink:0}
@media(max-width:720px){.home-heading>.eyebrow{min-height:44px;max-width:calc(100% - 140px);display:flex;align-items:center;line-height:1.6}.home-app-download{padding:9px 11px;font-size:.76rem;gap:6px}.composer-choices{margin-bottom:8px}.composer-choices>summary{font-size:.8rem;min-height:40px;padding:9px 12px}.composer-choices .options{max-height:min(27vh,220px);padding:0 8px 8px;gap:6px}.composer-choices .option{font-size:.82rem;min-height:42px;line-height:1.6}.android-client .home-heading>.eyebrow{max-width:none;min-height:0}}
