/* Breathe Cam staff web, in the app's "Site Ledger" design system.
   Ported from design/google-auth-access/prototype (vendor/app.css + app.css).
   Rules: dark by default, Daylight when the OS asks for light; square corners; hairline groups;
   white primary block buttons; yellow only on the single next step; Switzer and JetBrains Mono. */

@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jbmono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jbmono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
/* Google's button label face (Apache-2.0), used only inside .gbtn */
@font-face { font-family: 'Roboto'; src: url('../fonts/roboto-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #191919; --bg-2: #141414; --surface: #222222; --surface-2: #2a2a2a;
  --chip: #303030; --chip-hover: #3a3a3a;
  --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.16);
  --fg: #f5f5f5; --fg-2: #c9c9c7; --muted: #b3b3b3; --faint: #8c8c8c;
  --primary: #f5f5f5; --primary-fg: #111111;
  --next: #fde047; --next-ink: #fde047;
  --warn: #ff9a52; --stop: #ff6257; --ok: #8fd6a5;
  --danger-bg: #ff6257; --danger-fg: #191919;
  --scrim: rgba(0, 0, 0, 0.55); --glass: rgba(20, 20, 20, 0.72); --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --toast-bg: #f4f2ee; --toast-fg: #191919;
  --next-keyline: none;
  --sans: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 140ms; --t-base: 240ms;
  --gutter: 18px; --page-x: 32px;
}
/* Daylight */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f2ee; --bg-2: #111111; --surface: #ffffff; --surface-2: #eceae5; --chip: #e4e2dc; --chip-hover: #d9d7d0;
    --line: rgba(25, 25, 25, 0.1); --line-2: rgba(25, 25, 25, 0.18);
    --fg: #191919; --fg-2: #3b3b39; --muted: #5e5d59; --faint: #68675f;
    --primary: #191919; --primary-fg: #f5f5f5;
    --next-ink: #191919;
    --warn: #b4520f; --stop: #c2352b; --ok: #23794a;
    --danger-bg: #b02a21; --danger-fg: #ffffff;
    --scrim: rgba(10, 10, 10, 0.38); --glass: rgba(250, 249, 246, 0.82); --shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    --toast-bg: #191919; --toast-fg: #f5f5f5;
    --next-keyline: inset 0 0 0 1px rgba(25, 25, 25, 0.55);
  }
}

/* ================= base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg); font: 400 16px/1.4 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, label:focus-within > .switch i { outline: 2px solid var(--fg); outline-offset: 2px; }
img { display: block; max-width: 100%; }
b, strong { font-weight: 500; }
small { font-size: 0.8125em; color: var(--muted); display: block; }
p, small { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
code { font: 400 0.9em/1.3 var(--mono); }
.ic { width: 22px; height: 22px; flex: none; }
.mark { width: 41px; height: 32px; flex: none; color: var(--fg); }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.sm { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.sq { display: inline-block; width: 8px; height: 8px; flex: none; background: var(--fg); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ================= app components ================= */
.row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); transition: background var(--t-fast); }
.row b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.row small { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
a.row:hover, button.row:hover, label.row.pick:hover { background: var(--surface-2); }
.row > .ic:last-child { width: 18px; height: 18px; color: var(--faint); }
.row.static { cursor: default; }
.group { border-top: 1px solid var(--line); margin-bottom: 18px; }
.sec-h { margin: 26px var(--gutter) 6px; font: 500 13px/1.2 var(--sans); color: var(--muted); }
.foot-note { margin: 14px var(--gutter); font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.danger-row b { color: var(--stop); }

.av { width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; background: var(--chip); color: var(--fg); font: 500 12px/1 var(--sans); letter-spacing: .02em; }
.av.xs { width: 26px; height: 26px; font-size: 10px; }
.av.lg { width: 56px; height: 56px; font-size: 18px; }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: var(--chip); color: var(--fg); font-size: 14px; white-space: nowrap; flex: none; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.chip .ic { width: 16px; height: 16px; }
.chip:hover { background: var(--chip-hover); }
.chip.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.chip.ghost:hover { background: var(--surface-2); }
/* selection is an outline; a solid block is an action */
.chip.on, .chip:has(input:checked) { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.chip:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 2px; }
.chip > input[type="checkbox"], .chip > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chip { position: relative; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px var(--gutter) 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; background: var(--chip); color: var(--fg); font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; text-align: center; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out); }
.btn:hover { background: var(--chip-hover); }
.btn:active { transform: scale(.98); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--primary); color: var(--primary-fg); }
.btn.primary:hover { filter: brightness(.92); }
.btn.sm { min-height: 44px; font-size: 14px; padding: 0 14px; }
.btn.danger { background: var(--danger-bg); color: var(--danger-fg); }
.btn.danger:hover { filter: brightness(.95); }
.btn.next-fill { background: var(--next); color: #191919; box-shadow: var(--next-keyline); }
.btn.next-fill:hover { filter: brightness(.96); }
.btn:disabled, .btn[disabled] { background: transparent !important; color: var(--fg-2) !important; box-shadow: inset 0 0 0 1px var(--line-2) !important; filter: none !important; cursor: not-allowed; transform: none; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13.5px; color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--fg); text-decoration-color: currentColor; }
.link-btn .ic { width: 16px; height: 16px; }

