/* Giano design system. Calm, warm, trustworthy: ivory paper, deep sage, terracotta accents. */

@font-face { font-family: "Fraunces"; src: url("/assets/fraunces-c0c7953a.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/inter-5e6b0c47.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f8f5ef; --surface: #ffffff; --surface-2: #f3efe7; --ink: #18212b; --ink-soft: #5a6472; --ink-faint: #8c94a0;
  --line: #e7e0d4; --line-strong: #d6cdbd;
  --brand: #2c5a4d; --brand-strong: #1f4339; --brand-soft: #4d8a78; --brand-tint: #e3eee8; --on-brand: #ffffff;
  --accent: #d9734f; --accent-tint: #fbe6dc; --gold: #e9c27a;
  --hero-deep: #1f4339; --hero: #2c5a4d; --hero-light: #3f7f6e;
  --amber: #9a6510; --amber-tint: #fcf1d8; --indigo: #4453c4; --indigo-tint: #e7e9fc; --clay: #a8492a;
  --green: #23744d; --green-tint: #def2e6; --rose: #b4405a; --rose-tint: #fbe3e8; --slate-tint: #eceef1;
  --shadow-sm: 0 1px 2px rgb(24 33 43 / 6%), 0 1px 1px rgb(24 33 43 / 4%);
  --shadow: 0 1px 2px rgb(24 33 43 / 5%), 0 8px 24px -8px rgb(24 33 43 / 12%);
  --shadow-lg: 0 24px 60px -20px rgb(31 67 57 / 35%);
  --radius: 14px; --radius-sm: 9px; --radius-pill: 999px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1418; --surface: #161d23; --surface-2: #1b242b; --ink: #e9eef0; --ink-soft: #a3adb6; --ink-faint: #75808a;
    --line: #253039; --line-strong: #33404b;
    --brand: #7cc3ab; --brand-strong: #a3dccb; --brand-soft: #5ea692; --brand-tint: #1a2f29; --on-brand: #0d1a16;
    --accent: #f0a185; --accent-tint: #3a231b; --gold: #d8b06a;
    --amber: #f2c46d; --amber-tint: #33270f; --indigo: #a9b2ff; --indigo-tint: #1f2440; --clay: #f0a185;
    --green: #7fd6a6; --green-tint: #15301f; --rose: #f39cb0; --rose-tint: #3a1b23; --slate-tint: #222b33;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%); --shadow: 0 10px 30px -12px rgb(0 0 0 / 60%); --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / 70%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15.5px/1.55 var(--font-body); color: var(--ink); background: var(--paper); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 560; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 0.4em; font-variation-settings: "SOFT" 50, "opsz" 72; }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); }
h2 { font-size: 1.3rem; margin-top: 1.6rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 0.9em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); font-size: 0.88rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 650; color: var(--accent); margin-bottom: 0.6rem; display: inline-block; }

/* Buttons */
.btn, button, input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 0.94rem/1 var(--font-body);
  padding: 11px 18px; border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer; text-decoration: none;
  background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); transition: transform .12s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap;
}
.btn:hover, button:hover, input[type=submit]:hover { background: var(--brand-strong); color: var(--on-brand); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active, button:active { transform: translateY(0); }
.btn-ghost, button.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover, button.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, black); color: #fff; }
.btn-danger, button.btn-danger { background: transparent; color: var(--rose); border-color: color-mix(in srgb, var(--rose) 40%, transparent); box-shadow: none; }
.btn-danger:hover, button.btn-danger:hover { background: var(--rose-tint); color: var(--rose); }
.btn-sm, button.btn-sm { padding: 7px 12px; font-size: 0.84rem; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
button.link, .link button { background: none; border: 0; box-shadow: none; color: var(--brand); padding: 0; font-weight: 550; }
button.link:hover, .link button:hover { background: none; color: var(--brand-strong); transform: none; box-shadow: none; text-decoration: underline; }
button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.button_to { display: inline-flex; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Forms */
form.stack, .stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
label, legend { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.hint { font-size: 0.82rem; color: var(--ink-faint); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=url], input[type=date], input[type=datetime-local], select, textarea {
  font: 400 0.98rem/1.4 var(--font-body); width: 100%; padding: 11px 13px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
textarea { min-height: 7rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: 0.93rem; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 9px 15px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500; font-size: 0.92rem; transition: all .15s; }
.choice input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.inline-form > * { flex: 1 1 180px; }
.inline-form > .btn, .inline-form > input[type=submit], .inline-form > button { flex: 0 0 auto; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-header h2, .card-header h3 { margin: 0; }
.empty { text-align: center; padding: 36px 20px; color: var(--ink-soft); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.empty svg { width: 34px; height: 34px; color: var(--brand-soft); margin-bottom: 8px; }
.empty p { margin: 0; }
.empty .empty-hint { margin-top: 6px; font-size: 0.9rem; color: var(--ink-faint); max-width: 46ch; margin-inline: auto; }
.empty .empty-action { margin-top: 14px; }

/* Getting started checklist */
.onboarding { margin-bottom: 24px; }
.onboarding .card-header { align-items: flex-start; }
.onboarding h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.1rem; }
.onboarding h2 svg { color: var(--brand-soft); }
.onboarding .card-header p { margin: 4px 0 0; }
.onboarding progress { display: block; width: 100%; height: 6px; margin: 14px 0 6px; border: 0; border-radius: var(--radius-pill); background: var(--slate-tint); appearance: none; overflow: hidden; }
.onboarding progress::-webkit-progress-bar { background: var(--slate-tint); }
.onboarding progress::-webkit-progress-value { background: var(--brand); border-radius: var(--radius-pill); }
.onboarding progress::-moz-progress-bar { background: var(--brand); border-radius: var(--radius-pill); }
.onboarding-steps { list-style: none; margin: 0; padding: 0; }
.onboarding-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.onboarding-steps li:first-child { border-top: 0; }
.onboarding-steps li > div { display: flex; flex-direction: column; gap: 2px; }
.onboarding-steps a { font-weight: 600; }
.onboarding-steps .tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.onboarding-steps .done { color: var(--ink-soft); }
.onboarding-steps .done .tick { background: var(--green); border-color: var(--green); color: var(--surface); }
.onboarding-steps .done > div { text-decoration: line-through; text-decoration-color: var(--line-strong); }
/* Getting-started progress as a ring around the avatar: brand for done, a light track for the rest. */
.avatar-progress { display: inline-grid; place-items: center; flex: none; padding: 4px; border-radius: 50%; background: conic-gradient(var(--brand) var(--progress), var(--line-strong) 0); cursor: help; }
/* Shown in the top layer, so the scrolling sidebar and table wrappers don't clip it; placed by the tooltip controller. */
.ring-tip { position: fixed; inset: auto; margin: 0; width: max-content; max-width: 240px; padding: 8px 12px; border: 0; border-radius: var(--radius-sm); background: var(--ink); color: var(--surface); box-shadow: var(--shadow); font-size: 0.8rem; line-height: 1.4; pointer-events: none; }
.ring-tip strong { display: block; font-size: 0.86rem; }
.avatar-progress > .avatar { box-shadow: 0 0 0 2px var(--surface); }
.onboarding-steps .recommended { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--slate-tint); color: var(--ink-soft); font-size: 0.74rem; font-weight: 600; vertical-align: 1px; }
/* Profile page: who you are and how far along, then a section menu beside the sections (chips on top on phones).
   Each section has what it is on the left and its fields on the right, stacking when narrow. */
.profile-summary { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-bottom: 24px; }
.profile-who { display: flex; align-items: center; gap: 16px; flex: 999 1 340px; min-width: 0; }
.profile-who h2 { margin: 0 0 4px; font-size: 1.4rem; }
.profile-who p { margin: 0; overflow-wrap: anywhere; }
.profile-who .avatar { width: 64px; height: 64px; font-size: 1.3rem; }
.profile-who .profile-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.profile-roles .pill { margin-left: 0; }
.pill-role { background: var(--brand-tint); color: var(--brand-strong); }
.pill-role::before { display: none; }
.profile-summary .completion { flex: 1 1 280px; margin: 0; }
.profile-summary .completion .card-header { margin-bottom: 0; }
.profile-summary .completion h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; }
.profile-summary .completion h3 svg { color: var(--brand-soft); }
.profile-summary progress { margin: 10px 0 6px; }
.profile-next { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; font-size: 0.9rem; }
.profile-summary details, .profile-manage { margin-top: 4px; }
.profile-summary summary, .profile-manage summary { cursor: pointer; min-height: 32px; padding-top: 4px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.completion-percent { font-size: 1.6rem; line-height: 1; color: var(--brand); }
.profile-layout { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-start; }
.profile-nav { flex: 1 1 200px; max-width: 240px; display: grid; gap: 18px; position: sticky; top: 24px; }
.profile-nav-group { display: grid; gap: 2px; }
.profile-nav-title { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); padding: 0 12px 4px; }
.profile-nav a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; text-decoration: none; }
.profile-nav a:hover { background: var(--surface-2); }
.pending-dot { flex: none; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--accent); }
.profile-main { flex: 999 1 560px; min-width: 0; display: grid; gap: 16px; }
.profile-main > form { gap: 16px; }
.profile-main input[readonly] { background: var(--slate-tint); color: var(--ink-soft); cursor: default; }
.profile-main .profile-section { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 0; scroll-margin-top: 24px; }
.profile-section-head { flex: 1 1 200px; }
.profile-section-head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.profile-section-head p { margin: 0; font-size: 0.9rem; }
.profile-section-body { flex: 999 1 340px; min-width: 0; align-content: start; }
.profile-section-body > p { margin: 0; }
.profile-section .pill { white-space: normal; }
.setting { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.profile-section-body > .setting:first-child { padding-top: 0; border-top: 0; }
.setting > div, .setting > label { display: grid; gap: 2px; }
.setting > div > label, .setting > label { font-weight: 600; font-size: 0.93rem; }
.setting .hint { margin: 0; }
.profile-save { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px 16px; font-size: 0.88rem; }
.profile-divider { display: flex; align-items: center; gap: 12px; padding-top: 16px; font-size: 0.85rem; }
.profile-divider .profile-nav-title { padding: 0; }
.profile-divider::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--line); }
.profile-divider .muted { order: 2; }
.profile-manage { padding-top: 10px; border-top: 1px solid var(--line); }
.profile-manage[open] { display: grid; gap: 14px; }
@media (max-width: 860px) {
  .profile-nav { position: static; flex-basis: 100%; max-width: none; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .profile-nav-group { display: contents; }
  .profile-nav-group .profile-nav-title { display: none; }
  .profile-nav a { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font-size: 0.9rem; }
  .pending-dot { margin-left: 0; }
}

/* Welcome tour (driver.js, see driver.css): the popover in Giano's colors, light and dark */
.driver-popover.tour-popover { font-family: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 20px; max-width: 340px; }
.tour-popover .driver-popover-title { font-family: "Fraunces", serif; font-size: 1.15rem; font-weight: 600; }
.tour-popover .driver-popover-description { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; margin-top: 6px; }
.tour-popover .driver-popover-progress-text { color: var(--ink-faint); font-size: 0.8rem; }
.tour-popover .driver-popover-footer button { all: unset; display: inline-block; cursor: pointer; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 0.84rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--ink); }
.tour-popover .driver-popover-footer .driver-popover-next-btn { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tour-popover .driver-popover-footer button:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.tour-popover .driver-popover-footer button:hover { background: var(--surface-2); }
.tour-popover .driver-popover-footer .driver-popover-next-btn:hover { background: var(--brand-strong); }
.tour-popover .driver-popover-close-btn { color: var(--ink-faint); }
.tour-popover .driver-popover-close-btn:hover, .tour-popover .driver-popover-close-btn:focus { color: var(--ink); }
.tour-popover .driver-popover-arrow-side-left { border-left-color: var(--surface); }
.tour-popover .driver-popover-arrow-side-right { border-right-color: var(--surface); }
.tour-popover .driver-popover-arrow-side-top { border-top-color: var(--surface); }
.tour-popover .driver-popover-arrow-side-bottom { border-bottom-color: var(--surface); }

/* Flash and banners */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; background: var(--green-tint); color: var(--ink); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); }
.flash-alert { background: var(--rose-tint); border-color: color-mix(in srgb, var(--rose) 30%, transparent); }
.flash ul { margin: 0; padding-left: 18px; }
.banner { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 28px; font-size: 0.9rem; background: var(--brand-tint); border-bottom: 1px solid var(--line); }
.banner-warn { background: var(--amber-tint); }
.banner a, .banner button.link { font-weight: 650; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; background: var(--slate-tint); color: var(--ink-soft); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill-pending { background: var(--amber-tint); color: var(--amber); }
.pill-assigned, .pill-planned { background: var(--indigo-tint); color: var(--indigo); }
.pill-accepted, .pill-done, .pill-active { background: var(--green-tint); color: var(--green); }
.pill-cancelled, .pill-no_show, .pill-expired, .pill-past_due { background: var(--rose-tint); color: var(--rose); }
.pill-trialing { background: var(--accent-tint); color: var(--accent); }
.pill-disabled { background: var(--slate-tint); color: var(--ink-soft); margin-left: 6px; }
.pill-also-professional { background: var(--indigo-tint); color: var(--indigo); margin-left: 6px; }
.pill-also-manager { background: var(--amber-tint); color: var(--amber); margin-left: 6px; }
.pill-google-calendar { margin-left: 6px; }
.pill-google-calendar-on { background: var(--green-tint); color: var(--green); }
.pill-google-calendar-failed { background: var(--rose-tint); color: var(--rose); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th { text-align: left; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 650; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--brand-tint) 45%, transparent); }
td a { font-weight: 560; text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 0.8rem; color: var(--brand-strong); background: var(--brand-tint); flex: none; }

