/* Мастерская 1.1 — применяется только к закрытой админке. */
.admin-body{--admin-deep:#0c211f;--admin-surface:#112c29;--admin-line:#607c70;--admin-muted:#b9cbbd;--admin-cream:#f3ebdd;--admin-orange:#ed7929;background:var(--admin-deep);color:var(--admin-cream);min-height:100vh;font-family:var(--body)}
.admin-body *{box-sizing:border-box}
.admin-body a{color:var(--admin-cream)}
.admin-body :focus-visible{outline:3px solid #ffae62;outline-offset:3px}
.admin-top{min-height:94px;background:#102927;color:var(--admin-cream);padding:12px clamp(20px,3vw,48px);border-bottom:1px solid #718c7a;gap:24px}
.admin-brand{display:flex;align-items:center;gap:14px;text-decoration:none;min-width:0}
.admin-brand img{width:106px;height:55px;object-fit:contain;flex:none}
.admin-brand span{display:flex;flex-direction:column;gap:4px;min-width:0}
.admin-brand strong{font-size:15px;line-height:1.2;font-weight:700}
.admin-brand small{color:var(--admin-muted);font-size:12px;letter-spacing:.06em}
.admin-top-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.admin-top-actions a{color:var(--admin-cream);font-size:14px;text-underline-offset:5px}
.admin-shell{max-width:none;min-height:calc(100vh - 94px);grid-template-columns:250px minmax(0,1fr);margin:0}
.sidebar{position:relative;isolation:isolate;padding:34px 18px 160px 28px;background:#0b2522;border-right:1px solid #708778;min-width:0}
.sidebar::before{content:"";position:absolute;left:0;top:0;bottom:0;width:26px;background:url('/static/decor/render/foliage.png') left top/47px auto repeat-y;opacity:.35;pointer-events:none;z-index:-1}
.sidebar::after{content:"";position:absolute;bottom:28px;left:34px;right:18px;height:84px;background:url('/static/decor/render/landscape.png') center bottom/contain no-repeat;opacity:.5;pointer-events:none}
.sidebar button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;margin:0 0 5px;padding:9px 12px;color:#d8e3d6;border:1px solid transparent;border-radius:3px;font-size:14px;font-weight:600;white-space:normal}
.sidebar button img{width:19px;height:19px;object-fit:contain;filter:brightness(0) invert(.85);flex:none}
.sidebar button:hover{color:#fff;background:#23433a}
.sidebar button.selected{background:#d56720;border-color:#ee9953;color:#fffaf0}
.sidebar button.selected img{filter:brightness(0) invert(1)}
.sidebar-caption{font-size:10px;letter-spacing:.13em;color:#9cb7a5;margin:34px 12px 8px}
.sidebar .help{font-size:12px;line-height:1.5;color:#a9bdb0;margin:0 12px}
.admin-main{min-width:0;padding:clamp(24px,3.6vw,58px);background:linear-gradient(135deg,#112d29,#0e2523 70%);position:relative}
.admin-main::after{content:"";display:block;clear:both;height:24px;margin-top:46px;background:url('/static/decor/render/border.png') center/auto 20px repeat-x;opacity:.7;pointer-events:none}
.admin-main h1,.admin-main h2,.admin-main h3{color:var(--admin-cream)}
.admin-main h1{font-family:var(--display);font-size:clamp(36px,3.7vw,58px);line-height:1.06;letter-spacing:.01em;margin:0 0 16px}
.admin-main h2{font-family:var(--display);font-size:29px;line-height:1.15}
.admin-main h3{font-size:18px}
.admin-main p{line-height:1.6}
.admin-body .eyebrow{color:#f0a261;letter-spacing:.14em;font-size:11px;font-weight:700}
.admin-body .help,.admin-body .quota-intro{color:#c0cfc3}
.admin-body .secondary{background:transparent;border-color:#8ba596;color:var(--admin-cream)}
.admin-body .secondary:hover{background:#284a40;color:#fff}
.admin-body button,.admin-body .button{border-radius:3px}
.admin-body button:not(.secondary):not(.danger):not(.sidebar button){background:#c95c1b;border-color:#df8a49;color:#fff}
.admin-body button:disabled{opacity:.5}
.admin-body .danger{background:#963b2e;border-color:#c26d5a;color:white}
.admin-body input,.admin-body textarea,.admin-body select{background:#f6f0e4;border:1px solid #afc2b1;color:#1e302b;border-radius:2px;max-width:100%}
.admin-body .field label{color:#e5e9dd;font-weight:600}
.admin-body .field input[type=checkbox]{accent-color:#e77b2d}
.admin-body .block-editor,.admin-body .media-item{background:#17332e;border:1px solid #668679;color:#f3ebdd}
.admin-body .block-editor{padding:20px;margin:18px 0}
.admin-body .media-item{overflow-wrap:anywhere}
.admin-body .media-item img{background:#e5e0d3}
.admin-body .status{border-color:#a5c0aa;background:#27483d;color:#f3ebdd}
.admin-body .template-info{background:#253d35;border-color:#ed7929;color:#f3ebdd}
.admin-body .empty{border-color:#88a196;color:#d2ded3}
.admin-body .list-row{border-color:#49685c}
.admin-body .live-preview{background:#1d3932;border:1px solid #7f9b88;color:#f3ebdd}
.admin-body .preview-canvas{background:#789086}
.admin-body .appearance{border-color:#638475}
.admin-body .appearance summary{color:#f3ebdd}
.admin-body .check-label{color:#e9eee3}
.admin-body .toast{background:#26483c;color:#fff;border:1px solid #9eb9a2}
.admin-body .login{max-width:500px;margin:7vh auto;padding:40px;background:#15332d;border:1px solid #7e9d88;box-shadow:0 20px 60px #0004}
.admin-body .login h1{color:#f3ebdd;font:48px/1.1 var(--display)}
.admin-body .login p{line-height:1.6;color:#d6e2d5}
.admin-body #login-error,.admin-body #editor-error{color:#ffd2a5}
.admin-main .quota-intro{font-size:15px;margin:0 0 24px}
.quota-providers{display:grid;gap:0;margin-top:24px;border-top:1px solid #8ba592}
.workshop-provider{display:grid;grid-template-columns:minmax(145px,190px) minmax(0,1fr);gap:20px;align-items:center;padding:24px 0;border-bottom:1px solid #668778;min-width:0}
.provider-identity{display:flex;align-items:center;gap:12px;min-width:0}
.provider-identity h2{margin:0!important;font:clamp(23px,2vw,31px)/1.1 var(--display);overflow-wrap:anywhere}
.provider-mascot{width:65px;height:65px;object-fit:contain;flex:none}
.provider-state{display:inline-block;margin-top:8px;color:#b8cbbc;font-size:12px;line-height:1.3}
.provider-state.active{color:#c0debe}
.workshop-buckets{min-width:0}
.workshop-bucket+.workshop-bucket{border-top:1px solid #4c6b60;margin-top:18px;padding-top:18px}
.workshop-bucket-info{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#bbd0c1;font-size:12px;margin:0 0 12px;flex-wrap:wrap}
.workshop-bucket-info strong{color:#e5eadf}
.workshop-windows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.workshop-meter{border-left:1px solid #567567;padding-left:20px;min-width:0}
.workshop-label{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.workshop-period{color:#e7ecdd;text-transform:uppercase;font-size:12px;letter-spacing:.08em;font-weight:700}
.workshop-label strong{color:#ffa253;font:clamp(30px,2.8vw,45px)/1 var(--display)}
.workshop-label strong small{font:20px var(--body);margin-left:2px}
.workshop-scene{position:relative;height:76px;min-width:0;overflow:hidden}
.stock-scene{border-bottom:2px solid #8f714d}
.soil-reserve{position:absolute;width:min(230px,90%);height:72px;left:6%;bottom:0;transform:scaleY(var(--reserve,0));transform-origin:bottom;transition:transform .5s ease}
.soil-reserve img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.trench-scene{border-bottom:2px solid #a47c4d}
.trench{position:absolute;bottom:0;left:2%;right:3%;height:30px;background:#081916;border:2px solid #aa8b62;border-radius:0 0 40% 10%;overflow:hidden}
.trench-fill{position:absolute;left:0;bottom:0;top:0;background-image:url('/static/admin-art/soil.png');background-size:auto 34px;background-position:left bottom;background-repeat:repeat-x;transition:width .5s ease}
.trench-worker{position:absolute;bottom:0;width:84px;height:70px;object-fit:contain;transform:translateX(-55%);transition:left .5s ease}
.workshop-meta{font-size:12px;color:#c5d4c6;margin-top:10px;line-height:1.5}
.workshop-unavailable{min-height:82px;padding:18px 22px;border-left:1px solid #567567;color:#b8cbbc}
.workshop-unavailable strong{color:#e7ecdd;font-size:14px}
.workshop-unavailable p{font-size:13px;margin:6px 0 0}
.is-unavailable .provider-mascot{opacity:.68}
.quota-notice{background:#67421f;color:#fff0d9;border-left:3px solid #f29542;padding:10px 12px;font-size:13px;line-height:1.5}
.quota-expired .workshop-scene{opacity:.45}
.quota-footnote{max-width:900px;margin-top:24px;line-height:1.7!important}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.block-reserve{display:flex;align-content:flex-end;align-items:flex-end;justify-content:flex-start;flex-wrap:wrap;gap:2px;padding:0 6% 4px;border-bottom:2px solid #987652}
.block-reserve span,.laid-block,.laying-block{width:24px;height:13px;background:#c9ac7b;border:1px solid #6f573d;box-shadow:inset 1px 1px #e4d3ac}
.block-reserve.gemini span,.paving-scene.gemini .laid-block,.paving-scene.gemini .laying-block{width:30px;height:10px;background:#cfc1a2}
.paving-ground{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:end;gap:1px;border-bottom:3px solid #987652}
.laying-block{transform:translateY(-6px) rotate(-14deg);opacity:.85}
.paving-scene img{position:absolute;bottom:0;transform:translateX(-50%);width:75px;height:70px;object-fit:contain}
@media(max-width:1150px){.admin-shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding-left:26px}.workshop-provider{grid-template-columns:130px minmax(0,1fr)}.provider-identity{display:block}.provider-mascot{width:55px;height:55px}}
@media(max-width:850px){.admin-shell{display:block}.sidebar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible;padding:16px;background:#0b2522;border-right:0;border-bottom:1px solid #708778}.sidebar::before,.sidebar::after{display:none}.sidebar button{margin:0;white-space:normal;min-width:0;justify-content:center;text-align:center;font-size:12px}.sidebar button img{width:16px;height:16px}.sidebar-caption,.sidebar .help{grid-column:1/-1;margin:4px 0}.sidebar .help{display:block}.admin-main{padding:24px 20px}.workshop-provider{grid-template-columns:1fr}.provider-identity{display:flex}.provider-mascot{width:56px;height:56px}}
@media(max-width:560px){.admin-top{padding:12px 16px}.admin-brand img{width:80px;height:43px}.admin-brand strong{font-size:13px}.admin-top-actions{gap:10px}.admin-top-actions a{font-size:12px}.sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar button{justify-content:flex-start;text-align:left}.workshop-windows{grid-template-columns:1fr;gap:20px}.workshop-meter{padding-left:14px}.title-row{align-items:flex-start}.admin-body .login{margin:20px 16px;padding:24px}.workshop-provider{padding:20px 0}}
@media(prefers-reduced-motion:reduce){.soil-reserve,.trench-fill,.trench-worker{transition:none}}

.workshop-meter.quota-warning .workshop-label strong{color:#f3b374}.workshop-meter.quota-critical .workshop-label strong{color:#ff8f72}

/* Композиция по согласованному рендеру: рамка, резьба и панорама. */
.admin-body{background:#061d1a}
.admin-top{min-height:76px;background:#061d1a;border:0;padding:10px 2.3%}
.admin-brand img{width:80px;height:50px}
.admin-brand strong{font:24px/1 var(--display)}
.admin-brand small{font-size:11px}
.admin-shell{margin:0 1.2% 20px;min-height:calc(100vh - 96px);grid-template-columns:300px minmax(0,1fr);grid-template-rows:1fr auto;background:#08221d;border:2px solid #ceb781;border-radius:26px;overflow:hidden;box-shadow:inset 0 0 0 3px #315142,0 12px 35px #0006}
.sidebar{grid-row:1;padding:34px 16px 130px 102px;background:#071e19;border-right:1px solid #af9c73}
.sidebar::before{width:85px;background:url('/static/decor/render/foliage.png') left top/84px auto repeat-y;opacity:.9;z-index:-1}
.sidebar::after{left:105px;bottom:40px;height:140px;opacity:.8}



.sidebar button{min-height:45px;font-size:15px;font-weight:600;border-radius:9px;gap:12px;margin-bottom:5px;color:#f4edda}
.sidebar button.selected{background:#dc711e;border:1px solid #ffb16a;box-shadow:inset 0 0 0 1px #e59450,0 3px 9px #0008}
.sidebar button img{width:22px;height:22px}
.admin-main{padding:22px 2.4% 18px;background:#09231e}
.admin-main::after{display:none}
.admin-footer{grid-column:1 / -1;grid-row:2;min-width:0;min-height:0;height:auto;aspect-ratio:1442 / 160;background:url('/static/admin-art/workshop-footer.png') center bottom/cover no-repeat;position:relative;border-top:1px solid #b7a376}
.admin-footer::after{content:"";position:absolute;left:0;right:0;bottom:0;height:23px;background:url('/static/decor/render/border.png') center/auto 23px repeat-x}
.admin-main .eyebrow{color:#c9b78f}
.admin-main h1{font-size:clamp(36px,3.3vw,55px);text-transform:uppercase}
.admin-main .quota-intro{margin:0 0 10px}
.quota-providers{margin-top:14px;border-top:2px solid #b6a273}
.workshop-provider{grid-template-columns:minmax(150px,200px) minmax(0,1fr);gap:14px;padding:13px 0;border-color:#ad9d76}
.provider-identity{align-self:stretch;border-right:1px solid #c0ad81;padding-right:12px}
.provider-identity h2{font-size:clamp(24px,2.2vw,38px);text-transform:uppercase}
.provider-mascot{width:64px;height:64px;border:1px solid #c6ae78;border-radius:14px;padding:5px}
.workshop-bucket-info{margin:0 0 4px;color:#bcbea7}
.workshop-windows{gap:8px}
.workshop-meter{padding-left:10px;border:0;position:relative}
.workshop-meter+.workshop-meter:before{content:'»';position:absolute;left:-12px;top:55%;font:40px/1 var(--display);color:#e6d5ad}
.workshop-label{justify-content:flex-start;gap:10px}
.workshop-period{font:700 clamp(12px,1.05vw,16px)/1.2 var(--body);letter-spacing:0;color:#f5e7c7}
.workshop-label strong{font:clamp(32px,3.3vw,49px)/1 var(--display);color:#f68b2d}
.workshop-scene{height:115px;overflow:visible}
.stock-scene,.trench-scene,.block-reserve{border:0}
.soil-reserve{left:0;width:55%;height:92px}
.stock-worker{position:absolute;right:0;bottom:0;width:44%;height:115px;object-fit:contain;object-position:center bottom}
.trench-scene{overflow:hidden}
.trench{left:0;right:0;bottom:3px;height:48px;border-radius:45% 8% 14% 16%;border:2px solid #bca277;background:#261e13}
.trench-fill{background-size:auto 46px}
.trench-worker{height:100px;width:105px;bottom:15px;z-index:2}
.block-reserve{display:block;padding:0;border-bottom:2px solid #9b835f}
.reserve-blocks{position:absolute;left:5%;bottom:4px;width:52%;height:70px;display:flex;flex-wrap:wrap-reverse;align-content:flex-start;gap:2px}
.reserve-blocks span,.laid-block,.laying-block{width:calc(20% - 2px);height:22px;border:1px solid #8b6442;background:linear-gradient(155deg,#f0d19b,#a57648);box-shadow:inset 0 2px #f8dfb3,2px 2px #604631}
.block-reserve.gemini span,.paving-scene.gemini .laid-block,.paving-scene.gemini .laying-block{width:calc(20% - 2px);height:16px;background:linear-gradient(155deg,#e9dfc4,#ac9b80)}
.paving-ground{bottom:4px}
.paving-ground .laid-block,.paving-ground .laying-block{width:9.5%;flex:0 0 9.5%}
.paving-scene img{width:115px;height:100px;bottom:7px}
.workshop-meta{margin-top:4px;font-size:11px}
.workshop-unavailable{padding:0 0 0 10px;border:0;min-height:130px;position:relative}
.unavailable-info{position:absolute;top:24px;left:0;right:0;z-index:1;text-align:center;padding:4px;background:#09231edb}
.unavailable-info p{margin:2px 0;font-size:12px}
.unavailable-scenes{display:grid;grid-template-columns:1fr 1fr;gap:20px;height:125px;opacity:.5}
.unavailable-scenes>div{position:relative;border-bottom:1px solid #9b835f}
.unavailable-scenes span{font-size:11px;font-weight:700;color:#f3ebdd}
.unavailable-scenes img{position:absolute;bottom:0;right:15%;width:100px;height:90px;object-fit:contain}
@media(max-width:1150px){.admin-shell{grid-template-columns:235px minmax(0,1fr)}.sidebar{padding-left:75px}.sidebar::before{width:62px;background-size:62px auto}.sidebar::after{left:80px}.workshop-provider{grid-template-columns:150px minmax(0,1fr)}.provider-identity{display:flex}.provider-mascot{width:50px;height:50px}}
@media(max-width:850px){.admin-shell{display:flex;flex-direction:column;margin:0 8px 12px;border-radius:15px}.sidebar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:14px 16px;gap:6px;border-right:0;border-bottom:1px solid #ae9b72}.sidebar::before,.sidebar::after{display:none}.sidebar button{font-size:12px;min-height:42px}.admin-main{padding:24px 18px}.admin-footer{height:145px;aspect-ratio:auto}.workshop-provider{grid-template-columns:1fr;gap:10px}.provider-identity{border:0;padding:0}.provider-mascot{width:52px;height:52px}.workshop-meter+.workshop-meter:before{display:none}}
@media(max-width:560px){.admin-top{padding:10px 16px}.admin-brand img{width:66px}.admin-brand strong{font-size:17px}.sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar button{justify-content:flex-start}.workshop-windows{grid-template-columns:1fr;gap:16px}.workshop-meter+.workshop-meter{border-top:1px solid #756e51;padding-top:12px}.workshop-scene{height:105px}.stock-worker{height:100px}.admin-footer{height:120px;background-position:25% bottom}.unavailable-scenes{gap:8px}.unavailable-scenes img{width:65px;right:4%}.unavailable-scenes span{font-size:9px}}
/* Гравюрная траншея — отдельный фон; засыпанная часть зависит от расхода. */
.trench{bottom:0;left:0;right:0;height:95px;border:0;border-radius:0;background:transparent url('/static/admin-art/trench-empty.png') center bottom / 100% 100% no-repeat;overflow:visible}
.trench-fill{top:auto;bottom:20px;left:8%;height:29px;max-width:84%;background-size:auto 38px;background-repeat:repeat-x}