.seg { display: flex; padding: 0; gap: 0; box-shadow: inset 0 0 0 1px var(--line-2); }
.seg > a, .seg > button, .seg > label { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; font-size: 14px; color: var(--muted); white-space: nowrap; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.seg > a:hover, .seg > label:hover { color: var(--fg); }
.seg > .on, .seg > label:has(input:checked) { background: var(--primary); color: var(--primary-fg); }
.seg > label { position: relative; }
.seg > label > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.seg > label:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: -4px; }
.seg .cnt { font-style: normal; display: inline-block; min-width: 18px; padding: 0 4px; background: var(--muted); color: var(--bg); font-size: 11px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.seg > .on .cnt { background: var(--primary-fg); color: var(--primary); }
.seg.full { margin: 6px var(--gutter) 4px; }

.searchfield { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; background: var(--surface); color: var(--muted); font-size: 15px; }
.searchfield input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); font: inherit; outline: none; min-height: 44px; }
.searchfield:focus-within { box-shadow: inset 0 0 0 1px var(--fg); }
.searchfield .ic { width: 18px; height: 18px; }

.field { display: grid; gap: 6px; padding: 8px var(--gutter); min-width: 0; }
.field > span { font-size: 12px; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; background: var(--bg); border: 1px solid var(--line-2); color: var(--fg); font: 400 16px/1.4 var(--sans); padding: 12px; outline: none; border-radius: 0; -webkit-appearance: none; appearance: none; }
.field input[type="file"] { padding: 10px 12px; font-size: 14px; }
.field input[type="file"]::file-selector-button { font: inherit; margin-right: 12px; padding: 6px 10px; border: 0; background: var(--chip); color: var(--fg); cursor: pointer; }
.field input[type="date"] { min-height: 48px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--fg); }
.field input[aria-invalid="true"] { border-color: var(--stop); }
.field textarea { min-height: 110px; resize: vertical; }
.field-err { margin: -2px var(--gutter) 6px; font-size: 13px; color: var(--stop); }

.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); transition: background var(--t-fast); }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: var(--faint); transition: transform var(--t-base) var(--ease-out), background var(--t-fast); }
.switch input:checked + i { background: var(--fg); box-shadow: none; }
.switch input:checked + i::after { transform: translateX(20px); background: var(--bg); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + i { opacity: .45; }
.toggle { cursor: pointer; }

.empty { padding: 36px 12px; display: grid; gap: 6px; justify-items: start; }
.empty-t { margin: 0; font-size: 17px; font-weight: 500; }
.empty-b { margin: 0 0 10px; color: var(--muted); font-size: 14px; max-width: 42ch; line-height: 1.45; }
.badge-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 8px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); white-space: nowrap; }

.sh-head { display: flex; align-items: flex-start; gap: 12px; padding: 0 var(--gutter) 10px; }
.sh-head h2 { margin: 0; font-weight: 400; font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; overflow-wrap: anywhere; }
.sh-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.sh-body { flex: 1; min-height: 0; overflow-y: auto; }
.sh-foot { flex: none; display: flex; gap: 6px; padding: 10px var(--gutter) 0; }
.sh-foot.inline { padding: 0 var(--gutter) 6px; flex-wrap: wrap; }

