/* Sign-in, setup, account and admin pages of Motrillo. Colours
   follow the main site (src/styles/global.css), dark first, with the same
   light theme the site toggle picks (theme-init.js sets data-theme). */
:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-elev: #131a22;
  --bg-elev-hover: #1a232e;
  --text: #e7eef5;
  --text-muted: #9fb0c0;
  --accent: #5566e8;
  --accent-text: #ffffff;
  --accent-soft: rgba(85, 102, 232, 0.12);
  --border: #223140;
  --border-hover: #2f4459;
  --bad: #ff8a9a;
  --bad-soft: rgba(255, 90, 115, 0.12);
  --good: #6fd3a0;
  --good-soft: rgba(80, 200, 140, 0.12);
  --radius: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fa;
  --bg-elev: #ffffff;
  --bg-elev-hover: #eef2f7;
  --text: #131a22;
  --text-muted: #4c5d6d;
  --accent: #4453d6;
  --accent-soft: rgba(68, 83, 214, 0.12);
  --border: #dde4eb;
  --border-hover: #c5d0dc;
  --bad: #b3142e;
  --bad-soft: rgba(179, 20, 46, 0.08);
  --good: #11713f;
  --good-soft: rgba(17, 113, 63, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--accent); }
[hidden] { display: none !important; }

.wrap { width: min(440px, 100% - 32px); margin: 0 auto; padding: 56px 0 48px; }
.wrap.wide { width: min(920px, 100% - 32px); }

.brand { display: block; margin-bottom: 20px; color: var(--text-muted); font-size: 14px; text-decoration: none; }
.brand b { color: var(--text); }
/* the Motrillo mark beside the name (the logo, 1 Dec 2026) */
.brand b::before { content: ""; display: inline-block; width: 1.25em; height: 1.25em; margin-right: .4em; vertical-align: -.28em; background: url(/favicon.svg) no-repeat center / contain; }
h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; }
h2 { margin: 0 0 12px; font-size: 18px; }
.lead { margin: 0 0 24px; color: var(--text-muted); }