/* App shell */
.shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1fr); }
.sidebar { background: var(--surface); border-bottom: 1px solid var(--line); }
.sidebar-inner { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 650; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.brand .mark, .mark { width: 32px; height: 32px; flex: none; padding: 2px; border-radius: 9px; background: #fff; box-shadow: var(--shadow-sm); object-fit: contain; }
.brand-sm { font-size: 0.9rem; gap: 6px; vertical-align: middle; }
.brand-sm .mark { width: 20px; height: 20px; padding: 1px; border-radius: 5px; }
.powered { text-align: center; margin-bottom: 32px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.tenant-name { font-size: 0.82rem; color: var(--ink-soft); margin: 2px 0 10px 42px; }
.nav-toggle { display: flex; justify-content: space-between; align-items: center; }
.nav-toggle .burger { width: 40px; height: 40px; padding: 0; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink); box-shadow: none; }
.nav-toggle .burger:hover { background: var(--surface-2); color: var(--ink); transform: none; }
.nav-panel { display: none; flex-direction: column; }
.nav-panel.is-open { display: flex; }
.nav { display: grid; gap: 2px; margin-top: 12px; }
.nav a, .nav button.link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 550; text-decoration: none; font-size: 0.94rem; width: 100%; }
.nav a:hover, .nav button.link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a[aria-current=page] { background: var(--brand-tint); color: var(--brand-strong); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); font-weight: 650; padding: 14px 12px 4px; }
.sidebar-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.me { display: flex; gap: 10px; align-items: center; font-size: 0.88rem; }
.me small { display: block; color: var(--ink-faint); }
.content { padding: 24px 18px 64px; max-width: 1480px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 6px 0 0; }

@media (min-width: 960px) {
  .shell { grid-template-columns: 264px minmax(0, 1fr); }
  .sidebar { border-bottom: 0; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .sidebar-inner { padding: 22px 16px; min-height: 100%; }
  .nav-toggle .burger { display: none; }
  .nav-panel { display: flex; flex: 1; }
  .sidebar-foot { margin-top: auto; }
  .content { padding: 36px 44px 80px; }
}

/* Grids and stats */
.grid { display: grid; gap: 18px; }
.grid-2 { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 26px; }
.stat { position: relative; overflow: hidden; display: block; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.stat .value { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1; display: block; margin-bottom: 6px; }
.stat .label { color: var(--ink-soft); font-size: 0.88rem; font-weight: 550; }
.stat::after { content: ""; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: var(--brand-tint); opacity: .7; }
.stat.warm::after { background: var(--accent-tint); }
.stat.gold::after { background: color-mix(in srgb, var(--gold) 30%, transparent); }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-pill); width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 18px; }
.tabs a { padding: 8px 16px; border-radius: var(--radius-pill); text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.tabs a[aria-current=page] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { max-width: 300px; }
.toolbar select { max-width: 230px; }

/* Request detail */
.answers { display: grid; gap: 14px; margin: 0; }
.answers div { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); }
.answers dt { font-size: 0.8rem; font-weight: 650; color: var(--ink-soft); margin-bottom: 4px; }
.answers dd { margin: 0; white-space: pre-wrap; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 20px; }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.meta svg { width: 15px; height: 15px; }
/* Request page: what to do now, then the calls (this request's and the customer's earlier ones). */
.next-step { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 18px 22px; margin-bottom: 22px; border-radius: var(--radius); background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.next-step-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.next-step-text { flex: 1 1 320px; min-width: 0; }
.next-step-eyebrow { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-strong); }
.next-step h2 { margin: 2px 0 0; font-size: 1.3rem; }
.next-step p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.next-step-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.next-step-actions form { margin: 0; }
.meta .meta-first-contact { color: var(--green); font-weight: 600; }
.first-contact h3 { display: flex; align-items: center; gap: 8px; }
.first-contact h3 svg { color: var(--brand); }
.first-contact-pending { border: 2px solid var(--brand-soft); }
.first-contact-day { margin: 0; font-size: 1.12rem; font-weight: 600; }
.first-contact summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 0.92rem; }
.first-contact details .inline-form { margin-top: 10px; }
.pill-returning { background: var(--indigo-tint); color: var(--indigo); }
.pill-unlimited::before { display: none; }

/* Request page: one header (who, how to reach them, the main action, where the request stands), then the work
   (calls, activity) beside what to know and the rarer tools. */
.request-head { display: grid; gap: 22px; margin-bottom: 22px; padding: 24px 26px; box-shadow: var(--shadow); }
.request-head-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.request-head-name { display: grid; gap: 6px; min-width: 0; }
.request-head-title { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.request-head-title h1 { margin: 0; }
.request-head .meta { margin: 0; }
.request-head .head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.request-head .head-actions .btn { min-height: 44px; }
.request-head .who { align-items: flex-start; }
@media (max-width: 640px) {
  .request-head { padding: 20px 18px; }
  .request-head .head-actions { width: 100%; }
  .request-head .head-actions .btn { flex: 1 1 auto; justify-content: center; }
}
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 8px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.journey-step { display: grid; gap: 4px; align-content: start; min-width: 0; }
.journey-bar { height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 4px; }
.journey-done .journey-bar { background: var(--brand); }
.journey-current .journey-bar { background: linear-gradient(90deg, var(--brand) 40%, color-mix(in srgb, var(--brand) 22%, var(--surface)) 40%); }
.journey-label { font-size: 0.88rem; font-weight: 650; }
.journey-todo .journey-label { font-weight: 500; color: var(--ink-soft); }
.journey-detail { font-size: 0.8rem; color: var(--ink-soft); overflow-wrap: anywhere; }
@media (max-width: 760px) { .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.request-layout { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.request-main { flex: 999 1 560px; min-width: 0; display: grid; gap: 22px; }
.request-side { flex: 1 1 320px; max-width: 100%; min-width: 0; display: grid; gap: 22px; }
@media (min-width: 1100px) { .request-side { max-width: 420px; } }
.request-main .card, .request-side .card { margin: 0; }
.request-side .answers div { padding: 10px 12px; }
.next-call { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 18px; margin-bottom: 14px; border: 2px solid var(--brand-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--brand-tint) 55%, var(--surface)); }
.next-call-day { width: 58px; flex: none; display: grid; justify-items: center; padding: 6px 0; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 0.72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.next-call-day strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--ink); letter-spacing: 0; }
.next-call-text { flex: 1 1 240px; min-width: 0; display: grid; gap: 3px; }
.next-call-eyebrow { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-strong); }
.next-call-text strong { font-size: 1.08rem; }
.next-call-text .muted { font-size: 0.9rem; }
.next-call .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.activity-head { flex-wrap: wrap; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-pill); }
.segmented button { min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-soft); box-shadow: none; font-size: 0.86rem; font-weight: 600; transform: none; }
.segmented button:hover { background: transparent; color: var(--ink); transform: none; box-shadow: none; }
.segmented button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.93rem; }
.activity-item:first-child { border-top: 0; }
.activity-item time { color: var(--ink-soft); font-size: 0.82rem; white-space: nowrap; }
.activity-note { display: block; margin-top: 2px; font-style: italic; }
.activity-dot { width: 12px; height: 12px; margin: 4px 8px 0; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px var(--surface-2); }
.activity-created .activity-dot { background: var(--ink-faint); }
.activity-booked .activity-dot { background: var(--brand-soft); }
.activity-dot-done { background: var(--green); }
.activity-dot-no_show, .activity-dot-cancelled { background: var(--rose); }
.manage { background: var(--surface-2); box-shadow: none; padding: 16px 22px; }
.manage-title { margin: 0 0 4px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.manage-item { border-top: 1px solid var(--line); }
.manage-item:first-of-type { border-top: 0; }
.manage-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 550; }
.manage-item > summary > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.manage-item > summary svg { color: var(--ink-soft); }
.manage-item[open] { padding-bottom: 14px; }
.manage-item p { margin: 0 0 12px; }

.calls-head { align-items: flex-start; flex-wrap: wrap; }
.calls-quota { display: grid; gap: 8px; justify-items: end; flex: 0 1 280px; font-size: 0.92rem; }
.quota-segments { display: grid; grid-template-columns: repeat(var(--slots), minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 240px; }
.seg { display: block; height: 8px; border-radius: 4px; }
.seg-earlier { background: var(--ink-faint); }
.seg-done { background: var(--brand); }
.seg-planned { background: var(--indigo); }
.seg-free { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.quota-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 0.78rem; color: var(--ink-soft); }
.quota-legend li { display: inline-flex; align-items: center; gap: 6px; }
.quota-legend .seg { width: 10px; height: 10px; border-radius: 3px; }
.calls-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 18px; }
.calls-totals div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.calls-totals dt { font-size: 0.8rem; color: var(--ink-soft); }
.calls-totals dd { margin: 2px 0 0; font-size: 0.92rem; }
.calls-totals strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.calls-group { margin: 0 0 10px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.calls-empty { padding: 16px 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); }
.calls-empty p { margin: 0; }
.calls-empty .muted { font-size: 0.9rem; }
.book-call { margin-top: 14px; }
.book-call summary { list-style: none; display: inline-flex; }
.book-call summary::-webkit-details-marker { display: none; }
.book-call[open] summary { margin-bottom: 14px; }
.calls-note { display: flex; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--amber-tint); color: var(--amber); font-size: 0.9rem; }
.calls-note svg { flex: none; margin-top: 2px; }
.calls-earlier { margin-top: 20px; padding-top: 6px; border-top: 1px solid var(--line); }
.calls-earlier > summary { display: flex; align-items: center; min-height: 44px; margin: 0; cursor: pointer; }
.calls-earlier-group { margin-top: 6px; }
.calls-earlier-head { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; font-size: 0.9rem; }
.calls-earlier .slot { border-left-color: var(--line-strong); }
.hand-back summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--rose); font-size: 0.9rem; }
.hand-back[open] summary { margin-bottom: 10px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.timeline li { position: relative; font-size: 0.92rem; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand-soft); }
.timeline time { display: block; color: var(--ink-faint); font-size: 0.8rem; }
.agenda-day { margin-bottom: 22px; }
.agenda-day h2 { font-size: 1.05rem; margin: 0 0 10px; display: flex; gap: 10px; align-items: baseline; }
.slot { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand-soft); border-radius: var(--radius-sm); margin-bottom: 8px; }
.slot time { font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .slot { grid-template-columns: 1fr; } }