.row.pick { cursor: pointer; }
.row.pick > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.row.pick { position: relative; }
.row.pick .pick-tick { width: 22px; color: transparent; flex: none; }
.row.pick .pick-tick .ic { width: 22px; height: 22px; }
.row.pick.on .pick-tick, .row.pick:has(input:checked) .pick-tick { color: var(--fg); }
.row.pick:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: -2px; }

/* toast */
.toast { position: fixed; z-index: 60; right: var(--page-x); bottom: 28px; width: min(420px, calc(100vw - 2 * var(--page-x))); min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: var(--toast-bg); color: var(--toast-fg); font-size: 14px; line-height: 1.35; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: toast-in var(--t-base) var(--ease-out); }
.toast span { flex: 1; }
.toast .ic { width: 18px; height: 18px; }
.toast button { min-height: 44px; min-width: 44px; display: grid; place-items: center; color: inherit; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* error / notice plate */
.au-result { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); box-shadow: inset 3px 0 0 var(--warn); margin-bottom: 6px; }
.au-result.revoked { box-shadow: inset 3px 0 0 var(--stop); }
.au-result.info { box-shadow: inset 3px 0 0 var(--line-2); }
.au-result > .ic { width: 20px; height: 20px; color: var(--warn); margin-top: 1px; }
.au-result.revoked > .ic { color: var(--stop); }
.au-result.info > .ic { color: var(--fg-2); }
.au-result b { display: block; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.au-result p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--fg-2); overflow-wrap: anywhere; }
.au-result ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.45; color: var(--fg-2); }
.au-msg { margin: 0 0 4px; font-size: 14px; line-height: 1.45; color: var(--fg-2); }
.au-msg:empty { display: none; }

