:root{--blue:#145be7;--blue2:#0f47b8;--navy:#0f1b3a;--bg:#f3f6fb;--line:#dde5f0;--muted:#64748b}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--navy);line-height:1.55}
a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}h1{font-size:26px;margin:0 0 6px}h2{font-size:20px;margin:26px 0 12px}h3{margin:0 0 8px;font-size:17px}
.wrap{max-width:1000px;margin:0 auto;padding:0 16px}main.wrap{padding-top:22px;padding-bottom:44px;min-height:60vh}
.top{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--navy);font-size:18px}.brand:hover{text-decoration:none}
nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-weight:600;font-size:14px}nav a{padding:8px 12px;border-radius:9px;color:var(--navy)}nav a:hover{background:#eef3fb;text-decoration:none}
nav a.pill{background:var(--navy);color:#fff}nav a.btn-sm{background:var(--blue);color:#fff}
.btn-sm,.btn{display:inline-block;border:0;border-radius:10px;background:var(--blue);color:#fff!important;font-weight:700;cursor:pointer;font-family:inherit;text-align:center}
.btn-sm{padding:8px 14px;font-size:14px}.btn{padding:11px 20px;font-size:15px}.btn:hover,.btn-sm:hover{text-decoration:none;background:var(--blue2)}
.btn.alt{background:#fff;color:var(--blue)!important;border:1px solid var(--blue)}.btn.alt:hover{background:#eef4ff}.btn.danger{background:#c62828}.btn.sm{padding:6px 12px;font-size:13px}
.hero{background:linear-gradient(135deg,#0f1b3a,#173a8a);color:#fff;border-radius:18px;padding:38px 28px;margin-bottom:22px}.hero h1{font-size:30px;margin:0 0 8px}.hero p{margin:0 0 18px;color:#d3dcf5;max-width:620px}
.search{display:flex;gap:8px}.search input{flex:1}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-bottom:8px}
.tile{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;color:var(--navy);transition:box-shadow .2s,transform .2s}.tile:hover{text-decoration:none;box-shadow:0 8px 24px #14306514;transform:translateY(-2px)}
.tile span.t{color:var(--muted);font-size:14px}.ico{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e6efff;color:var(--blue);font-weight:800;font-size:18px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;margin-bottom:16px}
.two{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:16px 0}
.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;color:var(--navy);display:block}.stat:hover{text-decoration:none;box-shadow:0 6px 18px #14306512}
.stat .n{font-size:30px;font-weight:800;line-height:1.1}.stat .l{color:var(--muted);font-size:13px;font-weight:600}.stat.warn .n{color:#b45309}.stat.good .n{color:#0b7a4b}.stat.bad .n{color:#c62828}
label{display:block;font-weight:600;font-size:14px;margin:0 0 5px}
input[type=text],input[type=email],input[type=password],input[type=search],select,textarea{width:100%;padding:11px 12px;border:1px solid #c9d5e6;border-radius:10px;font:inherit;background:#fff;color:var(--navy)}
input:focus,select:focus,textarea:focus{outline:2px solid #bcd3ff;border-color:var(--blue)}
textarea{min-height:140px}.field{margin-bottom:14px}.hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff}table{width:100%;border-collapse:collapse}
th,td{padding:12px 14px;border-bottom:1px solid #e9eef6;text-align:left;font-size:14px;vertical-align:top}th{background:#f1f5fb;font-size:12px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted)}tr:last-child td{border-bottom:0}tr:hover td{background:#fafcff}
.badge{display:inline-block;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:700}
.s-open{background:#fff3cd;color:#7a5600}.s-answered{background:#d7f0e3;color:#0b6b3f}.s-closed{background:#e6e9ef;color:#4b5563}.s-sus{background:#fde2e2;color:#a31515}.s-act{background:#d7f0e3;color:#0b6b3f}
.b-staff{background:#e3ecff;color:#1450bd}.b-note{background:#ffe9c7;color:#8a5200}
.muted{color:var(--muted);font-size:13px}.flash{padding:12px 16px;border-radius:12px;margin-bottom:14px;font-weight:600}.flash.ok{background:#d7f0e3;color:#0b6b3f}.flash.err{background:#fde2e2;color:#a31515}
.notice{background:#fff7e0;border:1px solid #f3d98b;border-left:5px solid #f59e0b;color:#6b4300;border-radius:12px;padding:12px 16px;margin-bottom:16px}
.msg{display:flex;gap:12px;margin-bottom:14px}.msg .av{flex:none;width:38px;height:38px;border-radius:50%;background:#e6efff;color:var(--blue);display:grid;place-items:center;font-weight:800}
.msg .bub{flex:1;background:#fff;border:1px solid var(--line);border-radius:4px 16px 16px 16px;padding:12px 16px;min-width:0;overflow-wrap:anywhere}
.msg.staff .av{background:var(--blue);color:#fff}.msg.staff .bub{background:#f2f7ff;border-color:#cfe0ff}.msg.note .av{background:#f59e0b;color:#fff}.msg.note .bub{background:#fff8e8;border-color:#f5d899}
.msg .meta{margin-bottom:6px}.file{display:inline-block;margin:6px 8px 0 0;padding:5px 11px;border:1px solid var(--line);border-radius:9px;font-size:13px;background:#fff}
.kv{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #eef2f8;font-size:14px}.kv:last-child{border-bottom:0}.kv span:first-child{color:var(--muted)}
.article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px}.article img{max-width:100%;height:auto;border-radius:10px}.article pre,.article code{background:#f1f5fb;border-radius:6px}.article pre{padding:12px;overflow-x:auto}
.strip{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 20px;margin-top:22px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}
.authbox{max-width:440px;margin:18px auto}.authbox .card{padding:28px}.authbox h1{font-size:24px}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.tabs a{padding:8px 14px;border-radius:99px;background:#fff;border:1px solid var(--line);font-weight:600;font-size:14px;color:var(--navy)}.tabs a.on{background:var(--navy);color:#fff;border-color:var(--navy)}.tabs a:hover{text-decoration:none}
.admin-wrap{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;max-width:1280px;margin:0 auto;padding:22px 16px 44px;min-height:62vh}
.side{background:var(--navy);border-radius:16px;padding:12px;align-self:start;position:sticky;top:84px}.side a{display:block;padding:11px 14px;border-radius:10px;color:#cfd8f0;font-weight:600;font-size:14px}.side a:hover{background:#ffffff14;color:#fff;text-decoration:none}.side a.on{background:var(--blue);color:#fff}
.admin-main h1{margin-bottom:4px}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.foot{border-top:1px solid var(--line);background:#fff;padding:18px 0;font-size:13px;color:var(--muted)}
@media(max-width:860px){.two{grid-template-columns:1fr}.admin-wrap{grid-template-columns:1fr}.side{position:static;display:flex;overflow-x:auto;gap:4px}.side a{white-space:nowrap}}
@media(max-width:600px){.hero{padding:26px 18px}.hero h1{font-size:23px}.search{flex-direction:column}}