/* Public: landing, auth, intake */
.public { min-height: 100vh; display: flex; flex-direction: column; }
.public-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; max-width: 1180px; width: 100%; margin: 0 auto; }
.public-nav nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.public-nav nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; width: 100%; }
.hero { position: relative; padding: 48px 0 72px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; }
.hero::before { width: 520px; height: 520px; background: var(--brand-tint); left: -160px; top: -120px; }
.hero::after { width: 460px; height: 460px; background: var(--accent-tint); right: -120px; top: 80px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 72px 0 110px; } }
.hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); font-weight: 520; letter-spacing: -0.03em; line-height: 1.02; }
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 480; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin: 18px 0 28px; }
.hero .actions { gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 0.88rem; color: var(--ink-soft); }
.trust span { display: inline-flex; gap: 7px; align-items: center; }
.trust svg { width: 16px; height: 16px; color: var(--brand); }
.mock { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; background: var(--surface); }
.mock-row b { display: block; font-size: 0.92rem; }
.mock-row small { color: var(--ink-faint); }
.mock-float { position: absolute; right: -14px; bottom: -22px; background: var(--brand); color: var(--on-brand); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 0.86rem; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.mock-float svg { width: 18px; height: 18px; }
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2, .spotlight h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin: 0 0 10px; }
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 16px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature:nth-child(2) .icon { background: var(--accent-tint); color: var(--accent); }
.feature:nth-child(3) .icon { background: var(--indigo-tint); color: var(--indigo); }
.feature:nth-child(4) .icon { background: color-mix(in srgb, var(--gold) 25%, transparent); color: var(--amber); }
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 26px 26px 26px 74px; border-radius: 18px; background: var(--surface-2); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 600; }
.pricing { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 99px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.plan .price small { font-family: var(--font-body); font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 0.93rem; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 2px; }
.plan form, .plan .btn { margin-top: auto; }
.plan .billed { margin: 8px 0 0; }
.pricing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0 24px; margin-bottom: 36px; }
.pricing-head .section-head { margin-bottom: 0; }
.pricing-head .interval-toggle { margin-top: 20px; }
.save-tag { padding: 2px 8px; border-radius: 99px; background: var(--accent-tint); color: var(--accent); font-size: 0.74rem; font-weight: 700; }
/* Monthly and yearly rates side by side (monthly_rate); the interval toggle shows one. Landing page and billing configurator. */
#pricing .for-year, .configurator .for-year { display: none; }
#pricing:has(input[name=pricing_interval][value=year]:checked) .for-year,
.configurator:has(input[name=interval][value=year]:checked) .for-year { display: revert; }
#pricing:has(input[name=pricing_interval][value=year]:checked) .for-month,
.configurator:has(input[name=interval][value=year]:checked) .for-month { display: none; }
.compare-title { margin: 56px 0 16px; font-size: 1.35rem; }
.compare { table-layout: fixed; min-width: 600px; }
.compare th:first-child { width: 31%; position: sticky; left: 0; z-index: 1; background: var(--surface); }
.compare thead th:first-child { background: var(--surface-2); }
.compare td { white-space: nowrap; }
@media (max-width: 640px) { .compare th, .compare td { padding: 11px 10px; } .compare th:first-child { width: 150px; white-space: normal; box-shadow: 1px 0 0 var(--line); } }
.compare th[scope=col] { font-size: 0.86rem; color: var(--ink); text-transform: none; letter-spacing: 0; text-align: center; }
.compare tbody th { text-transform: none; letter-spacing: 0; font-size: 0.94rem; color: var(--ink); font-weight: 560; background: none; border-bottom: 1px solid var(--line); }
.compare td { text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.compare td b { color: var(--ink); font-size: 1.05rem; }
.compare tr:last-child th { border-bottom: 0; }
.compare .row-icon { width: 18px; height: 18px; color: var(--brand); vertical-align: -3px; margin-right: 10px; }
.compare .yes { width: 18px; height: 18px; color: var(--brand); vertical-align: middle; }
.compare-notes { margin-top: 16px; text-align: center; }
.compare-notes p { margin: 0 0 6px; }
.cta-band { border-radius: 26px; padding: 48px 32px; background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--brand-soft) 60%, transparent), transparent 55%), linear-gradient(135deg, var(--brand-strong), var(--brand)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin-top: 0; }
.cta-band p { color: rgb(255 255 255 / 85%); }
.cta-band .btn { background: #fff; color: #1f4339; }
.footer { margin-top: auto; border-top: 1px solid var(--line); padding: 26px 20px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; color: var(--ink-faint); font-size: 0.86rem; padding: 0; }

.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth-art { display: none; position: relative; overflow: hidden; padding: 48px; color: #fff; background: linear-gradient(160deg, #1f4339 0%, #2c5a4d 55%, #3f7f6e 100%); }
@media (min-width: 960px) { .auth-art { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-art .brand { color: #fff; }
.auth-art blockquote { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.25; margin: 0; max-width: 16em; font-weight: 450; }
.auth-art .orb { position: absolute; border-radius: 50%; border: 1px solid rgb(255 255 255 / 18%); }
.auth-art .orb.one { width: 420px; height: 420px; right: -140px; top: -120px; }
.auth-art .orb.two { width: 260px; height: 260px; right: 60px; bottom: -90px; background: rgb(217 115 79 / 22%); border: 0; filter: blur(2px); }
.auth-panel { display: flex; flex-direction: column; padding: 24px 20px; }
.auth-panel .top { display: flex; justify-content: space-between; align-items: center; }
.auth-form { width: 100%; max-width: 420px; margin: auto; padding: 32px 0; }
.auth-form h1 { font-size: 2rem; }
.auth-links { display: grid; gap: 6px; margin-top: 18px; font-size: 0.9rem; }

/* White text sits on the hero, so its shades come from the --hero tokens, which do not flip in dark mode; an organization's accent colour redefines them inline on <body>. */
.intake-hero { position: relative; overflow: hidden; padding: 56px 20px 120px; text-align: center; color: #fff; background: radial-gradient(circle at 80% 0%, rgb(255 255 255 / 14%), transparent 45%), linear-gradient(150deg, var(--hero-deep), var(--hero) 60%, var(--hero-light)); }
.intake-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.intake-hero .eyebrow { color: rgb(255 255 255 / 78%); }
.intake-logo { max-width: 160px; max-height: 72px; width: auto; height: auto; object-fit: contain; background: #fff; padding: 6px 10px; border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 18px; }
/* Public form inputs with a leading icon; the phone one also has the prefix menu (phone_prefix_controller). */
.input-with-icon { position: relative; }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); display: flex; color: var(--ink-faint); pointer-events: none; }
.input-icon svg { width: 18px; height: 18px; }
.input-with-icon input { padding-left: 40px; }
.phone-input { position: relative; display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.phone-input:focus-within { border-color: var(--brand-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.phone-input input[type=tel], .phone-input select { border: 0; box-shadow: none; background: transparent; }
.phone-input input[type=tel] { flex: 1; min-width: 0; padding-left: 10px; }
.phone-prefix { position: relative; display: flex; align-items: center; flex: none; margin-left: 40px; border-right: 1px solid var(--line); }
.phone-prefix-display { display: none; padding: 0 26px 0 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone-prefix::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid var(--ink-faint); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.phone-prefix select { width: auto; max-width: 150px; padding-right: 26px; appearance: none; cursor: pointer; }
.phone-input.enhanced .phone-prefix-display { display: block; }
.phone-input.enhanced .phone-prefix select { position: absolute; inset: 0; width: 100%; max-width: none; opacity: 0; }
.phone-input.enhanced .phone-prefix:focus-within .phone-prefix-display { color: var(--brand-strong); }

/* Confirmation step of the public form: inline without JavaScript, a popup with it (confirm_dialog_controller). */
.confirmations { display: grid; gap: 14px; }
.confirmations-admin { margin-top: 32px; }
.confirmations-admin .confirmation-text { white-space: pre-line; }
.confirmation-switch { margin-bottom: 16px; }
.confirmation-switch .actions { justify-content: flex-end; }
.sortable-row[draggable="true"] { cursor: grab; }
.sortable-row.dragging { opacity: .45; background: var(--brand-tint); }
.drag-handle { width: 1%; color: var(--ink-faint); font-size: 1.1rem; user-select: none; }
.confirm-group { background: var(--brand-tint); border-radius: var(--radius-sm); padding: 4px 18px; }
.confirm-group h3 { font-size: 1.05rem; margin: 14px 0 4px; }
.confirm-item { padding: 10px 0; font-size: 0.95rem; }
.confirm-item + .confirm-item { border-top: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); }
.confirm-item p { margin: 0 0 8px; }
.confirm-item .check { justify-content: flex-end; font-weight: 600; color: var(--brand-strong); }
.confirm-dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 0; border-radius: var(--radius); padding: 28px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.confirm-dialog::backdrop { background: rgb(15 20 24 / 55%); }
.confirm-dialog .section-title { border-top: 0; padding-top: 0; margin-top: 0; }
.confirm-dialog-narrow { width: min(460px, calc(100% - 32px)); }
.confirm-dialog-narrow h2 { margin: 0 0 8px; font-size: 1.15rem; }
.confirm-dialog-actions { justify-content: flex-end; margin-top: 20px; }
@media (max-width: 640px) { .confirm-dialog { padding: 20px 16px; } }
.intake-hero p { color: rgb(255 255 255 / 82%); max-width: 34em; margin: 0 auto; }
.intake-hero .locale-switch { position: absolute; right: 16px; top: 16px; }
.intake-hero .locale-switch { border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 12%); }
.intake-hero .locale-switch button[aria-pressed=true] { box-shadow: 0 0 0 2px #fff; }
.intake-card { max-width: 640px; margin: -84px auto 48px; padding: 32px; position: relative; box-shadow: var(--shadow-lg); }
@media (max-width: 640px) { .intake-card { margin: -84px 12px 32px; padding: 22px; } }
.section-title { font-family: var(--font-display); font-size: 1.15rem; margin: 10px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.thanks { text-align: center; }
.thanks .seal { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green); margin: 0 auto 16px; }
.thanks .seal svg { width: 34px; height: 34px; }

/* 6px gap: the current flag's 2px ring sits in it, leaving 4px clear between flags. */
.locale-switch { display: inline-flex; gap: 6px; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.locale-switch form { display: contents; }
.locale-switch button { display: flex; padding: 0; background: transparent; box-shadow: none; border: 0; border-radius: 4px; opacity: .5; transition: opacity .15s, box-shadow .15s; }
.locale-switch button:hover { background: transparent; opacity: .85; transform: none; box-shadow: none; }
.locale-switch button[aria-pressed=true] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.locale-switch .flag { display: block; width: 24px; height: 16px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%); }

.narrow { max-width: 560px; }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.workspace { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .mock { transform: none; } }
.nav .button_to { display: block; }
.nav button.link { justify-content: flex-start; }
.sidebar-foot .locale-switch { justify-self: start; }

/* Privacy mode (privacy_controller): names, emails and phones blurred, e.g. while sharing the screen. No hover reveal. */
.privacy .pii { filter: blur(5px); user-select: none; }
.privacy input.pii { filter: none; color: transparent; text-shadow: 0 0 8px var(--ink); }
.sidebar-tools, .auth-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sidebar-tools { justify-self: start; }
.privacy-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink-soft); box-shadow: none; font-size: .85rem; font-weight: 550;
}
.privacy-toggle:hover { background: var(--surface-2); color: var(--ink); transform: none; box-shadow: none; }
.privacy-toggle[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.privacy-toggle .when-hidden, .privacy-toggle[aria-pressed=true] .when-shown { display: none; }
.privacy-toggle[aria-pressed=true] .when-hidden { display: block; }
.auth-logo { width: 240px; height: auto; padding: 18px 22px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); position: relative; }
.sort-link { color: inherit; text-decoration: none; }
.sort-link:hover { color: var(--ink); text-decoration: underline; }
th[aria-sort] .sort-link { color: var(--ink); }
.pill-quota-full { background: var(--amber-tint); color: var(--amber); }
td.calls { white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.icon-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-picker .choice span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; }
.icon-picker svg { width: 20px; height: 20px; }
.q-icon { vertical-align: -2px; margin-right: 6px; color: var(--brand); }
.detail-line .listed { display: inline-flex; align-items: center; gap: 2px; }
.detail-line .q-icon { margin-right: 3px; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.05rem; }
.gender-sign { font-weight: 700; color: var(--brand); }

/* Option colours: a base hue per tone, tinted for chips and darkened or lightened for text. */
.tone-gray { --tone: #6b7280; } .tone-red { --tone: #dc2626; } .tone-orange { --tone: #ea580c; } .tone-amber { --tone: #d97706; }
.tone-green { --tone: #16a34a; } .tone-teal { --tone: #0d9488; } .tone-blue { --tone: #2563eb; } .tone-indigo { --tone: #4f46e5; }
.tone-purple { --tone: #9333ea; } .tone-pink { --tone: #db2777; }
.tone { display: inline-block; padding: 1px 8px; border-radius: 999px; font-weight: 600; font-size: 0.86em;
        background: color-mix(in srgb, var(--tone) 14%, transparent); color: color-mix(in srgb, var(--tone) 78%, black); }
@media (prefers-color-scheme: dark) { .tone { background: color-mix(in srgb, var(--tone) 24%, transparent); color: color-mix(in srgb, var(--tone) 55%, white); } }
.gender-sign.tone { padding: 0 6px; }
.color-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.color-option { min-width: 140px; font-weight: 550; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch > span { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: var(--tone); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.swatch.none > span { width: auto; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--surface); font-size: 0.78rem; line-height: 22px; color: var(--ink-soft); }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.color-row[hidden] { display: none; }
.avatar-photo { object-fit: cover; padding: 0; background: var(--surface-2); }
.bio { display: inline-block; max-width: 46ch; font-size: 0.88rem; white-space: pre-line; }

/* Collapsible sidebar (desktop): an icon strip that keeps every name for tooltips and screen readers. */
.collapse-toggle { display: none; width: 34px; height: 34px; padding: 0; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); box-shadow: none; }
.collapse-toggle:hover { background: var(--surface-2); color: var(--ink); transform: none; box-shadow: none; }
.collapse-toggle svg { transition: transform .2s ease; }
@media (min-width: 960px) {
  .collapse-toggle { display: grid; place-items: center; }
  .shell { transition: grid-template-columns .2s ease; }
  .shell.collapsed { grid-template-columns: 76px minmax(0, 1fr); }
  .shell.collapsed .sidebar-inner { padding: 22px 10px; }
  .shell.collapsed .nav-toggle { flex-direction: column; gap: 12px; }
  .shell.collapsed .collapse-toggle svg { transform: scaleX(-1); }
  /* Collapsed: a round button floating on the border between the icon strip and the content, mid-height. */
  .shell.collapsed .collapse-toggle {
    position: fixed; left: 76px; top: var(--toggle-top, 28px); transform: translate(-50%, -50%); z-index: 20;
    background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow); /* same rounded square as expanded */
  }
  .shell.collapsed .collapse-toggle:hover { background: var(--surface-2); transform: translate(-50%, -50%); }
  .shell.collapsed .brand-text, .shell.collapsed .nav-label,
  .shell.collapsed .me > div, .shell.collapsed .sidebar-foot .locale-switch { display: none; }
  .shell.collapsed .nav a > span, .shell.collapsed .nav button.link > span, .shell.collapsed .privacy-toggle-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .shell.collapsed .nav a, .shell.collapsed .nav button.link { justify-content: center; padding: 10px; }
  .shell.collapsed .me { justify-content: center; }
}


/* Last seen, for owners and managers: a dot (green while active, amber when the seat looks unused) and the date below. */
.last-seen { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; min-width: 150px; }
.last-seen-label { display: inline-flex; align-items: center; gap: 8px; }
.last-seen-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink-faint); }
.last-seen .faint { padding-left: 16px; }
.member-last-seen { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.last-seen-now .last-seen-label { color: var(--green); font-weight: 600; }
.last-seen-now .last-seen-label::before { background: var(--green); }
.last-seen-away .last-seen-label, .last-seen-pending .last-seen-label { color: var(--amber); font-weight: 600; }
.last-seen-away .last-seen-label::before, .last-seen-pending .last-seen-label::before { background: var(--amber); }
.last-seen-unseen .last-seen-label { color: var(--ink-soft); }
/* A note that belongs to the page (unlike .flash, which reports what just happened). */
.banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; border: 1px solid var(--line); background: var(--slate-tint); }
.banner-warning { background: var(--amber-tint); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.banner-warning a { color: inherit; font-weight: 600; margin-left: auto; }
/* Disabled members stay in their group and in the statistics, greyed. */
.member-row.disabled, .stats-table tr.disabled { color: var(--ink-soft); background: var(--slate-tint); }
.member-row.disabled .avatar, .stats-table tr.disabled .avatar { filter: grayscale(1); opacity: .7; }

/* Organization logo: beside the name when expanded, alone under the Giano Care mark when collapsed. */
.tenant-name { display: flex; align-items: center; gap: 8px; }
.tenant-logo { max-width: 44px; max-height: 28px; width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; box-shadow: var(--shadow-sm); }
.settings-logo .tenant-logo, .field .tenant-logo { max-width: 120px; max-height: 64px; }
@media (min-width: 960px) {
  /* Collapsed: the copy right under the Giano Care mark shows; the one beside the name hides. */
  .shell.collapsed .tenant-name { display: none; }
  .shell.collapsed .collapsed-only { display: block; max-width: 44px; max-height: 44px; }
}
.collapsed-only { display: none; }

/* Workspace switcher: the organization name opens the user's other workspaces right under it. */
.workspace-switch { display: block; margin-left: 30px; }
.workspace-switch summary { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 10px; cursor: pointer; list-style: none; color: var(--ink-soft); }
.workspace-switch summary::-webkit-details-marker { display: none; }
.workspace-switch summary:hover, .workspace-switch[open] summary { background: var(--surface-2); color: var(--ink); }
.workspace-switch summary:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.workspace-switch .tenant-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switch summary svg { flex: none; color: var(--ink-faint); }
.workspace-list { list-style: none; margin: 4px 0 0; padding: 4px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.workspace-list button.link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 8px; color: var(--ink); text-align: left; text-decoration: none; font-size: 0.88rem; font-weight: 550; }
.workspace-list button.link:hover { background: var(--surface-2); text-decoration: none; }
.workspace-list .avatar { width: 28px; height: 28px; font-size: 0.72rem; }
.workspace-list small { display: block; color: var(--ink-faint); font-weight: 500; font-size: 0.78rem; }
.workspace-mini.collapsed-only { color: var(--ink-soft); }
@media (min-width: 960px) {
  .shell.collapsed .workspace-mini.collapsed-only { display: grid; place-items: center; }
}

/* Picture drop area: drop a file, or use the centered button (the real, keyboard-reachable file input). */
.field-label { font-weight: 600; font-size: 0.88rem; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; text-align: center;
            border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); transition: background .15s, border-color .15s; }
.dropzone.dragover { border-color: var(--brand); background: var(--brand-tint); }
.dropzone p { margin: 0; }
.dropzone-preview { min-height: 48px; display: grid; place-items: center; color: var(--ink-faint); }
.dropzone-preview .tenant-logo { max-width: 160px; max-height: 80px; }
.dropzone-hint { font-weight: 600; }
.dropzone-or { color: var(--ink-faint); font-size: 0.85rem; }
.dropzone-file { color: var(--ink-soft); font-size: 0.85rem; min-height: 1.2em; }
.dropzone input[type=file]:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* Preferred days in lists: two-letter badges in small circles. */
.day-chip { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 2px; padding: 0; border-radius: 50%;
            border: 1px solid var(--line-strong); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-soft); }
.day-chip.tone { border-color: color-mix(in srgb, var(--tone) 45%, transparent); }
.dropzone-preview .avatar { width: 64px; height: 64px; font-size: 1.2rem; }
.dropzone-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.stats-table td:not(:first-child), .stats-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

/* Statistics */
.nav-parent { display: flex; align-items: center; gap: 11px; padding: 9px 12px; color: var(--ink-soft); font-weight: 550; font-size: 0.94rem; }
.nav-parent svg { width: 18px; height: 18px; }
.nav-group > a { padding-left: 40px; font-size: 0.9rem; }
.nav-group > a svg { width: 16px; height: 16px; }
@media (min-width: 960px) {
  .shell.collapsed .nav-parent { display: none; }
  .shell.collapsed .nav-group > a { padding-left: 10px; }
}
.stats-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); margin-bottom: 16px; }
.stats-grid .card + .card { margin-top: 0; }
.stats-grid h2 { font-size: 1.05rem; margin: 0 0 12px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: minmax(90px, 32%) 1fr 36px; gap: 10px; align-items: center; font-size: 0.9rem; }
.bars li:has(.bar-share) { grid-template-columns: minmax(90px, 32%) 1fr 36px 42px; }
.bar-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 99px; background: var(--brand-soft); padding: 0; }
.bar.tone { background: var(--tone); }
/* Bars grow from the left on load, one row shortly after another. */
.bar { transform-origin: left; animation: bar-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 40ms) both; }
@keyframes bar-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .bar { animation: none; } }
.bar-count { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-share { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--tone); }
.row-link { cursor: pointer; }
.row-link:hover td { background: var(--surface-2); }
.stats-table.member-activity td, .stats-table.member-activity th { text-align: left; vertical-align: top; }
.stats-table.member-activity td:nth-child(3), .stats-table.member-activity th:nth-child(3) { text-align: right; }
.call-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-variant-numeric: tabular-nums; }
.call-dates li { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font-size: 0.84rem; white-space: nowrap; }
.call-dates li.no-show { background: var(--rose-tint); color: var(--rose); }
.page-head h1 .who { gap: 14px; }
.member-activity td:nth-child(-n+4), .member-activity td:nth-child(6) { white-space: nowrap; }
.member-activity td:nth-child(5) { min-width: 200px; }
.member-activity td:nth-child(n+7) { min-width: 220px; }

