:root{--bg-app: #f6f7f9;--bg-surface: #ffffff;--bg-canvas: #e7ebef;--bg-subtle: #f1f4f8;--fg-1: #18283a;--fg-2: #526477;--fg-muted: #768799;--line-soft: #d7dfe7;--line-strong: #c5d0de;--blue: #0966cb;--blue-hover: #145496;--blue-soft: #e7f0fb;--ok-bg: #e7f6ec;--ok-fg: #1b6b3a;--warn-bg: #fff5e5;--warn-fg: #9c5b10;--err-bg: #fdeaea;--err-fg: #b42318;--couple-bg: #fce7f3;--couple-fg: #9d174d;--family-bg: #e0f2fe;--family-fg: #0369a1;--shadow-card: 0 2px 8px rgba(15, 23, 42, .06);--shadow-spread: 0 10px 28px rgba(15, 23, 42, .14)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{margin:0;padding:0;height:100%;height:100dvh;background:var(--bg-app);color:var(--fg-1);font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{min-height:36px;cursor:pointer}.leaflo-logo-img{border-radius:6px;display:block;object-fit:cover}.leaflo-logo-lg{border-radius:12px;box-shadow:0 4px 12px #0f172a24}.btn-primary{background:var(--blue);color:#fff;border:1px solid var(--blue);border-radius:999px;padding:8px 14px;font-weight:600;font-size:13px}.btn-primary:hover:not(:disabled){background:var(--blue-hover)}.btn-primary:disabled{opacity:.45;cursor:not-allowed}.btn-secondary{background:var(--bg-surface);color:var(--fg-1);border:1px solid var(--line-strong);border-radius:999px;padding:8px 14px;font-weight:600;font-size:13px}.btn-ghost{background:var(--bg-surface);color:var(--fg-1);border:1px solid var(--line-soft);border-radius:999px;padding:7px 12px;font-weight:600;font-size:12.5px}.btn-danger-ghost{background:#fff8f8;color:var(--err-fg);border:1px solid #f5c2c0;border-radius:999px;padding:7px 12px;font-weight:600;font-size:12.5px}.btn-outline-gold{background:#fdf9f0;color:#7c5815;border:1px solid #e6d5ad;border-radius:999px;padding:5px 11px;font-weight:600;font-size:12px}.btn-compact{padding:6px 12px;font-size:12.5px;min-height:34px}.btn-xs{padding:4px 10px;font-size:12px;min-height:30px}.studio-input,.studio-select{width:100%;min-height:40px;padding:8px 12px;border-radius:10px;border:1px solid var(--line-strong);background:#fff;color:var(--fg-1);font-size:14px}.search-compact{min-height:34px;max-width:210px;font-size:13px;padding:5px 10px}.field-label{display:block;font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--fg-muted);text-transform:uppercase;margin-bottom:4px}.muted-copy{font-size:12.5px;color:var(--fg-2);margin:2px 0}.status-pill,.meta-pill,.cover-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;font-size:11.5px;font-weight:600;white-space:nowrap}.meta-pill{background:var(--bg-subtle);color:var(--fg-1);border:1px solid var(--line-soft)}.pill-ok{background:var(--ok-bg);color:var(--ok-fg)}.pill-warn{background:var(--warn-bg);color:var(--warn-fg)}.pill-err{background:var(--err-bg);color:var(--err-fg)}.pill-info{background:var(--blue-soft);color:var(--blue)}.pill-muted{background:var(--bg-subtle);color:var(--fg-2)}.banner-err,.banner-warn,.banner-info{padding:10px 12px;border-radius:10px;font-size:12.5px;font-weight:500;display:flex;justify-content:space-between;align-items:center;gap:8px;margin:6px 0}.banner-err{background:var(--err-bg);color:var(--err-fg);border:1px solid #f7c7c5}.banner-warn{background:var(--warn-bg);color:var(--warn-fg);border:1px solid #f7dfb8}.banner-info{background:var(--blue-soft);color:var(--blue);border:1px solid #c7def7}.studio-card{background:var(--bg-surface);border:1px solid var(--line-soft);border-radius:14px;padding:14px;box-shadow:var(--shadow-card)}.login-page{min-height:100%;display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(180deg,#f8fafc,#eef2f7)}.login-card{width:100%;max-width:420px;background:#fff;border:1px solid var(--line-soft);border-radius:18px;padding:24px;box-shadow:0 14px 36px #0f172a14}.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:12px}.login-title{margin:0;font-size:18px;letter-spacing:.03em}.login-tagline{margin:2px 0 0;font-size:13.5px;color:var(--blue);font-weight:600}.login-subtitle{font-size:13px;color:var(--fg-2);line-height:1.45;margin-bottom:16px}.login-form{display:flex;flex-direction:column;gap:10px}.pw-row{display:flex;gap:8px;align-items:center}.pw-toggle{flex:none;min-height:40px}.login-submit{width:100%;min-height:44px;margin-top:6px;font-size:14px}.login-footer-note{margin-top:16px;font-size:11.5px;color:var(--fg-muted);line-height:1.4}.studio-shell{display:flex;flex-direction:column;height:100%;height:100dvh;overflow:hidden;padding-top:env(safe-area-inset-top)}.studio-topbar{background:#fff;border-bottom:1px solid var(--line-soft);padding:5px 10px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;flex:none;z-index:25}.studio-toast{background:var(--ok-bg);color:var(--ok-fg);border:1px solid #bce3ca;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;align-self:flex-start;box-shadow:var(--shadow-card)}.topbar-left,.topbar-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.brand-btn{display:inline-flex;align-items:center;gap:8px;background:transparent;border:none;padding:2px 4px;min-height:32px}.brand-wordmark{font-weight:800;font-size:14px;letter-spacing:.06em;color:var(--fg-1)}.brand-sub{font-size:11px;color:var(--blue);font-weight:600}.update-banner,.error-strip{width:100%;display:flex;justify-content:space-between;align-items:center;padding:6px 10px;border-radius:8px;font-size:12px}.update-banner{background:var(--blue-soft);color:var(--blue)}.error-strip{background:var(--err-bg);color:var(--err-fg)}.studio-main{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.bottom-nav{background:#fff;border-top:1px solid var(--line-soft);display:grid;grid-template-columns:repeat(4,1fr);padding:4px 8px calc(4px + env(safe-area-inset-bottom));z-index:25}.bottom-nav-item{border:none;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:5px;color:var(--fg-2);font-size:11px;font-weight:600;border-radius:10px}.bottom-nav-item.active{color:var(--blue);background:var(--blue-soft)}.nav-icon{font-size:16px;line-height:1}.dashboard-page{min-height:100%;display:flex;flex-direction:column}.dashboard-main{max-width:1140px;width:100%;margin:0 auto;padding:14px 14px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}.account-banner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:center}.account-email{font-size:16px;font-weight:700;margin-bottom:2px}.quota-widget{flex:1;min-width:240px;max-width:440px}.quota-header{display:flex;justify-content:space-between;align-items:center;font-size:12.5px}.quota-numbers{font-weight:700}.quota-bar-track{height:9px;border-radius:999px;background:var(--bg-subtle);overflow:hidden;margin:6px 0 10px}.quota-bar-fill{height:100%;background:var(--blue);border-radius:999px;transition:width .2s}.quota-bar-fill.fill-warn{background:#d97706}.quota-bar-fill.fill-danger{background:#dc2626}.quota-actions{display:flex;gap:8px;flex-wrap:wrap}.section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px}.section-head h2{margin:0;font-size:16px}.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}.project-card{padding:0;overflow:hidden;display:flex;flex-direction:column}.project-cover{position:relative;height:140px;background:var(--bg-canvas);display:flex;align-items:center;justify-content:center;overflow:hidden}.project-cover img{width:100%;height:100%;object-fit:cover}.cover-placeholder{text-align:center;color:var(--fg-2);font-weight:700}.cover-placeholder small{display:block;font-weight:500;font-size:11px;margin-top:2px}.cover-badge{position:absolute;right:10px;top:10px}.project-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:8px;flex:1}.project-title-row{display:flex;justify-content:space-between;align-items:center;gap:8px}.project-title-row h3{margin:0;font-size:15px}.project-metrics{display:flex;gap:10px;font-size:12px;font-weight:600;color:var(--fg-2)}.project-statuses{display:flex;flex-wrap:wrap;gap:6px}.project-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:6px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8f;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:200;display:flex;align-items:center;justify-content:center;padding:14px}.modal-card{background:#fff;border:1px solid var(--line-soft);border-radius:16px;padding:14px 16px;box-shadow:0 20px 50px #0f172a47;color:var(--fg-1)}.modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--line-soft);flex:none}.modal-header h3{margin:0;font-size:16px}.modal-header p{margin:2px 0 0;font-size:12px}.modal-sheet{width:100%;max-width:620px;max-height:88vh;overflow:auto}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}.modal-head h2{margin:0;font-size:17px}.storage-summary-box{background:var(--bg-subtle);border-radius:12px;padding:12px;margin-bottom:14px}.storage-metrics-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.storage-metrics-grid div{background:#fff;padding:8px;border-radius:8px;border:1px solid var(--line-soft)}.storage-metrics-grid small{display:block;font-size:11px;color:var(--fg-muted)}.storage-metrics-grid strong{font-size:13px}.account-metrics{grid-template-columns:repeat(auto-fit,minmax(9rem,1fr))}.account-metrics dt{color:var(--fg-muted);font-size:12px}.account-metrics dd{margin:3px 0 0;font-size:14px;font-weight:600}.storage-proj-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--line-soft);gap:8px}.storage-policy-note{background:#f8fafc;border-radius:10px;padding:10px 12px;font-size:12px;color:var(--fg-2);margin-top:12px}.storage-policy-note ul{margin:6px 0 0;padding-left:18px}.library-workspace{flex:1;min-height:0;display:flex;overflow:hidden}.library-sidebar{width:248px;flex:none;background:#fff;border-right:1px solid var(--line-soft);padding:10px;display:flex;flex-direction:column;gap:8px;overflow:auto}.sidebar-label{font-size:11px;font-weight:700;color:var(--fg-muted);margin-top:6px}.collection-list{display:flex;flex-direction:column;gap:3px}.collection-row{display:flex;justify-content:space-between;padding:7px 10px;border-radius:8px;border:none;background:transparent;font-size:13px;text-align:left;color:var(--fg-1)}.collection-row.active{background:var(--blue-soft);color:var(--blue);font-weight:700}.sidebar-footer-btns{margin-top:auto;display:flex;flex-direction:column;gap:6px}.library-main{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden;padding:8px 10px;gap:6px}.scrollable-row{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;flex:none}.submode-pills,.filter-tabs{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto}.chip-pill,.chip-outline,.label-pill{padding:5px 11px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;min-height:30px}.chip-pill{border:1px solid var(--line-soft);background:#fff;color:var(--fg-2)}.chip-pill.active{background:var(--blue);color:#fff;border-color:var(--blue)}.chip-outline{border:1px solid var(--line-strong);background:#fff;color:var(--fg-1)}.chip-outline.active{border-color:var(--blue);background:var(--blue-soft);color:var(--blue)}.label-pill{border:1px solid var(--line-soft);background:#fff;color:var(--fg-1)}.label-couple.active,.label-couple{background:var(--couple-bg);color:var(--couple-fg);border-color:#f9a8d4}.label-family.active,.label-family{background:var(--family-bg);color:var(--family-fg);border-color:#bae6fd}.library-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px}.library-toolbar-right{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.selection-action-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;background:var(--blue-soft);border:1px solid #bfdbfe;padding:6px 10px;border-radius:10px;font-size:12.5px}.photo-grid-scroll{flex:1;min-height:0;overflow:auto}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding-bottom:12px}.is-landscape .photo-grid{grid-template-columns:repeat(5,1fr)}.photo-tile{background:#fff;border:2px solid var(--line-soft);border-radius:10px;overflow:hidden;cursor:pointer}.photo-tile.selected{border-color:var(--blue);box-shadow:0 0 0 2px #1a65b133}.photo-thumb-wrap{position:relative;aspect-ratio:4 / 3;background:#e2e8f0;overflow:hidden}.photo-thumb-wrap img{width:100%;height:100%;object-fit:cover;display:block}.pri-badge,.usage-badge,.sel-count-badge{position:absolute;font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px}.pri-badge{left:5px;top:5px}.badge-couple{background:#ec4899;color:#fff}.badge-family{background:#0284c7;color:#fff}.badge-normal{background:#0f172ab8;color:#fff}.sel-count-badge{right:5px;top:5px;width:20px;height:20px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;padding:0}.usage-badge{left:5px;bottom:5px}.usage-badge.is-used{background:var(--blue);color:#fff}.usage-badge.is-unused{background:#0f172ab8;color:#fff}.photo-tile-foot{display:flex;justify-content:space-between;align-items:center;padding:4px 6px;font-size:11px}.photo-filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.star-btn{border:none;background:transparent;padding:0 3px;min-height:24px;color:#cbd5e1;font-size:14px}.star-btn.on{color:#f59e0b}.portrait-lib-footer{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;padding-top:4px}.design-workspace{flex:1;min-height:0;display:flex;overflow:hidden}.tool-rail{width:64px;flex:none;background:#fff;border-right:1px solid var(--line-soft);padding:8px 6px;display:flex;flex-direction:column;gap:6px}.rail-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 4px;border-radius:10px;border:1px solid var(--line-soft);background:#fff;color:var(--fg-1);font-size:10.5px;font-weight:600}.rail-btn.active{background:var(--blue);color:#fff;border-color:var(--blue)}.rail-bottom{margin-top:auto;background:#fdf9f0;border-color:#e6d5ad;color:#7c5815}.design-center{flex:1;min-width:0;display:flex;flex-direction:column;overflow:auto}.design-subbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;padding:4px 8px;background:#fff;border-bottom:1px solid var(--line-soft);gap:6px;flex:none}.segmented-ctrl{display:inline-flex;background:var(--bg-subtle);border-radius:999px;padding:2px}.seg-btn{border:none;background:transparent;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;min-height:28px;color:var(--fg-2)}.seg-btn.active{background:var(--blue);color:#fff}.sheet-pager{display:flex;align-items:center;gap:6px;font-weight:700;font-size:12.5px}.album-context-bar{display:flex;justify-content:space-between;align-items:center;padding:4px 8px;background:#f8fafc;border-bottom:1px solid var(--line-soft);font-size:11.5px;gap:8px;flex:none}.qa-badge{padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.qa-badge.ok{background:var(--ok-bg);color:var(--ok-fg)}.qa-badge.warn{background:var(--warn-bg);color:var(--warn-fg)}.lock-callout{background:var(--warn-bg);color:var(--warn-fg);padding:6px 10px;font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:8px}.canvas-viewport{position:relative;isolation:isolate;flex:1;min-height:100px;background:var(--bg-canvas);display:flex;align-items:center;justify-content:center;padding:10px;overflow:hidden;touch-action:none}.design-workspace.is-landscape .canvas-viewport,.edit-tpl-workspace.is-landscape .canvas-viewport{padding:8px}.design-workspace.is-landscape .design-subbar,.design-workspace.is-landscape .album-context-bar{padding:3px 8px}.canvas-transform-wrap{width:100%;max-width:780px}.ruler-bar{position:relative;height:18px;background:#fff;border:1px solid var(--line-soft);border-bottom:none;font-size:10px;color:var(--fg-muted)}.ruler-bar span{position:absolute;top:2px;transform:translate(-50%)}.ruler-bar .ruler-unit{right:6px;left:auto;transform:none}.spread-surface{position:relative}.spread-paper{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;background:#fff;box-shadow:var(--shadow-spread);overflow:hidden}.spine-line{position:absolute;left:50%;top:0;bottom:0;width:1px;background:#0f172a29;z-index:6;pointer-events:none}.spine-line.is-guide{border-left:1px dashed var(--blue);background:transparent}.safe-margin-guide{position:absolute;top:5%;right:5%;bottom:5%;left:5%;border:1px dashed #ec4899;pointer-events:none;z-index:7}.guide-badge{position:absolute;left:4px;bottom:4px;font-size:9.5px;background:#0f172ac7;color:#fff;padding:1px 5px;border-radius:4px}.spread-slot{position:absolute;overflow:hidden;background:#e2e8f0;cursor:pointer;z-index:1}.spread-slot.has-alpha-mask{background:transparent;overflow:visible}.spread-slot.selected{outline:2px solid var(--blue)}.spread-slot.crop-active{cursor:grab;outline-color:#f59e0b}.spread-slot.quick-drop-target{outline:3px solid var(--blue);outline-offset:2px}.quick-drag-photo{position:fixed;z-index:900;pointer-events:none;width:76px;height:62px;transform:translate(-50%,-75%);object-fit:cover;border:2px solid white;border-radius:8px;box-shadow:0 3px 12px #17273e45}.spread-slot-media{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.spread-slot img{position:absolute;max-width:none;pointer-events:none}.spread-slot .custom-psd-frame-stroke{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:fill;pointer-events:none;z-index:2}.empty-slot-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--fg-2);font-size:11px;font-weight:600}.sel-handle{position:absolute;width:8px;height:8px;background:#fff;border:2px solid var(--blue);z-index:9}.sel-handle.tl{left:-2px;top:-2px}.sel-handle.tr{right:-2px;top:-2px}.sel-handle.bl{left:-2px;bottom:-2px}.sel-handle.br{right:-2px;bottom:-2px}.slot-chip-top,.slot-chip-corner{position:absolute;font-size:10px;font-weight:700;background:#0f172ac7;color:#fff;padding:2px 6px;border-radius:999px;z-index:9}.slot-chip-top{left:6px;top:6px}.slot-chip-corner{left:4px;bottom:4px;border-radius:4px}.slot-context-menu{position:absolute;right:6px;top:6px;background:#fff;border:1px solid var(--line-strong);border-radius:8px;padding:4px;display:flex;gap:4px;z-index:15;box-shadow:var(--shadow-card)}.slot-context-menu button{min-height:26px;font-size:11px;padding:3px 8px;border-radius:6px;border:1px solid var(--line-soft);background:#fff}.contextual-frame-bar{background:#fff;border-top:1px solid var(--line-soft);padding:6px 10px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px}.ctx-title{font-size:12px;font-weight:700;color:var(--blue)}.ctx-btns{display:flex;gap:5px;flex-wrap:wrap}.crop-drawer{margin:4px 8px;padding:10px}.crop-slider-row{display:flex;flex-direction:column;gap:2px;margin-bottom:6px;font-size:12px;font-weight:600}.crop-slider-row input{width:100%;accent-color:var(--blue)}.unused-tray{background:#fff;border-top:1px solid var(--line-soft);padding:6px 10px}.tray-head{display:flex;justify-content:space-between;font-size:11px;margin-bottom:5px}.tray-hint{color:var(--blue);font-weight:600}.tray-scroll{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}.tray-thumb{flex:none;width:68px;height:46px;padding:0;border-radius:8px;border:2px solid transparent;overflow:hidden;background:#e2e8f0}.tray-thumb.active{border-color:var(--blue)}.tray-thumb img{width:100%;height:100%;object-fit:cover;display:block}.quick-layout-row{display:flex;gap:6px;overflow-x:auto;padding:5px 10px;background:#fff;border-top:1px solid var(--line-soft);flex:none}.quick-layout-row button{flex:none;white-space:nowrap}.filmstrip{display:flex;gap:8px;overflow-x:auto;padding:6px 10px;background:#fff;border-top:1px solid var(--line-soft);flex:none}.film-item{flex:none;display:flex;flex-direction:column;align-items:center;gap:2px;border:2px solid transparent;border-radius:6px;padding:2px;background:transparent}.film-item.active{border-color:var(--blue);background:var(--blue-soft)}.film-mini{position:relative;width:72px;background:#fff;border:1px solid var(--line-strong);overflow:hidden}.film-psd-bg,.film-psd-fg,.film-psd-stroke{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.film-psd-bg{z-index:0}.film-psd-stroke{z-index:2}.film-psd-fg{z-index:3}.film-slot{position:absolute;overflow:hidden;background:#dce3ec;z-index:1}.film-slot.has-alpha-mask{background:transparent}.film-slot-media{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:hidden}.film-slot img{position:absolute;max-width:none}.film-label{font-size:10.5px;font-weight:700;color:var(--fg-2)}.design-inspector,.edit-tpl-panel{width:280px;flex:none;background:#fff;border-left:1px solid var(--line-soft);padding:10px;display:flex;flex-direction:column;gap:8px;overflow:auto}.inspector-tabs{display:flex;gap:6px}.inspector-body,.edit-tpl-sections{display:flex;flex-direction:column;gap:8px}.inspector-box{padding:10px;box-shadow:none}.inspector-swap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.layer-row{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;border-radius:8px;border:1px solid var(--line-soft);background:#fff;font-size:12.5px;text-align:left}.layer-row.active{border-color:var(--blue);background:var(--blue-soft);font-weight:700}.edit-tpl-workspace{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.edit-tpl-workspace.is-landscape{flex-direction:row}.edit-tpl-main{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.edit-tpl-header,.edit-tpl-tools,.coords-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;background:#fff;border-bottom:1px solid var(--line-soft);font-size:12px;flex:none}.coords-strip{justify-content:flex-start;gap:12px;font-family:ui-monospace,SFMono-Regular,monospace;color:var(--fg-2);border-top:1px solid var(--line-soft)}.is-portrait .edit-tpl-panel{width:100%;border-left:none;border-top:1px solid var(--line-soft);max-height:44%}.phase-badge{background:var(--warn-bg);color:var(--warn-fg);padding:1px 6px;border-radius:6px;font-size:10px;margin-left:4px}.asset-tabs-workspace{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.asset-tabs-workspace.is-landscape{flex-direction:row}.asset-preview-pane{display:flex;flex-direction:column;flex:none;height:210px}.is-landscape .asset-preview-pane{width:46%;height:100%;border-right:1px solid var(--line-soft)}.asset-preview-foot{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;background:#fff;border-top:1px solid var(--line-soft);font-size:12px}.asset-browser-pane{flex:1;min-height:0;display:flex;flex-direction:column;padding:6px 8px;gap:6px;overflow:hidden;background:#fff;position:relative}.asset-tab-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;flex:none}.asset-tab-btn{border:1px solid var(--line-soft);background:var(--bg-subtle);border-radius:999px;font-weight:700;font-size:12.5px;color:var(--fg-2);min-height:32px}.asset-tab-btn.active{background:var(--blue);color:#fff;border-color:var(--blue)}.asset-filters-bar{display:flex;gap:6px;align-items:center;flex:none}.count-pills-row{padding-bottom:2px;flex:none}.asset-grid-scroll{flex:1;min-height:0;overflow:auto}.asset-cards-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;padding-bottom:12px}.asset-card{display:flex;flex-direction:column;background:#fff;border:1.5px solid var(--line-soft);border-radius:8px;padding:4px;text-align:left;cursor:pointer}.tabs-toast-chip{flex:none;background:#f0f6fd;color:var(--blue);border:1px solid #c7def7;border-radius:999px;padding:4px 10px;font-size:11.5px;font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:8px}.asset-card.active{border-color:var(--blue);background:var(--blue-soft)}.asset-svg-preview{width:100%;height:auto;aspect-ratio:3 / 1;border-radius:6px;display:block}.asset-card-foot{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-top:5px}.asset-card-foot strong{display:block;font-size:11.5px}.asset-card-foot small{display:block;font-size:10.5px;color:var(--fg-2)}.theme-strip-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.swatch-dot{width:22px;height:22px;min-height:22px;padding:0;border-radius:50%;border:2px solid var(--line-strong)}.swatch-dot.active{outline:2px solid var(--blue)}.look-swatch-preview{height:54px;border-radius:8px;border:1px solid var(--line-soft);display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:700;padding:6px}.row-compact,.row-wrap{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.card-row-between{display:flex;justify-content:space-between;align-items:center;gap:8px}.empty-state{text-align:center;padding:24px 16px;color:var(--fg-2)}.load-more-row{text-align:center;padding:10px}.canvas-viewport.is-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:95;background:#0f172a;padding:env(safe-area-inset-top) 12px env(safe-area-inset-bottom)}.fullscreen-exit-btn{position:fixed;top:max(14px,env(safe-area-inset-top));right:14px;z-index:100;background:#0f172ae0;color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:6px 14px;font-size:12px;font-weight:600}.canvas-stage-row{display:flex;align-items:center;gap:4px;flex:1;min-height:112px}.canvas-stage-row .canvas-viewport{flex:1;min-width:0;align-self:stretch;min-height:0}.canvas-cycle-btn{flex:none;width:28px;height:54px;border-radius:8px;border:1px solid var(--line-soft);background:#ffffffeb;font-size:18px;font-weight:700;color:var(--fg-1);display:flex;align-items:center;justify-content:center}.studio-pro-strip{display:flex;gap:6px;padding:4px 8px;overflow-x:auto;flex:none}.studio-pro-strip>button{flex:none;white-space:nowrap}.asset-real-thumb{width:100%;height:auto;aspect-ratio:3 / 1;object-fit:contain;border-radius:6px;display:block;background:#f8fafc}.asset-target-row{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:6px}.face-box-overlay{position:absolute;border:1.5px solid #22c55e;border-radius:4px;pointer-events:none;box-shadow:0 0 0 1px #00000040}.face-box-overlay.is-risk{border-color:#ef4444;background:#ef444424}.face-st-face_safe{background:#15803d!important;color:#fff!important}.face-st-face_crop_risk,.face-st-multi_face_risk{background:#dc2626!important;color:#fff!important}.face-st-manual_crop{background:#1d4ed8!important;color:#fff!important}.face-st-not_analysed{background:#475569!important;color:#fff!important}.spread-text-document{position:absolute;inset:0 auto auto 0;z-index:6;transform-origin:top left;pointer-events:none;-webkit-text-size-adjust:none;text-size-adjust:none}.spread-font-warning{position:absolute;bottom:4px;left:4px;z-index:10;padding:2px 6px;color:var(--warn-fg);background:var(--warn-bg);font-size:11px;pointer-events:none}.spread-text-block{position:absolute;z-index:6;white-space:pre;overflow-wrap:normal;pointer-events:none}.paint-overlay-svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:5;pointer-events:none}.spread-paper.is-brush-mode{touch-action:none;outline:2px dashed #c9a24b}.custom-psd-paper,.spread-background-photo,.custom-psd-foreground,.spread-slot .custom-psd-frame-stroke{position:absolute;pointer-events:none;object-fit:fill}.custom-psd-paper,.spread-background-photo,.spread-slot .custom-psd-frame-stroke{top:0;right:0;bottom:0;left:0;width:100%;height:100%}.custom-psd-foreground{z-index:3}.custom-psd-canvas-status{position:absolute;top:0;right:0;bottom:0;left:0;z-index:8;display:grid;align-content:center;justify-items:center;padding:8px;color:var(--fg2)}.custom-psd-thumbnail{display:block;width:100%;aspect-ratio:3 / 1;object-fit:contain;background:var(--paper, #f8fafc)}.custom-psd-no-preview{display:grid;place-items:center;color:var(--muted);font-size:11px}.custom-psd-shell{padding:8px;display:flex;flex-direction:column;gap:6px}.custom-psd-head{align-items:flex-start;gap:8px}.custom-psd-quota{margin:1px 0 0;font-size:11px}.custom-psd-bar{display:flex;gap:6px;align-items:center}.custom-psd-search{flex:1;min-width:0;height:30px;padding:4px 8px;font-size:12px}.custom-psd-sort{width:102px;flex:none;height:30px;padding:4px 6px;font-size:12px}.custom-psd-pills{display:flex;gap:4px;align-items:center;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}.custom-psd-pills>*{flex:none;white-space:nowrap}.custom-psd-toggle{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--fg-2, #475569);padding:2px 6px}.custom-psd-status{margin:0;font-size:11px}.custom-psd-thumb-wrap{position:relative}.custom-psd-badge-tl,.custom-psd-badge-tr{position:absolute;top:4px;padding:1px 6px;border-radius:999px;font-size:10px;font-weight:600;background:#0f172ac7;color:#fff}.custom-psd-badge-tl{left:4px}.custom-psd-badge-tr{right:4px}.custom-psd-badge-tr.is-ready{background:#15803d}.custom-psd-meta{min-width:0}.custom-psd-notes-btn{background:none;border:none;padding:0;color:#b45309;font-size:inherit;font-weight:600;cursor:pointer;text-decoration:underline}.custom-psd-notes-box{margin:0 6px 4px;padding:6px 8px;border-radius:6px;background:#fffbeb;border:1px solid #fde68a;color:#92400e;font-size:11px;line-height:1.35}.custom-psd-actions{flex-wrap:wrap;gap:4px;padding:4px 6px 6px}.layer-row-protected{opacity:.82;background:#f8fafc}.modal-lg{max-width:680px;width:95vw;max-height:88vh;display:flex;flex-direction:column;overflow:hidden}.story-cut-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:10px;padding:4px 2px 4px 0}.modal-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:10px;border-top:1px solid var(--line-soft)}.form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.form-grid-2>*{min-width:0}.studio-select,.studio-input{min-width:0;max-width:100%;box-sizing:border-box}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;font-size:12px;margin-top:6px}.check-grid label{display:flex;align-items:center;gap:6px}.progress-bar{height:6px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-top:6px}.progress-bar>div{height:100%;background:var(--blue);transition:width .15s ease}.pill-micro{background:#e2e8f0;color:#1e293b;border-radius:999px;padding:2px 7px;font-size:10.5px;font-weight:600}.moods-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:6px}.mood-card{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1.5px solid var(--line-soft);border-radius:8px;background:#fff;text-align:left}.mood-card.active{border-color:var(--blue);background:var(--blue-soft)}.mood-card strong{display:block;font-size:12px}.mood-card small{display:block;font-size:10.5px;color:var(--fg-2)}.mood-swatches{display:flex;gap:2px}.mood-swatches i{width:12px;height:24px;border-radius:3px;border:1px solid rgba(0,0,0,.15);display:inline-block}.layers-list{display:flex;flex-direction:column;gap:4px}.layer-row-rich{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:4px 6px;border:1px solid var(--line-soft);border-radius:7px;background:#fff}.layer-row-rich.active{border-color:var(--blue);background:var(--blue-soft)}.layer-row-rich.is-hidden{opacity:.55}.layer-select-btn{flex:1;text-align:left;background:transparent;border:none;display:flex;align-items:center;gap:6px;font-size:11.5px}.layer-kind-tag{font-size:9.5px;font-weight:700;color:var(--blue);background:#eff6ff;padding:1px 5px;border-radius:4px}.layer-actions{display:flex;gap:2px}.qa-summary-pills{display:flex;flex-wrap:wrap;gap:6px}.qa-issues-list{display:flex;flex-direction:column;gap:6px}.qa-issue-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;border:1px solid var(--line-soft);background:#fff}.qa-issue-row.sev-err{border-left:3px solid #dc2626}.qa-issue-row.sev-warn{border-left:3px solid #d97706}.warn-strip{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:8px;padding:6px 10px;font-size:11.5px}.frame-edit-outline{position:absolute;z-index:20;outline:1px solid var(--blue);pointer-events:none}.frame-edit-handle{position:absolute;width:var(--frame-knob-width, 28px);height:var(--frame-knob-height, 28px);min-height:0;padding:0;border:0;background:transparent;transform:translate(-50%,-50%);pointer-events:auto;touch-action:none}.frame-edit-handle:after{content:"";position:absolute;left:50%;top:50%;width:min(12px,56%);height:min(12px,56%);transform:translate(-50%,-50%);border:1px solid var(--blue);background:#fff;border-radius:2px}.handle-nw,.handle-se{cursor:nwse-resize}.handle-ne,.handle-sw{cursor:nesw-resize}.handle-n,.handle-s{cursor:ns-resize}.handle-w,.handle-e{cursor:ew-resize}.handle-move{cursor:move}.handle-move:after{border-radius:50%;background:var(--blue)}.frame-snap-guide{position:absolute;z-index:19;pointer-events:none;border:0 dashed var(--blue)}.frame-snap-guide.is-x{top:0;bottom:0;border-left-width:1px}.frame-snap-guide.is-y{left:0;right:0;border-top-width:1px}@media(max-width:600px){.studio-topbar{gap:4px;padding-inline:8px}.topbar-left,.topbar-right{gap:5px}.studio-topbar .brand-wordmark{display:none}.studio-topbar .meta-pill,.studio-topbar .status-pill{padding-inline:6px}.design-subbar{gap:4px}.album-context-bar{padding-block:2px}}.review-render-host{position:fixed;top:0;left:-2000px;width:780px;height:900px;pointer-events:none}.review-render-host .canvas-viewport,.review-render-host .canvas-transform-wrap{width:780px;max-width:none}.spread-paper.is-review-paper{box-shadow:none}.export-album-dialog{color:var(--fg2);width:min(560px,calc(100vw - 24px));max-height:min(90dvh,760px);margin:auto;overflow:hidden}.export-album-dialog[open]{display:flex;flex-direction:column}.export-album-dialog::backdrop{background:#1318258c}.export-album-body{overflow:auto;display:grid;gap:12px;padding:0 4px 10px}.export-album-body fieldset{min-width:0;border:0;padding:0;margin:0}.export-album-body legend{font-weight:650;margin-bottom:5px}.export-options,.export-choices,.export-sheet-checks{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px}.export-options label{display:grid;gap:3px;font-size:12px}.export-options select,.export-options input:not([type=checkbox]){width:100%;min-height:30px;accent-color:var(--blue);border:1px solid var(--line-soft);border-radius:5px;background:#fff;color:var(--fg2)}.export-options .export-checkbox,.export-sheet-checks label{display:inline-flex;align-items:center;gap:4px}.export-sheet-checks{margin-top:8px;max-height:132px;overflow:auto}.export-checkbox+.export-options{margin-top:8px}.export-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:0}.export-summary dt{font-size:11px}.export-summary dd{font-weight:600;margin:0;overflow-wrap:anywhere}.export-progress{display:grid;gap:4px}.export-progress progress{width:100%;accent-color:var(--blue)}.export-error{margin:0;color:var(--warn-fg)}.export-results{display:grid;gap:6px}.export-results p,.export-results ul{margin:0}.export-results ul{list-style:none;padding:0;max-height:172px;overflow:auto}.export-results li{display:flex;align-items:center;gap:5px;padding:4px 0}.export-results li span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pick-review-panel{border-top:1px solid var(--line-soft);padding-top:9px;display:grid;gap:8px}.pick-review-panel h3{margin:0;font-size:14px}.pick-review-panel p{margin:0}.pick-review-panel>button{justify-self:start}.pick-confirmation{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.pick-confirmation p{flex-basis:100%}.pick-round{display:grid;gap:3px}.pick-note{border:1px solid var(--line-soft);border-radius:6px;padding:8px;display:grid;gap:6px}.pick-note button{justify-self:start}.hybrid-shell{background:var(--bg-surface);padding-inline:env(safe-area-inset-left) env(safe-area-inset-right)}.hybrid-header{display:flex;align-items:center;gap:2px;flex:none;min-height:48px;padding:1px 5px;background:var(--bg-surface);border-bottom:1px solid var(--line-soft)}.hybrid-project{flex:1;min-width:0;padding-inline:4px 2px;display:grid;gap:1px}.hybrid-project>strong,.hybrid-project-meta,.hybrid-sync>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hybrid-project>strong{font-size:13px}.hybrid-project-meta{display:flex;align-items:center;gap:4px;color:var(--fg-2);font-size:10px}.hybrid-sync{display:inline-flex;align-items:center;min-width:0;gap:3px;color:var(--fg-2);background:none}.hybrid-sync i{flex:none;width:6px;height:6px;border-radius:50%;background:var(--fg-2)}.hybrid-sync.pill-ok i{background:var(--ok-fg)}.hybrid-sync.pill-warn i{background:var(--warn-fg)}.hybrid-sync.pill-err i{background:var(--err-fg)}.hybrid-sync.pill-info i{background:var(--blue)}.studio-icon{width:19px;height:19px;flex:none}.studio-icon-button,.studio-tool{display:inline-flex;justify-content:center;align-items:center;min-width:44px;min-height:44px;border:0;border-radius:9px;background:transparent;color:var(--fg-1);gap:4px;padding:4px 9px}.studio-icon-button:hover:not(:disabled),.studio-tool:hover:not(:disabled),.studio-icon-button[aria-pressed=true],.studio-tool[aria-pressed=true]{background:var(--blue-soft);color:var(--blue)}.studio-icon-button:disabled,.studio-tool:disabled{opacity:.42;cursor:default}.hybrid-shell :focus-visible,.hybrid-dialog :focus-visible{outline:2px solid var(--blue);outline-offset:-2px}.studio-icon-button.is-primary,.hybrid-project-menu button.is-primary{background:var(--blue);color:#fff}.studio-icon-button.is-primary:hover:not(:disabled),.hybrid-project-menu button.is-primary:hover:not(:disabled){background:var(--blue-hover);color:#fff}.hybrid-header>.is-primary{position:relative;isolation:isolate;min-width:44px;min-height:44px;background:none}.hybrid-header>.is-primary:before{content:"";position:absolute;top:5px;right:2px;bottom:5px;left:2px;z-index:-1;border-radius:9px;background:var(--blue)}.hybrid-header>.is-primary:hover:not(:disabled){background:transparent}.hybrid-header>.is-primary:hover:before{background:var(--blue-hover)}.hybrid-layout,.hybrid-artboard{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0}.hybrid-layout{background:var(--bg-canvas)}.hybrid-layout.is-landscape{flex-direction:row}.hybrid-artboard>.canvas-viewport{min-height:0;padding:4px}.hybrid-artboard>.canvas-viewport.is-fullscreen{padding:6px}.hybrid-sheet-nav{flex:none;display:flex;align-items:center;gap:0;padding-inline:3px;font-size:11px;font-weight:650;background:#f6f8fa;border-bottom:1px solid var(--line-soft)}.hybrid-sheet-nav .studio-icon{width:15px;height:15px}.hybrid-sheet-nav .studio-icon-button{padding-inline:5px}.hybrid-sheet-nav .studio-icon-button[data-testid=open-sheet-overview]{min-width:56px}.hybrid-spacer{flex:1}.hybrid-segmented{display:inline-flex;background:#e3e8ed;border-radius:8px;overflow:hidden;align-items:stretch}.hybrid-segmented button{border:0;padding:3px 9px;font-size:10px;font-weight:650;min-height:38px;background:transparent;color:var(--fg-2)}.hybrid-segmented button[aria-pressed=true]{background:linear-gradient(#fff,#fff) center / calc(100% - 2px) 27px no-repeat;border-radius:7px;color:var(--blue)}.hybrid-lock,.hybrid-swap-hint{display:flex;flex:none;align-items:center;justify-content:space-between;gap:5px 10px;padding:2px 8px;font-size:11px;background:var(--warn-bg);color:var(--warn-fg)}.hybrid-swap-hint{background:var(--blue-soft);color:var(--fg-2)}.hybrid-toast{flex:none;font-size:11px;padding:4px 8px}.hybrid-caption{display:flex;flex:none;align-items:center;gap:1px;padding-inline:8px 4px;border-top:1px solid var(--line-soft);background:#f6f8fa;color:var(--fg-2);font-size:11px}.hybrid-caption>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hybrid-caption>button{border:none;background:none;font-size:11px;font-weight:650;color:inherit;padding-inline:5px}.hybrid-caption .studio-icon{width:14px;height:14px}.hybrid-toolbar{flex:none;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(44px,1fr);overflow-x:auto;scrollbar-width:none;background:#fff;border-top:1px solid var(--line-soft);padding:3px 4px calc(3px + env(safe-area-inset-bottom))}.studio-tool{flex-direction:column;gap:4px;min-height:53px;min-width:0;font-size:11px;line-height:1.12;white-space:normal;padding:6px 2px}.studio-tool .studio-icon{width:20px;height:20px;color:#30485c}.hybrid-toolbar.is-contextual .studio-tool:first-child{background:var(--blue-soft);color:var(--blue)}.hybrid-toolbar.is-contextual .studio-tool:first-child .studio-icon{color:var(--blue)}.hybrid-panel{display:flex;flex-direction:column;flex:none;min-width:0;min-height:0;max-height:72%;height:43%;border-radius:14px 14px 0 0;background:var(--bg-surface);box-shadow:0 -4px 16px #24405b15;overflow:hidden;padding-bottom:env(safe-area-inset-bottom)}.hybrid-panel.is-assets{height:57%}.hybrid-panel.is-inspector{height:46%}.hybrid-panel.is-expanded{height:72%}.hybrid-layout.is-landscape>.hybrid-panel{width:36%;height:auto;max-height:none;border-radius:0;border-left:1px solid var(--line-soft);box-shadow:none}.hybrid-layout.is-landscape>.hybrid-panel.is-assets{width:42%}.hybrid-layout.is-landscape>.hybrid-panel.is-expanded{width:52%}.hybrid-panel-head{position:relative;flex:none;display:flex;align-items:center;gap:4px;min-height:45px;padding-inline:12px 5px;border-bottom:1px solid var(--line-soft)}.hybrid-panel-head h2{flex:1;margin:0;color:var(--fg-1);font-size:14px}.hybrid-panel-grab{position:absolute;cursor:grab;touch-action:none;top:0;left:50%;transform:translate(-50%);width:66px;height:22px}.hybrid-panel-grab:after{content:"";position:absolute;top:4px;left:15px;right:15px;height:3px;border-radius:4px;background:#c3ccd5;pointer-events:none}.hybrid-expand{min-height:40px;border:0;padding-inline:8px;color:var(--fg-2);background:linear-gradient(#eaf0f4,#eaf0f4) center / 100% 31px no-repeat;border-radius:7px;font-size:10px;font-weight:650}.hybrid-panel-head .studio-icon-button{color:var(--blue)}.hybrid-panel-head .studio-icon-button .studio-icon{width:16px;height:16px}.hybrid-panel-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.hybrid-panel-pad{padding:12px}.hybrid-panel-pad p{margin-block:0 10px}.hybrid-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 3px;padding:10px 8px}.hybrid-tool-grid>.studio-tool{min-height:59px}.hybrid-crop{display:grid;gap:8px;font-size:11px}.hybrid-crop>label{display:grid;gap:3px;color:var(--fg-2)}.hybrid-crop input[type=range]{width:100%;min-height:34px;margin:0;accent-color:var(--blue)}.hybrid-crop .row-compact{flex-wrap:wrap}.hybrid-filmstrip{display:flex;padding:4px;overflow-x:auto;gap:5px;background:var(--bg-surface)}.hybrid-filmstrip>button{flex:none;min-width:57px}.hybrid-filmstrip>button[aria-current=true]{border-color:var(--blue);color:var(--blue);background:var(--blue-soft)}.hybrid-edit-done{flex:none;border:0;background:var(--blue-soft);color:var(--blue);margin-bottom:env(safe-area-inset-bottom)}.hybrid-shell.is-immersive{padding:0}.hybrid-dialog{background:#fff;color:var(--fg-1);width:min(100%,640px);max-width:100%;max-height:min(88dvh,810px);border:1px solid var(--line-soft);border-radius:15px;padding:0;overflow:hidden;box-shadow:0 8px 35px #14223130}.hybrid-dialog[open]{display:flex;flex-direction:column}.hybrid-dialog::backdrop{background:#18283a60}.hybrid-dialog-head,.hybrid-dialog-footer{display:flex;align-items:center;gap:8px;flex:none;padding:3px 12px}.hybrid-dialog-head{border-bottom:1px solid var(--line-soft)}.hybrid-dialog-head h2{margin:0;flex:1;font-size:14px}.hybrid-dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px}.hybrid-dialog-footer{border-top:1px solid var(--line-soft);justify-content:flex-end;padding-block:6px}.hybrid-dialog-footer button,.hybrid-project-menu .hybrid-dialog-body>button{background:#fff;color:var(--fg-1);border:1px solid var(--line-soft);border-radius:7px;font-size:11px;font-weight:650;min-height:36px;padding-inline:8px}.hybrid-project-menu .hybrid-dialog-body{display:grid;gap:8px}.hybrid-project-menu button:disabled{opacity:.45}.hybrid-menu-summary{display:grid;gap:3px;padding:8px;border:1px solid var(--line-soft);border-radius:8px;font-size:11px}.hybrid-menu-summary strong{font-size:12px}@media(orientation:portrait){.hybrid-dialog{margin:auto auto 0;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom)}}@media(max-width:345px){.hybrid-header{gap:0;padding-inline:2px}.hybrid-header .studio-icon-button{padding-inline:4px}.hybrid-project{padding-inline:2px}.hybrid-caption>span{flex-basis:50px}}.hybrid-panel.is-assets{height:58%}.hybrid-panel.is-expanded{height:78%;max-height:78%}.hybrid-panel.is-assets>.hybrid-panel-content{display:flex;flex-direction:column;overflow:hidden}.hybrid-library{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.hybrid-library-controls{flex:none}.hybrid-catalog-row{display:flex;gap:4px;align-items:center;padding:3px 6px;border-bottom:1px solid var(--line-soft);font-size:11px}.hybrid-catalog-row>button,.hybrid-count-chip{background:#fff;color:var(--fg-1);border:1px solid var(--line-soft);border-radius:7px;padding:3px 7px;min-height:33px;font-size:10.5px;font-weight:650;white-space:nowrap}.hybrid-count-chip{display:inline-flex;align-items:center;flex:none}.hybrid-catalog-row>button[aria-pressed=true],.hybrid-catalog-row>button[aria-selected=true],.hybrid-catalog-row>button.is-primary,.hybrid-count-chip{background:var(--blue);color:#fff;border-color:var(--blue)}.hybrid-catalog-row>button:disabled{opacity:.5}.hybrid-catalog-row>button.label-couple{color:var(--couple-fg)}.hybrid-catalog-row>button.label-family{color:var(--family-fg)}.hybrid-search-row>input{flex:1;min-width:0}.hybrid-catalog-row>select{min-height:33px;padding-block:4px;font-size:11px}.hybrid-library .photo-grid-scroll{min-height:46px;overscroll-behavior:contain;padding:6px 6px 0}.hybrid-library .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.hybrid-library .photo-tile{position:relative;border-radius:7px;min-width:0;padding:3px}.hybrid-library .photo-tile.selected{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue) inset}.photo-select-target{display:block;width:100%;min-width:0;text-align:left;color:var(--fg-1);border:0;background:none;padding:0}.photo-select-target .photo-thumb-wrap{display:block;aspect-ratio:1.15}.photo-select-target .photo-filename{display:block;padding:4px 25px 4px 2px;font-size:10px;font-weight:650}.hybrid-library .star-btn,.hybrid-template-card>.star-btn{position:absolute;inset:auto 3px 2px auto;padding:1px 5px;min-width:28px;min-height:28px;background:var(--bg-surface);border-radius:6px}.hybrid-library .pri-badge,.hybrid-library .usage-badge{font-size:8px}.hybrid-library-actions{flex:none;background:#fff;border-top:1px solid var(--line-soft)}.hybrid-library-actions .hybrid-catalog-row{border-bottom:0;padding-block:2px}.hybrid-library-actions .hybrid-catalog-row:first-child{justify-content:space-between}.hybrid-library-actions strong{color:var(--blue)}.hybrid-library-actions button.is-primary{flex:1}.hybrid-library-actions .studio-icon{width:12px;height:12px;vertical-align:middle}.hybrid-library>.banner-info{flex:none;display:flex;align-items:center;gap:6px;font-size:11px}.hybrid-panel .asset-browser-pane{gap:5px;padding:4px 7px 0}.hybrid-panel .asset-tab-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;border-radius:8px;background:#eaf0f4;padding:2px}.hybrid-panel .asset-tab-btn{background:transparent;border:0;min-height:33px;border-radius:7px;font-size:11px;padding-inline:2px}.hybrid-panel .asset-tab-btn.active{background:var(--blue);color:#fff}.hybrid-panel .asset-target-row{margin:0;gap:4px;padding:0}.hybrid-panel .asset-target-row .hybrid-segmented button{min-height:32px}.hybrid-panel .asset-filters-bar{padding-block:0;gap:4px}.hybrid-panel .asset-filters-bar input{flex:2;min-width:70px}.hybrid-panel .asset-filters-bar select{flex:1 1 auto;min-width:50px}.hybrid-panel .asset-filters-bar :is(input,select){padding-block:4px;min-height:33px;font-size:11px;border-radius:7px}.hybrid-count-row{align-items:center;padding-block:0;gap:4px}.hybrid-count-row span{font-size:10px;font-weight:650;padding-inline:3px}.hybrid-panel .count-pills-row button{min-height:33px;font-size:10px;border-radius:7px;padding-inline:7px}.hybrid-panel .asset-grid-scroll{min-height:55px;overscroll-behavior:contain}.hybrid-panel .asset-cards-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.hybrid-template-card{position:relative;min-width:0;border-radius:7px}.hybrid-template-target{display:block;width:100%;padding:0;text-align:left;background:transparent;color:var(--fg-1);border:0}.hybrid-template-meta{display:grid;gap:1px;padding:4px 25px 2px 1px;line-height:1.2;font-size:11px}.hybrid-template-meta small{color:var(--fg-2);font-size:9px}.hybrid-template-meta strong,.custom-psd-card .asset-card-foot strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.asset-card-details{color:var(--fg-2);font-size:11px}.asset-card-details summary{cursor:pointer;min-height:32px;padding:7px 4px}.asset-card-details p{margin:0 4px 6px;overflow-wrap:anywhere}.asset-preview-button{width:100%;display:block;padding:0;border:0;background:none}.custom-psd-card.is-current{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}.custom-psd-badge-tl,.custom-psd-badge-tr{pointer-events:none}.custom-psd-bar{flex-wrap:wrap}.custom-psd-search{flex-basis:104px}.custom-psd-sort{flex:1 0 86px;max-width:132px}.custom-psd-card .asset-card-foot{gap:1px}.custom-psd-card .asset-card-foot .custom-psd-meta{flex:1}.psd-download-select{min-height:36px;min-width:32px;display:grid;place-items:center}.psd-downloads{border:1px solid var(--line-soft);padding:2px 7px 6px;border-radius:7px}.psd-downloads summary{cursor:pointer;padding-block:8px;font-weight:650;font-size:12px}.psd-downloads summary small{float:right}.psd-downloads p{margin:2px 0 6px}.psd-downloads .btn-xs,.asset-card-details .btn-xs{min-height:36px}.psd-download-plan{margin-block:6px;display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:11px}.psd-download-errors{padding-inline-start:18px;font-size:11px}.hybrid-precision-toolbar{grid-auto-columns:minmax(48px,1fr)}.hybrid-precision-toolbar>:first-child{position:sticky;left:0;z-index:1;color:var(--blue);background:var(--blue-soft)}.hybrid-precision .hybrid-caption>button .studio-icon{vertical-align:middle}.hybrid-precision .hybrid-caption>label{white-space:nowrap}.hybrid-precision .hybrid-caption input[type=color]{width:34px;height:31px;vertical-align:middle}.hybrid-precision .edit-tpl-sections{display:grid;padding:8px 10px;gap:7px}.hybrid-precision .inspector-box{margin:0;box-shadow:none}.hybrid-precision .check-grid{margin-block:7px}.hybrid-precision .form-grid-2>label{display:grid;gap:3px;font-size:11px}.hybrid-panel .layers-panel{padding:8px}.hybrid-panel .layer-actions .studio-icon-button{min-width:35px;min-height:36px;padding:3px}.hybrid-panel .layer-actions .studio-icon{width:15px;height:15px;vertical-align:middle}.hybrid-panel .pill-micro .studio-icon{width:12px;height:12px}.hybrid-panel .layer-row-rich{flex-wrap:wrap;gap:4px}.hybrid-panel .layer-select-btn{min-width:100px}.hybrid-panel .layer-row-protected .layer-select-btn{min-height:36px}.hybrid-overview{width:min(100%,760px);max-height:86dvh}.hybrid-overview .hybrid-dialog-body{display:flex;flex-direction:column;overflow:hidden;padding:0}.hybrid-overview-summary{flex:none;display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:12px}.hybrid-overview-summary strong{flex:1}.hybrid-overview-confirm{flex:none;display:flex;align-items:center;gap:6px;padding:5px 12px;font-size:11px;background:var(--err-bg)}.hybrid-overview-confirm>span{flex:1}.hybrid-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:6px;padding:3px 12px 9px;min-height:0;overflow:auto;overscroll-behavior:contain}.hybrid-overview-card{min-width:0;display:grid;gap:3px;padding:4px;border:1px solid var(--line-soft);border-radius:8px}.hybrid-overview-card[data-current=true]{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue) inset}.hybrid-overview-open{width:100%;border:0;background:var(--bg-subtle);padding:0;border-radius:6px;overflow:hidden}.hybrid-sheet-preview{position:relative;overflow:hidden;width:100%;background:#fff}.hybrid-sheet-preview .thumbnail-canvas{position:absolute;top:0;right:0;bottom:0;left:0;min-height:0;padding:0;pointer-events:none;background:none}.hybrid-sheet-preview .spread-paper{box-shadow:none}.hybrid-sheet-select{display:inline-flex;align-items:center;gap:4px;font-size:11px;padding-inline:2px;min-height:28px}.hybrid-sheet-select input{width:17px;height:17px;accent-color:var(--blue)}.hybrid-sheet-select>span{margin-left:auto;color:var(--warn-fg);font-size:9px}.hybrid-overview-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.hybrid-overview-actions .studio-icon-button{border:1px solid var(--line-soft);min-width:0;min-height:34px;padding:2px}.hybrid-overview-actions .studio-icon{width:14px;height:14px}.hybrid-overview-actions .is-danger{color:var(--err-fg)}.hybrid-overview .hybrid-dialog-footer{justify-content:flex-start;flex-wrap:wrap}.hybrid-overview .hybrid-dialog-footer .is-primary{background:var(--blue);border-color:var(--blue);color:#fff}.hybrid-dialog-footer button:disabled,.hybrid-overview-confirm button:disabled{opacity:.45}.hybrid-filmstrip .film-item{width:96px;padding:4px;align-items:stretch;font-size:10px}.hybrid-filmstrip .hybrid-filmstrip-more{color:var(--fg-2);border:1px solid var(--line-soft);border-radius:7px;background:#fff;font-size:10px}.hybrid-filmstrip-more .studio-icon{width:12px;height:12px;vertical-align:middle}.is-landscape .hybrid-filmstrip .film-item{width:75px}@media(orientation:landscape){.hybrid-overview{max-height:min(93dvh,700px)}.hybrid-overview-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.export-album-dialog{color:var(--fg-1);border-radius:15px;padding:0;border:1px solid var(--line-soft)}.export-album-dialog::backdrop{background:#18283a60}.export-album-dialog .modal-head{flex:none;margin:0;padding:3px 11px;border-bottom:1px solid var(--line-soft)}.export-album-dialog .modal-head h2{font-size:14px}.export-album-dialog .modal-head .studio-icon-button .studio-icon{width:15px;height:15px}.export-album-dialog .export-album-body{padding:12px;gap:10px}.export-quality-notice{background:var(--warn-bg);color:var(--warn-fg);margin:0;border-radius:5px;font-size:11px;padding:6px 8px;font-weight:650}.export-album-dialog legend,.export-album-dialog .export-checkbox{font-size:12px}.export-album-dialog .export-options{align-items:flex-end}.export-album-dialog .export-options label{flex:1;min-width:fit-content;font-size:11px}.export-album-dialog .export-options select{min-height:36px;padding-inline:4px;color:var(--fg-1)}.export-album-dialog .export-summary{border:1px solid var(--line-soft);border-radius:8px;padding:8px;font-size:12px}.export-album-dialog .export-summary dt{color:var(--fg-2);margin-bottom:2px}.export-album-dialog .modal-footer{margin:0;flex:none;padding:7px 12px;border-top:1px solid var(--line-soft)}.export-album-dialog :is(.btn-xs,.btn-sm){border-radius:7px;min-height:35px}.hybrid-shell .modal-sheet :is(.btn-primary,.btn-secondary){border-radius:8px}.hybrid-shell .modal-sheet .modal-head h2{color:var(--fg-1)}@media(orientation:portrait){.export-album-dialog{width:min(100%,600px);max-width:100%;margin:auto auto 0;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom)}}.session-dialog{width:min(100% - 24px,560px)}.session-dialog .hybrid-dialog-body{display:grid;gap:12px}.session-card,.session-reservation{display:grid;gap:6px;min-width:0}.session-card{border:1px solid #dbe2ed;border-radius:12px;padding:12px;background:#f8fafc;font-size:.86rem}.session-reservation{margin-top:4px;padding-top:10px;border-top:1px solid #dbe2ed}.session-title,.session-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.session-title .studio-icon{width:18px;height:18px}.session-actions button,.session-dialog form button{min-height:44px}.session-reference,.session-feedback{overflow-wrap:anywhere;white-space:pre-line}.device-name-field{display:grid;gap:6px;margin:12px 0}.device-name-field input{font:inherit;min-height:44px;padding:8px 10px}.quick-switch{display:grid;gap:10px;padding:12px}.hybrid-layout.is-portrait>.hybrid-panel.is-quick:not(.is-expanded){height:auto;max-height:min(36%,245px)}.quick-switch>p{margin:0}.quick-switch-context,.quick-switch-step{display:flex;align-items:center;gap:8px}.quick-switch-context{justify-content:space-between}.quick-switch-step .studio-icon-button{min-width:44px;min-height:44px}.quick-swipe{flex:1;display:grid;place-items:center;min-height:44px;touch-action:none;-webkit-user-select:none;user-select:none;border:1px solid var(--line-soft);border-radius:8px;color:var(--fg-2)}.hybrid-toolbar.is-contextual{justify-content:flex-start;overflow-x:auto}.hybrid-toolbar.is-contextual .studio-tool{flex:0 0 auto;min-width:46px}.studio-recovery{margin:16px;padding:16px;overflow:auto}.studio-recovery h2{font-size:17px;margin-block:0 8px}.studio-recovery p{margin-block:8px}.studio-recovery .row-compact{flex-wrap:wrap;align-items:flex-start}.studio-recovery button{min-height:44px}.studio-recovery textarea{display:block;width:100%;min-height:120px}.catalogue-card-preview{position:relative}.catalogue-thumbnail{position:absolute;inset:0 0 auto;overflow:hidden;background:#e8edf2;border-radius:6px;pointer-events:none}.catalogue-thumbnail>img{display:block;width:100%;height:100%;object-fit:contain}.catalogue-thumbnail-message{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:var(--fg-2);font-size:10px}.catalogue-thumbnail[data-preview-state=error] .catalogue-thumbnail-message{inset-block-end:25px}.catalogue-thumbnail-retry{position:absolute;z-index:2;inset:auto 0 0;width:100%;min-height:25px;border:0;background:var(--bg-surface);color:var(--blue);font-size:10px;pointer-events:auto}.catalogue-thumbnail-spacer{display:block;width:100%}.catalogue-look-note{margin:0 0 6px}.custom-psd-thumb-wrap .asset-preview-button{position:relative}.custom-psd-thumb-wrap .catalogue-thumbnail{z-index:1}.custom-psd-thumb-wrap>[class*=custom-psd-badge]{z-index:2;pointer-events:none}.hybrid-filmstrip{flex:none;flex-direction:column;gap:4px;overflow:hidden}.hybrid-filmstrip-controls{display:flex;align-items:center;justify-content:space-between;gap:4px}.hybrid-filmstrip-controls .hybrid-catalog-row{flex-wrap:nowrap;min-width:0}.hybrid-filmstrip-controls .hybrid-catalog-row>button{white-space:nowrap}.hybrid-filmstrip-rail{display:flex;align-items:stretch;flex:none;min-width:0;gap:5px;position:relative;overflow-x:auto;overscroll-behavior-inline:contain}.hybrid-filmstrip-rail>button{flex:none;min-height:44px}.hybrid-filmstrip-rail>button[aria-current=true]{border-color:var(--blue);color:var(--blue);background:var(--blue-soft)}.hybrid-filmstrip.is-expanded .film-item:not(.film-group-item){width:143px}.hybrid-filmstrip .film-group-item{width:max-content;min-width:72px}.film-photo-group{display:flex;gap:3px;justify-content:center}.film-photo{width:32px;height:32px;overflow:hidden;border-radius:4px;background:var(--bg-subtle)}.film-photo[data-selected=true]{outline:2px solid var(--blue)}.film-photo img{display:block;width:100%;height:100%;object-fit:cover}.is-expanded .film-photo{width:44px;height:44px}.hybrid-filmstrip-actions{display:flex;gap:4px}.hybrid-filmstrip-actions>button{min-width:32px;min-height:29px;display:grid;place-items:center}.library-photo-groups{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0;align-items:center}.library-photo-groups .studio-select{flex:1 1 120px;max-width:100%}.catalogue-inline-preview{height:100%}.offline-tab-download{flex:none;align-self:flex-end}.offline-library-option{justify-content:space-between;margin-block:4px}.hybrid-sheet-preview-status{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:var(--bg-subtle);color:var(--fg-2);font-size:.625rem}
