:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#172924;background:#f3f5f0}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:1100px;margin:auto}header{display:flex;justify-content:space-between;align-items:center;padding:30px 32px;border-bottom:1px solid #dce2d9}.brand{font-size:23px;font-weight:850;letter-spacing:-1px}.brand span{color:#568259}.tag{font-size:13px;background:#e3ebdd;padding:8px 13px;border-radius:20px}main{padding:52px 32px}.eyebrow,.label{font-size:11px;letter-spacing:2px;font-weight:700;color:#647767}h1{font-size:clamp(38px,6vw,62px);line-height:1.06;letter-spacing:-2px;margin:16px 0 22px}.intro{max-width:640px;font-size:18px;line-height:1.6;color:#59695f}.status{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#19382e;color:#f7faf3;padding:28px 32px;border-radius:18px;margin:38px 0 24px}.status .label{color:#b2c7b6}.status h2{font-size:26px;margin:12px 0}.status p:last-child{font-size:13px;color:#c2d1c5}button{background:#d8ec9a;border:0;border-radius:9px;padding:14px 18px;cursor:pointer;font-weight:650;color:#19382e}button:focus-visible{outline:3px solid white;outline-offset:4px}button:disabled{opacity:.6;cursor:wait}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}article{background:#fff;border:1px solid #dfe5da;border-radius:14px;padding:26px}.number{font-size:13px;color:#708666}article h2{font-size:18px;margin-top:24px}article p,.note{font-size:14px;line-height:1.65;color:#637267}.note{margin:26px 0 0;max-width:800px}footer{padding:24px 32px;border-top:1px solid #dce2d9;color:#738174;font-size:12px}@media(max-width:650px){header{padding:22px}.tag{font-size:11px}main{padding:32px 22px}.status{align-items:flex-start;flex-direction:column;padding:24px}.cards{grid-template-columns:1fr}article h2{margin-top:14px}}
:root{color-scheme:light}[hidden]{display:none!important}.header-actions,.user-actions{display:flex;gap:12px;align-items:center}.secondary{background:#e6ebdf;color:#244534}.form-card{max-width:530px;background:white;border:1px solid #dfe5da;border-radius:16px;padding:30px;margin:28px 0}label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:650;margin-bottom:20px}input{font:inherit;font-weight:400;border:1px solid #a9b9ad;border-radius:8px;padding:13px;min-width:0;width:100%;color:#172924;background:white}input:focus{outline:2px solid #527c59;outline-offset:2px}.hint{font-size:13px;line-height:1.6;color:#627165;font-weight:400}.form-card button{margin:4px 8px 4px 0}.error,.success{padding:15px 20px;border-radius:8px;margin-bottom:24px}.error{background:#fce4de;color:#8c2a20}.success{background:#e5efd9;color:#2f562f}.section-heading{margin:38px 0 20px;display:flex;gap:20px;align-items:center;justify-content:space-between}.inline-form{display:flex;gap:16px;align-items:center}.inline-form label{flex:1;margin:0}.inline-form button{margin-top:25px}.user-row{display:flex;align-items:center;justify-content:space-between;padding:20px;background:white;border-bottom:1px solid #dfe5da}.user-row p{margin:5px 0 0}.secret-card{padding:24px;border:2px solid #8eaa59;border-radius:12px;background:#f6fadf;margin:20px 0}.secret-card code{display:block;font-size:18px;overflow-wrap:anywhere;padding:14px;background:white;user-select:all}.audit-row{font-size:13px;line-height:1.6;border-bottom:1px solid #dfe5da;padding:10px 0}button:focus-visible{outline-color:#527c59}@media(max-width:650px){.header-actions{flex-direction:column;align-items:flex-end;gap:6px}.inline-form,.user-row{flex-direction:column;align-items:stretch;gap:18px}.inline-form button{margin:0}.user-actions{flex-wrap:wrap}.form-card{padding:22px}.section-heading{display:block}}
#catalog-panel{margin:48px 0}.inline-form select{width:100%;padding:14px;border:1px solid #cdd5cc;border-radius:10px;background:#fff;font:inherit;max-width:100%}.inline-form label{min-width:0}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.product-card{background:white;border:1px solid #dce2d7;border-radius:18px;overflow:hidden}.product-card img,.photo-missing{width:100%;height:190px;object-fit:contain;background:#e9ede5}.photo-missing{display:flex;align-items:center;justify-content:center;color:#687768}.product-body{padding:20px}.product-body h3{font-size:18px;line-height:1.4;overflow-wrap:anywhere;margin:12px 0}.product-body p{overflow-wrap:anywhere}.catalog-pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin:24px 0}#catalog-detail{max-width:none;scroll-margin-top:20px}#catalog-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#catalog-gallery img{width:100%;height:300px;object-fit:contain;border-radius:12px}button:disabled{opacity:.5;cursor:default}@media(max-width:900px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.product-grid,#catalog-gallery{grid-template-columns:1fr}.catalog-pagination{gap:10px}.product-card img{height:230px}}
.gallery-photo{display:block;background:transparent;padding:0;border:0;border-radius:12px;cursor:zoom-in;width:100%}.gallery-photo:focus-visible{outline:3px solid #406d4d;outline-offset:3px}.photo-viewer-open{overflow:hidden}.photo-viewer{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:16px;border:0;background:#101915;color:#fff;box-sizing:border-box}.photo-viewer::backdrop{background:#101915}.photo-viewer[open]{display:flex;flex-direction:column}.viewer-head{display:flex;align-items:center;gap:20px;flex-shrink:0}.viewer-title{flex:1;margin:0;font-size:16px;overflow-wrap:anywhere}.viewer-count{white-space:nowrap}.viewer-close,.viewer-arrow{background:#e4eddd;color:#162c22;flex-shrink:0}.viewer-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:12px}.viewer-image{min-width:0;max-width:calc(100% - 128px);width:auto;height:100%;object-fit:contain;touch-action:pan-y pinch-zoom;user-select:none}.viewer-arrow{font-size:36px;padding:12px 18px}.viewer-help{text-align:center;color:#b9c9be;font-size:13px;margin:10px 0 0}.viewer-error{flex:1;text-align:center}@media(max-width:600px){.photo-viewer{padding:10px}.viewer-head{gap:10px;flex-wrap:wrap}.viewer-title{flex-basis:100%;font-size:13px;max-height:54px;overflow:auto}.viewer-count{flex:1}.viewer-close{padding:10px 14px}.viewer-stage{gap:4px}.viewer-arrow{padding:10px;font-size:30px}.viewer-image{max-width:calc(100% - 80px)}}

#operations-panel{margin-top:38px}#operations-cards .form-card{margin:0;max-width:none;padding:22px}#operations-cards strong{font-size:20px}#operations-cards h3{margin-top:0}

.cabinet-nav{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0}.cabinet-nav a{color:#244534;background:#e6ebdf;padding:12px 16px;border-radius:9px;text-decoration:none;font-weight:650}.cabinet-nav a:focus-visible{outline:3px solid #527c59;outline-offset:3px}#operations-panel,#owner-panel,#catalog-panel{scroll-margin-top:20px}

#history-panel{margin-top:38px;scroll-margin-top:20px}.history-event{margin:12px 0;padding:20px}.history-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.history-event h3{margin:12px 0}.history-event p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.history-change{background:#eef3e7;padding:12px;border-radius:8px}.history-result{font-weight:650}.history-event summary{cursor:pointer;color:#244534}#history-form{flex-wrap:wrap}#history-form label{min-width:180px;flex:1}#history-form select{max-width:100%}

.product-body .stock-quantity,#catalog-detail-fields .stock-quantity{display:table;font-size:20px;font-weight:800;line-height:1.4;padding:8px 12px;border-radius:8px}.stock-zero{color:#a61b1b;background:#fde9e7;border:1px solid #f1beb8}.stock-positive{color:#176336;background:#e5f4e8;border:1px solid #b3dbbd}.stock-unknown{color:#665229;background:#f4efe3;border:1px solid #ded3b8}

.access-tabs{display:flex;gap:10px;margin:20px 0}.telegram-user{padding:20px;margin:12px 0}.telegram-user h3{margin:0}.telegram-user button{margin-right:10px}.rights-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.right-option{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0}.right-option input{width:20px;height:20px;flex:none;accent-color:#24663c}.history-columns,.history-summary{display:grid;grid-template-columns:145px 1fr 1.3fr 85px 1.5fr 1.3fr;gap:12px;align-items:start}.history-columns{font-size:12px;color:#637267;padding:10px 14px;font-weight:700}details.history-event{padding:0;margin:0;border-radius:0;border-bottom:0}details.history-event:last-child{border-bottom:1px solid #dfe5da}.history-summary{padding:12px 14px;font-size:13px;cursor:pointer;list-style:none}.history-summary::-webkit-details-marker{display:none}.history-cell{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.history-cell:first-child{font-variant-numeric:tabular-nums}.history-expanded{padding:12px 20px;background:#f3f7ef;border-top:1px solid #dfe5da}.history-event[open] .history-summary{background:#e6eedf}.history-summary:focus-visible{outline:3px solid #527c59;outline-offset:-3px}@media(max-width:750px){.history-columns{display:none}.history-summary{grid-template-columns:1fr 1fr;gap:6px 14px}.history-cell:before{content:attr(data-label) ': ';color:#637267;font-size:11px}.rights-grid{grid-template-columns:1fr}}
.viewer-viewport{flex:1;min-width:0;height:100%;overflow:auto;touch-action:pan-x pan-y pinch-zoom}.viewer-viewport .viewer-image{display:block;max-width:none;max-height:none;margin:auto;touch-action:pan-x pan-y pinch-zoom}.viewer-zoom{display:flex;gap:6px}.viewer-zoom button{padding:8px 12px}.photo-edit-panel{border-top:1px solid #dde4d8;margin-top:18px;padding-top:16px}.photo-edit-list{display:grid;gap:12px;margin:16px 0}.photo-edit-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border:1px solid #dce3d8;border-radius:12px;padding:10px}.photo-edit-row img{width:80px;height:80px;object-fit:contain}.photo-edit-row button{padding:8px 12px}.photo-edit-row strong{flex:1;min-width:100px}
