.mobile-bottom-nav,.mobile-action-dock,.mobile-work-tabs{display:none}
.draft-session{font:13px/1.6 var(--body);color:#466173;margin:0 0 18px;border-bottom:1px solid #d8e4ec;padding-bottom:12px}.draft-session summary{cursor:pointer;min-height:32px;display:list-item}.draft-session p{max-width:65ch}.draft-session button{background:#fff;border:1px solid #a5bac8;color:#254d65;padding:10px 14px;border-radius:8px;font:inherit;min-height:44px}
.mobile-app-guide{background:#e9f4f9;border:1px solid #b9d5e3;border-radius:14px;padding:24px;margin:24px 0;color:#23475c}.mobile-app-guide h3{font-size:22px;margin-top:0}.mobile-app-guide ol{padding-left:22px}.mobile-app-guide li{padding:8px 0}.mobile-app-guide li span{display:block;color:#4a6676;line-height:1.65}.mobile-app-guide a{color:#08668a}.mobile-app-guide p{font-size:14px}
.mobile-sheet{border:0;border-radius:22px 22px 0 0;padding:24px;background:#f7fbfd;color:#193f54;max-height:85dvh;max-width:550px;width:100%;margin:auto auto 0;box-sizing:border-box;overflow:auto}.mobile-sheet::backdrop{background:#071b2b99}.mobile-sheet header{display:flex;gap:20px;justify-content:space-between;align-items:start;margin-bottom:18px}.mobile-sheet h2{font:750 25px/1.3 var(--body);margin:8px 0}.mobile-sheet header span{font-size:11px;letter-spacing:.12em}.mobile-sheet header button{border:1px solid #b1c8d6;background:#fff;border-radius:8px;padding:12px;color:#29536d;font:inherit;min-height:44px}.mobile-menu-links{display:grid;gap:10px;padding-bottom:env(safe-area-inset-bottom,0px)}.mobile-menu-links a{display:grid;grid-template-columns:1fr auto;gap:6px 10px;text-decoration:none;background:#fff;border:1px solid #ccdde6;border-radius:12px;padding:18px;color:#174b68}.mobile-menu-links strong{font-size:17px}.mobile-menu-links span{font-size:14px;color:#547083}.mobile-menu-links b{grid-column:2;grid-row:1/3;align-self:center}.mobile-sheet :focus-visible{outline:3px solid #087eaa;outline-offset:2px}
@media(max-width:850px){
 html{scroll-padding-bottom:180px;scroll-padding-top:16px}
 body{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}body.mobile-has-action{padding-bottom:calc(176px + env(safe-area-inset-bottom,0px))}
 .sidebar{position:static!important;padding:12px 18px!important;justify-content:center!important}.sidebar .brand{margin:0!important;flex-direction:row!important;width:auto!important}.sidebar .nav-toggle,.sidebar nav.vault-nav,.sidebar nav.vault-nav.is-open{display:none!important}.sidebar .brand strong{font-size:14px}
 #workspace{padding:20px 16px}.page-heading{padding-bottom:16px;margin-bottom:20px}.page-heading h1{font-size:28px!important;line-height:1.2}.page-heading p{font-size:15px;line-height:1.65}.draft-session{font-size:12px;margin-bottom:20px}.draft-session summary{min-height:24px}
 #workspace :is(input,textarea,select){font-size:16px!important}#workspace :is(button,select,summary){min-height:44px}#workspace :is(input,textarea,select){max-width:100%;min-width:0}#workspace :is(a,button){touch-action:manipulation}#workspace :is(p,small){overflow-wrap:anywhere}
 .mobile-bottom-nav{display:grid;grid-template-columns:repeat(3,1fr);position:fixed;z-index:90;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #bcd0dc;padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px));box-shadow:0 -3px 16px #14334a0a}.mobile-bottom-nav a,.mobile-bottom-nav button{display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;border:0;background:transparent;color:#587183;border-radius:10px;padding:7px;text-decoration:none;font:600 12px var(--body);min-height:55px}.mobile-bottom-nav svg{width:23px;height:23px}.mobile-bottom-nav .active{background:#e7f4fa;color:#06648a}
 .mobile-action-dock:not([hidden]){display:block;position:fixed;z-index:89;bottom:calc(76px + env(safe-area-inset-bottom,0px));left:0;right:0;padding:10px 16px 12px;background:#eff6fa;border-top:1px solid #bcd0dc;box-shadow:0 -6px 16px #173c500a}.mobile-action-dock p{font-size:12px;color:#486a7c;margin:0 0 8px;line-height:1.45}.mobile-action-dock>div{display:flex;gap:10px}.mobile-action-dock button,.mobile-action-dock a{display:flex;justify-content:center;align-items:center;flex:1;min-height:46px;padding:10px 12px;border-radius:9px;font:700 15px var(--body);text-decoration:none;box-sizing:border-box}.mobile-action-dock button{background:#096b8f;color:#fff;border:1px solid #096b8f}.mobile-action-dock a{background:#fff;color:#1c526e;border:1px solid #a6c3d3}.mobile-action-dock button:disabled{opacity:.5}.mobile-action-dock [hidden]{display:none!important}
 body:has(dialog[open]) :is(.mobile-action-dock,.mobile-bottom-nav),body.mobile-keyboard :is(.mobile-action-dock,.mobile-bottom-nav){visibility:hidden}
 .mobile-work-tabs:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0 12px}.mobile-work-tabs button{padding:12px 10px;border:1px solid #abc4d2;border-radius:9px;background:#f7fbfd;color:#325a70;font:650 14px/1.4 var(--body)}.mobile-work-tabs button[aria-pressed=true]{background:#075f83;color:#fff;border-color:#075f83}
 [data-mobile-stage=input]>.editor-panel,[data-mobile-stage=input]>.sr-output,[data-mobile-stage=input]>.br-output,[data-mobile-stage=output]>.input-panel,[data-mobile-stage=output]>.sr-input-panel,[data-mobile-stage=output]>.br-input{display:none!important}
 #vault-view .prompt-grid,#script-ready-view .sr-editor,.br-layout{grid-template-columns:minmax(0,1fr)!important;gap:0!important;padding:0!important}
 #vault-view .input-panel,#vault-view .editor-panel,#script-ready-view .sr-input-panel,#script-ready-view .sr-output{min-width:0;padding:18px;border-radius:10px}
 #script-ready-view .sr-output,#vault-view .editor-panel{padding:0}.prompt-preview,#sr-preview{max-height:300px!important}.prompt-preview.expanded{max-height:none!important}#prompt-editor,#sr-prompt{min-height:300px}
 #copy,.sr-copy-bar,#br-copy{display:none!important}
 #vault-view .visual-flow,#vault-view .idea-code-choice,#vault-view #destination-picker{display:none!important}
 .step-strip,.sr-steps{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}.sr-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important}.step-strip button,.sr-steps button{padding:10px 6px!important;font-size:13px!important;min-height:62px!important}.work-heading{padding:18px!important}.work-heading h2{font-size:22px!important}
 #style-library-view{padding:16px!important}.style-grid{grid-template-columns:1fr!important;gap:20px}.style-card-copy>span:not(.style-card-action){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.style-card-copy strong{font-size:19px}.motion-collection-intro{padding:18px;gap:16px}.motion-collection-intro h3{font-size:23px}.style-library-controls{grid-template-columns:1fr!important}.style-library-controls>label:first-child{display:none}.motion-filters label{min-width:100%}
 #style-dialog{width:calc(100% - 20px)!important;max-height:calc(100dvh - 24px)!important;padding:18px!important;border-radius:16px}.style-dialog-header{gap:12px}.style-dialog-header h2{font-size:24px}.style-detail-actions{position:sticky;bottom:-18px;background:#122a3a;padding:12px 0;flex-wrap:wrap}.style-detail-actions button{flex:1;min-height:48px}
 .mobile-app-guide{padding:20px}.pc-intro .pc-map{display:none}.pc-tabs{grid-template-columns:1fr!important}.pc-tabs button{font-size:15px!important}.pc-step summary{line-height:1.45}.pc-step-body{padding:18px!important}.pc-actions{flex-wrap:wrap}.pc-actions button{flex:1}.pc-form{padding:18px!important}.pc-progress{margin:18px 0}.cloud-role-grid{gap:12px}.cloud-role-grid article{padding:20px}
 .toast{bottom:calc(186px + env(safe-area-inset-bottom,0px))!important;max-width:calc(100% - 32px)}.br-pair{grid-template-columns:1fr!important}.sr-navigation{margin-top:16px!important}.flow-footer{flex-wrap:wrap}.flow-footer button{min-height:46px}.platform-credit,footer{padding-bottom:16px}
}

/* Keep the menu title and close action visible on short phone screens. */
.mobile-sheet[open]{display:flex;flex-direction:column;overflow:hidden}.mobile-sheet header{flex:none}.mobile-menu-links{min-height:0;overflow-y:auto;overscroll-behavior:contain}.mobile-menu-links a.mobile-repo-link{background:#163b55;border-color:#163b55;color:#fff;border-left:4px solid #f7d883}.mobile-repo-link span{color:#d7e9f3}.mobile-repo-link b{color:#f7d883}
