/* The portal's only stylesheet, in the status page's palette (DataApi.Api/wwwroot/status/app.css). */
:root {
  color-scheme: light;
  --bg: #f6f6f4;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --line: #e2e1dc;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #74736e;
  --accent: #2a78d6;
  --good-bg: #e3f3e3;
  --danger: #b42318;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1a1a19;
    --surface-2: #232321;
    --line: #2f2f2c;
    --text: #ffffff;
    --text-2: #c3c2b7;
    --muted: #9a998f;
    --accent: #3987e5;
    --good-bg: #173117;
    --danger: #f97066;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; margin-top: 32px; }
code { font-family: var(--mono); font-size: 0.9em; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

header { border-bottom: 1px solid var(--line); background: var(--surface); }
header .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
header .brand { font-weight: 600; color: var(--text); margin-right: auto; }
header form { margin: 0; }
main { padding: 32px 0 48px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9em; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }

.button, button {
  display: inline-block;
  font: inherit;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.button:hover { text-decoration: none; }
button.quiet { background: transparent; color: var(--accent); border-color: var(--line); }
button.danger { background: var(--danger); border-color: var(--danger); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.notice { background: var(--good-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; }
.notice p { margin: 0 0 8px; }
.secret { display: block; padding: 10px 12px; margin: 8px 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; user-select: all; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { font-weight: 600; color: var(--text-2); font-size: 0.9em; }
tr:last-child td { border-bottom: 0; }
td form { margin: 0; }

form.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type=text] { font: inherit; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-width: 0; width: 280px; max-width: 100%; }
.field-error, .validation-summary-errors { color: var(--danger); }
.validation-summary-errors ul { margin: 8px 0 0; padding-left: 20px; }
.terms li { margin-bottom: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: normal; margin: 16px 0; }
