:root{--bg:#f4f6f5;--ink:#1b2422;--mut:#66726f;--line:#dfe5e3;--brand:#0f766e;--brand2:#115e59;--card:#fff;--red:#b42318}
*{box-sizing:border-box}body{margin:0;font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--ink)}
a{color:var(--brand)}h1{font-size:24px;margin:0 0 18px}h3{margin:0 0 12px;font-size:16px}
.shell{display:flex;min-height:100vh}.side{width:220px;background:#10211f;color:#cfe3df;padding:20px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.brand{font-weight:700;font-size:17px;color:#fff;margin-bottom:22px;display:flex;align-items:center;gap:8px}.dot{width:10px;height:10px;border-radius:50%;background:#2dd4bf}
.side nav{display:flex;flex-direction:column;gap:2px;flex:1}.side a{color:#cfe3df;text-decoration:none;padding:9px 12px;border-radius:8px}
.side a:hover{background:#18332f}.side a.on{background:var(--brand);color:#fff}.side .logout{font-size:13px;color:#8fb0aa}
.main{flex:1;padding:28px 32px;max-width:1200px;min-width:0}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:18px;overflow-x:auto}
.card.narrow{max-width:460px;margin:60px auto}.card.danger{border-color:#f0c4c0}
body.plain{background:var(--bg)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:18px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px}.stat b{display:block;font-size:26px}.stat span{color:var(--mut);font-size:13px}
table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:middle}th{color:var(--mut);font-weight:600;font-size:13px}
.tag{display:inline-block;padding:2px 9px;border-radius:99px;font-size:12px;background:#e6efed;color:#33504b}.tag.done{background:#d9f3e4;color:#14633a}.tag.sending{background:#fff0cf;color:#8a5a00}.tag.scheduled{background:#dfe9ff;color:#2a4bb0}.tag.cancelled{background:#eee;color:#666}
.btn{display:inline-block;background:var(--brand);color:#fff;border:0;border-radius:8px;padding:9px 16px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.btn:hover{background:var(--brand2)}.btn.red{background:var(--red)}.btn.ghost{background:transparent;color:var(--brand);border:1px solid var(--brand)}.btn.sm{padding:4px 10px;font-size:13px}
.stack{display:flex;flex-direction:column;gap:12px}label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:13px}
label.check{flex-direction:row;align-items:center;gap:8px;font-weight:500}
input,select,textarea{font:inherit;padding:9px 10px;border:1px solid #c9d3d0;border-radius:8px;background:#fff;color:var(--ink);width:100%}
input[type=checkbox]{width:auto}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.filters input,.filters select{width:auto;min-width:160px}
.row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.row label{flex:1;min-width:180px}.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;align-items:start}
.flash{padding:10px 14px;border-radius:8px;margin-bottom:14px}.flash.ok{background:#d9f3e4;color:#14633a}.flash.err{background:#fde4e1;color:#8a1c12}
.muted{color:var(--mut);font-size:13px}pre{background:#10211f;color:#d7f5ee;padding:12px;border-radius:8px;overflow-x:auto;font-size:13px}code{background:#e9efed;padding:1px 5px;border-radius:4px}pre code{background:none}
.steps{padding-left:20px}.pager{display:flex;gap:6px;margin:12px 0}.pager a,.pager span{padding:5px 10px;border:1px solid var(--line);border-radius:6px;text-decoration:none;background:#fff}.pager .cur{background:var(--brand);color:#fff;border-color:var(--brand)}
.bars{display:flex;align-items:flex-end;gap:8px;height:130px}.bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}.bar i{width:100%;background:var(--brand);border-radius:4px 4px 0 0;display:block}.bar small{color:var(--mut);font-size:11px;margin-top:4px}
.progress{height:8px;background:#e6efed;border-radius:99px;overflow:hidden}.progress i{display:block;height:100%;background:var(--brand)}
.toast{display:flex;gap:12px;border:1px solid var(--line);border-radius:10px;padding:12px;box-shadow:0 6px 20px rgba(0,0,0,.1)}.toast img{width:48px;height:48px;border-radius:6px;object-fit:cover}.toast p{margin:2px 0;color:#444;font-size:14px}.toast small{color:var(--mut)}
@media(max-width:760px){.shell{flex-direction:column}.side{width:auto;height:auto;position:static}.side nav{flex-direction:row;flex-wrap:wrap}.main{padding:18px}}
