/* dash-doorbell screens. Large type and strong contrast on purpose: these are read on
   phones, often by people who do not sign in to things for a living. One accent colour per
   site comes from brand.css (--accent); everything else is here. */
:root {
  --bg: #f4f4f6; --panel: #ffffff; --ink: #14141a; --dim: #55555f; --line: #c9c9d2;
  --good-bg: #e2f4e6; --good-ink: #0d4a1c; --bad-bg: #fde4e4; --bad-ink: #7a0c0c;
  --info-bg: #e6ecfb; --info-ink: #142a66; --accent: #6d4aff; --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d11; --panel: #18181f; --ink: #f2f2f6; --dim: #b1b1bd; --line: #44444f;
    --good-bg: #12351c; --good-ink: #b9f0c6; --bad-bg: #4a1414; --bad-ink: #ffd0d0;
    --info-bg: #17254d; --info-ink: #cfdcff;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d11; --panel: #18181f; --ink: #f2f2f6; --dim: #b1b1bd; --line: #44444f;
  --good-bg: #12351c; --good-ink: #b9f0c6; --bad-bg: #4a1414; --bad-ink: #ffd0d0;
  --info-bg: #17254d; --info-ink: #cfdcff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Sizes are in rem so the reader's own text-size setting is respected. On a phone or tablet,
   follow the system text size too (iOS: Settings, Display, Text Size). Not on a Mac, where
   this keyword means 13px. */
@media (hover: none) and (pointer: coarse) { @supports (font: -apple-system-body) { html { font: -apple-system-body; } } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1.125rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; align-items: flex-start;
  padding: 24px 16px 48px;
}
main { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
main.card { max-width: 420px; margin-top: 6vh; }
main.wide { max-width: 720px; }
.site { margin: 0 0 4px; font-weight: 700; letter-spacing: .02em; color: var(--dim); font-size: 1rem; text-transform: uppercase; }
h1 { font-size: 1.875rem; line-height: 1.2; margin: 0 0 18px; }
h2 { font-size: 1.375rem; margin: 0 0 12px; }
p { margin: 0 0 16px; }
section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
a { color: inherit; text-underline-offset: 3px; }
label { display: block; font-weight: 600; margin: 0 0 6px; }
input[type="email"], input[type="text"], select {
  width: 100%; font: inherit; font-size: 1.1875rem; padding: 14px; margin: 0 0 16px;
  color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 10px;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input.code { font-size: 2rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
label.check { font-weight: 400; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; min-height: 44px; }
label.check input { width: 22px; height: 22px; }
.btn {
  display: inline-block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.1875rem; padding: 15px 18px; margin: 0 0 12px;
  color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 12px;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
main.wide .btn { width: auto; min-width: 220px; margin-right: 8px; }
a.tap, button.link { display: inline-flex; align-items: center; min-height: 44px; }
.field-err { color: var(--bad-ink); font-weight: 600; margin: -8px 0 16px; }
input[aria-invalid="true"] { border-color: var(--bad-ink); }
button.link { font: inherit; background: none; border: 0; padding: 8px 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.link.danger, .danger { color: var(--bad-ink); }
form.quiet { margin: 0 0 8px; }
.notice { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.notice.good { background: var(--good-bg); color: var(--good-ink); }
.notice.bad { background: var(--bad-bg); color: var(--bad-ink); }
.notice.info { background: var(--info-bg); color: var(--info-ink); }
.hint { color: var(--dim); }
.hint:empty { margin: 0; }
.foot, .dim { color: var(--dim); font-size: 1rem; }
.foot { margin-top: 20px; margin-bottom: 0; }
.big { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); margin: 6px 0 18px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.tag { display: inline-block; font-size: 0.875rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--info-bg); color: var(--info-ink); vertical-align: middle; }
.tag.bad { background: var(--bad-bg); color: var(--bad-ink); }
ul.rows { list-style: none; margin: 0 0 16px; padding: 0; }
ul.rows li { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
ul.rows li > div:first-child { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
ul.rows li.off > div:first-child { opacity: .7; }
ul.rows form { margin: 0; }
.acts { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.acts form { display: flex; gap: 8px; align-items: center; }
.acts select { width: auto; margin: 0; padding: 8px 10px; font-size: 1.0625rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
