/* Loaded last: one mobile shell across the task, goal, assistant and game views. */
:root{--lcc-safe-top:env(safe-area-inset-top,0px);--lcc-safe-bottom:env(safe-area-inset-bottom,0px);--lcc-safe-left:env(safe-area-inset-left,0px);--lcc-safe-right:env(safe-area-inset-right,0px)}
@media(max-width:900px){
 html{scroll-padding-top:calc(72px + var(--lcc-safe-top));scroll-padding-bottom:calc(86px + var(--lcc-safe-bottom))}
 body{overflow-x:clip}body [hidden]{display:none!important}
 .quiet-shell{display:block;min-height:100dvh}.quiet-shell .sidebar{display:none}.quiet-shell .main-column{min-width:0;width:100%}
 .quiet-shell .topbar{position:sticky;top:0;z-index:30;min-height:calc(60px + var(--lcc-safe-top));height:auto;box-sizing:border-box;padding:calc(8px + var(--lcc-safe-top)) max(16px,var(--lcc-safe-right)) 8px max(16px,var(--lcc-safe-left));gap:12px;background:#101d29f5;backdrop-filter:blur(14px)}
 .quiet-shell .mobile-brand{display:block;min-width:0;flex:1;font-size:17px;letter-spacing:0;white-space:nowrap}.quiet-shell .mobile-brand b{font-size:22px}.quiet-shell .breadcrumb,.quiet-shell .date-pill,.quiet-shell .assistant-toggle{display:none}
 .quiet-shell .top-actions{display:flex;align-items:center;gap:8px;flex:none}.quiet-shell .mobile-assistant,.quiet-shell .mobile-settings{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;font-size:20px}
 .quiet-shell .content{width:100%;box-sizing:border-box;padding:24px max(16px,var(--lcc-safe-right)) calc(100px + var(--lcc-safe-bottom)) max(16px,var(--lcc-safe-left));min-width:0}
 .quiet-shell .mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:40;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:4px;width:auto;height:auto;min-height:calc(64px + var(--lcc-safe-bottom));box-sizing:border-box;padding:6px max(8px,var(--lcc-safe-right)) calc(6px + var(--lcc-safe-bottom)) max(8px,var(--lcc-safe-left));background:#0d1925fa;border-top:1px solid #405260;backdrop-filter:blur(14px)}
 .quiet-shell .mobile-nav button{width:100%;min-width:0;max-width:none;min-height:52px;padding:7px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:8px;background:none;border:0;color:#a9bbc8;line-height:1;overflow:hidden;touch-action:manipulation}
 .quiet-shell .mobile-nav button>span{display:flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px}.quiet-shell .mobile-nav small{font-size:10px;line-height:1.2;letter-spacing:0;white-space:nowrap}.quiet-shell .mobile-nav button.active{color:#eed1a0;background:#c8a97414}.quiet-shell .mobile-nav button:focus-visible{outline:2px solid #d3b67b;outline-offset:-2px}
 .mobile-keyboard-open .mobile-nav{display:none}.mobile-keyboard-open .quiet-shell .content{padding-bottom:24px}
 button,.icon-button,summary{touch-action:manipulation}button,.icon-button{min-height:44px}input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select{font-size:16px!important;min-height:44px;max-width:100%;box-sizing:border-box}textarea{min-height:90px}input[type=checkbox],input[type=radio]{flex:none}
 .hero{align-items:flex-start;flex-wrap:wrap;gap:16px}.hero>div{min-width:0}.hero h1{overflow-wrap:anywhere}.hero>button{max-width:100%}.content>*{min-width:0}.panel{min-width:0}.two-fields{grid-template-columns:minmax(0,1fr)}
 .modal-backdrop{z-index:100;box-sizing:border-box;padding:calc(12px + var(--lcc-safe-top)) max(12px,var(--lcc-safe-right)) calc(12px + var(--lcc-safe-bottom)) max(12px,var(--lcc-safe-left));align-items:center;overscroll-behavior:contain}
 .modal{box-sizing:border-box;width:min(600px,100%);max-height:calc(100dvh - var(--lcc-safe-top) - var(--lcc-safe-bottom) - 24px);padding:18px;overscroll-behavior:contain}.modal-head{gap:12px}.modal-head .icon-button{flex:none;width:44px;height:44px}.modal-actions,.modal-footer{gap:10px;flex-wrap:wrap}.modal-actions button{min-width:0}.modal input,.modal textarea,.modal select{min-width:0;width:100%}
 .toast{z-index:90;left:max(12px,var(--lcc-safe-left));right:max(12px,var(--lcc-safe-right));bottom:calc(82px + var(--lcc-safe-bottom));width:auto;max-width:600px;margin-inline:auto;box-sizing:border-box;overflow-wrap:anywhere}.mobile-keyboard-open .toast{bottom:12px}
 .hub-tabs{overflow:auto;max-width:100%;gap:8px}.hub-tabs button{flex:none;min-height:44px}.goal-actions{gap:10px}.goal-actions button{min-width:0;max-width:100%;font-size:14px}.goal-section-head{align-items:flex-start}.goal-tree-row button{min-height:48px}.goal-form #goal-frame{font-size:16px}
 .task-quick-form,.goal-new-task{flex-wrap:wrap}.task-quick-form input,.goal-new-task input{min-width:0;flex-basis:100%}.task-row .check{width:32px;height:32px;min-height:32px;flex:none}.task-row .row-more{width:44px;min-height:44px;flex:none}.task-copy{min-width:0}.task-title{overflow-wrap:anywhere}
 .ai-chat-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.ai-chat-toolbar select{width:100%;min-width:0}.ai-chat-toolbar button{padding:10px 12px}.ai-chat-toolbar .ai-menu{min-width:0}.ai-menu>summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;box-sizing:border-box}.ai-menu>div{max-width:calc(100vw - 32px)}
 .ai-messages{height:clamp(240px,42dvh,420px);padding:14px;min-width:0}.ai-message{min-width:0;overflow-wrap:anywhere}.ai-message pre{max-width:100%;overflow:auto}.ai-compose{padding:12px}.ai-compose textarea{font-size:16px}.ai-compose-bottom{display:grid;grid-template-columns:44px 44px minmax(0,1fr);gap:8px;align-items:center;justify-content:normal}.ai-compose-bottom .ai-attach,.ai-compose-bottom .ai-mic{width:44px;height:44px;padding:0;margin:0!important;display:flex;align-items:center;justify-content:center}.ai-compose-bottom .ai-mic span{display:none}.ai-compose-bottom .ai-skill-label{grid-column:3;min-width:0;margin:0!important}.ai-compose-bottom .ai-skill-label select{width:100%;min-width:0}.ai-compose-bottom #ai-send,.ai-compose-bottom [data-ai=stop]{grid-column:1/-1;width:100%;min-height:44px;font-size:15px;padding:12px}.ai-compose-bottom small{display:none}.ai-attachment{max-width:100%;overflow-wrap:anywhere}.ai-account{min-width:0}.ai-account>div{overflow-wrap:anywhere}
 .focus-workspace{padding:0 max(16px,var(--lcc-safe-right)) calc(28px + var(--lcc-safe-bottom)) max(16px,var(--lcc-safe-left));min-height:100dvh}.fw-header{position:sticky;top:0;z-index:30;min-height:calc(60px + var(--lcc-safe-top));box-sizing:border-box;margin:0 calc(-1 * max(16px,var(--lcc-safe-right))) 24px calc(-1 * max(16px,var(--lcc-safe-left)));padding:calc(8px + var(--lcc-safe-top)) max(16px,var(--lcc-safe-right)) 8px max(16px,var(--lcc-safe-left));gap:12px;background:#101d29f5;backdrop-filter:blur(14px);border-bottom:1px solid #405260}
 .fw-header a{min-width:0;flex:1;max-width:none;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.fw-header button{flex:none;min-height:44px;max-width:145px;font-size:12px;padding:10px 12px}.fw-choose{margin:24px auto}.fw-mode strong{font-size:24px}.fw-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fw-primary-actions button{min-width:0;white-space:normal;line-height:1.4;font-size:14px!important}.fw-primary-actions .text-button{grid-column:1/-1}.fw-motivate{width:100%;min-height:44px}.fw-queue-order>div{gap:6px}.fw-queue-order>div>span{min-width:0;overflow-wrap:anywhere}.fw-queue-order .icon-button{width:44px;height:44px;min-width:44px;padding:0}.fw-atmosphere{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.fw-atmosphere label{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;flex-wrap:nowrap}.fw-atmosphere select{flex:1;min-width:0;max-width:220px}.fw-atmosphere input[type=range]{min-width:0;width:min(180px,60%)}.fw-atmosphere .fw-motion{justify-content:flex-start;min-height:44px}.fw-timer>div{display:grid;grid-template-columns:1fr;gap:10px}.fw-timer button{width:100%}.fw-expired button{width:100%}.fw-subtasks button{min-height:48px}
 .browser-tabs{max-width:100%;overflow-x:auto}.browser-toolbar{flex-wrap:wrap}.browser-toolbar input{min-width:0}.reels-row form{flex-wrap:wrap;align-items:center}.reels-row label{flex:1;min-width:0}.reels-row input{width:100%}.reels-row form button{min-height:44px}.archive-row button{max-width:100%;white-space:normal}.reel-dialog{max-height:calc(100dvh - var(--lcc-safe-top) - var(--lcc-safe-bottom) - 24px);width:calc(100% - 24px);padding:14px}.reel-dialog-head{gap:12px}.reel-dialog-head button{flex:none;max-width:145px;min-height:44px}.reel-dialog video{height:min(56dvh,600px)}.reel-controls button{min-height:44px;min-width:0;white-space:normal}
 .start-home{min-height:calc(100dvh - var(--lcc-safe-top) - var(--lcc-safe-bottom) - 184px)}
}
@media(max-width:380px){.quiet-shell .mobile-brand b{font-size:20px}.quiet-shell .top-actions{gap:6px}.quiet-shell .topbar{gap:8px}.fw-header button{max-width:125px}.fw-mode{padding:22px}.fw-mode strong{font-size:22px}.reel-dialog-head{flex-wrap:wrap}.reel-dialog-head button{width:100%;max-width:none}}

@media(max-width:900px){
 .task-check{width:32px;height:32px;min-width:32px;min-height:32px;flex:none}.task-line{min-width:0}.task-line .task-title-button{min-width:0}
 .toast-box,.toast-box.reward-toast{z-index:90;left:max(12px,var(--lcc-safe-left));right:max(12px,var(--lcc-safe-right));bottom:calc(84px + var(--lcc-safe-bottom));transform:none;width:auto;min-width:0;max-width:600px;margin-inline:auto;box-sizing:border-box;animation:none;flex-wrap:wrap;overflow-wrap:anywhere}.mobile-keyboard-open .toast-box{bottom:12px}.reward-toast-actions button{min-height:44px;min-width:44px}
 .ai-browser.expanded,.av-painted-world .av-world.av-map-expanded{inset:calc(var(--lcc-safe-top) + 8px) max(8px,var(--lcc-safe-right)) calc(var(--lcc-safe-bottom) + 8px) max(8px,var(--lcc-safe-left));z-index:110}
 .av-ux .av-dialog{padding-top:var(--lcc-safe-top);padding-bottom:var(--lcc-safe-bottom);width:100%;max-height:100dvh;box-sizing:border-box}
 .br-nav{flex-wrap:wrap}.br-nav input{flex-basis:100%;order:4}.br-type{flex-wrap:wrap}.br-type input{flex-basis:100%}.br-type button{flex:1}
 .ai-compose-bottom .ai-skill-label select{max-width:none}.ai-chat-toolbar select{max-width:none}
}
@media(max-width:900px) and (min-height:700px){
 .mobile-assistant-page .quiet-shell .main-column{display:flex;flex-direction:column;height:var(--lcc-visible-height,100dvh);min-height:0}
 .mobile-assistant-page .quiet-shell .topbar{flex:none}.mobile-assistant-page .quiet-shell .content{flex:1;min-height:0;overflow:hidden;padding-top:14px;padding-bottom:calc(80px + var(--lcc-safe-bottom))}
 .mobile-assistant-page .assistant-workspace{height:100%;display:flex;flex-direction:column;min-height:0}.mobile-assistant-page .assistant-workspace>.assistant-page-head{flex:none;margin:0 0 12px;gap:10px}.mobile-assistant-page .assistant-workspace>.assistant-page-head h1{font-size:32px;margin-bottom:4px}.mobile-assistant-page .assistant-workspace>.assistant-page-head p{font-size:12px;margin:0}.mobile-assistant-page .assistant-workspace>.assistant-page-head>button{font-size:12px;padding:8px 10px}.mobile-assistant-page .ai-account{flex:none;margin-bottom:10px;min-height:0;padding:0 2px;font-size:12px;line-height:1.5}
 .mobile-assistant-page .ai-layout{flex:1;min-height:0}.mobile-assistant-page .ai-chat{display:flex;flex-direction:column;min-height:0;overflow:hidden}.mobile-assistant-page .ai-chat-toolbar{flex:none;padding:10px}.mobile-assistant-page .ai-messages{flex:1;min-height:0;height:auto;overflow-y:auto}.mobile-assistant-page .ai-compose{flex:none}.mobile-assistant-page .ai-compose textarea{min-height:72px;max-height:120px;height:72px}.mobile-assistant-page .ai-layout.with-browser{overflow:auto;display:block}.mobile-assistant-page .ai-layout.with-browser .ai-chat{min-height:450px;margin-bottom:16px}.mobile-assistant-page .ai-layout.with-browser .ai-browser{margin-bottom:12px}
}
@media(max-width:900px){
 .mobile-assistant-page.mobile-keyboard-open .quiet-shell .main-column{display:flex;flex-direction:column;height:var(--lcc-visible-height,100dvh);min-height:0}.mobile-assistant-page.mobile-keyboard-open .quiet-shell .topbar{flex:none}.mobile-assistant-page.mobile-keyboard-open .quiet-shell .content{flex:1;min-height:0;overflow:auto;padding-top:8px;padding-bottom:12px}.mobile-assistant-page.mobile-keyboard-open .assistant-workspace{height:100%;display:flex;flex-direction:column;min-height:0}.mobile-assistant-page.mobile-keyboard-open .assistant-workspace>.assistant-page-head,.mobile-assistant-page.mobile-keyboard-open .ai-account{display:none}.mobile-assistant-page.mobile-keyboard-open .ai-layout{flex:1;min-height:0}.mobile-assistant-page.mobile-keyboard-open .ai-chat{display:flex;flex-direction:column;min-height:0}.mobile-assistant-page.mobile-keyboard-open .ai-chat-toolbar{flex:none;padding:8px}.mobile-assistant-page.mobile-keyboard-open .ai-messages{flex:1;min-height:0;height:auto;overflow:auto}.mobile-assistant-page.mobile-keyboard-open .ai-compose{flex:none;padding:10px}.mobile-assistant-page.mobile-keyboard-open .ai-compose textarea{height:60px;min-height:60px;max-height:80px}
}
@media(max-width:900px){.login{min-height:100dvh;padding:calc(18px + var(--lcc-safe-top)) max(16px,var(--lcc-safe-right)) calc(18px + var(--lcc-safe-bottom)) max(16px,var(--lcc-safe-left));overflow:auto}.login-card{padding:24px}}
@media(max-width:900px){.assistant-page-head{align-items:flex-start;gap:12px;flex-wrap:wrap}.assistant-page-head>div{min-width:0;flex:1 1 130px}.assistant-page-head h1{font-size:32px}.assistant-page-head p{font-size:12px}.assistant-page-head>button{max-width:100%;min-height:44px;font-size:12px;padding:9px 10px}}
@media(max-width:900px){.modal-backdrop{bottom:auto;height:var(--lcc-visible-height,100dvh)}.modal{max-height:calc(var(--lcc-visible-height,100dvh) - var(--lcc-safe-top) - var(--lcc-safe-bottom) - 24px)}.modal-actions button,.modal-footer button{white-space:normal;line-height:1.35;font-size:14px;min-height:48px;padding:10px 12px}.hero .primary::after{content:none}}
@media(max-width:900px){html.mobile-scroll-reset{scroll-behavior:auto!important}.focus-workspace{overflow-x:clip;overflow-y:visible}.mobile-keyboard-open .toast-box{bottom:calc(100dvh - var(--lcc-visible-height,100dvh) + 12px)}}
@media(max-width:900px) and (max-height:500px){.start-home{min-height:0;padding:10px 0 18px}.start-home p{margin:0 0 10px;font-size:10px}.start-home h1{font-size:32px;margin:0 0 16px}.start-button{font-size:16px;padding:12px 32px;min-height:48px}}
@media(max-width:900px){.ai-compose-bottom:has([data-ai=stop]:not([hidden])) #ai-send{display:none}}
