:root {
  color-scheme: dark;
  --bg: #111317;
  --card: #26292b;
  --field: #15181e;
  --dock: #14161c;
  --stroke: #373c46;
  --text: #e2e8f0;
  --heading: #fff;
  --hint: #a1aec0;
  --selected: #e0e5ee;
  --selected-text: #12151a;
  font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e7f3f3;
  --card: #fff;
  --field: #f3f3f5;
  --dock: #fff;
  --stroke: #dce3e0;
  --text: #1e293b;
  --heading: #0f172a;
  --hint: #52647c;
  --selected: #111113;
  --selected-text: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
main { max-width: 720px; margin: auto; padding: 22px 16px calc(92px + env(safe-area-inset-bottom)); }
header { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
h1 { margin: 4px 0 0; font-size: clamp(25px, 8vw, 31px); color: var(--heading); letter-spacing: -.025em; }
#subtitle, #status { color: var(--hint); font-size: 14px; margin: 0; }
#status:not(:empty) { margin: 0 0 14px; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; }
#refresh { border-radius: 50%; width: 44px; height: 44px; background: var(--card); font-size: 25px; flex: none; }
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: 24px; padding: 16px; margin-bottom: 10px; }
label { display: block; font-weight: 650; margin-bottom: 10px; }
select { width: 100%; padding: 13px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--field); }
h2 { margin: 0 0 10px; font-size: 19px; color: var(--heading); }
dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 7px 12px; font-size: 14px; }
dt { color: var(--hint); }
dd { margin: 0; overflow-wrap: anywhere; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
td { padding: 9px; border-bottom: 1px solid var(--stroke); white-space: pre-line; min-width: 75px; }
nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 720px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--dock); border: 1px solid var(--stroke); border-radius: 24px 24px 0 0; padding: 7px 8px max(8px, env(safe-area-inset-bottom)); }
nav button { display: grid; place-items: center; gap: 2px; min-height: 51px; border-radius: 16px; font-size: 11px; background: transparent; color: var(--hint); }
nav button span { font-size: 21px; line-height: 1; }
nav button[aria-current] { background: var(--selected); color: var(--selected-text); }
