:root { --navy:#0f172a; --orange:#ff9500; --line:#e5e9f0; --muted:#64748b; --bg:#f4f6fa; --green:#16a34a; --red:#dc2626; --violet:#6d28d9; }
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,sans-serif;font-size:14.5px;color:#1f2937;background:var(--bg);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
h1{font-size:1.4rem;margin:0;letter-spacing:-.01em}
h2{font-size:1rem;margin:0 0 12px;color:var(--navy)}
h2 small{font-weight:500;font-size:.8rem}
code{background:#eef2f7;padding:1px 6px;border-radius:5px;font-size:.82em}
pre{background:var(--navy);color:#e2e8f0;padding:12px 14px;border-radius:10px;font-size:.8rem;overflow:auto}
.muted{color:var(--muted);font-size:.85rem}
.adm{display:grid;grid-template-columns:230px 1fr;min-height:100vh}
.adm-side{background:var(--navy);color:#cbd5e1;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.adm-brand{display:flex;align-items:center;gap:10px;padding:18px 18px 14px;color:#fff;font-weight:800;font-size:1rem;border-bottom:1px solid rgba(255,255,255,.08)}
.adm-brand img{border-radius:9px}
.adm-brand em{font-style:normal;color:var(--orange)}
.adm-nav{display:flex;flex-direction:column;padding:12px 10px;gap:2px}
.adm-nav a{padding:9px 12px;border-radius:8px;font-weight:600;font-size:.9rem;color:#cbd5e1}
.adm-nav a:hover{background:rgba(255,255,255,.06);color:#fff}
.adm-nav a.is-active{background:var(--orange);color:#111}
.adm-side-foot{margin-top:auto;padding:14px 18px;display:flex;flex-direction:column;gap:8px;font-size:.85rem;border-top:1px solid rgba(255,255,255,.08)}
.adm-side-foot a:hover{color:#fff}
.adm-main{padding:22px 28px 80px;min-width:0}
.adm-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.adm-inline{margin:0}
.adm-head-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.btn-outline{background:transparent;border-color:#cbd5e1}
.btn{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 14px;border-radius:9px;border:1px solid #cbd5e1;background:#fff;font:inherit;font-weight:600;cursor:pointer;color:var(--navy)}
.btn:hover{border-color:var(--navy)}
.btn-primary{background:var(--orange);border-color:var(--orange);color:#111}
.btn-primary:hover{background:#ffa21a}
.btn-dark{background:var(--navy);border-color:var(--navy);color:#fff}
.btn-danger{color:var(--red);border-color:#fecaca}
.btn-xs{height:28px;padding:0 9px;font-size:.78rem;border-radius:7px}
.btn-block{width:100%}
.flash{padding:11px 14px;border-radius:9px;margin-bottom:16px;font-weight:500;background:#dcfce7;color:#14532d;border:1px solid #bbf7d0}
.flash-err{background:#fee2e2;color:#7f1d1d;border-color:#fecaca}
.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin-bottom:16px}
.stack{display:flex;flex-direction:column}
.two-col{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
.stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:18px}
.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.stat span{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:600}
.stat strong{font-size:1.5rem;color:var(--navy)}
.stat small{color:var(--muted)}
.tbl{width:100%;border-collapse:collapse;font-size:.88rem}
.tbl th{text-align:left;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:8px 8px;border-bottom:1px solid var(--line)}
.tbl td{padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl-articles td a{font-weight:600;color:var(--navy)}
.tbl-articles td a:hover{color:#e07f00}
.tbl-articles tr.is-hidden{opacity:.5}
.thumb img{width:64px;height:40px;object-fit:cover;border-radius:6px}
.thumb-none{display:inline-block;width:64px;height:40px;background:#eef2f7;border-radius:6px;text-align:center;line-height:40px;color:#94a3b8}
.tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}
.pill{display:inline-block;padding:1px 7px;border-radius:999px;background:#eef2f7;color:#475569;font-size:.7rem;font-weight:600}
.pill.ok{background:#dcfce7;color:#166534}.pill.err{background:#fee2e2;color:#991b1b}.pill.pin{background:#fff4e5;color:#9a5b00}
.nowrap{white-space:nowrap}
.actions form{display:flex;gap:4px}
.toolbar{display:flex;gap:8px;align-items:center;margin-bottom:14px}
.toolbar input[type=search]{flex:1;max-width:360px}
label{display:flex;flex-direction:column;gap:5px;font-size:.82rem;font-weight:600;color:#334155;margin-bottom:12px}
input[type=text],input[type=url],input[type=email],input[type=number],input[type=password],input[type=search],select,textarea{font:inherit;font-weight:400;height:38px;border:1px solid #cbd5e1;border-radius:8px;padding:0 10px;background:#fff;color:#1f2937;width:100%}
textarea{height:auto;padding:8px 10px;resize:vertical;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.82rem}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,149,0,.18)}
input[type=file]{height:auto;padding:6px 0;border:0}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.slot-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:10px}
.switch{flex-direction:row;align-items:center;gap:8px;margin:0;font-weight:700}
.switch input{width:18px;height:18px}
.switch-inline{margin-top:24px}
.preview{margin-top:8px;background:#f5f1ff;border:1px solid #d9cdfb;border-radius:8px;padding:8px;display:inline-block}
.preview img{max-height:120px;max-width:100%;display:block}
.sticky-save{position:sticky;bottom:0;padding:12px 0;background:linear-gradient(180deg,rgba(244,246,250,0),var(--bg) 40%)}
.quick{list-style:none;margin:0 0 16px;padding:0}
.quick li{padding:9px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column}
.quick li a{font-weight:700;color:var(--navy)}
.quick li span{font-size:.82rem;color:var(--muted)}
.tbl-sources input[type=checkbox]{width:18px;height:18px}
.tbl-sources td{padding:6px 6px}
[data-when]{display:none}
[data-when].is-on{display:grid}
label[data-when].is-on{display:flex}
.adm-login-body{display:grid;place-items:center;min-height:100vh;background:radial-gradient(900px 400px at 50% -10%,#fff1dc,rgba(255,241,220,0) 60%),var(--bg)}
.adm-login{background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px 30px;width:min(380px,92vw);box-shadow:0 24px 60px -24px rgba(15,23,42,.35);text-align:center}
.adm-login img{margin:0 auto 12px;border-radius:14px}
.adm-login h1{font-size:1.15rem}
.adm-login p{color:var(--muted);margin:4px 0 18px}
.adm-login label{text-align:left}
.traffic-live-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.traffic-live-count{font-size:2rem;font-weight:800;color:var(--navy);margin:0;line-height:1}
.traffic-live-count small{font-size:.85rem;font-weight:600;color:var(--muted)}
.tbl-compact td,.tbl-compact th{padding:6px 8px;font-size:.82rem}
.adm-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.adm-tabs a{padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font-weight:600;font-size:.85rem}
.adm-tabs a.is-active{background:var(--navy);color:#fff;border-color:var(--navy)}
.adm-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}
.adm-stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.adm-stat strong{display:block;font-size:1.5rem;color:var(--navy)}
.adm-stat span{font-size:.78rem;color:var(--muted)}
.adm-lede{max-width:52rem;line-height:1.55;color:var(--muted)}
.adm-h2{font-family:Inter,sans-serif;font-size:1.1rem;margin:0 0 10px}
.adm-list{margin:0 0 16px;padding-left:1.2rem;line-height:1.55}
.adm-list--ol{list-style:decimal}
.adm-checklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.adm-checklist li{display:flex;gap:12px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:10px}
.adm-checklist li.is-done{border-left:3px solid var(--green)}
.adm-table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden;margin-top:12px}
.adm-table th,.adm-table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;font-size:.85rem}
.adm-note{margin-top:12px}
@media (max-width:900px){.adm{grid-template-columns:1fr}.adm-side{position:static;height:auto}.adm-nav{flex-direction:row;flex-wrap:wrap}.adm-side-foot{flex-direction:row}.stat-grid{grid-template-columns:repeat(2,1fr)}.adm-stat-row{grid-template-columns:1fr 1fr}.two-col,.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.adm-main{padding:16px}}
