:root {
    color-scheme: light;
    font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --brand-primary: #2e6f61;
    --brand-accent: #5b3b98;
    --brand-surface: #f6f7f3;
    --brand-ink: #202c2a;
    --text-muted: #56615e;
    --line: #dce2de;
    --surface: #ffffff;
    --surface-soft: #eff2ee;
    --danger: #a3343f;
    --success: #286c4c;
    --warning: #8a5a12;
    --radius: 12px;
    --content-width: 1180px;
    --admin-bg: #fff;
    --admin-surface: #fff;
    --admin-text: #000;
    --admin-muted: #4d4d4d;
    --admin-line: #d8d8d8;
    --admin-hover: #f4f4f4;
}

html[data-admin-theme="dark"] {
    color-scheme: dark;
    --admin-bg: #000;
    --admin-surface: #000;
    --admin-text: #fff;
    --admin-muted: #c2c2c2;
    --admin-line: #383838;
    --admin-hover: #171717;
    --brand-ink: #fff;
    --text-muted: #c2c2c2;
    --line: #383838;
    --surface: #000;
    --surface-soft: #000;
}

html[data-admin-theme="light"] {
    color-scheme: light;
    --brand-ink: #000;
    --text-muted: #4d4d4d;
    --line: #d8d8d8;
    --surface: #fff;
    --surface-soft: #fff;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--brand-ink); background: var(--brand-surface); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand-primary); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
::selection { color: #fff; background: var(--brand-accent); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: #9aa8a1; border: 3px solid var(--brand-surface); border-radius: 8px; }
::-webkit-scrollbar-track { background: var(--brand-surface); }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 30; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 14px; color: #fff; background: var(--brand-ink); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Public service and booking pages */
.site-body { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { width: min(var(--content-width), calc(100% - 48px)); margin: 0 auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--brand-ink); text-decoration: none; font-weight: 760; letter-spacing: -.025em; }
.wordmark-name { font-size: 1.1rem; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--brand-ink); text-decoration: none; font-size: .94rem; font-weight: 600; }
.site-nav a:hover { color: var(--brand-primary); }
.site-nav .nav-cta { color: #fff; background: var(--brand-primary); padding: 10px 16px; border-radius: 9px; }
.site-nav .nav-cta:hover { color: #fff; filter: brightness(.92); }
.home-page { width: min(var(--content-width), calc(100% - 48px)); flex: 1; margin: 0 auto; padding: 0 0 80px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .55fr); align-items: end; gap: clamp(32px, 7vw, 104px); padding: clamp(28px, 5vw, 66px) 0 clamp(38px, 6vw, 76px); border-bottom: 1px solid var(--line); }
.home-hero-copy { max-width: 850px; }
.home-hero h1 { max-width: 13ch; margin-bottom: 20px; color: var(--brand-ink); font-size: clamp(2.7rem, 6.7vw, 5.7rem); line-height: .99; letter-spacing: -.045em; }
.home-hero-copy > p:first-of-type { max-width: 58ch; margin-bottom: 28px; color: var(--text-muted); font-size: clamp(1.04rem, 1.5vw, 1.25rem); line-height: 1.6; }
.home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-action { position: relative; display: grid; min-height: 112px; align-content: center; gap: 5px; padding: 16px 20px; border: 1px solid color-mix(in srgb, var(--brand-primary) 46%, var(--line)); border-radius: 10px; color: var(--brand-ink); background: var(--brand-surface); text-decoration: none; transition: transform .18s ease-out, background-color .18s ease-out, color .18s ease-out; }
.home-action:hover { transform: translateY(-2px); }
.home-action:hover { color: var(--brand-primary); background: color-mix(in srgb, var(--brand-surface) 75%, white); }
.home-action > span:first-child { font-size: .98rem; font-weight: 750; }
.home-action-detail { color: inherit; opacity: .84; font-size: .79rem; line-height: 1.4; }
.home-action > svg { position: absolute; top: 50%; right: 17px; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-action-contact { align-content: center; }
.home-contact-options { display: flex; gap: 9px; margin-top: 5px; }
.home-contact-options a { display: inline-flex; min-height: 29px; align-items: center; padding: 3px 11px; border: 1px solid color-mix(in srgb, var(--brand-primary) 35%, var(--line)); border-radius: 5px; color: var(--brand-primary); font-size: .79rem; font-weight: 700; text-decoration: none; }
.home-contact-options a:hover { color: #fff; background: var(--brand-primary); }
.home-expectation { max-width: 70ch; margin: 13px 0 0; color: var(--text-muted); font-size: .79rem; line-height: 1.5; }
.home-service-note { max-width: 290px; padding-bottom: 7px; }
.home-note-rule { display: block; width: 46px; height: 3px; margin-bottom: 18px; background: var(--brand-accent); }
.home-service-note h2 { max-width: 13ch; margin-bottom: 10px; font-size: 1.55rem; line-height: 1.15; }
.home-service-note p { margin-bottom: 17px; color: var(--text-muted); font-size: .94rem; line-height: 1.65; }
.home-section { padding: clamp(34px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.home-section-heading h2, .home-process h2 { margin-bottom: 7px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.03em; }
.home-section-heading p, .home-process > div > p { margin: 0; color: var(--text-muted); line-height: 1.5; }
.home-service-list { border-top: 1px solid var(--line); }
.home-service-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.home-service-row h3 { margin: 0 0 5px; font-size: 1rem; }
.home-service-row p { max-width: 70ch; margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.5; }
.home-service-row .text-link, .home-section-heading .text-link { flex: 0 0 auto; }
.home-empty { padding: 22px 0; border-top: 1px solid var(--line); color: var(--text-muted); }
.home-empty p { margin: 0; }
.home-coming-soon { color: var(--text-muted); font-size: .84rem; }
.home-process { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 7vw, 100px); padding: clamp(38px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.home-process > div > p { max-width: 40ch; }
.home-process ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.home-process li { display: grid; align-content: start; gap: 8px; padding-top: 13px; border-top: 2px solid var(--brand-accent); }
.home-process li strong { color: var(--brand-ink); font-size: .94rem; }
.home-process li span { color: var(--text-muted); font-size: .84rem; line-height: 1.55; }
.home-area-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.home-area-list li { padding: 8px 12px; border-radius: 5px; color: var(--brand-ink); background: color-mix(in srgb, var(--brand-primary) 9%, var(--brand-surface)); font-size: .84rem; }
.home-proof { padding: clamp(34px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); }
.home-review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-review-list article { min-width: 0; padding-top: 15px; border-top: 1px solid var(--line); }
.home-review-rating { margin-bottom: 9px; color: var(--brand-primary); letter-spacing: .08em; }
.home-review-list h3 { margin-bottom: 7px; font-size: 1rem; }
.home-review-list p { margin-bottom: 10px; color: var(--text-muted); font-size: .9rem; line-height: 1.55; }
.home-review-list time { color: var(--text-muted); font-size: .77rem; }
.home-faq { border-bottom: 0; }
.home-faq .faq-list { margin: 0; }
.home-faq .faq-item { background: var(--brand-surface); }
.site-main { width: min(var(--content-width), calc(100% - 48px)); flex: 1; margin: 0 auto; padding: 56px 0 80px; }
.content-page { width: min(100%, 920px); margin: 0 auto; }
.narrow-content { max-width: 720px; }
.page-intro { max-width: 70ch; margin-bottom: 34px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(2rem, 3.8vw, 3.15rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 720; }
h2 { margin-bottom: 10px; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.02em; }
h3 { margin-bottom: 8px; font-size: 1.25rem; line-height: 1.3; }
.page-intro p, .prose-block p, .contact-details p { max-width: 70ch; color: var(--text-muted); font-size: 1.04rem; }
.page-intro .lead { color: var(--brand-primary); font-size: 1.25rem; font-weight: 650; }
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.service-copy p { margin: 6px 0 0; color: var(--text-muted); max-width: 72ch; }
.service-detail { font-size: .92rem; }
.service-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.service-title-line h2 { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.estimate-note, .form-note, .field-help, .fieldset-help { color: var(--text-muted); font-size: .91rem; }
.estimate-note { margin-top: 28px; }
.status-pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; color: #35433f; background: #e8eeeb; font-size: .78rem; line-height: 1.25; font-weight: 700; text-transform: capitalize; }
.status-coming, .status-requested, .status-quoted { color: #714710; background: #f7edda; }
.status-confirmed, .status-assigned, .status-active { color: #225b45; background: #e1f0e7; }
.status-in-progress { color: #245179; background: #e2eef8; }
.status-completed { color: #46544e; background: #e8ece9; }
.status-cancelled, .status-inactive, .status-void { color: #8a2d37; background: #f5e5e6; }
.empty-state { margin: 20px 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-state p { max-width: 65ch; color: var(--text-muted); }
.empty-state.compact { padding: 20px 0; }
.prose-block { padding-top: 24px; border-top: 1px solid var(--line); }
.prose-block p { margin-bottom: 18px; }
.contact-details { display: grid; gap: 22px; margin: 30px 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-details h2 { margin-bottom: 5px; font-size: 1rem; }
.contact-value { font-size: 1.15rem; font-weight: 650; }
.site-footer { width: min(var(--content-width), calc(100% - 48px)); margin: 0 auto; padding: 22px 0; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: .88rem; }
.footer-pages { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.footer-pages a { color: var(--text-muted); font-size: .82rem; text-decoration: none; }
.footer-pages a:hover { color: var(--brand-primary); text-decoration: underline; }
.slug-input { display: flex; align-items: center; border: 1px solid #aeb9b4; border-radius: 8px; overflow: hidden; background: #fff; }
.slug-input > span { flex: 0 0 auto; padding: 11px 0 11px 12px; color: #56615e; font-size: .86rem; }
.slug-input input { min-width: 0; border: 0 !important; border-radius: 0 !important; }
.slug-input:focus-within { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.website-page-form { max-width: 900px; }
.website-page-form textarea { min-height: 120px; }
.form-optional-section { padding: 16px; border: 1px solid var(--admin-line); border-radius: 8px; }
.form-optional-section summary { cursor: pointer; font-weight: 700; }
.form-optional-section .form-grid { margin-top: 16px; }
.revision-card { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--admin-line); border-radius: 8px; background: var(--admin-surface); }
.revision-card + .revision-card { margin-top: 12px; }
.revision-card > header, .revision-card > header > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.revision-card > header { justify-content: space-between; color: var(--admin-muted); font-size: .78rem; }
.revision-card h2, .revision-card p { margin: 0; }
.revision-card h2 { font-size: .95rem; }
.revision-slug { color: var(--admin-muted); font-size: .78rem; }
.revision-excerpt { max-width: 75ch; color: var(--admin-muted); font-size: .84rem; }
.revision-excerpt p { margin: 0 0 6px; }
.cms-content { max-width: 75ch; }
.cms-content p { white-space: pre-line; }
.cms-page-footer { margin-top: 32px; }
.error-page { display: grid; justify-items: start; align-content: center; min-height: 42vh; gap: 12px; }
.error-page .eyebrow { margin: 0; color: var(--brand-primary); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.error-page h1, .error-page p { margin: 0; }
.notice-warning { color: #67430c; background: #fff2d7; border: 1px solid #e6c989; }
.site-footer p { margin: 0; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--text-muted); }
.field-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--brand-ink); font-size: .92rem; line-height: 1.5; }
.field-consent input { flex: 0 0 16px; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand-primary); }
.feedback-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.public-review-list { display: grid; gap: 18px; margin: 30px 0; }
.public-review { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.public-review header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; color: var(--text-muted); font-size: .9rem; }
.public-review-stars { color: var(--brand-primary); letter-spacing: .08em; font-size: 1.1rem; }
.public-review h2 { font-size: 1.18rem; }
.public-review p { margin-bottom: 10px; line-height: 1.65; }
.public-review-attribution { color: var(--text-muted); font-size: .9rem; font-weight: 650; }
.faq-list { display: grid; gap: 12px; margin: 28px 0; }
.faq-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--brand-ink); font-weight: 680; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--brand-primary); font-size: 1.35rem; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { max-width: 72ch; padding-top: 14px; color: var(--text-muted); line-height: 1.7; white-space: pre-line; }
.faq-answer p:last-child { margin-bottom: 0; }

.estimate-panel { display: grid; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.estimate-panel-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.estimate-panel-heading h2 { margin-bottom: 4px; font-size: 1.12rem; }
.estimate-panel-heading p, .estimate-panel .estimate-note { margin: 0; color: var(--text-muted); font-size: .9rem; }
.estimate-total { color: var(--brand-primary); font-size: 1.35rem; line-height: 1.25; white-space: nowrap; }
.estimate-lines { display: grid; gap: 7px; margin: 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line); }
.estimate-lines li { display: flex; justify-content: space-between; gap: 14px; font-size: .9rem; }
.estimate-lines li strong { white-space: nowrap; }

.form-panel { display: grid; gap: 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form-panel fieldset { min-width: 0; margin: 0; padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--line); }
.form-panel legend { margin-bottom: 14px; font-size: 1.12rem; font-weight: 700; }
.security-check { padding: 14px !important; background: var(--surface-soft); border: 1px solid var(--line) !important; border-radius: 8px; }
.security-check .fieldset-help { margin: -6px 0 12px; }
.security-check .field { max-width: 260px; }
.fieldset-help { margin: -8px 0 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid-small { grid-template-columns: repeat(3, minmax(0, 150px)); margin-top: 16px; }
.booking-extras { min-width: 0; margin-top: 18px; }
.booking-extra-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.booking-extra-option { display: block; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.booking-extra-option.has-quantity { display: grid; grid-template-columns: minmax(0, 1fr) 116px; align-items: center; gap: 12px; }
.booking-extra-choice { display: flex; align-items: flex-start; gap: 10px; min-width: 0; cursor: pointer; }
.booking-extra-choice > input { flex: 0 0 16px; width: 16px; min-height: 16px; margin: 2px 0 0; accent-color: var(--brand-primary); }
.booking-extra-choice > span { display: grid; gap: 3px; min-width: 0; }
.booking-extra-option small, .booking-extras-empty { color: var(--text-muted); font-size: .84rem; line-height: 1.45; }
.booking-extra-quantity { display: grid; gap: 4px; color: var(--text-muted); font-size: .76rem; font-weight: 650; }
.booking-extra-quantity input { width: 100%; min-height: 38px; padding: 7px 9px; color: var(--brand-ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.booking-extra-quantity input:disabled { opacity: .55; cursor: not-allowed; }
.booking-extras-empty { grid-column: 1 / -1; margin: 0; }
.field { display: grid; align-content: start; gap: 6px; color: var(--brand-ink); font-size: .92rem; font-weight: 650; }
.field-wide { grid-column: 1 / -1; }
.optional { color: var(--text-muted); font-size: .84rem; font-weight: 450; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .inline-assignment select { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--brand-ink); background: #fff; border: 1px solid #aeb9b4; border-radius: 8px; }
.field textarea { min-height: 86px; resize: vertical; }
.field input:not([type="checkbox"]):not([type="radio"]):hover, .field select:hover, .field textarea:hover { border-color: var(--brand-primary); }
.field input:not([type="checkbox"]):not([type="radio"]):disabled, .field select:disabled, .field textarea:disabled { color: #68736f; background: #eef0ed; cursor: not-allowed; }
.admin-body input[type="checkbox"], input[type="checkbox"] {
    box-sizing: border-box;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    accent-color: var(--brand-primary);
    vertical-align: middle;
}
.admin-body .field.checkbox-field {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 4px 9px;
    font-weight: 500;
    line-height: 1.45;
}
.admin-body .field.checkbox-field > input[type="checkbox"] { grid-column: 1; grid-row: 1; margin-top: 2px; }
.admin-body .field.checkbox-field > span { grid-column: 2; }
.admin-body .field.checkbox-field > .field-error { grid-column: 2; }
.admin-body .check-field { display: flex; align-items: flex-start; gap: 9px; line-height: 1.45; cursor: pointer; }
.admin-body .check-field > input[type="checkbox"] { flex: 0 0 16px; margin-top: 2px; }
.field-error { color: var(--danger); font-size: .84rem; font-weight: 550; }
.form-alert, .notice { padding: 12px 14px; border-radius: 8px; font-size: .93rem; }
.form-alert-error, .notice-error { color: #78252e; background: #f8e9e9; }
.form-alert-success, .notice-success { color: #225b45; background: #e4f2e9; }
.form-alert p { margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-actions p { margin: 0; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
.button-primary { color: #fff; background: var(--brand-primary); }
.button-primary:hover { color: #fff; background: color-mix(in srgb, var(--brand-primary) 88%, black); }
.button-secondary { color: var(--brand-primary); background: #fff; border-color: var(--brand-primary); }
.button-secondary:hover { background: color-mix(in srgb, var(--brand-primary) 8%, white); }
.button-small { min-height: 36px; padding: 7px 11px; font-size: .86rem; }
.button-full { width: 100%; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.confirmation-panel { padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.confirmation-panel p { color: var(--text-muted); max-width: 65ch; }
.confirmation-indicator { width: 18px; height: 18px; display: block; margin: 0 0 20px; background: var(--success); border-radius: 50%; }
.reference-number { margin: 24px 0; color: var(--brand-ink) !important; }

/* Authenticated administration */
.admin-body { min-height: 100vh; color: var(--admin-text); background: var(--admin-bg); }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0,1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; color: var(--admin-text); background: var(--admin-bg); border-right: 1px solid var(--admin-line); }
.admin-wordmark { display: grid; gap: 4px; padding: 4px 9px 24px; color: var(--admin-text); text-decoration: none; font-size: 1.12rem; font-weight: 750; letter-spacing: -.02em; }
.admin-wordmark small { color: var(--admin-muted); font-size: .69rem; letter-spacing: .12em; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { min-height: 30px; padding: 6px 9px; border-radius: 6px; color: var(--admin-muted); text-decoration: none; font-size: .86rem; font-weight: 600; }
.admin-nav a:hover { background: var(--admin-hover); }
.admin-nav a.is-active { color: #fff; background: var(--brand-primary); }
.public-site-link { margin: auto 12px 4px; padding-top: 18px; color: var(--admin-muted); text-decoration: none; font-size: .82rem; }
.public-site-link:hover { color: var(--admin-text); text-decoration: underline; }
.admin-workspace { min-width: 0; }
.admin-topbar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 24px; color: var(--admin-text); background: var(--admin-bg); border-bottom: 1px solid var(--admin-line); }
.admin-topbar > p { margin: 0; color: var(--admin-muted); font-size: .84rem; font-weight: 650; }
.admin-account { display: flex; align-items: center; gap: 12px; color: var(--admin-muted); font-size: .82rem; }
.admin-account form { margin: 0; }
.text-button { min-height: 28px; padding: 3px 0; color: var(--brand-primary); background: transparent; border: 0; font-size: .8rem; font-weight: 700; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.text-button-danger { color: var(--danger); }
.button-danger { color: #fff; background: #a82938; border: 1px solid #a82938; }
.theme-toggle { min-height: 28px; padding: 4px 8px; color: var(--admin-text); background: var(--admin-bg); border: 1px solid var(--admin-line); border-radius: 5px; font-size: .77rem; font-weight: 650; line-height: 1.1; cursor: pointer; }
.theme-toggle:hover { background: var(--admin-hover); }
.demo-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; padding: 8px 24px; color: var(--admin-muted); background: var(--admin-bg); border-bottom: 1px solid var(--admin-line); font-size: .76rem; line-height: 1.35; }
.demo-banner strong { color: var(--admin-text); }
.demo-warning { padding: 10px 12px; color: var(--admin-text); background: var(--admin-bg); border: 1px solid var(--admin-line); border-radius: 6px; font-size: .82rem; line-height: 1.45; }
.demo-warning strong { margin-right: 4px; }
.admin-main { width: min(100%, 1480px); margin: 0 auto; padding: 32px; }
.admin-body .button { min-height: 30px; padding: 5px 9px; border-radius: 6px; font-size: .82rem; line-height: 1.1; }
.admin-body .button-small { min-height: 26px; padding: 3px 8px; font-size: .76rem; }
.admin-body .button-secondary { color: var(--brand-primary); background: var(--admin-bg); border-color: var(--brand-primary); }
.admin-body .button-secondary:hover { background: var(--admin-hover); }
.admin-body .form-panel { color: var(--admin-text); background: var(--admin-surface); border-color: var(--admin-line); }
.admin-body .field { color: var(--admin-text); }
.admin-body input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.admin-body select,
.admin-body textarea { color: var(--admin-text); background: var(--admin-bg); border-color: var(--admin-line); color-scheme: inherit; }
.admin-body input::placeholder, .admin-body textarea::placeholder { color: var(--admin-muted); opacity: .8; }
.admin-page { display: grid; gap: 26px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; }
.page-heading h1 { margin-bottom: 6px; font-size: 1.9rem; letter-spacing: -.03em; }
.page-heading p { margin: 0; color: var(--text-muted); }
.summary-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-strip > div { min-width: 0; padding: 17px 20px 18px 0; border-bottom: 1px solid var(--line); }
.summary-strip > div:nth-child(3n+2), .summary-strip > div:nth-child(3n+3) { padding-left: 20px; border-left: 1px solid var(--line); }
.summary-strip dt { color: var(--text-muted); font-size: .86rem; font-weight: 650; }
.summary-strip dd { margin: 4px 0 5px; font-size: 1.7rem; line-height: 1.1; font-weight: 730; font-variant-numeric: tabular-nums; }
.summary-strip a, .summary-strip span { color: var(--text-muted); font-size: .82rem; }
.summary-strip a:hover { color: var(--brand-primary); }
.data-section { display: grid; gap: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.detail-wide { grid-column: 1 / -1; }
.detail-list { display: grid; gap: 0; margin: 0; }
.detail-list > div { display: grid; grid-template-columns: minmax(125px, .35fr) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--admin-line); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--admin-muted); font-size: .82rem; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; font-size: .9rem; }
.assigned-list { display: grid; gap: 8px; }
.assigned-list > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid var(--admin-line); border-radius: 6px; }
.assigned-list > div > span:nth-child(2) { color: var(--admin-muted); font-size: .78rem; }
.booking-task-list { display: grid; gap: 10px; }
.booking-task-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.8fr); align-items: start; gap: 18px; padding: 14px; border: 1px solid var(--admin-line); border-radius: 12px; background: var(--admin-surface-soft); }
.booking-task-summary, .booking-task-approval { display: grid; justify-items: start; align-content: start; gap: 6px; min-width: 0; }
.booking-task-summary p, .booking-task-approval p { margin: 0; color: var(--admin-muted); font-size: .84rem; }
.task-approval-form { display: grid; grid-template-columns: minmax(140px,.7fr) minmax(180px,1fr) auto; align-items: end; gap: 8px; width: 100%; }
.task-approval-form .field { margin: 0; font-size: .78rem; }
.task-approval-form .field input:not([type="checkbox"]):not([type="radio"]), .task-approval-form .field select { min-height: 34px; }
.staffing-note { display: grid; gap: 4px; padding: 12px; background: var(--admin-bg); border: 1px solid var(--admin-line); border-radius: 4px; font-size: .82rem; }
.staffing-note span { color: var(--admin-muted); }
.timeline-list { display: grid; gap: 0; }
.timeline-list article { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--admin-line); }
.timeline-list article:last-child { border-bottom: 0; }
.timeline-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--brand-primary); }
.timeline-list p { margin: 3px 0; font-size: .84rem; }
.timeline-list small { color: var(--admin-muted); font-size: .75rem; }
.cancel-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-heading h2 { margin-bottom: 4px; }
.section-heading p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.table-wrap { min-width: 0; overflow-x: auto; color: var(--admin-text); background: var(--admin-surface); border: 1px solid var(--admin-line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
.data-table th { padding: 9px 11px; color: var(--admin-muted); background: var(--admin-surface); border-bottom: 1px solid var(--admin-line); font-size: .74rem; font-weight: 700; letter-spacing: .025em; }
.data-table td { padding: 10px 11px; vertical-align: middle; border-top: 1px solid var(--admin-line); }
.data-table tr:hover td { background: var(--admin-hover); }
.data-table td strong, .data-table td small, .data-table td span { display: block; }
.table-secondary { margin-top: 3px; color: var(--admin-muted); font-size: .76rem; }
.table-link { color: var(--admin-text); font-weight: 700; }
.numeric { white-space: nowrap; font-variant-numeric: tabular-nums; }
.booking-actions { min-width: 190px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.booking-actions form { margin: 0; }
.follow-up-controls { min-width: 320px; display: flex; align-items: center; gap: 7px; }
.follow-up-controls form { display: flex; align-items: center; margin: 0; }
.follow-up-controls .inline-assignment select { width: 142px; }
.compact-input { width: 180px; min-width: 150px; min-height: 28px; padding: 4px 7px; border: 1px solid var(--admin-line); border-radius: 5px; color: var(--admin-text); background: var(--admin-bg); font-size: .76rem; }
.admin-body .notice-success .field { display: grid; gap: 6px; margin: 12px 0 4px; }
.admin-body .notice-success input[readonly] { width: min(100%, 820px); padding: 8px 10px; border: 1px solid var(--admin-line); border-radius: 5px; color: var(--admin-text); background: var(--admin-surface); font: inherit; }
.inline-assignment { display: flex; gap: 6px; }
.inline-assignment select { width: 150px; min-height: 30px; padding: 4px 7px; border: 1px solid var(--admin-line); border-radius: 5px; background: var(--admin-bg); color: var(--admin-text); }
.notice { margin-top: -8px; }
.split-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(270px,.8fr); align-items: start; gap: 22px; }
.split-layout > .table-wrap { align-self: start; }
.compact-form { gap: 16px; padding: 22px; }
.compact-form h2, .form-panel h2 { margin: 0; }
.compact-form > p { margin: -10px 0 0; color: var(--text-muted); font-size: .9rem; }
.compact-form .button { justify-self: start; }
.narrow-admin-page { max-width: 820px; }
.settings-form { gap: 18px; }
.settings-form h2:not(:first-of-type) { padding-top: 14px; border-top: 1px solid var(--line); }
.color-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.color-field { grid-template-columns: 1fr auto; align-items: center; }
.color-field input[type=color] { width: 54px; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.color-field .field-help, .color-field .field-error { grid-column: 1 / -1; }
.catalog-columns { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.85fr); align-items: start; gap: 24px; }
.catalog-list, .catalog-forms { display: grid; gap: 20px; }
.area-heading { margin-top: 10px; }
.empty-inline { padding: 14px; margin: 0; color: var(--text-muted); font-size: .9rem; }
.check-field { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; line-height: 1.45; }
.check-field input { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand-primary); }

/* Sign-in */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--brand-surface); }
.auth-layout { width: min(100%, 430px); display: grid; gap: 20px; }
.auth-wordmark { text-align: center; }
.auth-panel { display: grid; gap: 18px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.auth-panel h1 { margin: 0; font-size: 1.55rem; }
.auth-panel > p { margin: -9px 0 0; color: var(--text-muted); }
.stacked-form { display: grid; gap: 16px; }
.auth-layout > .text-link { justify-self: center; }
.staff-header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 24px; background: var(--brand-ink); }
.staff-header .admin-wordmark { padding: 0; }
.staff-header .admin-account { color: #e4ebe7; }
.staff-header .text-button { color: #fff; }
.staff-portal-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; min-width: 0; }
.staff-portal-nav a { padding: 7px 10px; color: #e4ebe7; border-radius: 6px; font-size: .8rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.staff-portal-nav a:hover, .staff-portal-nav a:focus-visible { color: #fff; background: rgb(255 255 255 / 12%); }
.staff-portal-nav a.is-active { color: #fff; background: rgb(255 255 255 / 18%); }
.staff-main { width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 64px; }
.staff-job-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.staff-job { padding: 22px 0; border-bottom: 1px solid var(--line); }
.staff-job-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.staff-job-heading h2 { margin: 0; }
.job-reference { margin: 0 0 5px; color: var(--text-muted); font-size: .8rem; font-weight: 700; }
.job-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 24px; margin: 18px 0; }
.job-details dt { color: var(--text-muted); font-size: .8rem; font-weight: 700; }
.job-details dd { display: grid; gap: 2px; margin: 4px 0 0; }
.staff-job-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.staff-job-actions form { margin: 0; }
.staff-checklist { margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); }
.staff-checklist summary { cursor: pointer; font-weight: 750; }
.staff-checklist-items { display: grid; gap: 10px; margin-top: 12px; }
.staff-checklist-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: start; border-top: 1px solid var(--line); padding-top: 12px; }
.staff-checklist-item p { margin: 5px 0 0; color: var(--text-muted); font-size: .9rem; }
.staff-task-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.staff-task-actions form { display: flex; align-items: center; gap: 5px; margin: 0; }
.staff-task-actions input[name="completionNote"] { width: min(220px, 45vw); min-height: 32px; }

@media (max-width: 1000px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; padding: 14px 18px 10px; }
    .admin-wordmark { padding: 0 0 12px; }
    .admin-nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
    .admin-nav a { flex: 0 0 auto; white-space: nowrap; }
    .public-site-link { margin: 8px 10px 0; padding-top: 8px; }
    .admin-topbar { padding: 8px 18px; }
    .demo-banner { padding: 8px 18px; }
    .admin-main { padding: 24px 20px; }
}
@media (max-width: 720px) {
    .site-header { width: calc(100% - 32px); min-height: 68px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding: 14px 0; }
    .site-nav { width: 100%; gap: 16px; overflow-x: auto; padding-bottom: 2px; }
    .site-nav a { flex: 0 0 auto; font-size: .87rem; }
    .site-nav .nav-cta { padding: 8px 11px; }
    .site-main { width: calc(100% - 32px); padding: 36px 0 56px; }
    .site-footer { width: calc(100% - 32px); flex-direction: column; }
    .service-row { grid-template-columns: 1fr; gap: 12px; }
    .service-row .text-link { justify-self: start; }
    .form-panel { padding: 20px; }
    .form-grid, .form-grid-small, .booking-extra-options { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .page-heading .button { align-self: flex-start; }
    .admin-topbar { align-items: flex-start; flex-direction: column; gap: 8px; }
    .admin-account { width: 100%; justify-content: space-between; }
    .admin-main { padding: 22px 16px 36px; }
    .summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .summary-strip > div { padding: 14px 10px 14px 0; }
    .summary-strip > div:nth-child(3n+2), .summary-strip > div:nth-child(3n+3) { padding-left: 0; border-left: 0; }
    .summary-strip > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
    .split-layout, .catalog-columns { grid-template-columns: 1fr; }
    .table-wrap { overflow: visible; background: transparent; border: 0; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    .data-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; margin-bottom: 10px; padding: 7px 10px; color: var(--admin-text); background: var(--admin-surface); border: 1px solid var(--admin-line); border-radius: 7px; }
    .data-table td { min-width: 0; padding: 9px 0; border: 0; overflow-wrap: anywhere; }
    .data-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--admin-muted); font-size: .7rem; font-weight: 700; }
    .data-table td.booking-actions { grid-column: 1 / -1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
    .data-table td.booking-actions::before { width: 100%; }
    .inline-assignment { max-width: 100%; }
    .inline-assignment select { max-width: 165px; }
    .color-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .staff-header { align-items: flex-start; flex-direction: column; padding: 14px 16px; }
    .staff-main { width: calc(100% - 32px); padding: 26px 0 44px; }
    .job-details { grid-template-columns: 1fr; }
    .staff-checklist-item { grid-template-columns: 1fr; }
    .staff-task-actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Refined admin interface */
.admin-body {
    --admin-bg: #fff;
    --admin-surface: #fff;
    --admin-text: #111;
    --admin-muted: #666;
    --admin-line: #e5e5e5;
    --admin-hover: #f6f6f6;
    color: var(--admin-text);
    background: var(--admin-bg);
    font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}
html[data-admin-theme="dark"] .admin-body {
    --admin-bg: #000;
    --admin-surface: #000;
    --admin-text: #f5f5f5;
    --admin-muted: #aaa;
    --admin-line: #292929;
    --admin-hover: #111;
}
.admin-shell { grid-template-columns: 224px minmax(0, 1fr); }
.admin-sidebar { z-index: 2; padding: 21px 13px 16px; border-right-color: var(--admin-line); }
.admin-wordmark { padding: 4px 10px 23px; font-size: 1rem; letter-spacing: -.025em; }
.admin-wordmark small { margin-top: 2px; font-size: .62rem; letter-spacing: .14em; }
.admin-nav { gap: 2px; }
.admin-nav .nav-group-label { margin: 14px 10px 4px; color: var(--admin-muted); font-size: .62rem; font-weight: 750; letter-spacing: .12em; }
.admin-nav .nav-group-label:first-child { margin-top: 0; }
.admin-nav a { min-height: 32px; display: flex; align-items: center; padding: 6px 10px; border-radius: 5px; font-size: .81rem; font-weight: 570; }
.admin-nav a.is-active { color: #fff; background: var(--brand-primary); }
.public-site-link { margin-right: 10px; margin-left: 10px; font-size: .77rem; }
.admin-topbar { position: sticky; top: 0; z-index: 1; min-height: 54px; padding: 7px 27px; }
.admin-topbar > p { color: var(--admin-text); font-size: .8rem; font-weight: 650; }
.admin-account { gap: 15px; font-size: .76rem; }
.theme-toggle { min-height: 26px; padding: 4px 8px; border-radius: 4px; font-size: .72rem; }
.text-button { min-height: 26px; font-size: .75rem; }
.demo-banner { padding: 7px 27px; border-bottom-color: var(--admin-line); font-size: .7rem; }
.admin-main { width: min(100%, 1580px); padding: 30px 34px 48px; }
.admin-page { gap: 22px; }
.page-heading { align-items: center; gap: 18px; }
.page-heading h1 { margin: 0 0 4px; font-size: 1.65rem; line-height: 1.2; letter-spacing: -.035em; font-weight: 675; }
.page-heading p { color: var(--admin-muted); font-size: .85rem; }
.admin-body .button { min-height: 28px; padding: 5px 9px; border-radius: 4px; font-size: .75rem; font-weight: 650; }
.admin-body .button-small { min-height: 23px; padding: 3px 7px; font-size: .68rem; }
.admin-body .button-primary { color: #fff; }
.admin-body .button-secondary { color: var(--admin-text); background: var(--admin-bg); border-color: var(--admin-line); }
.admin-body .button-secondary:hover { border-color: var(--brand-primary); }
.admin-body .text-button-danger { color: #b43a44; }
.summary-strip { border-color: var(--admin-line); }
.summary-strip > div { padding: 15px 18px 14px 0; border-color: var(--admin-line); }
.summary-strip > div:nth-child(3n+2), .summary-strip > div:nth-child(3n+3) { padding-left: 18px; border-left-color: var(--admin-line); }
.summary-strip dt { color: var(--admin-muted); font-size: .76rem; font-weight: 600; }
.summary-strip dd { margin: 7px 0 3px; font-size: 1.5rem; font-weight: 670; letter-spacing: -.025em; }
.summary-strip a, .summary-strip span { color: var(--admin-muted); font-size: .73rem; }
.data-section { gap: 10px; min-width: 0; }
.section-heading h2 { margin: 0 0 3px; font-size: 1rem; font-weight: 660; letter-spacing: -.015em; }
.section-heading p { color: var(--admin-muted); font-size: .76rem; }
.table-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; padding: 11px; background: var(--admin-bg); border: 1px solid var(--admin-line); border-radius: 5px; }
.table-tools label { display: grid; gap: 4px; color: var(--admin-muted); font-size: .67rem; font-weight: 650; }
.table-tools .search-control { flex: 1 1 230px; max-width: 360px; }
.table-tools .filter-control { flex: 0 1 155px; min-width: 112px; }
.table-tools input, .table-tools select { width: 100%; min-width: 0; height: 29px; padding: 4px 7px; color: var(--admin-text); background: var(--admin-bg); border: 1px solid var(--admin-line); border-radius: 4px; font-size: .75rem; }
.table-tools input:focus, .table-tools select:focus, .inline-assignment select:focus { border-color: var(--brand-primary); outline: 2px solid color-mix(in srgb, var(--brand-primary) 18%, transparent); outline-offset: 0; }
.filter-tools .button { margin-bottom: 0; }
.quiet-link, .table-action-link { color: var(--brand-primary); font-size: .73rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.quiet-link { padding: 6px 2px; }
.quiet-link:hover, .table-action-link:hover { text-decoration: underline; }
.table-wrap { overflow: auto; border-radius: 5px; border-color: var(--admin-line); }
.data-table { width: 100%; min-width: max-content; table-layout: auto; font-size: .76rem; }
.data-table th { padding: 9px 10px; color: var(--admin-muted); border-bottom-color: var(--admin-line); font-size: .63rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; white-space: nowrap; }
.data-table td { height: 38px; padding: 7px 10px; border-top-color: var(--admin-line); white-space: nowrap; vertical-align: middle; }
.data-table td strong, .data-table td small, .data-table td span { display: inline; }
.data-table td .status-pill { display: inline-flex; }
.data-table td .table-secondary { display: inline-block; margin: 0 0 0 7px; font-size: .69rem; }
.data-table td .cell-truncate, .data-table td.cell-truncate { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.data-table td.numeric { font-variant-numeric: tabular-nums; }
.data-table tr:hover td { background: var(--admin-hover); }
.data-table td::before { content: none !important; }
.status-pill { min-height: 19px; padding: 2px 7px; border: 1px solid transparent; border-radius: 3px; font-size: .64rem; line-height: 1.1; font-weight: 680; white-space: nowrap; }
html[data-admin-theme="dark"] .status-pill { color: var(--admin-text); background: var(--admin-bg); border-color: var(--admin-line); }
html[data-admin-theme="dark"] .status-confirmed, html[data-admin-theme="dark"] .status-assigned, html[data-admin-theme="dark"] .status-active { color: #75d49e; }
html[data-admin-theme="dark"] .status-requested, html[data-admin-theme="dark"] .status-quoted { color: #f2c06e; }
html[data-admin-theme="dark"] .status-cancelled, html[data-admin-theme="dark"] .status-void, html[data-admin-theme="dark"] .status-inactive { color: #ff858c; }
.booking-actions { min-width: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 7px; }
.booking-actions form { display: inline-flex; margin: 0; }
.inline-assignment { display: inline-flex; gap: 5px; }
.inline-assignment select { width: 138px; min-height: 24px; padding: 2px 6px; border-color: var(--admin-line); border-radius: 4px; font-size: .69rem; }
.table-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; color: var(--admin-muted); font-size: .72rem; }
.table-pager > p { margin: 0; }
.pager-actions, .pager-numbers { display: flex; align-items: center; gap: 4px; }
.pager-actions > span { display: flex; align-items: center; gap: 4px; }
.pager-direction, .pager-number { min-width: 26px; height: 26px; display: inline-flex; justify-content: center; align-items: center; padding: 0 7px; border: 1px solid var(--admin-line); border-radius: 4px; color: var(--admin-text); font-size: .69rem; text-decoration: none; white-space: nowrap; }
.pager-direction:hover, .pager-number:not(.is-current):hover { border-color: var(--brand-primary); }
.pager-number.is-current { color: #fff; background: var(--brand-primary); border-color: var(--brand-primary); }
.pager-direction.is-disabled { opacity: .42; }
.activity-list { overflow-x: auto; border-top: 1px solid var(--admin-line); }
.activity-row { min-width: 760px; min-height: 39px; display: grid; grid-template-columns: 145px 108px minmax(150px, .9fr) minmax(200px, 1.5fr) auto; align-items: center; gap: 12px; padding: 6px 10px; border-bottom: 1px solid var(--admin-line); color: var(--admin-text); font-size: .73rem; }
.activity-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row .status-pill { overflow: visible; }
.activity-reference { font-weight: 700; }
.activity-row .status-pill { justify-self: start; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--admin-line); border-bottom: 1px solid var(--admin-line); }
.quick-links a { min-width: 0; display: grid; align-content: center; gap: 5px; padding: 13px 14px 13px 0; color: var(--admin-text); text-decoration: none; }
.quick-links a + a { padding-left: 16px; border-left: 1px solid var(--admin-line); }
.quick-links strong { font-size: .77rem; font-weight: 680; }
.quick-links span { color: var(--admin-muted); font-size: .7rem; }
.quick-links a:hover strong { color: var(--brand-primary); }
.empty-state.compact { margin: 0; padding: 18px 12px; color: var(--admin-muted); background: var(--admin-bg); border: 1px dashed var(--admin-line); border-radius: 4px; font-size: .78rem; }
.notice { padding: 9px 11px; border: 1px solid var(--admin-line); border-radius: 4px; font-size: .78rem; }
.notice-info { color: var(--admin-muted); background: var(--admin-bg); }
.row-action-icon { width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; color: var(--admin-text); border: 1px solid var(--admin-line); border-radius: 4px; }
.row-action-icon:hover { color: var(--brand-primary); border-color: var(--brand-primary); background: var(--admin-hover); }
.row-action-icon:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.row-action-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.message-body { max-height: 32rem; overflow: auto; margin: 0; padding: 14px; color: var(--admin-text); background: var(--admin-bg); border: 1px solid var(--admin-line); border-radius: 5px; font: inherit; font-size: .78rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-enquiry-message { max-width: 38rem; margin-top: 8px; }
.contact-enquiry-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 185px; }
.contact-enquiry-status select { min-width: 118px; max-width: 100%; }
.message-detail-list { padding: 4px 16px; background: var(--admin-surface); border: 1px solid var(--admin-line); border-radius: 5px; }
.retry-message-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.retry-message-form .checkbox-field { display: flex; align-items: center; gap: 8px; color: var(--admin-text); font-size: .74rem; font-weight: 500; }
.retry-message-form input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: var(--brand-primary); }
.split-layout, .catalog-columns { gap: 18px; }
.form-panel { border-radius: 5px; box-shadow: none; }
.form-panel h2 { font-size: 1rem; }
.compact-form { padding: 20px; }
.narrow-admin-page { max-width: 780px; }
.admin-body .field { font-size: .8rem; }
.admin-body .field input:not([type="checkbox"]):not([type="radio"]), .admin-body .field select, .admin-body .field textarea { border-radius: 4px; }
.admin-body .form-actions { gap: 9px; }
.search-results { display: grid; gap: 4px; margin-top: 5px; }
.customer-search-result { width: 100%; display: grid; gap: 1px; padding: 7px 9px; color: var(--admin-text); background: var(--admin-bg); border: 1px solid var(--admin-line); border-radius: 4px; text-align: left; cursor: pointer; }
.customer-search-result:hover, .customer-search-result:focus-visible { border-color: var(--brand-primary); background: var(--admin-hover); }
.customer-search-result strong { font-size: .76rem; font-weight: 680; }
.customer-search-result span { color: var(--admin-muted); font-size: .68rem; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 12px; background: var(--admin-bg); border: 1px solid var(--admin-line); border-radius: 5px; }
.filter-bar .field { flex: 1 1 210px; min-width: 150px; max-width: 340px; }
.filter-bar .button { margin-bottom: 0; }
.color-grid { gap: 12px; }

@media (max-width: 1000px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; padding: 13px 18px 9px; }
    .admin-wordmark { padding: 0 0 10px; }
    .admin-nav { align-items: center; }
    .admin-nav .nav-group-label { display: none; }
    .public-site-link { margin: 7px 10px 0; padding-top: 7px; }
}
@media (max-width: 720px) {
    .admin-topbar { position: static; align-items: center; flex-direction: row; padding: 8px 15px; }
    .admin-account { width: auto; justify-content: flex-end; gap: 8px; }
    .admin-account > span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .demo-banner { padding: 7px 15px; }
    .admin-main { padding: 21px 14px 32px; }
    .page-heading { align-items: flex-start; flex-direction: row; }
    .page-heading h1 { font-size: 1.4rem; }
    .page-heading > .button { flex: 0 0 auto; }
    .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-strip > div, .summary-strip > div:nth-child(3n+2), .summary-strip > div:nth-child(3n+3) { padding: 12px 10px 12px 0; border-left: 0; }
    .summary-strip > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--admin-line); }
    .split-layout, .catalog-columns { grid-template-columns: 1fr; }
    .table-wrap { overflow-x: auto; }
    .data-table { min-width: max-content; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: revert; width: auto; }
    .data-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .data-table tr { margin: 0; padding: 0; border: 0; border-radius: 0; }
    .data-table td { min-width: initial; padding: 7px 9px; overflow-wrap: normal; }
    .data-table td.booking-actions { min-width: 0; display: flex; gap: 6px; border-top: 1px solid var(--admin-line); }
    .data-table td.booking-actions::before { content: none; }
    .table-tools { align-items: end; }
    .filter-bar .field { flex: 1 1 100%; max-width: none; }
    .table-tools .search-control { flex-basis: 100%; max-width: none; }
    .table-tools .filter-control { flex: 1 1 105px; }
    .table-pager { align-items: flex-start; flex-direction: column; }
    .pager-actions { flex-wrap: wrap; }
    .quick-links { grid-template-columns: 1fr; }
    .quick-links a, .quick-links a + a { padding: 10px 0; border-left: 0; }
    .quick-links a + a { border-top: 1px solid var(--admin-line); }
    .color-grid { grid-template-columns: 1fr; }
}

/* Shared admin design system: common page, card, control, and table components. */
.admin-main { padding: 40px clamp(22px, 3vw, 52px) 64px; }
.admin-page { gap: 24px; }
.page-eyebrow {
    margin: 0 0 6px;
    color: var(--brand-primary) !important;
    font-size: .64rem !important;
    font-weight: 760;
    letter-spacing: .13em;
}
.page-heading { align-items: flex-end; }
.page-heading h1 { font-size: 1.75rem; }
.message-detail-page > .page-heading h1 { font-size: 1.75rem; }
.message-detail-page .section-heading h2 { font-size: 1.06rem; }
.data-section {
    padding: 18px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    box-shadow: 0 8px 26px rgb(0 0 0 / .035);
}
html[data-admin-theme="dark"] .data-section { box-shadow: 0 8px 26px rgb(255 255 255 / .025); }
.section-heading { align-items: center; }
.section-heading h2 { font-size: .98rem; }
.summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border: 0;
}
.summary-strip > div,
.summary-strip > div:nth-child(3n+2),
.summary-strip > div:nth-child(3n+3) {
    min-height: 110px;
    padding: 15px 16px 13px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-line);
    border-top: 2px solid var(--brand-primary);
    border-radius: 7px;
}
.summary-strip dt { font-size: .72rem; }
.summary-strip dd { margin: 9px 0 7px; font-size: 1.6rem; }
.summary-strip a, .summary-strip span { font-size: .7rem; }
.statement-totals > div { min-height: 100px; }
.table-tools {
    padding: 2px 0 13px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--admin-line);
    border-radius: 0;
}
.table-tools label { gap: 5px; font-size: .68rem; }
.table-tools input, .table-tools select { height: 32px; border-radius: 5px; }
.table-wrap { border-radius: 7px; box-shadow: 0 4px 16px rgb(0 0 0 / .025); }
html[data-admin-theme="dark"] .table-wrap { box-shadow: 0 4px 16px rgb(255 255 255 / .018); }
.data-table th { padding-top: 11px; padding-bottom: 11px; }
.data-table td { height: 42px; }
.data-table tr:last-child td { border-bottom: 0; }
.form-panel { padding: 25px; border-radius: 8px; box-shadow: 0 8px 26px rgb(0 0 0 / .035); }
html[data-admin-theme="dark"] .form-panel { box-shadow: 0 8px 26px rgb(255 255 255 / .025); }
html[data-admin-theme="dark"] .button-danger { color: #fff; background: #a82938; border-color: #a82938; }
.demo-warning, .notice { border-radius: 7px; }
.quick-links { gap: 10px; border: 0; }
.quick-links a, .quick-links a + a {
    min-height: 84px;
    padding: 14px 16px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-line);
    border-radius: 7px;
    transition: border-color 150ms ease, transform 150ms ease;
}
.quick-links a:hover { border-color: var(--brand-primary); transform: translateY(-1px); }
.quick-links strong { font-size: .74rem; }
.quick-links span { font-size: .7rem; line-height: 1.45; }
.activity-row { min-height: 42px; }

.row-actions { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pricing-actions { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.icon-action {
    width: 27px;
    height: 27px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: var(--admin-muted);
    background: var(--admin-bg);
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    cursor: pointer;
    transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}
.icon-action svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-action:hover:not(:disabled) { color: var(--brand-primary); background: var(--admin-hover); border-color: var(--brand-primary); }
.icon-action:disabled { color: var(--admin-muted); opacity: .35; cursor: not-allowed; }

/* Keep row actions visible while a wide, single-line table scrolls. */
.admin-body .data-table:has(td[data-label="Actions"]) thead th:last-child,
.admin-body .data-table:has(td[data-label="Action"]) thead th:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: var(--admin-bg);
    box-shadow: -8px 0 12px -10px rgb(0 0 0 / .55);
}
.admin-body .data-table td[data-label="Actions"],
.admin-body .data-table td[data-label="Action"] {
    position: sticky;
    right: 0;
    z-index: 1;
    background: var(--admin-bg);
    box-shadow: -8px 0 12px -10px rgb(0 0 0 / .45);
}
.admin-body .data-table tbody tr:hover td[data-label="Actions"],
.admin-body .data-table tbody tr:hover td[data-label="Action"] { background: var(--admin-hover); }

/* Semantic icon colors are consistent in both admin themes. */
.admin-body {
    --action-view: #216e49;
    --action-view-tint: #eff8f2;
    --action-edit: #805400;
    --action-edit-tint: #fff7e5;
    --action-danger: #ad2534;
    --action-danger-tint: #fff1f2;
}
html[data-admin-theme="dark"] .admin-body {
    --action-view: #78dda2;
    --action-view-tint: #071d11;
    --action-edit: #ffd06f;
    --action-edit-tint: #211a08;
    --action-danger: #ff858d;
    --action-danger-tint: #260b0e;
}
.admin-body .icon-action--view,
.admin-body .icon-action[aria-label^="View"],
.admin-body .icon-action[aria-label^="Preview"],
.admin-body .icon-action[aria-label^="Open the original"],
.admin-body .icon-action[aria-label^="Page history"],
.admin-body .row-action-icon[aria-label^="View"],
.admin-body .row-action-icon[aria-label^="Preview"] {
    color: var(--action-view);
    border-color: color-mix(in srgb, var(--action-view) 38%, var(--admin-line));
    background: var(--action-view-tint);
}
.admin-body .icon-action--edit,
.admin-body .icon-action[aria-label^="Edit"],
.admin-body .icon-action[aria-label^="Correct"],
.admin-body .icon-action[aria-label^="Manage qualifications"],
.admin-body .row-action-icon[aria-label^="Edit"] {
    color: var(--action-edit);
    border-color: color-mix(in srgb, var(--action-edit) 40%, var(--admin-line));
    background: var(--action-edit-tint);
}
.admin-body .icon-action--danger,
.admin-body .icon-action[aria-label^="Delete"],
.admin-body .icon-action[aria-label^="Remove"],
.admin-body .icon-action[aria-label^="Deactivate"],
.admin-body .icon-action[aria-label^="Archive"],
.admin-body .icon-action[aria-label^="Cancel"],
.admin-body .icon-action[aria-label^="Void"],
.admin-body .icon-action[aria-label^="End"],
.admin-body .icon-action[aria-label^="Withdraw"],
.admin-body .icon-action[aria-label^="Switch off"],
.admin-body .icon-action[aria-label^="Unpublish"] {
    color: var(--action-danger);
    border-color: color-mix(in srgb, var(--action-danger) 38%, var(--admin-line));
    background: var(--action-danger-tint);
}
.admin-body .icon-action[aria-label^="Restore"],
.admin-body .icon-action[aria-label^="Publish"] {
    color: var(--action-view);
    border-color: color-mix(in srgb, var(--action-view) 38%, var(--admin-line));
    background: var(--action-view-tint);
}
.admin-body :is(.icon-action--view, .icon-action--edit, .icon-action--danger, .icon-action[aria-label^="View"], .icon-action[aria-label^="Preview"], .icon-action[aria-label^="Open the original"], .icon-action[aria-label^="Page history"], .icon-action[aria-label^="Edit"], .icon-action[aria-label^="Correct"], .icon-action[aria-label^="Manage qualifications"], .icon-action[aria-label^="Delete"], .icon-action[aria-label^="Remove"], .icon-action[aria-label^="Deactivate"], .icon-action[aria-label^="Archive"], .icon-action[aria-label^="Cancel"], .icon-action[aria-label^="Void"], .icon-action[aria-label^="End"], .icon-action[aria-label^="Withdraw"], .icon-action[aria-label^="Switch off"], .icon-action[aria-label^="Unpublish"], .icon-action[aria-label^="Restore"], .icon-action[aria-label^="Publish"]):hover:not(:disabled),
.admin-body :is(.row-action-icon[aria-label^="View"], .row-action-icon[aria-label^="Preview"], .row-action-icon[aria-label^="Edit"]):hover {
    color: inherit;
    border-color: currentColor;
    background: color-mix(in srgb, currentColor 12%, var(--admin-bg));
}

/* Icon-only theme control; its accessible name describes the next mode. */
.theme-toggle {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
}
.theme-toggle-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle-icon[data-theme-icon="sun"] { display: none; }
.theme-toggle[data-theme-state="dark"] .theme-toggle-icon[data-theme-icon="moon"] { display: none; }
.theme-toggle[data-theme-state="dark"] .theme-toggle-icon[data-theme-icon="sun"] { display: block; }
.theme-toggle:focus-visible { outline-offset: 3px; }

@media (max-width: 420px) {
    .admin-account .theme-toggle { padding: 0; }
}
.row-detail-dialog {
    width: min(560px, calc(100% - 32px));
    max-height: min(80vh, 720px);
    padding: 0;
    color: var(--admin-text);
    background: var(--admin-bg);
    border: 1px solid var(--admin-line);
    border-radius: 10px;
    box-shadow: 0 24px 80px rgb(0 0 0 / .35);
}
.row-detail-dialog::backdrop { background: rgb(0 0 0 / .62); backdrop-filter: blur(3px); }
.row-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--admin-line); }
.row-detail-head h2 { margin: 0; font-size: 1rem; }
.row-detail-body { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; padding: 8px 20px 18px; }
.row-detail-body > div { min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--admin-line); }
.row-detail-body dt { margin-bottom: 3px; color: var(--admin-muted); font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.row-detail-body dd { margin: 0; overflow-wrap: anywhere; font-size: .8rem; }
.row-detail-foot { display: flex; justify-content: flex-end; padding: 0 20px 18px; }

@media (max-width: 1000px) {
    .admin-main { padding: 28px 22px 46px; }
    .data-section { padding: 16px; }
}
@media (max-width: 720px) {
    .admin-body { overflow-x: hidden; }
    .admin-shell { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
    .admin-sidebar { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
    .admin-workspace { width: 100%; min-width: 0; max-width: 100%; }
    .admin-nav { width: 100%; min-width: 0; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; }
    .admin-main { padding: 24px 16px 38px; }
    .page-heading { flex-direction: column; align-items: flex-start; }
    .page-heading > .button { align-self: flex-start; }
    .data-section { padding: 14px; }
    .table-wrap { width: 100%; max-width: 100%; }
    .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-strip > div,
    .summary-strip > div:nth-child(3n+2),
    .summary-strip > div:nth-child(3n+3) { min-height: 96px; padding: 12px; border-left: 1px solid var(--admin-line); }
    .summary-strip > div:nth-child(odd) { border-left: 1px solid var(--admin-line); }
    .summary-strip dd { font-size: 1.38rem; }
    .icon-action { width: 34px; height: 34px; }
    .table-tools input, .table-tools select { height: 36px; }
    .row-detail-body { grid-template-columns: 1fr; }
    .form-panel { padding: 18px; }
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .detail-wide { grid-column: auto; }
    .booking-task-row { grid-template-columns: 1fr; }
    .task-approval-form { grid-template-columns: 1fr; }
    .cancel-form { grid-template-columns: minmax(0, 1fr); }
}

/* Device-width safeguards shared by every admin page. */
.admin-body { min-width: 320px; overflow-x: clip; }
.admin-shell, .admin-workspace, .admin-main, .admin-page,
.admin-page > *, .data-section, .form-panel, .section-heading > *,
.page-heading > *, .table-tools > * { min-width: 0; }
.admin-main { box-sizing: border-box; width: 100%; }
.admin-topbar > p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.admin-account { min-width: 0; }
.admin-account > span { min-width: 0; overflow-wrap: anywhere; }
.admin-nav a { flex: 0 0 auto; white-space: nowrap; }
.table-wrap { display: block; max-width: 100%; overscroll-behavior-x: contain; scrollbar-width: thin; }
.data-table { width: max-content; min-width: 100%; }
.data-table td.booking-actions { display: table-cell; border-top: 0; }
.booking-actions > form, .inline-assignment { flex: 0 0 auto; }
.table-pager, .pager-actions, .pager-numbers { min-width: 0; flex-wrap: wrap; }
.notice, .empty-state, .field-help, .field-error { overflow-wrap: anywhere; }
.admin-body input, .admin-body select, .admin-body textarea { max-width: 100%; }
.row-detail-dialog { box-sizing: border-box; }

@media (max-width: 1000px) {
    .admin-sidebar { min-width: 0; }
    .admin-nav { min-width: 0; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
    .admin-workspace { width: 100%; }
    .admin-main { padding: 28px clamp(18px, 3vw, 30px) 46px; }
}

@media (max-width: 720px) {
    .admin-body { overflow-x: clip; }
    .admin-topbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 10px 16px; }
    .admin-topbar > p { font-size: .76rem; }
    .admin-account { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
    .admin-account > span { flex: 1 1 100%; max-width: 100%; }
    .demo-banner { align-items: flex-start; flex-direction: column; gap: 3px; }
    .admin-sidebar { padding: 13px 14px 9px; }
    .admin-wordmark { max-width: 100%; overflow-wrap: anywhere; }
    .admin-nav { width: 100%; padding: 0 0 5px; }
    .admin-nav a { min-height: 34px; padding-inline: 10px; }
    .public-site-link { display: inline-block; margin: 7px 0 0; }
    .admin-main { padding: 22px 14px 34px; }
    .admin-page { gap: 17px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .page-heading h1 { font-size: clamp(1.28rem, 6vw, 1.55rem); overflow-wrap: anywhere; }
    .page-heading p { max-width: 62ch; overflow-wrap: anywhere; }
    .page-heading > .button { align-self: flex-start; max-width: 100%; }
    .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
    .section-heading > .quiet-link { white-space: normal; }
    .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .summary-strip > div,
    .summary-strip > div:nth-child(3n+2),
    .summary-strip > div:nth-child(3n+3) { min-height: 90px; padding: 11px; }
    .summary-strip dd { font-size: clamp(1.15rem, 6vw, 1.4rem); overflow-wrap: anywhere; }
    .data-section { padding: 13px; }
    .table-tools { align-items: stretch; gap: 9px; }
    .table-tools .search-control, .table-tools .filter-control { flex: 1 1 100%; max-width: none; }
    .table-tools input, .table-tools select { min-height: 36px; }
    .table-tools > .button, .table-tools > .quiet-link { align-self: flex-start; }
    .table-wrap { width: 100%; overflow-x: auto; }
    .data-table { min-width: max-content; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: revert; width: auto; }
    .data-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .data-table tr { margin: 0; padding: 0; border: 0; border-radius: 0; }
    .data-table td { min-width: initial; padding: 8px 9px; overflow-wrap: normal; }
    .data-table td.booking-actions { display: table-cell; min-width: 0; border-top: 0; }
    .booking-actions { flex-wrap: nowrap; }
    .inline-assignment select { width: 138px; max-width: none; }
    .table-pager { align-items: flex-start; flex-direction: column; }
    .pager-actions { gap: 5px; }
    .quick-links { grid-template-columns: minmax(0, 1fr); }
    .form-panel { padding: 16px; }
    .detail-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .form-grid, .form-grid-small, .booking-extra-options { grid-template-columns: minmax(0, 1fr); }
    .form-actions { flex-wrap: wrap; }
    .form-actions > * { max-width: 100%; }
    .row-detail-body { grid-template-columns: minmax(0, 1fr); }
    .staff-main { width: calc(100% - 28px); }
    .site-header, .site-main, .site-footer { width: calc(100% - 28px); }
}

@media (max-width: 420px) {
    .admin-main { padding-inline: 11px; }
    .admin-sidebar { padding-inline: 11px; }
    .admin-topbar { padding-inline: 12px; }
    .data-section { padding: 11px; }
    .summary-strip { gap: 7px; }
    .summary-strip > div,
    .summary-strip > div:nth-child(3n+2),
    .summary-strip > div:nth-child(3n+3) { padding: 9px; }
    .summary-strip dt { font-size: .66rem; }
    .summary-strip a, .summary-strip span { font-size: .64rem; }
    .page-heading h1 { font-size: 1.3rem; }
    .admin-account { column-gap: 6px; }
    .admin-account .theme-toggle, .admin-account .text-button { min-height: 28px; padding-inline: 7px; }
    .row-detail-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
    .row-detail-head { padding: 14px; }
    .row-detail-body { padding: 6px 14px 14px; }
    .row-detail-foot { padding: 0 14px 14px; }
}

.customer-signin-options { display: grid; gap: 8px; padding-top: 2px; }
.customer-signin-options > p { margin: 0 0 2px; color: var(--text-muted); font-size: .83rem; font-weight: 700; }
.customer-signin-unavailable { display: grid; gap: 4px; padding: 11px 12px; color: var(--text-muted); background: var(--brand-surface); border: 1px solid var(--line); border-radius: 8px; font-size: .82rem; line-height: 1.5; }
.customer-signin-unavailable strong { color: var(--brand-ink); }
.login-divider { display: flex; align-items: center; gap: 11px; color: var(--text-muted); font-size: .75rem; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.customer-account-page { width: min(100%, 1120px); margin: 0 auto; }
.customer-account-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 26px; }
.customer-account-heading h1 { max-width: 24ch; margin: 0 0 8px; font-size: clamp(1.9rem, 3.5vw, 2.7rem); letter-spacing: -.025em; }
.customer-account-heading p { max-width: 68ch; margin: 0; color: var(--text-muted); line-height: 1.6; }
.customer-account-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.customer-account-actions form { margin: 0; }
.customer-account-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.customer-account-summary > div { display: grid; gap: 5px; min-width: 0; padding: 15px 18px 15px 0; }
.customer-account-summary dt { color: var(--text-muted); font-size: .79rem; }
.customer-account-summary dd { margin: 0; color: var(--brand-ink); font-size: 1.15rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.customer-account-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; }
.customer-account-section { min-width: 0; }
.customer-account-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.customer-account-section-heading h2, .customer-account-contact h2 { margin: 0 0 5px; font-size: 1.15rem; letter-spacing: -.01em; }
.customer-account-section-heading p, .customer-account-contact > div > p { margin: 0; color: var(--text-muted); font-size: .83rem; line-height: 1.5; }
.customer-account-section-heading > .text-link { flex: 0 0 auto; font-size: .82rem; }
.customer-account-list { display: grid; }
.customer-account-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(125px, .8fr) auto; align-items: center; gap: 14px; min-width: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.customer-account-row-main, .customer-account-row-date, .customer-account-invoice-total { display: grid; gap: 4px; min-width: 0; }
.customer-account-row-main strong, .customer-account-row-date strong, .customer-account-invoice-total strong { overflow-wrap: anywhere; font-size: .84rem; }
.customer-account-row-main span, .customer-account-row-date span, .customer-account-invoice-total > span:not(.customer-account-status) { color: var(--text-muted); font-size: .76rem; line-height: 1.45; }
.customer-account-row-date strong { font-weight: 650; }
.customer-account-status { justify-self: start; padding: 3px 7px; color: #35433f; background: #e8eeeb; border-radius: 4px; font-size: .68rem; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.customer-account-status.status-requested, .customer-account-status.status-quoted { color: #714710; background: #f7edda; }
.customer-account-status.status-confirmed, .customer-account-status.status-assigned, .customer-account-status.status-active { color: #225b45; background: #e1f0e7; }
.customer-account-status.status-in-progress { color: #245179; background: #e2eef8; }
.customer-account-status.status-completed { color: #46544e; background: #e8ece9; }
.customer-account-status.status-cancelled, .customer-account-status.status-void { color: #8a2d37; background: #f5e5e6; }
.customer-account-invoice-total { justify-items: end; text-align: right; }
.customer-account-invoice-total .customer-account-status { justify-self: end; }
.customer-account-empty { padding: 17px 0; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: .86rem; }
.customer-account-empty p { margin: 0 0 7px; }
.customer-account-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; color: var(--text-muted); font-size: .76rem; }
.customer-account-pager a { color: var(--brand-primary); font-weight: 650; }
.customer-account-contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(200px, 1fr) auto; align-items: center; gap: 20px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.customer-account-contact dl { display: flex; flex-wrap: wrap; gap: 15px 30px; margin: 0; }
.customer-account-contact dl > div { display: grid; gap: 3px; min-width: 0; }
.customer-account-contact dt { color: var(--text-muted); font-size: .74rem; }
.customer-account-contact dd { margin: 0; overflow-wrap: anywhere; font-size: .83rem; }

@media (max-width: 900px) {
    .customer-account-sections { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .customer-account-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .customer-account-contact > .text-link { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .customer-account-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
    .customer-account-actions { flex-wrap: wrap; }
    .customer-account-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; }
    .customer-account-summary > div { padding: 12px 10px 12px 0; }
    .customer-account-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
    .customer-account-row-date { grid-column: 1; grid-row: 2; }
    .customer-account-row > .customer-account-status { grid-column: 2; grid-row: 1 / span 2; }
    .customer-account-invoice-total { grid-column: 2; grid-row: 2; align-content: start; }
    .customer-account-invoice-total .customer-account-status { justify-self: end; }
    .customer-account-contact { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .customer-account-contact > .text-link { grid-column: auto; }
}

/* Shared admin page header and always-visible local-data notice. */
.page-heading {
    align-items: center;
    padding: 19px 22px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-line);
    border-radius: 9px;
    box-shadow: 0 7px 22px rgb(0 0 0 / .025);
}
html[data-admin-theme="dark"] .page-heading { box-shadow: 0 7px 22px rgb(255 255 255 / .018); }
.page-heading h1 { margin: 0 0 6px; color: var(--admin-text); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.18; }
.page-heading p { max-width: 72ch; color: var(--admin-muted); font-size: .86rem; line-height: 1.5; }
.page-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.demo-banner {
    align-items: center;
    gap: 6px 13px;
    padding: 9px 24px;
    color: var(--admin-muted);
    background: color-mix(in srgb, var(--brand-primary) 5%, var(--admin-bg));
    border-bottom: 1px solid var(--admin-line);
    font-size: .74rem;
}
.demo-banner-label { display: inline-flex; align-items: center; gap: 6px; color: var(--admin-text); font-weight: 740; white-space: nowrap; }
.demo-banner-label svg { width: 14px; height: 14px; fill: none; stroke: var(--brand-primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.demo-banner > span:last-child { min-width: 0; }
.document-tabs { display: flex; align-items: stretch; gap: 4px; padding: 0 5px; border-bottom: 1px solid var(--admin-line); }
.document-tabs a { position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; color: var(--admin-muted); text-decoration: none; font-size: .82rem; font-weight: 680; border-radius: 6px 6px 0 0; }
.document-tabs a:hover { color: var(--admin-text); background: var(--admin-hover); }
.document-tabs a.is-active { color: var(--brand-primary); background: var(--admin-bg); }
.document-tabs a.is-active::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; background: var(--brand-primary); content: ""; }

@media (max-width: 720px) {
    .page-heading { width: 100%; align-items: flex-start; gap: 12px; padding: 17px 16px; }
    .page-heading-actions { width: 100%; justify-content: flex-start; }
    .demo-banner { align-items: flex-start; gap: 5px; padding: 9px 16px; }
    .document-tabs { width: 100%; overflow-x: auto; }
    .document-tabs a { flex: 0 0 auto; min-height: 40px; padding-inline: 13px; }
}

@media (max-width: 420px) {
    .page-heading { padding: 15px 13px; }
    .demo-banner { padding-inline: 12px; }
}

/* Admin quote creation */
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.summary-card { min-width: 0; display: grid; gap: 4px; padding: 13px 15px; background: var(--admin-bg); border: 1px solid var(--admin-line); border-radius: 7px; }
.summary-card > span { color: var(--admin-muted); font-size: .66rem; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.summary-card > strong { overflow: hidden; color: var(--admin-text); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.summary-card > small { overflow: hidden; color: var(--admin-muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.customer-fact-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--admin-line); border-bottom: 1px solid var(--admin-line); }
.customer-fact-strip > div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--admin-line); }
.customer-fact-strip > div:last-child { border-right: 0; }
.customer-fact-strip dt { color: var(--admin-muted); font-size: .74rem; font-weight: 650; }
.customer-fact-strip dd { margin: 3px 0 0; color: var(--admin-text); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.customer-profile-grid { margin-top: 18px; }
.customer-activity-section { margin-top: 18px; }
.customer-activity-content { min-width: 0; display: grid; gap: 4px; }
.customer-activity-head, .customer-activity-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; }
.customer-activity-head > div { min-width: 0; display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 12px; }
.customer-activity-head strong { min-width: 0; overflow-wrap: anywhere; }
.customer-activity-content > p { margin: 0; color: var(--admin-muted); font-size: .84rem; overflow-wrap: anywhere; }
.customer-activity-foot small { color: var(--admin-muted); font-size: .74rem; }
.customer-activity-foot strong { color: var(--admin-text); font-size: .8rem; }
.quote-lines { display: grid; gap: 9px; }
.quote-line-row { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(90px, .65fr) minmax(140px, 1fr) minmax(105px, .7fr); align-items: start; gap: 12px; padding: 12px; background: color-mix(in srgb, var(--brand-primary) 3%, var(--admin-bg)); border: 1px solid var(--admin-line); border-radius: 6px; }
.quote-line-row .field { color: var(--admin-text); font-size: .74rem; }
.quote-line-row .field input:not([type="checkbox"]):not([type="radio"]), .form-panel .field input:not([type="checkbox"]):not([type="radio"]), .form-panel .field textarea { color: var(--admin-text); background: var(--admin-bg); border-color: var(--admin-line); }
.quote-line-row .field input:not([type="checkbox"]):not([type="radio"]) { min-height: 32px; padding: 6px 8px; font-size: .75rem; }
.form-panel .field-help { color: var(--admin-muted); font-size: .7rem; font-weight: 450; }
.form-panel .field-error { font-size: .7rem; }
.quote-line-row .field-error { font-size: .65rem; }
.quote-line-row .quote-description { min-width: 0; }
.quote-line-row .quote-description input { min-width: 0; }

.quote-response-page .page-intro { max-width: none; }
.public-quote-summary { margin: 24px 0; }
.public-quote-summary .data-table { min-width: 560px; }
.financial-totals { width: min(100%, 340px); margin: 8px 0 6px auto; }
.financial-totals p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 8px 0; color: var(--text-muted); border-bottom: 1px solid var(--line); font-size: .92rem; }
.financial-totals strong { color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.financial-totals .total { margin-top: 4px; color: var(--brand-ink); border-bottom: 0; font-size: 1.08rem; font-weight: 700; }
.quote-response-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 12px; }
.quote-response-actions .form-panel { align-content: start; gap: 18px; }
.quote-response-actions .form-panel h2 { font-size: 1.12rem; }
.quote-response-actions .check-field { align-items: flex-start; }
.quote-response-actions .check-field input { flex: 0 0 16px; width: 16px; height: 16px; min-width: 16px; min-height: 16px; margin-top: 2px; }

@media (max-width: 720px) {
    .quote-response-actions { grid-template-columns: minmax(0, 1fr); }
    .quote-response-actions .button { justify-self: start; }
}

@media (min-width: 721px) and (max-width: 960px) {
    .customer-fact-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .customer-fact-strip > div:nth-child(4n) { border-right: 0; }
    .customer-fact-strip > div:nth-child(n+5) { border-top: 1px solid var(--admin-line); }
}

@media (max-width: 720px) {
    .summary-grid { grid-template-columns: 1fr; }
    .customer-fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-fact-strip > div:nth-child(2n) { border-right: 0; }
    .customer-fact-strip > div:nth-child(n+3) { border-top: 1px solid var(--admin-line); }
    .customer-activity-head, .customer-activity-foot { align-items: flex-start; }
    .quote-line-row { grid-template-columns: minmax(0, 1fr) minmax(95px, .6fr); gap: 9px; padding: 10px; }
    .quote-line-row .quote-description { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
    .customer-fact-strip { grid-template-columns: 1fr; }
    .customer-fact-strip > div { border-right: 0; }
    .customer-fact-strip > div + div { border-top: 1px solid var(--admin-line); }
    .customer-activity-head { align-items: flex-start; flex-direction: column; gap: 5px; }
    .customer-activity-head > div { align-items: flex-start; flex-direction: column; gap: 2px; }
    .quote-line-row { grid-template-columns: 1fr; }
    .quote-line-row .quote-description { grid-column: auto; }
}

/* Staff qualification, regular hours, and temporary leave controls */
.schedule-entry-form { display: grid; gap: 12px; padding: 0 0 14px; border-bottom: 1px solid var(--admin-line); }
.schedule-entry-form .form-grid { margin-bottom: 0; }
.schedule-entry-form .button { justify-self: start; }
.staff-schedule-section .data-table { min-width: 720px; }
.staff-schedule-section .data-table td form { display: inline-flex; }
.staff-schedule-section .field input,
.staff-schedule-section .field select { color: var(--admin-text); background: var(--admin-bg); border-color: var(--admin-line); }
.issue-detail-grid { align-items: stretch; }
.issue-detail-grid h3 { margin: 8px 0 0; color: var(--admin-text); font-size: .83rem; }
.issue-detail-grid .issue-long-text { margin: 0; color: var(--admin-muted); font-size: .82rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.issue-resolution-form { display: grid; gap: 12px; }
.issue-resolution-form .field { margin: 0; }
.staff-issue-form { width: min(100%, 820px); margin-inline: auto; }
.staff-issue-form > p { margin: 0; color: var(--admin-muted); font-size: .86rem; }
.staff-issue-form .form-grid { margin-top: 12px; }
.staff-job-actions .button { min-height: 32px; padding: 6px 10px; font-size: .75rem; }

@media (max-width: 720px) {
    .schedule-entry-form { padding-bottom: 12px; }
}

/* Brand settings workspace */
.brand-settings-page { width: 100%; }
.settings-nav { position: sticky; top: 0; z-index: 2; display: flex; gap: 3px; overflow-x: auto; padding: 5px; background: var(--admin-bg); border: 1px solid var(--admin-line); border-radius: 8px; scrollbar-width: thin; }
.settings-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; color: var(--admin-muted); border-radius: 5px; font-size: .77rem; font-weight: 680; text-decoration: none; white-space: nowrap; }
.settings-nav a:hover, .settings-nav a:focus-visible { color: var(--admin-text); background: var(--admin-hover); }
.brand-settings-page [id] { scroll-margin-top: 58px; }
.brand-overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .8fr); align-items: start; gap: 18px; }
.brand-identity-panel, .brand-public-summary, .appearance-panel, .provider-settings-panel { min-width: 0; padding: 22px; color: var(--admin-text); background: var(--admin-surface); border: 1px solid var(--admin-line); border-radius: 9px; }
.brand-identity-panel { gap: 19px; }
.brand-public-summary { display: grid; gap: 14px; }
.settings-section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.settings-section-heading h2 { margin: 0 0 5px; font-size: 1.02rem; letter-spacing: -.01em; }
.settings-section-heading p { max-width: 78ch; margin: 0; color: var(--admin-muted); font-size: .79rem; line-height: 1.5; }
.brand-identity-panel .form-grid { gap: 13px 15px; }
.brand-identity-panel .field, .provider-form .field { color: var(--admin-text); font-size: .77rem; }
.brand-identity-panel .field input:not([type="checkbox"]):not([type="radio"]), .provider-form .field input:not([type="checkbox"]):not([type="radio"]), .provider-form .field select { min-height: 36px; padding: 7px 9px; border-color: var(--admin-line); border-radius: 5px; font-size: .79rem; }
.brand-identity-panel .field input:not([type="checkbox"]):not([type="radio"]):focus, .provider-form .field input:not([type="checkbox"]):not([type="radio"]):focus, .provider-form .field select:focus { border-color: var(--brand-primary); }
.brand-identity-panel .field-help, .provider-form .field-help { color: var(--admin-muted); font-size: .7rem; line-height: 1.45; }
.brand-identity-panel .field-error, .provider-form .field-error { font-size: .7rem; }
.public-content-links { display: grid; }
.public-content-link { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-width: 0; padding: 11px 0; color: var(--admin-text); border-top: 1px solid var(--admin-line); text-decoration: none; }
.public-content-link > span { display: grid; gap: 3px; min-width: 0; }
.public-content-link strong { font-size: .78rem; }
.public-content-link small { color: var(--admin-muted); font-size: .69rem; line-height: 1.4; }
.public-content-link svg { flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.public-content-link:hover { color: var(--brand-primary); }
.published-pages { padding-top: 13px; border-top: 1px solid var(--admin-line); }
.published-pages h3 { margin: 0 0 7px; font-size: .77rem; }
.published-pages ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.published-pages li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 7px 0; border-top: 1px solid var(--admin-line); }
.published-pages li > span { display: grid; gap: 2px; min-width: 0; }
.published-pages li strong { overflow: hidden; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.published-pages li small { color: var(--admin-muted); font-size: .67rem; }
.published-page-actions { display: inline-flex; flex: 0 0 auto; gap: 3px; }
.published-pages .row-action-icon { flex: 0 0 28px; }
.published-page-footer { display: flex; flex-wrap: wrap; gap: 7px; }
.appearance-panel { display: grid; gap: 17px; }
.appearance-form { display: grid; gap: 16px; }
.appearance-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(250px, .75fr); align-items: center; gap: 24px; }
.color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.color-field { grid-template-columns: minmax(0, 1fr) 46px; align-items: center; font-size: .76rem; }
.color-field input[type=color] { grid-column: 2; grid-row: 1 / span 2; width: 46px; height: 34px; padding: 2px; border-color: var(--admin-line); border-radius: 5px; background: var(--admin-bg); }
.color-field .field-help, .color-field .field-error { grid-column: 1; }
.brand-preview { display: grid; justify-items: start; gap: 7px; min-height: 142px; padding: 18px; color: var(--preview-ink); background: var(--preview-surface); border: 1px solid var(--admin-line); border-radius: 7px; }
.brand-preview-label { color: var(--admin-muted); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.brand-preview strong { font-size: .91rem; }
.brand-preview p { margin: 0; font-size: .74rem; line-height: 1.45; }
.brand-preview-button { display: inline-flex; align-items: center; min-height: 26px; padding: 5px 9px; color: #fff; background: var(--preview-primary); border-radius: 4px; font-size: .68rem; font-weight: 700; }
.provider-settings-panel { display: grid; gap: 14px; }
.provider-settings-panel > .settings-section-heading { align-items: center; }
.provider-form { display: grid; gap: 14px; }
.provider-card { display: grid; gap: 14px; padding: 17px; border: 1px solid var(--admin-line); border-radius: 7px; }
.provider-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.provider-card-heading h3 { margin: 0 0 4px; font-size: .87rem; }
.provider-card-heading p { max-width: 72ch; margin: 0; color: var(--admin-muted); font-size: .75rem; line-height: 1.45; }
.provider-card-heading .status-pill { flex: 0 0 auto; font-size: .66rem; }
.provider-security-options { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 2px; }
.provider-security-options .check-field { min-width: 0; }
.scope-approval-copy { min-width: 180px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-enable { padding-bottom: 12px; border-bottom: 1px solid var(--admin-line); }
.provider-enable, .clear-provider, .live-confirm { align-items: flex-start; color: var(--admin-text); font-size: .75rem; }
.provider-enable input, .clear-provider input, .live-confirm input { flex: 0 0 15px; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--brand-primary); }
.provider-fields { gap: 12px 15px; }
.live-confirm { padding: 10px; background: var(--admin-hover); border-radius: 5px; }
.clear-provider { color: var(--admin-muted); }
.provider-save-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 3px; }
.provider-save-row p { max-width: 72ch; margin: 0; color: var(--admin-muted); font-size: .7rem; line-height: 1.45; }
.provider-save-row .button { flex: 0 0 auto; }
.public-content-section { width: 100%; }
.content-management-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; border-top: 1px solid var(--admin-line); }
.content-management-grid article { display: grid; justify-items: start; align-content: start; gap: 9px; padding: 17px 0; border-bottom: 1px solid var(--admin-line); }
.content-management-grid h3 { margin: 0; font-size: .85rem; }
.content-management-grid p { min-height: 3.5em; margin: 0; color: var(--admin-muted); font-size: .75rem; line-height: 1.5; }
.brand-settings-page code { overflow-wrap: anywhere; font-size: .84em; }

.preference-page { width: min(100%, 820px); margin-inline: auto; }
.preference-form { display: grid; gap: 18px; }
.preference-form fieldset { display: grid; gap: 10px; }
.preference-form legend { margin-bottom: 2px; color: var(--brand-ink); font-size: 1.05rem; font-weight: 720; }
.preference-form fieldset > p { margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.55; }
.preference-form .check-field { align-items: flex-start; }
.preference-form .check-field input { flex: 0 0 16px; width: 16px; height: 16px; min-width: 16px; min-height: 16px; margin-top: 2px; }
.preference-form .form-note { margin: 0; }
.staff-photo-section { align-items: start; }
.staff-photo-upload { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.staff-photo-upload .field { width: min(100%, 420px); }
.staff-profile-photo-preview { width: 104px; height: 104px; object-fit: cover; border: 1px solid var(--admin-line); border-radius: 50%; background: var(--admin-bg); }
.staff-name-with-photo { display: inline-flex; align-items: center; gap: 9px; }
.staff-list-photo { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; background: var(--admin-hover); }

.customer-activity-table { min-width: 970px; table-layout: fixed; }
.customer-activity-table th, .customer-activity-table td { white-space: nowrap; }
.customer-activity-table th:nth-child(1), .customer-activity-when { width: 170px; }
.customer-activity-table th:nth-child(2), .customer-activity-type { width: 150px; }
.customer-activity-table th:nth-child(3), .customer-activity-reference { width: 205px; }
.customer-activity-table th:nth-child(4), .customer-activity-summary { width: 360px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.customer-activity-table th:nth-child(5), .customer-activity-status { width: 145px; }
.customer-activity-table th:nth-child(6), .customer-activity-amount { width: 150px; }
.customer-activity-table .status-pill { display: inline-flex; max-width: 140px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }

.team-assignment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; width: min(100%, 620px); margin: 0; padding: 0; border: 0; }
.team-assignment-options legend { grid-column: 1 / -1; margin-bottom: 2px; color: var(--admin-muted); font-size: .74rem; font-weight: 650; }
.team-assignment-option { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 9px; color: var(--admin-text); border: 1px solid var(--admin-line); border-radius: 6px; cursor: pointer; }
.team-assignment-option input { flex: 0 0 auto; accent-color: var(--brand-primary); }
.team-assignment-option > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; width: 100%; }
.team-assignment-option strong, .team-assignment-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-assignment-option small { color: var(--admin-muted); font-size: .7rem; }
.inline-assignment:has(.team-assignment-options) { display: grid; justify-items: start; gap: 9px; width: 100%; margin-top: 12px; }

.staff-profile-summary { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 17px; }
.staff-profile-photo, .staff-profile-avatar { width: 80px; height: 80px; object-fit: cover; border: 1px solid var(--admin-line); border-radius: 50%; background: var(--admin-hover); }
.staff-profile-avatar { display: grid; place-items: center; color: var(--admin-text); font-size: 1.8rem; font-weight: 730; }
.staff-profile-heading { min-width: 0; }
.staff-profile-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.staff-profile-name h2 { margin: 0; color: var(--admin-text); font-size: 1.2rem; }
.staff-profile-heading > p { margin: 5px 0 0; color: var(--admin-muted); overflow-wrap: anywhere; }
.staff-profile-grid { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.5fr); }
.staff-profile-skills { white-space: pre-line; }
.staff-payment-table { min-width: 740px; }
.staff-payment-number { font-weight: 680; }
.staff-notice-details summary { max-width: 420px; overflow: hidden; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.staff-notice-details p { max-width: 72ch; margin: 9px 0 3px; white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 720px) {
    .customer-activity-table-wrap { overflow-x: auto; }
    .customer-activity-table td::before { content: none; }
    .team-assignment-options { grid-template-columns: minmax(0, 1fr); }
    .staff-profile-summary { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
    .staff-profile-photo, .staff-profile-avatar { width: 60px; height: 60px; }
    .staff-profile-name h2 { font-size: 1.05rem; }
    .staff-profile-grid { grid-template-columns: minmax(0, 1fr); }
    .staff-profile-grid .table-wrap { overflow-x: auto; }
    .staff-portal-nav { width: 100%; }
    .staff-portal-nav a { padding: 6px 8px; }
    .page-heading-actions { display: flex; flex-wrap: wrap; gap: 7px; }
}

@media (max-width: 900px) {
    .home-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .home-service-note { max-width: 570px; }
    .home-process { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; }
    .home-process ol { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 720px) {
    .home-page { width: calc(100% - 32px); }
    .home-hero { padding-top: 24px; }
    .home-hero h1 { max-width: 12ch; font-size: clamp(2.55rem, 11vw, 4.3rem); }
    .home-hero-copy, .home-service-note, .home-section, .home-process > div, .home-service-row > div { min-width: 0; max-width: 100%; }
    .home-actions { grid-template-columns: minmax(0, 1fr); }
    .home-action { min-height: 76px; }
    .home-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .home-service-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .home-service-row .text-link { justify-self: start; }
    .home-process { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .home-process ol { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .home-process li { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; }
    .home-review-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 1000px) {
    .brand-overview-grid { grid-template-columns: minmax(0, 1fr); }
    .appearance-layout { grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); }
    .content-management-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .settings-nav { position: static; margin-inline: -2px; }
    .settings-nav a { min-height: 34px; }
    .brand-identity-panel, .brand-public-summary, .appearance-panel, .provider-settings-panel { padding: 15px; }
    .settings-section-heading, .provider-card-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
    .settings-section-heading > .button { align-self: flex-start; }
    .brand-identity-panel .form-grid, .provider-fields { grid-template-columns: minmax(0, 1fr); }
    .appearance-layout { grid-template-columns: minmax(0, 1fr); gap: 17px; }
    .color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .provider-card { padding: 13px; }
    .provider-save-row { align-items: flex-start; flex-direction: column; }
    .content-management-grid { grid-template-columns: minmax(0, 1fr); }
    .content-management-grid p { min-height: 0; }
    .staff-photo-upload { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
    .brand-identity-panel, .brand-public-summary, .appearance-panel, .provider-settings-panel { padding: 12px; }
    .color-grid { grid-template-columns: minmax(0, 1fr); }
    .settings-nav a { padding-inline: 8px; font-size: .7rem; }
    .provider-card-heading .status-pill { align-self: flex-start; }
}

/* Ozzinest staff workspace — friendly color, clear daily-work hierarchy. */
.staff-body { min-height: 100vh; background: var(--admin-bg); color: var(--admin-text); }
.staff-header {
    position: relative;
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(14px, 2.4vw, 34px);
    padding: 10px clamp(18px, 4vw, 54px);
    color: #fff;
    background: #29223f;
    border-bottom: 3px solid color-mix(in srgb, var(--brand-primary) 55%, var(--brand-accent));
}
.staff-wordmark { min-width: 0; display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.staff-brand-mark { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; color: #fff; background: color-mix(in srgb, var(--brand-primary) 72%, #29223f); border-radius: 11px; }
.staff-brand-mark svg { width: 24px; height: 24px; }
.staff-wordmark-copy { min-width: 0; display: grid; gap: 1px; }
.staff-wordmark-copy strong { overflow: hidden; font-size: .98rem; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.staff-wordmark-copy small { color: #d7d0e6; font-size: .68rem; font-weight: 650; letter-spacing: .06em; }
.staff-portal-nav { justify-content: center; gap: 5px; }
.staff-portal-nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border-radius: 8px; color: #e8e3f0; font-size: .8rem; font-weight: 650; transition: background-color 160ms ease-out, color 160ms ease-out; }
.staff-portal-nav a:hover, .staff-portal-nav a:focus-visible { color: #fff; background: rgb(255 255 255 / 10%); }
.staff-portal-nav a.is-active { color: #fff; background: color-mix(in srgb, var(--brand-primary) 52%, #29223f); }
.staff-nav-count { min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 4px; color: #27203b; background: #f5cf77; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.staff-header-tools { min-width: 0; display: flex; align-items: center; gap: 12px; }
.staff-header .admin-account { min-width: 0; color: #e7e2ee; }
.staff-header .admin-account > span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-header .admin-account form { margin: 0; }
.staff-header .text-button { min-height: 30px; color: #fff; }
.staff-header .theme-toggle { color: #fff; background: transparent; border-color: rgb(255 255 255 / 28%); }
.staff-header .theme-toggle:hover { background: rgb(255 255 255 / 10%); }
.staff-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 64px; }
.staff-dashboard, .staff-profile-page { display: grid; gap: 24px; }
.staff-feedback { margin: 0; }
.staff-welcome {
    position: relative;
    min-height: 205px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    padding: clamp(24px, 4vw, 40px);
    background: color-mix(in srgb, var(--brand-primary) 8%, var(--admin-bg));
    border: 1px solid var(--admin-line);
    border-radius: 16px;
}
.staff-welcome-copy, .staff-welcome-actions { position: relative; z-index: 1; }
.staff-welcome-copy { min-width: 0; }
.staff-welcome h1 { max-width: 24ch; margin: 0 0 8px; color: var(--admin-text); font-size: 1.95rem; line-height: 1.18; letter-spacing: -.03em; }
.staff-welcome-copy > p { max-width: 60ch; margin: 0; color: var(--admin-muted); font-size: .92rem; }
.staff-welcome-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 17px; margin-top: 21px; color: var(--admin-muted); font-size: .76rem; }
.staff-date-stamp { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-primary); font-weight: 720; }
.staff-date-stamp svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.staff-welcome-actions { min-width: 160px; display: grid; justify-items: start; gap: 10px; }
.staff-welcome-actions .button { gap: 8px; min-height: 36px; }
.staff-welcome-actions .button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.staff-text-link { color: var(--brand-primary); font-size: .78rem; font-weight: 700; text-decoration: none; }
.staff-text-link:hover { text-decoration: underline; }
.staff-summary-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 15px 18px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-line);
    border-radius: 12px;
}
.staff-summary-band p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; color: var(--admin-muted); font-size: .77rem; }
.staff-summary-band p strong { color: var(--brand-primary); font-weight: 750; }
.staff-summary-band p a { margin-left: 3px; color: var(--brand-accent); font-weight: 700; text-decoration: none; }
.staff-summary-band p a:hover { text-decoration: underline; }
.staff-summary-divider { color: var(--admin-muted); }
.staff-notice-summary { display: inline-flex; align-items: center; gap: 7px; color: var(--admin-text); font-size: .76rem; font-weight: 700; text-decoration: none; }
.staff-notice-summary:hover { color: var(--brand-accent); }
.staff-notice-summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.staff-notice-dot { width: 8px; height: 8px; background: #d98949; border-radius: 50%; }
.staff-assigned-section { display: grid; gap: 14px; min-width: 0; }
.staff-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.staff-section-heading h2 { margin: 0 0 4px; color: var(--admin-text); font-size: 1.28rem; font-weight: 730; letter-spacing: -.02em; }
.staff-section-heading p { margin: 0; color: var(--admin-muted); font-size: .81rem; }
.staff-section-count { flex: 0 0 auto; padding: 5px 9px; color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 9%, var(--admin-bg)); border: 1px solid color-mix(in srgb, var(--brand-accent) 20%, var(--admin-line)); border-radius: 999px; font-size: .72rem; font-weight: 750; }
.staff-empty-state { display: flex; align-items: center; gap: 18px; padding: 22px; background: var(--admin-surface); border: 1px dashed var(--admin-line); border-radius: 14px; }
.staff-empty-mark { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 9%, var(--admin-bg)); border-radius: 13px; }
.staff-empty-mark svg { width: 29px; height: 29px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.staff-empty-state > div { flex: 1 1 auto; min-width: 0; }
.staff-empty-state h3 { margin: 0 0 4px; font-size: .96rem; }
.staff-empty-state p { max-width: 65ch; margin: 0; color: var(--admin-muted); font-size: .8rem; }
.staff-job-list { display: grid; gap: 12px; border: 0; }
.staff-job {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: start;
    gap: 19px;
    padding: 20px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    transition: border-color 160ms ease-out;
}
.staff-job:hover { border-color: color-mix(in srgb, var(--brand-primary) 45%, var(--admin-line)); }
.staff-job-date {
    min-height: 94px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 8px 5px;
    color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 9%, var(--admin-bg));
    border-radius: 11px;
    text-align: center;
}
.staff-job-date > span:first-child { font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.staff-job-date strong { color: var(--admin-text); font-size: 1.65rem; line-height: 1; }
.staff-job-date > span:nth-of-type(2) { color: var(--admin-muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.staff-job-date small { margin-top: 6px; color: var(--brand-accent); font-size: .68rem; font-weight: 750; line-height: 1.25; }
.staff-job-content { min-width: 0; }
.staff-job-heading { align-items: center; gap: 12px; }
.staff-job-heading h3 { margin: 1px 0 0; color: var(--admin-text); font-size: 1.08rem; font-weight: 740; letter-spacing: -.015em; }
.staff-job-heading .job-reference { margin-bottom: 2px; color: var(--admin-muted); font-size: .69rem; letter-spacing: .025em; }
.staff-job-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.staff-job-badges .status-pill { padding: 4px 8px; font-size: .68rem; }
.staff-demo-badge { display: inline-flex; align-items: center; padding: 4px 8px; color: #805312; background: #fff3d7; border: 1px solid #eed38d; border-radius: 999px; font-size: .65rem; font-weight: 800; letter-spacing: .035em; }
.staff-job-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 16px 0; padding: 15px 0; border-top: 1px solid var(--admin-line); border-bottom: 1px solid var(--admin-line); }
.staff-job-details > div { min-width: 0; }
.staff-job-details dt { color: var(--admin-muted); font-size: .69rem; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.staff-job-details dd { display: grid; gap: 3px; margin: 4px 0 0; color: var(--admin-text); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.staff-detail-link { width: fit-content; color: var(--brand-primary); font-size: .76rem; font-weight: 650; }
.staff-job-address { grid-column: 1 / -1; }
.staff-checklist { margin: 0 0 14px; padding: 0; overflow: hidden; color: var(--admin-text); background: var(--admin-bg); border: 1px solid var(--admin-line); border-radius: 10px; }
.staff-checklist summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; cursor: pointer; list-style: none; }
.staff-checklist summary::-webkit-details-marker { display: none; }
.staff-checklist summary::after { width: 8px; height: 8px; flex: 0 0 8px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: rotate(45deg); content: ""; }
.staff-checklist[open] summary::after { transform: rotate(225deg); }
.staff-checklist summary > span:first-child { margin-right: auto; font-size: .78rem; font-weight: 730; }
.staff-checklist-count { color: var(--admin-muted); font-size: .7rem; font-weight: 650; }
.staff-checklist-items { display: grid; gap: 0; margin: 0; padding: 0 12px 8px; }
.staff-checklist-item { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 11px 0; border-top: 1px solid var(--admin-line); }
.staff-checklist-copy { min-width: 0; }
.staff-checklist-copy > strong { font-size: .78rem; }
.staff-checklist-copy .table-secondary { color: var(--admin-muted); font-size: .68rem; }
.staff-checklist-copy p { margin: 5px 0 0; color: var(--admin-muted); font-size: .75rem; line-height: 1.45; overflow-wrap: anywhere; }
.staff-task-warning { color: #94621d !important; font-weight: 650; }
.staff-task-actions { align-items: flex-start; }
.staff-task-actions form { flex-wrap: wrap; }
.staff-job-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.staff-job-actions form { display: flex; margin: 0; }
.staff-job-actions .button, .staff-task-actions .button { min-height: 32px; padding: 5px 9px; font-size: .74rem; }
.staff-profile-hero {
    display: grid;
    grid-template-columns: 102px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: clamp(20px, 3.5vw, 34px);
    background: color-mix(in srgb, var(--brand-accent) 7%, var(--admin-bg));
    border: 1px solid var(--admin-line);
    border-radius: 16px;
}
.staff-profile-portrait { width: 102px; height: 102px; display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--brand-primary) 12%, var(--admin-bg)); border: 3px solid var(--admin-bg); border-radius: 50%; outline: 1px solid color-mix(in srgb, var(--brand-primary) 45%, var(--admin-line)); }
.staff-profile-portrait .staff-profile-photo, .staff-profile-portrait .staff-profile-avatar { width: 100%; height: 100%; border: 0; border-radius: 50%; }
.staff-profile-avatar { display: grid; place-items: center; color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 12%, var(--admin-bg)); font-size: 2.25rem; font-weight: 760; }
.staff-profile-identity { min-width: 0; }
.staff-profile-identity h1 { margin: 0 0 5px; color: var(--admin-text); font-size: 1.65rem; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.staff-profile-code { margin: 0 0 10px; color: var(--admin-muted); font-size: .76rem; }
.staff-profile-code strong { color: var(--brand-accent); font-weight: 750; }
.staff-availability { display: inline-flex; align-items: center; gap: 7px; color: var(--admin-muted); font-size: .72rem; font-weight: 700; }
.staff-availability > span:first-child { width: 8px; height: 8px; background: #a2a8a4; border-radius: 50%; }
.staff-availability.is-available > span:first-child { background: #2d9c68; }
.staff-availability.is-unavailable > span:first-child { background: #c15d65; }
.staff-profile-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.staff-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); align-items: start; gap: 16px; }
.staff-profile-panel, .staff-photo-panel { min-width: 0; padding: 22px; background: var(--admin-surface); border: 1px solid var(--admin-line); border-radius: 14px; }
.staff-panel-heading { margin-bottom: 8px; }
.staff-panel-heading h2, .staff-photo-panel h2 { margin: 0 0 5px; color: var(--admin-text); font-size: 1rem; font-weight: 740; }
.staff-panel-heading p, .staff-photo-panel > p { margin: 0; color: var(--admin-muted); font-size: .77rem; line-height: 1.5; }
.staff-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 16px 0 0; }
.staff-profile-fields > div { min-width: 0; padding: 12px 0; border-top: 1px solid var(--admin-line); }
.staff-profile-fields dt { margin-bottom: 4px; color: var(--admin-muted); font-size: .68rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.staff-profile-fields dd { margin: 0; color: var(--admin-text); font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.staff-profile-fields dd a { color: var(--brand-primary); font-weight: 650; }
.staff-profile-skills-row { grid-column: 1 / -1; }
.staff-profile-help { margin: 14px 0 0; padding-top: 12px; color: var(--admin-muted); border-top: 1px solid var(--admin-line); font-size: .75rem; line-height: 1.5; }
.staff-photo-panel { display: grid; align-content: start; gap: 12px; }
.staff-photo-panel-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 10%, var(--admin-bg)); border-radius: 10px; }
.staff-photo-panel-mark svg { width: 21px; height: 21px; }
.staff-photo-upload { display: grid; align-items: start; gap: 11px; margin-top: 3px; }
.staff-photo-upload .field { display: grid; gap: 6px; margin: 0; color: var(--admin-text); font-size: .76rem; font-weight: 680; }
.staff-photo-upload input[type="file"] { width: 100%; min-height: auto; padding: 7px; border: 1px solid var(--admin-line); border-radius: 7px; font-size: .74rem; }
.staff-photo-upload .field-help { color: var(--admin-muted); font-size: .69rem; }
.staff-photo-upload .button { justify-self: start; }
.staff-photo-remove { margin: -4px 0 0; }
.staff-photo-remove .text-button { font-size: .72rem; }
.staff-photo-note { padding-top: 11px; border-top: 1px solid var(--admin-line); font-size: .7rem !important; }
.staff-body .button { min-height: 34px; border-radius: 8px; font-size: .77rem; }
.staff-body .button-small { min-height: 30px; padding: 5px 9px; font-size: .73rem; }
.staff-body .button-secondary { color: var(--brand-primary); border-color: color-mix(in srgb, var(--brand-primary) 55%, var(--admin-line)); }
.staff-body .button-secondary:hover { color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 7%, var(--admin-bg)); }
.staff-body .button-primary { color: #fff; background: var(--brand-primary); border-color: var(--brand-primary); }
.staff-body .button-primary:hover { color: #fff; filter: brightness(.92); }
.staff-body :is(a, button, summary, input):focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-accent) 75%, white); outline-offset: 3px; }
.staff-body .status-pill { border-radius: 999px; }
.staff-body .data-section { padding: 20px; background: var(--admin-surface); border: 1px solid var(--admin-line); border-radius: 14px; }
.staff-body .section-heading h2 { font-size: 1rem; }
.staff-body .empty-state.compact { margin: 0; padding: 18px; border: 1px dashed var(--admin-line); border-radius: 10px; }
.staff-body .table-wrap { border-radius: 10px; }
html[data-admin-theme="dark"] .staff-welcome,
html[data-admin-theme="dark"] .staff-profile-hero { background: var(--admin-bg); }
html[data-admin-theme="dark"] .staff-section-count,
html[data-admin-theme="dark"] .staff-empty-mark,
html[data-admin-theme="dark"] .staff-job-date,
html[data-admin-theme="dark"] .staff-profile-portrait,
html[data-admin-theme="dark"] .staff-profile-avatar,
html[data-admin-theme="dark"] .staff-photo-panel-mark { background: var(--admin-bg); }
html[data-admin-theme="dark"] .staff-job-date strong { color: var(--admin-text); }
html[data-admin-theme="dark"] .staff-demo-badge { color: #f3d58c; background: #000; border-color: #665326; }
html[data-admin-theme="dark"] .staff-task-warning { color: #f0cc79 !important; }
@media (max-width: 1020px) {
    .staff-header { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding-inline: 20px; }
    .staff-portal-nav { justify-content: flex-end; }
    .staff-header-tools { gap: 8px; }
}
@media (max-width: 820px) {
    .staff-header { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; }
    .staff-portal-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding: 0 0 2px; }
    .staff-header-tools { grid-column: 2; grid-row: 1; }
    .staff-welcome { align-items: flex-start; flex-direction: column; gap: 18px; }
    .staff-welcome-actions { display: flex; align-items: center; flex-wrap: wrap; }
    .staff-summary-band { align-items: flex-start; flex-direction: column; gap: 9px; }
    .staff-profile-layout { grid-template-columns: minmax(0, 1fr); }
    .staff-photo-panel { grid-template-columns: auto minmax(0, 1fr); }
    .staff-photo-panel-mark { grid-row: span 2; }
    .staff-photo-upload, .staff-photo-note { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .staff-header { padding: 10px 14px 8px; }
    .staff-header .admin-account > span { max-width: 128px; font-size: .68rem; }
    .staff-main { width: calc(100% - 28px); padding: 20px 0 40px; }
    .staff-dashboard, .staff-profile-page { gap: 16px; }
    .staff-welcome { min-height: 0; padding: 22px 18px; border-radius: 13px; }
    .staff-welcome h1 { font-size: 1.45rem; }
    .staff-welcome-copy > p { font-size: .82rem; }
    .staff-welcome-meta { gap: 7px 12px; margin-top: 15px; font-size: .7rem; }
    .staff-summary-band { padding: 13px; border-radius: 10px; }
    .staff-summary-band p { font-size: .72rem; }
    .staff-section-heading { align-items: flex-start; }
    .staff-section-heading h2 { font-size: 1.1rem; }
    .staff-section-heading p { max-width: 56ch; font-size: .75rem; }
    .staff-section-count { padding: 4px 7px; font-size: .66rem; }
    .staff-empty-state { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 16px; }
    .staff-empty-state > div { flex-basis: calc(100% - 62px); }
    .staff-empty-state .button { margin-left: 60px; }
    .staff-job { grid-template-columns: 54px minmax(0, 1fr); gap: 11px; padding: 12px; border-radius: 11px; }
    .staff-job-date { min-height: 78px; padding-inline: 2px; border-radius: 8px; }
    .staff-job-date strong { font-size: 1.35rem; }
    .staff-job-date > span:first-child, .staff-job-date > span:nth-of-type(2), .staff-job-date small { font-size: .61rem; }
    .staff-job-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .staff-job-heading h3 { font-size: .94rem; }
    .staff-job-badges { justify-content: flex-start; }
    .staff-job-details { grid-template-columns: minmax(0, 1fr); gap: 9px; margin: 12px 0; padding: 11px 0; }
    .staff-job-address { grid-column: auto; }
    .staff-checklist summary { min-height: 40px; padding: 8px 10px; }
    .staff-checklist-items { padding-inline: 10px; }
    .staff-checklist-item { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .staff-task-actions { justify-content: flex-start; }
    .staff-job-actions { gap: 6px; }
    .staff-job-actions .button, .staff-task-actions .button { min-height: 34px; }
    .staff-profile-hero { grid-template-columns: 68px minmax(0, 1fr); gap: 11px; padding: 16px; border-radius: 13px; }
    .staff-profile-portrait { width: 68px; height: 68px; }
    .staff-profile-identity h1 { font-size: 1.2rem; }
    .staff-profile-code { margin-bottom: 7px; font-size: .68rem; }
    .staff-availability { font-size: .66rem; }
    .staff-profile-hero-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .staff-profile-panel, .staff-photo-panel { padding: 16px; border-radius: 11px; }
    .staff-profile-fields { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
    .staff-profile-skills-row { grid-column: auto; }
    .staff-photo-panel { grid-template-columns: minmax(0, 1fr); }
    .staff-photo-panel-mark { grid-row: auto; }
    .staff-photo-upload, .staff-photo-note { grid-column: auto; }
}
@media (max-width: 390px) {
    .staff-wordmark-copy small { letter-spacing: .025em; }
    .staff-header-tools { gap: 6px; }
    .staff-header .admin-account { gap: 5px; }
    .staff-header .admin-account > span { max-width: 104px; }
    .staff-portal-nav a { padding-inline: 8px; }
    .staff-welcome-actions { align-items: flex-start; flex-direction: column; }
    .staff-summary-band p { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .staff-body *, .staff-body *::before, .staff-body *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Public site refresh based on the supplied Ozzinest cleaning site */
.site-body { background: var(--brand-surface); }
.site-topbar { color: #fff; background: var(--brand-ink); }
.site-topbar-inner { width: min(var(--content-width), calc(100% - 48px)); min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 auto; font-size: .78rem; }
.site-topbar-label { color: rgb(255 255 255 / 76%); font-weight: 650; letter-spacing: .02em; }
.site-topbar-contact { display: flex; flex-wrap: wrap; gap: 18px; }
.site-topbar-contact a { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; }
.site-topbar-contact a:hover { color: var(--brand-accent); }
.site-topbar-contact a span:first-child { color: var(--brand-accent); }
.site-header { position: sticky; z-index: 50; top: 10px; width: min(var(--content-width), calc(100% - 48px)); min-height: 76px; padding: 9px 16px; border: 1px solid color-mix(in srgb, var(--line) 75%, transparent); border-radius: 17px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 12px 40px rgb(23 16 34 / 10%); backdrop-filter: blur(16px); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.wordmark-icon { width: 42px; height: 42px; object-fit: contain; }
.wordmark-copy { display: grid; line-height: 1.05; }
.wordmark-copy strong { color: var(--brand-ink); font-size: 1.02rem; font-weight: 800; letter-spacing: -.025em; }
.wordmark-copy small { margin-top: 4px; color: var(--brand-primary); font-size: .57rem; font-weight: 800; letter-spacing: .15em; }
.site-nav { justify-content: flex-end; gap: clamp(10px, 1.35vw, 22px); }
.site-nav a { font-size: .83rem; white-space: nowrap; }
.site-nav .nav-cta { display: inline-flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 9px; box-shadow: 0 7px 18px color-mix(in srgb, var(--brand-primary) 24%, transparent); }
.site-main { padding-top: 35px; }
.site-footer { width: 100%; display: block; margin: 0; padding: 0 max(24px, calc((100% - var(--content-width)) / 2)); color: #fff; background: var(--brand-ink); border: 0; font-size: .9rem; }
.site-footer-main { width: min(var(--content-width), 100%); display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 54px; margin: 0 auto; padding: 50px 0 38px; }
.site-footer .wordmark-copy strong { color: #fff; }
.site-footer .wordmark-copy small { color: var(--brand-accent); }
.site-footer .wordmark-icon { filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { max-width: 34ch; margin: 16px 0 0; color: rgb(255 255 255 / 68%); font-size: .88rem; line-height: 1.6; }
.footer-nav, .footer-contact { display: grid; align-content: start; gap: 11px; }
.footer-nav { grid-template-columns: repeat(2, max-content); gap: 11px 24px; padding-top: 7px; }
.footer-contact { gap: 12px; }
.footer-contact strong { margin-bottom: 2px; color: #fff; }
.site-footer a { width: fit-content; color: rgb(255 255 255 / 76%); text-decoration: none; }
.site-footer a:hover { color: var(--brand-accent); }
.site-footer-bottom { width: min(var(--content-width), 100%); display: flex; justify-content: space-between; gap: 16px; margin: 0 auto; padding: 17px 0; color: rgb(255 255 255 / 65%); border-top: 1px solid rgb(255 255 255 / 17%); font-size: .77rem; }
.site-footer-bottom a { color: inherit; }
.site-footer .footer-pages { width: min(var(--content-width), 100%); margin: 0 auto; border-color: rgb(255 255 255 / 17%); }
.site-footer .footer-pages a { color: rgb(255 255 255 / 68%); }

.home-page { padding-top: 12px; }
.home-hero { position: relative; isolation: isolate; overflow: hidden; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .66fr); align-items: center; gap: clamp(30px, 6vw, 88px); min-height: 510px; padding: clamp(34px, 5vw, 68px); border: 0; border-radius: 24px; color: #fff; background: #20142b; }
.home-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(100deg, rgb(18 10 27 / 96%) 0%, rgb(18 10 27 / 84%) 50%, rgb(18 10 27 / 35%) 100%), url("/images/ozzinest/hero-team.jpg") center 46% / cover no-repeat; }
.home-hero::after { position: absolute; z-index: -1; right: -58px; bottom: -92px; width: 280px; height: 280px; content: ""; border: 1px solid rgb(255 255 255 / 20%); border-radius: 50%; box-shadow: 0 0 0 34px rgb(255 255 255 / 5%), 0 0 0 70px rgb(255 255 255 / 4%); }
.section-kicker { margin: 0 0 10px; color: var(--brand-primary); font-size: .74rem; font-weight: 800; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.home-hero .section-kicker { color: var(--brand-accent); }
.home-hero h1 { max-width: 12ch; margin: 0 0 17px; color: #fff; font-size: clamp(2.55rem, 5vw, 4.75rem); font-weight: 760; letter-spacing: -.045em; line-height: .99; }
.home-hero-copy > p:not(.section-kicker):not(.home-expectation) { max-width: 55ch; margin-bottom: 25px; color: rgb(255 255 255 / 83%); font-size: clamp(1rem, 1.35vw, 1.13rem); }
.home-actions { max-width: 620px; gap: 10px; }
.home-action { min-height: 106px; padding: 15px 38px 15px 17px; border: 1px solid rgb(255 255 255 / 24%); border-radius: 11px; color: #fff; background: rgb(255 255 255 / 10%); backdrop-filter: blur(10px); }
.home-action:hover { color: #fff; background: rgb(255 255 255 / 17%); }
.home-action-primary { border-color: var(--brand-accent); color: var(--brand-ink); background: var(--brand-accent); }
.home-action-primary:hover { color: var(--brand-ink); filter: brightness(.96); background: var(--brand-accent); }
.home-action-primary .home-action-detail { color: var(--brand-ink); }
.home-action-detail { color: rgb(255 255 255 / 80%); }
.home-action > span:first-child { font-size: .95rem; font-weight: 780; }
.action-arrow { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); font-size: 1.25rem; }
.home-contact-options a { color: #fff; border-color: rgb(255 255 255 / 42%); }
.home-contact-options a:hover { color: var(--brand-ink); background: var(--brand-accent); }
.home-expectation { max-width: 70ch; margin-top: 13px; color: rgb(255 255 255 / 68%); font-size: .76rem; }
.home-service-note { max-width: 340px; margin: 24px 0 0 auto; padding: 25px 24px 23px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 15px; color: var(--brand-ink); background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 18px 45px rgb(0 0 0 / 15%); }
.home-note-rule { width: 38px; height: 4px; margin-bottom: 16px; border-radius: 99px; background: var(--brand-accent); }
.service-note-kicker { margin-bottom: 9px; color: var(--brand-primary); font-size: .71rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-service-note h2 { max-width: 15ch; margin-bottom: 9px; color: var(--brand-ink); font-size: 1.65rem; letter-spacing: -.03em; }
.home-service-note p:not(.service-note-kicker) { margin-bottom: 17px; color: var(--text-muted); font-size: .9rem; }
.home-service-note .button { text-decoration: none; }

.home-about { display: grid; grid-template-columns: minmax(280px, .88fr) minmax(0, 1fr); align-items: center; gap: clamp(34px, 7vw, 94px); padding: clamp(58px, 8vw, 98px) 0; }
.home-about-image { position: relative; max-width: 490px; }
.home-about-image::before { position: absolute; z-index: -1; inset: 20px -18px -18px 20px; content: ""; border-radius: 18px; background: color-mix(in srgb, var(--brand-accent) 35%, var(--brand-surface)); }
.home-about-image img { width: 100%; aspect-ratio: 1.04; object-fit: cover; border-radius: 18px; }
.home-about-copy { max-width: 580px; }
.home-about-copy h2 { max-width: 18ch; margin: 0 0 17px; color: var(--brand-ink); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 760; letter-spacing: -.04em; line-height: 1.06; }
.home-about-copy > p:not(.section-kicker) { max-width: 62ch; margin: 0 0 21px; color: var(--text-muted); font-size: 1rem; line-height: 1.75; }
.home-about-copy .text-link { color: var(--brand-primary); }
.home-section { padding: clamp(42px, 6vw, 72px) 0; border-color: var(--line); }
.home-section-heading { align-items: end; margin-bottom: 27px; }
.home-section-heading .section-kicker { margin-bottom: 7px; }
.home-section-heading h2, .home-process h2 { margin-bottom: 7px; color: var(--brand-ink); font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 760; letter-spacing: -.04em; line-height: 1.08; }
.home-section-heading p:not(.section-kicker), .home-process > div > p:not(.section-kicker) { color: var(--text-muted); font-size: .94rem; }
.home-section-heading .text-link, .home-process .text-link { color: var(--brand-primary); }
.home-service-list { border-top: 0; }
.home-service-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; padding: 21px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.home-service-row + .home-service-row { margin-top: 10px; }
.service-index { color: var(--brand-accent); font-size: 1rem; font-weight: 800; }
.home-service-copy h3 { margin: 0 0 5px; color: var(--brand-ink); font-size: 1.03rem; }
.home-service-copy p { max-width: 72ch; margin: 0; color: var(--text-muted); font-size: .89rem; }
.home-service-row .text-link { color: var(--brand-primary); font-size: .85rem; }
.home-process { grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); gap: clamp(30px, 6vw, 76px); padding: clamp(44px, 6vw, 72px) 0; }
.home-process > div > p:not(.section-kicker) { max-width: 40ch; margin-bottom: 17px; }
.home-process ol { gap: 15px; }
.home-process li { gap: 8px; padding: 17px 15px; border: 1px solid var(--line); border-top: 3px solid var(--brand-accent); border-radius: 10px; background: var(--surface); }
.process-number { color: var(--brand-primary); font-size: .74rem; font-weight: 850; letter-spacing: .1em; }
.home-process li strong { color: var(--brand-ink); }
.home-process li span:last-child { color: var(--text-muted); }
.home-area-list li { padding: 9px 13px; border: 1px solid color-mix(in srgb, var(--brand-primary) 20%, var(--line)); border-radius: 99px; background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface)); }
.home-review-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.home-review-list article { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.home-review-list h3 { color: var(--brand-ink); }
.home-review-rating { color: var(--brand-primary); }
.home-review-list time { display: inline-block; padding-top: 10px; border-top: 1px solid var(--line); }
.home-faq { border-bottom: 0; }
.home-faq .faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 11px; margin: 0; }
.home-faq .faq-item { background: var(--surface); }
.home-bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 10px 0 30px; padding: clamp(25px, 4vw, 42px); border-radius: 17px; background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface)); }
.home-bottom-cta h2 { margin: 0 0 7px; color: var(--brand-ink); font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.035em; }
.home-bottom-cta p:not(.section-kicker) { margin: 0; color: var(--text-muted); }
.home-bottom-cta .section-kicker { margin-bottom: 6px; }
.home-bottom-cta .button { flex: 0 0 auto; text-decoration: none; }

.contact-page { width: min(var(--content-width), calc(100% - 48px)); margin: 0 auto; padding-top: 25px; }
.contact-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; gap: clamp(30px, 6vw, 76px); padding: 14px 0 45px; }
.contact-hero-copy { align-self: center; padding: 20px 0; }
.contact-hero-copy h1, .booking-intro h1 { max-width: 12ch; margin: 0 0 15px; color: var(--brand-ink); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 760; letter-spacing: -.05em; line-height: .99; }
.contact-hero-copy > p:not(.section-kicker), .booking-intro-copy > p:not(.section-kicker) { max-width: 52ch; margin: 0 0 22px; color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; }
.contact-hero-copy .button { text-decoration: none; }
.contact-hero-photo { min-height: 340px; border-radius: 18px; background: linear-gradient(100deg, rgb(18 10 27 / 16%), transparent 70%), url("/images/ozzinest/contact-hero.jpg") center / cover no-repeat; }
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 28px 0 55px; border-top: 1px solid var(--line); }
.contact-options > div { display: grid; align-content: start; justify-items: start; min-height: 210px; padding: 23px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.contact-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 15px; border-radius: 11px; color: var(--brand-primary); background: color-mix(in srgb, var(--brand-accent) 22%, var(--surface)); font-size: 1.1rem; }
.contact-options h2 { margin: 0 0 5px; color: var(--brand-ink); font-size: 1.08rem; }
.contact-options p { margin: 0 0 12px; color: var(--text-muted); font-size: .89rem; }
.contact-value { color: var(--brand-primary); font-size: 1.05rem; font-weight: 750; overflow-wrap: anywhere; }
.contact-secondary { margin-top: 9px; color: var(--brand-primary); font-size: .84rem; font-weight: 700; }
.contact-unavailable { grid-column: 1 / -1; }

.booking-page { width: min(980px, calc(100% - 48px)); margin: 0 auto; }
.booking-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr); align-items: center; gap: 34px; margin-bottom: 26px; padding: 0 0 29px; border-bottom: 1px solid var(--line); }
.booking-intro-copy { padding: 8px 0; }
.booking-intro h1 { font-size: clamp(2.35rem, 4.8vw, 3.7rem); }
.booking-intro-copy > p:not(.section-kicker) { font-size: .97rem; }
.booking-intro-copy .text-link { color: var(--brand-primary); font-size: .88rem; }
.booking-intro-photo { min-height: 230px; border-radius: 15px; background: linear-gradient(0deg, rgb(18 10 27 / 8%), transparent), url("/images/ozzinest/quote-hero.jpg") center / cover no-repeat; }
.booking-page .form-panel { border-radius: 16px; box-shadow: 0 16px 46px rgb(23 16 34 / 6%); }
.booking-page .form-panel legend { color: var(--brand-ink); }
.booking-page .form-panel .button-primary { min-height: 48px; padding-inline: 20px; }

.error-page { width: min(760px, calc(100% - 48px)); max-width: 760px; min-height: 56vh; margin: 0 auto; justify-items: start; align-content: center; gap: 14px; }
.error-page .section-kicker { margin: 0; }
.error-page h1 { margin: 0; color: var(--brand-ink); }
.error-page > p:not(.section-kicker) { max-width: 55ch; margin: 0 0 5px; color: var(--text-muted); }
.error-illustration { position: relative; width: min(100%, 440px); height: 180px; overflow: hidden; margin-bottom: 4px; border-radius: 16px; background: var(--surface); }
.error-illustration img { width: 100%; height: 100%; object-fit: cover; opacity: .74; }
.error-illustration span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 4rem; font-weight: 850; letter-spacing: -.06em; text-shadow: 0 2px 18px rgb(0 0 0 / 42%); }

@media (max-width: 1000px) {
    .site-header { align-items: center; }
    .site-nav { gap: 11px; }
    .site-nav a { font-size: .77rem; }
    .site-nav .nav-cta { padding: 10px 11px; }
    .home-process { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .site-topbar-inner { width: calc(100% - 32px); min-height: 36px; }
    .site-topbar-label { display: none; }
    .site-topbar-inner, .site-topbar-contact { justify-content: center; }
    .site-topbar-contact { gap: 14px; font-size: .72rem; }
    .site-header { position: relative; top: auto; align-items: flex-start; width: calc(100% - 32px); min-height: 0; gap: 12px; padding: 10px 12px; }
    .wordmark-icon { width: 36px; height: 36px; }
    .wordmark-copy strong { font-size: .92rem; }
    .site-nav { justify-content: flex-start; gap: 15px; padding: 0 0 3px; }
    .site-nav a { font-size: .79rem; }
    .site-nav .nav-cta { padding: 8px 10px; }
    .site-main { width: calc(100% - 32px); padding-top: 23px; }
    .home-page { padding-top: 0; }
    .home-hero { grid-template-columns: 1fr; min-height: 0; gap: 26px; padding: 34px 22px 25px; border-radius: 18px; }
    .home-hero::before { background-position: 57% center; }
    .home-hero h1 { font-size: clamp(2.45rem, 12vw, 3.6rem); }
    .home-actions { grid-template-columns: 1fr; }
    .home-action { min-height: 88px; }
    .home-service-note { max-width: none; margin: 0; padding: 20px; }
    .home-service-note h2 { max-width: 25ch; font-size: 1.4rem; }
    .home-about { grid-template-columns: 1fr; gap: 33px; padding: 48px 0; }
    .home-about-image { max-width: 420px; }
    .home-about-image img { aspect-ratio: 1.3; }
    .home-about-copy h2 { font-size: 2.2rem; }
    .home-section-heading { align-items: flex-start; flex-direction: column; }
    .home-section-heading h2, .home-process h2 { font-size: 2rem; }
    .home-service-row { grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 8px 13px; padding: 17px 14px; }
    .home-service-row .text-link, .home-service-row .home-coming-soon { grid-column: 2; justify-self: start; }
    .home-process ol { grid-template-columns: 1fr; }
    .home-review-list, .home-faq .faq-list { grid-template-columns: 1fr; }
    .home-bottom-cta { align-items: flex-start; flex-direction: column; }
    .contact-hero { grid-template-columns: 1fr; gap: 12px; padding-bottom: 25px; }
    .contact-page, .booking-page, .error-page { width: calc(100% - 32px); }
    .contact-page { padding-top: 12px; }
    .contact-hero-copy h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
    .contact-hero-photo { min-height: 240px; }
    .contact-options { grid-template-columns: 1fr; padding-top: 22px; }
    .contact-options > div { min-height: 0; }
    .booking-intro { grid-template-columns: 1fr; gap: 15px; }
    .booking-intro-photo { min-height: 200px; }
    .booking-page .form-panel { padding: 20px 16px; }
    .site-footer { padding-inline: 16px; }
    .site-footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 34px 0 25px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-nav { grid-template-columns: 1fr; gap: 9px; }
    .site-footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 420px) {
    .site-topbar-contact { gap: 9px; font-size: .67rem; }
    .site-nav { gap: 13px; }
    .site-nav .nav-cta { padding: 8px; }
    .site-nav .nav-cta span { display: none; }
    .home-hero { padding-inline: 17px; }
    .home-hero h1 { font-size: 2.35rem; }
}
.site-nav-links { display: flex; align-items: center; gap: inherit; }
.site-mobile-menu { display: none; }
@media (max-width: 720px) {
    .site-header { flex-direction: row; align-items: center; justify-content: space-between; }
    .site-nav { width: auto; align-items: center; gap: 0; overflow: visible; padding: 0; }
    .site-nav-links, .site-nav > .nav-cta { display: none; }
    .site-mobile-menu { position: relative; display: block; }
    .site-mobile-menu summary { display: inline-flex; width: 42px; min-height: 40px; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--brand-ink); background: var(--surface); font-size: 0; font-weight: 750; cursor: pointer; list-style: none; }
    .site-mobile-menu summary::-webkit-details-marker { display: none; }
    .site-mobile-menu summary span { color: var(--brand-primary); font-size: 1.1rem; }
    .site-mobile-links { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; display: grid; min-width: 210px; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 38px rgb(23 16 34 / 18%); }
    .site-mobile-links a { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 8px 10px; border-radius: 7px; color: var(--brand-ink); text-decoration: none; }
    .site-mobile-links a:hover { color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface)); }
    .site-mobile-links a:last-child { margin-top: 4px; color: #fff; background: var(--brand-primary); }
}
.home-hero .section-kicker { color: rgb(255 255 255 / 88%); }
.home-action-primary { border-color: var(--brand-primary); color: #fff; background: var(--brand-primary); }
.home-action-primary:hover { color: #fff; background: var(--brand-primary); filter: brightness(.94); }
.home-action-primary .home-action-detail { color: rgb(255 255 255 / 84%); }

.admin-nav { display: grid; align-content: start; gap: 5px; min-width: 0; overflow: visible; }
.admin-nav .admin-section-link { min-height: 38px; align-items: center; padding: 7px 10px; color: var(--admin-muted); font-size: .7rem; font-weight: 760; letter-spacing: .09em; }
.admin-nav .admin-section-link:hover { color: var(--admin-text); background: var(--admin-hover); }
.admin-nav .admin-section-link.is-active { color: #fff; background: var(--brand-primary); }
.admin-section-tabs { display: flex; min-width: 0; gap: 3px; padding: 0 34px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border-bottom: 1px solid var(--admin-line); }
.admin-section-tabs a { position: relative; display: inline-flex; min-height: 43px; flex: 0 0 auto; align-items: center; padding: 0 12px; color: var(--admin-muted); text-decoration: none; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.admin-section-tabs a:hover { color: var(--admin-text); }
.admin-section-tabs a.is-active { color: var(--brand-primary); }
.admin-section-tabs a.is-active::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; background: var(--brand-primary); content: ""; }
.admin-section-tabs a:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: -3px; }
@media (max-width: 1000px) {
    .admin-sidebar { height: auto; overflow: visible; }
    .admin-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; overflow: visible; }
}
@media (max-width: 620px) {
    .admin-nav { grid-template-columns: minmax(0, 1fr); }
    .admin-section-tabs { padding-inline: 14px; }
}

/* Clearer, branded internal portals */
.admin-body {
    --admin-bg: var(--portal-brand-surface, #f8f5fb);
    --admin-surface: #ffffff;
    --admin-surface-soft: #f6f2fa;
    --admin-text: var(--portal-brand-ink, #1d0731);
    --admin-muted: #4b4258;
    --admin-line: #e6dcef;
    --admin-hover: #f1ecf6;
    --text-muted: #4b4258;
    --admin-accent: var(--brand-accent, #01bea8);
    --admin-link: var(--brand-primary, #340256);
    --admin-highlight: var(--brand-primary, #340256);
    color: var(--admin-text);
    background: var(--admin-bg);
    font-size: 15px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}
html[data-admin-theme="dark"] .admin-body {
    --admin-bg: #0d0716;
    --admin-surface: #1a1029;
    --admin-surface-soft: #211533;
    --admin-text: #f5f0fb;
    --admin-muted: #cbc2d8;
    --admin-line: #34234b;
    --admin-hover: #211533;
    --text-muted: #cbc2d8;
    --admin-accent: #2fd6c1;
    --admin-link: #2fd6c1;
    --admin-highlight: #b99be0;
}
.admin-wordmark { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; }
.admin-brand-logo { width: 40px; height: 36px; object-fit: contain; }
.admin-wordmark-copy { min-width: 0; display: grid; gap: 2px; }
.admin-wordmark-copy strong { color: var(--admin-text); font-size: .91rem; font-weight: 760; line-height: 1.25; overflow-wrap: anywhere; }
.admin-wordmark-copy small { color: var(--admin-muted); font-size: .75rem; font-weight: 700; letter-spacing: .11em; }
.admin-nav .admin-section-link { font-size: .78rem; letter-spacing: .06em; }
.admin-nav .admin-section-link--overview { color: var(--admin-text); font-size: .88rem; font-weight: 680; letter-spacing: 0; text-transform: none; }
.admin-topbar > p { color: var(--admin-text); font-size: .92rem; font-weight: 700; }
.admin-account { color: var(--admin-text); font-size: .84rem; }
.admin-profile-link { max-width: 220px; overflow: hidden; color: var(--admin-text); text-overflow: ellipsis; white-space: nowrap; }
.admin-profile-link:hover { color: var(--brand-primary); }
.admin-workspace main p, .admin-workspace main li, .admin-workspace main dd, .admin-workspace main td { line-height: 1.5; }
.admin-workspace main .page-heading p, .admin-workspace main .section-heading p, .admin-workspace main .data-section > p,
.admin-workspace main .table-secondary, .admin-workspace main .field-help, .admin-workspace main .field-error,
.admin-workspace main .empty-state p, .admin-workspace main .detail-list dt, .admin-workspace main .summary-strip dt,
.admin-workspace main .summary-strip a, .admin-workspace main .summary-strip span { color: var(--admin-muted); }
.admin-workspace main .table-secondary, .admin-workspace main .field-help, .admin-workspace main .field-error,
.admin-workspace main .detail-list dt, .admin-workspace main .summary-strip dt { font-size: .8rem; }
.admin-workspace main .data-table { font-size: .9rem; }
.admin-workspace main .data-table th { color: var(--admin-text); font-size: .8rem; }
.staff-brand-mark img { width: 31px; height: 29px; object-fit: contain; }
.staff-header { background: color-mix(in srgb, var(--brand-primary) 78%, #16012a); }
.staff-brand-mark { background: color-mix(in srgb, var(--brand-primary) 72%, #16012a); }
.staff-wordmark-copy strong { font-size: 1.02rem; }
.staff-wordmark-copy small { color: #f0edf7; font-size: .76rem; }
.staff-portal-nav a { color: #f0edf7; font-size: .87rem; }
.staff-header .admin-account { color: #f0edf7; font-size: .84rem; }
.staff-section-heading p, .staff-empty-state p, .staff-welcome-meta,
.staff-job-date > span:nth-of-type(2), .staff-job-heading .job-reference,
.staff-job-details dt, .staff-checklist-count, .staff-checklist-copy .table-secondary,
.staff-checklist-copy p, .staff-profile-code, .staff-availability,
.staff-panel-heading p, .staff-photo-panel > p, .staff-profile-fields dt,
.staff-profile-help, .staff-photo-upload .field-help { color: var(--admin-muted); }
.staff-job-heading .job-reference, .staff-job-details dt, .staff-checklist-count,
.staff-checklist-copy .table-secondary, .staff-profile-code, .staff-availability,
.staff-profile-fields dt, .staff-photo-upload .field-help,
.staff-job-date > span:nth-of-type(2), .staff-job-date small,
.staff-section-count, .staff-nav-count, .staff-demo-badge { font-size: .78rem; }
.admin-workspace main { color: var(--admin-text); }
.admin-workspace main :is(small, dt, .quiet-link, .table-action-link, .table-secondary, .status-pill,
    .field-help, .field-error, .table-pager, .table-tools label, .customer-search-result span,
    .customer-account-contact dt, .summary-card > span, .customer-activity-foot,
    .public-content-link small, .published-pages li small, .brand-preview-label,
    .team-assignment-options legend, .summary-strip a, .summary-strip span) { font-size: .8rem; }
.admin-workspace main .data-table { font-size: .9rem; }
.admin-workspace main .data-table th { color: var(--admin-text); font-size: .8rem; }
.admin-workspace main .data-table td .table-secondary { font-size: .8rem; }
.admin-workspace main .row-detail-body dt { color: var(--admin-muted); font-size: .8rem; }
.admin-workspace main .field-error { color: #a3343f; font-weight: 650; }
.admin-workspace main .button-small { min-height: 30px; padding: 5px 9px; font-size: .8rem; }
.admin-workspace main .quick-links strong, .admin-workspace main .published-pages li strong,
.admin-workspace main .activity-row, .admin-workspace main .table-tools input,
.admin-workspace main .table-tools select, .admin-workspace main .inline-assignment select { font-size: .88rem; }
.admin-section-tabs a.is-active { color: var(--admin-highlight); }
.admin-section-tabs a.is-active::after { background: var(--admin-accent); }
.admin-workspace main a:not(.button):not(.table-link):not(.icon-action) { color: var(--admin-link); }
.admin-workspace main a:not(.button):not(.table-link):not(.icon-action):hover { text-decoration: underline; text-underline-offset: 3px; }
.staff-main { color: var(--admin-text); }
.staff-main :is(small, dt, .table-secondary, .field-help, .job-reference,
    .staff-job-date > span:nth-of-type(2), .staff-job-date small, .staff-section-count,
    .staff-checklist-count, .staff-profile-code, .staff-availability, .staff-profile-help) { font-size: .8rem; }
.staff-main .staff-job-actions .button, .staff-main .staff-task-actions .button,
.staff-main .button-small { min-height: 36px; font-size: .84rem; }
html[data-admin-theme="dark"] .admin-workspace main .field-error { color: #ff9b9e; }

/* Bootstrap-style portal actions and feedback */
.admin-body .button-primary, .staff-body .button-primary,
.admin-body .button-success, .staff-body .button-success {
    color: #fff;
    background: #198754;
    border-color: #198754;
}
.admin-body .button-primary:hover, .staff-body .button-primary:hover,
.admin-body .button-success:hover, .staff-body .button-success:hover {
    color: #fff;
    background: #157347;
    border-color: #146c43;
}
.admin-body .button-danger, .staff-body .button-danger, .admin-body .button-cancel, .staff-body .button-cancel {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
}
.admin-body .button-danger:hover, .staff-body .button-danger:hover,
.admin-body .button-cancel:hover, .staff-body .button-cancel:hover {
    color: #fff;
    background: #bb2d3b;
    border-color: #b02a37;
}
.admin-body .button-warning, .staff-body .button-warning {
    color: #212529;
    background: #ffc107;
    border-color: #ffc107;
}
.admin-body .button-warning:hover, .staff-body .button-warning:hover {
    color: #212529;
    background: #ffca2c;
    border-color: #ffc720;
}
.admin-body .text-button.button-warning, .staff-body .text-button.button-warning {
    min-height: 30px;
    padding: 5px 9px;
    color: #212529;
    background: #ffc107;
    border: 1px solid #ffc107;
    border-radius: 5px;
}
html[data-admin-theme="dark"] .admin-body .button-danger,
html[data-admin-theme="dark"] .staff-body .button-danger,
html[data-admin-theme="dark"] .admin-body .button-cancel,
html[data-admin-theme="dark"] .staff-body .button-cancel { color: #fff; background: #dc3545; border-color: #dc3545; }
.admin-body .text-button-danger, .staff-body .text-button-danger {
    min-height: 30px;
    padding: 5px 9px;
    color: #fff;
    background: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 5px;
}
.admin-body .icon-action--edit, .staff-body .icon-action--edit,
.admin-workspace main .icon-action[aria-label^="Edit"], .admin-workspace main .icon-action[title^="Edit"] {
    color: #212529;
    background: #ffc107;
    border-color: #ffc107;
}
.admin-body .icon-action--edit:hover, .staff-body .icon-action--edit:hover,
.admin-workspace main .icon-action[aria-label^="Edit"]:hover, .admin-workspace main .icon-action[title^="Edit"]:hover {
    color: #212529;
    background: #ffca2c;
    border-color: #ffc720;
}
.admin-body .icon-action--danger, .staff-body .icon-action--danger,
.admin-workspace main .icon-action[aria-label*="Remove"], .admin-workspace main .icon-action[aria-label*="Delete"],
.admin-workspace main .icon-action[aria-label*="Void"], .admin-workspace main .icon-action[aria-label*="Archive"] {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
}
.admin-body .icon-action--danger:hover, .staff-body .icon-action--danger:hover,
.admin-workspace main .icon-action[aria-label*="Remove"]:hover, .admin-workspace main .icon-action[aria-label*="Delete"]:hover,
.admin-workspace main .icon-action[aria-label*="Void"]:hover, .admin-workspace main .icon-action[aria-label*="Archive"]:hover {
    color: #fff;
    background: #bb2d3b;
    border-color: #b02a37;
}
.portal-toast-region {
    position: fixed;
    z-index: 1200;
    top: var(--portal-toast-top, 68px);
    right: clamp(12px, 2vw, 28px);
    display: grid;
    width: min(440px, calc(100vw - 24px));
    gap: 9px;
    pointer-events: none;
}
.admin-body { --portal-toast-top: 66px; }
.staff-body { --portal-toast-top: 84px; }
.portal-toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 13px 14px;
    color: var(--admin-text);
    background: var(--admin-surface);
    border: 1px solid var(--admin-line);
    border-left: 4px solid #198754;
    border-radius: 9px;
    box-shadow: 0 14px 36px rgb(31 16 46 / 18%);
    font-size: .88rem;
    font-weight: 620;
    line-height: 1.45;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease;
}
.portal-toast--success { border-left-color: #198754; }
.portal-toast--error { border-left-color: #dc3545; }
.portal-toast--warning { border-left-color: #ffc107; }
.portal-toast.is-leaving { opacity: 0; transform: translateY(-7px); }
.portal-toast-close {
    display: inline-grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    margin: -3px -4px 0 0;
    padding: 0;
    color: var(--admin-muted);
    background: transparent;
    border: 0;
    border-radius: 5px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.portal-toast-close:hover { color: var(--admin-text); background: var(--admin-hover); }
.portal-confirm-dialog {
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 36px);
    padding: 0;
    overflow: auto;
    color: var(--admin-text);
    background: var(--admin-surface);
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    box-shadow: 0 24px 75px rgb(14 4 28 / 32%);
}
.portal-confirm-dialog::backdrop { background: rgb(22 1 42 / 56%); backdrop-filter: blur(2px); }
.portal-confirm-content { display: grid; gap: 12px; padding: 24px; }
.portal-confirm-kicker { margin: 0; color: var(--admin-muted); font-size: .75rem; font-weight: 760; letter-spacing: .12em; }
.portal-confirm-content h2 { margin: 0; color: var(--admin-text); font-size: 1.3rem; font-weight: 730; }
.portal-confirm-message { margin: 0; color: var(--admin-muted); font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; }
.portal-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.portal-confirm-actions .button { min-height: 36px; padding: 7px 12px; font-size: .84rem; }
@media (max-width: 720px) {
    .portal-toast-region { right: 12px; width: calc(100vw - 24px); }
    .portal-confirm-content { padding: 20px; }
}

.admin-account-form { max-width: 820px; }
.admin-role-fieldset { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 18px 0; border: 0; border-top: 1px solid var(--admin-line); }
.admin-role-fieldset legend { padding: 0 10px 0 0; color: var(--admin-text); font-size: 1rem; font-weight: 700; }
.admin-role-fieldset .fieldset-help { margin: -4px 0 0; }
.admin-role-option { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 10px; padding: 13px; border: 1px solid var(--admin-line); border-radius: 9px; cursor: pointer; }
.admin-role-option > input { margin: 2px 0 0; }
.admin-role-option > span { display: grid; gap: 3px; }
.admin-role-option small, .admin-account-secondary { display: block; color: var(--admin-muted); font-size: .82rem; line-height: 1.45; }
.admin-role-option:has(input:checked) { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 7%, var(--admin-surface)); }
.admin-primary-badge { display: inline-flex; margin: 5px 0 0; padding: 3px 8px; color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 10%, var(--admin-surface)); border-radius: 999px; font-size: .72rem; font-weight: 700; }
.admin-role-badges, .admin-account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.admin-account-actions form { margin: 0; }
.admin-profile-form { display: grid; gap: 16px; max-width: 520px; }
.admin-profile-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.admin-profile-summary > div { display: grid; gap: 3px; }
.admin-profile-summary dt { color: var(--admin-muted); font-size: .8rem; }
.admin-profile-summary dd { margin: 0; color: var(--admin-text); font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 620px) {
    .admin-profile-summary { grid-template-columns: minmax(0, 1fr); }
    .admin-profile-link { max-width: 145px; }
}

