:root { --bg: #f4f6f9; --card: #fff; --text: #0f172a; --muted: #64748b; --line: #e2e8f0; --primary: #0f766e; --danger: #b91c1c; --warn: #b45309; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: #0f172a; color: #fff; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 16px; } .brand span { font-weight: 400; color: #94a3b8; }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
main { padding: 20px; max-width: 1400px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; }
.narrow { max-width: 460px; margin: 60px auto; }
h1 { margin: 0 0 8px; font-size: 20px; } h2 { margin: 0 0 12px; font-size: 17px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.error { color: var(--danger); }
.notice { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.notice.bad { background: #fef2f2; border-color: #fecaca; }
input, textarea, select { font: inherit; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; width: 100%; background: #fff; }
input[type=month] { width: auto; }
label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; } label input, label textarea { margin-top: 4px; color: var(--text); }
label.check { display: flex; gap: 8px; align-items: center; color: var(--text); } label.check input { width: auto; margin: 0; }
button { font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--primary); background: var(--primary); color: #fff; cursor: pointer; }
button.ghost { background: transparent; color: inherit; border-color: #94a3b8; }
button.small { padding: 3px 9px; font-size: 12px; }
button.danger { background: var(--danger); border-color: var(--danger); }
#loginForm { display: flex; gap: 8px; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.ok { background: #dcfce7; color: #15803d; } .off { background: #e2e8f0; color: #334155; } .hot { background: #fef3c7; color: var(--warn); } .over { background: #fee2e2; color: var(--danger); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; } .kpi b { display: block; font-size: 22px; } .kpi span { color: var(--muted); font-size: 12px; }
dialog { border: none; border-radius: 14px; padding: 20px; width: min(560px, 94vw); box-shadow: 0 20px 50px rgba(0,0,0,.25); } dialog::backdrop { background: rgba(15,23,42,.45); }
#usageDialog { width: min(980px, 96vw); } .scroll { max-height: 60vh; overflow: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.keybox { display: flex; gap: 8px; align-items: center; background: #0f172a; color: #e2e8f0; padding: 10px; border-radius: 8px; } .keybox code { flex: 1; word-break: break-all; }
.rowactions { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } #loginForm { flex-direction: column; } }
