:root { --bg: #F4F5F3; --card: #fff; --ink: #14181A; --muted: #5C6366; --line: #DDE0DE; --brand: #2F5E4E; --brand-ink: #fff; --ok: #1F7A4D; --ok-bg: #E3F2EA; --warn: #8A5A00; --warn-bg: #FBF0D9; --bad: #A3271D; --bad-bg: #FBE6E3; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
h1, h2 { margin: 0; line-height: 1.2; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
.pad { padding: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: #EEF0EE; color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.stat strong { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #B9BEBC; margin-right: 6px; }
.dot.on { background: var(--ok); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
button, .btn { font: inherit; font-weight: 500; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 7px 12px; cursor: pointer; min-height: 36px; }
button:hover { border-color: #B9BEBC; }
button.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
button.danger { color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #7FB8A3; outline-offset: 2px; }
form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; padding: 16px; align-items: start; }
form.grid > button { align-self: end; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
input, select { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 38px; background: #fff; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; width: min(380px, 100%); display: grid; gap: 14px; }
.notice code.secret { display: inline-block; margin-top: 8px; word-break: break-all; }
.hint { font-weight: 400; font-size: 12px; color: var(--muted); }
.error { color: var(--bad); margin: 0; min-height: 1.2em; }
.notice { margin: 0 16px 16px; padding: 14px 16px; border-radius: 8px; background: var(--warn-bg); color: #4A3500; }
.notice code { font-size: 15px; background: #fff; padding: 2px 6px; border-radius: 4px; user-select: all; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
@media (max-width: 760px) {
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  td { border: 0; padding: 6px 16px; }
}

dialog.ask { border: 0; border-radius: 10px; padding: 20px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog.ask::backdrop { background: rgba(0,0,0,.35); }
dialog.ask p { margin: 0 0 12px; line-height: 1.45; }
dialog.ask input { width: 100%; box-sizing: border-box; margin-bottom: 14px; }
dialog.ask .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.linklike { border: 0; background: none; color: var(--brand); padding: 0; min-height: 0; text-decoration: underline; justify-self: start; }
.ok-text { color: var(--ok) !important; }
.bad-text { color: var(--bad); }
.msg { max-width: 34ch; }
.login .box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; width: min(420px, 100%); display: grid; gap: 14px; }
canvas.qr { justify-self: center; image-rendering: pixelated; border: 1px solid var(--line); }
ol.codes { columns: 2; margin: 0; padding-left: 20px; }
ol.codes code { font-size: 15px; user-select: all; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
label.check { justify-content: flex-start; text-align: left; }
dialog.ask label.check input { width: auto; min-height: 0; margin: 0; flex: none; }
.span { grid-column: 1 / -1; margin: 0; }
