:root {
  color-scheme: dark;
  font-family: Inter, system-ui, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  --bg: #111113;
  --sidebar: #151517;
  --card: #19191c;
  --line: #2c2c31;
  --muted: #aaaab3;
  --text: #f5f4f8;
  --accent: #c1aaff;
  --accent-ink: #21152e;
  --success: #a0d9b7;
  --warn: #edca90;
  --danger: #f2a6ad;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3,th,strong { font-weight: 450; }
h1 { font-size: clamp(28px,5vw,40px); letter-spacing: -.045em; line-height: 1.15; }
h2 { font-size: 19px; letter-spacing: -.015em; }
h3 { font-size: 15px; }
a { color: var(--accent); }
button,.button,input,select { font: inherit; }
button,.button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.loading { text-align: center; margin: 20vh 20px; color: var(--muted); }
.muted, small { color: var(--muted); }
small { font-size: .86rem; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 6px; display: block; }
.brand span { font-size: 17px; letter-spacing: -.025em; }
.button,button.action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 15px; min-height: 43px; border: 1px solid #3b3a41; border-radius: 7px;
  color: var(--text); background: #242427; text-decoration: none;
  transition: background-color .16s, border-color .16s;
}
.button:hover,button.action:hover { background: #2c2b32; border-color: #67616f; }
.button.primary,button.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.button.primary:hover,button.primary:hover { background: #d6c6ff; }
button:disabled,.button.disabled { opacity: .55; cursor: default; }
button.danger { color: var(--danger); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
label { display: grid; gap: 6px; }
input:not([type=checkbox]),select {
  width: 100%; padding: 9px 11px; min-height: 43px; border-radius: 7px;
  border: 1px solid #414047; background: #141416; color: var(--text);
}
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
input::placeholder { color: #8b8b96; }
.stack { display: grid; gap: 17px; }
.error { color: var(--danger); }
.error:empty { display: none; }
.auth {
  min-height: 100svh; display: grid; place-content: center; padding: 22px;
  background: radial-gradient(ellipse at 30% 13%, #231930 0%, #111113 52%);
}
.auth-panel { width: min(440px, 100%); display: grid; gap: 22px; }
.auth-panel > .brand { margin-left: 2px; }
.auth-panel .card { display: grid; gap: 21px; padding: 29px; }
.auth-panel h1 { font-size: 32px; }
.auth-heading { display: grid; gap: 7px; }
.auth-panel .card > .link-button { justify-self: start; }
.auth-switch { color: var(--muted); text-align: center; }
.link-button { background: none; border: 0; color: var(--accent); padding: 0; font: inherit; text-decoration: underline; }
.frame { display: grid; min-height: 100svh; grid-template-columns: 218px minmax(0, 1fr); }
.rail { position: sticky; top: 0; height: 100svh; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 34px; padding: 22px 15px 15px; }
.rail > .brand { margin-left: 5px; }
.rail nav { display: grid; gap: 5px; }
.navitem {
  font: inherit; text-align: left; border: 1px solid transparent; border-radius: 7px;
  background: none; color: var(--muted); padding: 9px 11px; display: flex; align-items: center; gap: 10px;
}
.navitem:hover { background: #202024; color: var(--text); }
.navitem[aria-current=page] { background: #262233; border-color: #383044; color: #e9dcff; }
.rail-footer { display: grid; gap: 10px; margin-top: auto; padding: 9px 5px 0; border-top: 1px solid var(--line); }
.rail-footer small { overflow-wrap: anywhere; }
.rail-footer .link-button { justify-self: start; }
.workspace { width: min(100%, 1140px); margin: 0 auto; padding: 41px clamp(17px, 4vw, 58px) 70px; }
.crumb { color: var(--muted); font-size: .88rem; margin-bottom: 15px; }
.hero {
  display: grid; align-items: center; grid-template-columns: auto minmax(0,1fr); gap: 20px;
  padding: clamp(20px,4vw,34px); margin-bottom: 22px; border: 1px solid #372f3f; border-radius: 12px;
  background: linear-gradient(120deg, #221b2b, #1a181d 60%, var(--card));
}
.hero > img { width: 70px; height: 70px; border-radius: 9px; border: 1px solid #493759; }
.hero-text { display: grid; gap: 8px; }
.status { width: max-content; font-size: .84rem; color: var(--muted); letter-spacing: .015em; }
.status.good { color: var(--success); }
.status.wait { color: var(--warn); }
.status.bad { color: var(--danger); }
.status::before { content: ""; display: inline-block; background: currentColor; border-radius: 50%; width: 6px; height: 6px; margin: 0 7px 2px 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(226px, 1fr); gap: 16px; align-items: start; }
.card { padding: 21px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.card h2 + p,.card h3 + p { margin-top: 4px; }
.card-header,.page-header { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.page-header { margin-bottom: 21px; }
.page-header p { margin-top: 6px; }
.metric-list { margin: 0; display: grid; gap: 12px; }
.metric-list div { display: flex; justify-content: space-between; gap: 14px; padding-top: 11px; border-top: 1px solid var(--line); }
.metric-list div:first-child { border: 0; padding-top: 0; }
.metric-list dt { color: var(--muted); }
.metric-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
code,textarea.key { font-family: ui-monospace, Consolas, monospace; font-size: .94rem; overflow-wrap: anywhere; }
.release-meta { padding-top: 12px; border-top: 1px solid var(--line); }
.key { display: block; width: 100%; min-height: 96px; padding: 10px; background: #141416; color: var(--text); border: 1px solid #41374c; border-radius: 6px; resize: vertical; }
.plain-list { padding-left: 20px; margin: 0; color: var(--muted); }
.plain-list li + li { margin-top: 7px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: var(--muted); font-size: .86rem; }
th,td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.table-tools { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; }
.table-tools label { width: min(100%, 330px); }
.select-line { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; }
.dialog-header { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.account-access { padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
dialog { width: min(550px, calc(100% - 28px)); padding: 24px; color: var(--text); background: var(--card); border: 1px solid #444149; border-radius: 11px; }
dialog::backdrop { background: #08080bbd; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 10; background: #282332; color: var(--text); border: 1px solid #514665; border-radius: 8px; padding: 10px 15px; box-shadow: 0 10px 30px #0005; }
@media(max-width: 760px) {
  .frame { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); gap: 10px; padding: 15px; }
  .rail nav { display: flex; flex-wrap: wrap; }
  .navitem { padding: 6px 8px; }
  .rail-footer { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .workspace { padding-top: 25px; }
  .grid { grid-template-columns: 1fr; }
}
@media(max-width: 390px) {
  .auth-panel .card,.card { padding: 15px; }
  .hero > img { width: 51px; height: 51px; }
  .hero { gap: 12px; }
}