/* Statistics heading: one title, a tab per page, the download menu saying which period it covers. */
.stats-sections { display: flex; gap: 4px; margin-top: 14px; border-bottom: 1px solid var(--line); }
.stats-sections a { padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.stats-sections a:hover { color: var(--ink); }
.stats-sections a[aria-current=page] { border-color: var(--brand); color: var(--ink); }
.stats-download { position: relative; }
.stats-download summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.stats-download summary::-webkit-details-marker { display: none; }
.stats-download summary svg { width: 16px; height: 16px; }
.stats-download[open] summary { background: var(--brand-tint); border-color: var(--brand-soft); }
.stats-download-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(300px, calc(100vw - 32px)); padding: 6px;
                       background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.stats-download-menu p { margin: 0 0 4px; padding: 10px 12px 9px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.stats-download-menu p span { color: var(--ink-soft); font-size: 0.82rem; }
.stats-download-menu a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
                         color: var(--ink); font-weight: 550; text-decoration: none; }
.stats-download-menu a:hover { background: var(--surface-2); }

/* Filter bar: periods, previous periods, ‹ dates ›, toggles; it wraps onto more lines on a phone. */
.stats-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px; margin-bottom: 20px; background: var(--surface);
             border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.segmented { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 3px; border-radius: 11px; background: var(--surface-2); }
.segmented a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 9px; color: var(--ink-soft); font-weight: 600;
               font-size: 0.88rem; text-decoration: none; white-space: nowrap; }
.segmented a:hover { color: var(--ink); }
.segmented a[aria-current=page] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented-label { padding: 0 6px 0 9px; color: var(--ink-soft); font-size: 0.8rem; }
.stats-step { display: flex; align-items: center; gap: 4px; }
.stats-arrow { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); }
a.stats-arrow:hover { background: var(--surface-2); }
span.stats-arrow { color: var(--line-strong); }
.stats-step svg { width: 16px; height: 16px; }
.stats-range { padding: 0 8px; white-space: nowrap; }
.stats-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; text-decoration: none; background: var(--surface); }
.filter-toggle:hover { color: var(--ink); }
.filter-toggle[aria-pressed=true] { border-color: var(--brand); color: var(--brand); background: var(--brand-softer, var(--surface-2)); }
.filter-box { width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 4px; display: inline-grid; place-items: center; }
.filter-box svg { width: 12px; height: 12px; }

/* Headline figures: the label above the value (it follows it in the markup), then how it moved or a meter. */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.kpi { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
       border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.kpi-label { order: -1; color: var(--ink-soft); font-size: 0.88rem; font-weight: 550; }
.kpi-value { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1; }
.kpi-delta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--ink-soft); }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: var(--radius-pill); font-weight: 650; background: var(--slate-tint); color: var(--ink); }
.delta svg { width: 12px; height: 12px; stroke-width: 2.4; }
.delta-good { background: var(--green-tint); color: var(--green); }
.delta-bad { background: var(--rose-tint); color: var(--rose); }
.kpi-meter { position: relative; height: 8px; border-radius: 99px; background: var(--surface-2); }
.kpi-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.kpi-note { font-size: 0.82rem; color: var(--ink-soft); }

/* Statistics cards. */
:is(.stats-row, .stats-grid, .stats-trend, .stats-status, .stats-table-card) h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 0 0 4px; }
:is(.stats-row, .stats-grid) .card > .muted, :is(.stats-trend, .stats-status, .stats-table-card) > .muted { margin: 0 0 16px; font-size: 0.86rem; }
.stats-trend, .stats-status, .stats-table-card, .card + .stats-trend, .card + .stats-status, .card + .stats-table-card { margin: 0 0 16px; }
.stats-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.stats-row > .card { margin: 0; min-width: 0; }
.stats-flow { flex: 2 1 460px; }
.stats-managers { flex: 1 1 300px; }
.stats-flow .bar-track { height: 24px; border-radius: 7px; }
.stats-flow .bar { border-radius: 7px; }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table td { padding: 6px 0; vertical-align: middle; }
.mini-table td.mini-bar { width: 38%; padding: 0 12px; }
.mini-table td.num { width: 3ch; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-table tr.disabled { color: var(--ink-soft); }
.stats-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 12px 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.key-swatch { width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--brand); }
.key-swatch.tone { background: var(--tone); }
.key-swatch.low { background: var(--amber); }
.key-swatch.dashed { width: 16px; height: 0; margin-left: 10px; border-top: 2px dashed var(--accent); border-radius: 0; background: none; }

