/* Dedicated phone viewer; desktop geometry and print styles are untouched. */
#mobile-storyboard[hidden]{display:none!important}
@media screen {
html[data-mobile-readonly=true] {scroll-padding-bottom:100px}
html[data-mobile-readonly=true] body{overflow-x:clip}
html[data-mobile-readonly=true] #storyboard-workspace{padding:16px 12px calc(100px + env(safe-area-inset-bottom)) 64px;max-width:760px}
html[data-mobile-readonly=true] #cover-page{padding:18px;margin-bottom:18px;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:22px}
html[data-mobile-readonly=true] #project-title-input{font-size:20px;line-height:1.4}
html[data-mobile-readonly=true] #project-remarks-input{min-height:0;max-height:140px;resize:none;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-mobile-readonly=true] :is(#orb-container,.sbgp-layer,#save-status-light,#selected-count-display,[data-edit-only]:not([data-mobile-view-control]),#markdown-toolbar){display:none!important}
html[data-mobile-readonly=true] #shot-navigator{left:max(6px,env(safe-area-inset-left));width:48px;bottom:calc(82px + env(safe-area-inset-bottom));top:10vh;padding:7px 3px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
html[data-mobile-readonly=true] #shot-navigator-preview{max-width:calc(100vw - 76px)}
html[data-mobile-readonly=true] #floating-dock-container{--mobile-dock-width-limit:calc(100vw - max(6px,env(safe-area-inset-left)) - max(6px,env(safe-area-inset-right)));left:max(6px,env(safe-area-inset-left));bottom:calc(12px + env(safe-area-inset-bottom));border:0;max-width:var(--mobile-dock-width-limit);transform:none!important}
html[data-mobile-readonly=true] #cine-dock{--mobile-dock-overlap:16px;transition:gap 320ms cubic-bezier(.2,.85,.25,1);height:52px;min-height:52px;padding:1px;gap:4px;flex-wrap:nowrap;max-width:var(--mobile-dock-width-limit);overflow:clip;border-radius:18px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);filter:none!important;box-shadow:0 5px 18px #0002}
html[data-mobile-readonly=true] #cine-dock::before{display:none}
html[data-mobile-readonly=true] #cine-dock > :not(#mobile-dock-logo):not(:has(> #dock-account-shell)){display:none!important}
html[data-mobile-readonly=true] #cine-dock > :has(> #dock-account-shell){display:flex!important;gap:4px;margin:0;margin-inline-start:calc(-1 * var(--mobile-dock-overlap));border:0;padding:0;padding-inline-start:var(--mobile-dock-overlap);width:max-content;max-width:min(calc(var(--mobile-controls-width,160px) + var(--mobile-dock-overlap)),calc(var(--mobile-dock-width-limit) - 52px + var(--mobile-dock-overlap)));flex:none;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;opacity:1;visibility:visible;transition:max-width 320ms cubic-bezier(.2,.85,.25,1),opacity 160ms ease,visibility 0s}
/* The scrolling row starts underneath the fixed Logo. Fade the moving controls at that overlap. */
html[data-mobile-readonly=true] #cine-dock > [data-mobile-dock-scrolled] {
    mask-image: linear-gradient(to right, transparent 0, rgb(0 0 0 / .06) 10px, rgb(0 0 0 / .38) 22px, rgb(0 0 0 / .78) 34px, #000 44px);
}
html[data-mobile-readonly=true] #cine-dock > :has(> #dock-account-shell) > :not(#dock-account-shell):not(#theme-toggle-button):not(#dock-annotations-button):not(#dock-zoom){display:none!important}
html[data-mobile-readonly=true] #mobile-dock-logo{position:relative;z-index:1;width:44px;height:44px;margin:0;justify-content:center;flex-shrink:0;outline-offset:0}
html[data-mobile-readonly=true] #mobile-dock-logo > :not(:first-child){display:none!important}
html[data-mobile-readonly=true] #mobile-dock-logo > :first-child{padding:7px;border:0;background:transparent;box-shadow:none}
html[data-mobile-readonly=true] #mobile-dock-logo svg{width:24px;height:24px}
html[data-mobile-readonly=true] #cine-dock :is(#dock-account-button,#theme-toggle-button,#dock-annotations-button,#dock-zoom-button){width:44px!important;min-width:44px!important;height:44px!important;min-height:44px;flex-shrink:0;border-radius:14px!important}
html[data-mobile-readonly=true] #cine-dock #theme-toggle-button{width:72px!important;min-width:72px!important;-webkit-touch-callout:none}
html[data-mobile-readonly=true] #cine-dock #theme-toggle-button .toggle-highlight{inset:6px auto 6px 6px;width:24px;border-radius:8px}
html[data-mobile-readonly=true] #cine-dock #theme-toggle-button[aria-pressed=true] .toggle-highlight{transform:translate3d(36px,0,0)}
html[data-mobile-readonly=true] #cine-dock #theme-toggle-button .toggle-icon-on{left:9px}
html[data-mobile-readonly=true] #cine-dock #theme-toggle-button .toggle-icon-off{left:45px}
html[data-mobile-readonly=true] #cine-dock #dock-annotations-button .toggle-highlight{display:none}
html[data-mobile-readonly=true] #cine-dock #dock-annotations-button .toggle-icon{inset-inline:0;margin-inline:auto}


html[data-mobile-readonly=true] #dock-account-shell{flex:none}
html[data-mobile-readonly=true] #cine-dock > :has(> #dock-account-shell)::-webkit-scrollbar{display:none}
html[data-mobile-readonly=true][data-mobile-dock-collapsed=true] #cine-dock{gap:0}
html[data-mobile-readonly=true][data-mobile-dock-collapsed=true] #cine-dock > :has(> #dock-account-shell){max-width:0;opacity:0;visibility:hidden;pointer-events:none;transition:max-width 320ms cubic-bezier(.2,.85,.25,1),opacity 120ms ease,visibility 0s 320ms}
html[data-mobile-readonly=true] #dock-presence,html[data-mobile-readonly=true] #collab-lock-status{display:none!important}
html[data-mobile-readonly=true] #collab-note-modal .surface-card{max-height:calc(100dvh - 32px);overflow:auto}
html[data-mobile-readonly=true] #lightbox-modal{padding:12px}
.mobile-shot{border:1px solid var(--sb-color-border,#cbd5e150);border-radius:22px;background:var(--sb-color-surface,#fafafa);margin-bottom:16px;overflow:hidden;box-shadow:0 2px 6px #00000008;scroll-margin-top:16px}
.dark .mobile-shot{background:#1c1c20;border-color:#ffffff14}
.mobile-shot-spec{display:grid;grid-template-columns:.8fr 1fr 1.4fr 1fr;gap:6px;margin:0;padding:12px 10px;color:var(--sb-color-text,#27272a)}
.mobile-shot-spec>div{min-width:0}.mobile-shot-spec dt{font-size:8px;letter-spacing:.04em;color:var(--sb-color-text-muted,#71717a);margin-bottom:5px}.mobile-shot-spec dd{margin:0;font-size:12px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.mobile-shot-image{position:relative;display:flex;width:100%;align-items:center;justify-content:center;background:#8080800b;border:0;padding:0;overflow:hidden;cursor:zoom-in}
.mobile-shot-image img{width:100%;height:100%;display:block}.mobile-shot-empty{font-size:12px;color:#71717a}
.mobile-shot-details{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;border:0;background:transparent;padding:12px 14px;text-align:left;font-size:12px;color:var(--sb-color-text,#27272a)}
.mobile-shot-details svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform 220ms cubic-bezier(.2,.8,.2,1)}
.mobile-shot.is-expanded .mobile-shot-details svg{transform:rotate(180deg)}
.mobile-shot-notes{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows 260ms cubic-bezier(.2,.8,.2,1),visibility 260ms}
.mobile-shot.is-expanded .mobile-shot-notes{grid-template-rows:1fr;visibility:visible}.mobile-shot-notes>div{overflow:hidden;min-height:0}
.mobile-shot-copy{padding:0 14px 16px;font-size:13px;line-height:1.75;overflow-wrap:anywhere;color:var(--sb-color-text,#27272a)}
.mobile-shot-copy h3{font-size:10px;font-weight:600;color:var(--sb-color-text-muted,#71717a);margin:10px 0 6px}.mobile-shot-copy p{margin:0 0 8px}
.mobile-shot button:focus-visible,#mobile-dock-logo:focus-visible{outline:2px solid var(--sb-color-focus-ring,#818cf8);outline-offset:-3px}
@media(prefers-reduced-motion:reduce){.mobile-shot-notes,.mobile-shot-details svg,html[data-mobile-readonly=true] #cine-dock,html[data-mobile-readonly=true] #cine-dock > :has(> #dock-account-shell){transition:none!important}}
}
@media print{#mobile-storyboard{display:none!important}}

#mobile-setup-title,#mobile-setup-open{display:none}
html[data-mobile-readonly=true] #setup-panel [data-desktop-setup]{display:none}
html[data-mobile-readonly=true] #mobile-setup-title{display:inline}
html[data-mobile-readonly=true] #mobile-setup-open{display:inline-flex;min-height:44px;padding-inline:20px;font-size:14px}