.card {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card > :last-child { margin-bottom: 0; }

form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
input[readonly] { color: var(--text-muted); }
input:hover { border-color: var(--border-hover); }
:is(input, button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { margin: -8px 0 0; color: var(--text-muted); font-size: 13px; font-weight: 400; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: progress; }
button.quiet, .button.quiet { background: transparent; color: var(--text); border-color: var(--border); }
button.quiet:hover, .button.quiet:hover { border-color: var(--accent); }
button.small { padding: 5px 10px; font-size: 13px; font-weight: 500; }
button.danger:hover { border-color: var(--bad); color: var(--bad); }

.msg { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.msg.bad { background: var(--bad-soft); color: var(--bad); }
.msg.good { background: var(--good-soft); color: var(--good); }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.foot { margin-top: 8px; color: var(--text-muted); font-size: 14px; }

/* the one-time setup link shown to an admin */
.linkbox { display: flex; flex-direction: column; gap: 10px; }
.linkbox code {
  display: block;
  padding: 10px 12px;
  border: 1px dashed var(--border-hover);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
}

/* tables collapse to stacked rows on a phone */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.table td.acts { min-width: 0; }
.table td.acts > button, .table td.acts > a { margin: 0 6px 6px 0; }
.table td.nowrap { white-space: nowrap; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--text-muted); font-size: 12px; }
.tag.off { background: var(--bad-soft); color: var(--bad); }
.muted { color: var(--text-muted); }
.events td { font-size: 13px; }
@media (max-width: 640px) {
  .wrap { padding-top: 32px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .table td { padding: 2px 0; border: 0; }
}

/* two-step sign-in */
.mfa-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(127, 127, 127, .25); }
.mfa-setup { padding: 12px; border-radius: 10px; background: rgba(120, 130, 255, .1); margin: 4px 0 10px; }
.qr { display: inline-block; padding: 8px; background: #fff; border-radius: 8px; }
.qr svg { display: block; }
.codes { columns: 2; list-style: none; padding: 0; font: 15px/1.9 ui-monospace, Consolas, monospace; }
#mfa-form h2 { margin-top: 0; }

/* admin: several people at once, and the confirm box */
.pickcell { width: 34px; }
.pickcell input { width: 20px; height: 20px; }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(120, 130, 255, .12); }
dialog.confirm { width: min(480px, calc(100vw - 24px)); padding: 20px; border-radius: 14px; border: 1px solid rgba(127, 127, 127, .35); background: inherit; color: inherit; }
dialog.confirm::backdrop { background: rgba(0, 0, 0, .55); }
dialog.confirm h2 { margin: 0 0 8px; overflow-wrap: anywhere; }
.confirm-list { max-height: 200px; overflow: auto; margin: 8px 0; padding-inline-start: 20px; overflow-wrap: anywhere; }
dialog.confirm .row { margin-top: 14px; }
dialog.confirm button:disabled { opacity: .45; cursor: not-allowed; }

/* the optional two-step offer after choosing a password */
#offer h2 { margin: 14px 0 6px; font-size: 18px; }
#offer .offer-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 12px; }
#offer .hint { margin: 0; }

/* Show / Hide in password boxes */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-inline-end: 72px; }
.pw-wrap .pw-eye { position: absolute; inset-inline-end: 5px; top: 50%; transform: translateY(-50%); min-height: 34px; padding: 4px 10px;
  background: transparent; color: var(--accent); border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 600; }
.pw-wrap .pw-eye:hover { border-color: var(--border); }

/* admin: overview and filters */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.stat { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.stat b { display: block; font-size: 22px; line-height: 1.2; }
.stat span { color: var(--text-muted); font-size: 13px; }
.stat.warn { border-color: var(--bad); }
.stat.warn b { color: var(--bad); }
.stat small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.3; }
.cap-bar { height: 6px; margin-top: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.cap-fill { height: 100%; background: var(--accent, #7a3fd1); }
.cap-fill.warn { background: #d99a00; }
.cap-fill.urgent { background: var(--bad); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.filters input[type="search"] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; }
.table .sub { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* light or dark, for anyone not signed in (kept on this device) */
.theme-switch { position: absolute; top: 12px; right: 12px; z-index: 5; width: auto; min-height: 34px; padding: 4px 12px; font-size: 14px; font-weight: 500; background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; }
.theme-switch:hover { border-color: var(--accent); background: var(--bg-elev); }

/* the public guide */
.guide { width: min(1040px, 100% - 32px); }
.guide .card h2 { margin: 0 0 8px; font-size: 19px; }
.guide .card ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; line-height: 1.5; }
.guide .card li > ul { margin-block-start: 8px; }
.guide .card p { line-height: 1.5; }
.guide-toc { line-height: 1.9; font-size: 14px; }
.guide .row { display: flex; flex-wrap: wrap; gap: 10px; }
.guide .card h3 { margin: 16px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.guide details.faq { border-block-end: 1px solid var(--border); }
.guide details.faq summary { cursor: pointer; font-weight: 600; padding: 10px 0; min-height: 24px; }
.guide details.faq p { margin: 0 0 12px; }
/* install page: numbered steps, and the steps for this device first and marked */
.guide .card ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; line-height: 1.5; }
.guide .card.here { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* sign-in page: making an account, easy to spot */
.new-here { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 14px; }
.new-here p { margin: 0; flex: 1 1 220px; }
.new-here .button { flex: 0 0 auto; border-color: var(--accent); color: var(--accent); font-weight: 600; }
/* the sign-up page: which kind of account this makes, with the other one a press away (CR-2026-271) */
.kind-card { border-color: var(--accent); background: var(--accent-soft); }
.kind-card p { margin: 0 0 8px; line-height: 1.5; }

/* admin: people who never finished setting up */
.unfinished { margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--border); }
.unfinished p { margin: 0 0 8px; }
.unfinished p.muted { margin: 8px 0 0; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button.on { border-color: var(--accent); background: var(--accent-soft); }
.chips button:disabled { opacity: .5; cursor: default; }

/* admin: reported chat messages */
.reports .report-body { display: block; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.reports tr.handled { opacity: .6; }
/* writing to the person who reported a message (CR-2026-116) */
.report-reply { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.report-reply textarea, .report-reply > .sub { flex: 1 1 100%; }
.report-reply textarea { width: 100%; font: inherit; }
.report-reply[hidden] { display: none; }
.report-replied { font-style: italic; }
/* the Moderation page (CR-2026-118) */
.mod-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; font-size: 14px; }
#mod-stats a.stat { text-decoration: none; color: inherit; }
#mod-person h3 { margin: 14px 0 2px; }
#mod-person h4, #mod-signals h4 { margin: 14px 0 4px; font-size: 14px; }
#mod-person p { margin: 2px 0; }
.mod-text { width: 100%; font: inherit; }
.mod-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.mod-row .mod-text { flex: 1 1 240px; width: auto; }
textarea.mod-text { margin-bottom: 6px; }
.row-form { display: flex; gap: 6px; flex-wrap: wrap; }
.row-form input { flex: 1 1 240px; }
#mod-users-q { width: 100%; margin: 6px 0 10px; }
.table-wrap { overflow-x: auto; }
.mod-num { width: 5em; }
/* storage use (CR-2026-121) */
.mod-meter { display: block; width: 100%; max-width: 140px; height: 6px; margin: 4px 0 2px; border-radius: 3px; background: var(--border); overflow: hidden; }
.mod-meter-v { display: block; height: 100%; background: var(--accent); }
.mod-meter-v.full { background: var(--bad); }
#mod-users-q { flex: 1 1 240px; width: auto; margin: 0; }
/* storage history (CR-2026-125) */
.mod-hist { margin-top: 10px; max-height: 320px; overflow: auto; }
.mod-hist-item { padding: 6px 8px; border-inline-start: 3px solid var(--border); margin: 4px 0; }
.mod-hist-given { border-color: var(--good); }
.mod-hist-ended { border-color: var(--bad); }
.mod-hist-plan { border-color: var(--accent); }
.mod-hist-note { font-style: italic; }
/* visits (CR-2026-120) */
.mod-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 12px 0; }
.mod-col h4 { margin: 0 0 6px; font-size: 14px; }
.mod-bar { display: grid; grid-template-columns: minmax(0, 1fr) 80px 3em; gap: 6px; align-items: center; font-size: 13px; margin: 2px 0; }
.mod-bar-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-bar-v { height: 8px; border-radius: 4px; background: var(--accent); justify-self: start; }
.mod-bar-n { text-align: end; color: var(--text-muted); }
#mod-confirm { max-width: min(440px, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--bg-elev); color: var(--text); }
.role-boxes { display: grid; gap: 8px; margin: 0 0 12px; }
.role-boxes .check { align-items: flex-start; }
/* how long a role lasts (CR-2026-217) */
.role-time { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -2px 0 6px 26px; }
.role-time select, .role-time input[type=date] { width: auto; }
.role-time .role-num { width: 5em; }
.role-quick { display: inline-flex; gap: 4px; }
.role-time .sub { flex-basis: 100%; }
#mod-unlock { max-width: min(440px, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--bg-elev); color: var(--text); }
#mod-unlock h2 { margin: 0 0 6px; color: var(--text); }
#mod-unlock label { color: var(--text); font-weight: 600; }
select, input[type="number"], input[type="search"] { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
textarea { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
#mod-unlock::backdrop { background: rgba(0, 0, 0, .45); }
#mod-unlock label { display: block; margin-top: 8px; }
#mod-unlock select, #mod-unlock input { width: 100%; }
.muted.small { font-size: 13px; font-weight: 400; }

/* signing in with Google or Microsoft */
.sso { display: grid; gap: 8px; margin-top: 14px; }
.sso[hidden] { display: none; }
.sso-or { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; color: var(--text-muted); font-size: 13px; }
.sso-or::before, .sso-or::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.sso-btn { width: 100%; gap: 10px; }
.sso-btn svg, .sso-name svg { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }

/* the sign-in page as a landing page (motrillo.com): what it is, beside
   the sign-in box on wide screens and above it on phones, then what it does */
.wrap.landing { width: min(1120px, 100% - 32px); padding-top: 32px; }
.landing .landing-top { display: grid; gap: 28px; align-items: start; }
.landing .landing-signin { width: 100%; max-width: 440px; margin: 0 auto; }
@media (min-width: 900px) {
  .landing .landing-top:has(> .landing-hero) { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 440px); gap: 48px; }
  .landing .landing-top:has(> .landing-hero) .landing-signin { margin: 0; position: sticky; top: 24px; }
  .landing .landing-jump { display: none; }
}
.landing-hero { padding-top: 8px; }
.landing-kicker { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-wrap: balance; }
.landing-title { margin: 0 0 14px; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.landing-sub { margin: 0 0 20px; color: var(--text-muted); font-size: 18px; line-height: 1.55; max-width: 40em; }
.landing-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
/* the landing page's install button (Android, or wherever the browser offers it) */
.landing-install { margin: 4px 0 14px; text-align: center; }
.landing-install[hidden] { display: none; }
.landing-install-link { background: none; border: 0; padding: 4px 6px; color: var(--accent); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.landing-install-note { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.landing-install-note[hidden] { display: none; }
.landing-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--text-muted); }
.landing-ticks li::before { content: "\2713"; color: var(--good); font-weight: 700; margin-inline-end: 8px; }
/* the cue that there is more below: the first screen used to end on the sign-in column's tail,
   which reads as the bottom of an ordinary sign-in page (Tom's mum: "there was nothing further down") */
.landing-down { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 22px auto 0; padding: 12px 18px; width: fit-content; max-width: 100%;
  border: 1px dashed var(--border-hover); border-radius: 999px; color: var(--accent); font-weight: 600; text-decoration: none; text-align: center; }
.landing-down:hover { background: var(--accent-soft); border-style: solid; }
.landing-down-wide { display: none; }
@media (min-width: 900px) {
  .landing-down-wide { display: flex; margin: 28px 0 0; }
  .landing-down-narrow { display: none; }
}
.landing-more { margin-top: 24px; display: grid; gap: 40px; scroll-margin-top: 16px; }
.landing-section h2 { margin: 0 0 12px; font-size: 22px; }
/* the sign-in box's heading: an h2 on Motrillo, where the hero's headline is the page's h1 (CR-2026-234);
   the port makes it langston.co's h1 again */
.signin-title { margin: 0 0 6px; font-size: 26px; line-height: 1.2; }
.landing-intro { margin: 0; color: var(--text-muted); line-height: 1.55; max-width: 48em; }
.landing-intro + .landing-shots { margin-top: 16px; }
/* business first (CR-2026-234): even rows at every width, never three cards and one left over */
.landing-kinds.landing-kinds-wide { grid-template-columns: 1fr; }
@media (min-width: 620px) { .landing-kinds.landing-kinds-wide { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .landing-kinds.landing-kinds-wide { grid-template-columns: repeat(3, 1fr); } }
.landing-kinds.landing-kinds-four, .landing-steps { grid-template-columns: 1fr; }
@media (min-width: 620px) { .landing-kinds.landing-kinds-four, .landing-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .landing-kinds.landing-kinds-four, .landing-steps { grid-template-columns: repeat(4, 1fr); } }
/* what is free, and what you pay for (CR-2026-245): the three plans side by side (stacked on phones),
   each with its price large, then the promises and the button */
.landing-plans { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .landing-plans { grid-template-columns: repeat(3, 1fr); } }
.landing-plan { margin: 0; }
.landing-plan h3 { margin: 0 0 4px; font-size: 18px; }
.landing-plan-price { margin: 0 0 12px; color: var(--text-muted); }
.landing-plan-price b { font-size: 26px; line-height: 1.2; color: var(--text); }
.landing-plan ul, .landing-secure ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; color: var(--text-muted); line-height: 1.5; }
.landing-plans-note { margin: 14px 0; color: var(--text-muted); line-height: 1.55; max-width: 48em; }
.landing-secure { margin: 0; }
@media (min-width: 900px) { .landing-secure ul { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.landing-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 22px; }
.mock { margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); font-size: 13px; display: grid; gap: 6px; align-content: start; }
.mock figcaption { margin-bottom: 2px; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.mock-aisle { padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.mock-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.mock-row.done { color: var(--text-muted); text-decoration: line-through; }
.mock-box { flex: 0 0 auto; width: 14px; height: 14px; border: 1.5px solid var(--border-hover); border-radius: 4px; }
.mock-box.on { background: var(--accent); border-color: var(--accent); }
.mock-qty { margin-inline-start: auto; color: var(--text-muted); }
.mock-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mock-board.four { grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mock-col { display: grid; gap: 4px; align-content: start; padding: 6px; border-radius: 8px; background: var(--accent-soft); font-size: 11px; }
.mock-col b { font-size: 11px; color: var(--text-muted); }
.mock-card { display: block; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-elev); font-size: 11px; line-height: 1.3; }
.mock-card.done { color: var(--text-muted); text-decoration: line-through; }
.dot { display: inline-block; width: 7px; height: 7px; margin-inline-end: 4px; border-radius: 50%; vertical-align: middle; }
.dot.red { background: #e5484d; }
.dot.blue { background: #3e8cf0; }
.dot.green { background: #30a46c; }
.mock-job { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mock-pill { padding: 1px 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; }
.mock-sub { color: var(--text-muted); font-size: 12px; }
.mock-bubble { justify-self: start; max-width: 85%; padding: 6px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev-hover); }
.mock-bubble.mine { justify-self: end; background: var(--accent-soft); }
.landing-kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.landing-kinds li { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.landing-kinds b { display: block; margin-bottom: 2px; color: var(--text); font-size: 15px; }
/* which plan an app needs, on the catalogue (CR-2026-783) */
.landing-tag { display: inline-block; margin: 0 0 4px; padding: 1px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.landing-tag.plus { background: var(--accent); color: var(--accent-text); }
.landing-kinds b + .landing-tag { margin-top: 2px; }
.landing-section > .landing-intro { margin-bottom: 14px; }
/* each app's own page, /apps/<name> (CR-2026-784, written by scripts/app-pages.mjs) */
.app-crumbs { margin: 4px 0 18px; font-size: 14px; color: var(--text-muted); }
.app-crumbs a { color: var(--accent); }
.app-hero { max-width: 760px; }
.app-hero .landing-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.app-hero-icon { font-size: .9em; line-height: 1; }
.app-hero .landing-tag { font-size: 14px; }
.app-tagline { margin: 0 0 10px; font-size: 21px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.app-features li { position: relative; padding-inline-start: 38px; color: var(--text); font-size: 15px; }
.app-features li::before { content: "\2713"; position: absolute; left: 14px; top: 12px; color: var(--good); font-weight: 700; }
.app-plan { margin: 0; }
.app-plan p { margin: 0 0 10px; line-height: 1.55; }
.app-page .landing-final h2 { text-wrap: balance; }
/* the catalogue on the front page: each app's name opens its own page */
.landing-kinds b a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.landing-kinds b a:hover, .landing-kinds b a:focus-visible { color: var(--accent); }
.landing-icon { float: right; margin-inline-start: 8px; font-size: 20px; line-height: 1; }
.landing-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.landing-steps li { position: relative; counter-increment: step; padding: 14px 14px 14px 52px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); color: var(--text-muted); }
.landing-steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 700; }
.landing-steps b { display: block; color: var(--text); }
.landing-final { margin: 0; text-align: center; }
.landing-final h2 { font-size: 22px; }
.landing-final .landing-cta { justify-content: center; }
.landing-small { margin: 0; color: var(--text-muted); font-size: 14px; }

/* Everything your business runs on (CR-2026-099, CR-2026-234): a tile for each part, jumping to it; two rows of four on wide screens */
.landing-all { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
@media (max-width: 699px) { .landing-all { grid-template-columns: 1fr 1fr; } }
.landing-all a { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev);
  color: var(--text-muted); text-decoration: none; font-size: 13px; line-height: 1.45; }
.landing-all a:hover, .landing-all a:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.landing-all .ai { font-size: 28px; line-height: 1; margin-bottom: 2px; }
.landing-all b { color: var(--text); font-size: 16px; line-height: 1.25; }
.landing-more [id] { scroll-margin-top: 16px; }
@media (max-width: 520px) { .landing-all { grid-template-columns: 1fr 1fr; } .landing-all a { padding: 12px; } }

/* Where you are signed in (CR-2026-289) */
.signins { list-style: none; margin: 0 0 16px; padding: 0; }
.signins li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(127, 127, 127, .25); }
.signins li:first-child { border-top: 0; }
.signins .here { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent); color: var(--accent-text); }
.signins .what { min-width: 0; overflow-wrap: anywhere; }
.signins button { flex: none; }
#signins h3 { margin: 16px 0 4px; font-size: 16px; }
@media (max-width: 480px) { .signins li { flex-direction: column; align-items: stretch; } }

/* The Admin and Moderation pages: one section at a time, chosen from a list on the left; a menu on a phone (CR-2026-295) */
main.wrap.panels-on { width: min(1240px, 100% - 32px); }
.panels { display: grid; grid-template-columns: var(--panel-w, 230px) 14px minmax(0, 1fr); column-gap: 6px; align-items: start; }
/* the handle between the list and the page, and hiding the list (CR-2026-316) */
.panel-resize { position: sticky; top: 12px; height: calc(100vh - 24px); max-height: 100%; cursor: col-resize; touch-action: none; border-radius: 6px; display: flex; justify-content: center; }
.panel-resize::before { content: ""; width: 3px; height: 100%; border-radius: 3px; background: var(--border); opacity: .5; transition: opacity .15s, background .15s; }
.panel-resize:hover::before, .panel-resize:focus-visible::before, .panel-resizing .panel-resize::before { opacity: 1; background: var(--accent); }
.panel-resize:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel-resizing, .panel-resizing * { cursor: col-resize !important; user-select: none !important; }
.panel-collapse { display: block; width: 100%; text-align: start; margin: 0 0 4px; color: var(--text-muted); }
.panels.shut { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; }
.panels.shut .panel-resize, .panels.shut .panel-lists { display: none; }
.panels.shut .panel-nav { padding: 4px; overflow: visible; }
.panels.shut .panel-collapse { text-align: center; padding: 6px 0; margin: 0; font-size: 18px; color: var(--text); }
.panel-nav { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.panel-nav h3 { margin: 10px 8px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.panel-nav h3:first-of-type { margin-top: 4px; }
.panel-nav ul { list-style: none; margin: 0; padding: 0; }
.panel-nav li[hidden] { display: none; }
.panel-nav button.panel-link { display: flex; width: 100%; justify-content: space-between; gap: 8px; text-align: start; background: transparent; color: var(--text); border: 0; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.panel-nav button.panel-link:hover { background: var(--bg-elev-hover); }
.panel-nav button.panel-link[aria-current="true"] { background: var(--accent-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.panel-nav .panel-count { color: var(--text-muted); font-weight: 400; }
.panel-toggle { display: none; }
.panel-off { display: none !important; }
.panel-body > .card { margin-top: 0; }
@media (max-width: 760px) {
  .panels, .panels.shut { grid-template-columns: 1fr; gap: 12px; }
  .panel-resize, .panel-collapse, .panels.shut .panel-collapse { display: none; }
  .panels.shut .panel-nav { padding: 6px; }
  .panels.shut .panel-nav.open .panel-lists { display: block; }
  .panel-nav { position: static; max-height: none; padding: 6px; }
  .panel-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; }
  .panel-nav:not(.open) .panel-lists { display: none; }
  .panel-nav.open .panel-lists { margin-top: 6px; }
}

/* People on the Moderation and Admin pages: one short line each until "Show details" (CR-2026-301) */
tr.mod-person-line td { display: flex; align-items: flex-start; gap: 6px; padding-block: 6px; }
tr.mod-person-line.open td { border-bottom: 0; }
.mod-person-arrow { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); font-size: 16px; line-height: 26px; cursor: pointer; }
.mod-person-arrow:hover, .mod-person-arrow:focus-visible { background: var(--bg-elev-hover); color: var(--text); }
.mod-person-sum { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; padding-top: 3px; }
tr[hidden] { display: none; }

/* People: tick several and act on them all from the bar above the list (CR-2026-303) */
.mod-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 10px; margin: 6px 0 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elev); position: sticky; top: 0; z-index: 2; }
.mod-bulk label.mod-bulk-all { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; width: auto; font-weight: 600; margin: 0; white-space: nowrap; }
.mod-bulk input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.mod-bulk-count { color: var(--text-muted); font-size: 14px; }
.mod-bulk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }
.mod-bulk-acts button:disabled { opacity: .45; cursor: default; }
input.mod-pick { flex: none; width: 18px; height: 18px; margin: 4px 2px 0 0; accent-color: var(--accent); }

/* Everyone on the Admin page: the same arrow before each address (CR-2026-306) */
#users .mod-person-arrow { vertical-align: middle; margin: -3px 4px 0 -4px; }
#users .sub[hidden], #users .acts > [hidden] { display: none; }

/* Bug reports: folded behind the same arrow; the report shows its first two lines until opened (CR-2026-307) */
.table td [hidden] { display: none !important; }
.table td .mod-person-arrow { vertical-align: middle; margin: -3px 4px 0 -4px; }
tr.folded .report-body { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* the selection bar: not stuck over the list (CR-2026-307) */
.mod-bulk { position: static; }

/* People: one row each, the tick box and arrow before the name (CR-2026-309) */
#mod-users input.mod-pick { vertical-align: middle; margin: -3px 4px 0 0; }
#mod-users td:first-child { white-space: nowrap; }

/* Visits: the whole address or page shows, wrapped if long, the count beside it and the bar under it; wider columns (CR-2026-320; Tom: "i cant even read the whole ... domain/page that crawled us") */
.mod-cols { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px 28px; }
.mod-bar { grid-template-columns: minmax(0, 1fr) 3.5em; grid-template-areas: "k n" "v v"; row-gap: 3px; margin: 0 0 9px; font-size: 14px; }
.mod-bar-k { grid-area: k; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.mod-bar-n { grid-area: n; align-self: start; }
.mod-bar-v { grid-area: v; height: 6px; }

/* User accounts, By business: staff under their business owner (CR-2026-324) */
#mod-users tr.mod-staff td:first-child { padding-left: 34px; border-left: 3px solid var(--accent-soft); }

/* Capacity: a part of the line above it, indented (CR-2026-428) */
.stats .stat.cap-part { margin-left: 18px; opacity: .9; }