/* Professionals table: bars beside acceptance and calls done, sortable headers; a card per row on a phone. */
.table-scroll { overflow-x: auto; }
.stats-table .sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.stats-table th[aria-sort] { color: var(--ink); }
.stats-table .sort svg { width: 12px; height: 12px; }
.stats-table .bar-col { min-width: 150px; }
.bar-cell .bar-track { display: inline-block; vertical-align: middle; width: calc(100% - 48px); max-width: 140px; height: 8px; margin-right: 10px; }
.bar-cell .bar { background: var(--brand); }
.bar-cell.low .bar { background: var(--amber); }
.bar-cell.low > span:last-child { color: var(--amber); font-weight: 650; }
.stats-table tfoot th, .stats-table tfoot td { border-top: 2px solid var(--line-strong); font-weight: 650; text-align: left; }
.stats-table tfoot td { text-align: right; }
@media (max-width: 640px) {
  .stats-table.responsive thead { display: none; }
  .stats-table.responsive, .stats-table.responsive tbody, .stats-table.responsive tfoot { display: block; }
  .stats-table.responsive tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
  .stats-table.responsive :is(td, th) { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 0; border: 0; text-align: left; }
  .stats-table.responsive :is(td:first-child, th[scope=row]) { grid-column: 1 / -1; padding-bottom: 6px; }
  .stats-table.responsive td[data-label]::before { content: attr(data-label); color: var(--ink-soft); font-size: 0.8rem; font-weight: 500; }
  .stats-table.responsive .bar-track { display: none; }
}

/* Requests over time: a column per day, week, month or year, the period before's average as a dashed line. */
.columns-chart { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px 8px; }
.columns-axis { height: 180px; margin-top: 20px; display: flex; flex-direction: column; justify-content: space-between; font-size: 0.74rem; color: var(--ink-soft); text-align: right; line-height: 1; }
.columns-plot { position: relative; height: 180px; margin-top: 20px; border-bottom: 1px solid var(--line-strong);
                background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 50%; }
.columns { list-style: none; margin: 0; padding: 0; height: 100%; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; }
.columns li { position: relative; height: 100%; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.column { display: block; width: 100%; max-width: 64px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--brand);
          transform-origin: bottom; animation: column-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 25ms) both; }
.columns li:hover .column { background: var(--brand-strong); }
.column-count { margin-bottom: 4px; font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes column-grow { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .column { animation: none; } }
.columns-average { position: absolute; left: 0; right: 0; z-index: 1; border-top: 2px dashed var(--accent); pointer-events: none; }
.columns-labels { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; font-size: 0.74rem; color: var(--ink-soft); }
.columns-labels span { white-space: nowrap; text-align: center; overflow: visible; display: flex; justify-content: center; }

/* Status today: one stacked bar, then each status with its count and share. */
.status-stack { display: flex; gap: 2px; height: 32px; margin-bottom: 14px; border-radius: 9px; overflow: hidden; }
.status-stack > span { min-width: 6px; background: var(--tone); }
.stack-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stack-legend li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.9rem; }
.stack-legend li > span:nth-child(2) { flex: 1; }
.stack-legend strong { font-variant-numeric: tabular-nums; }
.stack-legend .bar-share { width: 36px; }

/* Inbox: badges, toasts, notifications */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent, #c2410c); color: #fff;
  font-size: 0.72rem; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
@media (min-width: 960px) {
  .shell.collapsed .nav a { position: relative; }
  .shell.collapsed .nav-badge { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; font-size: 0.62rem; padding: 0 4px; }
}
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); color: var(--ink); text-decoration: none; animation: toast-in 0.25s ease-out; }
.toast span { color: var(--ink-soft); font-size: 0.9rem; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
/* Notifications: a tinted icon tile and a label per kind (AlertsHelper::ALERT_KINDS) */
.tone-amber { --tone: var(--amber); --tone-tint: var(--amber-tint); }
.tone-indigo { --tone: var(--indigo); --tone-tint: var(--indigo-tint); }
.tone-green { --tone: var(--green); --tone-tint: var(--green-tint); }
.tone-rose { --tone: var(--rose); --tone-tint: var(--rose-tint); }
.tone-slate { --tone: var(--ink-soft); --tone-tint: var(--slate-tint); }
.tone-clay { --tone: var(--clay); --tone-tint: var(--accent-tint); }
.alert-read-all { display: inline-flex; align-items: center; gap: 8px; }
.alert-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.alert-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.alert-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.alert-chip[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--radius-pill); display: inline-grid; place-items: center;
  font-size: 0.75rem; background: var(--surface-2); color: var(--ink-soft); }
.alert-chip[aria-current] .chip-count { background: rgb(255 255 255 / 18%); color: inherit; }
.alert-day { display: grid; gap: 10px; margin-bottom: 24px; }
.alert-day-label { margin: 0; padding: 0 4px; font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.alert-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.alert-item + .alert-item { border-top: 1px solid var(--line); }
.alert-item a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 20px; color: var(--ink); text-decoration: none; }
.alert-item a:hover { background: var(--surface-2); }
.alert-item.is-unread a { background: color-mix(in srgb, var(--surface) 92%, var(--accent-tint)); }
.alert-item.is-unread a:hover { background: var(--surface-2); }
.alert-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-tint); color: var(--tone); }
.alert-icon svg { width: 20px; height: 20px; }
.alert-body { display: grid; gap: 4px; min-width: 0; }
.alert-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.alert-type { font-size: 0.75rem; font-weight: 600; color: var(--tone); }
.alert-action { font-size: 0.75rem; font-weight: 600; color: var(--amber); background: var(--amber-tint); border-radius: var(--radius-pill); padding: 2px 9px; }
.alert-title { line-height: 1.4; color: var(--ink-soft); }
.alert-title strong { font-weight: 650; color: var(--ink); }
.alert-item.is-unread .alert-title { color: var(--ink); font-weight: 600; }
.alert-detail { font-size: 0.85rem; color: var(--ink-soft); }
.alert-note { margin-top: 4px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.85rem; font-style: italic; color: var(--ink-soft); }
.alert-entries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.alert-entries span { font-size: 0.75rem; font-weight: 500; color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 10px; }
.alert-meta { display: flex; align-items: center; gap: 10px; padding-top: 2px; font-size: 0.75rem; color: var(--ink-faint); white-space: nowrap; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; }
.alert-item .alert-dot { width: 9px; height: 9px; }
.alert-item.is-unread .alert-dot { background: var(--accent); }
.alert-caught-up { display: grid; justify-items: center; gap: 10px; padding: 48px 24px; text-align: center; }
.alert-caught-up .alert-icon { width: 52px; height: 52px; border-radius: 16px; }
.alert-caught-up .alert-icon svg { width: 26px; height: 26px; }
.alert-caught-up h2, .alert-caught-up p { margin: 0; }
@media (max-width: 640px) {
  .alert-item a { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .alert-icon { width: 36px; height: 36px; border-radius: 11px; }
  .alert-icon svg { width: 18px; height: 18px; }
  .alert-read-all span { display: none; }
}
.changelog { list-style: none; margin: 0; padding: 0; }
.changelog-entry { padding: 18px; }
.changelog-entry + .changelog-entry { border-top: 1px solid var(--line); }
.changelog-entry h2 { margin: 4px 0 6px; font-size: 1.05rem; }
.changelog-entry p { margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* Messages */
.head-actions { display: flex; gap: 10px; align-items: center; }
.head-actions .btn svg, .page-head .btn svg { width: 16px; height: 16px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }
/* The list beside the open conversation; on a phone one at a time, the open pane when there is one. */
.content:has(.messenger) { padding-bottom: 24px; }
.messenger { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden; height: calc(100dvh - 120px); min-height: 480px; }
.messenger-list, .messenger-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.messenger-pane { background: var(--paper); }
.messenger:not(.is-open) .messenger-pane, .messenger.is-open .messenger-list { display: none; }
@media (min-width: 900px) {
  .messenger { grid-template-columns: 340px minmax(0, 1fr); }
  .messenger-list { border-right: 1px solid var(--line); }
  .messenger:not(.is-open) .messenger-pane, .messenger.is-open .messenger-list { display: flex; }
  .thread-back { display: none !important; }
}
@media (min-width: 960px) { .messenger { height: calc(100dvh - 64px); } }
.messenger-list-head { display: grid; gap: 12px; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.messenger-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.messenger-title h1 { margin: 0; font-size: 1.6rem; display: flex; align-items: center; gap: 6px; }
.messenger-title .btn svg { width: 16px; height: 16px; }
.messenger-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-soft); }
.messenger-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.messenger-search svg { width: 16px; height: 16px; flex: none; }
.messenger-search input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; box-shadow: none; }
.messenger-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.messenger-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.84rem; text-decoration: none; white-space: nowrap; }
.messenger-filter:hover { background: var(--surface-2); color: var(--ink); }
.messenger-filter[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.messenger-filter .chip-count { min-width: 20px; height: 20px; padding: 0 6px; font-size: 0.7rem; background: var(--accent-tint); color: var(--clay); }
.messenger-empty { margin: 0; padding: 32px 20px; text-align: center; }
.conversation-list { list-style: none; margin: 0; padding: 6px 8px 12px; overflow-y: auto; flex: 1; }
.conversation-list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.conversation-list a:hover { background: var(--surface-2); color: var(--ink); }
.conversation-list .is-current a { background: var(--brand-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent); }
.conversation-list .avatar { width: 40px; height: 40px; }
.conversation-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-tint); color: var(--indigo); }
.conversation-icon.is-request { border-radius: 12px; background: var(--accent-tint); color: var(--clay); }
.conversation-icon svg { width: 18px; height: 18px; }
.conversation-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.conversation-top, .conversation-preview, .conversation-request { display: flex; align-items: center; gap: 8px; min-width: 0; }
.conversation-top strong { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-top time { flex: none; font-size: 0.75rem; color: var(--ink-soft); }
.conversation-request { gap: 6px; font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; }
.conversation-request .pill { padding: 1px 8px; font-size: 0.72rem; }
.conversation-preview > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.85rem; color: var(--ink-soft); }
.conversation-list .alert-dot { flex: none; width: 9px; height: 9px; background: var(--accent); }
.is-unread .conversation-top strong { font-weight: 750; }
.is-unread .conversation-top time { color: var(--clay); font-weight: 600; }
.is-unread .conversation-preview > span:first-child { color: var(--ink); font-weight: 500; }
.messenger-blank { margin: auto; display: grid; justify-items: center; gap: 10px; padding: 48px 24px; text-align: center; max-width: 380px; }
.messenger-blank h2, .messenger-blank p { margin: 0; }
.messenger-blank .btn svg { width: 16px; height: 16px; }
/* An open conversation: who and what it is about, then the messages and the composer. */
.thread-head { display: grid; gap: 12px; padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.thread-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.thread-back { width: 40px; height: 40px; flex: none; margin-left: -8px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); }
.thread-back:hover { background: var(--surface-2); color: var(--ink); }
.thread-back svg { width: 20px; height: 20px; transform: scaleX(-1); }
.thread-heading { flex: 1; min-width: 180px; }
.thread-heading h2 { margin: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.thread-heading p { margin: 2px 0 0; font-size: 0.85rem; }
.thread-heading .thread-kind { margin: 0; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.thread-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.thread-actions form { margin: 0; }
.thread-actions svg { width: 16px; height: 16px; }
.thread-actions .btn-icon { width: 38px; height: 38px; padding: 0; }
.thread-context { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.85rem; }
.thread-context > span:not(.pill) { display: inline-flex; align-items: center; gap: 6px; }
.thread-context svg { width: 15px; height: 15px; color: var(--ink-soft); }
.thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 8px max(20px, calc((100% - 760px) / 2)) 12px; }
.messages-empty { margin: auto; text-align: center; }
.message-day { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }
.message-day::before, .message-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.message-new { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 0.75rem; font-weight: 700; color: var(--clay); }
.message-new::before { content: ""; flex: 1; height: 1px; background: var(--accent); }
.message { display: flex; gap: 10px; align-items: flex-start; max-width: min(640px, 85%); margin-top: 14px; }
.message.is-continued { margin-top: 3px; }
.message.is-continued .avatar { visibility: hidden; height: 0; }
.message.is-continued header { display: none; }
.message-content { display: grid; gap: 3px; min-width: 0; }
.message-content header { display: flex; gap: 8px; align-items: baseline; font-size: 0.78rem; color: var(--ink-soft); }
.message-content header strong { color: var(--ink); font-weight: 600; }
.message-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 8px 13px; }
.message.is-continued .message-bubble { border-radius: 16px; }
.message-body p { margin: 0; overflow-wrap: anywhere; }
.message-body p + p { margin-top: 6px; }
.message.mine { align-self: flex-end; }
.message.mine > .avatar, .message.mine header strong { display: none; }
.message.mine .message-content { justify-items: end; }
.message.mine .message-bubble { background: var(--brand); border-color: var(--brand); color: var(--on-brand); border-radius: 16px 4px 16px 16px; }
.message.mine.is-continued .message-bubble { border-radius: 16px; }
.message.mine .message-bubble a { color: inherit; }
.thread-event { align-self: center; margin: 12px 0 0; text-align: center; }
.thread-event > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--slate-tint); color: var(--ink-soft); font-size: 0.78rem; }
.thread-event svg { width: 14px; height: 14px; flex: none; }
.message-seen { align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0; font-size: 0.75rem; color: var(--ink-soft); }
.message-seen svg { width: 14px; height: 14px; }
.composer { display: grid; gap: 6px; padding: 10px max(20px, calc((100% - 760px) / 2)) 16px; }
.composer-box { display: flex; align-items: flex-end; gap: 10px; padding: 6px 6px 6px 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); }
.composer-box:focus-within { border-color: var(--brand-soft); }
.composer textarea { flex: 1; min-height: 44px; max-height: 40vh; padding: 10px 0; border: 0; background: transparent; box-shadow: none; resize: none; field-sizing: content; }
.composer .btn { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 12px; }
.composer .btn svg { width: 18px; height: 18px; }
.composer .field-error { margin: 0; }
.composer-hint { margin: 0; font-size: 0.75rem; color: var(--ink-soft); }
@media (max-width: 640px) { .composer-hint { display: none; } }
/* A new message: who it goes to, picked by name or by role, then the text. */
.compose { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 4px; padding: 20px max(20px, calc((100% - 720px) / 2)); }
.recipients { position: relative; }
.recipient-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; margin-top: 6px; padding: 6px 10px; cursor: text;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.recipient-box:focus-within { border-color: var(--brand-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.recipient-chips { display: contents; list-style: none; }
.recipient-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 2px 0 3px; border-radius: var(--radius-pill); background: var(--brand-tint); font-weight: 600; font-size: 0.85rem; }
.recipient-chip .avatar { width: 26px; height: 26px; font-size: 0.66rem; }
.recipient-remove, .recipient-remove:hover { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); box-shadow: none; transform: none; }
.recipient-remove:hover { background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--ink); }
.recipient-remove svg { width: 14px; height: 14px; transform: rotate(45deg); }
.recipient-box input[type=text] { flex: 1; min-width: 140px; padding: 6px 0; border: 0; background: transparent; box-shadow: none; }
.recipient-options { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.recipient-options-label { margin: 0; padding: 8px 10px 4px; font-size: 0.75rem; font-weight: 650; color: var(--ink-soft); }
.recipient-option { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--ink-soft); }
.recipient-option[aria-selected=true] { background: var(--surface-2); }
.recipient-option strong { color: var(--ink); font-weight: 600; }
.recipient-option .conversation-icon { width: 32px; height: 32px; }
.recipient-none { margin: 0; padding: 10px; }
.recipient-notice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-strong); }
.recipient-notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.compose-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.compose-foot .btn svg { width: 16px; height: 16px; }

