:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #111522;
  color: #f2f5ff;
  --surface: #1c2335;
  --border: #37435b;
  --muted: #b4bfd5;
  --accent: #a9beff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.frame { max-width: 72rem; margin: 0 auto; padding-inline: 1.25rem; width: 100%; }
.top { border-bottom: 1px solid var(--border); }
.top .frame, .brand, .heading, .actions { display: flex; align-items: center; gap: 0.75rem; }
.top .frame { min-height: 4rem; justify-content: space-between; flex-wrap: wrap; }
.brand { color: inherit; text-decoration: none; font-weight: 600; flex-wrap: wrap; }
.mark { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 0.4rem; background: var(--accent); color: #14224b; }
.product { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
main.frame { padding-block: 2.5rem; }
.panel, dialog, .counts div { background: var(--surface); border: 1px solid var(--border); border-radius: 0.7rem; }
.signin { max-width: 29rem; margin: 3rem auto; padding: 1.5rem; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0; letter-spacing: -0.025em; }
h2 { margin-top: 0; font-size: 1.25rem; }
p { color: var(--muted); line-height: 1.55; }
.heading { justify-content: space-between; flex-wrap: wrap; }
.heading p { margin: 0.5rem 0; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.counts div { padding: 1rem; }
.counts dt { color: var(--muted); font-size: 0.9rem; }
.counts dd { margin: 0.25rem 0 0; font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 41rem; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
thead th { color: var(--muted); font-weight: 500; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
small { display: block; color: var(--muted); margin-top: 0.25rem; }
.online { color: #91e2b8; }
button, input { font: inherit; }
button { color: #15244b; background: var(--accent); border: 1px solid transparent; border-radius: 0.45rem; padding: 0.55rem 0.85rem; font-weight: 600; cursor: pointer; }
button.secondary { color: inherit; background: transparent; border-color: var(--border); }
button.danger { color: #40121a; background: #ffb5bd; }
button:disabled { opacity: 0.55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
dialog { color: inherit; width: min(31rem, calc(100% - 2rem)); padding: 1.5rem; }
dialog::backdrop { background: #080d17b0; }
dialog label { display: block; margin: 1rem 0 0.35rem; }
dialog input { width: 100%; background: #141b2b; color: inherit; border: 1px solid var(--border); border-radius: 0.4rem; padding: 0.65rem; }
.actions { margin-top: 1rem; flex-wrap: wrap; }
[role="alert"] { color: #ffc0c7; }
@media (max-width: 34rem) {
  main.frame { padding-block: 1.5rem; }
  .counts { gap: 0.4rem; }
  .counts div { padding: 0.55rem; }
  .counts dt { font-size: 0.85rem; }
}
