/* Bixaven — shared foundation. Hidden must win over every component layout. */
:root {
  color-scheme: light;
  --ink: #203831;
  --muted: #64766f;
  --brand: #08776a;
  --brand-dark: #05584f;
  --mint: #edf6f1;
  --paper: #ffffff;
  --canvas: #f5f7f3;
  --line: #dde6df;
  --error: #a23433;
  --radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
button, summary, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #62a999; outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px #08776a16; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
p { margin-bottom: 16px; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
button { border: 0; }
.skip-link { position: absolute; top: -80px; left: 16px; background: white; padding: 12px; z-index: 50; }
.skip-link:focus { top: 10px; }
.site-header { width: min(1280px, calc(100% - 96px)); height: 96px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.4rem; letter-spacing: -.055em; }
.brand-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-right: 10px; border-radius: 11px; color: white; background: var(--brand); font: italic 700 25px/1 Georgia, serif; letter-spacing: -5px; padding-right: 5px; }
.brand-mark span { font-size: 23px; }
.brand-period { color: var(--brand); }
.header-note { color: var(--muted); font-size: .86rem; }
.site-footer { width: min(1280px, calc(100% - 96px)); margin: auto; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .8rem; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.eyebrow { color: var(--brand); font-size: .69rem; line-height: 1.5; font-weight: 750; letter-spacing: .14em; }
.customer-layout { width: min(1220px, calc(100% - 96px)); margin: 36px auto 12px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.intro { padding: 24px 0; }
.intro .eyebrow { margin-bottom: 24px; }
.location-mark { font-size: 20px; vertical-align: -2px; margin-right: 5px; }
.intro h1 { font-size: clamp(3rem, 4.9vw, 4.8rem); letter-spacing: -.055em; line-height: 1.06; margin: 0 0 24px; }
.intro h1 em { color: var(--brand); font: italic 400 1.08em/1 Georgia, "Times New Roman", serif; letter-spacing: -.06em; }
.intro-copy { font-size: 1.08rem; color: var(--muted); line-height: 1.7; margin-bottom: 25px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span { font-size: .75rem; padding: 6px 12px; border: 1px solid #d5e0d7; border-radius: 30px; background: #fdfefb; color: #4e695e; }
.journey { padding: 0; margin: 42px 0 28px; list-style: none; }
.journey li { position: relative; display: flex; gap: 17px; padding: 0 0 24px; }
.journey li:last-child { padding-bottom: 0; }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 6px; border-left: 1px solid #d6e0d8; }
.journey-number { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid #d4ded5; border-radius: 50%; color: var(--muted); font-size: .7rem; font-weight: 700; transition: background .25s, color .25s; }
.journey [aria-current] .journey-number, .journey .is-complete .journey-number { background: var(--brand); color: white; border-color: var(--brand); }
.journey strong { font-size: .91rem; font-weight: 650; }
.journey p { color: var(--muted); font-size: .8rem; margin: 3px 0 0; }
.intro-footnote { font-size: .75rem; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); margin: 0; }
.service-panel { height: clamp(540px, calc(100svh - 180px), 810px); min-width: 0; display: flex; flex-direction: column; background: white; border: 1px solid #dce6df; border-radius: 24px; box-shadow: 0 14px 44px #263d2e09, 0 2px 6px #263d2e04; overflow: hidden; animation: panel-in .5s ease both; }
.panel-header { flex: none; padding: 25px 28px 0; border-bottom: 1px solid var(--line); }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.step-count { color: #7d8b83; font-size: .7rem; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.panel-header h2 { margin: 0 0 8px; font-size: 1.58rem; }
.panel-header > p { font-size: .83rem; color: var(--muted); margin-bottom: 20px; }
.progress-track { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.progress-track li { position: relative; flex: 1; font-size: .7rem; font-weight: 600; color: var(--muted); padding-bottom: 13px; }
.progress-track li::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; bottom: -1px; background: transparent; transition: background .2s; }
.progress-track [aria-current] { color: var(--brand); }
.progress-track [aria-current]::after, .progress-track .is-complete::after { background: var(--brand); }
.progress-track li > span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #b6c4ba; margin-right: 6px; vertical-align: 2px; }
.progress-track [aria-current] > span, .progress-track .is-complete > span { background: var(--brand); }
/* Each stage has precisely one flexible scrolling body and one anchored footer. */
.panel-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #afc5b9 transparent; padding: 24px 22px 24px 28px; }
.panel-scroll::-webkit-scrollbar { width: 6px; }
.panel-scroll::-webkit-scrollbar-thumb { background: #afc5b9; border-radius: 8px; }
.form-fields { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; font-size: .82rem; font-weight: 650; min-width: 0; }
.optional { font-size: .69rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
input, textarea, select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #d4ded6; border-radius: 9px; padding: 10px 12px; background: #fcfdfa; color: var(--ink); font-size: .91rem; transition: border-color .18s, box-shadow .18s, background .18s; }
input:hover, select:hover, textarea:hover { border-color: #afc1b3; }
input::placeholder, textarea::placeholder { color: #84928a; opacity: 1; font-size: .85rem; }
textarea { resize: vertical; line-height: 1.5; }
select { padding-right: 28px; }
input[type="checkbox"] { width: 17px; height: 17px; min-height: 0; margin: 3px 0 0; accent-color: var(--brand); flex: 0 0 17px; cursor: pointer; }
.consent { display: flex; gap: 10px; color: var(--muted); font-size: .72rem; font-weight: 400; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 18px; }
.consent strong { display: block; color: var(--ink); font-size: .8rem; margin: 0 0 5px; }
.consent a { font-weight: 600; }
.panel-footer { flex: none; padding: 17px 28px; border-top: 1px solid var(--line); background: #fff; display: grid; gap: 8px; }
.footer-note { display: block; color: var(--muted); font-size: .68rem; text-align: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 11px 18px; border-radius: 9px; font-size: .85rem; font-weight: 650; text-decoration: none; transition: background .18s, box-shadow .18s, transform .18s; line-height: 1.4; }
.button.primary { color: white; background: var(--brand); border: 1px solid var(--brand); }
.button.primary:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 4px 12px #08776a25; transform: translateY(-1px); }
.button.secondary { background: white; color: var(--ink); border: 1px solid #d5dfd7; }
.button.secondary:hover:not(:disabled) { background: var(--mint); border-color: #a9c6b7; }
.button:active:not(:disabled) { transform: translateY(0); }
.full-width { width: 100%; }
.full-width > span { margin-left: auto; }
.message { color: var(--brand); font-size: .8rem; margin: 0; line-height: 1.5; }
.message.error { color: var(--error); background: #fff4f2; border-radius: 8px; padding: 10px 12px; }
.is-loading::before { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
.request-summary { border: 1px solid var(--line); background: #fafcf9; border-radius: 12px; margin-bottom: 24px; font-size: .8rem; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.request-summary summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; }
.request-summary summary > span:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.summary-check { display: inline-grid; place-items: center; border-radius: 50%; width: 20px; height: 20px; background: #dceee0; color: #236c46; font-size: .7rem; flex: none; }
#summary-service { font-size: .73rem; color: var(--muted); }
.disclosure-arrow { transition: transform .18s; color: var(--muted); }
details[open] > summary .disclosure-arrow { transform: rotate(180deg); }
.request-summary dl { margin: 0 14px 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.request-summary dl > div { margin: 0 0 9px; }
.request-summary dt { font-size: .67rem; color: var(--muted); }
.request-summary dd { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.conversation-history > summary { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; min-height: 44px; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
[data-stage="chat"] .conversation-history > summary { display: none; }
.chat-messages { display: flex; flex-direction: column; gap: 18px; }
.chat-bubble { max-width: 94%; padding: 15px 17px; border-radius: 14px; background: var(--mint); align-self: flex-start; overflow-wrap: anywhere; animation: message-in .24s ease both; }
.chat-bubble p { margin: 5px 0 0; font-size: .88rem; line-height: 1.65; white-space: pre-wrap; }
.message-author { font-size: .65rem; letter-spacing: .04em; font-weight: 700; color: var(--brand); }
.chat-bubble.customer { background: #f1f3ef; align-self: flex-end; }
.chat-bubble.customer .message-author { color: var(--muted); }
.chat-form { gap: 8px; }
.composer { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { min-height: 68px; max-height: 120px; resize: none; }
.composer button { width: 46px; height: 46px; flex: 0 0 46px; padding: 0; font-size: 1.25rem; }
.composer .is-loading > span { display: none; }
.compact-footer { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .7rem; }
[data-stage="booking"] .request-summary { margin-bottom: 12px; }
[data-stage="booking"] .conversation-history > summary { min-height: 36px; margin-bottom: 16px; }
.booking h3 { font-size: 1.25rem; margin-bottom: 8px; }
.booking > p.subtle { font-size: .8rem; margin-bottom: 8px; }
.slot-list { display: grid; gap: 8px; margin: 16px 0 8px; }
.slot-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 10px 14px; min-height: 64px; border: 1px solid #cbded0; background: #fff; border-radius: 12px; color: var(--ink); transition: border-color .18s, background .18s, transform .18s; }
.slot-button:hover:not(:disabled) { border-color: var(--brand); background: var(--mint); transform: translateX(2px); }
.slot-day { font-size: .85rem; font-weight: 650; }
.slot-time { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; margin-top: 3px; }
.slot-arrow { font-size: 1.25rem; color: var(--brand); }
.booking-note { font-size: .73rem; color: var(--muted); margin: 18px 0 0; }
.confirmation { padding: 18px 4px; text-align: center; animation: message-in .3s ease both; }
.confirmation-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #dfefe1; color: var(--brand); font-size: 1.6rem; margin: 0 auto 24px; }
.confirmation h3 { font-size: 1.8rem; }
.confirmation > p:not(.eyebrow):not(.confirmation-time) { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.confirmation-time { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafcf8; font-size: .98rem; font-weight: 600; }
.reference { color: var(--muted); font-size: .7rem; letter-spacing: .05em; }
.subtle, small, .hint { color: var(--muted); }
.hint { font-size: .75rem; font-weight: 400; }
.top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav a { padding: 9px 15px; border-radius: 8px; font-size: .83rem; text-decoration: none; color: var(--muted); }
.top-nav a[aria-current], .top-nav a:hover { background: #e6eee6; color: var(--ink); }
.admin-page .site-header { width: min(1240px, calc(100% - 64px)); }
.admin-main { width: min(1120px, calc(100% - 64px)); margin: 44px auto 64px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-heading .eyebrow { margin-bottom: 10px; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-heading p.subtle { font-size: .94rem; margin-bottom: 0; }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.metric { padding: 23px 25px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.metric span { color: var(--muted); font-size: .78rem; }
.metric strong { display: block; font-size: 2rem; line-height: 1.3; margin-top: 9px; font-weight: 550; font-variant-numeric: tabular-nums; }
.metric:first-child { background: #eaf3ea; border-color: #d4e5d4; }
.dashboard-toolbar { display: flex; align-items: flex-end; gap: 14px; padding: 20px; border: 1px solid var(--line); background: white; border-radius: 15px; margin-bottom: 16px; }
.dashboard-toolbar label:first-child { flex: 1; }
.dashboard-toolbar label:nth-child(2) { width: 175px; }
.lead-count { color: var(--muted); font-size: .8rem; margin: 18px 2px; }
.lead-list { display: grid; gap: 16px; }
.lead { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: white; animation: message-in .2s ease both; }
.lead-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.lead-identity { display: flex; gap: 13px; align-items: center; min-width: 0; }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; background: #edf2eb; border: 1px solid #dce5d7; border-radius: 12px; color: #526c50; font-size: .85rem; font-weight: 600; }
.lead h2 { font-size: 1.02rem; margin: 0 0 5px; overflow-wrap: anywhere; }
.lead-service { color: var(--muted); font-size: .75rem; }
.lead-status { display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; border-radius: 30px; padding: 4px 10px; font-size: .66rem; font-weight: 650; text-transform: capitalize; background: #e7f2e8; color: #2c683a; }
.pill.booked { color: #315795; background: #eaf0fb; }
.pill.contacted { color: #806521; background: #f8f0da; }
.pill.closed { color: #637068; background: #edf0ec; }
.status-select { width: 125px; min-height: 38px; font-size: .75rem; padding: 8px 10px; }
.lead-description { margin: 20px 0 14px; font-size: .9rem; color: #465b4f; white-space: pre-wrap; overflow-wrap: anywhere; }
.intake-details { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 14px; margin: 20px 0; }
.intake-details dt { font-size: .72rem; color: var(--muted); }
.intake-details dd { margin: 4px 0 0; font-size: .85rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.handoff { background: #fff8e9; border: 1px solid #e8d9b8; border-radius: 12px; padding: 20px; }
.handoff p { font-size: .88rem; white-space: pre-wrap; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .76rem; color: var(--muted); margin-bottom: 16px; }
.lead-meta a { text-decoration: none; overflow-wrap: anywhere; }
.appointment-label { font-size: .79rem; color: var(--brand); padding: 10px 13px; background: #f0f7f1; border-radius: 8px; margin-bottom: 15px; }
.lead-bottom { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 13px; }
.lead-bottom small { font-size: .68rem; }
.link-button { background: transparent; color: var(--brand); font-size: .76rem; min-height: 40px; padding: 7px 0; text-align: left; }
.conversation { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; max-height: 340px; overflow-y: auto; }
.conversation .chat-bubble { padding: 10px 14px; max-width: 90%; }
.conversation .chat-bubble p { font-size: .8rem; }
.today-section { background: #ebf2e8; padding: 22px; border: 1px solid #d7e3d1; border-radius: 15px; margin: 0 0 26px; }
.today-section h2 { font-size: 1rem; }
.today-section p { font-size: .82rem; margin: 10px 0 0; }
.empty-state { text-align: center; padding: 50px 24px; background: white; border: 1px dashed #cbd8cc; border-radius: 15px; }
.empty-state h3 { margin: 0 0 10px; font-size: 1.15rem; }
.empty-state p { color: var(--muted); font-size: .86rem; }
.empty-state.compact { padding: 28px 15px; }
.admin-notice { margin-bottom: 18px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 30px; align-items: start; }
.settings-card { padding: 30px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.settings-card h2 { font-size: 1.12rem; margin-bottom: 8px; }
.settings-card > p { font-size: .82rem; color: var(--muted); }
.settings-fields { border: 0; padding: 0; margin: 0; display: grid; gap: 28px; min-width: 0; }
.settings-section { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 18px; }
.settings-section h3 { font-size: .94rem; margin-bottom: 0; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 15px; margin: 0; }
legend { font-size: .82rem; font-weight: 600; padding: 0 5px; }
.weekday-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.weekday { display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 500; min-height: 38px; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.time-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.settings-actions { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; }
.settings-preview { position: sticky; top: 30px; border-radius: 18px; padding: 28px; background: #eaf2e7; border: 1px solid #d4e3ce; }
.settings-preview h2 { font-size: 1.3rem; }
.settings-preview p { font-size: .87rem; color: #566b50; }
.preview-detail { padding: 16px 0; border-bottom: 1px solid #cedfc9; font-size: .85rem; }
.preview-detail strong { display: block; font-weight: 600; margin-bottom: 4px; }
.preview-detail span { color: #62765c; }
.settings-preview > p:last-child { font-size: .75rem; margin: 20px 0 0; }
.policy { width: min(760px, calc(100% - 48px)); margin: 48px auto; padding: 40px; border: 1px solid var(--line); background: white; border-radius: 20px; }
.policy h1 { font-size: 2.5rem; margin-top: 18px; }
.policy h2 { font-size: 1.2rem; margin-top: 28px; }
.policy p { color: var(--muted); }
.policy-back { font-size: .82rem; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes message-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1600px) { .customer-layout { margin-top: 48px; } }
@media (max-width: 1050px) {
  .customer-layout { width: calc(100% - 48px); gap: 32px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .site-header, .site-footer { width: calc(100% - 48px); }
  .intro h1 { font-size: 3.5rem; }
  .intro-copy { font-size: .94rem; }
  .desktop-break { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .weekday-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .site-header, .admin-page .site-header { height: auto; min-height: 72px; padding: 15px 0; width: calc(100% - 32px); gap: 12px; }
  .brand { font-size: 1.2rem; }
  .header-note { font-size: .68rem; max-width: 100px; text-align: right; }
  .customer-layout { display: block; width: calc(100% - 32px); margin: 25px auto 0; }
  .intro { padding: 0 8px 28px; }
  .intro .eyebrow { font-size: .65rem; margin-bottom: 12px; }
  .intro h1 { font-size: 2.65rem; margin-bottom: 14px; }
  .intro-copy { font-size: .9rem; max-width: 440px; margin-bottom: 14px; }
  .journey, .intro-footnote { display: none; }
  .service-panel { height: clamp(560px, calc(100svh - 32px), 730px); border-radius: 18px; }
  .panel-header { padding: 22px 20px 0; }
  .panel-header h2 { font-size: 1.45rem; }
  .panel-scroll { padding: 20px 15px 20px 20px; }
  .panel-footer { padding: 15px 20px; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  input, select, textarea { font-size: 16px; }
  .progress-track { gap: 12px; }
  .progress-track li { font-size: .66rem; }
  .site-footer { width: calc(100% - 40px); font-size: .69rem; }
  .site-footer nav { gap: 14px; }
  .top-nav { gap: 0; }
  .top-nav a { padding: 9px; font-size: .74rem; }
  .admin-main { width: calc(100% - 32px); margin: 28px auto 40px; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 20px; }
  .page-heading h1 { font-size: 2rem; }
  .metrics { gap: 8px; }
  .metric { padding: 18px 12px; border-radius: 12px; }
  .metric span { font-size: .66rem; }
  .metric strong { font-size: 1.6rem; }
  .dashboard-toolbar { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .dashboard-toolbar label:first-child { flex-basis: 100%; }
  .dashboard-toolbar label:nth-child(2) { flex: 1; }
  .lead { padding: 18px; }
  .lead-top { align-items: flex-start; flex-direction: column; gap: 14px; }
  .lead-status { width: 100%; justify-content: space-between; }
  .lead-bottom { flex-wrap: wrap; gap: 0; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-card { padding: 22px; }
  .settings-preview { position: static; }
  .weekday-list { grid-template-columns: repeat(3, 1fr); }
  .settings-actions { flex-direction: column; align-items: stretch; }
  .policy { margin: 24px auto; padding: 24px; }
  .policy h1 { font-size: 2rem; }
}
@media (max-width: 400px) {
  .field-row, .time-grid { grid-template-columns: 1fr; }
  .admin-page .site-header { flex-wrap: wrap; }
  .panel-header h2 { font-size: 1.3rem; }
  .header-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
