:root {
  color-scheme: dark;
  --bg: #161826; --panel: #1f2130; --line: #3f424d; --line-soft: #292b31;
  --fg: #e9e9ed; --strong: #f3f5fe; --muted: #9397ab; --muted-2: #75798c;
  --accent: #9184d9; --accent-hover: #a7a1db; --accent-text: #d2cefd;
  --ok: #7cc9a0;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap {
  max-width: 560px; margin: 0 auto;
  padding-block: 28px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap.wide { max-width: 900px; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 30px; }
.brand { font-weight: 650; font-size: 17px; color: var(--strong); text-decoration: none; }
.brand::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 9px;
  border-radius: 3px; background: var(--accent); vertical-align: 1px;
}
.who { margin-left: auto; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); }
h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.25; font-weight: 650; color: var(--strong); text-wrap: balance; }
h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--strong); }
p { margin: 0 0 12px; }
a { color: var(--accent-text); }
.lead { color: var(--muted); margin-bottom: 22px; }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.card > :last-child { margin-bottom: 0; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 4px 11px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.status.open .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(124, 201, 160, .2); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.card .row { margin: 12px 0 0; }
.btn {
  display: inline-block; padding: 9px 16px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--accent); color: #15131f; font: inherit; font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--accent-text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.small { padding: 5px 10px; font-size: 13px; font-weight: 500; }
label { display: block; margin: 0 0 5px; font-size: 13px; color: var(--muted); }
input[type=text], input[type=password] {
  width: 100%; margin-bottom: 14px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--fg); font: inherit;
}
input:focus-visible, select:focus-visible, .btn:focus-visible, .linkbtn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
select { padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--fg); font: inherit; }
.note { font-size: 13px; color: var(--muted); }
.flash { margin-bottom: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; }
.flash.err { border-color: rgba(224, 138, 138, .5); background: rgba(224, 138, 138, .08); color: #f2c9c9; }
.flash.ok { border-color: rgba(124, 201, 160, .45); background: rgba(124, 201, 160, .08); color: #cdeedb; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 6px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; white-space: nowrap; }
th { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.you { margin-left: 6px; font-size: 12px; color: var(--muted); }
code { padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); font-size: 14px; }
.foot { margin-top: 40px; font-size: 12px; color: var(--muted-2); }
