/* Phone composition is loaded after typography; desktop keeps its existing layout. */
.studio-tools-toggle,.studio-mobile-nav-label,.ez-settings-toggle{display:none}
.try-grid-card{padding:0;font-family:inherit;color:var(--ink)}
.try-grid-card>.try-card-img-wrap{display:block;flex-shrink:0}
.live-ez-embedded .try-header .try-history-toggle-btn{min-height:28px!important;height:28px;padding:4px 10px!important;border-radius:999px;font-size:11px!important;font-weight:400;gap:6px;box-shadow:none}

@media(max-width:640px){
 .shell>.sidebar{width:min(220px,calc(100vw - 44px))!important;max-width:none!important;padding-inline:12px;height:100dvh;max-height:100dvh}
 .shell>.sidebar>*{flex-shrink:0}
 .shell>.sidebar .sidebar-head-row>.brand{min-width:0;flex:1;padding:0;gap:6px}
 .shell>.sidebar .forma-wording{min-width:0}
 .shell>.sidebar .sidebar-close-btn{width:44px!important;height:44px!important;flex:0 0 44px}
 .shell>.sidebar .nav-link{min-height:44px;padding:8px;gap:7px}
 .shell>.sidebar .nav-link>span:first-of-type{white-space:normal;line-height:1.35;min-width:0}
 .shell>.sidebar .profile{min-height:44px;padding-inline:6px}
 .shell>.sidebar .profile>div:not(.avatar){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

@media(max-width:680px){
 .public-body,.shell{--type-ui:.8125rem;--type-heading-lg:1.5rem;--type-heading-md:1.125rem}
 .public-body .auth-card{--type-heading-lg:1.375rem}
 .public-body:has(>.public-main>.auth)::before{height:68px}
 .public-body:has(>.public-main>.auth)>.public-main{justify-content:flex-start;padding:8px 12px;flex:1}
 .public-main>.auth.auth-card,.public-main>.auth.auth-card.auth-signup{margin:52px 0 0;border-radius:18px}
 .public-main>.auth>.auth-page-back{top:-52px;min-height:44px;padding:4px 12px;font-size:12px;box-shadow:none}
 .public-main>.auth .auth-brand{display:none}
 .public-main>.auth .auth-card-main{padding:16px}
 .public-main>.auth .auth-heading{margin:0 0 12px}
 .public-main>.auth .auth-heading h1{margin-bottom:6px}
 .public-main>.auth .auth-heading p{font-size:12px;line-height:1.45;margin:0}
 .public-main>.auth .google-signin{min-height:44px;padding:6px 12px;font-size:13px}
 .public-main>.auth .auth-separator{margin:8px 0;font-size:11px;line-height:16px}
 .public-main>.auth .auth-signup-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 10px}
 .public-main>.auth .field{margin-bottom:10px;gap:5px;font-size:12px}
 .public-main>.auth .field label{white-space:normal}
 .public-main>.auth input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]){height:44px;min-height:44px;padding:8px 12px;border-radius:12px}
 .public-main>.auth .auth-password-control .icon-btn{width:44px;height:44px}
 .public-main>.auth .auth-invite{margin:0 0 4px}
 .public-main>.auth .auth-invite>summary{min-height:36px;font-size:12px}
 .public-main>.auth form>.btn{min-height:44px;margin:4px 0 0;border-radius:12px}
 .public-main>.auth .auth-card-footer{padding:4px 12px;font-size:12px;background:transparent;border-top:0}
 .public-main>.auth .auth-card-footer .text-link{min-height:44px;font-size:12px}
 .public-main>.auth .auth-forgot{margin-top:8px}
 .public-body:has(>.public-main>.auth)>.public-footer{padding:12px 12px 8px;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px}
 .public-body:has(>.public-main>.auth)>.public-footer nav{gap:14px;flex-wrap:wrap}
 .public-body:has(>.public-main>.auth)>.public-footer nav a{display:inline-flex;align-items:center;min-height:36px}
 .public-body:has(>.public-main>.auth)>.live-chat-wrapper{margin:4px 12px max(10px,env(safe-area-inset-bottom))}
 .public-body:has(>.public-main>.auth) .live-chat-trigger{width:44px;height:44px;min-height:44px}
 .main{padding:18px 12px 72px}
 .page-title{margin-bottom:16px;gap:10px}
 .main .page-title h1{font-size:var(--type-heading-lg);line-height:1.2}
 .page-title p{font-size:13px;line-height:1.45;margin-top:6px}
 .main .panel{padding:16px}
 .public-main>.public-section{padding-block:24px}
 .main .page-title>.row{flex-wrap:wrap;gap:8px}
 .main .page-title>.row .btn{flex:0 1 auto;min-height:40px;padding:6px 12px;font-size:13px!important;white-space:normal}
 .topbar{min-height:52px;height:auto;padding:6px 12px;gap:6px}
 .topbar .breadcrumbs{min-width:0;overflow:hidden}
 .topbar .breadcrumbs>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .try-page-shell .try-bar-btn,.try-page-shell .try-bar-generate-btn{font-size:12px!important}
 .try-page-shell.live-ez-uploaded .try-canvas-row{height:clamp(180px,32dvh,280px)!important;min-height:180px!important}
 .try-page-shell .try-stage-prompt-textarea{border-radius:12px}
 .try-page-shell .try-photo-tray-scroll{gap:6px}
 .try-page-shell .try-tray-item{flex:0 0 64px;width:64px!important}
 .try-page-shell .try-tray-thumb-box{width:64px!important;height:40px!important}
 .try-page-shell .try-tray-name{font-size:10px!important;line-height:14px!important}
 .try-page-shell .live-ez-add-photo{border-radius:12px;box-shadow:none}
 .live-ez-standalone .try-header{gap:4px;padding:6px 10px}
 .live-ez-standalone .live-ez-header-start .forma-brand{gap:0}
 .live-ez-standalone .live-ez-header-start .forma-wording{display:none}
 .live-ez-standalone .live-ez-header-start .forma-mark-shell{width:24px;height:28px}
 .live-ez-standalone .live-ez-header-start .forma-brand{padding:0}
 .live-ez-standalone .live-ez-header-start .forma-page-back{margin-left:6px;min-height:44px}
 .live-ez-embedded .try-header .live-ez-mode-label,.live-ez-embedded .try-header .try-history-toggle-btn,.live-ez-embedded .try-header .live-ez-close{height:28px;min-height:28px!important;font-size:10px!important;padding:4px 8px!important;line-height:18px}
 .live-ez-embedded .try-header .live-ez-close{width:auto;min-width:0;gap:4px}
 .live-ez-embedded .try-header [data-action=notifications]{height:36px!important;width:32px!important;min-width:32px!important}
 .live-ez-embedded .try-header .live-ez-close>span{font-size:12px}
}

