:root {
  color-scheme: light;
  --bg: #f7f9f8;
  --surface: #ffffff;
  --surface-soft: #edf4f1;
  --text: #222f2c;
  --muted: #52645e;
  --line: #d6e2dd;
  --accent: #087f73;
  --accent-hover: #07685e;
  --accent-soft: #e0f3ee;
  --yellow: #f6c64c;
  --focus: #087f73;
  --good-bg: #e0f2e8;
  --good-text: #1a6545;
  --warn-bg: #fff1c9;
  --warn-text: #79551b;
  --bad-bg: #fce9e8;
  --bad-text: #a63138;
  --info-bg: #e8eef9;
  --info-text: #344e86;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Manrope", system-ui, sans-serif;
  --shadow: 0 3px 14px #172f2510;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
svg.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
i[data-icon] { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.18; }
h2 { font-size: 2.75rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
main:focus { outline: none; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 12px 20px; background: var(--text); color: var(--surface); transform: translateY(-150%); border-radius: 6px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.content-width { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.brand { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.brand > span:first-child, .hero-brand > span:first-child { color: var(--accent); }
.brand i { align-self: flex-start; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin: 3px 0 0 4px; }
.eyebrow, .section-mark { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--accent); font-size: .875rem; font-weight: 700; }
.live-dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; }

/* One interaction treatment is shared across public pages and account tools. */
:is(.button, .app-button, .icon-button, button, .admin-folder-dock summary) {
  --glow-x: 50%; --glow-y: 50%;
  position: relative; isolation: isolate;
  transition: transform 170ms cubic-bezier(.2,.75,.3,1), box-shadow 170ms ease, background-color 170ms ease, border-color 170ms ease;
}
:is(.button, .app-button, .icon-button, button)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(100px circle at var(--glow-x) var(--glow-y), #ffffff38, transparent 75%);
  opacity: 0; transition: opacity 150ms ease;
}
:is(.button, .app-button, button):active { transform: translateY(1px) scale(.975); box-shadow: inset 0 2px 5px #00000012; }
:is(.button, .app-button, button):disabled { cursor: not-allowed; opacity: .6; transform: none; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  :is(.button, .app-button, button):not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 5px 0 #183e2915, 0 8px 20px #183e2910; }
  :is(.button, .app-button, button):not(:disabled):hover::after { opacity: 1; }
}
.button, .app-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 6px; font-weight: 700; line-height: 1.4; text-align: center; }
.button-primary, .app-button { background: var(--accent); color: #fff; box-shadow: 0 3px 0 #05564d; }
.button-primary:hover, .app-button:hover { background: var(--accent-hover); }
.button-white { background: #fff; color: #223c34; border-color: #d5e1db; box-shadow: 0 3px 0 #183e2910; }
.button-dark { background: #24352e; color: #fff; box-shadow: 0 3px 0 #15291f; }
.button-outline-light { border-color: #ffffff70; color: #fff; background: transparent; }
.app-button-secondary { border-color: var(--line); background: var(--surface); color: var(--text); box-shadow: 0 2px 0 #162c2408; }
.app-button-secondary:hover { background: var(--surface-soft); }
.icon-button { display: inline-grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; }
.inline-action { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.text-link:hover, .home-nav a:hover { color: var(--accent); }

/* Public experience */
.site-header { position: sticky; top: 0; z-index: 30; min-height: 84px; padding: 14px 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: #ffffffed; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.home-nav, .header-actions { display: flex; align-items: center; gap: 28px; }
.home-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
.header-actions { gap: 22px; }
.header-cta { font-size: .9375rem; }
.menu-toggle { display: none; }
.home-hero { position: relative; overflow: hidden; background: #f2f9f6; min-height: 650px; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.scene-controls { position: absolute; right: 28px; bottom: 24px; z-index: 3; }
.scene-controls .icon-button { background: #ffffffdb; }
.hero-inner { position: relative; z-index: 1; padding: 48px 0 88px; }
.hero-brand { font-size: 7rem; line-height: 1.05; margin: 0 0 18px; color: #25372f; }
.brand-period { color: #b66e18; }
.hero-headline { font-family: var(--font-display); font-size: 2.5rem; line-height: 1.16; font-weight: 700; margin: 0 0 20px; color: #25372f; }
.hero-description { max-width: 435px; font-size: 1.125rem; line-height: 1.65; color: #435b50; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 27px 0 20px; }
.hero-actions .button { font-size: .9375rem; }
.hero-local { display: flex; align-items: center; gap: 7px; font-size: .875rem; color: #36564a; margin: 0; }
.hero-local svg { width: 16px; height: 16px; }
.hero-caption { position: absolute; right: 40px; bottom: 28px; display: flex; align-items: center; gap: 12px; border-left: 3px solid var(--yellow); padding: 12px 16px; color: #fff; background: #24392ee6; font-size: .875rem; line-height: 1.4; }
.hero-caption svg { color: var(--yellow); }
.principle-strip { border-block: 1px solid var(--line); background: var(--surface); }
.principle-strip > div { display: flex; justify-content: space-between; gap: 20px; padding-block: 23px; }
.principle-strip span { display: flex; align-items: center; gap: 12px; font-size: .9375rem; font-weight: 500; }
.principle-strip svg { color: var(--accent); }
.home-section { padding-block: 96px; }
.section-intro { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 70px; margin-bottom: 48px; }
.section-intro h2 { margin: 0; }
.section-intro > p { max-width: 410px; margin: 0 0 4px; color: var(--muted); line-height: 1.8; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 0; margin: 0 0 25px; list-style: none; }
.how-steps li { min-width: 0; border-top: 2px solid var(--line); padding-top: 24px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.step-top span { font-family: var(--font-display); font-size: 1.875rem; color: #728a7f; font-weight: 500; }
.step-top svg { width: 30px; height: 30px; color: var(--accent); }
.how-steps h3 { margin-bottom: 13px; }
.how-steps p { color: var(--muted); }
.volunteer-band { background: #f8cd62; padding-block: 82px; }
.volunteer-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 88px; align-items: center; }
.volunteer-band .eyebrow { color: #454221; }
.volunteer-copy h2 { margin-bottom: 24px; color: #29362c; }
.volunteer-copy > p:not(.eyebrow) { color: #454a37; max-width: 430px; line-height: 1.8; margin-bottom: 28px; }
.volunteer-details { display: grid; gap: 28px; }
.volunteer-details > div { display: flex; align-items: start; gap: 19px; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; color: #364633; border: 1px solid #5c551d45; border-radius: 50%; }
.feature-icon svg { width: 24px; height: 24px; }
.volunteer-details h3 { font-size: 1.125rem; margin: 2px 0 8px; }
.volunteer-details p { color: #454a37; margin: 0; }
.clarity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.clarity-grid > article { padding-top: 12px; }
.clarity-grid > article > svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 24px; }
.clarity-grid h3 { margin-bottom: 14px; }
.clarity-grid p { color: var(--muted); }
.faq-band { padding-block: 80px; background: #e9f1ed; border-top: 1px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.faq-layout > div > p:not(.eyebrow) { max-width: 290px; color: var(--muted); }
.faq-list details { border-top: 1px solid #bccfc5; }
.faq-list details:last-child { border-bottom: 1px solid #bccfc5; }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; font-size: 1.0625rem; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); max-width: 570px; padding: 0 32px 16px 0; line-height: 1.8; }
.join-band { color: #fff; background: #096f64; padding-block: 72px; }
.join-band > div { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.join-band .eyebrow { color: #d0eee0; }
.join-band h2 { margin: 0; }
.join-actions { display: grid; gap: 14px; min-width: 235px; }
.site-footer { padding-block: 44px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: start; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer p { color: var(--muted); font-size: .875rem; margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: .9375rem; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .footer-note { text-align: right; }

/* Account workspaces */
.app-header { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 78px; padding: 14px 36px; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; }
.app-nav a, .app-nav button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 12px; background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--muted); line-height: 1.4; }
.app-nav a:hover, .app-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.app-nav button { border-color: var(--line); color: var(--text); }
.app-nav form { margin: 0; }
.app-shell { width: min(1180px, calc(100% - 72px)); margin: 0 auto; padding: 40px 0 100px; display: flex; flex-direction: column; gap: 28px; }
.app-shell > *, .app-grid > *, .admin-layout > * { min-width: 0; max-width: 100%; }
.app-hero-panel { padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.app-hero-panel h1 { font-size: 2.25rem; margin: 0 0 14px; max-width: 760px; }
.app-hero-panel p { max-width: 660px; color: var(--muted); margin-bottom: 12px; }
.app-hero-panel .section-mark { font-size: .875rem; color: var(--accent); margin-bottom: 12px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.app-dashboard-grid { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
.app-card-wide { grid-column: 1 / -1; }
.app-card { min-width: 0; padding: 26px 0; background: transparent; border-top: 1px solid var(--line); }
.app-card h2 { font-size: 1.25rem; margin: 0 0 20px; }
.app-card p, .app-help, .app-tag { color: var(--muted); }
.app-help, .app-tag { font-size: .875rem; line-height: 1.65; }
.app-help a, .app-inline-link, .admin-inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.app-card > .app-help:last-child { margin-bottom: 0; }
.app-card.app-form { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.app-form { display: grid; gap: 20px; }
.app-form > h2 { margin-bottom: 4px; }
.app-form-wide { width: min(100%, 880px); }
.app-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
label { display: grid; gap: 8px; color: var(--text); font-size: .875rem; font-weight: 500; min-width: 0; }
input, textarea, select { min-width: 0; width: 100%; min-height: 46px; background: var(--surface); color: var(--text); border: 1px solid #afc4ba; border-radius: 5px; padding: 11px 12px; line-height: 1.4; font-size: 1rem; }
input::placeholder, textarea::placeholder { color: #6e7f77; opacity: 1; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
input:disabled { background: var(--surface-soft); color: var(--muted); cursor: not-allowed; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 20px; accent-color: var(--accent); }
textarea { resize: vertical; }
.app-form .app-button { justify-self: start; }
.app-form .app-actions { margin-top: 0; }
.app-grid-narrow { display: block; max-width: 540px; }
.auth-body .app-shell { max-width: 1060px; }
.auth-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; padding-top: 28px; }
.auth-intro { padding-top: 16px; }
.auth-intro h1 { font-size: 2.75rem; margin-bottom: 24px; }
.auth-intro > p { color: var(--muted); }
.auth-note { display: flex; gap: 13px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.auth-note svg { flex-shrink: 0; color: var(--accent); margin-top: 4px; }
.auth-switch { display: flex; gap: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.auth-switch a { padding: 12px 0; font-size: .9375rem; font-weight: 700; border-bottom: 3px solid transparent; }
.auth-switch a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.password-control { position: relative; }
.password-control input { padding-right: 50px; }
.password-control button { position: absolute; right: 2px; top: 2px; width: 42px; height: 42px; border: none; background: transparent; display: grid; place-items: center; border-radius: 4px; }
.form-section-title { font-size: 1rem; margin: 7px 0 0; }
.app-notice { padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--text); border-radius: 5px; }
.app-notice-error { color: var(--bad-text); background: var(--bad-bg); border-color: #d8a7a8; }
.app-notice-success { color: var(--good-text); background: var(--good-bg); border-color: #a8cfb9; }
.app-empty { padding: 32px; background: var(--surface-soft); border-radius: 6px; text-align: center; }
.app-empty strong { display: block; color: var(--text); font-size: 1.0625rem; margin-bottom: 7px; }
.app-empty p { max-width: 540px; margin: 0 auto; font-size: .9375rem; }
.app-list-row { display: flex; justify-content: space-between; align-items: start; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.app-list-row:first-of-type { border-top: 0; padding-top: 8px; }
.app-list-row > div { min-width: 0; }
.app-list-row p { margin: 7px 0; overflow-wrap: anywhere; }
.app-list-row > div > strong { display: block; font-size: 1.0625rem; }
.app-list-row .app-button { font-size: .875rem; }
.app-row-form { margin: 0; }
.app-response-form { display: grid; gap: 10px; width: min(100%, 300px); flex-shrink: 0; }
.app-label-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.app-label-row .app-tag { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 4px 8px; }
.booking-reference { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .8125rem; color: var(--muted); margin: 8px 0; }
.booking-reference strong { color: var(--text); font-family: ui-monospace, monospace; }
.service-hours-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); border: 1px solid var(--line); color: var(--accent); border-radius: 4px; padding: 4px 9px; font-size: .8125rem; margin: 8px 0; }
.booking-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 26px 0; list-style: none; }
.booking-progress li { min-width: 0; border-top: 3px solid var(--line); padding: 14px 10px 8px 0; }
.booking-progress li.is-complete, .booking-progress li.is-current { border-color: var(--accent); }
.booking-progress li.is-current strong { color: var(--accent); }
.booking-progress li > span { display: none; }
.booking-progress strong { display: block; font-size: .875rem; line-height: 1.4; }
.booking-progress small { display: block; margin-top: 8px; color: var(--muted); font-size: .8125rem; }
.confirmed-contact-card, .sitter-response-note { margin: 18px 0; border-left: 3px solid var(--accent); padding: 14px 18px; background: var(--surface-soft); border-radius: 0; }
.confirmed-contact-card p:last-child { margin: 0; }
.response-filter-panel { margin: 16px 0 24px; padding-block: 16px; border-block: 1px solid var(--line); }
.response-filter-heading { display: flex; justify-content: space-between; gap: 16px; font-size: .875rem; margin-bottom: 14px; }
.response-filter-grid { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.response-filter-grid label { flex: 1 1 200px; }
.app-payment-options { display: flex; flex-wrap: wrap; gap: 12px; }
.app-payment-options label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 14px; border-radius: 6px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); background: var(--surface); }
.dashboard-stat { padding: 24px; border-left: 1px solid var(--line); }
.dashboard-stat:first-child { border-left: none; }
.dashboard-stat > span { font-size: .875rem; color: var(--muted); display: block; }
.dashboard-stat strong { font-family: var(--font-display); font-size: 1.75rem; display: block; margin-top: 4px; }
.dashboard-stat small { display: block; color: var(--muted); font-size: .8125rem; }
.workspace-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.workspace-tabs a { padding: 12px 0; min-height: 44px; font-size: .9375rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.workspace-tabs a:hover, .workspace-tabs a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }
.dashboard-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); padding-top: 26px; }
.dashboard-info h2 { font-size: 1rem; }
.dashboard-info p { font-size: .875rem; color: var(--muted); }
.app-shell.is-partial-loading { cursor: progress; }
.app-shell.is-partial-loading::before { content: ""; position: fixed; z-index: 80; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); animation: loading-line 1s ease-in-out infinite alternate; transform-origin: left; }
form[aria-busy="true"] button[type="submit"] { opacity: .6; cursor: wait; pointer-events: none; }
@keyframes loading-line { from { transform: scaleX(.2); } to { transform: scaleX(.9); } }

/* Status labels keep text and shape as well as color. */
.status-badge, .admin-badge { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 4px 9px; border: 1px solid transparent; border-radius: 4px; font-size: .8125rem; font-weight: 600; line-height: 1.5; color: var(--muted); background: var(--surface-soft); overflow-wrap: anywhere; }
:is(.status-confirmed,.status-completed,.status-active,.status-approved,.status-paid,.status-complete,.status-sent,.status-volunteer-no-charge) { color: var(--good-text); background: var(--good-bg); }
:is(.status-canceled,.status-cancelled,.status-rejected,.status-paused,.status-disabled,.status-failed) { color: var(--bad-text); background: var(--bad-bg); }
:is(.status-pending,.status-pending-review,.status-payment-pending,.status-open,.status-responded,.status-queued,.status-checkout-created) { color: var(--warn-text); background: var(--warn-bg); }
:is(.status-refunded,.status-closed,.status-received,.status-private,.status-connection-listed) { color: var(--info-text); background: var(--info-bg); }
.card-heading-row, .admin-panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; }
.card-heading-row h2, .admin-panel-heading h2 { margin: 0 0 7px; }
.card-heading-row p, .admin-panel-heading p { font-size: .875rem; margin: 0; }
.notification-header-actions, .notification-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.notification-row { display: flex; justify-content: space-between; gap: 22px; padding: 19px 0; border-top: 1px solid var(--line); }
.notification-row > div { min-width: 0; }
.notification-row.is-unread { border-left: 3px solid var(--accent); padding-left: 16px; }
.notification-row p { font-size: .9375rem; margin: 5px 0; overflow-wrap: anywhere; }
.notification-row span { color: var(--muted); font-size: .8125rem; }
.notification-row a { color: var(--accent); font-size: .875rem; font-weight: 600; text-decoration: underline; }
.notification-clear-form { margin: 0; }
.notification-clear-form button, .admin-inline-form button, .admin-actions button { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); min-height: 38px; padding: 7px 10px; font-size: .875rem; }

/* Operational tools have their own compact, predictable layout. */
.admin-body .app-shell { width: min(1440px, calc(100% - 64px)); gap: 24px; }
.admin-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 26px; }
.admin-header > div:first-child { flex: 1 1 400px; }
.admin-header h1 { font-size: 2rem; margin: 0 0 12px; }
.admin-header p { max-width: 680px; font-size: .9375rem; }
.admin-header .section-mark { margin-bottom: 10px; }
.admin-header-side { display: flex; flex-direction: column; align-items: end; gap: 16px; }
.admin-header dl { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; }
.admin-header dt { font-size: .8125rem; color: var(--muted); }
.admin-header dd { margin: 2px 0 0; font-size: .875rem; }
.admin-theme-toggle { display: flex; gap: 3px; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 6px; }
.admin-theme-toggle > span { padding: 0 10px; font-size: .8125rem; color: var(--muted); }
.admin-theme-toggle button { border: 0; background: transparent; min-height: 36px; padding: 6px 12px; border-radius: 3px; font-size: .875rem; }
.admin-theme-toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.admin-metric { min-width: 0; padding: 20px; border-left: 1px solid var(--line); }
.admin-metric:first-child { border-left: 0; }
.admin-metric > span { display: block; font-size: .875rem; color: var(--muted); }
.admin-metric strong { display: block; font-size: 1.875rem; line-height: 1.3; margin: 8px 0; font-family: var(--font-display); overflow-wrap: anywhere; }
.admin-metric small { display: block; font-size: .8125rem; color: var(--muted); }
.admin-conversion-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); background: transparent; }
.admin-conversion-grid .admin-metric:nth-child(3n+1) { border-left: 0; }
.admin-conversion-grid .admin-metric:nth-child(n+4) { border-top: 1px solid var(--line); }
.admin-conversion-grid strong { font-size: 1.5rem; }
.admin-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.admin-panel-wide { grid-column: 1 / -1; }
.admin-panel { padding: 22px 0; }
.admin-panel-heading > span { flex-shrink: 0; font-size: .8125rem; border: 1px solid var(--line); padding: 4px 8px; border-radius: 4px; }
.admin-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
.admin-table th { padding: 12px 14px; background: var(--surface-soft); color: var(--muted); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.admin-table td { padding: 15px 14px; border-top: 1px solid var(--line); vertical-align: top; min-width: 100px; overflow-wrap: anywhere; max-width: 340px; }
.admin-table td > strong, .admin-table td > span:not(.status-badge,.service-hours-chip) { display: block; }
.admin-table td > span:not(.status-badge,.service-hours-chip) { margin-top: 5px; color: var(--muted); }
.admin-table td .status-badge { white-space: normal; }
.admin-table td .service-hours-chip strong { display: inline; }
.admin-table tbody tr:hover { background: var(--surface-soft); }
.admin-audit-details span { display: block; margin-top: 4px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-actions button:first-of-type { color: var(--accent); }
.admin-filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 15px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.admin-filter-help { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .875rem; }
.admin-filter-bar .app-button { justify-self: start; min-width: 110px; }
.admin-result-grid, .attention-grid, .admin-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-result-card, .attention-item, .admin-archive-card { display: flex; flex-direction: column; min-width: 0; gap: 9px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow-wrap: anywhere; }
.admin-result-card:hover, a.attention-item:hover { border-color: var(--accent); }
.admin-result-card > span, .attention-item > span, .admin-archive-card span { font-size: .8125rem; color: var(--muted); }
.admin-result-card strong, .attention-item strong, .admin-archive-card strong { font-size: 1rem; line-height: 1.4; }
.admin-result-card small, .attention-item small, .admin-archive-card small { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.admin-archive-card p { font-size: .875rem; }
.admin-pagination, .admin-archive-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; font-size: .875rem; }
.admin-quick-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.admin-quick-strip form { display: grid; gap: 8px; }
.admin-quick-strip button, .admin-tool-form button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 5px; background: var(--accent); color: #fff; padding: 10px 16px; font-size: .875rem; font-weight: 600; }
.admin-accordion { border-top: 1px solid var(--line); }
.admin-tool-section { border-bottom: 1px solid var(--line); }
.admin-tool-section summary { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 20px 0; }
.admin-tool-section summary span { font-weight: 700; }
.admin-tool-section summary small { color: var(--muted); font-size: .875rem; }
.admin-tool-section summary::after { content: "+"; margin-left: auto; font-size: 1.25rem; line-height: 1; }
.admin-tool-section[open] summary::after { content: "-"; }
.admin-tool-section-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 12px 0 28px; }
.admin-tool-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.admin-tool-form h3, .admin-form-span { grid-column: 1 / -1; }
.admin-tool-form h3 { font-size: 1rem; margin-bottom: 6px; }
.admin-tool-form button { grid-column: 1 / -1; justify-self: start; }
.admin-tool-form-short { grid-template-columns: 1fr; }
.admin-tool-note { padding: 20px; font-size: .875rem; color: var(--muted); }
.admin-note-list { padding-left: 20px; font-size: .875rem; color: var(--muted); }
.admin-note-list li + li { margin-top: 12px; }
.admin-folder-dock { position: fixed; left: 22px; bottom: 20px; z-index: 65; width: min(260px, calc(100% - 110px)); }
.admin-folder-dock details { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 8px 30px #172f2520; }
.admin-folder-dock summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; list-style: none; font-size: .9375rem; }
.admin-folder-dock details > div { max-height: 55vh; overflow-y: auto; padding: 6px 10px; }
.admin-folder-dock a { display: flex; justify-content: space-between; padding: 10px; border-radius: 4px; font-size: .875rem; }
.admin-folder-dock a:hover, .admin-folder-dock a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.admin-confirm-modal { max-width: min(500px, calc(100% - 32px)); padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); box-shadow: 0 20px 80px #0003; }
.admin-confirm-modal::backdrop { background: #10271bcc; }
.admin-confirm-modal h2 { font-size: 1.5rem; }
.admin-confirm-modal p { color: var(--muted); }

/* Support stays available without covering the active workspace. */
.support-widget { position: fixed; right: 22px; bottom: 20px; z-index: 80; }
.support-toggle { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 18px; border: 1px solid #ffffff40; border-radius: 6px; color: #fff; background: var(--accent); box-shadow: 0 6px 24px #172f2525; font-weight: 700; }
.support-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.support-panel { position: absolute; bottom: 62px; right: 0; width: min(430px, calc(100vw - 32px)); max-height: min(650px, calc(100dvh - 125px)); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 16px 70px #10271b35; overflow: hidden; }
.support-panel header { padding: 16px; display: flex; align-items: start; justify-content: space-between; gap: 16px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.support-panel header span { display: block; color: var(--muted); font-size: .8125rem; margin-top: 4px; }
.support-close { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 6px; border: 0; background: transparent; }
.support-thread-list { display: grid; gap: 6px; max-height: 150px; overflow-y: auto; flex-shrink: 0; padding: 10px; border-bottom: 1px solid var(--line); }
.support-thread-list button { display: grid; gap: 4px; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.support-thread-list button.is-active { background: var(--accent-soft); border-color: var(--accent); }
.support-thread-list span { font-size: .8125rem; color: var(--muted); }
.support-messages { min-height: 160px; max-height: 320px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.support-message { max-width: 92%; padding: 12px 14px; border-radius: 6px; background: var(--surface-soft); border: 1px solid var(--line); align-self: flex-start; overflow-wrap: anywhere; }
.support-message.from-admin { background: var(--accent-soft); border-color: #92c4b7; align-self: flex-end; }
.support-message strong, .support-message span { display: block; font-size: .8125rem; color: var(--muted); }
.support-message p { margin: 5px 0; font-size: .9375rem; }
.support-form { border-top: 1px solid var(--line); padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.support-form textarea { min-height: 48px; max-height: 120px; }
.support-error { padding: 10px 16px; margin: 0; color: var(--bad-text); background: var(--bad-bg); font-size: .875rem; }

html[data-admin-theme="dark"] .admin-body {
  color-scheme: dark; --bg: #18211e; --surface: #202c27; --surface-soft: #283830; --text: #edf5f0; --muted: #b3c6bb; --line: #41564a;
  --accent: #79d8be; --accent-hover: #91e4ce; --accent-soft: #233f35; --focus: #79d8be;
  --good-bg: #224332; --good-text: #a1e6b8; --warn-bg: #473c23; --warn-text: #f3d589; --bad-bg: #492c2d; --bad-text: #ffb5b7; --info-bg: #2e3b4c; --info-text: #bfd6ff;
}
html[data-admin-theme="dark"] .admin-body :is(.app-button:not(.app-button-secondary),.admin-theme-toggle button[aria-pressed="true"],.admin-tool-form button,.admin-quick-strip button,.support-toggle) { color: #123328; }
html[data-admin-theme="dark"] .admin-body input::placeholder, html[data-admin-theme="dark"] .admin-body textarea::placeholder { color: #9fb8a9; }
html[data-admin-theme="dark"] .admin-body input, html[data-admin-theme="dark"] .admin-body select, html[data-admin-theme="dark"] .admin-body textarea { border-color: #577062; }

@media (min-width: 1600px) {
  .home-hero { min-height: 710px; }
  .hero-inner { padding-top: 60px; }
  .hero-art { object-position: center 61%; }
}
@media (max-width: 1100px) {
  .site-header { padding-inline: 24px; gap: 20px; }
  .home-nav { gap: 18px; }
  .header-actions { gap: 14px; }
  .home-nav a, .header-cta { font-size: .875rem; }
  .content-width { width: calc(100% - 64px); }
  .hero-brand { font-size: 6rem; }
  .hero-headline { font-size: 2.25rem; }
  .hero-description { max-width: 390px; }
  .hero-art { object-position: 38% 58%; }
  .hero-actions { max-width: 410px; }
  .hero-actions .button { padding-inline: 16px; }
  .section-intro, .volunteer-layout, .faq-layout { gap: 44px; }
  h2 { font-size: 2.25rem; }
  .auth-layout { gap: 40px; }
  .admin-result-grid, .attention-grid, .admin-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .site-header { min-height: 76px; flex-wrap: wrap; }
  .home-nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .home-nav.is-open { display: flex; }
  .menu-toggle { display: grid; }
  .home-nav a { padding: 10px; font-size: 1rem; }
  .home-hero { min-height: 720px; }
  .hero-inner { padding-top: 42px; padding-bottom: 265px; }
  .hero-art { object-fit: cover; object-position: 25% center; }
  .hero-brand { font-size: 5rem; }
  .hero-description { max-width: 390px; }
  .hero-caption { display: none; }
  .section-intro { grid-template-columns: 1fr; gap: 24px; }
  .section-intro > p { max-width: 620px; }
  .volunteer-layout, .faq-layout { grid-template-columns: 1fr; }
  .volunteer-copy > p:not(.eyebrow) { max-width: 600px; }
  .how-steps, .clarity-grid { gap: 24px; }
  .home-section { padding-block: 64px; }
  .how-steps h3, .clarity-grid h3 { font-size: 1.125rem; }
  .principle-strip span { font-size: .875rem; gap: 8px; }
  .app-header { padding: 16px 24px; align-items: start; }
  .app-nav { justify-content: flex-end; }
  .app-shell, .admin-body .app-shell { width: calc(100% - 48px); }
  .app-dashboard-grid, .app-grid, .auth-layout { grid-template-columns: 1fr; }
  .auth-layout { gap: 28px; padding-top: 0; }
  .auth-intro h1 { font-size: 2rem; }
  .auth-note { margin-top: 20px; }
  .admin-header-side { align-items: start; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-panel-wide, .app-card-wide { grid-column: auto; }
  .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metric:nth-child(2n+1) { border-left: 0; }
  .admin-metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .admin-conversion-grid .admin-metric:nth-child(3n+1) { border-left: 1px solid var(--line); }
  .admin-conversion-grid .admin-metric:nth-child(2n+1) { border-left: 0; }
  .booking-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-info { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 580px) {
  .content-width { width: calc(100% - 40px); }
  .site-header { padding: 14px 20px; gap: 12px; }
  .brand { font-size: 1.5rem; }
  .header-cta { display: none; }
  .header-actions { gap: 16px; }
  .home-hero { min-height: 0; }
  .hero-inner { padding: 32px 0 240px; }
  .hero-art { height: 240px; top: auto; }
  .hero-brand { font-size: 4rem; margin-bottom: 20px; }
  .hero-headline { font-size: 2rem; }
  .hero-description { font-size: 1rem; max-width: 380px; }
  .hero-local { font-size: .8125rem; }
  .hero-actions { gap: 10px; margin-top: 22px; }
  .hero-actions .button { font-size: .875rem; padding: 12px 14px; gap: 9px; }
  .hero-actions .button svg { width: 17px; height: 17px; }
  .principle-strip > div { flex-wrap: wrap; justify-content: flex-start; gap: 12px 18px; padding-block: 20px; }
  .principle-strip span { font-size: .8125rem; }
  .eyebrow { font-size: .8125rem; }
  h2 { font-size: 2rem; }
  .home-section { padding-block: 56px; }
  .section-intro { margin-bottom: 34px; }
  .how-steps, .clarity-grid { grid-template-columns: 1fr; gap: 22px; }
  .step-top { margin-bottom: 17px; }
  .how-steps li { padding-top: 16px; }
  .how-steps h3, .clarity-grid h3 { font-size: 1.25rem; }
  .clarity-grid > article { border-top: 1px solid var(--line); padding-top: 24px; }
  .clarity-grid > article > svg { margin-bottom: 18px; }
  .volunteer-band, .faq-band { padding-block: 56px; }
  .join-band { padding-block: 50px; }
  .join-band > div { align-items: start; flex-direction: column; gap: 28px; }
  .join-actions { width: 100%; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; }
  .site-footer .footer-note { text-align: left; }
  .app-header { flex-direction: column; gap: 12px; padding: 18px 20px 10px; position: relative; }
  .app-nav { width: 100%; justify-content: start; gap: 4px; }
  .app-nav a, .app-nav button { padding-inline: 9px; font-size: .8125rem; }
  .app-shell, .admin-body .app-shell { width: calc(100% - 32px); padding-top: 26px; gap: 22px; }
  .app-hero-panel h1 { font-size: 1.75rem; }
  .app-actions { gap: 9px; }
  .app-actions .app-button { font-size: .875rem; padding-inline: 14px; }
  .app-card.app-form { padding: 22px 18px; }
  .app-form-grid { grid-template-columns: 1fr; gap: 18px; }
  .auth-layout { gap: 20px; }
  .auth-intro { padding-inline: 4px; }
  .auth-intro h1 { font-size: 1.875rem; }
  .auth-note { display: none; }
  .auth-switch { gap: 20px; }
  .app-list-row { flex-direction: column; gap: 14px; }
  .app-response-form { width: 100%; }
  .app-empty { padding: 26px 18px; }
  .booking-progress { grid-template-columns: 1fr; gap: 0; }
  .booking-progress li { border: 0; border-left: 3px solid var(--line); padding: 8px 0 8px 16px; }
  .booking-progress small { display: none; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-stat { border-left: none; border-top: 1px solid var(--line); padding: 16px 20px; }
  .dashboard-stat:first-child { border-top: none; }
  .dashboard-stat strong { font-size: 1.5rem; }
  .card-heading-row { flex-direction: column; gap: 12px; }
  .notification-row { flex-direction: column; gap: 12px; }
  .admin-header { padding-bottom: 20px; }
  .admin-header h1 { font-size: 1.75rem; }
  .admin-result-grid, .attention-grid, .admin-archive-grid, .admin-tool-section-body, .admin-quick-strip { grid-template-columns: 1fr; }
  .admin-filter-bar { padding: 16px; gap: 16px 10px; }
  .admin-filter-bar label { grid-column: 1 / -1; }
  .admin-filter-bar .app-button { min-width: 0; width: 100%; }
  .admin-metric { padding: 15px; }
  .admin-metric strong { font-size: 1.5rem; }
  .admin-tool-form { padding: 16px; grid-template-columns: 1fr; }
  .admin-tool-section summary { padding-block: 16px; }
  .admin-tool-section summary small { order: 3; width: 100%; }
  .admin-table-wrap { border-radius: 4px; }
  .admin-table td { min-width: 140px; }
  .admin-panel-heading { flex-wrap: wrap; }
  .support-widget { right: 16px; bottom: 16px; }
  .support-panel { right: -4px; }
  .support-toggle { min-height: 44px; padding: 10px 14px; }
  .admin-folder-dock { left: 16px; bottom: 16px; width: min(220px, calc(100% - 120px)); }
}
@media (max-width: 360px) {
  .hero-brand { font-size: 3.5rem; }
  .hero-actions { flex-direction: column; align-items: start; }
  .hero-actions .button { min-width: 205px; }
  .hero-inner { padding-bottom: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  :is(.button, .app-button, button):hover, :is(.button, .app-button, button):active { transform: none; }
}
@media (forced-colors: active) {
  .status-badge, .app-button, .button { border: 1px solid ButtonText; }
  .hero-art { opacity: .12; }
}
