:root {
  --bg: #f4f5f7; --card: #fff; --ink: #14171f; --muted: #6b7280; --line: #e5e7eb;
  --brand: #0b2a5b; --accent: #e11d48; --ok: #15803d; --warn: #b45309; --err: #b91c1c;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1117; --card: #171b24; --ink: #e8eaf0; --muted: #9aa3b2; --line: #262c38; --brand: #7aa2ff; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
code { background: var(--bg); padding: 1px 6px; border-radius: 6px; font-size: .88em; word-break: break-all; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--ink); font-size: 17px; display: flex; align-items: center; gap: 8px; }
.logo { background: var(--accent); color: #fff; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; }
nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink); }
main.wrap { padding-top: 28px; padding-bottom: 40px; }
@media (max-width: 600px) {
  .top .wrap { padding-top: 10px; padding-bottom: 10px; }
  nav { gap: 12px; font-size: 14.5px; width: 100%; }
  nav .btn { display: none; }
  nav form { margin-left: auto; }
  main.wrap { padding-top: 20px; }
  h1 { font-size: 21px; }
}
h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 0 0 12px; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.head h1 { margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.narrow { max-width: 420px; margin: 40px auto; }
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 9px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: 13.5px; }
.btn-lg { padding: 13px 22px; font-size: 16px; width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .btn { color: #0e1117; } .btn-ghost { color: var(--ink); } }
button.link { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.inline { display: inline; }
label { display: block; font-weight: 600; margin-bottom: 14px; }
label small, .muted { color: var(--muted); font-weight: 400; }
.small { font-size: 13px; }
input, textarea, select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font: inherit; font-weight: 400; }
input[type=checkbox] { display: inline; width: auto; margin: 0 6px 0 0; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); }
fieldset.card legend { font-weight: 700; padding: 0 6px; }
.form .card { margin-bottom: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.flash-ok { background: #dcfce7; color: #14532d; }
.flash-err { background: #fee2e2; color: #7f1d1d; }
.warn { color: var(--warn); } .err { color: var(--err); }
.list { padding: 0; }
.vrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; flex-wrap: wrap; }
.vrow:last-child { border-bottom: 0; }
.vrow:hover { background: var(--bg); }
.vmain { display: flex; flex-direction: column; min-width: 0; }
.vmain small { color: var(--muted); }
.vpubs { display: flex; flex-wrap: wrap; gap: 6px; }
.vpubs > span { display: inline-flex; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.vpubs .chip { border-radius: 0; }
.vpubs .st { border-radius: 0; }
.chip { display: inline-block; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg); }
.st-done { color: var(--ok); } .st-failed { color: var(--err); } .st-action { color: var(--warn); }
.st-running, .st-pending { color: var(--muted); }
.empty { text-align: center; padding: 40px 20px; }
.accounts { margin-bottom: 14px; }
.accounts .lbl { display: block; font-weight: 600; margin-bottom: 8px; }
.pgroup { border-radius: 10px; padding: 8px 12px 4px; margin: 0 0 10px; }
.pgroup legend { padding: 0 4px; }
.check { font-weight: 400; display: flex; align-items: center; margin-bottom: 6px; }
.progress { position: relative; height: 30px; background: var(--bg); border-radius: 9px; overflow: hidden; margin: -4px 0 16px; }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: #bfdbfe; transition: width .2s; }
.progress.ok .bar { background: #bbf7d0; } .progress.bad .bar { background: #fecaca; width: 100% !important; }
.progress .ptext { position: relative; display: block; text-align: center; line-height: 30px; font-size: 13px; font-weight: 600; color: #14171f; }
.grid2 { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.player { width: 100%; max-height: 520px; border-radius: 10px; background: #000; }
.desc { white-space: pre-wrap; }
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pubs li:last-child { border-bottom: 0; }
.prow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pmsg { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.pact { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.provs { display: grid; gap: 10px; margin-bottom: 8px; }
.prov { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.off { opacity: .5; }
.right { text-align: right; white-space: nowrap; }
.urls li { margin-bottom: 4px; }
.legal { max-width: 780px; margin: 0 auto 16px; }
.legal h2 { margin-top: 8px; } .legal h3 { font-size: 15px; margin: 18px 0 6px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.foot { color: var(--muted); font-size: 13px; padding-bottom: 30px; text-align: center; }
.foot a { color: var(--muted); }