/* Billing configurator */
.configurator { display: grid; gap: 22px; }
.interval-toggle { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.interval-toggle label { cursor: pointer; }
.interval-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.interval-toggle span { display: inline-flex; gap: 6px; align-items: center; padding: 8px 18px; border-radius: var(--radius-pill); font-weight: 600; color: var(--ink-soft); }
.interval-toggle input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.interval-toggle input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.save { color: var(--brand); font-weight: 700; }
.seat-picker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.seat-picker .seat-number { width: 96px; flex: none; text-align: right; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; }
.seat-picker input[type=range] { width: 100%; accent-color: var(--brand); height: 28px; margin: 0; position: relative; z-index: 1; }
/* No square focus box around the slider; keyboard focus darkens the plan lanes' borders instead. */
.seat-picker input[type=range]:focus, .seat-picker input[type=range]:focus-visible { outline: none; box-shadow: none; }
.seat-track:has(input[type=range]:focus-visible) .seat-lane { border-color: color-mix(in srgb, var(--tone) 85%, transparent); }
.seat-picker .field-label { display: inline-flex; align-items: center; gap: 8px; }
.label-icon { width: 18px; height: 18px; color: var(--brand); }
/* Positions follow the range thumb's centre: half a thumb in from each end. */
.seat-track { --thumb: 16px; position: relative; padding: 50px 0 24px; }
/* A plan's free seats: a darker stretch at the start of its lane, captioned along the bottom. */
.seat-bonus { --tone: var(--brand); position: absolute; top: 1px; bottom: 1px; left: calc(var(--thumb) / 2 + var(--from) * (100% - var(--thumb)) + 1px); width: calc((var(--to) - var(--from)) * (100% - var(--thumb)) - 1px);
  background: color-mix(in srgb, var(--tone) 13%, transparent); border-radius: 9px 0 0 9px; border-right: 1px dashed color-mix(in srgb, var(--tone) 45%, transparent); container-type: inline-size; }
.seat-bonus-caption { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 3px;
  font-size: 0.7rem; font-weight: 700; color: var(--tone); white-space: nowrap; }
/* Too narrow to hold it (phones): the caption starts at the band and runs on into the lane. */
@container (max-width: 72px) { .seat-bonus-caption { right: auto; left: 5px; } }
.seat-bonus-caption svg { width: 12px; height: 12px; stroke-width: 2.2; }
.seat-lanes { position: absolute; inset: 26px 0 0; pointer-events: none; }
.seat-lane { --tone: var(--brand); position: absolute; top: 0; bottom: 0; left: calc(var(--thumb) / 2 + var(--from) * (100% - var(--thumb))); width: calc((var(--to) - var(--from)) * (100% - var(--thumb)) - 3px);
  background: color-mix(in srgb, var(--tone) 9%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 38%, transparent); border-radius: 10px; container-type: inline-size; overflow: hidden; }
.seat-lane:first-child { left: 0; width: calc(var(--thumb) / 2 + var(--to) * (100% - var(--thumb)) - 3px); }
.seat-lane:last-child { width: auto; right: 0; }
.seat-lane-starter, .seat-pin-starter { --tone: var(--indigo); }
.seat-lane-organization, .seat-pin-organization, .seat-bonus-organization { --tone: var(--accent); }
.seat-lane > span { position: absolute; top: 3px; left: 7px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; color: var(--tone); white-space: nowrap; }
.seat-lane-initial { display: none; }
/* The plan's drawing peeks out of the lane's bottom-right corner, cropped to its top-left part. */
.seat-lane { isolation: isolate; }
.seat-lane .plan-art { width: 84px; height: 84px; right: -18px; bottom: -24px; opacity: 0.32; }
@container (max-width: 64px) { .seat-lane-name { display: none; } .seat-lane-initial { display: inline; left: 50% !important; transform: translateX(-50%); } }
/* The pin and its dashed marker run down the whole lane, in the colour of the lane they fall in. */
.seat-pin { --tone: var(--brand); position: absolute; top: 0; bottom: 0; left: calc(var(--thumb) / 2 + var(--at) * (100% - var(--thumb))); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; color: var(--tone); line-height: 0; pointer-events: none; }
.seat-pin::after { content: ""; flex: 1; margin-top: -2px; border-left: 1.5px dashed var(--tone); }
.seat-track + .hint { margin-top: 8px; }
.seat-pin svg { width: 22px; height: 22px; flex: none; fill: color-mix(in srgb, var(--tone) 18%, transparent); }
/* Balloon beside the pin head, "end"-aligned: its bottom level with the pin's bottom, so it grows upwards,
   and its tail on the side facing the pin, pointing at the middle of the pin head (22px tall). */
.seat-pin-tip { position: absolute; top: 22px; left: calc(100% + 9px); transform: translateY(-100%); padding: 3px 9px; border-radius: 8px; white-space: nowrap; line-height: 1.3;
  font-size: 0.72rem; font-weight: 650; color: var(--tone); background: color-mix(in srgb, var(--tone) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent);
  transition: background .15s, color .15s, border-color .15s; }
.seat-pin-tip::before { content: ""; position: absolute; bottom: 6px; left: -5px; width: 8px; height: 8px; transform: rotate(45deg);
  background: inherit; border: inherit; border-width: 0 0 1px 1px; }
.seat-pin-flip .seat-pin-tip { left: auto; right: calc(100% + 9px); }
.seat-pin-flip .seat-pin-tip::before { left: auto; right: -5px; border-width: 1px 1px 0 0; }
/* Fewer seats than active members: the balloon turns into a solid warning. */
.seat-pin-tip.is-warning { --tone: var(--rose); color: var(--surface); background: var(--rose); border-color: var(--rose); }
.pricing-plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan-option { --tone: var(--brand); display: grid; gap: 4px; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; }
.plan-option-starter { --tone: var(--indigo); }
.plan-option-organization { --tone: var(--accent); }
/* The plan's drawing (PlansHelper#plan_art), faint in its corner behind the text; clearer once chosen. */
.plan-art { position: absolute; right: -10px; bottom: -14px; width: 118px; height: 118px; z-index: -1; color: var(--tone); opacity: 0.24; pointer-events: none; transition: opacity .2s, transform .3s; }
.plan-art .fill { fill: currentColor; fill-opacity: 0.35; }
.plan-option:hover .plan-art { opacity: 0.3; }
.plan-option:has(input:checked) .plan-art { opacity: 0.36; transform: scale(1.04) translateY(-2px); }
.plan-option input { position: absolute; top: 16px; right: 16px; accent-color: var(--tone); }
.plan-option:has(input:checked) { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 8%, var(--surface)); }
.plan-option:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.plan-option.is-disabled { opacity: 0.5; cursor: not-allowed; }
.plan-option-name { font-weight: 700; font-family: var(--font-display); font-size: 1.1rem; }
.plan-option-price { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.quote { border-top: 1px solid var(--line); padding-top: 16px; }
.quote dl { margin: 0 0 10px; display: grid; gap: 6px; }
.quote dl div { display: flex; justify-content: space-between; color: var(--ink-soft); }
.quote dd { margin: 0; font-variant-numeric: tabular-nums; }
.quote-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; font-weight: 650; margin: 0; }
.quote-total output { font-size: 2rem; font-weight: 750; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.quote-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.quote-upfront { font-size: 0.8rem; font-weight: 500; color: var(--ink-faint); }
@media (min-width: 720px) { .quote-upfront { white-space: nowrap; } }
.quote-upfront[hidden] { display: none; }
.hint.is-warning { color: var(--rose); font-weight: 600; }

/* Landing: messaging spotlight */
.spotlight-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .spotlight-grid { grid-template-columns: 1.05fr 1fr; } }
.spotlight-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.spotlight-points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.spotlight-points .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.spotlight-points .icon svg { width: 20px; height: 20px; }
.spotlight-points p { margin: 2px 0 0; }
.chat-mock { display: grid; gap: 12px; transform: perspective(1400px) rotateY(6deg) rotateX(3deg); }
.chat-mock-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chat-mock-head svg { width: 18px; height: 18px; color: var(--brand); }
.chat-mock-head small { margin-left: auto; color: var(--ink-soft); }
.chat-line { display: flex; gap: 10px; align-items: flex-end; max-width: 88%; }
.chat-line p { margin: 0; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); font-size: 0.92rem; }
.chat-line.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-line.mine p { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); border-radius: 14px 14px 4px 14px; }
.chat-float { left: auto; right: -14px; bottom: -18px; }
@media (prefers-reduced-motion: reduce) { .chat-mock { transform: none; } }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .chat-float { right: 8px; } }

