:root {
  color-scheme: dark;
  --page: #10161e;
  --surface: #19222c;
  --raised: #24313d;
  --line: #364753;
  --text: #f0f5f8;
  --muted: #b0bec9;
  --accent: #82e1c4;
  --accent-ink: #14332b;
  --danger: #ffc0bb;
  font: 16px/1.5 system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #b2ffe7; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: #141d26; }
.topbar-inner, .navigation, .brand, .page-heading, .list-tools, .search-form, .browser-row { display: flex; align-items: center; gap: .75rem; }
.topbar-inner { min-height: 72px; justify-content: space-between; gap: 1rem 2rem; }
.brand { text-decoration: none; color: var(--text); font-weight: 720; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; color: var(--accent); background: #233d39; border: 1px solid #3c6159; border-radius: 9px; }
.navigation { flex-wrap: wrap; gap: .15rem 1rem; font-size: .9rem; }
.navigation a, .link-button { color: var(--muted); text-decoration: none; }
.navigation a:hover, .link-button:hover { color: var(--text); text-decoration: underline; }
.navigation form { margin: 0; }
.link-button { background: none; border: 0; padding: 0; min-height: 40px; font: inherit; cursor: pointer; }
.content { padding-block: 3rem 5rem; }
.narrow { max-width: 560px; }
.page-heading { justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
h1, h2, p { margin: 0 0 .65rem; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; letter-spacing: -.042em; overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; letter-spacing: -.015em; }
.muted, .row-note, .helptext, dt { color: var(--muted); }
.surface { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; }
.list-tools { justify-content: space-between; padding: .8rem 1rem; flex-wrap: wrap; }
.search-form { flex-wrap: wrap; flex: 1 1 22rem; }
.search-form input { width: min(17rem, 100%); }
input:not([type="checkbox"]):not([type="hidden"]), select {
  background: var(--page); color: var(--text); font: inherit; min-height: 42px; border: 1px solid var(--line);
  border-radius: 8px; padding: .55rem .65rem; max-width: 100%;
}
.button, .account button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .45rem .85rem;
  color: var(--text); background: var(--raised); border: 1px solid #4a5d6c; border-radius: 8px;
  text-decoration: none; font: inherit; font-weight: 650; cursor: pointer;
}
.button:hover, .account button:hover { color: var(--text); background: #31424f; }
.button.primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.button.primary:hover { color: #09271f; background: #a4f6db; }
.button.danger { color: var(--danger); }
.button:disabled { opacity: .58; cursor: default; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
thead th { color: var(--muted); font-size: .82rem; font-weight: 620; white-space: nowrap; }
tbody th { min-width: 11rem; overflow-wrap: anywhere; }
.row-note { display: block; font-size: .8rem; font-weight: 430; }
.status { display: inline-block; border-radius: 999px; padding: .18rem .6rem; border: 1px solid #465966; background: #25323e; color: #e0e9f1; font-size: .83rem; white-space: nowrap; }
.status-good { color: #a4efd8; background: #1c3c35; border-color: #3a6d60; }
.status-stop { color: #ffcabf; background: #442c2d; border-color: #764e4b; }
.empty, .pagination { padding: 1rem; margin: 0; }
.pagination { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--line); }
.back { display: inline-block; margin-bottom: 1rem; }
.form-panel { padding: clamp(1rem, 3vw, 1.4rem); margin-block: 1rem; }
.form-panel form > div, .form-panel > div, .account form > p { margin-bottom: 1rem; }
.form-panel label, .account label { display: block; margin-bottom: .3rem; font-weight: 620; }
.form-panel input:not([type="checkbox"]):not([type="hidden"]), .form-panel select, .account input:not([type="checkbox"]):not([type="hidden"]) { display: block; width: 100%; }
.form-panel .key { font-family: ui-monospace, monospace; margin-bottom: .65rem; }
.helptext { font-size: .85rem; margin-block: .2rem; }
.errorlist, .problem { color: var(--danger); }
.problem, .messages { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 1rem; padding: .7rem 1rem; }
.messages { list-style: none; background: #1c3c35; color: #b1f5df; }
.facts { padding: 1rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.facts dd { margin: .25rem 0 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.detail-grid .form-panel { margin-bottom: 0; }
.browser-row { justify-content: space-between; padding-block: .45rem; }
.form-panel .check { display: flex; gap: .5rem; align-items: center; margin: .8rem 0; }
.account img { display: block; max-width: 100%; width: min(12rem, 100%); margin: .8rem 0; background: white; }
.account form { margin-top: 1rem; }
.account form input[disabled] { opacity: .75; }
.skip-link { position: absolute; transform: translateY(-150%); padding: .4rem; background: var(--page); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: .7rem 0; }
  .content { padding-top: 1.8rem; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  th, td { padding-inline: .7rem; }
  .navigation a { display: inline-flex; align-items: center; min-height: 40px; }
}
.issued-next { margin-top: 1rem; }
.button[hidden] { display: none; }
.installation-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.installation-guides code { overflow-wrap: anywhere; }
.form-panel form > fieldset { margin: 0 0 1rem; padding: 0; border: 0; }
.form-panel legend { margin-bottom: .35rem; font-weight: 650; }