/* Edit tools and optional settings open the existing native dialog, not a clipped rail. */
@media(max-width:680px),(max-width:950px) and (max-height:500px){
 #modal,#output-modal,#raw-modal{--type-ui:.8125rem;--type-heading-lg:1.125rem;--type-heading-md:1rem;font-size:13px;line-height:1.5;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
 #modal .dialog-header h2{font-size:18px;line-height:1.3}
 #modal .dialog-body{font-size:13px;line-height:1.5}
 #modal .dialog-body .field{margin-bottom:12px}
 #modal .dialog-body .note{font-size:12px;line-height:1.5}
 #modal .dialog-footer .btn{min-height:44px;font-size:13px!important}
 #modal .dialog-header>.icon-btn{min-height:44px;min-width:44px}
 #modal.form-dialog .auth-brand{display:none}
 #modal.form-dialog .dialog-header{padding:16px 60px 8px 16px;text-align:left}
 #modal.form-dialog .dialog-header>.icon-btn{top:8px;right:8px}
 #modal.form-dialog .dialog-body{padding:8px 16px 16px}
 #modal .full-prompt-modal-body{min-width:0;width:100%;font-size:13px}
 #modal .full-prompt-modal-body>.row{flex-wrap:wrap;gap:8px}
 #modal .full-prompt-modal-body .field label{flex-wrap:wrap;gap:4px}
 #modal #full-prompt-counter,#modal .full-prompt-modal-body .small{font-size:12px}
 #modal #full-prompt-textarea{height:clamp(120px,26dvh,180px);min-height:120px}
 #modal .prompt-suggestions{margin-bottom:12px}
 #modal .prompt-suggestions>summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;color:var(--muted)}
 #modal .prompt-suggestions>summary::before{content:'+';font-size:18px}
 #modal .prompt-suggestions[open]>summary::before{content:'−'}
 #modal .prompt-chip-btn{min-height:36px;font-size:12px!important;padding:6px 8px!important}
 #modal .dialog-actions-row{flex-wrap:wrap;gap:8px}
 #modal .dialog-actions-row>.row{flex:1 1 100%;justify-content:flex-end;min-width:0}
 #modal .dialog-actions-row .btn{min-height:44px;font-size:13px!important}
 .canvas-work .tool-rail.canvas-floating-toolbar{overflow:visible!important;justify-content:space-between!important}
 .canvas-work .tool-rail>.tools-pod{display:none!important}
 .canvas-work .editor-bottom-toolbar>.studio-tools-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:4px;height:40px;min-width:0;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:12px;pointer-events:auto}
 .studio-tools-toggle .icon{width:18px;height:18px}
 .canvas-work .tool-rail .history-pod{margin-left:auto;border-radius:12px;box-shadow:none}
 .canvas-work .editor-bottom-toolbar{border-radius:14px;box-shadow:none;gap:6px!important}
 .canvas-work .editor-bottom-toolbar>[data-action=choose-commercial-workflow]{font-size:12px!important;padding:6px 10px!important}
 .canvas-work .editor-bottom-toolbar>.try-bar-generate-btn{font-size:12px!important;border-radius:10px}
 .canvas-work .editor-bottom-toolbar>.studio-settings-toggle{border-radius:10px}
 .try-page-shell .try-bottom-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) 44px minmax(0,1.3fr)!important;gap:6px!important;width:calc(100% - 24px)!important;max-width:420px!important;padding:6px!important;border-radius:14px;overflow:visible!important;flex-shrink:0}
 .try-bottom-toolbar>:not([data-action=choose-commercial-workflow]):not(.ez-settings-toggle):not(.try-bar-generate-btn){display:none!important}
 .try-page-shell .try-bottom-toolbar>[data-action=choose-commercial-workflow]{grid-column:1!important;grid-row:1!important;min-width:0!important;min-height:44px!important;width:100%!important;padding:6px!important;font-size:12px!important}
 .try-page-shell .try-bottom-toolbar>.ez-settings-toggle{display:grid;place-items:center;grid-column:2!important;grid-row:1!important;width:44px;height:44px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink)}
 .try-page-shell .try-bottom-toolbar>.try-bar-generate-btn{grid-column:3!important;grid-row:1!important;min-width:0!important;min-height:44px!important;width:100%!important;padding:6px!important;font-size:12px!important;white-space:normal!important;border-radius:10px;margin-top:0!important}
 #modal:has(.mobile-tools-grid),#modal:has(.mobile-settings-list){position:fixed;inset:auto 12px max(12px,env(safe-area-inset-bottom));margin:0;width:calc(100% - 24px);max-width:480px;max-height:calc(100dvh - 24px);border-radius:18px;padding:0;overflow:auto;overscroll-behavior:contain}
 #modal:has(.mobile-tools-grid) .dialog-header,#modal:has(.mobile-settings-list) .dialog-header{padding:12px 14px 8px;align-items:center}
 #modal:has(.mobile-tools-grid) .dialog-header h2,#modal:has(.mobile-settings-list) .dialog-header h2{font-size:16px;line-height:1.3}
 #modal:has(.mobile-tools-grid) .dialog-header>.icon-btn,#modal:has(.mobile-settings-list) .dialog-header>.icon-btn{min-width:44px;min-height:44px;width:44px;height:44px}
 #modal:has(.mobile-tools-grid) .dialog-body,#modal:has(.mobile-settings-list) .dialog-body{padding:4px 12px 12px}
 .mobile-tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .mobile-tools-grid .pill-divider{display:none}
 .mobile-tools-grid .tool-btn{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:100%;min-height:60px;height:auto;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}
 .mobile-tools-grid .tool-btn-text{display:block;font-size:12px;line-height:1.3}
 .mobile-tools-grid .icon{width:18px;height:18px}
 .mobile-tools-grid .active{background:var(--tint);border-color:var(--accent)}
 .mobile-settings-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .mobile-settings-list .try-bar-btn,.mobile-settings-list>.btn{width:100%;min-width:0;min-height:52px!important;white-space:normal;display:flex;flex-direction:column;align-items:flex-start!important;justify-content:center!important;gap:4px;padding:8px 12px!important;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:none}
 .mobile-settings-list .try-bar-lbl{font-size:10px!important;line-height:1.2;color:var(--muted);text-transform:none}
 .mobile-settings-list .try-bar-val{font-size:13px!important;line-height:1.3;white-space:normal!important;max-width:none!important;text-align:left}
 .mobile-settings-list>.btn{grid-column:1/-1;min-height:44px;flex-direction:row;justify-content:flex-start;align-items:center;font-size:13px!important}
 .mobile-settings-list .icon{width:16px;height:16px}
 body>.mobile-dropdown-portal{border-radius:16px;max-height:calc(100dvh - 24px)!important}
 .notification-popover{max-height:calc(100dvh - 24px);border-radius:16px}
 .notification-heading>.icon-btn{width:44px;height:44px;min-width:44px;min-height:44px}
 .try-modal-overlay{padding:12px}
 .try-modal-overlay .try-modal-dialog{width:100%;max-width:480px;max-height:calc(100dvh - 24px);border-radius:18px}
 .try-modal-dialog .try-modal-header{padding:12px;gap:8px;flex-shrink:0}
 .try-modal-dialog .try-modal-title{font-size:16px}
 .try-modal-dialog .try-modal-sub{font-size:12px;line-height:1.4}
 .try-modal-dialog .try-modal-badge-ic{display:none}
 .try-modal-dialog>.btn{margin:4px 12px 12px!important;width:calc(100% - 24px)!important;min-height:44px;flex-shrink:0;font-size:13px!important}
 .try-modal-dialog .try-grid-cards{padding:0 12px 12px;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr));overflow:auto;min-height:0}
 .try-modal-dialog .try-card-img-wrap{height:58px}
 .try-modal-dialog .try-card-info{padding:7px 6px;min-height:32px;gap:4px;flex-wrap:wrap}
 .try-modal-dialog .try-card-name{font-size:12px;line-height:1.3}
 .try-modal-dialog .try-grid-card:hover{transform:none}
 .try-modal-dialog .try-card-icon,.try-modal-dialog .try-style-pill{display:none}
 .try-modal-dialog .try-modal-footer{padding:10px 12px;flex-shrink:0}
 .try-modal-dialog .try-modal-footer .btn{min-height:44px;font-size:13px!important;box-shadow:none}
 .try-modal-dialog .try-modal-select-btn{color:var(--brand-on-action)!important}
}
@media(max-width:340px){.try-modal-dialog .try-grid-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* A bounded canvas sits between control rows; navigation never overlays photos. */
@media(max-width:680px),(max-width:950px) and (max-height:500px){
 .shell:has(.editor-main){height:100dvh;min-height:0;overflow:hidden}
 .shell:has(.editor-main)>.app-body{height:100%;min-height:0;overflow:hidden}
 .shell .editor-main{margin:0!important;padding:0!important;top:0;height:100%;min-height:0;overflow:hidden}
 .editor-main>[data-inline-feedback]{position:fixed;left:12px;right:12px;bottom:calc(128px + env(safe-area-inset-bottom));margin:0;z-index:90;max-height:100px;overflow:auto;border-radius:10px;background:var(--surface)}
 .editor-main>.editor-layout{height:100%!important;margin:0!important;top:0;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
 .editor-main .canvas-work{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(40px,auto) 36px minmax(0,1fr) auto;gap:8px!important;padding:8px 12px calc(84px + env(safe-area-inset-bottom))!important;min-height:0;overflow:hidden}
 .editor-main .canvas-work>.canvas-toolbar{position:static;inset:auto;padding:0!important;grid-row:1;grid-column:1;width:100%;display:flex;align-items:flex-end;flex-direction:column;gap:6px;min-height:40px}
 .canvas-toolbar>.studio-mobile-controls{min-height:36px;padding:6px 10px;font-size:12px;border-radius:10px}
 .canvas-toolbar>#live-annotation-settings{order:1!important;align-self:stretch;min-width:0}
 .canvas-toolbar .web-annotation-settings{flex-wrap:wrap;font-size:11px;gap:6px}
 .canvas-toolbar .web-annotation-settings input[type=range]{width:80px}
 .studio-floating-back{top:8px;left:12px}
 .studio-floating-back .editor-back-btn,.studio-floating-back>a{display:none!important}
 .studio-floating-back .mobile-menu{display:inline-flex!important;width:auto;min-height:36px;height:36px;padding:6px 12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;font-size:12px}
 .studio-floating-back .mobile-menu>.icon{display:none}
 .studio-mobile-nav-label{display:inline}
 .editor-main .canvas-work>.studio-board-navigation{position:static;inset:auto;grid-row:2;grid-column:1;justify-self:end;align-self:center;max-width:calc(100% - 76px);z-index:1;gap:4px}
 .studio-board-navigation .btn{min-height:36px;padding:6px 8px;font-size:11px;gap:4px}
 .studio-board-navigation .icon{width:16px;height:16px}
 .studio-board-navigation .studio-group-controls>span{display:none}
 .editor-main .canvas-work>.studio-board-viewport,.editor-main .canvas-work>.empty-studio-canvas{grid-row:3;grid-column:1;width:100%!important;height:100%!important;min-height:0;margin:0!important;border:1px solid var(--line)!important;border-radius:12px!important;overflow:hidden!important;background:var(--bg-canvas)}
 .editor-main .canvas-work>.tool-rail.canvas-floating-toolbar{position:static!important;inset:auto!important;grid-row:2;grid-column:1;justify-self:start;align-self:center;transform:none!important;width:auto!important;height:36px!important;padding:0!important;gap:0!important;overflow:visible!important;pointer-events:none;z-index:1}
 .editor-main .canvas-work .tool-rail>.history-pod{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;padding:0!important;margin:0;border:0;background:transparent;pointer-events:auto}
 .editor-main .canvas-work .history-pod .icon-btn{width:32px!important;height:36px!important;min-width:32px!important;flex:0 0 32px!important;padding:6px!important;border:1px solid var(--line);border-radius:10px}
 .editor-main .canvas-work>.editor-bottom-toolbar{position:static!important;inset:auto!important;grid-row:4;grid-column:1;transform:none!important;width:100%!important;max-width:none!important;margin:0!important;display:grid!important;grid-template-columns:62px minmax(0,1fr) 36px minmax(0,1.2fr)!important;padding:4px!important;gap:4px!important;border-radius:12px;overflow:visible;max-height:none}
 .editor-main .editor-bottom-toolbar>.studio-tools-toggle{grid-row:1;grid-column:1}
 .editor-main .editor-bottom-toolbar>[data-action=choose-commercial-workflow]{grid-row:1;grid-column:2;min-height:40px!important;padding:6px!important;font-size:12px!important}
 .editor-main .editor-bottom-toolbar>.studio-settings-toggle{grid-row:1;grid-column:3;width:36px;height:40px;padding:6px}
 .editor-main .editor-bottom-toolbar>.try-bar-generate-btn{grid-row:1!important;grid-column:4!important;min-height:40px!important;padding:6px!important;font-size:12px!important;white-space:normal;gap:4px}
 .editor-main .editor-bottom-toolbar>.try-bar-generate-btn [data-credit-cost]{font-size:10px}
 .editor-main .editor-bottom-toolbar>.topaz-settings{grid-row:1;grid-column:3;width:36px;height:40px}
 .editor-main .topaz-settings>summary{display:grid;place-items:center;width:36px;height:40px;padding:6px;border:1px solid var(--line);border-radius:10px}
 .editor-main .topaz-settings>summary>span{display:none}
 .editor-main .canvas-work>.editor-bottom-toolbar.topaz-toolbar{position:relative!important}
 .editor-main .topaz-settings{position:static}
 .editor-main .topaz-settings-menu{position:absolute;inset:auto 0 calc(100% + 8px);width:auto;max-width:none;max-height:none;padding:8px;gap:6px 10px;overflow:visible;grid-template-columns:repeat(2,minmax(0,1fr))}
 .editor-main .topaz-settings-menu>label{min-width:0;gap:3px;line-height:1.3;text-transform:none}
 .editor-main .topaz-settings-menu>label>span{font-size:11px!important;font-weight:500!important;line-height:14px}
 .editor-main .topaz-settings-menu select,.editor-main .topaz-settings-menu input:not([type=checkbox]){min-width:0;width:100%;max-width:100%;font-size:11px;min-height:28px;height:28px;padding:4px 6px}
 .editor-main .editor-layout>.inspector.mobile-inspector-open{position:absolute!important;inset:auto 12px calc(100% - var(--studio-controls-offset,calc(100% - 128px)) + 8px)!important;width:auto!important;height:auto!important;max-height:none!important;margin:0;padding:0!important;border-radius:14px;display:flex!important;flex-direction:column;gap:0;overflow:visible!important}
 .editor-main .inspector.mobile-inspector-open>.studio-mobile-controls{position:static!important;inset:auto!important;align-self:flex-end;min-height:28px;height:28px;padding:4px 8px;margin:0;font-size:10px;flex-shrink:0}
 .editor-main .inspector.mobile-inspector-open:has(.web-raw-panel)>.studio-mobile-controls{display:none}
 .editor-main #live-raw-panel:has(.web-raw-panel){height:auto;flex:none}
 .editor-main .web-raw-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:auto;min-height:0;padding:8px;gap:6px 8px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-sm);overflow:visible}
 .editor-main .web-raw-panel>:is(.raw-panel-heading,.camera-preview,.raw-mask-settings,.raw-group-tabs,.raw-group-fields,.raw-panel-actions,[role]){grid-column:1/-1}
 .web-raw-panel .libraw-histogram{display:none}
 .web-raw-panel .camera-preview.effect-preview{height:auto;min-height:0;border:0;border-radius:0;background:transparent;overflow:visible}
 .web-raw-panel .camera-preview.effect-preview:not(:has(p)){display:none}
 .editor-main .raw-panel-heading{font-size:12px;min-height:28px}
 .editor-main .raw-panel-heading>.btn{min-height:28px;height:28px;padding:4px 8px;font-size:11px!important}
 .editor-main .raw-preset-field{font-size:11px;gap:4px;min-width:0;flex-direction:column;align-items:stretch;margin:0}
 .editor-main .raw-preset-field select{width:100%;height:28px;min-height:28px;font-size:11px;padding:3px 5px}
 .editor-main .raw-mask-target{display:flex;align-items:flex-end;gap:4px;min-width:0}
 .editor-main .raw-mask-target select{width:100%;min-width:0;min-height:28px;height:28px;padding:3px 5px;font-size:11px}
 .editor-main .raw-mask-target>.btn{min-height:28px;height:28px;padding:3px 5px;font-size:11px!important;white-space:nowrap}
 .editor-main .raw-group-tabs button{min-height:28px;padding:4px;font-size:11px}
 .editor-main .raw-group-fields{gap:4px 10px;flex:none}
 .editor-main .raw-group-fields .web-raw-control>span{display:flex;justify-content:space-between;min-width:0;min-height:16px;font-size:11px;line-height:16px;margin:0;gap:4px}
 .editor-main .raw-group-fields output{min-width:24px;padding:0 2px;line-height:16px;font-size:10px}
 .editor-main .web-raw-panel input[type=range]{height:22px;margin:0}
 .editor-main .raw-panel-actions{padding-top:0;gap:6px}
 .editor-main .raw-panel-actions>.btn{min-height:30px;height:30px;padding:4px 8px;font-size:12px!important}
 .editor-main .canvas-layers-panel{--layer-thumb:48px}
 .editor-main #live-layer-preview{top:12px;bottom:52px}
 .transfer-inspector[data-panel=transfer]>#live-raw-panel:empty{display:none}
 .camera-inspector>#live-raw-panel:empty{display:none}
 .editor-main .transfer-inspector[data-panel=transfer]>.studio-mobile-controls{position:absolute!important;top:8px!important;right:8px!important;margin:0!important;padding:0!important;width:28px;min-width:28px;height:28px;font-size:0!important;z-index:2}
 .editor-main .transfer-inspector[data-panel=transfer]>.studio-mobile-controls::after{content:'×';font-size:18px}
 .editor-main .camera-inspector:not(:has(.web-raw-panel))>.studio-mobile-controls{position:absolute!important;top:8px!important;right:8px!important;margin:0!important;padding:0!important;width:28px;min-width:28px;height:28px;font-size:0!important;z-index:2}
 .editor-main .camera-inspector:not(:has(.web-raw-panel))>.studio-mobile-controls::after{content:'×';font-size:18px}
 .editor-main .inspector.mobile-inspector-open .style-transfer-panel{min-height:0;padding:8px;gap:6px;overflow:visible;flex:0 auto;box-shadow:var(--shadow-sm)}
 .style-transfer-panel>header{padding-right:28px}
 .style-transfer-panel>header :is(.eyebrow,p){display:none}
 .style-transfer-panel>header h2{font-size:15px;margin:0;line-height:20px}
 .style-transfer-panel .transfer-settings-tabs{display:flex;gap:6px;padding-right:34px;flex-shrink:0}
 .transfer-settings-tabs>button{flex:1;min-height:30px;padding:4px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted);cursor:pointer}
 .transfer-settings-tabs>button[aria-selected=true]{background:var(--tint);color:var(--ink);border-color:var(--accent)}
 .style-transfer-panel[data-settings-tab=reference]>.transfer-options-settings,.style-transfer-panel[data-settings-tab=options]>.transfer-reference-settings{display:none}
 .style-transfer-panel :is(.transfer-reference-settings,.transfer-options-settings){gap:6px}
 .style-transfer-panel .transfer-source{display:none}
 .style-transfer-panel .tag.outline{display:none}
 .style-transfer-panel .transfer-source>div{flex-direction:row;align-items:center;gap:8px;width:100%}
 .style-transfer-panel .transfer-source .small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
 .style-transfer-panel .small{font-size:11px!important;line-height:1.35!important}
 .style-transfer-panel .transfer-reference-settings{display:grid;grid-template-columns:48px minmax(0,1fr);gap:4px 8px}
 .style-transfer-panel .transfer-reference-preview{grid-column:1;grid-row:1/3;height:58px;min-height:44px;padding:3px;gap:4px}
 .style-transfer-panel .transfer-reference-preview>strong{display:none}
 .style-transfer-panel .transfer-reference-heading,.style-transfer-panel .transfer-reference-actions{grid-column:2}
 .style-transfer-panel .transfer-upload-hint{grid-column:1/-1}
 .style-transfer-panel .transfer-reference-preview>.small{display:none}
 .style-transfer-panel .transfer-reference-preview>.icon{width:18px;height:18px}
 .style-transfer-panel .transfer-reference-actions>.btn{min-height:32px;margin:0;padding:5px 8px;font-size:12px!important}
 .style-transfer-panel .transfer-upload-hint{margin:0;font-size:10px!important;line-height:1.35!important}
 .style-transfer-panel .transfer-role-set{display:none}
 .style-transfer-panel .transfer-role-compact{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;margin:0}
 .style-transfer-panel .transfer-role-compact select{width:108px;min-height:32px;height:32px;padding:4px 6px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
 .style-transfer-panel .transfer-role-set legend{margin-bottom:6px}
 .style-transfer-panel .transfer-role-set .btn{min-height:30px;padding:4px;font-size:12px!important}
 .style-transfer-panel .transfer-influence{gap:2px;margin:0}
 .style-transfer-panel .transfer-influence input{height:24px}
 .style-transfer-panel .transfer-influence>.small{display:none}
 .editor-main .inspector.mobile-inspector-open .studio-inspector-tabs{flex-shrink:0;gap:4px;margin:0}
 .editor-main .inspector.mobile-inspector-open .studio-inspector-tabs button{min-height:30px;padding:5px 8px;font-size:11px}
 .editor-main .inspector.mobile-inspector-open .editor-multiview-wrap{margin:0}
 .editor-main .inspector.mobile-inspector-open .web-orbit-v6.inspector-orbit{margin:8px 0 0}
 .editor-main .camera-inspector:not(:has(.web-raw-panel)) .inspector-multiview-content{padding:8px!important;overflow:visible!important;box-shadow:var(--shadow-sm);border-radius:14px}
 .camera-inspector .orbit-3d-wrap{gap:0!important}
 .camera-inspector .orbit-3d-wrap .multiview-head{align-items:center;min-height:28px;margin:0 34px 6px 0;gap:8px}
 .camera-inspector .multiview-head h4{font-size:12px;line-height:1.25;margin:0}
 .camera-inspector .orbit-mode-switch{min-height:28px;height:28px;padding:3px 6px;font-size:11px!important}
 .camera-inspector .orbit-mode-body{display:grid!important;grid-template-columns:minmax(0,.41fr) minmax(0,.59fr);grid-template-rows:auto auto;align-items:stretch;gap:6px 8px;min-width:0;min-height:150px}
 .camera-inspector .web-orbit-v6.inspector-orbit,.camera-inspector .web-orbit-v6.inspector-orbit>div:not([hidden]){display:contents!important}
 .camera-inspector .web-orbit-v6.inspector-orbit .camera-card{grid-column:1;grid-row:1/3;min-height:0;height:100%;border-radius:10px;min-width:0}
 .camera-inspector .web-orbit-v6.inspector-orbit .top-readout{top:6px;left:5px;right:5px;height:22px;gap:0}
 .camera-inspector .top-readout>span:first-child,.camera-inspector .top-readout>i{display:none}
 .camera-inspector .web-orbit-v6.inspector-orbit .top-readout span{font-size:8px;padding:0 2px}
 .camera-inspector .web-orbit-v6.inspector-orbit .controls{grid-column:2;grid-row:1;min-width:0;padding:6px;margin:0;height:auto;border-radius:10px}
 .camera-inspector .web-orbit-v6.inspector-orbit .slider-row{gap:4px;padding:0 0 6px;height:auto}
 .camera-inspector .web-orbit-v6.inspector-orbit .axis{grid-template-columns:12px minmax(0,1fr) 28px;min-height:22px;gap:4px}
 .camera-inspector .axis-name,.camera-inspector .web-orbit-v6.inspector-orbit .axis-readout{font-size:10px}
 .camera-inspector .web-orbit-v6.inspector-orbit input[type=range]{height:22px;margin:0}
 .camera-inspector .web-orbit-v6.inspector-orbit .bottom-row{gap:4px;padding:6px 0 0;height:auto}
 .camera-inspector .web-orbit-v6.inspector-orbit .shot-btn,.camera-inspector .web-orbit-v6.inspector-orbit .reset-btn{height:28px;min-height:28px;padding:2px;font-size:11px!important;line-height:1.2;white-space:nowrap;gap:3px}
 .camera-inspector .reset-btn svg{width:13px;height:13px}
 .camera-inspector .orbit-action-wrap{grid-column:2;grid-row:2;margin:0;padding:0}
 .camera-inspector .orbit-action-wrap>.btn{min-height:30px;height:30px;padding:4px 6px;font-size:12px!important}
 .camera-inspector .orbit-task-status,.camera-inspector .orbit-mode-body>button{grid-column:1/-1;margin:0;font-size:11px!important}
 .camera-inspector .orbit-initial-status{grid-column:1;grid-row:1/3;min-height:150px;font-size:11px}
 .editor-main .canvas-work .studio-image-actions button,.editor-main .canvas-work .studio-image-actions .libraw-switch{min-height:32px}
 .editor-main .canvas-work .studio-image-actions .artboard-download-btn{width:32px;height:32px}
 .editor-main .canvas-work .studio-image-actions .output-navigator{height:32px}
 .editor-main .canvas-work .studio-image-actions .output-navigator button{height:30px;min-height:30px;width:28px}
 .editor-main .studio-image-actions .libraw-switch{font-size:10px;padding:0 6px}
 .editor-main .editor-layout>.filmstrip{height:64px!important;min-height:0;gap:6px;padding:6px 10px!important;bottom:calc(8px + env(safe-area-inset-bottom));overflow-x:auto;overflow-y:hidden}
 .editor-main .filmstrip .film-item,.editor-main .filmstrip .film-add{height:50px!important;min-width:64px}
 .editor-main .filmstrip>.icon-btn[data-action=add-images]{flex:0 0 44px;width:44px;min-width:44px;height:50px!important;min-height:50px!important;max-height:50px!important;padding:0;align-self:center;box-sizing:border-box;border-radius:8px}
 .editor-main .filmstrip .film-caption,.editor-main .filmstrip .film-versions{display:none}
 .editor-main .filmstrip .film-item img{height:100%;object-fit:cover}
 .editor-main .filmstrip .film-remove-btn{width:26px;height:26px}
 .editor-main .empty-studio-upload{padding:16px}
 .editor-main .empty-studio-upload h2{font-size:18px;margin:10px 0 6px}
 .editor-main .empty-studio-icon{width:48px;height:48px;border-radius:14px}
 .editor-main .studio-task-overlay{min-width:64px;padding:8px 10px;gap:2px;font-size:11px;border-radius:12px}
 .editor-main .studio-task-overlay .loading-ring{width:18px;height:18px;margin-bottom:2px}
 .editor-main .studio-task-overlay small{font-size:9px}
}
@media(max-width:680px),(max-width:950px) and (max-height:500px){
 .editor-layout:is(:has(>.inspector.mobile-inspector-open),:has(.topaz-settings[open]),:has(.canvas-layers-panel:not([hidden]))) .canvas-work{grid-template-rows:minmax(40px,auto) 36px minmax(0,1fr) auto auto}
 .editor-layout:is(:has(>.inspector.mobile-inspector-open),:has(.topaz-settings[open]),:has(.canvas-layers-panel:not([hidden]))) .canvas-work::after{content:'';grid-row:4;grid-column:1;height:var(--studio-dock-height,220px);pointer-events:none}
 .editor-layout:is(:has(>.inspector.mobile-inspector-open),:has(.topaz-settings[open]),:has(.canvas-layers-panel:not([hidden]))) .canvas-work>.editor-bottom-toolbar{grid-row:5!important}
 .editor-layout:has(.canvas-layers-panel:not([hidden]))>.inspector.mobile-inspector-open,.editor-layout:has(.topaz-settings[open])>.inspector.mobile-inspector-open{display:none!important}
 .canvas-work:has(.topaz-settings[open])>.canvas-layers-panel{display:none!important}
}
@media(min-width:360px) and (max-width:680px){.editor-main .topaz-settings-menu{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-main .raw-group-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px) and (max-height:620px),(max-width:950px) and (max-height:500px){
 .shell:has(.editor-layout[data-studio-dock=open]),.shell:has(.editor-layout[data-studio-dock=open])>.app-body{height:auto!important;min-height:100dvh;overflow:visible}
 .shell .editor-layout[data-studio-dock=open]{height:auto!important;grid-template-rows:auto!important}
 .editor-main:has(.editor-layout[data-studio-dock=open]){height:auto!important;overflow:visible!important}
 .shell .editor-layout[data-studio-dock=open]>.canvas-work{height:auto!important;min-height:calc(434px + var(--studio-dock-height,220px))!important;grid-template-rows:minmax(40px,auto) 36px minmax(180px,1fr) auto auto;overflow:visible!important}
}
@media(max-width:680px) and (max-height:620px){.style-transfer-panel .transfer-reference-preview{height:44px}.style-transfer-panel .transfer-reference-preview>strong{font-size:11px}}
@media(max-width:680px) and (max-height:620px){
 .camera-inspector .web-orbit-v6.inspector-orbit .slider-row{gap:2px;padding-bottom:4px}
 .camera-inspector .web-orbit-v6.inspector-orbit .axis,.camera-inspector .web-orbit-v6.inspector-orbit input[type=range]{height:20px;min-height:20px}
 .camera-inspector .web-orbit-v6.inspector-orbit .bottom-row{padding-top:4px}
 .camera-inspector .web-orbit-v6.inspector-orbit .shot-btn,.camera-inspector .web-orbit-v6.inspector-orbit .reset-btn{height:26px;min-height:26px}
}
@media(max-width:950px) and (max-height:500px){
 .camera-inspector .orbit-mode-body{min-height:104px}
 .camera-inspector .web-orbit-v6.inspector-orbit .slider-row{grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:4px}
 .camera-inspector .web-orbit-v6.inspector-orbit .bottom-row{grid-template-columns:repeat(4,minmax(0,1fr));padding-top:4px}
 .camera-inspector .orbit-initial-status{min-height:104px}
 .editor-main .topaz-settings-menu{width:auto;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px;gap:4px 8px}
 .editor-main .raw-group-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
 .editor-main .topaz-settings-menu>label{gap:1px}
 .editor-main .topaz-settings-menu>label>span{line-height:12px}
 .editor-main .topaz-settings-menu select,.editor-main .topaz-settings-menu input:not([type=checkbox]){height:24px;min-height:24px;padding:2px 5px}
 .editor-main .topaz-settings-menu>.check-line{height:24px;min-height:24px}
 .editor-main .transfer-inspector.mobile-inspector-open[data-panel=transfer]{width:min(520px,calc(100vw - 48px))!important;padding:4px!important}
 .editor-main .transfer-inspector .style-transfer-panel{padding:6px;gap:4px}
 .transfer-inspector .style-transfer-panel>header,.transfer-inspector .transfer-source{display:none}
 .transfer-inspector .transfer-settings-tabs{padding-right:30px}
 .transfer-inspector .transfer-reference-settings{display:grid;grid-template-columns:96px minmax(0,1fr);gap:4px 8px}
 .transfer-inspector .transfer-reference-preview{grid-column:1;grid-row:1/4;height:72px;min-height:0}
 .transfer-inspector .transfer-reference-heading,.transfer-inspector .transfer-reference-actions,.transfer-inspector .transfer-upload-hint{grid-column:2}
 .transfer-inspector .transfer-role-set{grid-template-columns:repeat(5,minmax(0,1fr))}
 .transfer-inspector .transfer-role-set legend{display:none}
 .transfer-inspector .transfer-influence{margin:0;gap:0}
}
