/* Tally All Night customer portal and admin: the landing page's look (white, blue accents, Plus Jakarta Sans headings,
   Inter text). Fonts are served from this site (/fonts/), so the portal's security policy stays 'self'. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/jakarta-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/jakarta-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #ffffff;
  --tint: #f6f8fd;
  --surface: #ffffff;
  --ink: #0d1b3e;
  --muted: #5a6785;
  --faint: #8a94ad;
  --line: #e3e8f2;
  --line-soft: #eef1f7;
  --accent: #1f5eff;
  --accent-deep: #1645d2;
  --accent-ink: #ffffff;
  --accent-soft: #edf2ff;
  --gold: #ffc547;
  --ok: #15803d;
  --ok-soft: #f0fbf4;
  --ok-line: #bbf0d0;
  --warn: #8a5a00;
  --warn-soft: #fff7e0;
  --warn-line: #f5dfa0;
  --bad: #c62828;
  --bad-soft: #fdf0f0;
  --bad-line: #f3c4c4;
  --f-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --shadow: 0 1px 2px rgba(13, 27, 62, .04), 0 18px 40px -30px rgba(31, 94, 255, .35);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--tint); color: var(--ink); font: 400 15px/1.6 var(--f-body); min-height: 100vh;
  display: flex; flex-direction: column; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  margin: 22px 0 10px; font-family: var(--f-body); }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 600; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header (same as the landing page) */
