:root { --bg: #f5f6f8; --card: #fff; --line: #e3e6eb; --text: #1b1f24; --muted: #6b7380; --accent: #2563eb; --bad: #dc2626; --ok: #16a34a; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.hidden { display: none !important; }
button { font: inherit; border: 0; border-radius: 8px; padding: 8px 14px; background: var(--accent); color: #fff; cursor: pointer; }
button.ghost { background: transparent; color: var(--muted); }
button.small { padding: 4px 10px; font-size: 13px; }
button.light { background: #e8eefc; color: var(--accent); }
button.danger { background: #fde8e8; color: var(--bad); }
input, select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
header { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; z-index: 2; }
nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
nav button { background: transparent; color: var(--muted); }
nav button.active { background: #e8eefc; color: var(--accent); font-weight: 600; }
main { padding: 16px; max-width: 1200px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.card h2 { margin: 0 0 12px; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
tr.click:hover { background: #f8fafc; }
tfoot td { font-weight: 600; }
.muted { color: var(--muted); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #eef0f3; }
.pill.ok { background: #dcfce7; color: var(--ok); }
.pill.bad { background: #fee2e2; color: var(--bad); }
.banner { background: #fff7ed; color: #9a3412; padding: 10px 16px; border-bottom: 1px solid #fed7aa; }
.banner.bad { background: #fef2f2; color: var(--bad); border-color: #fecaca; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 340px; display: grid; gap: 10px; }
.error { color: var(--bad); min-height: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 9; }
code { background: #eef0f3; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
label.inline { display: flex; gap: 8px; align-items: center; }
@media (max-width: 600px) { main { padding: 10px; } header { gap: 8px; } }
button.poster { width: 100%; background: #f97316; }
.login .card a button { width: 100%; }
.disp { margin-top: 10px; border-top: 1px solid #E5E7EC; padding-top: 8px; }
.disp summary { cursor: pointer; font-weight: 600; color: #2559C9; }
.disp .kv { margin-top: 10px; }