/* Legal pages */
.wrap.narrow { max-width: 780px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p, .legal li { line-height: 1.65; color: var(--ink-soft); }
.legal li + li { margin-top: 6px; }
.legal-operator { display: grid; gap: 2px; margin: 18px 0; }
.legal-nav { display: flex; gap: 18px; margin-bottom: 8px; }
.legal-nav a[aria-current=page] { font-weight: 700; text-decoration: none; color: var(--ink); }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 0.92rem; }
.legal-table th, .legal-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.footer-links { display: flex; gap: 16px; }
.footer .wrap { flex-wrap: wrap; gap: 12px; }
.data-log { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.9rem; }
.data-log li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 11px 14px; }
.data-log li + li { border-top: 1px solid var(--line); }

/* Settings: a menu of sections beside one card per section; the menu stacks above it on a phone. */
.settings-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.settings-nav { flex: 1 1 250px; max-width: 290px; display: grid; gap: 2px; }
@media (max-width: 760px) { .settings-nav { max-width: none; } }
.settings-nav-link { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.settings-nav-link:hover { background: var(--surface-2); color: var(--ink); }
.settings-nav-link[aria-current="page"] { background: var(--brand-tint); color: var(--brand-strong); }
.settings-nav-icon { flex: none; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink-soft); }
.settings-nav-link[aria-current="page"] .settings-nav-icon { background: var(--brand); color: var(--on-brand); }
.settings-nav-text { display: grid; gap: 2px; min-width: 0; }
.settings-nav-label { font-weight: 600; font-size: 0.95rem; }
.settings-nav-blurb { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.4; }
.settings-elsewhere { display: grid; margin-top: 16px; padding: 14px 12px 0; border-top: 1px solid var(--line); }
.settings-elsewhere-title { margin: 0 0 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.settings-elsewhere a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.settings-elsewhere a:hover { color: var(--brand); }
.settings-elsewhere a svg { color: var(--ink-faint); }
.settings-panel { flex: 999 1 520px; min-width: 0; padding: 26px 30px 22px; }
.settings-panel h2 { margin: 0 0 4px; }
.settings-lead { margin: 0 0 12px; }
.settings-row { display: flex; flex-wrap: wrap; gap: 10px 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.settings-lead + .settings-row, .settings-lead + .flash + .settings-row { border-top: 0; padding-top: 8px; }
.settings-row-label { flex: 1 1 220px; min-width: 0; display: grid; gap: 4px; align-content: start; }
.settings-row-label label { font-weight: 600; font-size: 0.9rem; }
.settings-row-control { flex: 2 1 320px; min-width: 0; display: grid; gap: 10px; align-content: start; }
.settings-narrow { max-width: 240px; }
.settings-row-control > .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* the row already names the dropzone */
.settings-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.settings-inline input[type="text"], .settings-inline input[type="number"] { flex: 1 1 200px; width: auto; }
.settings-inline input[type="number"] { flex: 0 1 120px; }
.settings-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.settings-actions { display: flex; justify-content: flex-end; position: sticky; bottom: 0; margin: 8px -30px -22px; padding: 14px 30px; background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 640px) { .settings-panel { padding: 20px 18px 16px; } .settings-actions { margin: 8px -18px -16px; padding: 12px 18px; } }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 52px; height: 32px; margin: 0; border-radius: var(--radius-pill); background: var(--line-strong); cursor: pointer; transition: background 0.15s; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: left 0.15s; }
.switch:checked { background: var(--brand); }
.switch:checked::after { left: 24px; }
.switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.accent-swatch { flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--preview-accent); }
.accent-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 420px; }
.accent-preview-head { padding: 14px 18px; background: var(--preview-accent); color: #fff; font-family: var(--font-display); font-size: 1.1rem; font-weight: 560; }
.accent-preview-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--surface); }
.accent-preview-button { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--preview-accent); color: #fff; font-size: 0.82rem; font-weight: 600; }