.nav { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
  backdrop-filter: saturate(1.4) blur(8px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 700 20px/1 var(--f-display); letter-spacing: -.01em; flex: none; }
.brand em { font-style: normal; color: var(--accent); }
.brand .tag { font: 600 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 5px 8px; border-radius: 999px; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 18px; min-width: 0; }
.nav-links > a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links > a:hover, .nav-links > a.on { color: var(--ink); }
.nav-links form { margin: 0; }
.me { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--muted); }
.me span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font: 700 14px/1 var(--f-display); text-transform: uppercase; }
.avatar.big { width: 52px; height: 52px; font-size: 21px; border-radius: 16px; background: var(--accent); color: #fff; }

/* ---------- page head band */
.band { background: linear-gradient(180deg, var(--accent-soft) 0%, var(--tint) 100%); }
.band .wrap { padding-top: 36px; padding-bottom: 64px; display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; flex-wrap: wrap; }
.band .eyebrow { font: 600 13px/1 var(--f-body); color: var(--accent); letter-spacing: .02em; margin-bottom: 10px; }
.band .sub { color: var(--muted); margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.band .who-line { display: flex; gap: 16px; align-items: center; }
main.wrap { flex: 1; display: grid; gap: 18px; align-content: start; padding-top: 24px; padding-bottom: 40px; }
.band + main.wrap { margin-top: -40px; padding-top: 0; }
body.solo { background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 420px); }
body.solo main.wrap { padding-top: 48px; padding-bottom: 64px; }

/* ---------- footer (same as the landing page) */
footer .wrap { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 28px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }

/* ---------- panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; min-width: 0;
  box-shadow: var(--shadow); }
.panel.narrow { max-width: 480px; margin: 0 auto; width: 100%; padding: 36px 32px; }
.panel.narrow h1 { font-size: 28px; margin-bottom: 10px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head h2 { flex: 1; min-width: 0; }
.sec-head .muted { flex-basis: 100%; margin: -6px 0 0 48px; font-size: 13px; }
.ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent); }
.ico svg { width: 19px; height: 19px; }
.ico.red { background: var(--bad-soft); color: var(--bad); }
.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.col { display: grid; gap: 18px; min-width: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.back { font-size: 14px; font-weight: 500; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 14px; }

/* ---------- buttons (same as the landing page) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--f-body); padding: 13px 22px; border-radius: 999px;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap; }
.btn:hover { transform: translateY(-1px); background: var(--accent-deep); border-color: var(--accent-deep);
  box-shadow: 0 10px 20px -12px rgba(31, 94, 255, .6); }
.btn.small { font-size: 14px; padding: 9px 16px; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--tint); border-color: #cfd7e8; box-shadow: none; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: #a31f1f; border-color: #a31f1f; box-shadow: 0 10px 20px -12px rgba(198, 40, 40, .6); }
.btn.google { background: var(--surface); color: var(--ink); border-color: var(--line); padding: 14px 24px; font-size: 16px;
  width: 100%; margin: 22px 0 16px; box-shadow: 0 1px 2px rgba(13, 27, 62, .06); }
.btn.google:hover { background: var(--tint); border-color: #cfd7e8; box-shadow: 0 1px 2px rgba(13, 27, 62, .06); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px; }
.link.danger { color: var(--bad); }
.nav .btn.ghost { padding: 8px 14px; font-size: 13px; }

/* ---------- forms */
form.stack { display: grid; gap: 16px; }
form.stack > .btn { justify-self: start; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
form.inline input { flex: 1 1 220px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
label .muted { font-weight: 400; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
label.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
input, textarea, select { font: 400 15px/1.4 var(--f-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease; }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: #cfd7e8; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 94, 255, .14); }
.btn:focus-visible, .link:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ---------- tables */
.scroll { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td form { margin: 0; }
td.r, th.r { text-align: right; }
.strong { font-weight: 600; }
.person { display: flex; gap: 12px; align-items: center; min-width: 200px; }
.person a { font-weight: 600; text-decoration: none; color: var(--ink); }
.person a:hover { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 12px/1 var(--f-body); padding: 5px 9px; border-radius: 8px; background: var(--tint); border: 1px solid var(--line);
  color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- messages */
.notice { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); border-radius: 14px; padding: 12px 16px;
  margin: 0; font-weight: 500; }
.error { color: var(--bad); background: var(--bad-soft); border: 1px solid var(--bad-line); border-radius: 12px; padding: 10px 14px; }
.ok { color: var(--ok); font-weight: 600; }
.banner { border-radius: 14px; padding: 14px 18px; margin: 0; }
.banner.wait { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); }
.banner.stop { background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad-line); }
.banner a { color: inherit; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--f-body); padding: 5px 10px 5px 8px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok, .status.active { background: var(--ok-soft); color: var(--ok); }
.status.checks_failed, .status.pending, .status.partial { background: var(--warn-soft); color: var(--warn); }
.status.failed, .status.paused { background: var(--bad-soft); color: var(--bad); }

/* ---------- getting started */
.progress { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
.progress .bar { width: 120px; height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.progress .bar i.p0 { width: 0; } .progress .bar i.p1 { width: 25%; } .progress .bar i.p2 { width: 50%; }
.progress .bar i.p3 { width: 75%; } .progress .bar i.p4 { width: 100%; background: var(--ok); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps li { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 8px; align-content: start;
  background: var(--surface); }
.steps li.next { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 94, 255, .1); }
.steps li.done { background: var(--tint); }
.steps b { font: 700 15px/1.3 var(--f-display); }
.steps p { margin: 0; font-size: 13px; }
.steps .btn { justify-self: start; margin-top: 4px; }
.tick { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center;
  font: 700 13px/1 var(--f-display); color: var(--muted); background: var(--surface); }
.steps li.next .tick { border-color: var(--accent); color: var(--accent); }
.steps li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.done b { color: var(--muted); }

/* ---------- lists */
.runs, .team, .audit, .plain { list-style: none; padding: 0; margin: 0; display: grid; font-size: 14px; }
.runs li { display: flex; gap: 10px 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.runs li:first-child { border-top: 0; }
.runs li p { flex-basis: 100%; margin: 0; }
.team li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.team li:first-child { border-top: 0; }
.team li > div { flex: 1; min-width: 0; display: grid; }
.team li > div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.plain li { padding: 9px 0; border-top: 1px solid var(--line-soft); }
.plain li:first-child { border-top: 0; }
.audit { position: relative; padding-left: 18px; gap: 12px; }
.audit::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line-soft); }
.audit li { position: relative; }
.audit li::before { content: ""; position: absolute; left: -18px; top: 7px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); }
.audit li .muted { display: block; font-size: 12px; }

/* ---------- connect Claude */
.howto { list-style: none; counter-reset: how; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.howto li { counter-increment: how; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.howto li::before { content: counter(how); width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; font: 700 13px/1 var(--f-display); }
.copy { display: flex; gap: 8px; align-items: center; margin-top: 10px; background: var(--tint); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px 6px 6px 14px; }
.copy code { flex: 1; min-width: 0; font: 500 14px/1.4 var(--f-mono); color: var(--accent-deep); word-break: break-all; }
.connected { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft);
  border: 1px solid var(--ok-line); color: var(--ok); font-weight: 600; margin: 0; }
.not-connected { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--tint);
  border: 1px solid var(--line); color: var(--muted); margin: 0; }
.code { font: 700 34px/1.1 var(--f-mono); letter-spacing: .14em; background: var(--accent-soft); color: var(--accent-deep);
  padding: 18px 22px; border-radius: 16px; display: block; margin: 18px 0; border: 1px dashed #b9cbff; }

/* ---------- billing */
.price { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 4px; }
.price b { font: 700 34px/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.formula { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.hint { font-size: 13px; color: var(--muted); background: var(--tint); border-radius: 12px; padding: 10px 12px; }
.inv { list-style: none; padding: 0; margin: 14px 0 0; display: grid; }
.inv li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft);
  font-size: 14px; }
.inv li > div { display: grid; }
.inv li a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- danger zone */
.danger-zone { border-color: var(--bad-line); box-shadow: none; }

/* ---------- admin */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 6px;
  box-shadow: var(--shadow); }
.stat b { font: 700 30px/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat.hot { background: linear-gradient(135deg, #3a74ff, var(--accent-deep)); border-color: transparent; color: #fff; }
.stat.hot span { color: rgba(255, 255, 255, .8); }
.stat.attn b { color: var(--warn); }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; margin: 0; }
.meta div { display: grid; gap: 2px; min-width: 0; }
.meta dt { font-size: 12px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.meta dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.company { padding: 12px 0; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; }
.company:first-of-type { border-top: 0; padding-top: 0; }
.company .row b { font-weight: 600; }

@media (max-width: 880px) {
  .cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .nav .wrap { min-height: 60px; }
  .me span:last-child, .brand .tag { display: none; }
  .nav-links { gap: 12px; }
  .panel { padding: 18px; border-radius: 18px; }
  .panel.narrow { padding: 26px 20px; }
  .scroll { margin: 0 -18px; padding: 0 18px; }
  .steps, .grid3 { grid-template-columns: 1fr; }
  .band .wrap { padding-top: 26px; }
  .sec-head .muted { margin-left: 0; }
  .code { font-size: 26px; }
}

/* ---------- centred cards (sign in, sign up, pairing code, errors) */
.mark { display: grid; place-items: center; margin-bottom: 18px; }
.panel.narrow:not(.center) .mark { justify-items: start; }
.mark svg { width: 52px; height: 52px; }
.mark .ico { width: 56px; height: 56px; border-radius: 18px; }
.mark .ico svg { width: 28px; height: 28px; }
body.solo .notice { max-width: 480px; margin: 0 auto; width: 100%; }
.band .eyebrow a { color: inherit; text-decoration: none; }
.band .eyebrow a:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }
.panel.slim { padding: 16px 24px; }
.panel.slim .sec-head { margin-bottom: 0; }
.panel.slim .sec-head .progress { margin-right: 6px; }

/* ---------- online payment */
.paybox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.paylist { text-align: left; margin: 14px 0 18px; }
.paylist li { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- separate invoices */
.billgroup { border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 12px; }
.billgroup:first-of-type { border-top: 0; margin-top: 4px; padding-top: 0; }
.billto { font: 700 16px/1.3 var(--f-display); text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0 0 4px; }
.assign { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; font-weight: 500; }
.assign span { overflow-wrap: anywhere; }
.addgroup { margin-top: 14px; }
.addgroup summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.invmode { gap: 12px; }
.invmode label.check { color: var(--ink); }
.invto { border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 14px; gap: 10px; }
.invto .strong { margin: 0; }

/* ---------- account: side menu + pages */
.acct { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.acctmain { display: grid; gap: 18px; min-width: 0; }
.acctnav { position: sticky; top: 84px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 8px; }
.acctnav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--muted);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.acctnav a:hover { background: var(--tint); color: var(--ink); }
.acctnav a.on { background: var(--accent-soft); color: var(--accent-deep); }
.acctnav .ico { display: inline-grid; place-items: center; width: 20px; height: 20px; }
.acctnav .ico svg { width: 18px; height: 18px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { display: grid; gap: 4px; align-content: start; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--accent); }
.tile .ico { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 6px; }
.tile .label { font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.tile b { font-family: var(--f-display); font-size: 24px; line-height: 1.2; }
.tile .small { color: var(--muted); }
.tile .ok { color: var(--ok); font-weight: 600; }
.tile .due { color: var(--warn); font-weight: 600; }
.team li.member { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.team li.member details > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.team li.member details > summary::-webkit-details-marker { display: none; }
.team li.member summary > div { display: grid; min-width: 0; }
.team li.member summary .link { margin-left: auto; font-size: 13px; color: var(--accent); }
.team li.member details[open] > summary .link { visibility: hidden; }
.team li.member details form { margin: 14px 0 6px 48px; }
.team li.member .rm { padding-top: 8px; }
.access { display: grid; gap: 8px; border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 14px;
  background: var(--tint); }
.access .cos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px;
  padding-top: 8px; border-top: 1px solid var(--line); }
.access:has(.all input:checked) .cos { opacity: .45; pointer-events: none; }
.addmember { margin-top: 14px; }
.addmember > summary { list-style: none; display: inline-flex; cursor: pointer; }
.addmember > summary::-webkit-details-marker { display: none; }
.addmember[open] > summary { margin-bottom: 14px; }
@media (max-width: 880px) {
  .acct { grid-template-columns: 1fr; gap: 14px; }
  .acctnav { position: static; display: flex; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .acctnav a { padding: 8px 12px; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tile b { font-size: 20px; }
  .team li.member details form { margin-left: 0; }
}
@media (max-width: 600px) {
  .nav-links { gap: 8px; }
  .nav-links .me { display: none; }
  .sec-head .progress .bar { display: none; }
}
/* long e-mail addresses wrap instead of running under "Change access" / "Remove" */
.team li.member summary > div { flex: 1 1 auto; }
.team li.member summary > div span:first-child { white-space: normal; overflow-wrap: anywhere; }
.team li.member summary .link { flex: none; }

/* ---------- account on phones: menu as a grid, tables as cards, bigger tap targets */
@media (max-width: 600px) {
  .acctnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 4px; padding: 6px; }
  .acctnav a { flex-direction: column; justify-content: center; gap: 4px; padding: 9px 4px; font-size: 12.5px;
    text-align: center; white-space: normal; line-height: 1.2; }
  .band h1 { overflow-wrap: anywhere; }

  .scroll:has(> table.cards) { margin: 0; padding: 0; overflow: visible; }
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; }
  table.cards tr:first-child:has(th) { display: none; }
  table.cards tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 14px 0;
    border-bottom: 1px solid var(--line-soft); }
  table.cards tr:last-child { border-bottom: 0; padding-bottom: 4px; }
  table.cards tr:nth-child(2) { padding-top: 4px; }
  table.cards td { padding: 0; border: 0; white-space: normal; }
  table.cards td:first-child { grid-column: 1 / -1; font-size: 15px; }
  table.cards td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 11px;
    font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
  table.cards td.r { text-align: left; grid-column: 1 / -1; }

  .team li.member { position: relative; grid-template-columns: minmax(0, 1fr); }
  .team li.member .rm { position: absolute; top: 10px; right: 0; padding-top: 0; }
  .team li.member details > summary { flex-wrap: wrap; padding-right: 64px; }
  .team li.member summary > div { flex: 1 1 0; }
  .team li.member summary .link { flex-basis: 100%; margin: -4px 0 0 44px; padding-block: 6px; }
  .team li.member .rm .link { padding-block: 6px; }
  .access .cos { grid-template-columns: 1fr; }
  .access label.check { padding-block: 5px; }
  label.check input { width: 20px; height: 20px; margin-top: 1px; }

  .sec-head h2 { min-width: 9em; }
  .btn { padding: 14px 22px; }
  .btn.small { padding: 12px 18px; min-height: 44px; }
  .nav .btn.ghost { padding: 10px 14px; }
  .nav-links > a { padding-block: 10px; }
  footer a { display: inline-block; padding-block: 10px; }
  footer .wrap { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- admin: server health */
.healthgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.health { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid;
  gap: 6px; align-content: start; box-shadow: var(--shadow); }
.health .status { justify-self: start; }
.health .lbl { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase;
  letter-spacing: .05em; }
.health b { font: 700 24px/1.2 var(--f-display); }
.health.warn { border-color: var(--warn-line); background: var(--warn-soft); }
.health.bad { border-color: var(--bad-line); background: var(--bad-soft); }
@media (max-width: 600px) {
  .team li.member details[open] > summary .link { display: none; }
}
/* narrow phones: the longer name (Tally All Night) next to Account / Admin / Sign out */
@media (max-width: 420px) {
  .brand { font-size: 18px; gap: 8px; }
  .brand svg { width: 28px; height: 28px; }
  .nav-links:has(> a[href="/admin"]) > a[href="/account"] { display: none; }
}
