/* The pages' one stylesheet (slice 1.7b). Served from the site itself, as the policy requires; no inline style. */

:root {
  --ink: #1d2433;
  --quiet: #5b6475;
  --line: #d9dde5;
  --paper: #ffffff;
  --panel: #f5f7fa;
  --accent: #1f5fbf;
  --accent-ink: #ffffff;
  --refused: #a32a2a;
  --done: #1d6b3a;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7eaf0;
    --quiet: #a3abba;
    --line: #353c4a;
    --paper: #14171d;
    --panel: #1c2028;
    --accent: #6ea0ec;
    --accent-ink: #0d1117;
    --refused: #f08a8a;
    --done: #7fd19c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; flex: 1; }
header a { color: var(--ink); text-decoration: none; }
header a:hover { text-decoration: underline; }
.site-name { font-weight: 600; }
.who { display: flex; gap: 12px; align-items: center; color: var(--quiet); font-size: 14px; }

main { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 19px; margin: 28px 0 8px; }

#status { min-height: 1.5em; margin: 0 0 16px; color: var(--quiet); }
#status[data-kind="refused"] { color: var(--refused); }
#status[data-kind="done"] { color: var(--done); }

.quiet { color: var(--quiet); }
.reason { white-space: pre-wrap; overflow-wrap: anywhere; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}
.panel h2 { margin-top: 0; }

.field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.field span { font-size: 14px; color: var(--quiet); }
.choice { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 12px; padding: 8px 12px; }

input[type="text"], input[type="email"], input[type="datetime-local"], select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  max-width: 100%;
}
textarea { width: 100%; }

button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 12px;
}
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button:disabled { opacity: 0.5; cursor: default; }

table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { font-size: 14px; color: var(--quiet); font-weight: 600; }

.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.cards > li { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.cards h2 { margin: 0 0 4px; overflow-wrap: anywhere; }
.brands { margin: 0; padding-left: 20px; }

.rows { list-style: none; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
