:root{--bg:#f7f8fb;--card:#fff;--ink:#171d29;--muted:#6c7585;--line:#e7e9ee;--brand:#ec5a28;--brand-soft:#fff1eb;--good:#247752;--warn:#a55f00;--bad:#b1373d;--shadow:0 10px 40px rgba(27,38,55,.045);font-family:Inter,'Segoe UI',system-ui,-apple-system,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.55}a{color:var(--brand)}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:24px 14px}.brand{display:flex;align-items:center;gap:10px;padding:5px 10px 30px;font-size:15px}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.brand-mark{display:grid;place-items:center;background:var(--brand);color:white;font-size:27px;border-radius:13px;width:43px;height:43px;font-weight:800}.side-label{padding:10px 12px;font-size:10px;letter-spacing:.16em;color:#9ca4b0;font-weight:800}nav{display:grid;gap:5px}nav button{display:flex;align-items:center;gap:12px;border-radius:10px;padding:12px 14px;text-align:left;background:none;color:#4d596c;font-weight:600}nav button span{font-size:21px;width:22px;text-align:center;font-weight:400}nav button.active{color:var(--brand);background:var(--brand-soft)}nav button:hover:not(.active){background:#f7f8fa}.sidebar-bottom{margin-top:auto;padding:14px 5px 0;border-top:1px solid var(--line)}.account-chip{display:flex;gap:10px;align-items:center;padding-bottom:12px}.account-chip b,.account-chip small{display:block}.account-chip small{color:var(--muted);font-size:11px;margin-top:3px}.avatar{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#e7effd;color:#315997;font-weight:800}.main-shell{flex:1;min-width:0}.topbar{min-height:74px;display:flex;align-items:center;justify-content:space-between;padding:12px 32px;background:#fff;border-bottom:1px solid var(--line)}.topbar b,.topbar small{display:block}.topbar b{font-size:16px}.topbar small{font-size:12px;color:var(--muted);margin-top:3px}.menu-btn{display:none;background:transparent;font-size:20px}.status-dot{display:inline-flex;align-items:center;gap:8px;font-size:12px;background:#f3f4f7;padding:8px 11px;border-radius:30px;color:#566376}.status-dot:before{content:'';width:7px;height:7px;border-radius:50%;background:#9eabbc}.status-dot.ready:before{background:#25a36b}.content{max-width:1280px;margin:auto;padding:30px 32px 70px}.page-heading{display:flex;gap:14px;justify-content:space-between;align-items:center;margin-bottom:23px}.page-heading h1{font-size:26px;letter-spacing:-.04em;margin:0 0 5px}.page-heading p{margin:0;color:var(--muted)}.grid{display:grid;gap:18px}.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:var(--card);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:22px;min-width:0}.card h2{font-size:17px;margin:0 0 15px;letter-spacing:-.02em}.card h3{font-size:14px;margin:0 0 10px}.stat-value{font-size:31px;font-weight:800;letter-spacing:-.05em;margin:8px 0}.stat-label{font-size:12px;color:var(--muted);font-weight:600}.stat-icon{font-size:20px;color:var(--brand);height:22px}.primary,.secondary,.quiet,.danger{padding:10px 15px;border-radius:9px;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-weight:700;font-size:13px}.primary{background:var(--brand);color:white}.primary:hover{background:#d74e20}.secondary{background:#fff;border:1px solid #dce0e7;color:#39495e}.secondary:hover{background:#f6f7f9}.quiet{background:#f5f6f8;color:#536072}.danger{color:var(--bad);background:#fff1f1;border:1px solid #ffdddd}.full{width:100%}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.actions.end{justify-content:flex-end}.actions button{white-space:nowrap}.actions .compact{padding:7px 10px;font-size:12px}.stack{display:grid;gap:15px}.stack-sm{display:grid;gap:11px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}label{display:grid;gap:6px;color:#3f4b5d;font-weight:650;font-size:12px}input,textarea,select{border:1px solid #dce1e9;border-radius:9px;padding:11px 12px;background:#fff;color:var(--ink);width:100%;min-width:0;outline:none;font-size:13px}input:focus,textarea:focus,select:focus{border-color:#ef8c6b;box-shadow:0 0 0 3px #ffede6}textarea{resize:vertical}input[type=checkbox]{width:auto;accent-color:var(--brand)}.checkline{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:500}.mini-list{display:grid;gap:0}.mini-line{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.mini-line:last-child{border-bottom:none}.mini-line strong{display:block}.mini-line small{display:block;color:var(--muted);margin-top:3px}.badge{border-radius:20px;padding:5px 9px;font-size:11px;font-weight:750;white-space:nowrap;background:#f2f3f6;color:#536173}.badge.approved,.badge.sent,.badge.ready{background:#e8f7ef;color:#1e7650}.badge.pending,.badge.scheduled{background:#fff2dd;color:#a06405}.badge.failed,.badge.canceled,.badge.error{background:#fbe8e9;color:#ae343a}.notice{border-radius:11px;padding:13px 15px;background:#fff8eb;border:1px solid #f9e8c4;color:#785c27;font-size:12px;line-height:1.55}.notice.critical{background:#fff0ef;border-color:#ffd5d2;color:#9a3330}.notice.info{background:#eff6ff;border-color:#d9e7ff;color:#35547a}.product{display:flex;gap:13px;align-items:flex-start}.product-img{width:80px;height:80px;border-radius:10px;object-fit:cover;background:#f5f6f8;border:1px solid var(--line);flex-shrink:0}.placeholder{width:80px;height:80px;display:grid;place-items:center;background:#fff3ed;color:var(--brand);border-radius:10px;font-size:25px;flex-shrink:0}.product b{display:block;line-height:1.45}.product .muted{display:block;margin:6px 0;font-size:12px}.product .actions{margin-top:10px}.price{color:#1c7e58;font-weight:800}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;width:100%;min-width:660px}.table th{text-align:left;color:#8b94a1;font-size:11px;letter-spacing:.05em;font-weight:800;padding:10px;border-bottom:1px solid var(--line)}.table td{padding:15px 10px;border-bottom:1px solid var(--line);vertical-align:top}.table tr:last-child td{border-bottom:0}.table td small{color:var(--muted)}.table .actions{max-width:340px}.post-preview{background:#f7f9fb;border:1px solid #edf0f3;padding:13px;border-radius:11px;white-space:pre-wrap;line-height:1.65;font-size:12px;max-height:190px;overflow:auto;overflow-wrap:anywhere}.search-result{border:1px solid var(--line);border-radius:11px;padding:13px;display:flex;gap:11px;align-items:start}.search-result .product-img{height:66px;width:66px}.search-result b{font-size:13px}.search-result .grow{flex:1}.steps{counter-reset:step}.step{display:flex;align-items:start;gap:12px;margin:16px 0}.step .number{background:var(--brand-soft);color:var(--brand);font-weight:800;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;flex-shrink:0}.step b{display:block}.step small{display:block;color:var(--muted);margin-top:5px;line-height:1.5}.qr{background:#fff;padding:12px;border:1px solid var(--line);border-radius:12px;width:230px;max-width:100%;height:auto}.chip-row{display:flex;flex-wrap:wrap;gap:8px}.chip-check{display:inline-flex;align-items:center;gap:7px;border:1px solid #e0e5eb;padding:10px 12px;border-radius:9px;font-size:12px}.pill{display:inline-flex;border:1px solid var(--line);border-radius:20px;padding:5px 9px;background:#f7f8fa;color:var(--muted);font-size:11px}.inline-info{display:flex;justify-content:space-between;align-items:center;gap:15px}.big-icon{font-size:39px}.empty{text-align:center;padding:34px;color:var(--muted)}.empty b{display:block;color:var(--ink);font-size:16px;margin:8px}.empty p{line-height:1.6}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top left,#fff0e7,transparent 40%),#f8f9fb}.auth-card{width:100%;max-width:400px;background:#fff;border-radius:18px;padding:34px;box-shadow:0 20px 65px rgba(28,42,56,.07);border:1px solid #ebebec}.auth-card .brand-mark{margin-bottom:20px}.auth-card h1{font-size:25px;margin:0 0 7px}.auth-card p{margin:0 0 25px}.auth-card p:last-child{margin:21px 0 0}.toast{position:fixed;bottom:20px;right:22px;max-width:370px;z-index:30;background:#202a37;color:white;padding:13px 18px;border-radius:11px;box-shadow:0 10px 40px #0002;display:none;font-size:13px;line-height:1.5}.toast.show{display:block}.toast.error{background:#9d3033}.modal{border:1px solid var(--line);border-radius:15px;padding:24px;width:min(650px,92vw);box-shadow:0 25px 70px #0003}.modal::backdrop{background:#0b152b66}.modal h2{margin:0 0 6px;font-size:20px}.modal textarea{margin:15px 0}.modal label{margin:20px 0}.footer-note{font-size:11px;color:#8993a0;margin-top:20px}.split{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}.divider{border:0;border-top:1px solid var(--line);margin:20px 0}.right{text-align:right}.mt-12{margin-top:12px}.mt-18{margin-top:18px}.mb-18{margin-bottom:18px}
@media(max-width:1120px){.cols-4{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.cols-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.sidebar{position:fixed;z-index:12;left:-260px;box-shadow:0 0 20px #0001;transition:left .2s}.sidebar.open{left:0}.menu-btn{display:inline-block}.topbar{padding:12px 16px;gap:12px;justify-content:flex-start}.topbar .status-dot{margin-left:auto}.content{padding:22px 15px 50px}}
@media(max-width:570px){.cols-4,.cols-3,.cols-2,.field-row{grid-template-columns:1fr}.page-heading{align-items:start}.page-heading h1{font-size:22px}.card{padding:17px}.product-img,.placeholder{width:65px;height:65px}.topbar{min-height:64px}.topbar b{font-size:14px}.topbar small{font-size:10px}.status-dot{font-size:10px;padding:6px}.actions .compact{white-space:normal}}
