/* report.sundiallabs.tech: the measurements site's look (black, white, one red rule), light and dark. */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f5f5f5; --ink: #000000; --ink-2: #333333; --ink-3: #6b6b6b;
  --rule: #e2e2e2; --rule-strong: #c4c4c4; --accent: #cc0000; --focus: #000000; --ok: #1a7f37; --warn-bg: #fff6e0;
  --err: #b00020; --err-bg: #fdecee; --chip: #ffffff; --chip-on: #000000; --chip-on-ink: #ffffff; --radius: 4px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Futura, "Futura PT", "Century Gothic", "Avenir Next", var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #0d0d0d; --surface-2: #161616; --ink: #ffffff; --ink-2: #d6d6d6; --ink-3: #8f8f8f;
    --rule: #262626; --rule-strong: #3a3a3a; --focus: #ffffff; --chip: #000000; --chip-on: #ffffff; --chip-on-ink: #000000;
    --warn-bg: #2a2310; --err: #ff6b7f; --err-bg: #2a1015; --ok: #4ac26b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #0d0d0d; --surface-2: #161616; --ink: #ffffff; --ink-2: #d6d6d6; --ink-3: #8f8f8f;
  --rule: #262626; --rule-strong: #3a3a3a; --focus: #ffffff; --chip: #000000; --chip-on: #ffffff; --chip-on-ink: #000000;
  --warn-bg: #2a2310; --err: #ff6b7f; --err-bg: #2a1015; --ok: #4ac26b; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.dim { color: var(--ink-3); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
code { font-family: var(--mono); font-size: 0.92em; background: var(--surface-2); padding: 1px 4px; border-radius: 3px; }

/* header / footer */
.top { border-bottom: 2px solid var(--accent); background: var(--bg); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--ink); }
.wordmark { display: block; height: 30px; width: auto; }
.brand-sub { font-family: var(--display); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  border-left: 1px solid var(--rule-strong); padding-left: 12px; line-height: 30px; }
:root[data-theme="dark"] .wordmark { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark { filter: invert(1); } }
.theme-toggle { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink-2); display: flex; }
.foot { background: #000; color: #9a9a9a; margin-top: 72px; padding: 28px 0 36px; font-size: 13px; border-top: 2px solid var(--accent); }
.foot a { color: #fff; text-decoration-color: #555; }

/* page */
h1 { font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -0.01em; margin: 40px 0 8px; }
h2 { font-size: 17px; margin: 0; }
.lede { color: var(--ink-2); font-size: 17px; margin: 0 0 26px; }
.field { margin: 0 0 26px; border: 0; padding: 0; min-width: 0; }
.q { display: block; font-weight: 650; font-size: 17px; margin: 0 0 8px; padding: 0; }
legend.q { margin-bottom: 8px; }
.opt { font-weight: 400; font-size: 14px; color: var(--ink-3); margin-left: 4px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 5px; }
textarea, input:not([type]), input[type="email"], input[type="text"], input[type="password"], input[type="search"], select {
  width: 100%; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 10px 12px; line-height: 1.45; }
textarea { resize: vertical; min-height: 44px; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: var(--focus); }
.invalid textarea, .invalid input { border-color: var(--err); }
.error { color: var(--err); font-size: 14px; margin: 6px 0 0; }
.error:empty { display: none; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ink); background: var(--surface);
  color: var(--ink); padding: 9px 16px; border-radius: 2px; cursor: pointer; font-weight: 600; font-size: 15px; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--ink); color: var(--bg); padding: 12px 26px; font-size: 16px; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.danger { border-color: var(--err); color: var(--err); }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.link:hover { text-decoration-color: currentColor; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; border: 1px solid var(--rule-strong); background: var(--chip); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--chip-on); color: var(--chip-on-ink); border-color: var(--chip-on); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.tips { margin-top: 14px; background: var(--surface-2); border-left: 3px solid var(--ink); padding: 12px 16px; border-radius: 2px; }
.tips-head { font-weight: 650; margin: 0 0 6px; font-size: 15px; }
.tips ul { margin: 0 0 8px; padding-left: 20px; font-size: 15px; }
.tips li { margin: 4px 0; }
.tips p:last-child { margin: 0; }

.card { border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px; background: var(--surface); }
.card .small { margin: 4px 0; }
.card textarea { margin-top: 4px; }
.facts { list-style: none; padding: 0; margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.facts li { background: var(--surface-2); border: 1px solid var(--rule); border-radius: 3px; padding: 3px 9px; font-size: 14px; }
.facts li.ok { border-color: var(--ok); }
.diag-text { max-height: 280px; overflow: auto; background: var(--surface-2); padding: 10px 12px; border-radius: 4px; white-space: pre-wrap; word-break: break-word; }

.banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--ink); border-radius: 6px; padding: 14px 18px; margin: 0 0 26px; background: var(--surface-2); }
.banner .dim { display: block; font-size: 14px; }
.note { font-size: 14px; color: var(--ink-2); margin: -10px 0 20px; }

.drop { border: 1.5px dashed var(--rule-strong); border-radius: 6px; padding: 18px; text-align: center; cursor: pointer; }
.drop p { margin: 2px 0; }
.drop.over { border-color: var(--ink); background: var(--surface-2); }
.files { list-style: none; padding: 0; margin: 8px 0 0; }
.files li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.files img { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; border: 1px solid var(--rule); }
.files .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0 0; }
.more > summary { cursor: pointer; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+ "; font-weight: 700; }
.more[open] > summary::before { content: "− "; }
.more[open] { padding-bottom: 4px; }
.more > .field:first-of-type { margin-top: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid .field { margin-bottom: 16px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } h1 { font-size: 28px; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 0 0 12px; min-height: 0; }
.form-error { background: var(--err-bg); color: var(--ink); border-left: 3px solid var(--err); padding: 12px 16px; border-radius: 2px; margin: 0 0 16px; }
.form-error p { margin: 0 0 8px; }
.form-error p:last-child { margin: 0; }
.send-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fine { margin-top: 22px; line-height: 1.5; }
