:root {
  color-scheme: light dark;
  --paper: #eff1eb;
  --ink: #172623;
  --muted: #476059;
  --line: #9bae9f;
  --accent: #184c3b;
  --button-ink: #fff;
  --warn: #8c352d;
  font: 17px/1.55 system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16241f;
    --ink: #e5ede5;
    --muted: #acc2b6;
    --line: #60796b;
    --accent: #9cd4ba;
    --button-ink: #10251d;
    --warn: #ffb4a8;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; }
main { width: min(46rem, 100%); margin: auto; padding: clamp(1rem, 4vw + .5rem, 3.5rem); }
header { border-top: .45rem solid var(--accent); padding-top: 1.2rem; }
h1, h2 { font: normal 2rem/1.05 Georgia, serif; margin: .3em 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 9vw, 5rem); }
h3 { margin-block: 0 .5rem; }
p { margin: .55rem 0; }
header > p, #empty-records { color: var(--muted); }
.kicker, .mono, td:first-child, td:nth-child(2), td:last-child { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .79rem; }
.status { padding: .7rem 0; margin: 1.4rem 0; border-block: 1px solid var(--line); }
.status[data-error="true"] { color: var(--warn); font-weight: 650; }
.inset { border: 1px solid var(--line); padding: 1rem; margin: 1rem 0; }
section { margin: 1.4rem 0 2rem; }
summary { cursor: pointer; min-block-size: 2.75rem; padding: .35rem 0; }
details + details { border-top: 1px solid var(--line); }
form { margin: .6rem 0 1.2rem; }
label { display: block; font-weight: 650; }
input:not([type="checkbox"]), select {
  width: 100%;
  min-block-size: 2.75rem;
  margin: .25rem 0 .85rem;
  padding: .45rem .55rem;
  border: 1px solid var(--line);
  border-radius: .18rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
input.mono { font-family: ui-monospace, monospace; }
.check { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; }
.check input { min-width: 1.2rem; min-height: 1.2rem; }
button, .button {
  font: inherit;
  font-weight: 650;
  min-block-size: 2.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: .45rem .75rem;
  background: var(--accent);
  color: var(--button-ink);
  border: 1px solid var(--accent);
  border-radius: .22rem;
}
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: .75rem 0; }
.device-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-block-start: .8rem; }
.device-invite canvas { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
.device-invite > div { flex: 1 1 14rem; min-width: 0; }
table { width: 100%; border-collapse: collapse; margin: .8rem 0; font-size: .9rem; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .42rem .35rem; }
td:nth-child(4) { white-space: pre-wrap; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
