.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.v2.layout-mode{height:100dvh;overflow:hidden;background:#f7f7f7}
.v2.layout-mode .sidebar{display:none}
.v2.layout-mode main{margin:0;padding:0;width:100%;height:100dvh;min-height:0;overflow:hidden;background:#f7f7f7}
.v2.layout-mode .page{max-width:none;width:100%;height:100%;padding:0;margin:0}
.v2.layout-mode .page>:not(#workspace){display:none}
.v2.layout-mode #workspace{height:100%;min-height:0;padding:0;display:grid;grid-template-rows:56px minmax(0,1fr);overflow:hidden}
.layout-toolbar{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 20px;background:#fff;border-bottom:1px solid #dedfdc;z-index:3}
.layout-toolbar-start,.layout-toolbar-actions{display:flex;align-items:center;gap:12px;min-width:0;white-space:nowrap}
.layout-toolbar-start strong{font-size:var(--fs-base);font-weight:600}.layout-order-name{color:#858781;font-size:var(--fs-small);overflow:hidden;text-overflow:ellipsis;max-width:240px}
.layout-back{font-size:var(--fs-body);font-weight:600;padding:8px 10px;border-radius:6px}.layout-back:hover{background:#f1f2ef}.layout-toolbar-divider{height:20px;border-left:1px solid #ddd}
.layout-toolbar-actions{justify-content:flex-end}.layout-toolbar-actions .secondary,.layout-toolbar-actions .primary{padding:8px 12px;border-radius:6px;font-size:var(--fs-small)}
.layout-variant-control{display:flex;align-items:center;gap:8px;margin:0;color:#838680;font-size:var(--fs-small)}.layout-variant-control select{width:auto;min-width:110px;max-width:220px;min-height:32px;margin:0;padding:5px 28px 5px 9px;background:#f5f5f3;border:1px solid #e0e1dd;border-radius:6px;color:#292b26;font-size:var(--fs-small)}
.layout-check{position:relative}.layout-check summary{list-style:none;cursor:pointer;border-radius:6px;padding:7px 9px;background:#eff3ec;color:#557449;font-size:var(--fs-small);min-width:36px;text-align:center}.layout-check summary::-webkit-details-marker{display:none}.layout-check summary.has-errors{background:#fff0e6;color:#a23d25}.layout-check-popover{position:absolute;right:0;top:calc(100% + 10px);width:min(350px,calc(100vw - 30px));max-height:min(65dvh,500px);overflow:auto;padding:16px;background:#fff;border:1px solid #dedfdc;border-radius:9px;box-shadow:0 12px 35px #0002;white-space:normal;z-index:20}.layout-check-popover h3{font-size:var(--fs-base);margin:0 0 10px}.layout-check-popover p{font-size:var(--fs-small);margin:0}.layout-check-popover button{display:block;width:100%;padding:9px;margin-top:6px;border-radius:5px;background:#f7f7f5;text-align:left;font-size:var(--fs-small);line-height:1.4}.layout-check-popover button.error{background:#fff0e9}
.layout-editor{position:relative;min-width:0;min-height:0;display:grid;grid-template-columns:216px minmax(0,1fr);overflow:hidden;background:#eceeea}
.layout-spreads{min-width:0;min-height:0;display:flex;flex-direction:column;background:#f7f7f7;border-right:1px solid #d9dbd6}
.layout-spreads-head{height:48px;flex:none;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7e8e4}.layout-spreads-head h2{font-size:var(--fs-small);font-weight:600;letter-spacing:.02em;margin:0}.layout-spreads-head span{font-size:var(--fs-caption);color:#8c8f86}
.layout-spread-list{min-height:0;flex:1;overflow:auto;display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:16px 18px 20px;scrollbar-width:thin}
.layout-spread-thumb{display:block;flex:none;position:relative;width:100%;padding:5px 5px 26px;background:transparent;border:1px solid transparent;border-radius:6px;text-align:left}
.layout-spread-thumb:hover{background:#ededeb}.layout-spread-thumb.active{background:#e9ecdf;border-color:#b9c8a1}.layout-spread-thumb .layout-canvas{width:100%;height:auto;max-width:none;margin:0;box-shadow:0 1px 6px #0002;pointer-events:none}.layout-spread-thumb small{display:block;position:absolute;bottom:7px;left:6px;right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#60635d;font-size:var(--fs-micro)}
.layout-stage{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 44px;padding:16px 20px 0;background:#eceeea;overflow:hidden}
.layout-preview{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.layout-preview .layout-canvas{flex:none;max-width:100%;max-height:100%;margin:0;box-shadow:0 3px 18px #0002;background:#fff}
.layout-canvas{container-type:inline-size;position:relative;overflow:hidden;background:#fff}
.layout-layer{position:absolute;z-index:1;box-sizing:border-box}
.layout-page-hit{position:absolute;top:0;bottom:0;width:50%;z-index:0;margin:0;padding:0;border:0;background:transparent;cursor:pointer}
.layout-page-hit.is-blank{z-index:2;display:grid;place-items:center}
.layout-page-hit.is-blank::before{content:'';position:absolute;inset:10px;border:1.5px dashed #c3c7bd;border-radius:6px;pointer-events:none}
.layout-page-hit.is-blank:hover::before,.layout-page-hit.is-blank:focus-visible::before{border-color:#d6a900;background:#fff8d655}
.layout-page-hit .layout-add-icon{position:relative;width:46px;height:46px}
.layout-page-change{position:absolute;z-index:4;bottom:12px;width:36px;height:36px;border:1px solid #d7dbd2;border-radius:10px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6558' stroke-width='1.6'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E") center/18px no-repeat;box-shadow:0 6px 16px #1b241b24}
.layout-page-change[data-layout-page=left]{left:14px}
.layout-page-change[data-layout-page=right]{right:14px}
.layout-page-change:hover,.layout-page-change:focus-visible{border-color:#d6a900}
.layout-template-menu{position:fixed;z-index:40;padding:10px;background:#fff;border:1px solid #dedfdc;border-radius:14px;box-shadow:0 18px 44px #1b241b33}
.layout-template-grid{display:grid;grid-template-columns:repeat(5,52px);gap:8px}
.layout-template-menu button{display:grid;place-items:center;width:52px;height:68px;padding:6px;border:1px solid transparent;border-radius:10px;background:#f6f6f4}
.layout-template-menu button:hover,.layout-template-menu button.selected{border-color:#d6a900;background:#fff8d6}
.layout-mini{position:relative;display:block;width:40px;aspect-ratio:210/280;background:#fff;border:1px solid #d3d7ce;border-radius:2px;overflow:hidden;box-shadow:inset 0 0 0 1px #fff}
.layout-mini i{position:absolute;background:#b7c0b2;border-radius:1px}.layout-photo,.layout-text{border:1px solid transparent;background:transparent;overflow:hidden;padding:0;display:block}button.layout-photo,button.layout-text{cursor:pointer}button.layout-photo:hover,button.layout-text:hover,.layout-photo.selected,.layout-text.selected{outline:2px solid #d6a900;outline-offset:-2px}.layout-photo>img:not(.layout-add-icon){position:absolute;max-width:none;object-fit:fill}.layout-photo.empty{background:#fafafa;border:2px dashed #8a8a8a;display:grid;place-items:center}.layout-photo.empty .layout-add-icon{width:50px;height:50px;max-width:none}.layout-text{font-family:"Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;white-space:normal;line-height:1.18;overflow-wrap:anywhere;text-align:left;overflow:visible}.layout-text>span{display:block;width:100%}.layout-divider{position:absolute;left:50%;top:50%;width:713px;height:2px;max-width:none;pointer-events:none;transform:translate(-50%,-50%) rotate(90deg) scaleX(.72);opacity:.55}
.layout-stage-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#666b62;font-size:var(--fs-caption)}.layout-stage-footer>div{display:flex;gap:6px}.layout-stage-footer button{padding:5px 10px;border-radius:5px;font-size:var(--fs-body)}.layout-stage-footer button:disabled{opacity:.35}
.layout-drawer{position:absolute;z-index:5;right:0;top:0;bottom:0;width:clamp(320px,34vw,480px);min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px;padding:18px;background:#fff;border-left:1px solid #d9dbd6;box-shadow:-12px 0 30px #1b241b1a;overflow:auto;scrollbar-width:thin;animation:layout-drawer-in .18s ease-out}@keyframes layout-drawer-in{from{transform:translateX(16px);opacity:.7}to{transform:translateX(0);opacity:1}}.layout-drawer.is-closing{animation:layout-drawer-out .22s ease-in forwards;pointer-events:none}@keyframes layout-drawer-out{to{transform:translateX(100%);opacity:0}}@keyframes layout-drawer-down{to{transform:translateY(100%);opacity:0}}.layout-drawer[hidden]{display:none}.layout-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.layout-drawer-head h2{font-size:var(--fs-lead);margin:0 0 3px;color:#171917}.layout-drawer-head p{font-size:var(--fs-caption);margin:0}.layout-drawer-actions{display:flex;align-items:center;gap:6px}.layout-drawer-actions .secondary{padding:7px 9px;border-radius:5px;font-size:var(--fs-caption)}.layout-close{font-size:var(--fs-head);line-height:1;width:28px;height:28px;background:transparent;border-radius:5px}.layout-close:hover{background:#eee}.layout-photo-tabs{display:flex;gap:5px;overflow-x:auto;flex:none;margin:0;padding-bottom:7px;border-bottom:1px solid #ececec;scrollbar-width:thin}.layout-photo-tabs button{padding:5px 7px;background:transparent;border-radius:5px;font-size:var(--fs-caption);white-space:nowrap;color:#525650}.layout-photo-tabs button.active{background:#ecefe5;color:#262b20;font-weight:600}.layout-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}.layout-photo-grid button{position:relative;padding:0;border:2px solid transparent;background:#f0f0f0;border-radius:5px;overflow:hidden;aspect-ratio:4/3}.layout-photo-grid button:hover,.layout-photo-grid button.selected{border-color:#d6a900}.layout-photo-grid img{width:100%;height:100%;display:block;object-fit:cover}.layout-photo-grid span{position:absolute;left:0;right:0;bottom:0;padding:5px;background:linear-gradient(transparent,#0009);color:#fff;font-size:var(--fs-micro);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.layout-photo-empty{padding:16px;background:#f4f5f1;border-radius:6px;color:#666}.layout-photo-empty h3{font-size:var(--fs-base);color:#222}.layout-photo-empty p{font-size:var(--fs-small);line-height:1.5}.layout-photo-empty .secondary{display:inline-block;margin-top:8px;font-size:var(--fs-caption)}.layout-panel-error{margin:0}.layout-drawer form{display:grid;gap:12px;margin:0}.layout-drawer form label{display:grid;gap:7px;margin:0}.layout-drawer textarea{font:inherit;width:100%;min-height:110px;resize:vertical;border:1px solid #ddd;border-radius:6px;padding:9px}.layout-drawer form .primary{justify-self:start;padding:9px 12px;font-size:var(--fs-small)}
@media(max-width:900px){.layout-editor{grid-template-columns:150px minmax(0,1fr)}.layout-drawer{width:min(42vw,360px)}.layout-spread-list{padding:12px 10px}.layout-stage{padding:10px 12px 0}.layout-order-name{display:none}.layout-variant-control>span{display:none}}
@media(max-width:700px){.v2.layout-mode #workspace{grid-template-rows:50px minmax(0,1fr)}.layout-toolbar{padding:0 8px;gap:4px}.layout-toolbar-start,.layout-toolbar-actions{gap:4px}.layout-toolbar-start strong,.layout-toolbar-divider,.layout-back span,.layout-refresh{display:none}.layout-back{font-size:var(--fs-title);padding:5px 8px}.layout-toolbar-actions .primary{font-size:var(--fs-caption);padding:8px}.layout-variant-control select{max-width:145px;min-width:80px}.layout-editor{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 114px}.layout-stage{grid-row:1;padding:8px 8px 0}.layout-spreads{grid-row:2;border-right:0;border-top:1px solid #d9dbd6}.layout-spreads-head{height:26px;padding:0 10px}.layout-spread-list{flex-direction:row;gap:8px;overflow-x:auto;overflow-y:hidden;padding:6px 10px}.layout-spread-thumb{width:94px;min-width:94px;height:64px;padding:3px 3px 16px}.layout-spread-thumb .layout-canvas{height:42px;aspect-ratio:auto!important}.layout-spread-thumb small{bottom:2px;font-size:var(--fs-micro)}.layout-drawer{inset:auto 0 0 0;width:100%;height:min(56dvh,480px);border-left:0;border-top:1px solid #d9dbd6;box-shadow:0 -12px 30px #1b241b1a;padding:10px 12px;animation:layout-drawer-up .18s ease-out}.layout-drawer.is-closing{animation-name:layout-drawer-down}.layout-drawer-head h2{font-size:var(--fs-base)}.layout-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.layout-photo-grid span{display:none}.layout-photo-tabs{padding-bottom:4px}.layout-stage-footer{height:36px}}
@media(max-width:380px){.layout-variant-control select{max-width:105px}.layout-pdf{font-size:0!important}.layout-pdf::after{content:'PDF';font-size:var(--fs-caption)}.layout-print{font-size:0!important}.layout-print::after{content:'JPEG ↓';font-size:var(--fs-caption)}}

@keyframes layout-drawer-up{from{transform:translateY(16px);opacity:.7}to{transform:translateY(0);opacity:1}}
.layout-spreads-head h2 span{margin-left:4px;color:#93988e;font-weight:400}.layout-add-spread{width:27px;height:27px;display:grid;place-items:center;border-radius:5px;background:#e9ede3;color:#273126;font-size:var(--fs-title);line-height:1}.layout-add-spread:hover{background:#d9e1d1}
.layout-stage{grid-template-rows:minmax(0,1fr) 54px}.layout-stage-footer{gap:14px}.layout-stage-footer>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layout-page-nav{display:flex;gap:6px;flex:none;margin-left:auto}button.layout-text.empty{outline:1px dashed #9b9f95;outline-offset:-1px;color:#737a6f!important;display:grid;place-items:center;font-family:"Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;font-size:var(--fs-small)!important}
@media(max-width:700px){.layout-stage{grid-template-rows:minmax(0,1fr) 44px}.layout-page-nav{margin-left:0}}
.layout-remove-spread{width:27px;height:27px;flex:none;display:grid;place-items:center;border-radius:5px;background:#f1e9e6;color:#9b4a39;font-size:var(--fs-title);line-height:1}.layout-remove-spread:hover{background:#ead8d1}
.layout-photo-grid button{position:relative}.layout-photo-grid button em{position:absolute;left:6px;top:6px;font-style:normal;font-size:var(--fs-micro);line-height:1.3;padding:3px 6px;border-radius:5px;background:#e9f2df;color:#526739}

.layout-unprinted{position:absolute;top:0;bottom:0;width:50%;display:grid;place-items:center;background:repeating-linear-gradient(135deg,#f5f3f7 0 6px,#ebe7ef 6px 7px);color:#8d8595;font-size:var(--fs-caption);pointer-events:none}
.layout-unprinted span{padding:4px 8px;border-radius:6px;background:#ffffffd9}

/* Order tab «Макет» once built: the album flips on the left, the side column as on the build setup. */
.lr-material.lv-album{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;padding:22px}.lv-album.solo{grid-template-columns:minmax(0,1fr)}
.lv-people{display:flex;flex-direction:column;gap:2px;max-height:680px;overflow:auto}
.lv-person{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 8px;border-radius:9px;background:none;font-size:var(--fs-body);text-align:left}
.lv-person:hover{background:#f6f7f2}.lv-person.active{background:#f0f1ec;font-weight:600}.lv-person>span:not(.ava){flex:1;min-width:0}
.lv-person .ava{position:relative;display:grid;place-items:center;width:34px;height:34px;flex:none;overflow:hidden;border-radius:50%;background:#efeee9;color:#9a9c92;font-size:var(--fs-caption);font-weight:600}
.lv-person .ava img{width:100%;height:100%;object-fit:cover}.lv-person .ava img.face{position:absolute;left:50%;top:50%;height:auto;max-width:none;object-fit:initial}
.lv-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#e3b53a}
.lv-viewer{min-width:0}
.lv-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}.lv-head>span{flex:1}
.lv-step{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff}.lv-step:disabled{opacity:.35}
.lv-spread .layout-canvas{width:100%;box-shadow:0 6px 30px #1d18230f,0 0 0 1px #e4e5de}
.lv-thumbs{display:flex;gap:8px;margin-top:14px;overflow-x:auto;padding:2px}
.lv-thumbs button{flex:0 0 92px;padding:0;background:none;opacity:.6}.lv-thumbs button.active{opacity:1}
.lv-thumbs .layout-canvas{width:100%;box-shadow:0 0 0 1px #e4e5de}.lv-thumbs .layout-unprinted span{display:none}.lv-thumbs button.active .layout-canvas{box-shadow:0 0 0 2px #242522}
.lv-issues h3{font-size:var(--fs-body);margin:0 0 8px}
.lr-side .lr-build{display:flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}
@media(max-width:700px){.lr-material.lv-album{grid-template-columns:1fr;padding:14px}.lv-people{flex-direction:row;overflow-x:auto;max-height:none}.lv-person{flex:none}}

/* Order tab «Макет» before the first build: the album's material on the left, what is missing on the right. */
.layout-ready{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.lr-material,.lr-side{background:#fff;border:1px solid #e4e5de;border-radius:15px}
.lr-material{padding:6px 26px}
.lr-section{padding:18px 0;border-bottom:1px solid var(--line)}.lr-section:last-child{border-bottom:0}
.lr-section header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.lr-section h3{margin:0;font-size:var(--fs-base);font-weight:600}.lr-section header .text-button{padding:0;font-size:var(--fs-small);color:var(--muted)}.lr-section header .text-button:hover{color:#242522}
.lr-section .muted.small{margin:0}
.lr-faces{display:flex;flex-wrap:wrap;gap:6px}
.lr-faces i.lr-more{background:#f1f1ee}.lr-faces i{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;overflow:hidden;background:#eceeea;font-style:normal;font-size:var(--fs-small);font-weight:600;color:#6c6f64}
.lr-faces img{width:100%;height:100%;object-fit:cover;object-position:center 25%}
.lr-portraits i{width:46px;height:58px;border-radius:8px}.lr-faces i.lr-blank{background:repeating-linear-gradient(135deg,#f3f3f1 0 6px,#e9e9e6 6px 7px)}
.lr-side{position:sticky;top:16px;display:grid;gap:14px;padding:22px}
#ls-gaps{display:grid;gap:12px}.lr-side h2{margin:0;font-size:var(--fs-title)}.lr-side>p{margin:-8px 0 0;font-size:var(--fs-body)}
.lr-retouch{display:grid;gap:8px;padding-top:2px}.lr-retouch[hidden]{display:none}.lr-retouch>div{display:grid;gap:2px}.lr-retouch .add-menu{justify-self:stretch}.lr-retouch .rt-toggle{display:flex;width:100%}.lr-retouch .rt-toggle progress{flex:1;width:auto}.lr-retouch .rt-toggle::after{margin-left:auto}.lr-retouch b{font-size:var(--fs-body);font-weight:600}.lr-retouch small{font-size:var(--fs-small);color:var(--muted)}
.lr-build{width:100%;justify-content:center}.lr-side .error{margin:0}.lr-side .error:empty{display:none}
@media(max-width:980px){.layout-ready{grid-template-columns:1fr}.lr-side{position:static;order:-1}}
@media(max-width:560px){.lr-material{padding:4px 18px}.lr-side{padding:18px}}
/* Hover for the «Макет» tab's own controls; buttons darken by the common rule in v2.css. */
.lv-step,.lv-thumbs button,.lv-person,.lr-side .text-button{transition:background .15s,color .15s,box-shadow .15s,opacity .15s}
.lv-step:not(:disabled):hover{background:#f3f4ef;border-color:#d6d7cf}
.lv-thumbs button:hover{opacity:1}
.lr-side .text-button:not(:disabled):hover{color:#242522}
.lr-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:start}.lr-head p{grid-column:1/-1;margin:0}
.lr-tools{display:flex;gap:6px;margin-top:-4px}
.lr-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f0f0ef;color:#3d3b42}.lr-icon:hover:not(:disabled){background:#e6e6e4}.lr-icon:disabled{color:#b9b7be;background:#f6f6f5;cursor:not-allowed}
.lr-state{padding:0}.lr-side .check-summary{padding:0 0 6px}
.lr-side .check-issue{padding:8px 0;gap:0 10px;align-items:flex-start}.lr-side .check-issue .notify-text{flex:1 1 0}.lr-side .check-issue:hover{background:none}
.lr-side .check-issue .notify-ico{width:20px;height:20px}
.lr-side .check-actions{flex:1 0 100%;justify-content:flex-start;margin:2px 0 0 30px}
