:root {
  color-scheme: dark;
  font: 100%/1.5 system-ui, sans-serif;
  color: #eeeef3;
  background: #15151b;
  --surface: #202029;
  --border: #383845;
  --accent: #cbf96d;
  --muted: #b2b2c1;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { width: min(100% - 2rem, 66rem); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--border); background: #191920; }
.nav { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; color: inherit; font-weight: 750; text-decoration: none; font-size: 1.25rem; }
.mark { display: grid; place-items: center; margin-right: .65rem; border-radius: .55rem; width: 2rem; height: 2rem; background: var(--accent); color: #171b10; }
.domain, .destination, .axis { color: var(--muted); }
main { padding-block: clamp(2rem, 6vw, 4rem); }
h1 { margin: 0 0 1.25rem; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; letter-spacing: -.045em; }
h2 { margin: 2rem 0 .75rem; font-size: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.5rem); }
.login { max-width: 28rem; }
label { display: block; font-weight: 600; }
input, button, .quiet { font: inherit; border-radius: .55rem; padding: .6rem .85rem; }
input { width: 100%; min-width: 0; border: 1px solid var(--border); background: #15151b; color: inherit; }
button { background: var(--accent); color: #171b10; border: 1px solid transparent; cursor: pointer; font-weight: 700; }
button:hover { filter: brightness(1.08); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.quiet { display: inline-block; border: 1px solid var(--border); color: inherit; background: transparent; text-decoration: none; font-weight: 600; }
.quiet:hover { background: #2d2d38; }
.create-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.create-fields label { margin-bottom: .4rem; }
.alias-input { display: flex; align-items: center; gap: .55rem; }
.alias-input span, #alias-help { color: var(--muted); }
#alias-help { display: block; margin-top: .3rem; font-size: .875rem; }
.form-submit { justify-self: start; }
.stack { display: grid; gap: .65rem; }
.stack button { margin-top: .5rem; }
.error { color: #ffafb4; margin-bottom: 0; }
.list { padding: 0; }
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; }
.link-row + .link-row { border-top: 1px solid var(--border); }
.link-address { min-width: 0; overflow-wrap: anywhere; }
.link-address h3 { margin: 0 0 .15rem; font-size: 1rem; }
.link-row .actions { flex-shrink: 0; }
.destination { margin: .25rem 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail { overflow-wrap: anywhere; white-space: normal; }
.actions, .pagination { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination { margin-top: 1rem; gap: 1rem; }
.copy-status:empty { margin: 0; }
.empty { margin: 1rem; color: var(--muted); }
.back { display: inline-block; margin-bottom: 1rem; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0 .75rem; }
.metrics h2, .chart h2 { margin: 0 0 .5rem; }
.metrics strong { font-size: clamp(1.5rem, 4vw, 2.5rem); overflow-wrap: anywhere; }
.bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; height: 9rem; border-bottom: 1px solid var(--border); }
meter { width: 100%; height: 100%; writing-mode: vertical-lr; direction: rtl; }
meter::-webkit-meter-bar { background: #2d2d38; border: none; }
meter::-webkit-meter-optimum-value { background: var(--accent); }
meter::-moz-meter-bar { background: var(--accent); }
.axis { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .875rem; }
details { margin-top: 1rem; }
summary { cursor: pointer; }
table { width: 100%; border-collapse: collapse; margin-top: .75rem; }
th, td { padding: .4rem; border-bottom: 1px solid var(--border); text-align: left; }
@media (max-width: 37rem) {
  .link-row { align-items: flex-start; flex-direction: column; }
  .link-address { width: 100%; }
  .create-fields { grid-template-columns: 1fr; }
}