/* Weekly availability: a half-hour grid of checkboxes painted by dragging. */
.availability-card { max-width: 760px; }
.availability-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.availability-tools .hint { margin: 0; }
.availability-scroll { max-height: 440px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.availability-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 0.8rem; user-select: none; -webkit-user-select: none; }
.availability-grid thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: 6px 2px; font-weight: 600; border-bottom: 1px solid var(--line); }
.availability-grid abbr { text-decoration: none; }
.availability-grid tbody th { width: 3.5rem; padding: 0 8px 0 4px; text-align: right; font-weight: 500; color: var(--ink-faint); vertical-align: top; line-height: 1.4; }
.availability-grid td { padding: 0; border-left: 1px solid var(--line); }
.availability-grid tr.hour td { border-top: 1px solid var(--line); }
.availability-grid .avail-cell { display: block; height: 18px; cursor: pointer; position: relative; }
.availability-grid .avail-cell input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.availability-grid .avail-cell:has(input:checked) { background: var(--brand-soft); }
.availability-grid .avail-cell:hover { background: var(--brand-tint); }
.availability-grid .avail-cell:has(input:checked):hover { background: var(--brand); }
.availability-grid .avail-cell:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: -2px; }
.availability-summary { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.9rem; }
.availability-summary strong { display: inline-block; min-width: 6.5rem; }
/* Assign a request: steps, what to weigh, candidate cards beside the confirm panel. */
.assign-workspace { display: grid; gap: 18px; margin-bottom: 26px; }
.assign-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; }
.assign-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); font-weight: 500; }
.assign-steps li.done { background: var(--brand-tint); border-color: transparent; color: var(--brand-strong); font-weight: 600; }
.assign-steps li.current { background: var(--brand); border-color: transparent; color: var(--on-brand); font-weight: 600; }
.assign-step-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; background: var(--surface-2); }
.assign-steps .done .assign-step-mark { background: var(--brand); color: var(--on-brand); }
.assign-steps .current .assign-step-mark { background: var(--on-brand); color: var(--brand); }
.assign-label { display: flex; align-items: center; gap: 6px; margin: 0; font-family: var(--font-body); font-size: 0.74rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.assign-brief h2 { font-size: 1.2rem; }
.assign-brief-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.brief-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); }
.brief-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.brief-chip { font-size: 0.82rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line-strong); }
.brief-person { display: flex; align-items: center; gap: 10px; }
.brief-person > span { display: grid; }
.assign-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.assign-candidates { flex: 999 1 560px; min-width: 0; display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.assign-candidates legend { font-family: var(--font-display); font-weight: 560; font-size: 1.2rem; padding: 0; margin-bottom: 2px; }
.assign-candidates > .hint { color: var(--ink-soft); font-size: 0.88rem; }
.assign-candidate { display: grid; grid-template-columns: auto auto minmax(0, 1fr) minmax(150px, 240px); gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.assign-candidate:hover { border-color: var(--line-strong); }
.assign-candidate:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand-tint) 55%, var(--surface)); box-shadow: 0 0 0 3px var(--brand-tint); }
.assign-candidate input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.assign-candidate:not(:has(.candidate-fit)) { grid-template-columns: auto auto minmax(0, 1fr); }
.candidate-body { display: grid; gap: 6px; min-width: 0; }
.candidate-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.candidate-name .name { font-weight: 600; font-size: 1.02rem; }
.pill-best { background: var(--brand); color: var(--on-brand); }
.pill-knows { background: var(--accent-tint); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.pill-best::before, .pill-knows::before { display: none; }
.signals { display: flex; flex-wrap: wrap; gap: 6px; }
.signal, .queue-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 550; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--slate-tint); color: var(--ink-soft); }
.signal.good, .queue-flag.good { background: var(--green-tint); color: var(--green); }
.signal.warn, .queue-flag.warn { background: var(--amber-tint); color: var(--amber); }
.signal.bad, .queue-flag.bad { background: var(--rose-tint); color: var(--rose); }
.candidate-ring { --fit: 0%; --size: 48px; display: inline-grid; place-items: center; flex: none; padding: 4px; border-radius: 50%; background: conic-gradient(var(--brand) var(--fit), var(--line-strong) 0); }
.candidate-ring.unset { background: none; box-shadow: inset 0 0 0 2px var(--line-strong); }
.candidate-ring.off { padding: 0; background: none; }
.candidate-ring > .avatar { width: var(--size); height: var(--size); font-size: calc(var(--size) * 0.34); box-shadow: 0 0 0 2px var(--surface); }
.candidate-fit { display: grid; gap: 5px; justify-items: center; text-align: center; }
.fit-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 5px; width: 100%; }
.fit-cell { display: grid; justify-items: center; gap: 1px; padding: 4px 2px; border-radius: 7px; font-size: 0.68rem; font-weight: 600; line-height: 1.2; }
.fit-cell.yes { background: var(--green-tint); color: var(--green); }
.fit-cell.no { background: var(--surface-2); color: var(--ink-soft); }
.fit-unset { width: 100%; padding: 6px 8px; border: 1.5px dashed var(--line-strong); border-radius: 7px; font-size: 0.82rem; color: var(--ink-soft); }
.candidate-load { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.load-dots { display: flex; gap: 3px; width: 70px; }
.load-dots span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.load-dots span.on { background: var(--brand-soft); }
.load-dots span.on.high { background: var(--amber); }
.assign-confirm { flex: 1 1 300px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; box-shadow: var(--shadow); }
.assign-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.assign-detail[hidden], .assign-submit[hidden] { display: none; }
.assign-detail-who { display: flex; align-items: center; gap: 14px; }
.assign-detail-who > div { display: grid; gap: 2px; }
.assign-detail-name { font-family: var(--font-display); font-weight: 560; font-size: 1.3rem; }
.assign-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.assign-notes .signal, .assign-changes .signal { display: flex; align-items: flex-start; border-radius: var(--radius-sm); padding: 9px 12px; font-size: 0.88rem; line-height: 1.45; }
.assign-next { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.assign-next ol, .assign-changes ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 0.9rem; line-height: 1.45; }
.assign-submit { width: 100%; justify-content: center; min-height: 48px; font-size: 1rem; }
.assign-handoff { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.assign-handoff .avatar { opacity: .8; }
.assign-changes { display: grid; gap: 8px; }
.assign-changes p { margin: 0; }
.assign-changes .signal svg { flex: none; margin-top: 2px; }
.assign-later { margin-bottom: 22px; }
.assign-later > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
.queue-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.queue-suggestion { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.suggestion { display: flex; align-items: center; gap: 10px; min-width: 0; }
.suggestion > span:last-child { display: grid; }
.suggestion-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-weight: 500; text-decoration: none; }
.back-link .flip { transform: scaleX(-1); }
@media (max-width: 860px) {
  .assign-candidate { grid-template-columns: auto auto minmax(0, 1fr); }
  .candidate-fit { grid-column: 2 / -1; justify-items: start; text-align: left; }
}
.slot-hours select { width: auto; padding: 8px 12px; }
.time-select { display: flex; align-items: center; gap: 6px; }
.time-select select { width: auto; flex: 1 1 0; }
.inline-form > .past-outcome { flex-basis: 100%; }

/* Support sessions: the platform admin acting as a member. The bar keeps its dark look in both themes so it never
   blends into the page; the start dialog and the log live in the admin console. */
.session-bar { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 28px; background: #18212b; color: #fff; font-size: 0.9rem; }
.session-bar svg { color: #f0a185; flex: none; }
.session-chip { padding: 3px 10px; border-radius: var(--radius-pill); background: #33404b; color: #e9eef0; font-size: 0.78rem; font-weight: 600; }
.session-bar-end { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; }
.session-clock { color: #c9d1d8; font-variant-numeric: tabular-nums; }
.session-bar .session-end { background: #f0a185; color: #18212b; border: 0; padding: 8px 14px; min-height: 40px; font-weight: 650; }
.session-bar .session-end:hover { background: #f5b9a3; color: #18212b; }
.is-refused, .btn:disabled { opacity: 0.5; cursor: not-allowed; }
a.is-refused { pointer-events: none; }
.support-dialog { max-width: 640px; margin: 14px auto 0; display: grid; gap: 22px; }
.support-dialog-head { display: flex; gap: 16px; align-items: center; }
.support-dialog-head h1 { margin: 0; font-size: 1.6rem; }
.support-dialog-head p { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.support-dialog-head .last-seen { display: inline-flex; gap: 6px; }
.support-dialog-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.support-dialog fieldset { border: 0; margin: 0; padding: 0; }
.access-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.access-option:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand-tint) 55%, var(--surface)); box-shadow: 0 0 0 3px var(--brand-tint); }
.access-option input { margin-top: 3px; accent-color: var(--brand); }
.access-option > span { display: grid; gap: 2px; }
.support-notice { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 0.9rem; line-height: 1.5; }
.support-notice svg { color: var(--brand); flex: none; margin-top: 2px; }
.support-notice p { margin: 4px 0 0; }
.support-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; margin: 0 -22px; }
.members-table td, .members-table th { padding: 11px 22px; }
.members-table .who { min-width: 220px; }
.cell-actions { text-align: right; }
.btn-small { padding: 7px 12px; font-size: 0.86rem; }
.support-log { display: grid; gap: 10px; }
.support-log-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.support-log-item summary { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.7fr) max-content 130px; gap: 8px 16px; align-items: start; padding: 14px 18px; cursor: pointer; font-size: 0.92rem; }
.support-log-item summary > span { display: grid; gap: 2px; min-width: 0; }
.support-log-item[open] summary { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--brand-tint) 45%, var(--surface)); border-radius: var(--radius) var(--radius) 0 0; }
.support-log-counts { color: var(--ink-soft); white-space: nowrap; }
.support-log-detail { display: flex; flex-wrap: wrap; gap: 24px; padding: 18px 22px 20px; }
.support-log-detail .timeline { flex: 1 1 380px; min-width: 0; }
.support-log-detail code { font-size: 0.82rem; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.timeline-blocked::before { border-color: var(--rose) !important; background: var(--rose-tint) !important; }
.timeline-change::before { border-color: var(--amber) !important; background: var(--amber-tint) !important; }
.support-log-facts { flex: 1 1 240px; margin: 0; display: grid; gap: 4px; font-size: 0.9rem; }
.support-log-facts dt { color: var(--ink-faint); font-size: 0.8rem; margin-top: 8px; }
.support-log-facts dd { margin: 0; }
@media (max-width: 860px) {
  .support-log-item summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .session-bar { padding: 10px 16px; }
}
.tenant-people { margin-top: 22px; }

/* Dashboard: one view per role (Dashboard), with a switcher for members holding several. */
.dashboard-views { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 18px; }
.dashboard-views .tabs { margin-bottom: 0; min-width: 0; }
.dashboard-views .tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.dashboard-views-label { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.tab-count { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--clay); font-size: 0.76rem; font-weight: 700; }
.tabs a[aria-current=page] .tab-count { background: var(--brand-tint); color: var(--brand-strong); }
.stat .note { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--ink-soft); }
.stat .value-of { font-family: var(--font-body); font-size: 1rem; font-weight: 550; color: var(--ink-soft); }
.note-warn, .stat .note-warn { color: var(--amber); font-weight: 600; font-size: 0.86rem; }
.dashboard-row { margin-top: 26px; }
.dashboard-side { display: grid; gap: 16px; align-content: start; }
.dashboard-side .card + .card { margin-top: 0; }
.dashboard-side-title { margin: 0; }
.todo-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.todo-grid .card + .card { margin-top: 0; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.todo-list li:first-child { border-top: 0; padding-top: 0; }
.todo-list li.todo-stacked { flex-direction: column; align-items: stretch; }
.todo-list .actions .button_to { display: inline; }
.day-timeline { list-style: none; margin: 0 0 16px; padding: 0; }
.day-timeline li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.day-timeline li:first-child { border-top: 0; }
.day-timeline time { font-weight: 650; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.day-timeline li.is-next time { color: var(--brand); }
.day-timeline .actions { justify-content: flex-end; }
.stats.stats-dense { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.day-strip { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day-strip li { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.78rem; color: var(--ink-soft); }
.day-strip strong { font-size: 1rem; color: var(--ink); }
.day-strip li.is-today { background: var(--brand); color: var(--on-brand); }
.day-strip li.is-today strong { color: var(--on-brand); }
.quota-line { display: flex; justify-content: space-between; gap: 10px; }
.todo-list .quota-segments { max-width: none; }
.team-load .team-load-note { grid-column: 1 / -1; margin-top: -4px; }
.team-load .team-load-note:empty { display: none; }
.week-chart { display: grid; gap: 14px; margin-bottom: 18px; }
.week-chart figcaption { margin-bottom: 0; }
.week-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: end; height: 210px; }
.week-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 4px; min-width: 0; }
.week-value { text-align: center; font-size: 0.78rem; font-weight: 650; color: var(--ink-soft); font-variant-numeric: tabular-nums; align-self: end; }
.week-bar-area { display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 1px solid var(--line-strong); }
.week-stack { display: flex; flex-direction: column; min-height: 2px; border-radius: 5px 5px 0 0; overflow: hidden; gap: 2px; transform-origin: bottom; animation: week-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 40ms) both; }
@keyframes week-grow { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .week-stack { animation: none; } }
.week-part { display: block; flex-basis: 0; }
.week-label { text-align: center; font-size: 0.74rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-legend { justify-content: flex-start; }
.week-part-answered, .week-part-done { background: var(--brand); }
.week-part-waiting { background: var(--gold); }
.week-part-no_show { background: var(--accent); }
.week-part-cancelled { background: var(--line-strong); }

/* My customers (MyCustomers): new assignments to answer, then a worklist with what each person needs next. */
.answer-band { margin-bottom: 26px; padding: 18px; border-radius: var(--radius); background: var(--accent-tint); }
.answer-band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.answer-band-head h2 { margin: 0; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 8px; }
.answer-band-head .tab-count { background: var(--clay); color: var(--surface); }
.answer-band-head p { margin: 0; font-size: 0.92rem; color: color-mix(in srgb, var(--clay) 70%, var(--ink)); }
.answer-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.answer-card { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
.answer-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.answer-card .who a, .worklist-row .who a { font-weight: 600; text-decoration: none; }
.answer-when { flex: none; font-size: 0.8rem; font-weight: 600; color: var(--clay); }
.answer-note { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.88rem; }
.answer-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.answer-actions .answer-read { margin-right: auto; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.answer-actions .button_to { display: inline; }
.worklist-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.worklist-bar .tabs, .worklist-bar .toolbar { margin-bottom: 0; }
.worklist-bar .tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; box-sizing: border-box; }
.worklist { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.worklist ul { list-style: none; margin: 0; padding: 0; }
.worklist-head, .worklist-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(170px, auto); gap: 16px; align-items: center; padding: 13px 18px; }
.worklist-head { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 650; }
.worklist-row { border-top: 1px solid var(--line); }
.worklist-row:first-child { border-top: 0; }
.worklist-stage, .worklist-when, .worklist-calls { display: grid; gap: 4px; justify-items: start; font-size: 0.92rem; }
.worklist-detail { font-size: 0.84rem; }
.worklist-calls .quota-segments { max-width: 140px; }
.worklist-action { text-align: right; }
.worklist-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.worklist-legend { justify-content: flex-start; margin-top: 12px; }
.stage-record_outcome { background: var(--accent-tint); color: var(--clay); }
.stage-first_contact, .stage-book { background: var(--amber-tint); color: var(--amber); }
.stage-close { background: var(--indigo-tint); color: var(--indigo); }
.stage-last_call { background: var(--brand-tint); color: var(--brand-strong); }
.stage-on_track { background: var(--green-tint); color: var(--green); }
@media (max-width: 860px) {
  .worklist-head { display: none; }
  .worklist-row { grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 14px 16px; padding: 16px; }
  .worklist-stage, .worklist-calls { justify-items: end; text-align: right; }
  .worklist-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 0.76rem; color: var(--ink-soft); }
  .worklist-action { grid-column: 1 / -1; }
  .worklist-action .btn { display: flex; justify-content: center; min-height: 44px; box-sizing: border-box; }
  .worklist-bar .toolbar { width: 100%; }
  .worklist-bar .toolbar input[type=search] { flex: 1; max-width: none; }
}

/* Team: seats, search, sort and role filters above one table, with a menu per row; cards on a phone. */
.seat-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; font-size: .9rem; }
.seat-meter strong { color: var(--ink); }
.seat-meter-bar { display: block; width: 160px; height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.seat-meter-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.team-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.team-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.team-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.team-search input { width: 100%; min-height: 44px; padding-left: 42px; border-radius: var(--radius-pill); }
.team-sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); }
.team-sort select { width: auto; min-height: 40px; }
.team-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-attention::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.chip-attention[aria-current]::before { background: var(--gold); }
.team-table th:nth-child(2) { width: 190px; }
.team-table th:nth-child(3) { width: 200px; }
.team-table th:nth-child(4) { width: 180px; }
.team-table th:nth-child(5) { width: 150px; }
.team-table .team-group-head th { padding: 16px 16px 8px; background: var(--surface); font: 600 1rem/1.2 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.team-table .team-group-head th .muted { font: 500 .85rem var(--font-body); }
.team-table tbody:not(:first-of-type) .team-group-head th { border-top: 1px solid var(--line); }
.member-name a { color: var(--ink); }
.member-name a:hover { color: var(--brand); }
.role-form { display: flex; gap: 6px; align-items: center; }
.role-select { width: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.role-text { display: inline-flex; align-items: center; gap: 6px; }
.role-lock { display: inline-flex; color: var(--ink-soft); cursor: help; }
.status-cell .pill { margin: 2px 6px 2px 0; }
.pill-member-active { background: var(--green-tint); color: var(--green); }
.pill-member-pending { background: var(--amber-tint); color: var(--amber); }
.pill-member-disabled, .pill-member-removed { background: var(--slate-tint); color: var(--ink-soft); }
.member-row.removed { color: var(--ink-soft); }
.member-row.removed .avatar { filter: grayscale(1); opacity: .6; }
.actions-cell { text-align: right; white-space: nowrap; }
.row-actions { display: inline-flex; align-items: center; gap: 4px; }
.row-form { display: inline-flex; margin: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--ink); box-shadow: none; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink); transform: none; box-shadow: none; }
.row-menu { position: fixed; inset: auto; margin: 0; min-width: 230px; padding: 6px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.row-menu .menu-form { margin: 0; }
.row-menu [role=menuitem] { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 16px; border: 0; border-radius: 0; background: none; color: var(--ink); box-shadow: none;
  font: 500 .92rem var(--font-body); text-align: left; text-decoration: none; transform: none; }
.row-menu [role=menuitem]:hover, .row-menu [role=menuitem]:focus-visible { background: var(--surface-2); color: var(--ink); transform: none; box-shadow: none; }
.row-menu [role=menuitem].danger { color: var(--rose); }
.row-menu .menu-form:last-child:has(.danger) { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.team-empty { margin: 0; padding: 40px 20px; text-align: center; color: var(--ink-soft); }
.team-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; margin-top: 14px; font-size: .88rem; }
@media (max-width: 720px) {
  .team-table-wrap { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .team-table, .team-table tbody, .team-table tr, .team-table td, .team-table th { display: block; width: auto; }
  .team-table thead { display: none; }
  .team-table tbody { margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
  .team-table tbody[hidden], .team-table tr[hidden] { display: none; }
  .team-table .team-group-head th { border-top: 0 !important; }
  .team-table .member-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .member-row td { padding: 0; border: 0; }
  .member-row .member-cell { grid-column: 1 / -1; }
  .member-row .bio { display: none; }
  .member-row .role-cell, .member-row .status-cell { grid-column: 1; }
  .member-row .seen-cell { grid-column: 2; grid-row: 2 / span 2; text-align: right; }
  .member-row .seen-cell .last-seen { min-width: 0; align-items: flex-end; }
  .member-row .actions-cell { grid-column: 1 / -1; text-align: left; }
}

/* A member's page: the profile form beside their access and getting-started progress. */
.crumbs { margin-bottom: 12px; font-size: .9rem; }
.member-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 24px; }
.member-head h1 { margin: 0; }
.member-head p { margin: 4px 0 0; }
.member-head > div:nth-child(2) { flex: 1 1 260px; }
.member-head-tags .pill:first-child { margin-left: 0; }
.member-head-tags:empty { display: none; }
.member-head-tags { margin-top: 8px; }
.member-panel { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .member-panel { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); } }
.member-main > .banner { margin-bottom: 16px; }
.member-side .card + .card { margin-top: 16px; }
.member-side h2 { font-size: 1.1rem; margin: 0; }
.banner-danger { background: var(--rose-tint); color: var(--rose); border-color: color-mix(in srgb, var(--rose) 30%, transparent); }
.role-cards { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.role-cards legend { font-weight: 600; font-size: .93rem; margin-bottom: 8px; padding: 0; }
.role-cards > .hint { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; margin: 0; }
.role-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.role-card > span { display: grid; gap: 2px; }
.role-card .hint { margin: 0; }
.role-card:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.role-card:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.role-card input { margin-top: 3px; width: auto; }
.member-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.member-steps li { display: flex; gap: 10px; align-items: center; color: var(--ink-soft); }
.member-steps li.done { color: var(--ink); }
.member-steps li.done svg { color: var(--green); }
.danger-zone { border-color: color-mix(in srgb, var(--rose) 35%, var(--line)); }
.danger-zone h2 { color: var(--rose); }
.danger-zone .hint { margin: 0; }
