*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Arabic",Arial,sans-serif;color:#111827;background:linear-gradient(120deg,#eaf6f0,#eaf0fb 55%,#fdf3e3);min-height:100vh}
a{color:#2563eb;text-decoration:none}button{font:inherit;cursor:pointer}
.app{display:flex;min-height:100vh}
.rail{width:60px;flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 0;background:rgba(255,255,255,.55);border-inline-end:1px solid #e5e7eb}
.railbtn{width:40px;height:40px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;color:#111827;display:flex;align-items:center;justify-content:center;font-size:18px;text-decoration:none}
.railbtn:hover{border-color:#0f766e}
main{flex:1;min-width:0;padding:0 22px 30px}
.top{display:flex;align-items:center;gap:16px;height:68px;position:sticky;top:0;z-index:50;background:linear-gradient(120deg,#eaf6f0,#eaf0fb 55%,#fdf3e3)}
.brand{display:flex;align-items:center;gap:8px;font-size:20px}.logo{font-size:24px;color:#0f766e}
.demotag{font-size:10px;font-weight:700;letter-spacing:.08em;background:#f5b942;color:#111827;border-radius:999px;padding:3px 8px}
.pillnav{flex:1;display:flex;justify-content:center;gap:4px;flex-wrap:wrap}
.pillnav a{padding:8px 14px;border-radius:999px;color:#374151;font-weight:600;font-size:14px}
.pillnav a.on{background:#0f172a;color:#fff}
.topr{display:flex;align-items:center;gap:10px}
.brandpick{font-size:13px;color:#4b5563;display:flex;align-items:center;gap:6px}
.brandpick select{border:1px solid #d1d5db;border-radius:999px;padding:6px 10px;background:#fff;font:inherit;font-size:13px}
.icon{position:relative;width:38px;height:38px;border-radius:50%;border:1px solid #d1d5db;background:#fff;font-size:16px}
.belldot{position:absolute;top:6px;right:7px;width:9px;height:9px;border-radius:50%;background:#dc2626}
.langbtn{border:1px solid #0f766e;background:#fff;color:#0f766e;border-radius:999px;padding:7px 13px;font-weight:700;font-size:13px}
.panel{position:absolute;top:64px;right:22px;width:340px;max-width:calc(100vw - 40px);background:#fff;border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 16px 40px rgba(0,0,0,.14);padding:14px;z-index:60}
.panel h4{margin:2px 0 10px}.panel .rowline{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-top:1px solid #f3f4f6;font-size:14px}
.panel .rowline:first-of-type{border-top:0}
h1{font-size:30px;margin:8px 0 2px}.sub{color:#4b5563;margin:0 0 16px}
.grid2{display:grid;grid-template-columns:1fr 340px;gap:16px}.grid2w{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.card{background:#fff;border:1px solid #eef0f3;border-radius:24px;box-shadow:0 4px 18px rgba(17,24,39,.05);padding:18px;margin-bottom:16px}
.card h3{margin:0 0 4px;font-size:17px}.card h4{margin:0 0 8px;font-size:14px}
.kicker{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#6b7280;font-weight:700}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.kpis .card{margin-bottom:0}.big{font-size:30px;font-weight:800}.mut{color:#6b7280;font-size:13px}
.chip{display:inline-block;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700}
.chip.live{background:#dcfce7;color:#166534}.chip.wait{background:#fef3c7;color:#92400e}.chip.fail{background:#fee2e2;color:#991b1b}.chip.draft{background:#e5e7eb;color:#374151}.chip.done{background:#dbeafe;color:#1e40af}
.chip.net{background:#eef2ff;color:#3730a3}
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}
.tabs button,.tabs a{border:1px solid #d1d5db;background:#fff;border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600;color:#111827;text-decoration:none}
.tabs button.on,.tabs a.on{background:#0f172a;color:#fff;border-color:#0f172a}
.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 14px}
.filters input,.filters select{border:1px solid #d1d5db;border-radius:999px;padding:7px 12px;font:inherit;font-size:13px;background:#fff}
.btn{border:0;background:#0f172a;color:#fff;border-radius:999px;padding:9px 16px;font-weight:700;font-size:13px}
.btn.ghost{background:#fff;color:#111827;border:1px solid #d1d5db}.btn.teal{background:#0f766e}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.sm{padding:6px 12px;font-size:12px}
table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:start;color:#6b7280;font-size:12px;text-transform:uppercase;letter-spacing:.05em;padding:8px;border-bottom:1px solid #e5e7eb;cursor:pointer}
td{padding:10px 8px;border-bottom:1px solid #f3f4f6;vertical-align:middle}tr:hover td{background:#fbf9f3}
.av{width:34px;height:34px;border-radius:50%;background:#0f766e;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex:none}
.av.amber{background:#f5b942;color:#111827}.av.blue{background:#2563eb}
.post{display:flex;gap:12px;padding:12px 0;border-top:1px solid #f3f4f6}.post:first-of-type{border-top:0}
.thumb{width:64px;height:64px;border-radius:16px;flex:none;display:flex;align-items:center;justify-content:center;font-size:26px;color:#fff;overflow:hidden}
.thumb .mimg{width:100%;height:100%;object-fit:cover;display:block}
.bar{height:8px;background:#eef2f7;border-radius:99px;overflow:hidden}.bar i{display:block;height:100%;background:#0f766e}
.heat{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.heat div{border-radius:8px;padding:10px 4px;text-align:center;font-size:12px;background:#eef2f7}
.heat .h1{background:#ccfbf1}.heat .h2{background:#99f6e4}.heat .h3{background:#5eead4}.heat .best{background:#0f766e;color:#fff;font-weight:800}
input[type=text],input[type=email],input[type=number],input[type=date],input[type=time],textarea,select{border:1px solid #d1d5db;border-radius:12px;padding:9px 12px;font:inherit;font-size:14px;background:#fff;width:100%}
textarea{min-height:110px;resize:vertical}label{font-size:13px;font-weight:600;color:#374151;display:block;margin:10px 0 4px}
.switch{position:relative;width:46px;height:26px;border-radius:99px;background:#d1d5db;border:0;flex:none}.switch i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.15s}
.switch.on{background:#0f766e}.switch.on i{left:23px}
.trow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #f3f4f6}
.trow:first-of-type{border-top:0}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#111827;color:#fff;padding:11px 18px;border-radius:999px;font-size:14px;z-index:200;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:100;padding:16px}
.modal .box{background:#fff;border-radius:24px;padding:22px;width:min(560px,100%);max-height:90vh;overflow:auto}
.pickergrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pick{border:1px solid #e5e7eb;border-radius:16px;padding:10px;cursor:pointer;text-align:center}
.pick:hover{border-color:#0f766e}.pick .thumb{width:100%;height:64px}
.mini{font-size:12px;color:#6b7280}
footer{color:#6b7280;font-size:12px;text-align:center;margin-top:8px}
.bulkbar{display:flex;gap:10px;align-items:center;background:#0f172a;color:#fff;border-radius:14px;padding:10px 14px;margin:0 0 14px;font-size:14px}
.bulkbar .btn{background:#fff;color:#111827}
@media(max-width:900px){.grid2,.grid2w,.kpis{grid-template-columns:1fr}.pillnav{display:none}.top{height:auto;padding:10px 0;flex-wrap:wrap}}
body.dark{background:#0b1220;color:#e5e7eb}
body.dark .card,body.dark .panel,body.dark .modal .box,body.dark .railbtn,body.dark .icon,body.dark .brandpick select,body.dark input,body.dark textarea,body.dark select{background:#1a2436;color:#e5e7eb;border-color:#2a3648}
body.dark .top{background:#0b1220}body.dark .rail{background:#101828;border-color:#2a3648}
body.dark .pillnav a{color:#cbd5e1}body.dark .pillnav a.on{background:#f5b942;color:#111827}
body.dark td{border-color:#243146}body.dark tr:hover td{background:#1f2c44}
body.dark .mut,body.dark .sub,body.dark .mini{color:#94a3b8}
body.dark .tabs button,body.dark .tabs a{background:#1a2436;color:#e5e7eb;border-color:#2a3648}
body.dark .tabs button.on,body.dark .tabs a.on{background:#f5b942;color:#111827}
body.dark .btn.ghost{background:#1a2436;color:#e5e7eb}
