:root{
  --bg:#f6f2e8;
  --bg-soft:#fffaf0;
  --panel:#ffffff;
  --panel-soft:#fffdf8;
  --line:#e6ddca;
  --text:#101318;
  --muted:#6e6a61;
  --black:#111315;
  --black-2:#1a1d20;
  --yellow:#ffd400;
  --yellow-2:#ffca00;
  --yellow-soft:#fff7c8;
  --green:#1c9b50;
  --red:#cf3f3f;
  --shadow:0 14px 36px rgba(34,29,20,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:radial-gradient(circle at 82% 10%,rgba(255,212,0,.13),transparent 26%),linear-gradient(180deg,#fffdf8 0,#f6f2e8 100%);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
a{color:#9b7600;text-decoration:none}a:hover{color:#6f5400}
.top{position:sticky;top:0;z-index:50;min-height:66px;background:var(--black);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:3px solid var(--yellow);box-shadow:0 10px 26px rgba(0,0,0,.12)}
.top strong{font-size:22px;letter-spacing:-.03em;color:#fff}.top strong::after{content:" • Manager";color:var(--yellow);font-weight:900}.top span{margin-left:8px;color:#b9bec6}.top a{color:#f3f3f3}.top a:hover{color:var(--yellow)}.top>div:last-child{display:flex;align-items:center;gap:14px}.top small{color:#aeb4bd}
.wrap{max-width:1320px;margin:0 auto;padding:32px 30px 48px}
.hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:22px;padding:4px 2px}.hero h1{position:relative;margin:0 0 8px;padding-left:18px;font-size:38px;line-height:1.03;letter-spacing:-.04em;color:#111315}.hero h1:before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:7px;border-radius:99px;background:var(--yellow)}.hero p{margin:0;color:#68645b;max-width:770px}.hero:after{content:"";display:block;width:190px;height:8px;border-radius:999px;background:linear-gradient(90deg,var(--yellow),rgba(255,212,0,0))}
.tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.tabs a{padding:11px 16px;border-radius:14px;text-decoration:none;color:#2b2d31;background:#f0ece3;border:1px solid #ded6c5;font-weight:800;transition:.18s ease}.tabs a:hover{background:#fff9df;border-color:#e5c63c}.tabs a.active{background:linear-gradient(180deg,#ffdc27,#ffd000);color:#171717;border-color:#e5b700;box-shadow:0 10px 24px rgba(255,204,0,.20)}.tabs b{margin-left:7px;padding:2px 7px;border-radius:20px;background:rgba(0,0,0,.08);color:inherit}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:20px;margin-bottom:22px;box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:20px 22px;border-bottom:1px solid #eee6d8;background:linear-gradient(180deg,#fffdfa,#fff)}.panel-head h2{margin:0;font-size:21px;letter-spacing:-.02em;color:#111315}.panel-head p{margin:7px 0 0;color:#777166}
.form-grid{padding:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px}.form-grid label{display:flex;flex-direction:column;gap:7px;font-weight:750;color:#202226}.form-grid small{font-weight:400;color:#7a756d}.form-grid input,.form-grid textarea,.form-grid select{width:100%;border:1px solid #d9d1c2;border-radius:13px;padding:12px 14px;font:inherit;background:#fff;color:#17191c;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.form-grid input::placeholder,.form-grid textarea::placeholder{color:#9b968d}.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus{border-color:#e3bb00;box-shadow:0 0 0 4px rgba(255,212,0,.18);background:#fffef9}.form-grid textarea{resize:vertical;min-height:120px}.form-grid input[type=file]{padding:10px;background:#fffdf8}.form-grid .check{flex-direction:row;align-items:center;gap:10px;font-weight:600;color:#2d2e31}.check input{width:18px;height:18px;accent-color:#f3c400}.wide{grid-column:1/-1}
fieldset.wide{border:1px solid #e2dacb;border-radius:16px;padding:18px;background:#fffdf8}fieldset legend{font-weight:850;padding:0 8px;color:#17191c}.site-checks{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}.site-checks .check{padding:10px 12px;border:1px solid #ded5c4;border-radius:12px;background:#fff}
.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn{appearance:none;border:1px solid #d5cdbf;background:#f6f2e9;color:#26282b;border-radius:13px;padding:11px 16px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s ease}.btn:hover{background:#fff;border-color:#cfc3ad;transform:translateY(-1px)}.btn.primary{background:linear-gradient(180deg,#ffdc27,#ffd000);color:#171717;border-color:#e0b700;box-shadow:0 10px 22px rgba(255,204,0,.20)}.btn.primary:hover{background:linear-gradient(180deg,#ffe35a,#ffd719)}.btn.danger{color:#b23636;border-color:#e0b4b4;background:#fff5f5}.btn.danger:hover{background:#ffecec;border-color:#d89494}.btn.small{padding:8px 11px;font-size:13px;border-radius:11px}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.alert{padding:13px 15px;border-radius:13px;margin-bottom:16px;border:1px solid transparent}.alert.success{background:#eef9f1;color:#147941;border-color:#ccebd6}.alert.error{background:#fff1f1;color:#a72e2e;border-color:#efcccc}
.empty{padding:34px;text-align:center;color:#8a857b}
.site-list,.product-list,.block-list{display:flex;flex-direction:column}.site-row,.product-row,.block-row{gap:16px;align-items:center;padding:18px 22px;border-top:1px solid #eee7db}.site-row:first-child,.product-row:first-child,.block-row:first-child{border-top:0}.site-row{display:grid;grid-template-columns:1.1fr 1.5fr auto}.product-row{display:grid;grid-template-columns:78px 1.3fr .75fr auto}.block-row{display:grid;grid-template-columns:18px 1.4fr .7fr auto}.site-row>div:first-child,.prod-main,.assignment,.block-row>div:nth-child(2){display:flex;flex-direction:column}.site-row small,.product-row small,.block-row small{color:#817c73}.prod-main strong{font-size:16px;color:#17191c}.price{margin-top:7px}.price del{color:#999287;margin-right:8px}.price span,.price strong{color:#bb8c00;font-weight:900}.status.ok{color:#168448}.status.bad{color:#b63d3d}.status small{display:block;color:#8f897f}.row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.row-actions form{margin:0}
.thumb{width:64px;height:64px;border-radius:14px;background:#f1ede4;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#8e887d;font-size:11px;border:1px solid #ddd4c5}.thumb img{width:100%;height:100%;object-fit:cover}.image-edit{display:flex;gap:10px;flex-wrap:wrap}.image-edit label{width:126px;border:1px solid #ddd4c5;border-radius:13px;padding:8px;background:#fffdf9;font-weight:500;color:#5e5a52}.image-edit img{width:100%;height:92px;object-fit:cover;border-radius:9px}.image-edit span{font-size:12px}
.sync-log{background:#141618;color:#f1f2f4;border:1px solid #292b2f;border-left:5px solid var(--yellow);border-radius:15px;padding:13px 16px;margin-bottom:18px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;box-shadow:0 10px 24px rgba(0,0,0,.08)}.sync-log div{padding:4px 0}.sync-log .ok{color:#8febae}.sync-log .bad{color:#ffadad}
.block-style{width:12px;height:52px;border-radius:999px;background:linear-gradient(180deg,#ffdc27,#ffc900)}.block-style.style-sale{background:linear-gradient(180deg,#ff6b76,#e94855)}.block-style.style-summer{background:linear-gradient(180deg,#ffd458,#e99a17)}.block-style.style-pets{background:linear-gradient(180deg,#a58cff,#7a59d1)}.block-style.style-new{background:linear-gradient(180deg,#18d6bc,#0b9c8c)}
.auth{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 80% 20%,rgba(255,212,0,.16),transparent 32%),linear-gradient(180deg,#fffdf8,#f3eee3)}.auth-card{position:relative;width:min(460px,calc(100% - 30px));background:#fff;padding:32px;border-radius:22px;border:1px solid #e2dacb;box-shadow:0 22px 58px rgba(61,50,30,.14);overflow:hidden}.auth-card:before{content:"";position:absolute;left:0;top:0;right:0;height:7px;background:linear-gradient(90deg,#111,#111 38%,var(--yellow) 38%,var(--yellow) 100%)}.auth-card h1{position:relative;margin:0 0 8px;font-size:34px;line-height:1.02;color:#111315;letter-spacing:-.04em}.auth-card h1:after{content:"";display:block;width:84px;height:5px;margin-top:10px;border-radius:999px;background:linear-gradient(90deg,var(--yellow),rgba(255,212,0,0))}.auth-card p{position:relative;color:#716c63;margin:0 0 22px}.auth-card form{position:relative;display:flex;flex-direction:column;gap:14px}.auth-card label{font-weight:800;display:flex;flex-direction:column;gap:6px;color:#222427}.auth-card input{padding:12px 13px;border:1px solid #d9d1c2;border-radius:13px;font:inherit;background:#fff;color:#111}.auth-card input:focus{outline:none;border-color:#e3bb00;box-shadow:0 0 0 4px rgba(255,212,0,.18)}
hr{border:0;border-top:1px solid #ece4d7;margin:22px 0}code{background:#f8f3e6;border:1px solid #e5dac2;padding:2px 6px;border-radius:7px;color:#7b5a00}
::-webkit-scrollbar{width:12px;height:12px}::-webkit-scrollbar-thumb{background:#c6bda9;border-radius:20px;border:3px solid #f7f2e8}::-webkit-scrollbar-track{background:#f7f2e8}
@media(max-width:920px){.wrap{padding:20px 14px 34px}.hero{align-items:flex-start;flex-direction:column}.hero:after{width:130px;height:8px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.site-row,.product-row,.block-row{grid-template-columns:1fr}.row-actions{flex-wrap:wrap}.thumb{width:100%;height:180px}.top{padding:0 16px}}
@media(max-width:680px){.top{min-height:62px}.top strong{font-size:18px}.top strong::after{display:none}.tabs{gap:8px}.tabs a{padding:10px 12px;font-size:14px}.panel{border-radius:17px}.panel-head,.form-grid,.site-row,.product-row,.block-row{padding-left:16px;padding-right:16px}.block-row{grid-template-columns:14px 1fr}.block-row .assignment,.block-row .row-actions{grid-column:2}.auth-card{padding:26px 22px;border-radius:18px}.hero h1{font-size:31px}}
