@import "https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;600;700&display=swap";
:root{--ink:#1a1a1a;--muted:#6f6f6f;--line:#d7d7d7;--paper:#f5f5f5;--gold:#1a1a1a;--warn:#797979}button,input,select{border-radius:0!important}button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:2px;outline:2px solid #fff;box-shadow:0 0 0 4px #1a1a1a}.btn,.outline-btn{letter-spacing:-.01em;font-weight:700}.btn-dark{background:#1a1a1a}.btn-dark:hover{background:#353535}.eyebrow{color:#777!important}.app-header,.editor-header{background:#1a1a1a!important;border-color:#333!important}.app-shell,.setup-dark,.photos-dark,.editor-shell{background:#f5f5f5!important}.editor-shell{color:#1a1a1a}.editor-header{color:#fff}.editor-header .outline-btn{color:#fff;background:#2e2e2e;border-color:#444}.editor-header .stepper{flex:none;margin:0 4px}.editor-header .stepper .step b{display:none}.editor-header .stepper .step:after{width:14px;margin:0 4px}.editor-header .stepper .step>span{margin-right:0}.spread-strip{background:#f9f9f9!important;border-color:#d7d7d7!important}.spread-strip>button{color:#585858;background:#ececec;border:1px solid #0000}.spread-strip>button.active{box-shadow:inset 0 -3px #1a1a1a;background:#fff!important;border-color:#1a1a1a!important}.editor-main{background:#f5f5f5!important}.editor-tools,.template-panel{color:#fff!important;background:#1a1a1a!important;border-color:#333!important}.editor-tools button{color:#a5a5a5!important}.editor-tools button.active{box-shadow:inset 3px 0 #fff;color:#fff!important;background:#353535!important}.editor-subbar{box-shadow:0 8px 22px #0000004d;color:#ededeb!important;background:#171717!important;border-color:#303030!important}.template-ribbon>button{color:#ddd!important;background:#272727!important;border:1px solid #0000!important;border-radius:6px!important}.template-ribbon>button.active{box-shadow:none!important;background:#fff!important;border-color:#1a1a1a!important}.template-mini{background:#e4e4e4!important}.template-mini i{background:#737373!important}.template-mini.template-mini-bg-solid{background:var(--mini-bg)!important}.template-mini.template-mini-bg-split{background:linear-gradient(to right, var(--mini-bg-left) 50%, var(--mini-bg-right) 50%)!important}.canvas-stage{overflow:auto;background:#e7e7e7!important}.canvas-toolbar>div,.canvas-toolbar>button,.frame-controls{box-shadow:0 3px 12px #0000003d;color:#e8e8e8!important;background:#3a3a3a!important;border-color:#4a4a4a!important}.photo-dock{color:#fff!important;background:#1a1a1a!important;border-color:#333!important}.dock-head{border-color:#333!important}.dock-head button{color:#b7b7b7}.dock-head button.active{color:#fff;background:#353535!important}.dock-photos button{background:#353535!important}.dock-photos button.selected{border-color:#fff!important}.dock-photos button.used{opacity:.44}.dock-photos button>i{border-radius:10px;align-items:center;gap:2px;width:auto;min-width:20px;padding:0 5px;font-size:10px;font-weight:600;display:flex}.spread-canvas .frame.selected{box-shadow:none!important;outline:none!important}.spread-canvas .frame{cursor:move}.spread-canvas .frame.drag-over{outline-offset:-3px;outline:3px dashed #1a1a1ad9!important}.spread-canvas .frame.multi-selected{box-shadow:none!important;outline:none!important}.geometry-marquee{z-index:13;pointer-events:none;background:#d9a56c29;border:1px solid #d9a56c;position:absolute}.canvas-side-drop{pointer-events:none;z-index:5;text-align:center;justify-content:center;align-items:center;width:14%;display:flex;position:absolute;top:0;bottom:0}.canvas-side-drop-before{left:0}.canvas-side-drop-after{right:0}.canvas-stage-dnd-active .canvas-side-drop{pointer-events:auto}.canvas-side-drop.active{background:#d9a56c1a;border:2px dashed #d9a56c}.canvas-side-drop span{color:#d9a56c;pointer-events:none;flex-direction:column;align-items:center;gap:6px;padding:0 8px;font-size:11px;font-weight:600;display:flex}.canvas-drop-hint{z-index:14;pointer-events:none;color:#d9a56c;background:#d9a56c1a;border:2px dashed #d9a56c;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-size:12px;font-weight:600;display:flex;position:absolute;inset:3%}.project-title-input{font:inherit;color:inherit;background:0 0;border:1px solid #0000;border-radius:4px;width:100%;margin:-2px -5px;padding:2px 5px;font-weight:700}.project-title-input:hover{border-color:#d7d7d7}.project-title-input:focus{background:#fff;border-color:#9b9b9b;outline:none}.spread-strip>button.strip-focused{outline-offset:-2px;outline:2px solid #d9a56c}.spread-strip>button.merge-drop-target{outline-offset:-2px;background:#d9a56c1a;outline:2px dashed #d9a56c;position:relative}.spread-strip>button.merge-drop-target:after{content:"Объединить";color:#1a1a1a;text-align:center;background:#d9a56c;border-radius:3px;padding:2px 4px;font-size:9px;font-weight:700;position:absolute;inset:auto 4px 4px}.spread-strip>button.strip-drag-source{opacity:.35}.spread-strip>button.photo-drop-target{outline-offset:-2px;background:#d9a56c1a;outline:2px solid #d9a56c;position:relative}.spread-strip>button.photo-drop-target:after{content:"Добавить в макет";color:#1a1a1a;text-align:center;background:#d9a56c;border-radius:3px;padding:2px 4px;font-size:9px;font-weight:700;position:absolute;inset:auto 4px 4px}.spread-strip>.strip-insert-gap{background:#d9a56c1a;border:2px dashed #d9a56c;border-radius:5px;flex:none;align-self:stretch;width:96px;animation:.16s ease-out strip-gap-open}@keyframes strip-gap-open{0%{opacity:0;width:0}}@media (prefers-reduced-motion:reduce){.spread-strip>.strip-insert-gap{animation:none}}.spread-canvas .trim{background:#1a1a1a12!important}.spread-canvas .safe-guide{opacity:.12!important}.spread-canvas .fold-guide{background:#1a1a1a21!important}.spread-canvas .fold-guide span{opacity:.45}.geometry-editor{z-index:90;color:#fff;background:#141414;border:none;grid-template-rows:64px auto minmax(0,1fr);width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:0;display:grid;position:fixed;inset:0}.geometry-editor-head{background:#1a1a1a;border-bottom:1px solid #373737;justify-content:space-between;align-items:center;min-width:0;padding:0 22px;display:flex}.geometry-editor-head>div:first-child{flex-direction:column;gap:3px;display:flex}.geometry-editor-head small{color:#a5a5a5;text-transform:uppercase;letter-spacing:.09em;font-size:10px}.geometry-editor-head strong{font-size:14px}.geometry-editor-actions{align-items:center;gap:7px;display:flex}.geometry-editor-actions button{color:#fff;cursor:pointer;background:0 0;border:1px solid #474747;min-height:36px;padding:0 12px}.geometry-editor-actions .geometry-accept{color:#e8e8e8;background:#3a3a3a;border-color:#4a4a4a;font-weight:700}.geometry-editor-ribbon{background:#1a1a1a;border-bottom:1px solid #373737;min-width:0;padding:10px 22px}.geometry-editor-body{grid-template-columns:72px minmax(0,1fr) 280px;min-width:0;min-height:0;display:grid}.geometry-toolbar{background:#1a1a1a;border-right:1px solid #373737;flex-direction:column;display:flex}.geometry-toolbar button{color:#a5a5a5;cursor:pointer;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:5px;height:72px;display:flex}.geometry-toolbar button.active{color:#fff;background:#353535;box-shadow:inset 3px 0 #fff}.geometry-toolbar span{font-size:9px}.geometry-stage{background:#282828;flex-direction:column;justify-content:center;align-items:center;gap:18px;min-width:0;padding:36px;display:flex;position:relative;overflow:auto}.geometry-stage .spread-canvas{box-shadow:0 22px 60px #00000070;width:calc(min(1100px, calc(100vw - 430px)) * var(--geometry-zoom,1))!important;padding:0!important}.geometry-zoom-toolbar{z-index:5;color:#d8d8d8;background:#1d1e1c;border:1px solid #3b3b3b;align-items:center;gap:4px;padding:4px 8px;font-size:11px;display:flex;position:absolute;top:16px;left:16px}.geometry-zoom-toolbar button{color:#d8d8d8;cursor:pointer;background:0 0;border:0;place-items:center;width:22px;height:22px;display:grid}.geometry-zoom-toolbar button:hover{color:#fff}.geometry-zoom-toolbar output{text-align:center;min-width:34px}.geometry-stage>p{color:#a5a5a5;margin:0;font-size:11px}.geometry-stage .frame{cursor:move!important}.frame-resize-handle{z-index:20;background:#1a1a1a;border:1.5px solid #fff;border-radius:50%;width:8px;height:8px;padding:0;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #1a1a1a}.frame-resize-handle.handle-nw{cursor:nwse-resize;top:0;left:0}.frame-resize-handle.handle-n{cursor:ns-resize;top:0;left:50%}.frame-resize-handle.handle-ne{cursor:nesw-resize;top:0;left:100%}.frame-resize-handle.handle-e{cursor:ew-resize;top:50%;left:100%}.frame-resize-handle.handle-se{cursor:nwse-resize;top:100%;left:100%}.frame-resize-handle.handle-s{cursor:ns-resize;top:100%;left:50%}.frame-resize-handle.handle-sw{cursor:nesw-resize;top:100%;left:0}.frame-resize-handle.handle-w{cursor:ew-resize;top:50%;left:0}.group-resize-box{z-index:21;outline-offset:2px;pointer-events:none;touch-action:none;outline:1.5px solid #d9a56c;position:absolute}.group-resize-box-multi{pointer-events:auto;cursor:move}.group-resize-handle{pointer-events:auto;touch-action:none;background:0 0;border:0;padding:0;position:absolute}.group-resize-handle.handle-n,.group-resize-handle.handle-s{cursor:ns-resize;width:100%;height:14px;left:0}.group-resize-handle.handle-n{top:-10px}.group-resize-handle.handle-s{bottom:-10px}.group-resize-handle.handle-e,.group-resize-handle.handle-w{cursor:ew-resize;width:14px;height:100%;top:0}.group-resize-handle.handle-e{right:-10px}.group-resize-handle.handle-w{left:-10px}.group-resize-handle.handle-nw,.group-resize-handle.handle-ne,.group-resize-handle.handle-sw,.group-resize-handle.handle-se{z-index:1;width:16px;height:16px}.group-resize-handle.handle-nw{cursor:nwse-resize;top:-10px;left:-10px}.group-resize-handle.handle-ne{cursor:nesw-resize;top:-10px;right:-10px}.group-resize-handle.handle-sw{cursor:nesw-resize;bottom:-10px;left:-10px}.group-resize-handle.handle-se{cursor:nwse-resize;bottom:-10px;right:-10px}.frame-quality-badge{z-index:9;color:#1a1a1a;border:1px solid #ffffffb3;border-radius:50%;place-items:center;width:22px;height:22px;display:grid;position:absolute;top:7px;right:7px}.frame-quality-badge.frame-quality-warning{background:#d9a56c}.frame-quality-badge.frame-quality-blocked{background:#e2867a}.strip-quality-badge{color:#1a1a1a;border:1px solid #ffffffb3;border-radius:50%;place-items:center;width:15px;height:15px;display:grid;position:absolute;top:4px;right:4px}.strip-quality-badge.frame-quality-warning{background:#d9a56c}.strip-quality-badge.frame-quality-blocked{background:#e2867a}.geometry-inspector{color:#e8e8e8;background:#232323;border-left:1px solid #3a3a3a;padding:24px;overflow:auto}.geometry-inspector>small{color:#8f8f8f;letter-spacing:.12em;font-size:9px}.geometry-inspector h3{color:#f1f1f1;margin:5px 0 24px;font:400 25px Georgia,serif}.geometry-inspector label{grid-template-columns:1fr auto;gap:7px;margin:0 0 18px;font-size:11px;display:grid}.geometry-inspector output{color:#8f8f8f;font-variant-numeric:tabular-nums}.geometry-inspector input{accent-color:#f1f1f1;grid-column:1/-1;width:100%}input[type=range]{appearance:none;cursor:pointer;background:0 0;border:none;height:16px;margin:0;padding:0}input[type=range]::-webkit-slider-runnable-track{background:#3a3a3a;border-radius:1px;height:1.5px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:#f1f1f1;border-radius:50%;width:10px;height:10px;margin-top:-4.25px;box-shadow:0 0 0 4px #f1f1f11a}input[type=range]::-moz-range-track{background:#3a3a3a;border-radius:1px;height:1.5px}input[type=range]::-moz-range-thumb{background:#f1f1f1;border:0;border-radius:50%;width:10px;height:10px;box-shadow:0 0 0 4px #f1f1f11a}.geometry-photo-preview{width:min(100%, calc(340px * var(--shape-ratio,1)));aspect-ratio:var(--shape-ratio,1);cursor:move;touch-action:none;background:#1b1c1a;border:1.5px solid #5a5a5a;border-radius:3px;flex-shrink:0;max-height:340px;margin:0 auto 20px;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #0006}.geometry-photo-preview img{pointer-events:none;display:block}.geometry-layers{flex-direction:column;gap:4px;margin:22px 0 8px;display:flex}.geometry-layers-label{color:#8f8f8f;text-transform:uppercase;letter-spacing:.08em;margin-bottom:2px;font-size:9px}.geometry-layer-row{color:#e8e8e8;cursor:grab;background:#1b1c1a;border:1px solid #3a3a3a;align-items:center;gap:8px;height:34px;padding:0 10px;font-size:11px;display:flex}.geometry-layer-row.active{border-color:#d8c98a;box-shadow:inset 0 0 0 1px #d8c98a}.geometry-layer-row svg{color:#8f8f8f;flex:none}.geometry-layer-background{cursor:default;color:#8f8f8f;text-transform:uppercase;letter-spacing:.08em;justify-content:center;align-self:center;width:60%;height:14px;font-size:9px}.geometry-delete{color:#e2867a;cursor:pointer;background:#1b1c1a;border:1px solid #3a3a3a;width:100%;min-height:38px;margin-top:8px;font-size:10px}.ppi-status{background:#1b1c1a;border:1px solid #3a3a3a;border-left:3px solid #e2867a;flex-direction:column;gap:2px;margin:14px 0;padding:8px 10px;display:flex}.ppi-status span,.ppi-status small{color:#a8a8a8;font-size:9px}.ppi-status strong{color:#e2867a;font-size:15px}.geometry-guides-label{color:#777;margin-top:8px;font-size:10px;display:block}.spread-preview-live{background:#fff;width:100%;height:100%;min-height:64px;display:block;position:relative;overflow:hidden}.spread-preview-live>i{background:#ddd;display:block;position:absolute;overflow:hidden}.shared-canvas-preview>.spread-canvas{box-shadow:none;pointer-events:none;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important}.shared-canvas-preview .frame-focus,.shared-canvas-preview .group-resize-box{display:none!important}.spread-preview-live img{object-fit:cover;width:100%;height:100%}.overview-strip .spread-preview-live,.viewer-grid .spread-preview-live{min-height:96px}.viewer-focus figure .spread-preview-live{aspect-ratio:2;width:min(1120px,76vw);min-height:0}.editor-main{grid-template-columns:60px minmax(0,1fr) 300px!important}.crop-side-panel.geometry-inspector{grid-column:3;width:auto;height:100%;position:static}.editor-subbar{right:300px!important}.spread-canvas,.spread-meta{width:min(1320px,100vw - 392px,200vh - 1000px)!important}@media (max-width:1150px){.editor-main{grid-template-columns:54px minmax(0,1fr) 260px!important}.editor-subbar{right:260px!important}.spread-canvas,.spread-meta{width:min(1320px,100vw - 329px,200vh - 1000px)!important}}@media (max-width:900px){.editor-main{grid-template-rows:auto auto;grid-template-columns:52px minmax(0,1fr)!important}.editor-tools{grid-row:1/3}.crop-side-panel.geometry-inspector{border-top:1px solid #3a3a3a;border-left:0;grid-area:2/2;max-height:42vh}.editor-subbar{right:0!important}}.ai-layout-stack{flex-direction:column;flex:none;gap:4px;width:168px;display:flex}.ai-layout.compact.ai-layout-half{width:168px;min-width:168px;height:36px;min-height:36px;margin:0;padding:0 10px}.ai-layout.compact.ai-layout-half strong{font-size:11px}@media (max-width:900px){.ai-layout-stack{display:none}}.template-mini.reference-template-mini i{border-radius:2px;box-shadow:inset 0 0 0 1px #00000047;background:#a3a3a3!important}.assembly-compact-row{grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;display:grid}@media (max-width:520px){.assembly-compact-row{grid-template-columns:1fr}}.assembly-tile{background:#262626;border:1px solid #3a3a3a;border-radius:8px;padding:10px 12px}.assembly-tile-label{color:#ddd;white-space:nowrap;text-overflow:ellipsis;margin-bottom:8px;font-size:10px;display:block;overflow:hidden}.assembly-tile-background{position:relative}.assembly-tile-background .background-options{gap:6px}.assembly-tile-background .background-options button{background:0 0;border:none;gap:0;min-width:0;height:auto;padding:4px}.assembly-tile-background .background-options button.active{box-shadow:none}.assembly-tile-background .background-options i{width:16px;height:16px}.assembly-tile-background .background-options button.active i{box-shadow:0 0 0 2px #d9a56c}.assembly-tile-gap input[type=range]{width:100%}.editor-gap-control{flex-direction:column;gap:4px;margin-top:8px;display:flex}.editor-gap-control input[type=range]{width:100%}.gap-measure-compact{border-radius:3px;justify-content:center;align-items:center;height:26px;margin-bottom:6px;display:flex;overflow:hidden}.gap-measure-compact .gap-photo{filter:grayscale(.25);background-repeat:no-repeat;background-size:cover;border:0;flex:1 1 0;min-width:0;height:24px}.gap-measure-compact .gap-distance{background:#ddd;border:0;flex:none;min-width:0;margin:0;height:24px!important}.gap-scale-compact{border-top:1px solid #444;align-items:start;height:10px;margin:6px 2px 0;display:grid}.gap-scale-compact span{height:100%;position:relative}.gap-scale-compact span:before{content:"";background:#666;width:1px;height:3px;position:absolute;top:-1px;left:50%}.gap-scale-compact span.active:before{background:#d9a56c;height:6px}.palette-anchor{display:inline-flex;position:relative}.assembly-palette-wrap{z-index:30;position:absolute;top:0;left:calc(100% + 6px);box-shadow:0 12px 32px #0006}.background-side-picker{border:1px solid #3a3a3a;border-radius:6px;align-items:stretch;height:44px;display:flex;overflow:hidden}.background-side-half{cursor:pointer;border:0;flex:1;padding:0;transition:box-shadow .15s;box-shadow:inset 0 0 0 2px #0000}.background-side-half.active{box-shadow:inset 0 0 0 2px #d9a56c}.background-side-fold{cursor:pointer;background:#232323;border:0;border-left:1px solid #3a3a3a;border-right:1px solid #3a3a3a;flex:none;width:10px;transition:box-shadow .15s;position:relative;box-shadow:inset 0 0 0 2px #0000}.background-side-fold.active{background:#232323;box-shadow:inset 0 0 0 2px #d9a56c}.background-side-hint{color:#8f8f8f;text-align:center;margin-top:-6px;font-size:9px}.background-apply-all{color:#c8c8c8;cursor:pointer;align-items:center;gap:6px;margin-top:4px;font-size:10px;display:flex}.background-apply-all input{accent-color:#d9a56c}.background-options-wrap-compact .background-side-picker{flex-shrink:0;align-self:center;width:40px;height:16px}.editor-subbar.mode-background{overflow:visible}.background-options-round{justify-content:center;position:relative;gap:8px!important}.background-options-round button{min-width:0!important;height:auto!important;box-shadow:none!important;background:0 0!important;border:none!important;gap:0!important;padding:0!important}.background-options-round button.active{box-shadow:none!important}.background-options-round button.active i{box-shadow:0 0 0 2px #d9a56c!important}.background-options-round i{border-radius:50%;display:block;width:16px!important;height:16px!important}.background-apply-all-centered{justify-content:center;margin-top:10px}.assembly-col{flex-direction:column;gap:16px;display:flex}.assembly-select-pills{gap:6px;display:flex}.assembly-select-pills button{color:#bdbdbd;cursor:pointer;background:#282828;border:0;border-radius:6px;flex:1;justify-content:center;align-items:center;gap:6px;height:34px;font-size:11px;display:flex}.assembly-select-pills button.active{color:#fff;background:#4b4b4b}.assembly-count-row{align-items:center;gap:10px;display:flex}.assembly-count-row .spread-count-mode{flex:1}.assembly-count-row .counter{flex:none}.assembly-density-chip{color:#d0d0d0;cursor:pointer;background:#242424;border:1px solid #353535;border-radius:6px;align-items:center;gap:8px;width:100%;margin-top:4px;padding:10px 12px;display:flex}.assembly-density-chip .section-label{margin:0!important}.assembly-density-chip-value{color:#999;margin-left:auto;font-size:11px}.assembly-density-chip svg{color:#777;flex-shrink:0;transition:transform .15s}.assembly-density-chip.open svg{transform:rotate(180deg)}.assembly-density-panel{flex-direction:column;gap:10px;margin-top:8px;display:flex}.cover-size-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px;display:grid}.cover-size-tiles button{color:#f1f1f1;cursor:pointer;background:#1f1f1e;border:1px solid #333;flex-direction:column;align-items:center;gap:4px;padding:10px 6px 8px;transition:border-color .15s;display:flex}.cover-size-tiles button:hover{border-color:#555}.cover-size-tiles button.active{border-color:#d9a56c;box-shadow:inset 0 0 0 1px #d9a56c}.cover-size-tile-face{aspect-ratio:1;background:linear-gradient(135deg,#756858,#4f463b);width:52px;margin-bottom:4px;display:block;position:relative}.cover-size-tile-insert{background:#d3d3d3;display:block;position:absolute;transform:translate(-50%,-50%)}.cover-size-tile-insert.is-shield{background:linear-gradient(135deg,#d3d3d3,#9a9a9a)}.cover-size-tiles strong{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px;font-weight:500}.cover-size-tiles small{color:#8f8f8f;font-size:10px}.cover-size-strip{margin:14px 0}.cover-size-strip .cover-size-tiles{margin-bottom:0}.cover-size-strip .cover-size-tiles button{padding:8px 4px 6px}.cover-size-strip .cover-size-tile-face{width:44px;margin-bottom:2px}.cover-font-select{background:#1f1f1e;border:1px solid #333;margin-bottom:16px}.cover-font-select.open{border-color:#555}.cover-font-select-toggle,.cover-font-select-list button{color:#f1f1f1;text-align:left;cursor:pointer;background:0 0;border:none;align-items:baseline;gap:10px;width:100%;min-width:0;padding:8px 10px;display:flex}.cover-font-select-toggle svg{color:#8f8f8f;flex:none;align-self:center;margin-left:auto;transition:transform .15s}.cover-font-select.open .cover-font-select-toggle svg{transform:rotate(180deg)}.cover-font-select strong{white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:18px;font-weight:400;line-height:1.3;overflow:hidden}.cover-font-select small{color:#8f8f8f;flex:none;font-size:10px}.cover-font-select-list button small{margin-left:auto}.cover-font-select-list{border-top:1px solid #333}.cover-font-select-list button:hover{background:#262626}.cover-font-select-list button.active{background:#262626;box-shadow:inset 0 0 0 1px #d9a56c}.cover-text-swatches{align-items:center;gap:10px;margin-bottom:16px;display:flex}.cover-text-swatches button{cursor:pointer;background:0 0;border:none;padding:0}.cover-text-swatches i{border-radius:50%;width:20px;height:20px;display:block;box-shadow:inset 0 0 0 1px #ffffff2e}.cover-text-swatches button.active i{box-shadow:0 0 0 2px #1b1c1a,0 0 0 3.5px #d9a56c}.cover-text-swatches .assembly-palette-wrap{top:calc(100% + 8px);left:auto;right:0}.preflight-panel{color:#e7e7e7;background:#1e1f1d;border:1px solid #3b3b3b;border-radius:12px;margin-top:18px;padding:14px 16px}.preflight-panel-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.preflight-panel-head h3{margin:0;font-size:14px;font-weight:500}.preflight-status-pill{color:#c7c7c7;white-space:nowrap;background:#2a2a2a;border-radius:999px;flex:none;align-items:center;gap:5px;padding:4px 9px;font-size:11px;display:flex}.preflight-panel.ready_with_warnings{border-left:3px solid #d9a56c}.preflight-panel.ready_with_warnings .preflight-status-pill{color:#d9a56c}.preflight-panel.blocked{border-left:3px solid #e2867a}.preflight-panel.blocked .preflight-status-pill{color:#e2867a}.preflight-issue-list{color:#c7c7c7;flex-direction:column;gap:4px;margin:10px 0 0;padding-left:0;font-size:11px;list-style:none;display:flex}.preflight-issue-link{width:100%;color:inherit;text-align:left;cursor:pointer;font:inherit;background:0 0;border:1px solid #3b3b3b;border-radius:6px;align-items:center;gap:8px;padding:5px 7px;display:flex}.preflight-issue-link:hover{background:#262626}.preflight-issue-link .template-mini{border-radius:4px;flex:none;width:38px;height:24px;overflow:hidden}.preflight-issue-link strong{font-size:11px;font-weight:500}.preflight-issue-link small{text-overflow:ellipsis;white-space:nowrap;color:#9a9a9a;margin:0;overflow:hidden}.preflight-issue-goto{color:#8f8f8f;flex:none;align-items:center;gap:3px;margin-left:auto;font-size:10px;display:flex}.editor-subbar.mode-text{overflow:visible}.editor-subbar.mode-text .text-options{scrollbar-color:#4a4a4a transparent;scrollbar-width:thin;flex:1;align-items:center;gap:14px;min-width:0;display:flex;position:static;overflow-x:auto}.editor-subbar.mode-text .text-options>.ai-layout.compact{flex:none}.editor-subbar.mode-text .text-options label{color:#a8a8a8;flex:none;min-width:150px;margin:0}.editor-subbar.mode-text .text-options label:first-of-type{flex:220px;min-width:220px}.editor-subbar.mode-text .text-options textarea{resize:none;color:#ededeb;background:#262626;border-color:#3a3a3a;height:54px}.editor-subbar.mode-text .text-options select{color:#ededeb;background:#262626;border:1px solid #3a3a3a;padding:6px}.editor-subbar.mode-text .text-style-row{flex:none;min-width:230px;margin:0}.editor-subbar.mode-text .text-align-buttons{border-color:#3a3a3a}.editor-subbar.mode-text .text-align-buttons button,.editor-subbar.mode-text .text-style-row>button{color:#ededeb}.editor-subbar.mode-text .text-delete{flex:none;margin:0}.editor-subbar.mode-text .text-options>.template-empty{margin:0}.editor-subbar.mode-text .color-wheel-picker{z-index:30;position:absolute;top:100%;right:14px}.editor-subbar.mode-background .background-options-wrap-compact{flex:1;grid-template-rows:auto auto;grid-template-columns:auto auto auto minmax(180px,260px);justify-content:start;align-items:center;gap:6px 22px;display:grid}.editor-subbar.mode-background .background-side-picker{grid-area:1/1}.editor-subbar.mode-background .background-side-hint{white-space:nowrap;grid-area:2/1}.editor-subbar.mode-background .background-options-round{grid-area:1/2/3}.editor-subbar.mode-background .background-apply-all{white-space:nowrap;grid-area:1/3/3;margin:0}.editor-subbar.mode-background .editor-gap-control{flex-direction:column;grid-area:1/4/3;gap:6px;margin:0;display:flex}.spread-meta-position{align-items:center;gap:12px;display:inline-flex}.spread-meta-delete{color:inherit;font:inherit;cursor:pointer;opacity:.8;background:0 0;border:0;align-items:center;gap:5px;padding:0;display:inline-flex}.spread-meta-delete:hover,.spread-meta-delete:focus-visible{opacity:1}
.app-shell,.editor-shell,.group-review-page,.cover-page,.review-page,.done{--bb-bg:#151515;--bb-panel:#1f1f1f;--bb-raised:#292929;--bb-line:#3b3b3b;--bb-text:#f1f1ee;--bb-muted:#a7a7a2;background:var(--bb-bg)!important;color:var(--bb-text)!important}.app-header,.editor-header,.spread-strip,.editor-tools,.template-panel,.photo-dock,.form-card,.photo-browser,.assembly-panel,.group-card,.cover-options>button,.cover-editor,.cover-controls,.book-overview,.delivery-form,.order-summary{background:var(--bb-panel,#1f1f1f)!important;color:var(--bb-text,#f1f1f1)!important;border-color:var(--bb-line,#3b3b3b)!important}.canvas-stage,.cover-preview{background:#242424!important}.template-grid>button,.template-ribbon>button,.format-options button,.book-kind-grid button,.select-row,.density button,.segmented,.control-row button,.file-row,.secondary-photo,.cover-size-list button,.cover-placement-options button,.field-grid input,.field-grid select,.promo input,.promo button,.pay-methods button{color:#e8e8e8!important;background:#292929!important;border-color:#414141!important}.template-grid>button.active,.template-ribbon>button.active,.format-options button.active,.book-kind-grid button.active,.select-row.active,.density button.active,.segmented button.active,.cover-options>button.active,.cover-size-list button.active,.cover-placement-options button.active{color:#fff!important;background:#3b3b3b!important;box-shadow:inset 0 0 0 1px #ffffff47!important}.page-heading p,.panel-head small,.spread-meta,.cover-preview>small,.project-title span,.save-state,.dock-head span{color:var(--bb-muted,#a6a6a6)!important}.app-header .brand-compact img,.editor-header .brand-compact img{object-fit:contain!important;object-position:center!important;clip-path:none!important;background:#080808!important;width:52px!important;height:52px!important}.gap-distance{background:#e6e6e6!important}.alignment-guide{z-index:12;pointer-events:none;background:#9c9c9cd1;position:absolute;box-shadow:0 0 0 .5px #ffffff80}.alignment-guide-x{height:1px;left:0;right:0}.alignment-guide-y{width:1px;top:0;bottom:0}.snap-guide{background:#cfcfcff2}.snap-guide-x{width:1px;top:0;bottom:0}.snap-guide-y{height:1px;left:0;right:0}.geometry-editor .frame.selected{box-shadow:none;outline-offset:1px!important;outline:1px solid #d9a56c!important}.geometry-frame-size{color:#aaa;background:#292929;margin:4px 0 14px;padding:9px 10px;font-size:10px}.cover-photo-picker{background:#171717;border:1px solid #3b3b3b;grid-template-columns:repeat(4,1fr);gap:5px;max-height:210px;padding:7px;display:grid;overflow:auto}.cover-photo-picker button{aspect-ratio:1;background:#292929;border:2px solid #0000;padding:0;overflow:hidden}.cover-photo-picker button.active{border-color:#fff}.cover-photo-picker img{object-fit:cover;width:100%;height:100%}.cover-title-interactive{cursor:move;touch-action:none;background:0 0;border:0;width:max-content;max-width:90%;padding:0}.cover-font-size{grid-column:span 1;align-items:center;gap:5px;display:flex}.cover-font-size input{width:100%;min-width:0}.cover-color{border:1px solid #414141;place-items:center;height:35px;display:grid}.cover-color input{background:0 0;border:0;width:24px;height:24px;padding:0}
:root{--bb-bg:#141414;--bb-surface:#202020;--bb-surface-raised:#292929;--bb-surface-selected:#3b3b3b;--bb-line:#414141;--bb-text:#f0f0f0;--bb-muted:#a7a7a7;--bb-action:#333;--bb-action-hover:#454545}.setup-page,.photos-page,.group-review-page,.cover-page,.review-page{background:var(--bb-bg)!important}.setup-page .page-heading,.photos-page .page-heading,.group-review-page .page-heading,.cover-page .page-heading,.review-page .page-heading{color:var(--bb-text)}.setup-dark .setup-form,.photos-dark .photo-browser,.photos-dark .assembly-panel,.group-card,.group-review-actions,.cover-options>button,.cover-page .cover-editor,.review-page .book-overview,.review-page .delivery-form,.review-page .order-summary{background:var(--bb-surface)!important;border-color:var(--bb-line)!important}.btn-dark{background:var(--bb-action)!important;color:var(--bb-text)!important;border:1px solid #555!important}.btn-dark:hover{background:var(--bb-action-hover)!important}.btn-dark:focus-visible{outline-color:#d8d8d8!important}.btn-dark:disabled{color:#777!important;background:#282828!important}.brand-compact{background:0 0!important;border:0!important;place-items:center!important;width:52px!important;height:52px!important;display:grid!important;overflow:visible!important}.brand-compact .brand-mark{background:url(/brand/bulgakbook-logo-mini-transparent.png) 50%/contain no-repeat;width:48px;height:48px;display:block}.welcome-header .brand-compact{width:66px!important;height:66px!important}.welcome-header .brand-mark{width:58px;height:58px}.welcome-login{color:#f1f1f1;border-bottom:1px solid #0000;padding:10px 2px;text-decoration:none}.welcome-login:hover{border-bottom-color:#f1f1f1}.welcome-cinematic .hero-title{letter-spacing:-.045em;flex-direction:column;gap:10px;max-width:780px;font-family:Georgia,Times New Roman,serif;line-height:1.02;display:flex}.welcome-cinematic .hero-title strong{font-size:clamp(58px,6.3vw,94px);font-weight:520}.welcome-cinematic .hero-title span{max-width:720px;font-size:clamp(38px,4.4vw,68px);font-weight:520}.welcome-cinematic .hero-copy>.eyebrow{letter-spacing:.22em!important;font-size:16px!important}.setup-dark .book-kind-grid button{border-radius:8px!important}.setup-dark .book-kind-grid .book-kind-photo{border-radius:8px;object-fit:cover!important;object-position:center!important;width:calc(100% - 40px)!important;height:calc(100% - 40px)!important;inset:20px!important;transform:none!important}.photos-dark .assembly-wide{align-items:stretch;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}.photos-dark .assembly-wide>div{flex-direction:column;min-width:0;display:flex}.photos-dark .assembly-wide .assembly-block,.photos-dark .assembly-wide .assembly-intro{background:#242424;border:1px solid #353535;border-radius:7px;padding:16px}.photos-dark .assembly-wide .segmented,.photos-dark .assembly-wide .select-row,.photos-dark .assembly-wide .counter,.photos-dark .assembly-wide .density button,.spread-count-mode button{min-height:42px;border-radius:4px!important}.photos-dark .assembly-wide .select-row{flex:1}.spread-count-mode{grid-template-columns:1fr 1fr;gap:5px;display:grid}.spread-count-mode button{color:#bdbdbd;cursor:pointer;background:#2d2d2d;border:0}.spread-count-mode button.active{color:#fff;background:#4a4a4a;box-shadow:inset 0 0 0 1px #777}.counter button:disabled{opacity:.3;cursor:default}.assembly-block-disabled{opacity:.45;pointer-events:none}.density-four{grid-template-columns:repeat(2,1fr)!important}.analysis-warning-banner{color:#deded9;background:#34302d;border:1px solid #665b54;gap:10px;margin:-14px 0 26px;padding:12px 14px;font-size:11px;line-height:1.5;display:flex}.analysis-warning-banner svg{color:#d8a875;flex:none;margin-top:1px}.analysis-warning-banner p{margin:0}.analysis-warning-banner p+p{margin-top:4px}.spread-capacity-warning{color:#deded9;background:#34302d;border:1px solid #665b54;gap:8px;margin-top:10px;padding:10px;font-size:11px;line-height:1.45;display:flex}.production-blocked-note{color:#dbdbdb;background:#2d2d2d;border:1px solid #555;align-items:center;gap:8px;margin:12px 0;padding:11px 13px;font-size:11px;display:flex}.format-options button:disabled{opacity:.3;cursor:not-allowed}.spread-capacity-warning svg{flex:none}.group-card>header{cursor:grab;border-radius:6px 6px 0 0}.group-card>header:active{cursor:grabbing}.group-card .group-name{cursor:text}.group-card>header>span{color:#f0f0f0;place-items:center;min-width:30px;height:26px;padding:0 8px;display:grid;background:#3b3b3b!important;border-radius:6px!important}.group-drag-handle{display:none!important}.template-mini.reference-template-mini i{overflow:hidden}.template-mini.reference-template-mini i img{object-fit:cover;width:100%;height:100%}.template-ribbon>button.template-compromise{opacity:.62}.template-ribbon>button.template-compromise:hover,.template-ribbon>button.template-compromise.active{opacity:1}.spread-canvas:after{display:none!important}.spread-canvas .fold-guide{background:#28282838!important;width:1px!important}.spread-canvas .fold-guide span{display:none!important}.spread-canvas .trim{background:#2d2d2d38!important}.cover-options{grid-template-columns:repeat(4,minmax(0,1fr));justify-content:center}.cover-options>button{aspect-ratio:1;border-radius:7px;overflow:hidden;border:0!important;min-height:0!important;padding:0!important}.cover-options>button.active{box-shadow:inset 0 0 0 2px #7e7e7e!important}.cover-options>button>svg{z-index:2}.cover-options .cover-icon{background:#e6e6e6;position:absolute;inset:0;border-radius:0!important;width:100%!important;height:100%!important}.cover-options .cover-icon img{width:100%;height:100%;object-fit:cover!important;object-position:center!important;padding:0!important}.cover-icon-caption{z-index:1;color:#fff;background:linear-gradient(#0000,#121212b8);flex-direction:column;gap:2px;padding:10px 12px 9px;display:flex;position:absolute;bottom:0;left:0;right:0}.cover-icon-caption strong{font:400 13px Georgia,serif}.cover-icon-caption small{color:#ffffffc7;font-size:9px}.cover-title-interactive{overflow:visible}.cover-title-resize{opacity:0;background:#fff;border:1px solid #111;border-radius:2px;width:10px;height:10px;transition:opacity .15s;position:absolute}.cover-title-interactive:hover .cover-title-resize,.cover-title-interactive:focus .cover-title-resize{opacity:1}.cover-title-resize-nw{cursor:nwse-resize;top:-6px;left:-6px}.cover-title-resize-ne{cursor:nesw-resize;top:-6px;right:-6px}.cover-title-resize-se{cursor:nwse-resize;bottom:-6px;right:-6px}.cover-title-resize-sw{cursor:nesw-resize;bottom:-6px;left:-6px}.cover-production-guides{z-index:12;pointer-events:none;position:absolute;inset:0}.cover-guide{background:#ffffff75;display:block;position:absolute}.cover-guide-left{left:var(--cover-left);width:1px;top:0;bottom:0}.cover-guide-right{right:var(--cover-right);width:1px;top:0;bottom:0}.cover-guide-top{top:var(--cover-top);height:1px;left:0;right:0}.cover-guide-bottom{bottom:var(--cover-bottom);height:1px;left:0;right:0}.cover-guide-center{background:#ffffff47;width:1px;top:0;bottom:0;left:50%}.spread-text{cursor:move;white-space:pre-wrap;word-break:break-word;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;padding:4px;line-height:1.25;display:flex;overflow:hidden}.spread-text.selected{outline-offset:2px;outline:2px dashed #1a1a1a99}.text-options label{color:var(--muted);flex-direction:column;gap:6px;margin:14px 0;font-size:10px;display:flex}.text-options textarea{font:inherit;resize:vertical;border:1px solid #d5d5d5;padding:8px}.text-style-row{align-items:center;gap:8px;margin:14px 0;display:flex}.text-style-row input[type=color]{cursor:pointer;background:0 0;border:1px solid #d5d5d5;width:32px;height:32px;padding:0}.text-align-buttons{border:1px solid #d5d5d5;flex:1;display:flex}.text-align-buttons button{cursor:pointer;background:0 0;border:0;flex:1;padding:8px 0;font-size:9px}.text-align-buttons button.active,.text-style-row>button.active{color:#fff;background:#303030}.text-delete{color:#a85433;cursor:pointer;background:0 0;border:1px solid #ba704e;align-items:center;gap:6px;margin-top:6px;padding:8px 10px;font-size:10px;display:flex}.background-options-wrap{flex-direction:column;flex:1;gap:14px;display:flex}.swatch-white,.swatch-gray,.swatch-black{border-radius:50%}.swatch-palette{background:conic-gradient(from 90deg,#ff3b30,#ff9500,#fc0,#34c759,#007aff,#af52de,#ff3b30);border-radius:50%}.color-swatch-button{cursor:pointer;border:1px solid #d5d6d0;border-radius:50%;width:32px;height:32px;padding:0}.photo-sort-select{cursor:pointer;color:inherit;background:0 0;border:0;padding:8px 4px;font-size:11px}.photos-dark .photo-sort-select{color:#aaa}.photos-dark .photo-sort-select option{color:#1c1c1a}.cover-photo-scale{flex-direction:column;gap:6px;display:flex!important}.cover-photo-scale output{text-transform:none;color:var(--ink);font-weight:400}.cover-photo-scale input[type=range]{width:100%}.color-wheel-picker{background:#1b1c1a;border:1px solid #3a3a3a;border-radius:8px;flex-direction:column;align-items:stretch;gap:10px;width:100%;max-width:220px;padding:12px;display:flex}.color-wheel-square-wrap{cursor:crosshair;touch-action:none;aspect-ratio:1;border-radius:6px;width:100%;position:relative;overflow:hidden;box-shadow:0 0 0 1px #3a3a3a}.color-wheel-square-wrap canvas{width:100%;height:100%;display:block}.color-wheel-marker{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #00000080}.color-wheel-hue-wrap{cursor:pointer;touch-action:none;background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);border-radius:7px;width:100%;height:14px;position:relative;box-shadow:0 0 0 1px #3a3a3a}.color-wheel-hue-marker{pointer-events:none;background:#fff;border:2px solid #fff;border-radius:50%;width:14px;height:14px;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #00000080}.color-wheel-hex-row{letter-spacing:.06em;color:#f1f1f1;align-items:center;gap:8px;font-size:10px;display:flex}.color-wheel-hex-row input{color:#f1f1f1;text-transform:uppercase;background:#232323;border:1px solid #3a3a3a;border-radius:5px;flex:1;min-width:0;height:26px;padding:0 8px;font:11px/1 SFMono-Regular,Consolas,monospace}@media (max-width:1050px){.photos-dark .assembly-wide{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media (max-width:680px){.photos-dark .assembly-wide{grid-template-columns:1fr!important}.cover-options{grid-template-columns:repeat(2,1fr)}}.editor-subbar.mode-text .text-delete{color:#ba704e;border-color:#ba704e}.spread-meta-delete:hover,.spread-meta-delete:focus-visible{color:#ba704e}
.welcome-cinematic{--u:clamp(8px, min(1.05vw, 1.4dvh), 15px);flex-direction:column;height:100dvh;min-height:0;display:flex}.welcome-cinematic .welcome-header{flex:none;height:clamp(56px,9dvh,88px)}.welcome-stage{text-align:center;justify-content:center;align-items:center;gap:calc(var(--u) * 1.6);min-height:0;padding:0 24px calc(var(--u) * 2);flex-direction:column;flex:1;display:flex;position:relative}.welcome-brand{align-items:center;gap:calc(var(--u) * .8);flex-direction:column;display:flex}.welcome-logo{box-sizing:border-box;width:calc(var(--u) * 11);height:calc(var(--u) * 11);object-fit:contain;filter:drop-shadow(0 16px 35px #00000040);border:3px solid #fffffffa}.welcome-constructor{box-sizing:border-box;width:calc(var(--u) * 11);color:#e2e2e2;font-size:calc(var(--u) * .85);justify-content:space-between;font-weight:700;line-height:1;display:flex}.welcome-constructor i{font-style:normal}.welcome-title{max-width:20em;font:300 calc(var(--u) * 3.5) / 1.18 Montserrat, Inter, "Segoe UI", Arial, sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#f6f6f6;text-shadow:0 3px 30px #0000006b;text-wrap:balance;margin:0}.welcome-title-thin{font-weight:200}.welcome-title-bold{font-weight:700}.welcome-lead{max-width:34em;font-size:clamp(14px, calc(var(--u) * 1.25), 19px);color:#f4f4f4c7;text-wrap:balance;margin:0;line-height:1.55}.welcome-buttons{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px 22px;display:flex}.welcome-trust{color:#f1f1f1a3;font-size:clamp(11px, calc(var(--u) * .85), 13px);flex-wrap:wrap;justify-content:center;gap:8px 26px;display:flex}.welcome-trust span{align-items:center;gap:7px;display:flex}.welcome-cinematic .text-button{color:#f0f0f0}.welcome-cinematic .btn-dark{-webkit-backdrop-filter:blur(14px)saturate(1.5);backdrop-filter:blur(14px)saturate(1.5);box-shadow:inset 0 1px #fff6,0 8px 28px #00000047;color:#fff!important;background:#ffffff24!important;border:1px solid #ffffff61!important}.welcome-cinematic .btn-dark:hover{background:#ffffff42!important}.profile-menu-welcome{flex:none}.profile-menu-welcome strong{text-overflow:ellipsis;white-space:nowrap;max-width:min(40vw,240px);display:block;overflow:hidden}.welcome-cinematic .profile-projects{width:min(260px,100vw - 24px)}@media (max-width:520px){.welcome-actions .btn{display:none}.welcome-login{font-size:14px}}@media (max-height:560px){.welcome-trust{display:none}}@media (max-width:620px){.welcome-stage{padding-inline:18px}.welcome-buttons{flex-direction:column;gap:10px}}.how-steps{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
