:root {
  color-scheme: light dark;
  --fg: #14181f;
  --muted: #5a6472;
  --line: #d8dee7;
  --bg: #ffffff;
  --danger: #a3231b;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #e7ebf2; --muted: #97a1b0; --line: #2c333d; --bg: #12151a; }
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 1.5rem;
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--fg); background: var(--bg);
}
.pane { max-width: 72rem; margin: 0 auto; }

/* Panes are toggled with the `hidden` property, and an id-level `display`
   rule below would otherwise outrank the browser's own `[hidden]` style and
   reveal every pane at once. */
[hidden] { display: none !important; }

/* The auth panes are a single short form, so they sit in the middle of the
   window. The dashboard deliberately does not: tables are easier to read
   wide and left-aligned, which is what .pane above gives it. */
#boot, #signin, #denied {
  max-width: 24rem;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#signin form, #denied form { max-width: none; }
h1 { font-size: 1.25rem; margin: 0; }
h2 { font-size: 1.1rem; margin: 1rem 0 .25rem; }
h3 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin: 1.5rem 0 0;
}
/* A differing row in the provider comparison is the finding, so it is marked
   rather than left for the reader to diff by eye. */
tr.failed td { color: var(--danger); }
header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: .75rem; margin-bottom: 1rem; }
nav { display: flex; gap: .25rem; flex-wrap: wrap; margin-inline-start: auto; }
nav button { background: none; border: 1px solid transparent; }
nav button[aria-current="true"] { border-color: var(--line); font-weight: 600; }
button {
  font: inherit; padding: .4rem .7rem; border: 1px solid var(--line);
  border-radius: .375rem; background: none; color: inherit; cursor: pointer;
}
button:disabled { opacity: .5; cursor: not-allowed; }
form { display: grid; gap: .5rem; max-width: 22rem; margin-top: 1rem; }
input {
  font: inherit; padding: .45rem .6rem; border: 1px solid var(--line);
  border-radius: .375rem; background: none; color: inherit;
}
label { font-size: .85rem; color: var(--muted); }
.error { color: var(--danger); }
.note { color: var(--muted); font-size: .9rem; }
table { border-collapse: collapse; width: 100%; margin-top: .75rem; }
th, td {
  text-align: start; padding: .45rem .6rem;
  border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.empty { color: var(--muted); font-style: italic; }
.failed { color: var(--danger); }
.actions-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.search { display: block; max-width: none; margin: 0 0 1rem; }
.search label { display: block; margin-bottom: .35rem; }
.search input { min-width: 18rem; }
#notice { margin: 0 0 1rem; }
#notice.note { color: var(--muted); }
#notice.failed { color: var(--danger); font-weight: 600; }
dialog {
  border: 1px solid var(--line); border-radius: .5rem; padding: 1.25rem;
  max-width: 32rem; color: var(--fg); background: var(--bg);
}
dialog::backdrop { background: rgb(0 0 0 / .45); }
dialog h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
#action-fields { display: grid; gap: .35rem; margin-bottom: .75rem; }
#action-fields select, #action-fields input {
  font: inherit; padding: .45rem .6rem; width: 100%;
  border: 1px solid var(--line); border-radius: .375rem;
  background: none; color: inherit;
}
#action-fields label { margin-top: .35rem; }
#sentry-link { color: inherit; font-size: .9rem; }
dialog textarea {
  font: inherit; width: 100%; padding: .45rem .6rem; margin-bottom: .75rem;
  border: 1px solid var(--line); border-radius: .375rem;
  background: none; color: inherit;
}
.cards { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.card { border: 1px solid var(--line); border-radius: .5rem; padding: .75rem 1rem; }
.card b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.card span { color: var(--muted); font-size: .85rem; }