/* ================= Google's button, per Google's sign-in branding guidelines =================
   Light button on Dark, dark button on Daylight. Roboto Medium 16/20, G unchanged, 12px gap,
   4px corners: the one non-square shape, because Google sets it. */
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 12px; border-radius: 4px; background: #ffffff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #747775; font: 500 16px/20px Roboto, -apple-system, Arial, sans-serif; letter-spacing: 0.25px; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background var(--t-fast); }
.gbtn:hover { background: #f8f9fa; }
.gbtn:active { background: #eef0f1; }
.gbtn .g-logo { width: 20px; height: 20px; flex: none; }
.gbtn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
@media (prefers-color-scheme: light) {
  .gbtn { background: #131314; color: #e3e3e3; box-shadow: inset 0 0 0 1px #8e918f; }
  .gbtn:hover { background: #1f1f20; }
  .gbtn:active { background: #2a2a2b; }
}

/* ================= shell ================= */
.wb-top { flex: none; display: flex; align-items: center; gap: 28px; min-height: 64px; padding: 0 var(--page-x); border-bottom: 1px solid var(--line); }
.wb-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; white-space: nowrap; min-height: 44px; }
.wb-nav { display: flex; gap: 4px; align-self: stretch; }
.wb-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: color var(--t-fast); }
.wb-nav a:hover { color: var(--fg); }
.wb-nav a.on { color: var(--fg); box-shadow: inset 0 -2px 0 var(--fg); }
.wb-me { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; min-width: 0; }
.wb-me-name { overflow: hidden; text-overflow: ellipsis; }
.wb-me form { margin: 0; display: inline-flex; }
.wb-me .link-btn { min-height: 44px; }
.wb-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.wb-eyebrow { margin: 0; font: 400 12px/1.3 var(--mono); color: var(--muted); }
.wb-h1 { margin: 10px 0 10px; font-weight: 300; font-size: 40px; line-height: 1.08; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.wb-h2 { margin: 0; font-weight: 400; font-size: 20px; letter-spacing: -0.01em; }
.wb-sub { margin: 0; max-width: 62ch; font-size: 15px; line-height: 1.5; color: var(--fg-2); overflow-wrap: anywhere; }
.wb-note { margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.wb-main { width: 100%; max-width: 1280px; padding: 36px var(--page-x) 60px; }
.wb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 28px; }
.wb-head > div { min-width: 0; }
.wb-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.wb-foot { margin: 24px 0 0; }
.wb-crumb { margin: -8px 0 12px; }
.wb-stamp { font: 400 12px/1.4 var(--mono); color: var(--muted); }
.wb-msgs { margin-bottom: 20px; max-width: 720px; }

/* sign-in, expired, redeem */
.wl { flex: 1; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(0, 1.1fr); min-height: calc(100vh - 65px); min-height: calc(100dvh - 65px); }
.wl-col { padding: 72px 64px 48px; width: 100%; max-width: 520px; display: grid; gap: 10px; align-content: start; }
.wl-col .wb-h1 { margin-bottom: 4px; }
.wl-col .wb-sub { margin-bottom: 18px; }
.wl-col .btn { width: 100%; min-height: 52px; }
.wl-col form { display: grid; gap: 10px; margin: 0; }
.wl-col .field { padding: 0; }
.wl-col .field input { background: var(--chip); border-color: var(--line-2); min-height: 52px; }
.wl-col .foot-note { margin: 8px 0 0; }
.wl-col > .link-btn { justify-self: start; }
.wl-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin: 6px 0; }
.wl-or::before, .wl-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.wl-email { display: grid; gap: 10px; }
.wl-email > summary { list-style: none; }
.wl-email > summary::-webkit-details-marker { display: none; }
.wl-email[open] > summary { display: none; }
.wl-photo { position: relative; margin: 0; overflow: hidden; background: var(--bg-2); }
.wl-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wl-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.7) 100%); }
.wl-stamp { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 20px; margin: 0; font: 400 12px/1.4 var(--mono); color: #e8e8e6; }

/* Your sites */
.wb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.wb-card { background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.wb-card-body { padding: 16px 16px 8px; display: grid; gap: 4px; }
.wb-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wb-card-body h3 { margin: 0; font-weight: 400; font-size: 19px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.wb-card-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.wb-card-body p { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.wb-card-status { flex: none; padding: 4px 8px; font-size: 12px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); }
.wb-card-links { margin-top: auto; padding: 6px 16px 10px; display: flex; flex-wrap: wrap; gap: 0 16px; border-top: 1px solid var(--line); }
.wb-card-links .link-btn { text-decoration: none; }
.wb-card-links .link-btn:hover { text-decoration: underline; }

/* Site photos */
.wb-pgroup { margin-top: 28px; }
.wb-pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.wb-photo { margin: 0; min-width: 0; }
.wb-photo-img { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.wb-photo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
a.wb-photo-img:hover img { transform: scale(1.02); }
.wb-photo-wait { display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px; text-align: center; color: var(--muted); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; }
.wb-photo-wait .ic { width: 20px; height: 20px; }
.wb-photo.void .wb-photo-img img { opacity: 0.4; filter: grayscale(1); }
.wb-photo figcaption { padding-top: 10px; font-size: 14px; }
.wb-photo figcaption p { margin: 0 0 2px; overflow-wrap: anywhere; }
.wb-photo-state { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.wb-photo-meta { color: var(--muted); font-size: 13px; }
.wb-pages { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); }

/* plates (setup, catalogue) */
.wb-plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.wb-plate { background: var(--surface); padding: 20px 0 16px; min-width: 0; margin: 0; }
.wb-plate > .wb-h2, .wb-plate > .wb-note, .wb-plate > form > .wb-h2, .wb-plate > form > .wb-note { padding: 0 18px; }
.wb-plate .field { padding: 6px 18px; }
.wb-plate .field input, .wb-plate .field textarea { background: var(--bg); font-size: 15px; }
.wb-plate .field textarea { font: 400 13px/1.5 var(--mono); min-height: 140px; }
.wb-plate .group { margin: 0; }
.wb-plate .row:last-child { border-bottom: 0; }
.wb-plate .chip { background: var(--surface-2); }
.wb-plate .chip:has(input:checked) { background: transparent; }
.wb-plate-foot { display: flex; justify-content: flex-end; padding: 12px 18px 0; }
.wb-plate form { margin: 0; }
.wb-plate fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wb-plate legend { padding: 0; }
.wb-plate fieldset > .wb-h2, .wb-plate fieldset > .wb-note { padding: 0 18px; }
.wb-plate .wb-h2 + .wb-fields { margin-top: 10px; }
.wb-sec + .group { border-top: 0; }
.wb-chips { padding: 4px 18px 8px; }
.wb-plate .sec-h { margin: 14px 18px 4px; }
.wb-cond { border-bottom: 1px solid var(--line); padding: 10px 0 12px; }
.wb-cond:last-child { border-bottom: 0; }
.wb-cond .wb-plate-foot { padding-top: 6px; }
.wb-split { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 28px; align-items: start; }
.wb-fields { display: grid; grid-template-columns: 1fr; }
.wb-fields.two { grid-template-columns: 1fr 1fr; }
.wb-retired { opacity: 0.55; }
.wb-list-row form { margin: 0; flex: none; }

/* ================= People and access ================= */
.wb-add { flex: none; }
.wb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.wb-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.wb-seg { flex: none; }
.wb-seg > a { flex: none; padding: 0 14px; gap: 8px; }
.wb-search { margin: 0; flex: 1; min-width: 0; min-height: 44px; }
.wb-table { border-top: 1px solid var(--line); }
.wb-tr { display: grid; grid-template-columns: minmax(220px, 2.1fr) 0.8fr 1.2fr 1.2fr 1.25fr 24px; gap: 16px; align-items: center; width: 100%; min-height: 64px; padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; transition: background var(--t-fast); }
a.wb-tr:hover, .wb-tr.on { background: var(--surface); }
.wb-th { min-height: 40px; font-size: 12px; color: var(--muted); }
.wb-td { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-person { display: flex; align-items: center; gap: 12px; }
.wb-person b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.wb-person small { overflow: hidden; text-overflow: ellipsis; }
.wb-person .wb-m { display: none; }
.wb-chev { display: flex; justify-content: flex-end; }
.wb-chev .ic { width: 16px; height: 16px; color: var(--faint); }
.wb-policy { background: var(--surface); padding: 20px 0 6px; }
.wb-policy > .wb-h2, .wb-policy > .wb-note { padding: 0 18px; }
.wb-policy form { margin: 0; }
.wb-policy .group { margin-bottom: 0; }
.wb-policy .row:last-child { border-bottom: 0; }
.wb-policy .row small { line-height: 1.4; }
.wb-policy .field { padding: 10px 18px 12px; border-bottom: 1px solid var(--line); }
.wb-policy .field input { background: var(--bg); font-size: 15px; }
.wb-policy .wb-plate-foot { padding: 12px 18px 12px; }
.wb .empty { padding: 36px 12px; }

/* side panel and modal: the app's sheet parts on a square plate */
.wb-layer { position: fixed; inset: 0; z-index: 40; }
.wb-scrim { position: absolute; inset: 0; background: var(--scrim); }
.wb-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%; background: var(--surface); display: flex; flex-direction: column; padding-top: 18px; box-shadow: var(--shadow); }
.wb-drawer .sh-head { align-items: center; }
.wb-drawer .sh-body, .wb-modal .sh-body { padding-bottom: 18px; }
.wb-drawer .row, .wb-modal .row { min-height: 56px; }
.wb-drawer .chip, .wb-modal .chip { background: var(--surface-2); }
.wb-drawer .chip:has(input:checked), .wb-modal .chip:has(input:checked) { background: transparent; }
.wb-drawer form, .wb-modal form { margin: 0; }
.wb-close { width: 48px; height: 48px; display: grid; place-items: center; flex: none; margin: -8px -8px 0 0; }
.wb-inline-foot { padding-top: 10px !important; }
.wb-modal { position: absolute; top: 48px; left: 50%; width: 560px; max-width: calc(100% - 32px); max-height: calc(100% - 96px); transform: translateX(-50%); background: var(--surface); display: flex; flex-direction: column; padding: 22px 0 18px; box-shadow: var(--shadow); }
.wb-modal > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.wb-modal .sh-foot { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 14px; flex-wrap: wrap; }
.wb-modal .sh-foot .btn { flex: 0 0 auto; min-width: 140px; }
.wb-modal .sh-foot .gbtn { width: auto; flex: 0 0 auto; padding: 0 16px; }
.wb-modal .field-err, .wb-modal .form-err { margin-left: var(--gutter); margin-right: var(--gutter); }
.wb-modal .au-result { margin: 0 var(--gutter) 10px; }
.wb-modal .wb-proof { margin: 0 var(--gutter); display: grid; gap: 8px; padding-top: 6px; }
.wb-modal .wb-proof .field { padding: 0; }
.wb-modal .wb-proof .btn { justify-self: start; }
[data-layer]:focus { outline: none; }
.adm-site { border-bottom: 0; padding-bottom: 4px; min-height: 0 !important; }
.wb-repl { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
/* add-person notes follow the choices (CSS only) */
.wb-modal .note-password, .wb-modal .note-office { display: none; }
.wb-modal:has(input[name="signIn"][value="password"]:checked) .note-password { display: block; }
.wb-modal:has(input[name="signIn"][value="password"]:checked) .note-google { display: none; }
.wb-modal:has(input[name="role"][value="office"]:checked, input[name="role"][value="owner"]:checked) .note-office { display: block; }
.wb-modal:has(input[name="role"][value="office"]:checked, input[name="role"][value="owner"]:checked) .note-crew { display: none; }
body.has-layer { overflow: hidden; }
.wb-fieldset { border: 0; margin: 0 0 0; padding: 0; min-width: 0; border-top: 1px solid var(--line); }
.wb-flat { margin: 0; }

/* ================= responsive ================= */
@media (max-width: 1180px) {
  .wb-grid { grid-template-columns: minmax(0, 1fr); }
  .wb-policy { max-width: 560px; }
  .wb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wb-split { grid-template-columns: minmax(0, 1fr); }
  .wb-tr { grid-template-columns: minmax(200px, 2fr) 0.9fr 1.1fr 1.2fr 1fr 24px; }
}
@media (max-width: 900px) {
  .wl { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .wl-photo { display: none; }
  .wl-col { padding: 48px var(--page-x) 40px; margin: 0 auto; }
  .wb-plates { grid-template-columns: minmax(0, 1fr); }
  .wb-tr { grid-template-columns: minmax(0, 1fr) 24px; }
  .wb-tr > .wb-td:not(.wb-person):not(.wb-chev) { display: none; }
  .wb-th { display: none; }
  .wb-person .wb-m { display: block; margin-top: 2px; }
  .wb-bar { flex-wrap: wrap; }
  .wb-seg { width: 100%; }
  .wb-seg > a { flex: 1; padding: 0 8px; }
  .wb-search { flex: 1 0 100%; }
}
@media (max-width: 720px) {
  :root { --page-x: 16px; --gutter: 16px; }
  .wb-top { gap: 12px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 0; }
  .wb-brand > span { display: none; }
  .wb-me { order: 2; }
  .wb-me .av, .wb-me-name { display: none; }
  .wb-nav { order: 3; flex: 1 0 100%; margin: 0 calc(-1 * var(--page-x)); padding: 0 calc(var(--page-x) - 12px); overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
  .wb-nav::-webkit-scrollbar { display: none; }
  .wb-nav a { min-height: 48px; }
  .wb-main { padding-top: 28px; padding-bottom: 48px; }
  .wb-h1 { font-size: 32px; }
  .wb-head { flex-direction: column; align-items: stretch; gap: 18px; }
  .wb-add { width: 100%; }
  .wb-cards, .wb-pgrid { grid-template-columns: minmax(0, 1fr); }
  .wb-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .wb-fields.two { grid-template-columns: minmax(0, 1fr); }
  .wb-plate .field, .wb-policy .field { padding-left: 16px; padding-right: 16px; }
  .wb-plate > .wb-h2, .wb-plate > .wb-note, .wb-plate > form > .wb-h2, .wb-plate > form > .wb-note, .wb-plate fieldset > .wb-h2, .wb-plate fieldset > .wb-note, .wb-policy > .wb-h2, .wb-policy > .wb-note { padding: 0 16px; }
  .wb-chips { padding-left: 16px; padding-right: 16px; }
  .wb-seg > a { font-size: 13px; gap: 5px; }
  .wl-col { padding-top: 36px; }
  .wb-drawer { width: 100%; }
  .wb-modal { top: 0; left: 0; width: 100%; max-width: 100%; max-height: 100%; height: 100%; transform: none; padding-top: 18px; }
  .wb-modal .sh-foot { flex-direction: column-reverse; }
  .wb-modal .sh-foot .btn, .wb-modal .sh-foot .gbtn { flex: none; width: 100%; min-width: 0; }
  .toast { right: 16px; left: 16px; width: auto; bottom: 16px; }
  .wb-pages { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .wb-pgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
