:root {
    --bg: #f7f6f3;
    --surface: #ffffff;
    --surface-2: #f3f0ec;
    --text: #2d2824;
    --muted: #746b64;
    --line: #e4dfda;
    --primary: #b94a38;
    --primary-strong: #bc4636;
    --accent: #5f9ea0;
    --soft: #f7cf8d;
    --whatsapp: #25d366;
    --whatsapp-strong: #128c4a;
    --whatsapp-soft: #e7f8ed;
    --whatsapp-line: #bcebc9;
    --shadow: 0 8px 28px rgba(57, 45, 36, .07);
}
[hidden] { display: none !important; }

[data-theme="dark"] {
    --bg: #17191b;
    --surface: #212427;
    --surface-2: #2a2e32;
    --text: #f7f4ef;
    --muted: #c1bab3;
    --line: #3b4146;
    --primary: #ff9a84;
    --primary-strong: #ffb09e;
    --accent: #93d5d0;
    --soft: #7b5a2e;
    --whatsapp: #31d978;
    --whatsapp-strong: #8cf0b3;
    --whatsapp-soft: #183928;
    --whatsapp-line: #2a6a45;
    --shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="month"],
[data-theme="dark"] input[type="time"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { max-width: 100%; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
body input, body select, body textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: .78rem .8rem; line-height: 1.35; background: var(--surface); color: var(--text); font: inherit; }
button, input, select, textarea { max-width: 100%; }
img, svg, video, canvas { max-width: 100%; }
body input:not([type]), body input[type="search"], body input[type="text"], body input[type="email"], body input[type="tel"], body input[type="url"], body input[type="password"], body input[type="number"], body input[type="month"], body input[type="date"], body input[type="time"], body input[type="datetime-local"], body input[type="file"], body select { padding-left: .8rem; padding-right: .8rem; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted), transparent 28%); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent), transparent 55%); outline-offset: 2px; border-color: color-mix(in srgb, var(--accent), transparent 20%); }
body textarea { min-height: 92px; resize: vertical; padding-left: .8rem; padding-right: .8rem; }
label { display: grid; gap: .35rem; color: var(--muted); font-size: .9rem; }
h1, h2, h3, p { margin-top: 0; }

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: min(1180px, calc(100% - 2rem)); margin: 1rem auto 0; padding: .75rem .85rem .75rem 1rem; position: sticky; top: 1rem; z-index: 20; background: rgba(255,255,255,.84); backdrop-filter: blur(18px); border: 1px solid rgba(53,37,29,.1); border-radius: 999px; box-shadow: 0 18px 50px rgba(30, 24, 20, .1); }
.brand { font-weight: 950; font-size: 1.05rem; color: #16110f; letter-spacing: 0; }
.brand-mark { display: block; flex: 0 0 auto; width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: .9rem; color: #5f5550; flex-wrap: wrap; justify-content: flex-end; font-size: .94rem; font-weight: 800; }
.button { --button-text: #ffffff; display: inline-flex; justify-content: center; align-items: center; gap: .45rem; max-width: 100%; border: 0; border-radius: 8px; background: var(--primary); color: var(--button-text); padding: .78rem 1rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(227,107,87,.24); overflow-wrap: anywhere; text-align: center; }
.button svg, .sidebar svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; stroke-width: 2.25; }
.button:hover { background: var(--primary-strong); }
.button.ghost { background: var(--surface); color: var(--primary-strong); border: 1px solid var(--line); box-shadow: none; }
.google-auth-button { min-height: 48px; color: var(--text) !important; border-color: color-mix(in srgb, var(--text), var(--line) 78%) !important; font-size: .96rem; }
.google-auth-button:hover { background: color-mix(in srgb, var(--surface-2), var(--surface) 45%); border-color: color-mix(in srgb, var(--accent), var(--line) 35%) !important; }
.google-auth-button .google-mark { width: 1.15rem; height: 1.15rem; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: .15rem 0; color: var(--muted); font-size: .78rem; font-weight: 750; text-align: center; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1 1 auto; background: var(--line); content: ""; }
.auth-divider span { flex: 0 1 auto; }
.auth-switch { margin: .15rem 0 0; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-switch a { color: var(--primary-strong); font-weight: 900; }
.button.danger { background: #dc2626; color: #fff; box-shadow: 0 10px 22px rgba(220, 38, 38, .18); }
.button.danger:hover { background: #b91c1c; }
.button.small { padding: .5rem .75rem; font-size: .9rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: 3rem; min-height: calc(100vh - 78px); align-items: center; padding: clamp(2rem, 6vw, 6rem); }
.hero-copy { min-width: 0; }
.hero-copy h1 { font-size: clamp(3rem, 8vw, 6.6rem); line-height: .9; margin-bottom: 1rem; color: var(--text); }
.hero-copy p { max-width: 680px; font-size: 1.18rem; color: var(--muted); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.eyebrow { text-transform: uppercase; font-size: .78rem !important; letter-spacing: .08em; color: var(--accent) !important; font-weight: 900; }
.hero-visual { min-height: 430px; border-radius: 24px; background: radial-gradient(circle at 20% 20%, var(--soft), transparent 38%), linear-gradient(135deg, var(--surface-2), var(--surface)); display: grid; place-items: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.calendar-card { width: min(86%, 390px); display: grid; gap: .8rem; }
.calendar-card span { display: block; padding: 1rem; border-radius: 14px; background: var(--surface); border-left: 6px solid var(--accent); box-shadow: 0 10px 24px rgba(0,0,0,.08); font-weight: 800; }
.feature-grid, .pricing-wrap, .form-page { padding: clamp(2rem, 6vw, 6rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-grid article, .panel, .price-card, .stat, .mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.feature-grid article { padding: 1.4rem; }
.feature-icon { display: inline-grid; place-items: center; height: 42px; width: 42px; border-radius: 8px; background: var(--surface-2); color: var(--primary-strong); font-weight: 900; margin-bottom: 1rem; }
.pricing-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr); gap: 2rem; align-items: center; }
.pricing-wrap h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1; }
.price-card { padding: 1.5rem; display: grid; gap: .9rem; min-width: 0; }
.price-card h2, .price-card li, .price-card p { overflow-wrap: anywhere; }
.compact-price-card { padding: 1.05rem; gap: .65rem; }
.compact-price-card .price-line { font-size: 1.55rem; }
.pricing-cards, .billing-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.plan-card { grid-template-rows: auto auto auto auto 1fr auto; align-content: start; }
.plan-card .price-line { margin-bottom: -.25rem; }
.plan-card form { align-self: end; }
.plan-feature-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.plan-feature-list li { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr) auto; align-items: center; gap: .55rem; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); min-width: 0; }
.plan-feature-list svg { width: 1rem; height: 1rem; color: var(--primary-strong); }
.plan-feature-list span { color: var(--muted); font-size: .86rem; line-height: 1.25; min-width: 0; }
.plan-feature-list strong { color: var(--text); font-weight: 900; white-space: nowrap; }
.whatsapp-stat { background: linear-gradient(180deg, color-mix(in srgb, var(--whatsapp-soft), var(--surface) 20%), var(--surface)); border-color: var(--whatsapp-line); }
.whatsapp-title { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.whatsapp-title h2 { margin-bottom: 0; }
.whatsapp-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--whatsapp); color: #fff; flex: 0 0 auto; box-shadow: 0 8px 18px color-mix(in srgb, var(--whatsapp), transparent 72%); }
.whatsapp-title .whatsapp-icon { color: #fff; }
.whatsapp-icon svg { width: 1rem; height: 1rem; stroke-width: 2.4; }
.whatsapp-card { border-color: var(--whatsapp-line); background: color-mix(in srgb, var(--whatsapp-soft), var(--surface) 58%); box-shadow: none; }
.whatsapp-card .badge { background: color-mix(in srgb, var(--whatsapp), transparent 86%); color: var(--whatsapp-strong); }
.whatsapp-card .price-line { color: var(--whatsapp-strong); }
.reminder-stat { box-shadow: none; }
.reminder-stat-info { background: color-mix(in srgb, #3b82f6, var(--surface) 88%); border-color: color-mix(in srgb, #3b82f6, var(--line) 45%); }
.reminder-stat-warning { background: color-mix(in srgb, #facc15, var(--surface) 78%); border-color: color-mix(in srgb, #eab308, var(--line) 35%); }
.reminder-stat-danger { background: color-mix(in srgb, #ef4444, var(--surface) 84%); border-color: color-mix(in srgb, #ef4444, var(--line) 35%); }
.reminder-stat-success { background: color-mix(in srgb, #22c55e, var(--surface) 88%); border-color: color-mix(in srgb, #22c55e, var(--line) 45%); }
.reminder-details { display: grid; gap: .7rem; }
.reminder-summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; }
.reminder-summary::-webkit-details-marker { display: none; }
.reminder-summary strong { font-size: 1.45rem; line-height: 1; color: var(--primary-strong); }
.reminder-summary::after { content: "⌄"; color: var(--muted); font-weight: 900; transition: transform .16s ease; }
.reminder-details[open] .reminder-summary::after { transform: rotate(180deg); }
.reminder-details-body { display: grid; gap: .55rem; padding-top: .65rem; border-top: 1px solid color-mix(in srgb, var(--line), transparent 25%); }
.stat-inline-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.stat-inline-header strong { font-size: 1.45rem; line-height: 1; white-space: nowrap; }
.whatsapp-manual-action { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.whatsapp-manual-action div { display: grid; gap: .15rem; }
.whatsapp-manual-action span { display: block; }
.whatsapp-manual-list { display: grid; gap: .45rem; margin-top: .45rem; }
.whatsapp-manual-list form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .45rem; padding: .45rem; border: 1px solid var(--whatsapp-line); border-radius: 8px; background: color-mix(in srgb, var(--whatsapp-soft), var(--surface) 64%); }
.reminder-delivery-list { display: grid; gap: .45rem; margin-top: .45rem; }
.reminder-delivery-item { display: grid; gap: .12rem; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--surface-2), var(--surface) 45%); }
.reminder-delivery-text { display: grid; gap: .12rem; min-width: 0; color: var(--text); }
.reminder-delivery-item > span, .reminder-delivery-text > span, .reminder-delivery-item small, .reminder-delivery-text small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reminder-delivery-item > span, .reminder-delivery-text > span { color: var(--text); font-weight: 850; }
.reminder-delivery-item small, .reminder-delivery-text small { color: var(--muted); font-weight: 750; font-size: .78rem; }
.reminder-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-items: start; }
.reminder-channel-section { display: grid; gap: .45rem; min-width: 0; }
.reminder-channel-heading { display: flex; align-items: center; gap: .45rem; color: var(--text) !important; font-weight: 900; }
.reminder-channel-heading small { color: var(--muted); font-size: .78rem; font-weight: 750; }
.current-plan { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary), transparent 75%), var(--shadow); background: color-mix(in srgb, var(--primary), var(--surface) 94%); }
.current-plan-indicator, .status-pill { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; width: fit-content; max-width: 100%; min-height: 42px; padding: .55rem .85rem; border: 1px solid color-mix(in srgb, var(--primary), transparent 55%); border-radius: 999px; background: color-mix(in srgb, var(--primary), #fff 88%); color: var(--primary-strong); font-weight: 950; line-height: 1.1; }
.current-plan-indicator { align-self: end; }
.current-plan-indicator svg, .status-pill svg { width: 1rem; height: 1rem; stroke-width: 3; }
.status-pill-active { box-shadow: var(--shadow); }
.pending-plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.pending-plan-indicator { border-color: rgba(239, 106, 77, .38); background: color-mix(in srgb, var(--accent), #fff 88%); color: #7b3a27; }
.price { font-size: 2.3rem; font-weight: 900; color: var(--primary-strong); }
.billing-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; width: min(100%, 460px); margin: 0 auto 1rem; padding: .28rem; gap: .3rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.78); box-shadow: var(--shadow); }
.billing-toggle a { position: relative; display: grid; justify-items: center; align-content: center; gap: .12rem; min-height: 56px; padding: .52rem 1rem; border-radius: 8px; color: var(--muted); font-weight: 850; text-decoration: none; text-align: center; }
.billing-toggle strong { color: inherit; font-size: .98rem; }
.billing-toggle span { color: inherit; opacity: .78; font-size: .76rem; line-height: 1.15; }
.billing-toggle em { position: absolute; top: -.58rem; right: .45rem; padding: .18rem .42rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; font-style: normal; font-weight: 950; box-shadow: 0 8px 18px rgba(239, 106, 77, .24); }
.billing-toggle a.is-active { background: #171412; color: #fff; box-shadow: 0 10px 24px rgba(23, 20, 18, .18); }
.pricing-tax-note { margin: 1rem auto 0; max-width: 820px; padding: .85rem 1rem; border: 1px solid rgba(239, 106, 77, .35); border-radius: 8px; background: rgba(255,255,255,.86); color: var(--text); text-align: center; font-size: .95rem; font-weight: 850; box-shadow: 0 14px 34px rgba(23, 20, 18, .08); }
.billing-help-panel .section-toolbar > svg { width: 1.5rem; height: 1.5rem; color: var(--primary-strong); }
[data-theme="dark"] .account-layout .billing-toggle { background: var(--surface-2); }
[data-theme="dark"] .account-layout .billing-toggle a:not(.is-active):hover { background: color-mix(in srgb, var(--accent), var(--surface-2) 90%); color: var(--text); }
[data-theme="dark"] .account-layout .current-plan-indicator { border-color: color-mix(in srgb, var(--primary), var(--line) 42%); background: color-mix(in srgb, var(--primary), var(--surface) 84%); color: var(--text); }
[data-theme="dark"] .account-layout .pending-plan-indicator { border-color: color-mix(in srgb, var(--accent), var(--line) 42%); background: color-mix(in srgb, var(--accent), var(--surface) 84%); color: var(--text); }
[data-theme="dark"] .account-layout .pricing-tax-note { border-color: color-mix(in srgb, var(--primary), var(--line) 45%); background: var(--surface-2); color: var(--text); box-shadow: none; }
.badge, .trial-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .35rem .65rem; background: var(--surface-2); color: var(--primary-strong); font-weight: 800; font-size: .82rem; }

.marketing-page { --mk-bg: #f8faf7; --mk-ink: #171412; --mk-muted: #675f58; --mk-card: #ffffff; --mk-line: rgba(23, 20, 18, .12); --mk-coral: #ef6a4d; --mk-teal: #16a6a0; --mk-lime: #d7f36d; position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 12% 8%, rgba(239, 106, 77, .16), transparent 30%), radial-gradient(circle at 82% 0%, rgba(22, 166, 160, .18), transparent 28%), linear-gradient(180deg, #fbfcf7 0%, #f5f1ea 55%, #fbfcf7 100%); color: var(--mk-ink); margin-top: -5.4rem; padding-top: 6.4rem; }
.marketing-page::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .13; background-image: radial-gradient(circle at 34px 42px, #171412 0 7px, transparent 8px), radial-gradient(circle at 17px 22px, #171412 0 3px, transparent 4px), radial-gradient(circle at 32px 16px, #171412 0 3.5px, transparent 4.5px), radial-gradient(circle at 49px 22px, #171412 0 3px, transparent 4px); background-size: 264px 264px; background-position: 28px 56px; mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 70%, transparent 100%); }
.marketing-hero, .marketing-section, .marketing-band, .pricing-panel, .pricing-hero, .marketing-cta, .proof-strip { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.marketing-hero { display: grid; gap: 2rem; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); }
.centered-hero { justify-items: center; text-align: center; }
.marketing-copy, .section-intro { display: grid; justify-items: start; gap: 1rem; width: 100%; min-width: 0; }
.centered-hero .marketing-copy, .centered-hero .section-intro { justify-items: center; }
.marketing-pill { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; width: fit-content; max-width: 100%; min-height: 32px; margin: 0; padding: .34rem .7rem; border: 1px solid rgba(23, 20, 18, .1); border-radius: 999px; background: rgba(255, 255, 255, .68); color: #51463f; font-size: .78rem; font-weight: 950; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 10px 28px rgba(23, 20, 18, .06); overflow-wrap: anywhere; }
.marketing-copy h1, .pricing-hero h1 { margin: 0; max-width: 880px; color: var(--mk-ink); font-size: clamp(3rem, 6.7vw, 6.2rem); line-height: .9; text-wrap: balance; overflow-wrap: anywhere; }
.marketing-lede, .section-intro p, .marketing-cta p, .pricing-promise span { color: var(--mk-muted); font-size: clamp(1.02rem, 2vw, 1.22rem); line-height: 1.58; max-width: 760px; text-wrap: pretty; }
.centered-hero .marketing-lede, .centered-hero .section-intro p { margin-inline: auto; }
.marketing-page .hero-actions { justify-content: center; margin-top: .25rem; }
.marketing-page .button { border-radius: 999px; min-height: 46px; padding-inline: 1.15rem; box-shadow: 0 14px 30px rgba(239, 106, 77, .24); }
.marketing-page .button.ghost { background: rgba(255,255,255,.72); color: var(--mk-ink); border-color: rgba(23, 20, 18, .13); }
.hero-proof { display: flex; justify-content: center; gap: .65rem; flex-wrap: wrap; margin-top: .55rem; }
.hero-proof div { display: inline-grid; grid-template-columns: auto auto; align-items: baseline; gap: .4rem; padding: .55rem .75rem; border: 1px solid rgba(23, 20, 18, .1); border-radius: 999px; background: rgba(255,255,255,.68); box-shadow: 0 10px 26px rgba(23, 20, 18, .06); }
.hero-proof strong { color: var(--mk-ink); font-size: .96rem; }
.hero-proof span { color: var(--mk-muted); font-size: .86rem; }
.product-showcase { position: relative; display: grid; gap: 1rem; width: 100%; min-width: 0; padding: .85rem; border: 1px solid rgba(255,255,255,.78); border-radius: 26px; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.62)); box-shadow: 0 42px 120px rgba(34, 26, 20, .18); overflow: hidden; }
.hero-product-showcase { width: min(1180px, calc(100% - 2rem)); margin: -1.2rem auto 2.4rem; }
.app-screenshot-frame { position: relative; min-width: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 28px; background: rgba(255,255,255,.72); box-shadow: 0 42px 120px rgba(34, 26, 20, .18); overflow: hidden; }
.app-screenshot-frame img { display: block; width: 100%; height: auto; }
.app-screenshot-frame figcaption { position: absolute; left: 1rem; bottom: 1rem; display: grid; gap: .12rem; max-width: min(440px, calc(100% - 2rem)); padding: .75rem .9rem; border: 1px solid rgba(255,255,255,.72); border-radius: 16px; background: rgba(255,255,255,.86); backdrop-filter: blur(16px); box-shadow: 0 16px 42px rgba(23, 20, 18, .12); text-align: left; }
.app-screenshot-frame figcaption strong { color: var(--mk-ink); }
.app-screenshot-frame figcaption span { color: var(--mk-muted); font-size: .9rem; line-height: 1.35; }
.screenshot-split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.compact-screenshot { border-radius: 22px; box-shadow: 0 28px 80px rgba(34, 26, 20, .14); }
.product-showcase::before { content: ""; position: absolute; inset: .85rem; border-radius: 20px; background: linear-gradient(135deg, rgba(239, 106, 77, .12), transparent 35%), linear-gradient(315deg, rgba(22, 166, 160, .14), transparent 38%); pointer-events: none; }
.showcase-toolbar, .showcase-grid { position: relative; z-index: 1; }
.showcase-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .85rem 1rem; border: 1px solid rgba(23, 20, 18, .08); border-radius: 18px; background: rgba(255,255,255,.74); color: var(--mk-muted); font-weight: 850; }
.showcase-toolbar div:first-child { display: grid; gap: .1rem; text-align: left; }
.showcase-toolbar strong { color: var(--mk-ink); font-size: 1rem; }
.showcase-tabs { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.showcase-tabs span { padding: .38rem .62rem; border-radius: 999px; background: #171412; color: #fff; font-size: .78rem; font-weight: 900; }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(260px, .82fr); gap: .85rem; align-items: stretch; }
.schedule-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; min-width: 0; }
.schedule-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .75rem; align-items: center; min-height: 112px; padding: .85rem; border: 1px solid rgba(23, 20, 18, .09); border-radius: 18px; background: rgba(255,255,255,.86); box-shadow: 0 12px 32px rgba(23, 20, 18, .08); }
.schedule-row time { color: var(--mk-coral); font-weight: 950; }
.schedule-row div { display: grid; gap: .18rem; min-width: 0; text-align: left; }
.schedule-row strong, .pet-preview-card h2 { color: var(--mk-ink); }
.schedule-row span, .pet-preview-card li { color: var(--mk-muted); font-size: .9rem; line-height: 1.35; }
.schedule-row.is-active { border-color: rgba(22, 166, 160, .34); box-shadow: inset 5px 0 0 var(--mk-teal), 0 16px 38px rgba(22, 166, 160, .14); }
.schedule-row.is-done { opacity: .74; }
.pet-preview-card { display: grid; align-content: start; gap: .85rem; min-width: 0; padding: 1rem; border: 1px solid rgba(23, 20, 18, .09); border-radius: 18px; background: #171412; color: #fff; box-shadow: 0 20px 48px rgba(23, 20, 18, .22); text-align: left; }
.pet-preview-card h2 { color: #fff; font-size: 1.9rem; }
.pet-preview-card .badge { width: max-content; background: rgba(215, 243, 109, .16); color: var(--mk-lime); border: 1px solid rgba(215, 243, 109, .28); }
.pet-preview-card li { color: rgba(255,255,255,.74); }
.pet-preview-card ul { display: grid; gap: .55rem; margin: 0; padding-left: 1rem; }
.reminder-chip { padding: .75rem .85rem; border-radius: 14px; background: rgba(22, 166, 160, .16); color: #bdf7ef; font-weight: 900; border: 1px solid rgba(22, 166, 160, .32); }
.proof-strip { display: flex; justify-content: center; gap: .65rem; flex-wrap: wrap; padding: .4rem 0 2.5rem; }
.proof-strip span { padding: .58rem .85rem; border-radius: 999px; background: #171412; color: #fff; font-size: .86rem; font-weight: 900; }
.marketing-section, .marketing-band, .pricing-panel, .pricing-hero { padding: clamp(2.2rem, 6vw, 4.8rem) 0; }
.marketing-band { width: 100%; max-width: none; padding-inline: max(1rem, calc((100vw - 1180px) / 2)); border-block: 1px solid rgba(23, 20, 18, .1); background: rgba(255,255,255,.48); }
.marketing-band .section-intro, .marketing-band .outcome-grid { width: min(1180px, 100%); margin-inline: auto; }
.section-intro h2 { margin: 0; color: var(--mk-ink); font-size: clamp(2.1rem, 4.8vw, 4.4rem); line-height: .96; max-width: 820px; text-wrap: balance; }
.outcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1.5rem; }
.outcome-grid article { display: grid; gap: .45rem; min-width: 0; padding: 1.1rem; border: 1px solid rgba(23, 20, 18, .1); border-radius: 20px; background: rgba(255,255,255,.76); box-shadow: 0 16px 42px rgba(23, 20, 18, .08); }
.outcome-grid strong { color: var(--mk-ink); font-size: 1.08rem; }
.outcome-grid span { color: var(--mk-muted); line-height: 1.45; }
.rich-feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; padding: 0; margin-top: 1.5rem; }
.rich-feature-grid article { display: grid; align-content: start; min-width: 0; min-height: 220px; padding: 1.1rem; border-radius: 22px; background: rgba(255,255,255,.78); border: 1px solid rgba(23, 20, 18, .1); box-shadow: 0 16px 42px rgba(23, 20, 18, .08); }
.rich-feature-grid article:nth-child(1), .rich-feature-grid article:nth-child(2) { grid-column: span 3; }
.rich-feature-grid article:nth-child(n+3) { grid-column: span 2; }
.rich-feature-grid .feature-icon { background: #171412; color: #fff; }
.rich-feature-grid h3 { margin: 0 0 .45rem; color: var(--mk-ink); font-size: 1.15rem; }
.rich-feature-grid p { color: var(--mk-muted); line-height: 1.5; }
.split-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.workflow-list { display: grid; gap: .85rem; }
.workflow-list article { display: grid; grid-template-columns: 3.3rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem; border: 1px solid rgba(23, 20, 18, .1); border-radius: 20px; background: rgba(255,255,255,.8); box-shadow: 0 16px 42px rgba(23, 20, 18, .08); }
.workflow-list article > span { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 16px; background: var(--mk-lime); color: #171412; font-weight: 950; }
.workflow-list h3 { margin-bottom: .35rem; color: var(--mk-ink); }
.workflow-list p { color: var(--mk-muted); line-height: 1.5; margin-bottom: 0; }
.faq-list { display: grid; gap: .75rem; max-width: 920px; margin-top: 1.25rem; }
.faq-list details { border: 1px solid rgba(23, 20, 18, .1); border-radius: 18px; background: rgba(255,255,255,.78); padding: 1rem 1.1rem; box-shadow: 0 12px 34px rgba(23, 20, 18, .07); }
.faq-list summary { cursor: pointer; color: var(--mk-ink); font-weight: 950; }
.faq-list p { margin: .75rem 0 0; color: var(--mk-muted); line-height: 1.55; }
.marketing-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-block: clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 4rem); padding: clamp(1.25rem, 4vw, 2.4rem); border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: #171412; color: #fff; box-shadow: 0 30px 80px rgba(23, 20, 18, .22); }
.marketing-cta .marketing-pill { background: rgba(255,255,255,.08); color: var(--mk-lime); border-color: rgba(255,255,255,.16); }
.marketing-cta h2 { margin-bottom: .35rem; color: #fff; font-size: clamp(2rem, 4vw, 3.8rem); line-height: .96; text-wrap: balance; }
.marketing-cta p { color: rgba(255,255,255,.7); }
.pricing-hero { display: grid; justify-items: center; gap: .75rem; text-align: center; padding-top: clamp(1.2rem, 3vw, 2.4rem); padding-bottom: 1rem; }
.pricing-hero h1 { font-size: clamp(2.25rem, 4.7vw, 4rem); line-height: .98; }
.pricing-hero .section-intro { gap: .7rem; }
.pricing-hero .section-intro > p { font-size: clamp(.98rem, 1.55vw, 1.12rem); line-height: 1.45; }
.pricing-promise { display: grid; gap: .25rem; width: min(760px, 100%); margin: 1.1rem auto 0; padding: .95rem 1rem; border: 1px solid rgba(23, 20, 18, .1); border-radius: 12px; background: rgba(255,255,255,.72); box-shadow: 0 16px 42px rgba(23, 20, 18, .08); text-align: center; }
.pricing-promise strong { color: var(--mk-ink); }
.pricing-panel { padding-top: .25rem; }
.upgraded-pricing-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: .9rem; }
.upgraded-pricing-cards .price-card { position: relative; border-radius: 24px; background: rgba(255,255,255,.82); border-color: rgba(23, 20, 18, .1); box-shadow: 0 18px 48px rgba(23, 20, 18, .1); }
.upgraded-pricing-cards .plan-feature-list li { grid-template-columns: 1.15rem minmax(0, 1fr); background: rgba(255,255,255,.58); }
.plan-card-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .75rem; }
.plan-card-header h2 { margin: 0; min-width: 0; }
.plan-card-price { display: grid; justify-items: end; gap: .1rem; min-width: 112px; text-align: right; }
.plan-card-price strong { color: var(--primary-strong); font-size: 1.05rem; line-height: 1.15; white-space: nowrap; }
.plan-card-price span { color: var(--muted); font-size: .8rem; font-weight: 850; }
.yearly-savings-pill { display: inline-flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; padding: .34rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--accent), transparent 86%); color: var(--primary-strong); font-size: .8rem; font-weight: 900; line-height: 1.2; }
.plan-summary { color: var(--mk-muted); line-height: 1.4; min-height: 2.8rem; }
.featured-plan { background: linear-gradient(180deg, #171412 0%, #241a15 100%) !important; color: #fff; border-color: rgba(23, 20, 18, .9) !important; transform: translateY(-.65rem); box-shadow: 0 34px 90px rgba(23, 20, 18, .32) !important; }
.featured-plan .badge { background: var(--mk-lime); color: #171412; }
.featured-plan h2, .featured-plan .price, .featured-plan .plan-card-price strong { color: #fff; }
.featured-plan .muted, .featured-plan .plan-summary { color: rgba(255,255,255,.84); }
.featured-plan .plan-card-price span { color: rgba(255,255,255,.68); }
.featured-plan .yearly-savings-pill { background: rgba(215, 243, 109, .16); color: var(--mk-lime); }
.featured-plan .plan-feature-list li { background: #fffaf4; border-color: rgba(255,255,255,.78); color: #171412; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.featured-plan .plan-feature-list li span:not(.check-mark) { color: #2f241f; font-weight: 850; }
.featured-plan .check-mark { background: var(--mk-lime); color: #171412; box-shadow: 0 0 0 3px rgba(215, 243, 109, .22); }
.featured-plan .button { background: var(--mk-lime); color: #171412; box-shadow: 0 16px 36px rgba(215, 243, 109, .24); }
.featured-plan .button:hover { background: #c9ed55; }
.featured-plan::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, var(--mk-coral), var(--mk-teal), var(--mk-lime)); }
.check-mark { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 999px; background: rgba(22, 166, 160, .14); color: var(--mk-teal); font-weight: 950; font-size: .75rem; }
.pricing-included { margin-top: 0; }
.pricing-proof-screenshot { width: min(980px, 100%); margin: 1.4rem auto 0; border-radius: 22px; }
.form-page { min-height: calc(100vh - 78px); display: grid; place-items: center; }
.form-stack { display: grid; gap: .9rem; }
.panel { padding: 1.25rem; min-width: 0; }
.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s ease; }
.app-shell.sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 1rem; position: sticky; top: 0; height: 100vh; overflow: hidden auto; }
.sidebar-header { display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.sidebar-brand { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.sidebar-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-2); cursor: pointer; }
.sidebar-toggle:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent), var(--line) 40%); }
.salon-chip, .shop-chip { background: var(--surface-2); border-radius: 8px; padding: .75rem; color: var(--muted); font-weight: 800; margin-bottom: .65rem; }
.salon-chip { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.sidebar-logo { width: 100%; max-height: 88px; object-fit: contain; object-position: left center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: .75rem; margin-bottom: .65rem; }
.settings-logo-preview { max-width: 180px; max-height: 90px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); padding: .65rem; }
.shop-switcher { margin-bottom: 1rem; }
.shop-switcher label { gap: .45rem; }
.side-nav { display: grid; gap: .75rem; }
.side-nav-group { display: grid; gap: .25rem; }
.side-nav-admin, .side-nav-utility { padding-top: .75rem; border-top: 1px solid var(--line); }
.side-nav-heading { display: flex; align-items: center; gap: .7rem; min-height: 30px; padding: .2rem .8rem; color: var(--muted); font-size: .72rem; font-weight: 950; text-transform: uppercase; letter-spacing: .04em; min-width: 0; }
.side-nav-heading svg { width: .9rem; height: .9rem; stroke-width: 2.4; color: var(--primary-strong); flex: 0 0 auto; }
.side-nav form { margin: 0; }
.side-nav a, .side-nav-action { display: flex; align-items: center; gap: .7rem; min-height: 42px; padding: .7rem .8rem; border-radius: 8px; color: var(--muted); font-weight: 750; min-width: 0; }
.side-nav-action { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; font-family: inherit; }
.side-nav a:hover, .side-nav a.is-active, .side-nav-action:hover { background: var(--surface-2); color: var(--text); }
.side-nav-admin-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem; min-width: 0; }
.side-nav-admin-toggle { display: flex; align-items: center; gap: .7rem; width: 100%; min-width: 0; min-height: 42px; padding: .7rem .8rem; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font: inherit; font-weight: 850; text-align: left; cursor: pointer; }
.side-nav-admin-toggle:hover, .side-nav-admin.is-open .side-nav-admin-toggle { color: var(--text); background: var(--surface-2); }
.side-nav-admin-toggle > svg:first-child { color: var(--primary-strong); }
.admin-menu-chevron { width: .95rem !important; height: .95rem !important; margin-left: auto; transition: transform .18s ease; }
.side-nav-admin.is-open .admin-menu-chevron { transform: rotate(180deg); }
.admin-mode-exit { display: inline-flex; align-items: center; gap: .3rem; min-height: 34px; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); font: inherit; font-size: .72rem; font-weight: 850; cursor: pointer; }
.admin-mode-exit:hover { color: #b91c1c; border-color: color-mix(in srgb, #b91c1c, var(--line) 55%); background: color-mix(in srgb, #b91c1c, transparent 94%); }
.admin-mode-exit svg { width: .85rem; height: .85rem; }
.side-nav-admin-content { display: grid; gap: .25rem; }
.side-nav-admin-content[hidden] { display: none; }
.admin-pin-inline { display: grid; gap: .65rem; margin-top: .15rem !important; padding: .75rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.admin-pin-inline-help { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.admin-pin-inline label { display: grid; gap: .35rem; color: var(--text); font-size: .7rem; font-weight: 850; }
.admin-pin-inline input { width: 100%; min-width: 0; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface); }
.admin-pin-inline input:focus { outline: 2px solid color-mix(in srgb, var(--primary), transparent 65%); outline-offset: 1px; border-color: var(--primary); }
.admin-pin-inline .button { width: 100%; justify-content: center; }
.admin-pin-inline-error { margin: -.1rem 0 0; color: #b91c1c; font-size: .7rem; font-weight: 800; line-height: 1.35; }
.admin-pin-recovery { text-align: center; }
.admin-pin-recovery button { padding: .25rem .4rem; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: .68rem; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.admin-pin-recovery button:hover { color: var(--text); }
[data-theme="dark"] .admin-mode-exit:hover, [data-theme="dark"] .admin-pin-inline-error { color: #ffb4a8; }
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-collapsed .sidebar { padding-left: .65rem; padding-right: .65rem; }
.sidebar-collapsed .sidebar-header { grid-template-columns: 1fr; justify-items: center; }
.sidebar-collapsed .sidebar-brand { justify-content: center; width: 42px; height: 42px; }
.sidebar-collapsed .sidebar-toggle { width: 42px; }
.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.sidebar-collapsed .nav-label, .sidebar-collapsed .sidebar-logo, .sidebar-collapsed .shop-switcher { display: none; }
.sidebar-collapsed .salon-chip { justify-content: center; padding: .7rem 0; }
.sidebar-collapsed .side-nav a, .sidebar-collapsed .side-nav-action { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-collapsed .side-nav-heading { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-collapsed .side-nav a svg, .sidebar-collapsed .side-nav-action svg, .sidebar-collapsed .salon-chip svg, .sidebar-collapsed .sidebar-brand svg { width: 1.2rem; height: 1.2rem; }
.sidebar-collapsed .side-nav-admin-header { grid-template-columns: 1fr; }
.sidebar-collapsed .side-nav-admin-toggle { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-collapsed .admin-menu-chevron, .sidebar-collapsed .admin-mode-exit-form, .sidebar-collapsed .side-nav-admin-content { display: none; }
.app-main { padding: 1.2rem; min-width: 0; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; min-width: 0; }
.app-topbar > div { min-width: 0; }
.app-topbar h1 { margin-bottom: 0; font-size: 2rem; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; }
.flash, .warning { padding: .9rem 1rem; border-radius: 8px; margin-bottom: 1rem; background: #fff4c2; color: #5c4100; border: 1px solid #f4d97a; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.flash form { margin: 0; }
.flash-success { background: color-mix(in srgb, #22c55e, var(--surface) 88%); color: color-mix(in srgb, #166534, var(--text) 20%); border-color: color-mix(in srgb, #22c55e, var(--line) 45%); }
.flash-error { background: color-mix(in srgb, #ef4444, var(--surface) 90%); color: color-mix(in srgb, #991b1b, var(--text) 20%); border-color: color-mix(in srgb, #ef4444, var(--line) 52%); }
.flash-info { background: color-mix(in srgb, var(--accent), var(--surface) 88%); color: var(--text); border-color: color-mix(in srgb, var(--accent), var(--line) 50%); }
.field-error { display: block; margin-top: .25rem; color: #b91c1c; font-size: .78rem; font-weight: 800; }
[aria-invalid="true"] { border-color: #dc2626 !important; box-shadow: 0 0 0 2px color-mix(in srgb, #dc2626, transparent 82%); }
.public-flash-wrap { max-width: 720px; margin: 1rem auto 0; padding: 0 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.reminder-nav, .visits-nav { position: relative; }
.nav-attention-count { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 999px; background: #b94a38; color: #fff; text-align: center; font-size: 11px; font-weight: 700; line-height: 18px; }
.sidebar-collapsed .nav-attention-count { position: absolute; right: -3px; top: -3px; min-width: 18px; padding: 0 4px; font-size: 10px; }
.reports-stats { grid-template-columns: repeat(5, minmax(170px, 1fr)); }
.stat { padding: 1.1rem; display: grid; gap: .35rem; }
.dashboard-stat { align-content: start; }
.dashboard-stat form { margin-top: .35rem; }
.stat-success { background: color-mix(in srgb, #22c55e, var(--surface) 88%); border-color: color-mix(in srgb, #22c55e, var(--line) 45%); }
.button.success { background: #16743c; color: #fff; box-shadow: none; }
.button.success:disabled { cursor: default; opacity: 1; }
.compact-stat { box-shadow: none; }
.stat span, .muted, .list-row span { color: var(--muted); }
.stat strong { font-size: 2rem; color: var(--primary-strong); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.row-actions { display: flex; gap: .35rem; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; }
.row-actions form { margin: 0; }
.row-actions .button.has-icon { width: 34px; height: 34px; min-width: 34px; padding: 0; gap: 0; font-size: 0; }
.row-actions .button.has-icon svg { width: 1rem; height: 1rem; }
.section-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.section-toolbar h2 { margin-bottom: 0; }
.section-toolbar .eyebrow { margin-bottom: .25rem; }
.page-title { display: flex; align-items: center; gap: .65rem; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.page-title i { width: 1.45rem; height: 1.45rem; color: var(--primary-strong); stroke-width: 2.5; flex: 0 0 auto; }
.data-table { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.data-row { display: grid; align-items: center; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); min-width: 0; }
.data-row:last-child { border-bottom: 0; }
.data-row > span, .data-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-row > div { min-width: 0; }
.data-row[data-row-open-modal], .shop-summary-card[data-row-open-modal] { cursor: pointer; }
.data-row[data-row-open-modal]:hover, .data-row[data-row-open-modal]:focus-visible, .shop-summary-card[data-row-open-modal]:hover, .shop-summary-card[data-row-open-modal]:focus-visible { background: color-mix(in srgb, var(--accent), transparent 92%); outline: none; }
.data-head { background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.panel-shell .data-row { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.panel-shell form.data-row { margin: 0; }
.panel-shell .data-row > span, .panel-shell .data-row strong { white-space: normal; overflow-wrap: anywhere; }
.panel-shell .row-actions { justify-content: flex-start; flex-wrap: wrap; }
.panel-shell .row-actions select { min-width: 130px; }
.panel-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.panel-chart-card { display: grid; gap: 1rem; min-height: 390px; padding: 1.1rem; box-shadow: var(--shadow); }
.panel-chart-card canvas { width: 100% !important; height: 300px !important; }
.panel-chart-wide { grid-column: 1 / -1; }
.owners-row { grid-template-columns: minmax(190px, 1.4fr) minmax(130px, .8fr) minmax(180px, 1fr) minmax(78px, 78px); }
.services-row { grid-template-columns: minmax(220px, 1.35fr) minmax(140px, .7fr) minmax(110px, .6fr) minmax(180px, 1fr) minmax(78px, 78px); }
.pets-row { grid-template-columns: minmax(360px, 1.8fr) minmax(150px, .65fr) minmax(180px, 1fr) minmax(154px, 154px); }
.groomers-row { grid-template-columns: minmax(190px, 1.15fr) minmax(130px, .65fr) minmax(180px, .9fr) minmax(135px, .7fr) minmax(165px, .85fr) minmax(105px, .5fr) minmax(120px, .55fr) minmax(154px, 154px); }
.groomers-table { overflow-x: auto; }
.visits-row { grid-template-columns: minmax(210px, 1.1fr) minmax(180px, .9fr) minmax(145px, .7fr) minmax(145px, .7fr) minmax(200px, 1fr) minmax(125px, .55fr); }
.visits-money-summary { display: flex; flex-wrap: wrap; gap: .65rem; }
.visits-money-summary .billing-stat { min-width: 145px; }
.visits-money-summary .billing-stat strong { font-size: 1.3rem; }
.billing-stat-link { color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.billing-stat-link:hover, .billing-stat-link:focus-visible { transform: translateY(-1px); border-color: var(--primary); outline: none; }
.payment-pill { width: max-content; }
.contact-profile-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }
.payment-pill-paid { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.payment-pill-unpaid { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.payment-pill-refunded { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.payment-pill-waived { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.visit-management { position: relative; }
.visit-management[open] { grid-column: 1 / -1; }
.visit-management > summary { list-style: none; }
.visit-management > summary::-webkit-details-marker { display: none; }
.visit-management-body { display: grid; gap: 1rem; min-width: 240px; margin-top: .65rem; padding: .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.visit-management-body form + form, .visit-management-body form + .rebooking-complete { padding-top: .9rem; border-top: 1px solid var(--line); }
.rebooking-complete { display: grid; gap: .5rem; }
.onboarding-panel { margin-bottom: 1.5rem; }
.onboarding-progress { width: min(260px, 100%); height: 10px; overflow: hidden; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.onboarding-progress span { display: block; width: var(--onboarding-progress, 0%); height: 100%; background: var(--primary); transition: width .2s ease; }
.onboarding-steps { display: grid; gap: .55rem; }
.onboarding-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .8rem; border: 1px solid var(--line); border-radius: 8px; }
.onboarding-step > div:not(.onboarding-actions) { display: grid; gap: .2rem; }
.onboarding-step > div > span { color: var(--muted); font-size: .88rem; }
.onboarding-step.is-complete { background: color-mix(in srgb, #22c55e, var(--surface) 94%); }
.onboarding-check { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.onboarding-step.is-complete .onboarding-check { background: #22c55e; color: #fff; }
.onboarding-check svg { width: 1rem; height: 1rem; }
.onboarding-actions { display: flex; align-items: center; gap: .45rem; }
.onboarding-actions form { margin: 0; }
.rebooking-candidate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.rebooking-candidate { display: flex; justify-content: space-between; gap: .8rem; padding: .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.rebooking-candidate > div { display: grid; align-content: start; gap: .3rem; }
.rebooking-candidate > div:last-child { justify-items: end; }
.rebooking-candidate span:not(.status-pill) { color: var(--muted); font-size: .86rem; }
.waitlist-row { grid-template-columns: minmax(170px, 1fr) minmax(170px, .9fr) minmax(180px, .95fr) minmax(110px, .5fr) minmax(150px, .7fr) minmax(240px, 1.25fr); }
.reports-row { grid-template-columns: minmax(220px, 1.5fr) minmax(120px, .55fr) minmax(140px, .75fr) minmax(140px, .75fr); }
.reports-pets-row { grid-template-columns: minmax(220px, 1.3fr) minmax(220px, 1.2fr) minmax(120px, .55fr) minmax(140px, .75fr); }
.reports-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.compact-table .data-row { min-height: 46px; }
.report-pair-row { grid-template-columns: minmax(0, 1fr) auto; }
.data-head .row-actions-header { min-height: 1px; }
.identity-cell { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.owner-name-line { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; }
.owners-row .owner-name-line { gap: .28rem; }
.owners-row .owner-name-line .vip-badge, .owners-row .owner-name-line .problematic-badge, .owners-row .owner-name-line .recurring-badge { gap: .12rem; min-height: 15px; padding: .02rem .24rem; font-size: .55rem; letter-spacing: .015em; }
.owners-row .owner-name-line .vip-badge :is(i, svg), .owners-row .owner-name-line .problematic-badge :is(i, svg), .owners-row .owner-name-line .recurring-badge :is(i, svg) { width: .62rem; height: .62rem; stroke-width: 2.5; }
.vip-badge { display: inline-flex; align-items: center; gap: .22rem; width: max-content; min-height: 22px; padding: .12rem .42rem; border-radius: 999px; border: 1px solid color-mix(in srgb, #f59e0b, var(--line) 35%); background: color-mix(in srgb, #fef3c7, var(--surface) 20%); color: #92400e; font-size: .72rem; font-weight: 950; line-height: 1; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.vip-badge i { width: .82rem; height: .82rem; fill: currentColor; stroke-width: 2.4; }
.problematic-badge { display: inline-flex; align-items: center; gap: .22rem; width: max-content; min-height: 22px; padding: .12rem .42rem; border-radius: 999px; border: 1px solid color-mix(in srgb, #dc2626, var(--line) 35%); background: color-mix(in srgb, #fee2e2, var(--surface) 18%); color: #991b1b; font-size: .72rem; font-weight: 950; line-height: 1; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.problematic-badge i { width: .82rem; height: .82rem; stroke-width: 2.4; }
.recurring-badge { display: inline-flex; align-items: center; gap: .22rem; width: max-content; min-height: 22px; padding: .12rem .42rem; border-radius: 999px; border: 1px solid color-mix(in srgb, #0f766e, var(--line) 35%); background: color-mix(in srgb, #ccfbf1, var(--surface) 20%); color: #115e59; font-size: .72rem; font-weight: 950; line-height: 1; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.recurring-badge i { width: .82rem; height: .82rem; stroke-width: 2.4; }
[data-theme="dark"] .vip-badge { border-color: #fbbf24; background: #4a3210; color: #fde68a; }
[data-theme="dark"] .problematic-badge { border-color: #f87171; background: #4c1d1d; color: #fecaca; }
[data-theme="dark"] .recurring-badge { border-color: #5eead4; background: #123b38; color: #99f6e4; }
.inline-vip { min-height: 18px; padding: .08rem .34rem; font-size: .66rem; vertical-align: middle; }
.meta-stack { display: grid; gap: .15rem; min-width: 0; }
.meta-stack span { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .86rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pet-list-summary { display: flex; align-items: center; gap: .2rem .45rem; min-width: 0; flex-wrap: wrap; }
.meta-stack .pet-list-summary span { display: inline; overflow: visible; color: var(--muted); font-size: .76rem; text-overflow: clip; white-space: normal; }
.pet-list-summary span + span::before { content: "·"; margin-right: .45rem; color: color-mix(in srgb, var(--muted), transparent 35%); }
.pet-behavior-tags { display: flex; align-items: center; gap: .36rem; min-width: 0; flex-wrap: wrap; }
.pet-behavior-icon { --pet-tag-color: #0f766e; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid color-mix(in srgb, var(--pet-tag-color), var(--line) 45%); border-radius: 9px; background: color-mix(in srgb, var(--pet-tag-color), var(--surface) 88%); color: color-mix(in srgb, var(--pet-tag-color), var(--text) 18%); }
.pet-behavior-icon svg { width: 1rem; height: 1rem; stroke-width: 2.5; }
.pet-behavior-icon[data-temperament="aggressive"], .pet-behavior-icon[data-temperament="reactive"] { --pet-tag-color: #dc2626; }
.pet-behavior-icon[data-temperament="nervous"], .pet-behavior-icon[data-temperament="fearful"] { --pet-tag-color: #d97706; }
.pet-behavior-icon[data-temperament="calm"], .pet-behavior-icon[data-temperament="playful"] { --pet-tag-color: #15803d; }
.pet-behavior-icon[data-temperament="senior"], .pet-behavior-icon[data-temperament="puppy"] { --pet-tag-color: #7c3aed; }
[data-theme="dark"] .pet-behavior-icon { border-color: color-mix(in srgb, var(--pet-tag-color), #fff 24%); color: color-mix(in srgb, var(--pet-tag-color), #fff 46%); }
.tag-stack { display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.status-pill { display: inline-flex; align-items: center; min-height: 26px; padding: .25rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--accent), transparent 78%); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent), transparent 45%); font-size: .78rem; font-weight: 850; white-space: nowrap; }
.muted-pill { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.color-dot { width: .7rem; height: .7rem; border-radius: 999px; background: var(--dot-color, var(--accent)); display: inline-block; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.mini-card { display: flex; gap: .9rem; padding: 1rem; box-shadow: none; }
.avatar { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 12px; display: grid; place-items: center; background: var(--avatar, var(--accent)); color: #fff; font-weight: 900; overflow: hidden; }
.avatar.tiny { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.breed-avatar-icon { object-fit: contain !important; }
.avatar:has(.breed-avatar-icon), .appointment-identity-avatar:has(.breed-avatar-icon) { background: color-mix(in srgb, var(--surface-2), var(--accent) 8%); }
.avatar .breed-avatar-icon, .appointment-identity-avatar .breed-avatar-icon { padding: 2px; }
.pet-form-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 220px); gap: 1rem; align-items: start; }
.modal-card.pet-modal-card { width: min(96vw, 1180px); max-height: 94vh; }
.record-modal-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.record-modal-titlebar h2 { margin: 0; }
.record-modal-titlebar .button { flex: 0 0 auto; }
.pet-form-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 1rem; align-items: start; }
.pet-form-side { display: grid; align-self: start; gap: 1rem; min-width: 0; }
.pet-form-guidance { display: grid; grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .75rem; padding: .75rem .9rem; border: 1px solid color-mix(in srgb, var(--accent), var(--line) 45%); border-radius: 10px; background: color-mix(in srgb, var(--accent), var(--surface) 92%); color: var(--text); }
.pet-form-guidance-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: color-mix(in srgb, var(--accent), transparent 76%); color: color-mix(in srgb, var(--accent), var(--text) 28%); }
.pet-form-guidance-icon svg { width: 1rem; height: 1rem; stroke-width: 2.5; }
.pet-form-guidance strong { display: block; margin-bottom: .08rem; font-size: .84rem; font-weight: 900; }
.pet-form-guidance p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.pet-form-section { --pet-section-color: var(--primary); display: grid; gap: .95rem; min-width: 0; padding: 1rem; overflow: hidden; border: 1px solid color-mix(in srgb, var(--pet-section-color), var(--line) 72%); border-top: 3px solid var(--pet-section-color); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 24px color-mix(in srgb, #000, transparent 95%); }
.pet-form-section-contact { --pet-section-color: var(--accent); }
.pet-form-section-care { --pet-section-color: #8b5cf6; }
.pet-form-section-preventive { --pet-section-color: #16a34a; }
.pet-form-section-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; margin: -1rem -1rem .05rem; padding: .82rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--pet-section-color), var(--line) 78%); background: color-mix(in srgb, var(--pet-section-color), var(--surface) 94%); }
.pet-form-section-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: color-mix(in srgb, var(--pet-section-color), transparent 82%); color: color-mix(in srgb, var(--pet-section-color), var(--text) 18%); }
.pet-form-section-icon svg { width: 1.15rem; height: 1.15rem; stroke-width: 2.5; }
.pet-form-section-heading h3, .pet-form-section-heading p { margin: 0; }
.pet-form-section-heading h3 { color: var(--text); font-size: 1.02rem; line-height: 1.2; }
.pet-form-section-heading p { margin-top: .12rem; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.pet-form-subsection { display: grid; gap: .85rem; padding-top: .1rem; }
.pet-form-subheading { display: flex; align-items: center; gap: .65rem; margin: .1rem 0 -.05rem; color: var(--text); font-size: .78rem; font-weight: 950; letter-spacing: .055em; text-transform: uppercase; }
.pet-form-subheading::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.pet-profile-summary { display: grid; gap: .85rem; }
.pet-profile-summary-identity { display: grid; grid-template-columns: auto minmax(110px, .6fr) minmax(240px, 1.4fr); align-items: center; gap: .8rem; }
.pet-profile-summary-photo { display: grid; place-items: center; width: 62px; height: 62px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--primary-strong); font-size: 1.45rem; font-weight: 950; }
.pet-profile-summary-photo img { width: 100%; height: 100%; object-fit: cover; }
.pet-profile-summary-photo .breed-avatar-icon, .pet-photo-preview .breed-avatar-icon { object-fit: contain; padding: .2rem; }
.pet-profile-summary-copy { display: grid; gap: .14rem; min-width: 0; }
.pet-profile-summary-copy > strong { overflow: hidden; color: var(--text); font-size: 1.18rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.pet-profile-summary-copy > span { overflow: hidden; color: var(--muted); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.pet-summary-inline-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .38rem; min-width: 0; margin: 0; }
.pet-summary-inline-facts > div { display: grid; gap: .08rem; min-width: 0; padding: .42rem .48rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.pet-summary-inline-facts dt { overflow: hidden; color: var(--muted); font-size: .6rem; font-weight: 900; letter-spacing: .025em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.pet-summary-inline-facts dd { margin: 0; overflow: hidden; color: var(--text); font-size: .76rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.pet-summary-temperament { display: grid; gap: .4rem; padding-top: .15rem; }
.pet-summary-temperament > span { color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.pet-summary-temperament > div { display: flex; flex-wrap: wrap; gap: .38rem; }
.pet-summary-temperament .pet-temperament-pill { gap: .28rem; min-height: 24px; padding: .2rem .48rem; font-size: .74rem; white-space: normal; }
.pet-temperament-pill svg { width: .78rem; height: .78rem; stroke-width: 3; }
.pet-section-editor, .owner-picker-add { border-top: 1px solid var(--line); padding-top: .72rem; }
.pet-section-editor > summary, .owner-picker-add > summary { display: flex; justify-content: space-between; align-items: center; gap: .65rem; width: 100%; min-height: 36px; padding: .45rem .65rem; border: 1px solid color-mix(in srgb, var(--pet-section-color), var(--line) 55%); border-radius: 8px; background: color-mix(in srgb, var(--pet-section-color), var(--surface) 94%); color: var(--text); font-size: .82rem; font-weight: 900; cursor: pointer; list-style: none; }
.pet-section-editor > summary::-webkit-details-marker, .owner-picker-add > summary::-webkit-details-marker { display: none; }
.pet-section-editor > summary > span, .owner-picker-add > summary > span { display: inline-flex; align-items: center; gap: .42rem; }
.pet-section-editor > summary svg, .owner-picker-add > summary svg { width: .92rem; height: .92rem; stroke-width: 2.5; }
.pet-section-editor .disclosure-chevron, .owner-picker-add .disclosure-chevron { transition: transform .18s ease; }
.pet-section-editor[open] .disclosure-chevron, .owner-picker-add[open] .disclosure-chevron { transform: rotate(180deg); }
.pet-section-editor-body, .owner-picker-add-panel { display: grid; gap: .85rem; margin-top: .8rem; }
.pet-section-save { display: flex; justify-content: flex-end; padding-top: .1rem; }
.pet-form-section .segmented-field, .pet-form-section .owner-picker, .pet-form-section .breed-picker { background: color-mix(in srgb, var(--surface-2), var(--surface) 58%); }
.pet-profile-options, .pet-notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.pet-note-card { gap: .55rem; min-width: 0; padding: .72rem; border: 1px solid var(--line); border-left: 3px solid color-mix(in srgb, var(--accent), var(--line) 20%); border-radius: 8px; background: color-mix(in srgb, var(--surface-2), var(--surface) 48%); }
.pet-note-card-critical { border-color: color-mix(in srgb, #f59e0b, var(--line) 62%); border-left-color: #f59e0b; background: color-mix(in srgb, #f59e0b, var(--surface) 95%); }
.pet-note-title { display: flex; align-items: center; gap: .42rem; color: var(--text); font-size: .84rem; font-weight: 950; }
.pet-note-title svg { width: .95rem; height: .95rem; color: color-mix(in srgb, var(--primary-strong), var(--text) 15%); stroke-width: 2.5; }
.pet-note-card-critical .pet-note-title svg { color: #c2410c; }
.pet-notes-grid textarea { min-height: 100px; background: var(--surface); font-size: .9rem; }
.pet-notes-section { grid-column: 1 / -1; }
.pet-modal-card > .modal-actions { position: sticky; bottom: -1.35rem; z-index: 3; margin: 0 -1.35rem -1.35rem; padding: 1rem 1.35rem; background: color-mix(in srgb, var(--surface), transparent 3%); box-shadow: 0 -10px 24px color-mix(in srgb, #000, transparent 92%); }
.pet-photo-control { display: grid; gap: .65rem; }
.pet-photo-preview { width: 128px; height: 128px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--primary-strong); font-size: 2.2rem; font-weight: 900; overflow: hidden; }
.pet-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.care-due-filter { margin-top: .55rem; color: var(--text); }
.meta-stack .care-due-pill { min-height: 22px; color: #9a3412; border-color: #fdba74; background: #fff7ed; font-size: .7rem; overflow: visible; white-space: normal; }
[data-theme="dark"] .meta-stack .care-due-pill { color: #fed7aa; border-color: #c2410c; background: #431407; }
.pet-care-section { grid-column: 1 / -1; }
.pet-treatment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.pet-treatment-card { display: grid; align-content: start; gap: .72rem; min-width: 0; padding: 1rem; border: 1px solid color-mix(in srgb, #16a34a, var(--line) 74%); border-radius: 9px; background: color-mix(in srgb, #16a34a, var(--surface) 97%); }
.pet-treatment-card legend { padding: 0 .4rem; color: var(--text); font-weight: 950; }
.pet-treatment-card legend span { display: inline-flex; align-items: center; gap: .42rem; }
.pet-treatment-card legend svg { width: 1rem; height: 1rem; color: #15803d; stroke-width: 2.5; }
.treatment-repeat-fields { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(130px, 1fr); gap: .65rem; }
.treatment-next-date { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem .75rem; border: 1px solid color-mix(in srgb, #16a34a, var(--line) 55%); border-radius: 8px; background: color-mix(in srgb, #16a34a, var(--surface) 88%); color: var(--text); }
.treatment-next-date span { color: var(--muted); font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .035em; }
.treatment-next-date strong { color: color-mix(in srgb, #15803d, var(--text) 25%); font-size: .92rem; }
.treatment-reminder-list { display: grid; gap: .7rem; }
.treatment-reminder-card { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.treatment-reminder-card > div:first-child { display: grid; gap: .2rem; }
.treatment-reminder-card span { color: var(--muted); font-size: .85rem; }
.modal-card.groomer-modal-card { width: min(100%, 760px); }
.modal-card.groomer-record-card { width: min(96vw, 1080px); max-height: 94vh; }
.groomer-form-header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.groomer-form-header h2 { margin: 0; }
.groomer-form-header .eyebrow { margin-bottom: .2rem; }
.groomer-avatar-preview { width: 72px; height: 72px; border-radius: 8px; display: grid; place-items: center; background: var(--avatar, var(--accent)); color: #fff; font-size: 1.65rem; font-weight: 950; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 10px 24px rgba(0,0,0,.1); }
.groomer-avatar-preview.small { width: 52px; height: 52px; font-size: 1.25rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.groomer-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.groomer-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; align-items: end; }
.groomer-field-wide { grid-column: 1 / -1; }
.groomer-capabilities { display: grid; gap: .65rem; padding: .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.groomer-capabilities legend { padding: 0 .35rem; color: var(--text); font-weight: 900; }
.groomer-service-groups { display: grid; gap: .65rem; }
.groomer-service-group { display: grid; gap: .55rem; padding: .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.groomer-service-group.is-disabled { opacity: .55; }
.settings-section { scroll-margin-top: 1rem; }
.settings-section-actions { display: flex; justify-content: flex-end; padding-top: .25rem; }
.groomer-color-control { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .42rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.groomer-color-swatch { width: 24px; height: 24px; border-radius: 8px; background: var(--dot-color, var(--accent)); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); flex: 0 0 auto; }
.groomer-color-control input[type="color"] { width: 58px; min-height: 30px; height: 30px; padding: .12rem; border-radius: 6px; flex: 0 0 58px; }
.groomer-photo-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .85rem; padding: .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.groomer-record-header { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .9rem; padding-bottom: .95rem; border-bottom: 1px solid var(--line); }
.groomer-record-header > div { display: grid; gap: .2rem; min-width: 0; }
.groomer-record-header h2 { overflow: hidden; margin: 0; color: var(--text); font-size: 1.4rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.groomer-record-header .eyebrow { color: var(--primary-strong); font-size: .7rem; }
.groomer-record-avatar { display: grid; place-items: center; width: 62px; height: 62px; overflow: hidden; border-radius: 14px; background: var(--avatar, var(--accent)); color: #fff; font-size: 1.4rem; font-weight: 950; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), 0 10px 24px rgba(0,0,0,.12); }
.groomer-record-avatar img { width: 100%; height: 100%; object-fit: cover; }
.groomer-record-badges { display: flex; align-items: center; gap: .4rem; min-height: 24px; flex-wrap: wrap; }
.groomer-record-badges .status-pill, .groomer-shop-badge { display: inline-flex; align-items: center; gap: .3rem; }
.groomer-record-badges svg, .groomer-shop-badge svg { width: .82rem; height: .82rem; stroke-width: 2.6; }
.groomer-shop-badge { min-height: 24px; padding: .22rem .52rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .7rem; font-weight: 850; }
.groomer-record-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 1rem; align-items: start; }
.groomer-record-side { display: grid; align-self: start; gap: 1rem; min-width: 0; }
.groomer-record-section { --groomer-section-color: var(--primary); display: grid; gap: .9rem; min-width: 0; overflow: hidden; padding: 1rem; border: 1px solid color-mix(in srgb, var(--groomer-section-color), var(--line) 72%); border-top: 3px solid var(--groomer-section-color); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 24px color-mix(in srgb, #000, transparent 95%); }
.groomer-record-services { --groomer-section-color: var(--accent); }
.groomer-record-notes { --groomer-section-color: #8b5cf6; }
.groomer-record-time-off { --groomer-section-color: #d97706; }
.groomer-record-section-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; margin: -1rem -1rem .05rem; padding: .82rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--groomer-section-color), var(--line) 78%); background: color-mix(in srgb, var(--groomer-section-color), var(--surface) 94%); }
.groomer-record-section-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: color-mix(in srgb, var(--groomer-section-color), transparent 82%); color: color-mix(in srgb, var(--groomer-section-color), var(--text) 18%); }
.groomer-record-section-icon svg { width: 1.15rem; height: 1.15rem; stroke-width: 2.5; }
.groomer-record-section-heading h3, .groomer-record-section-heading p { margin: 0; }
.groomer-record-section-heading h3 { color: var(--text); font-size: 1.02rem; line-height: 1.2; }
.groomer-record-section-heading p { margin-top: .12rem; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.groomer-summary-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .48rem; margin: 0; }
.groomer-summary-facts > div { display: grid; gap: .12rem; min-width: 0; padding: .58rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.groomer-summary-facts dt { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.groomer-summary-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: .86rem; font-weight: 850; }
.groomer-summary-facts a { color: inherit; text-decoration-color: color-mix(in srgb, var(--primary), transparent 55%); text-underline-offset: .15em; }
.groomer-color-summary { display: inline-flex; align-items: center; gap: .4rem; }
.groomer-color-summary i { width: .72rem; height: .72rem; border: 2px solid var(--surface); border-radius: 50%; background: var(--dot-color); box-shadow: 0 0 0 1px var(--line); }
.groomer-section-editor { padding-top: .72rem; border-top: 1px solid var(--line); }
.groomer-section-editor > summary { display: flex; justify-content: space-between; align-items: center; gap: .65rem; width: 100%; min-height: 38px; padding: .48rem .65rem; border: 1px solid color-mix(in srgb, var(--groomer-section-color), var(--line) 55%); border-radius: 8px; background: color-mix(in srgb, var(--groomer-section-color), var(--surface) 94%); color: var(--text); font-size: .82rem; font-weight: 900; cursor: pointer; list-style: none; }
.groomer-section-editor > summary::-webkit-details-marker { display: none; }
.groomer-section-editor > summary > span { display: inline-flex; align-items: center; gap: .42rem; }
.groomer-section-editor > summary svg { width: .95rem; height: .95rem; flex: 0 0 auto; stroke-width: 2.5; }
.groomer-section-editor .disclosure-chevron { transition: transform .18s ease; }
.groomer-section-editor[open] .disclosure-chevron { transform: rotate(180deg); }
.groomer-section-editor-body { display: grid; gap: .85rem; margin-top: .85rem; }
.groomer-section-save { display: flex; justify-content: flex-end; padding-top: .1rem; }
.groomer-capability-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; padding: .72rem; border: 1px solid color-mix(in srgb, var(--accent), var(--line) 65%); border-radius: 8px; background: color-mix(in srgb, var(--accent), var(--surface) 94%); }
.groomer-capability-summary > svg { width: 1.35rem; height: 1.35rem; color: color-mix(in srgb, var(--accent), var(--text) 28%); stroke-width: 2.5; }
.groomer-capability-summary > span { display: grid; gap: .12rem; min-width: 0; }
.groomer-capability-summary small { color: var(--muted); font-size: .74rem; line-height: 1.35; }
.groomer-capability-summary.is-empty { border-color: color-mix(in srgb, #d97706, var(--line) 65%); background: color-mix(in srgb, #d97706, var(--surface) 94%); }
.groomer-capability-summary.is-empty > svg { color: #d97706; }
.groomer-service-pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.groomer-service-pills span { display: inline-flex; align-items: center; gap: .28rem; min-height: 28px; padding: .28rem .55rem; border: 1px solid color-mix(in srgb, var(--accent), var(--line) 60%); border-radius: 999px; background: color-mix(in srgb, var(--accent), var(--surface) 92%); color: var(--text); font-size: .76rem; font-weight: 850; }
.groomer-service-pills svg { width: .78rem; height: .78rem; color: color-mix(in srgb, var(--accent), var(--text) 25%); stroke-width: 3; }
.groomer-record-notes-copy { margin: 0; padding: .08rem .05rem; color: var(--text); font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.groomer-record-notes-copy.muted { color: var(--muted); font-style: italic; }
.groomer-time-off-metric { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem .75rem; border: 1px solid color-mix(in srgb, #d97706, var(--line) 65%); border-radius: 8px; background: color-mix(in srgb, #d97706, var(--surface) 94%); }
.groomer-time-off-metric span { display: inline-flex; align-items: center; gap: .42rem; color: var(--muted); font-size: .76rem; font-weight: 850; }
.groomer-time-off-metric span svg { width: .95rem; height: .95rem; color: #d97706; }
.groomer-time-off-metric strong { color: var(--text); font-size: 1.15rem; }
.groomer-time-off-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; padding: .75rem; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface-2); }
.groomer-time-off-empty > svg { width: 1.25rem; height: 1.25rem; color: #16a34a; }
.groomer-time-off-empty > span { display: grid; gap: .12rem; min-width: 0; }
.groomer-time-off-empty small { color: var(--muted); font-size: .75rem; }
.groomer-time-off-form { padding: .1rem; }
.groomer-time-off-fields { display: grid; grid-template-columns: minmax(130px, .65fr) repeat(2, minmax(190px, 1fr)); gap: .75rem; align-items: end; }
.groomer-record-actions { position: sticky; bottom: -1.35rem; z-index: 3; margin: 0 -1.35rem -1.35rem; padding: 1rem 1.35rem; background: color-mix(in srgb, var(--surface), transparent 3%); box-shadow: 0 -10px 24px color-mix(in srgb, #000, transparent 92%); }
.visit-photo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.visit-photo-fields legend { grid-column: 1 / -1; }
.photo-capture-control { display: grid; gap: .65rem; }
.visit-photo-preview { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 900; overflow: hidden; }
.visit-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.appointment-completion-section .visit-photo-preview.is-empty { height: 68px; min-height: 68px; aspect-ratio: auto; border-style: dashed; background: color-mix(in srgb, var(--surface-2), var(--surface) 35%); font-size: .78rem; }
.visit-photo-strip { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .35rem; }
.visit-photo-thumb { display: grid; gap: .2rem; color: var(--muted); font-size: .78rem; font-weight: 850; }
.visit-photo-thumb img { width: 76px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.price-line { font-size: 2rem; font-weight: 900; color: var(--primary-strong); }
#calendar { min-height: 680px; }
#dashboard-calendar { min-height: 520px; }
.fc { color: var(--text); --fc-border-color: var(--line); --fc-page-bg-color: var(--surface); --fc-neutral-bg-color: var(--surface-2); --fc-list-event-hover-bg-color: var(--surface-2); }
.fc .fc-toolbar { gap: .75rem; flex-wrap: wrap; }
.fc .fc-toolbar-title { font-size: 1.25rem; font-weight: 900; color: var(--text); }
.fc .fc-button-primary { background: var(--primary); border-color: var(--primary); border-radius: 8px; box-shadow: none; font-weight: 800; }
.fc .fc-button-primary:not(:disabled):hover, .fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--primary-strong); border-color: var(--primary-strong); }
.fc-theme-standard .fc-scrollgrid { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: none; }
.fc-theme-standard th { background: var(--surface-2); border-color: var(--line); }
.fc .fc-col-header-cell-cushion { color: var(--text); font-weight: 900; padding: .75rem .35rem; }
.fc .fc-timegrid-slot-label-cushion, .fc .fc-timegrid-axis-cushion { color: var(--muted); font-weight: 700; }
.fc .fc-timegrid-slot { height: 2.25rem; }
.fc .fc-timegrid-slot-minor { border-top-style: dashed; }
.fc .fc-day-today, .fc .fc-timegrid-col.fc-day-today { background: color-mix(in srgb, var(--soft), transparent 72%) !important; }
.fc .fc-day-today .fc-col-header-cell-cushion { color: var(--primary-strong); font-weight: 900; }
.fc .closed-hours { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--line), transparent 20%) 0 8px, transparent 8px 16px); opacity: .45; }
.fc .alternative-hours { background: color-mix(in srgb, var(--accent), transparent 84%); opacity: .55; }
.fc .holiday-hours { background: repeating-linear-gradient(135deg, rgba(220, 38, 38, .22) 0 8px, rgba(220, 38, 38, .08) 8px 16px); opacity: .8; }
.settings-layout, .account-layout { display: grid; grid-template-columns: minmax(300px, 1fr); gap: 1.25rem; align-items: start; }
.account-section-nav { position: sticky; top: .5rem; z-index: 12; display: flex; gap: .4rem; overflow-x: auto; padding: .45rem; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--surface), transparent 4%); box-shadow: var(--shadow); }
.account-section-nav a { flex: 0 0 auto; padding: .6rem .75rem; border-radius: 6px; color: var(--muted); font-size: .82rem; font-weight: 850; }
.account-section-nav a:hover, .account-section-nav a:focus-visible { background: var(--surface-2); color: var(--text); outline: none; }
.account-layout > [id] { scroll-margin-top: 5rem; }
.legal-focus-layout .account-section-nav { order: -2; }
.settings-layout.single-settings { max-width: 760px; }
.waitlist-layout { grid-template-columns: minmax(300px, 1fr); }
.waitlist-layout .settings-main-panel { position: relative; top: auto; }
.waitlist-layout .data-table { overflow-x: auto; }
.waitlist-layout .waitlist-row { min-width: 1120px; }
.settings-main-panel { align-self: start; position: sticky; top: 1rem; }
form.settings-main-panel { overflow: hidden; padding-bottom: 1.25rem; }
.settings-section { position: relative; display: grid; gap: 1rem; margin: 0 -1.25rem; padding: 1.25rem 1.35rem 1.35rem 1.55rem; border-top: 1px solid var(--line); border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 45%); background: linear-gradient(90deg, color-mix(in srgb, var(--surface-2), transparent 10%), color-mix(in srgb, var(--surface), transparent 10%)); }
.settings-section::before { content: ""; position: absolute; left: 0; top: 1.1rem; bottom: 1.1rem; width: 4px; border-radius: 0 999px 999px 0; background: var(--accent); }
.settings-section:nth-of-type(even)::before { background: var(--primary); }
.settings-section + .settings-section { margin-top: .35rem; }
.settings-section h3 { display: flex; align-items: center; gap: .6rem; margin: 0; padding-bottom: .65rem; border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 20%); color: var(--text); font-size: 1rem; }
.settings-section h3 i { width: 18px; height: 18px; color: var(--primary-strong); stroke-width: 2.5; }
.settings-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .85rem; }
.feedback-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 1rem; align-items: start; }
.feedback-panel { overflow: hidden; }
.feedback-context { position: sticky; top: 1rem; }
.context-list { display: grid; gap: .85rem; margin: 0; }
.context-list div { display: grid; gap: .2rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.context-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.context-list dt { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.context-list dd { margin: 0; color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.settings-help-field { display: grid; gap: .35rem; align-content: start; }
.settings-help-field p { margin: 0; font-size: .82rem; line-height: 1.35; }
.settings-wide-field { grid-column: 1 / -1; }
.settings-logo-block { display: grid; grid-template-columns: minmax(220px, 320px) minmax(220px, 1fr); gap: 1rem; align-items: end; }
.settings-logo-frame { display: grid; place-items: center; min-height: 128px; aspect-ratio: 16 / 7; border: 1px solid color-mix(in srgb, var(--line), transparent 12%); border-radius: 8px; background: #fff; padding: 1rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.65); }
.settings-logo-frame .settings-logo-preview { max-width: 100%; max-height: 92px; border: 0; background: transparent; padding: 0; }
.settings-logo-placeholder { color: #6b7280; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.settings-fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.settings-fieldset legend { padding: 0 .35rem; color: var(--muted); font-weight: 800; }
.compact-logo { max-width: 96px; max-height: 56px; }
.message-preview { display: grid; gap: .4rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); padding: .85rem 1rem; }
.message-preview span { color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.message-preview p { color: var(--text); line-height: 1.45; }
.inline-note { display: grid; gap: .2rem; padding: .75rem .85rem; border: 1px solid color-mix(in srgb, var(--accent), transparent 45%); border-radius: 8px; background: color-mix(in srgb, var(--soft), transparent 35%); }
.inline-note strong { color: var(--primary-strong); }
.inline-note span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.nested-panel { display: grid; gap: .75rem; padding: .9rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.nested-panel h3 { margin-bottom: 0; }
.shop-list { display: grid; gap: .9rem; }
.shop-summary-card { display: grid; gap: .75rem; padding: .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.shop-summary-top { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.shop-summary-top > div { display: grid; gap: .2rem; min-width: 0; }
.shop-summary-top span { color: var(--muted); font-size: .9rem; }
.hours-chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .45rem; }
.hours-chip { display: grid; gap: .15rem; padding: .55rem .65rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.hours-chip strong { color: var(--text); font-size: .84rem; }
.hours-chip-line { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; color: var(--muted); line-height: 1.25; }
.hours-chip-line b { color: var(--text); font-size: .76rem; }
.muted-hours { justify-content: flex-start; font-weight: 800; }
.settings-rules-block { display: grid; gap: .7rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.shop-hours-grid { display: grid; gap: .85rem; }
.shop-hours-day { display: grid; gap: .75rem; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.shop-hours-day-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .85rem; background: color-mix(in srgb, var(--primary), transparent 88%); border-bottom: 1px solid var(--line); }
.shop-hours-day-header strong { color: var(--text); }
.shop-hours-day-header span { color: var(--muted); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.shop-hours-slots { display: grid; gap: .65rem; }
.shop-hours-slots .is-disabled { opacity: .45; }
.shop-hours-slot { display: grid; gap: .55rem; margin: 0 .85rem .85rem; padding: .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.shop-hours-slot-title { justify-content: space-between; }
.shop-hours-time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.check-row { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 800; }
.check-row input { width: auto; }
.owner-quick-add { border: 1px dashed var(--line); border-radius: 8px; padding: .8rem; background: var(--surface-2); }
.owner-quick-add summary { cursor: pointer; font-weight: 900; color: var(--primary-strong); }
.owner-picker { border: 1px solid var(--line); border-radius: 8px; padding: .85rem; display: grid; gap: .7rem; }
.owner-picker legend { padding: 0 .35rem; color: var(--muted); font-weight: 800; }
.owner-picker-compact { padding: 0; border: 0; background: transparent !important; }
.owner-picker-compact .selected-owner { grid-template-columns: minmax(0, 1fr) auto; padding: .58rem .65rem; background: var(--surface-2); }
.owner-picker-compact .selected-owner > .selected-owner-profile { min-width: 0; }
.selected-owner-profile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .55rem; min-width: 0; margin: -.3rem; padding: .3rem; border-radius: 7px; color: inherit; text-decoration: none; }
.selected-owner-profile:hover { background: color-mix(in srgb, var(--accent), transparent 90%); }
.selected-owner-profile:hover strong { color: var(--primary-strong); }
.selected-owner-details { display: grid; gap: .1rem; min-width: 0; }
.selected-owner-details strong, .selected-owner-details small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-owner-details small { color: var(--muted); font-size: .76rem; }
.owner-picker-compact .selected-owner-details .inline-vip { gap: .12rem; min-height: 15px; padding: .02rem .24rem; font-size: .55rem; letter-spacing: .015em; }
.owner-picker-compact .selected-owner-details .inline-vip i, .owner-picker-compact .selected-owner-details .inline-vip svg { width: .62rem; height: .62rem; stroke-width: 2.5; }
.selected-owner-open-icon { width: 1rem; height: 1rem; color: var(--primary-strong); font-size: 1.25rem; line-height: 1; stroke-width: 2.6; }
.owner-picker-add-panel > p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.owner-quick-add-nested { padding: .7rem; background: var(--surface); }
.modal-card.owner-modal-card { width: min(96vw, 1080px); max-height: 94vh; }
.owner-record-header { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .85rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.owner-record-header > div { display: grid; gap: .18rem; min-width: 0; }
.owner-record-header h2 { overflow: hidden; margin: 0; color: var(--text); font-size: 1.35rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.owner-record-header .eyebrow { color: var(--primary-strong); font-size: .7rem; }
.owner-record-avatar { width: 58px; height: 58px; flex-basis: 58px; border-radius: 14px; font-size: 1.3rem; }
.owner-record-badges { display: flex; align-items: center; gap: .35rem; min-height: 22px; flex-wrap: wrap; }
.owner-record-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 1rem; align-items: start; }
.owner-record-side { display: grid; align-self: start; gap: 1rem; min-width: 0; }
.owner-record-section { --owner-section-color: var(--primary); display: grid; gap: .9rem; min-width: 0; overflow: hidden; padding: 1rem; border: 1px solid color-mix(in srgb, var(--owner-section-color), var(--line) 72%); border-top: 3px solid var(--owner-section-color); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 24px color-mix(in srgb, #000, transparent 95%); }
.owner-record-pets { --owner-section-color: var(--accent); }
.owner-record-notes { --owner-section-color: #8b5cf6; }
.owner-record-history { --owner-section-color: #64748b; grid-column: 1 / -1; padding: 0; border-top-width: 1px; box-shadow: none; }
.owner-record-section-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; margin: -1rem -1rem .05rem; padding: .82rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--owner-section-color), var(--line) 78%); background: color-mix(in srgb, var(--owner-section-color), var(--surface) 94%); }
.owner-record-section-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: color-mix(in srgb, var(--owner-section-color), transparent 82%); color: color-mix(in srgb, var(--owner-section-color), var(--text) 18%); }
.owner-record-section-icon svg { width: 1.15rem; height: 1.15rem; stroke-width: 2.5; }
.owner-record-section-heading h3, .owner-record-section-heading p { margin: 0; }
.owner-record-section-heading h3 { color: var(--text); font-size: 1.02rem; line-height: 1.2; }
.owner-record-section-heading p { margin-top: .12rem; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.owner-summary-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .48rem; margin: 0; }
.owner-summary-facts > div { display: grid; gap: .12rem; min-width: 0; padding: .58rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.owner-summary-facts dt { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.owner-summary-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: .86rem; font-weight: 850; }
.owner-summary-facts a { color: inherit; text-decoration-color: color-mix(in srgb, var(--primary), transparent 55%); text-underline-offset: .15em; }
.owner-consent-status { display: inline-flex; align-items: center; gap: .3rem; width: max-content; max-width: 100%; color: var(--muted); }
.owner-consent-status svg { width: .9rem; height: .9rem; flex: 0 0 auto; stroke-width: 2.6; }
.owner-consent-status.is-active { color: #15803d; }
[data-theme="dark"] .owner-consent-status.is-active { color: #86efac; }
.owner-record-notes-copy { margin: 0; padding: .08rem .05rem; color: var(--text); font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.owner-record-notes-copy.muted { color: var(--muted); font-style: italic; }
.owner-section-editor { padding-top: .72rem; border-top: 1px solid var(--line); }
.owner-section-editor > summary, .owner-history-details > summary { display: flex; justify-content: space-between; align-items: center; gap: .65rem; width: 100%; min-height: 38px; color: var(--text); font-size: .82rem; font-weight: 900; cursor: pointer; list-style: none; }
.owner-section-editor > summary { padding: .48rem .65rem; border: 1px solid color-mix(in srgb, var(--primary), var(--line) 55%); border-radius: 8px; background: color-mix(in srgb, var(--primary), var(--surface) 94%); }
.owner-section-editor > summary::-webkit-details-marker, .owner-history-details > summary::-webkit-details-marker { display: none; }
.owner-section-editor > summary > span, .owner-history-details > summary > span { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; }
.owner-section-editor > summary svg, .owner-history-details > summary svg { width: .95rem; height: .95rem; flex: 0 0 auto; stroke-width: 2.5; }
.owner-section-editor .disclosure-chevron, .owner-history-details .disclosure-chevron { transition: transform .18s ease; }
.owner-section-editor[open] .disclosure-chevron, .owner-history-details[open] .disclosure-chevron { transform: rotate(180deg); }
.owner-section-editor-body { display: grid; gap: .85rem; margin-top: .85rem; }
.owner-section-save { display: flex; justify-content: flex-end; }
.owner-history-details > summary { padding: .78rem 1rem; background: var(--surface-2); }
.owner-history-details > summary > span > span { display: grid; gap: .08rem; min-width: 0; }
.owner-history-details > summary strong, .owner-history-details > summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-history-details > summary small { color: var(--muted); font-size: .74rem; font-weight: 700; }
.owner-history-table { margin: 0 1rem 1rem; }
.owner-history-table .data-row { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .7rem .8rem; font-size: .82rem; }
.owner-record-empty { margin: .15rem 0; }
.owner-pet-actions { display: flex; justify-content: flex-end; padding-top: .1rem; }
.owner-pet-actions .button { display: inline-flex; align-items: center; gap: .38rem; }
.owner-pet-actions .button svg { width: .95rem; height: .95rem; }
.owner-pet-shortcuts { display: grid; gap: .65rem; padding: .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.owner-pet-shortcuts-heading { display: grid; gap: .15rem; }
.owner-pet-shortcuts-heading h3, .owner-pet-shortcuts p { margin: 0; }
.owner-pet-shortcuts-heading h3 { color: var(--text); font-size: .95rem; }
.owner-pet-shortcuts-heading span { color: var(--muted); font-size: .8rem; }
.owner-pet-shortcut-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .55rem; }
.owner-pet-shortcut-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: .45rem; min-width: 0; }
.owner-pet-shortcut { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; min-width: 0; padding: .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.owner-pet-shortcut:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent), var(--surface) 92%); }
.owner-pet-shortcut > span:nth-child(2) { display: grid; gap: .12rem; min-width: 0; }
.owner-pet-shortcut strong, .owner-pet-shortcut small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-pet-shortcut small { color: var(--muted); font-size: .78rem; }
.owner-pet-shortcut > svg, .owner-pet-shortcut > i { width: 1rem; height: 1rem; color: var(--primary-strong); }
.owner-pet-appointment { align-self: stretch; justify-content: center; min-width: 66px; }
.owner-pet-appointment svg { width: .95rem; height: .95rem; }
.record-timeline-section { --timeline-color: #64748b; display: grid; gap: .9rem; min-width: 0; padding: 1rem; border: 1px solid color-mix(in srgb, var(--timeline-color), var(--line) 70%); border-top: 3px solid var(--timeline-color); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 24px color-mix(in srgb, #000, transparent 95%); }
.owner-record-layout > .record-timeline-section { grid-column: 1 / -1; }
.record-timeline-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; margin: -1rem -1rem .05rem; padding: .82rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--timeline-color), var(--line) 78%); background: color-mix(in srgb, var(--timeline-color), var(--surface) 94%); }
.record-timeline-heading-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: color-mix(in srgb, var(--timeline-color), transparent 82%); color: color-mix(in srgb, var(--timeline-color), var(--text) 18%); }
.record-timeline-heading-icon svg { width: 1.15rem; height: 1.15rem; stroke-width: 2.5; }
.record-timeline-heading h3, .record-timeline-heading p { margin: 0; }
.record-timeline-heading h3 { font-size: 1.02rem; line-height: 1.2; }
.record-timeline-heading p { margin-top: .12rem; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.record-timeline-status { margin: 0; padding: .45rem .1rem; }
.record-timeline-list { display: grid; max-height: 410px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.record-timeline-list li { position: relative; min-width: 0; }
.record-timeline-list li:not(:last-child)::before { position: absolute; top: 35px; bottom: -7px; left: 17px; width: 2px; background: var(--line); content: ""; }
.record-timeline-list li > a, .record-timeline-list li > div { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: .7rem; min-width: 0; padding: .58rem .3rem; border-radius: 8px; color: var(--text); }
.record-timeline-list li > a:hover { background: var(--surface-2); }
.record-timeline-marker { --marker-color: #64748b; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid color-mix(in srgb, var(--marker-color), var(--line) 46%); border-radius: 999px; background: color-mix(in srgb, var(--marker-color), var(--surface) 88%); color: color-mix(in srgb, var(--marker-color), var(--text) 18%); }
.record-timeline-marker svg { width: .95rem; height: .95rem; stroke-width: 2.5; }
.timeline-tone-confirmed, .timeline-tone-paid, .timeline-tone-delivered, .timeline-tone-read { --marker-color: #15803d; }
.timeline-tone-scheduled, .timeline-tone-sent, .timeline-tone-queued { --marker-color: #2563eb; }
.timeline-tone-completed, .timeline-tone-care { --marker-color: #7c3aed; }
.timeline-tone-cancelled, .timeline-tone-no_show, .timeline-tone-refunded, .timeline-tone-failed { --marker-color: #dc2626; }
.record-timeline-copy { display: grid; gap: .12rem; min-width: 0; }
.record-timeline-copy strong { font-size: .86rem; line-height: 1.25; }
.record-timeline-copy small { overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.record-timeline-list time { color: var(--muted); font-size: .73rem; font-weight: 800; white-space: nowrap; }
.calendar-feedback { margin: 0 0 .85rem; }
.calendar-drag-help { max-width: 700px; margin: .2rem 0 0; font-size: .78rem; line-height: 1.35; }
.breed-picker { border: 1px solid var(--line); border-radius: 8px; padding: .85rem; display: grid; gap: .7rem; }
.breed-picker legend { padding: 0 .35rem; color: var(--muted); font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.owner-search-results, .selected-owner-list { display: grid; gap: .45rem; }
.owner-result, .selected-owner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-align: left; }
.owner-result { min-height: 44px; width: 100%; }
[data-waitlist-pet-results] .owner-result { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
.owner-result span { color: var(--muted); font-size: .85rem; }
.breed-search-result { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: .7rem; width: 100%; min-height: 54px; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.breed-search-result:hover, .breed-search-result:focus-visible { border-color: var(--accent); background: var(--surface-2); }
.breed-search-result img { width: 40px; height: 40px; border-radius: 8px; background: var(--surface-2); object-fit: contain; }
.breed-search-result strong { min-width: 0; font-size: .9rem; line-height: 1.25; }
.selected-owner { grid-template-columns: auto 1fr auto; }
.selected-owner input { width: auto; }
.selected-owner button { border: 0; background: transparent; color: #dc2626; font-size: 1.2rem; font-weight: 900; cursor: pointer; }
.selected-owner .selected-owner-remove { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid color-mix(in srgb, #dc2626, var(--line) 50%); border-radius: 8px; background: color-mix(in srgb, #dc2626, var(--surface) 90%); color: #dc2626; line-height: 1; }
.selected-owner .selected-owner-remove:hover { border-color: #dc2626; background: color-mix(in srgb, #dc2626, var(--surface) 82%); }
.selected-owner .selected-owner-remove svg { width: .95rem; height: .95rem; stroke-width: 2.6; }
.form-error { border: 1px solid #fca5a5; background: #fee2e2; color: #991b1b; border-radius: 8px; padding: .65rem .75rem; font-weight: 800; }
.contact-box { display: grid; gap: .25rem; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: .8rem; }
.contact-box a { color: var(--primary-strong); font-weight: 900; }
.availability-list { display: grid; gap: .7rem; }
.availability-list h3, .availability-list h4 { margin: 0 0 .15rem; }
.availability-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .75rem; border: 1px solid var(--line); border-left-width: 4px; border-radius: 8px; background: var(--surface-2); }
.availability-row div { display: grid; gap: .15rem; min-width: 0; }
.availability-row strong, .availability-row .button { display: inline-flex; align-items: center; gap: .35rem; }
.availability-row strong svg, .availability-row .button svg { width: .9rem; height: .9rem; flex: 0 0 auto; stroke-width: 2.5; }
.availability-row span { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.availability-row-vacation { border-left-color: #0f766e; }
.availability-row-sick_leave { border-left-color: #b45309; }
.availability-row-personal { border-left-color: #7e22ce; }
.availability-row-training { border-left-color: #1d4ed8; }
.availability-row-other { border-left-color: #475569; }
.visits-summary-actions { display: flex; align-items: stretch; gap: .85rem; flex-wrap: wrap; }
.month-filter { display: grid; min-width: 180px; padding: .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.month-filter label { color: var(--text); font-weight: 850; }
.visit-filters { display: grid; grid-template-columns: minmax(360px, 1fr) auto; gap: .85rem; align-items: stretch; margin-bottom: 1rem; }
.record-search { display: grid; grid-template-columns: minmax(320px, 1fr) auto; gap: .85rem; align-items: stretch; margin-bottom: 1rem; }
.record-search .filter-card label { max-width: 560px; }
.filter-card { display: grid; align-content: start; gap: .45rem; min-width: 0; padding: .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.filter-card label { color: var(--text); font-weight: 850; }
.filter-card > span { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.field-inline-note { display: inline-flex; margin-left: .35rem; color: var(--muted); font-size: .78rem; font-weight: 750; line-height: 1.25; }
.visit-pet-filter { padding: .85rem; }
.visit-pet-filter label { max-width: 520px; }
.visit-pet-filter legend { color: var(--text); font-weight: 900; padding: 0 .35rem; }
.visit-pet-filter .owner-search-results, .visit-pet-filter .selected-owner-list { margin-top: .1rem; }
.visit-pet-filter .selected-owner { grid-template-columns: minmax(0, 1fr) auto; background: var(--surface); }
.visit-pet-filter .selected-owner span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-mapping-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: .85rem; }
.import-preview-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.import-preview { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .9rem; }
.import-preview th, .import-preview td { padding: .55rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.import-preview th { background: var(--surface-2); font-weight: 900; color: var(--text); }
.import-preview td { color: var(--muted); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.export-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.export-grid form, .export-grid .button { width: 100%; }
.filter-actions { display: flex; align-items: flex-end; gap: .55rem; flex-wrap: wrap; }
.filter-actions .button { min-height: 44px; }
.billing-stat { min-width: 190px; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; margin-top: 1rem; color: var(--muted); font-weight: 800; }
.button.is-disabled { opacity: .45; pointer-events: none; }
.status-tabs { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-bottom: .6rem; }
.status-tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 850; background: var(--surface-2); }
.status-tabs a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot-recommendation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.slot-card { display: grid; align-content: start; gap: .75rem; padding: .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); min-width: 0; }
.slot-card-header strong { display: block; color: var(--text); font-size: .98rem; }
.slot-card-header span { color: var(--muted); font-size: .86rem; font-weight: 800; }
.slot-candidate-list { display: grid; gap: .65rem; }
.slot-candidate { display: grid; gap: .55rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.segmented-field { border: 1px solid var(--line); border-radius: 8px; padding: .8rem; display: flex; gap: .55rem; flex-wrap: wrap; }
.segmented-field legend { padding: 0 .35rem; color: var(--muted); font-weight: 800; }
.segmented-field label { display: inline-flex; align-items: center; gap: .45rem; color: var(--text); }
.segmented-field input { width: auto; }
.segmented-field span { display: inline-flex; align-items: center; min-height: 34px; padding: .4rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; }
.segmented-field input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }

body:has(.modal.is-open) { overflow: hidden; }
.modal-card { overscroll-behavior: contain; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 20, 18, .64), rgba(25, 20, 18, .5)); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(100%, 640px); max-height: min(88vh, 900px); overflow: auto; background: linear-gradient(180deg, color-mix(in srgb, var(--surface), var(--surface-2) 18%), var(--surface) 72%); border: 1px solid color-mix(in srgb, var(--line), var(--primary) 10%); border-radius: 8px; box-shadow: 0 30px 90px rgba(0,0,0,.3); padding: 1.35rem; }
.modal-card::before { content: ""; position: sticky; top: -1.35rem; display: block; height: 4px; margin: -1.35rem -1.35rem 1.15rem; background: linear-gradient(90deg, var(--primary), var(--accent)); z-index: 2; }
.modal-card.wide-modal { width: min(100%, 860px); }
.unsaved-changes-card { width: min(100%, 460px); text-align: center; }
.unsaved-changes-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; background: color-mix(in srgb, #f59e0b, var(--surface) 84%); color: #b45309; }
.unsaved-changes-icon svg { width: 1.6rem; height: 1.6rem; }
.unsaved-changes-card > p { margin: 0 auto; max-width: 38ch; }
.unsaved-changes-card .modal-actions { justify-content: center; }
.modal-card h2 { margin: 0; color: var(--text); font-size: 1.28rem; line-height: 1.2; letter-spacing: 0; }
.modal-card > h2:first-of-type { padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.modal-card > p { color: var(--muted); line-height: 1.45; }
.modal-card label { color: var(--text); font-weight: 850; }
.modal-card label input, .modal-card label select, .modal-card label textarea { margin-top: .05rem; }
.modal-card.form-stack { gap: 1rem; }
.modal-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; align-items: end; }
.modal-field-wide { grid-column: 1 / -1; }
.modal-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.modal-check-grid .check-row { min-height: 34px; }
.modal-actions { display: flex; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; margin-top: .1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.modal-card.wide-modal.appointment-modal-card { width: min(96vw, 1040px); max-height: 94vh; }
.appointment-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .85rem; }
.appointment-modal-header h2 { margin: 0; }
.appointment-modal-card .appointment-modal-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding-bottom: .95rem; border-bottom: 1px solid var(--line); }
.appointment-modal-header-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--primary), var(--surface) 84%); color: var(--primary-strong); }
.appointment-modal-header-icon svg { width: 1.45rem; height: 1.45rem; stroke-width: 2.4; }
.appointment-modal-heading { display: grid; gap: .12rem; min-width: 0; }
.appointment-modal-heading h2, .appointment-modal-heading p { margin: 0; }
.appointment-modal-heading > p:last-child { max-width: 66ch; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.appointment-modal-heading .eyebrow { color: var(--primary-strong); font-size: .68rem; }
.appointment-form-section { --appointment-section-color: var(--primary); display: grid; gap: .9rem; min-width: 0; overflow: hidden; padding: 1rem; border: 1px solid color-mix(in srgb, var(--appointment-section-color), var(--line) 72%); border-top: 3px solid var(--appointment-section-color); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 24px color-mix(in srgb, #000, transparent 95%); }
.appointment-client-section { --appointment-section-color: var(--accent); }
.appointment-completion-section { --appointment-section-color: #16a34a; }
.appointment-section-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; margin: -1rem -1rem .05rem; padding: .78rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--appointment-section-color), var(--line) 78%); background: color-mix(in srgb, var(--appointment-section-color), var(--surface) 94%); }
.appointment-section-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: color-mix(in srgb, var(--appointment-section-color), transparent 82%); color: color-mix(in srgb, var(--appointment-section-color), var(--text) 18%); }
.appointment-section-icon svg { width: 1.08rem; height: 1.08rem; stroke-width: 2.5; }
.appointment-section-heading h3, .appointment-section-heading p { margin: 0; }
.appointment-section-heading h3 { color: var(--text); font-size: 1rem; line-height: 1.2; }
.appointment-section-heading p { margin-top: .1rem; color: var(--muted); font-size: .74rem; line-height: 1.3; }
.appointment-client-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .75rem; align-items: stretch; }
.appointment-pet-picker { min-width: 0; background: color-mix(in srgb, var(--surface-2), var(--surface) 55%); }
.appointment-pet-picker [data-pet-search-controls] { display: grid; gap: .55rem; }
.appointment-pet-result { grid-template-columns: auto minmax(0, 1fr); padding: .55rem .65rem; }
.appointment-pet-result:hover, .appointment-pet-result:focus-visible { border-color: var(--primary); background: color-mix(in srgb, var(--accent), var(--surface) 94%); outline: none; }
.appointment-result-copy { display: grid; gap: .1rem; min-width: 0; }
.appointment-result-copy strong, .appointment-result-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appointment-result-copy strong { color: var(--text); font-size: .84rem; }
.appointment-result-copy > span { color: var(--muted); font-size: .73rem; }
.appointment-pet-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; min-height: 64px; padding: .58rem .65rem; border: 1px solid color-mix(in srgb, var(--accent), var(--line) 60%); border-radius: 9px; background: color-mix(in srgb, var(--accent), var(--surface) 94%); }
.appointment-identity-avatar { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent), var(--line) 48%); border-radius: 12px; background: color-mix(in srgb, var(--accent), var(--surface) 82%); color: color-mix(in srgb, var(--accent), var(--text) 25%); font-size: 1.15rem; font-weight: 950; }
.appointment-pet-result .appointment-identity-avatar { width: 40px; height: 40px; border-radius: 10px; color: color-mix(in srgb, var(--accent), var(--text) 25%); font-size: 1rem; }
.appointment-identity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.appointment-identity-copy { display: grid; gap: .08rem; min-width: 0; }
.appointment-identity-copy strong, .appointment-identity-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appointment-identity-copy strong { color: var(--text); font-size: .98rem; }
.appointment-identity-copy small { color: var(--muted); font-size: .75rem; }
.appointment-identity-copy .eyebrow { color: var(--primary-strong); font-size: .61rem; }
.appointment-change-pet { display: grid; place-items: center; width: 34px; min-height: 34px; padding: 0; border-color: color-mix(in srgb, #dc2626, var(--line) 55%); color: #dc2626; }
.appointment-change-pet svg { width: .95rem; height: .95rem; stroke-width: 2.7; }
.contact-box.appointment-contact-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .75rem; min-width: 0; padding: .72rem; border-color: color-mix(in srgb, var(--primary), var(--line) 65%); background: color-mix(in srgb, var(--primary), var(--surface) 96%); }
.appointment-owner-avatar { width: 48px; height: 48px; flex-basis: 48px; border-radius: 12px; font-size: 1.1rem; }
.appointment-owner-avatar svg { width: 1.15rem; height: 1.15rem; }
.appointment-contact-copy { display: grid; gap: .12rem; min-width: 0; }
.appointment-contact-copy > strong { overflow: hidden; color: var(--text); font-size: .98rem; text-overflow: ellipsis; white-space: nowrap; }
.appointment-contact-copy .eyebrow { color: var(--primary-strong); font-size: .61rem; }
.appointment-contact-methods { display: flex; gap: .3rem .7rem; min-width: 0; flex-wrap: wrap; }
.appointment-contact-methods a { overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.appointment-contact-card .contact-profile-links { margin-top: .25rem; }
.appointment-contact-card .contact-profile-links .button { min-height: 30px; padding: .3rem .5rem; font-size: .68rem; }
.appointment-field-grid, .appointment-completion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem .85rem; align-items: start; }
.appointment-field-grid label, .appointment-completion-grid label { min-width: 0; }
.appointment-schedule-grid { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(180px, .9fr) repeat(2, minmax(150px, .7fr)); gap: .72rem .85rem; align-items: end; min-width: 0; }
.appointment-schedule-grid select:disabled { cursor: not-allowed; opacity: .72; }
.appointment-price-control { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; overflow: hidden; margin-top: .35rem; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--accent), var(--surface) 95%); }
.appointment-price-control:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary), transparent 82%); }
.appointment-price-control > svg { width: 1.05rem; height: 1.05rem; margin-left: .75rem; color: var(--primary-strong); }
.appointment-price-control input { min-width: 0; border: 0; background: transparent; box-shadow: none; }
.appointment-price-control input:focus { box-shadow: none; }
.appointment-price-control > span:last-child { align-self: stretch; display: grid; place-items: center; padding: 0 .75rem; border-left: 1px solid var(--line); color: var(--muted); font-size: .75rem; font-weight: 900; }
.appointment-field-help { display: block; margin-top: .25rem; color: var(--muted); font-size: .7rem; font-weight: 650; line-height: 1.3; }
.appointment-notes-field, .appointment-completion-wide, .appointment-completion-payment { grid-column: 1 / -1; }
.appointment-notes-field textarea { min-height: 76px; }
.appointment-completion-payment { align-items: end; }
.appointment-completion-payment > [data-payment-method-field] { grid-column: 1 / -1; }
.appointment-completion-grid > [data-completion-rebooking] { align-self: end; }
.appointment-modal-card > .modal-actions { position: sticky; bottom: -1.35rem; z-index: 3; margin: 0 -1.35rem -1.35rem; padding: .9rem 1.35rem 1.1rem; background: color-mix(in srgb, var(--surface), transparent 3%); box-shadow: 0 -10px 24px color-mix(in srgb, #000, transparent 92%); }
.pending-closures-panel { overflow: hidden; border-color: color-mix(in srgb, #f59e0b, var(--line) 48%); border-top: 3px solid #f59e0b; background: color-mix(in srgb, #f59e0b, var(--surface) 97%); }
.onboarding-panel + .pending-closures-panel, .pending-closures-panel + .dashboard-stats { margin-top: 1.5rem; }
.pending-closures-heading { margin-bottom: .85rem; }
.pending-closures-heading h2 { margin-bottom: .2rem; }
.pending-closures-count { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 54px; min-height: 38px; padding: .4rem .7rem; border: 1px solid color-mix(in srgb, #f59e0b, var(--line) 45%); border-radius: 999px; background: color-mix(in srgb, #f59e0b, var(--surface) 84%); color: color-mix(in srgb, #b45309, var(--text) 25%); font-weight: 950; }
.pending-closures-count svg { width: 1rem; height: 1rem; stroke-width: 2.7; }
.pending-closure-list { display: grid; gap: .55rem; }
.pending-closure-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .75rem; padding: .65rem .7rem; border: 1px solid color-mix(in srgb, #f59e0b, var(--line) 68%); border-radius: 9px; background: var(--surface); }
.pending-closure-avatar { width: 42px; height: 42px; flex-basis: 42px; border-radius: 10px; }
.pending-closure-copy { display: grid; gap: .2rem; min-width: 0; }
.pending-closure-copy > strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.pending-closure-meta { display: flex; align-items: center; gap: .25rem .75rem; min-width: 0; flex-wrap: wrap; color: var(--muted); font-size: .76rem; font-weight: 720; }
.pending-closure-meta span { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; }
.pending-closure-meta svg { width: .85rem; height: .85rem; flex: 0 0 auto; }
.pending-closure-price { color: var(--text); white-space: nowrap; }
.pending-closure-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.pending-no-show-button { border-color: color-mix(in srgb, #dc2626, var(--line) 58%) !important; color: #dc2626 !important; }
.pending-no-show-button:hover { background: color-mix(in srgb, #dc2626, var(--surface) 90%) !important; }
.pending-closures-more { margin: .7rem 0 0; font-size: .78rem; }
.modal-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; padding: .25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.modal-tab { min-height: 40px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 900; cursor: pointer; }
.modal-tab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.modal-tab span { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; min-height: 22px; margin-left: .35rem; padding: 0 .35rem; border-radius: 999px; background: var(--primary); color: #fff; font-size: .72rem; }
.waitlist-slot-panel { padding-top: .1rem; }
.waitlist-slot-header { display: flex; justify-content: space-between; gap: .75rem; padding: .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.waitlist-slot-header div { display: grid; gap: .18rem; }
.waitlist-slot-header strong { color: var(--text); }
.waitlist-slot-header span { color: var(--muted); font-size: .86rem; font-weight: 750; }
.waitlist-candidate-list { display: grid; gap: .7rem; }
.waitlist-candidate-card { display: grid; gap: .65rem; padding: .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.waitlist-candidate-top, .waitlist-candidate-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.waitlist-candidate-top > div { display: grid; gap: .18rem; min-width: 0; }
.waitlist-candidate-top strong { color: var(--text); }
.waitlist-candidate-top span:not(.status-pill):not(.vip-badge):not(.problematic-badge) { color: var(--muted); font-size: .86rem; }
.waitlist-candidate-meta, .waitlist-candidate-reasons { display: flex; gap: .4rem; flex-wrap: wrap; }
.waitlist-candidate-meta span, .waitlist-candidate-reasons span { display: inline-flex; align-items: center; min-height: 26px; padding: .25rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 800; }
.warning-pill { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.photo-input-tools { display: flex; align-items: center; gap: .75rem; margin-top: .55rem; flex-wrap: wrap; }
.photo-file-status { font-size: .85rem; font-weight: 750; }
.camera-modal-card { width: min(100%, 720px); }
.camera-stage { background: #111827; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.camera-video, .camera-preview { width: 100%; height: 100%; object-fit: contain; background: #111827; }
.site-footer { padding: 1.5rem 2rem 2.5rem; border-top: 1px solid var(--line); }
.site-footer .nav-links { justify-content: center; flex-wrap: wrap; }
.legal-page { padding: 3rem 1.5rem 5rem; }
.legal-shell { width: min(920px, 100%); margin: 0 auto; display: grid; gap: 1.2rem; }
.legal-shell h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .95; }
.legal-section-list { display: grid; gap: 1rem; }
.legal-account-section { scroll-margin-top: 1rem; }
.legal-focus-layout .legal-account-section { order: -1; }
.legal-document-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; }
.legal-document-card { display: grid; gap: .75rem; align-content: start; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); min-width: 0; }
.legal-document-card.is-accepted { border-color: color-mix(in srgb, var(--accent), var(--line) 45%); background: color-mix(in srgb, var(--accent), var(--surface) 92%); }
.legal-document-card h3 { margin: .55rem 0 0; color: var(--text); font-size: 1.05rem; line-height: 1.2; }
.legal-document-card p { margin: 0; }
.legal-document-card .button { align-self: end; }
.legal-document-card .status-pill, .legal-document-modal .status-pill { min-height: 28px; padding: .3rem .6rem; font-size: .76rem; }
.legal-document-card .status-pill.paid, .legal-document-modal .status-pill.paid { border-color: color-mix(in srgb, var(--accent), transparent 38%); background: color-mix(in srgb, var(--accent), var(--surface) 84%); color: var(--text); }
.legal-document-card .status-pill.pending, .legal-document-modal .status-pill.pending { border-color: color-mix(in srgb, var(--primary), transparent 45%); background: color-mix(in srgb, var(--primary), var(--surface) 88%); color: var(--primary-strong); }
.legal-document-body { display: grid; gap: .85rem; padding: .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); max-height: min(50vh, 520px); overflow: auto; }
.legal-document-body section { display: grid; gap: .25rem; padding-bottom: .8rem; border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 25%); }
.legal-document-body section:last-child { padding-bottom: 0; border-bottom: 0; }
.legal-document-body h3 { margin: 0; color: var(--text); font-size: .98rem; line-height: 1.25; }
.legal-document-body p { margin: 0; color: var(--muted); line-height: 1.5; }

/* Application interface refresh */
.app-shell { grid-template-columns: 248px minmax(0, 1fr); background: var(--bg); }
.app-shell.sidebar-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; padding: .85rem; background: color-mix(in srgb, var(--surface), var(--bg) 14%); }
.sidebar-header { margin: .15rem .2rem .85rem; }
.sidebar-brand { color: var(--text); font-size: 1rem; letter-spacing: -.02em; }
.sidebar-toggle { border-radius: 10px; background: transparent; transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
.sidebar-toggle:hover { background: var(--surface-2); }
.salon-profile { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: .7rem; min-width: 0; margin-bottom: .8rem; padding: .55rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 3px 14px color-mix(in srgb, #000, transparent 96%); }
.salon-profile-mark { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 10px; background: color-mix(in srgb, var(--accent), var(--surface) 88%); color: var(--accent); }
.salon-profile-mark > svg { width: 1.25rem; height: 1.25rem; }
.salon-profile .sidebar-logo { width: 100%; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; object-fit: cover; object-position: center; }
.salon-profile-copy { display: grid; gap: .1rem; min-width: 0; }
.salon-profile-copy strong, .salon-profile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salon-profile-copy strong { color: var(--text); font-size: .88rem; }
.salon-profile-copy small { color: var(--muted); font-size: .72rem; font-weight: 700; }
.shop-switcher { margin: 0 0 .8rem; }
.side-nav { flex: 1 1 auto; gap: .55rem; }
.side-nav-group { gap: .14rem; }
.side-nav-admin, .side-nav-utility { padding-top: .55rem; }
.side-nav-utility { position: sticky; bottom: -.85rem; z-index: 3; margin-top: auto; padding: .65rem 0 .85rem; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface), var(--bg) 14%) 18%); }
.side-nav a, .side-nav-action, .side-nav-admin-toggle { min-height: 40px; padding: .58rem .7rem; border-radius: 10px; font-size: .9rem; transition: color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.side-nav a.is-active { background: color-mix(in srgb, var(--accent), var(--surface) 88%); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.side-nav a:hover, .side-nav-action:hover, .side-nav-admin-toggle:hover, .side-nav-admin.is-open .side-nav-admin-toggle { background: color-mix(in srgb, var(--surface-2), var(--surface) 35%); }
.admin-pin-inline { border-radius: 11px; background: color-mix(in srgb, var(--surface-2), var(--surface) 36%); }
.sidebar-collapsed .salon-profile { grid-template-columns: 1fr; padding: .35rem; }
.sidebar-collapsed .salon-profile-mark { width: 40px; height: 40px; }
.sidebar-collapsed .salon-profile-copy { display: none; }

.app-main { padding: clamp(1rem, 1.8vw, 1.7rem); }
.app-topbar { margin-bottom: 1rem; padding: .1rem 0 1rem; border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 22%); }
.app-topbar h1 { font-size: clamp(1.55rem, 2.2vw, 1.9rem); letter-spacing: -.035em; }
.page-title { gap: .6rem; }
.page-title i { width: 1.3rem; height: 1.3rem; color: var(--muted); stroke-width: 2.25; }
.topbar-actions { gap: .55rem; }
.topbar-actions .status-pill, .topbar-actions .trial-pill { min-height: 34px; padding: .4rem .7rem; border-color: color-mix(in srgb, var(--accent), var(--line) 62%); background: color-mix(in srgb, var(--accent), var(--surface) 92%); box-shadow: none; font-size: .74rem; }
.topbar-primary-action { min-height: 40px; }

.app-main .panel, .app-main .stat, .app-main .mini-card, .app-main .price-card { border-color: color-mix(in srgb, var(--line), transparent 8%); border-radius: 14px; box-shadow: 0 4px 18px color-mix(in srgb, #000, transparent 95%); }
.app-main .panel { padding: clamp(1rem, 1.6vw, 1.3rem); }
.app-main .button, .sidebar .button, body > .modal .button { border-radius: 10px; box-shadow: none; transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.app-main .button:hover, .sidebar .button:hover, body > .modal .button:hover { transform: translateY(-1px); }
.app-main .button:not(.ghost):not(.danger):not(.success), .sidebar .button:not(.ghost):not(.danger):not(.success), body > .modal .button:not(.ghost):not(.danger):not(.success) { box-shadow: 0 5px 14px color-mix(in srgb, var(--primary), transparent 78%); }
.app-main .button.ghost:hover, .sidebar .button.ghost:hover, body > .modal .button.ghost:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent), var(--line) 50%); }
.section-toolbar { margin-bottom: .9rem; }
.section-toolbar h2 { font-size: 1.35rem; letter-spacing: -.025em; }
.eyebrow { font-size: .68rem !important; letter-spacing: .11em; }
.app-main label { font-weight: 650; }
.app-main input, .app-main select, .app-main textarea { border-radius: 10px; transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.app-main input:focus, .app-main select:focus, .app-main textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 80%); }

.data-table { border-radius: 12px; overflow: visible; box-shadow: 0 2px 12px color-mix(in srgb, #000, transparent 97%); }
.data-row { position: relative; gap: .8rem; padding: .78rem .9rem; transition: background-color .15s ease, box-shadow .15s ease; }
.data-row:not(.data-head):hover { background: color-mix(in srgb, var(--accent), var(--surface) 96%); }
.data-head { min-height: 42px; background: color-mix(in srgb, var(--surface-2), var(--surface) 42%); font-size: .7rem; letter-spacing: .07em; }
.data-row:first-child { border-radius: 12px 12px 0 0; }
.data-row:last-child { border-radius: 0 0 12px 12px; }
.owners-row { grid-template-columns: minmax(190px, 1.3fr) minmax(130px, .65fr) minmax(180px, 1fr) 48px; }
.services-row { grid-template-columns: minmax(220px, 1.35fr) minmax(140px, .7fr) minmax(110px, .6fr) minmax(180px, 1fr) 48px; }
.pets-row { grid-template-columns: minmax(340px, 1.8fr) minmax(150px, .65fr) minmax(180px, 1fr) 48px; }
.groomers-row { grid-template-columns: minmax(190px, 1.15fr) minmax(130px, .65fr) minmax(180px, .9fr) minmax(135px, .7fr) minmax(165px, .85fr) minmax(105px, .5fr) minmax(120px, .55fr) 48px; }
.row-action-cell { overflow: visible !important; }
.row-action-menu { position: relative; margin-left: auto; }
.row-action-menu > summary { list-style: none; }
.row-action-menu > summary::-webkit-details-marker { display: none; }
.row-action-trigger { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.row-action-trigger:hover, .row-action-menu[open] .row-action-trigger { border-color: color-mix(in srgb, var(--accent), var(--line) 45%); background: var(--surface-2); color: var(--text); }
.row-action-trigger svg { width: 1.05rem; height: 1.05rem; }
.row-action-popover { position: absolute; top: calc(100% + .35rem); right: 0; z-index: 40; display: grid; gap: .25rem; width: max-content; min-width: 170px; padding: .4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 44px color-mix(in srgb, #000, transparent 78%); }
.row-action-popover .button, .row-action-popover form, .row-action-popover form .button { width: 100%; }
.row-action-popover .button { justify-content: flex-start; min-height: 36px; padding: .5rem .65rem; border: 0; background: transparent; color: var(--text); box-shadow: none !important; }
.row-actions .row-action-popover .button.has-icon { width: 100%; height: auto; min-width: 0; padding: .5rem .65rem; gap: .45rem; font-size: .82rem; }
.row-action-popover .button:hover { transform: none; background: var(--surface-2); }
.row-action-popover .button.danger { color: #c62828; }
.row-action-popover .button.danger:hover { background: color-mix(in srgb, #dc2626, var(--surface) 92%); }
.data-row:has(.row-action-menu[open]) { z-index: 30; background: color-mix(in srgb, var(--accent), var(--surface) 96%); }

.record-search, .visit-filters { align-items: end; gap: .7rem; margin-bottom: 1rem; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface-2), var(--surface) 45%); }
.record-search { grid-template-columns: minmax(0, 1fr) auto; }
.record-search .filter-card { grid-template-columns: minmax(260px, 560px) minmax(210px, 1fr); align-items: center; padding: 0; border: 0; background: transparent; }
.record-search .filter-card > label:first-child { grid-column: 1; }
.record-search .filter-card > span { grid-column: 1; }
.record-search .filter-card .care-due-filter { grid-column: 2; grid-row: 1 / span 2; }
.visit-filters { grid-template-columns: minmax(360px, 1fr) minmax(180px, 240px) auto; }
.visit-filters .filter-card { height: 100%; padding: .65rem; background: var(--surface); }
.filter-actions { align-items: center; align-self: stretch; }
.filter-actions .button { align-self: end; min-height: 44px; }
.visits-summary-actions { align-items: end; }
.month-filter { padding: .65rem; border-radius: 11px; background: var(--surface); }
.visits-money-summary { gap: .5rem; }
.visits-money-summary .billing-stat { min-width: 132px; padding: .75rem .85rem; }
.visits-money-summary .billing-stat strong { font-size: 1.12rem; }

.pending-closures-panel { border: 1px solid color-mix(in srgb, #f59e0b, var(--line) 66%); border-left: 4px solid #f59e0b; border-top-width: 1px; background: var(--surface); }
.pending-closures-heading { margin-bottom: .65rem; }
.pending-closures-heading .muted { margin-bottom: 0; }
.pending-closures-count { min-width: 46px; min-height: 32px; padding: .3rem .6rem; }
.pending-closure-list { gap: 0; border-top: 1px solid var(--line); }
.pending-closure-item { gap: .65rem; padding: .58rem .2rem; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 26%); border-radius: 0; }
.pending-closure-avatar { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; }
.pending-closure-item:nth-child(n+5) { display: none; }
.pending-closures-panel.is-expanded .pending-closure-item:nth-child(n+5) { display: grid; }
.pending-closure-actions .button { min-height: 34px; padding: .48rem .65rem; }
.pending-closures-footer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; flex-wrap: wrap; padding-top: .7rem; }
.pending-closures-toggle { color: var(--text) !important; }
.pending-closures-toggle svg { transition: transform .18s ease; }
.pending-closures-panel.is-expanded .pending-closures-toggle svg { transform: rotate(180deg); }
.pending-closures-more { display: none; margin: 0; }
.pending-closures-panel.is-expanded .pending-closures-more { display: block; }
.visits-tabs { display: flex; gap: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.visits-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem .3rem; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 650; text-decoration: none; }
.visits-tabs a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.visits-tabs a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visits-tabs svg { width: 18px; height: 18px; flex-shrink: 0; }
.visits-tab-count { padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .75rem; }
.visits-pending-panel .pending-closure-item:nth-child(n+5) { display: grid; }
.visits-pending-empty { text-align: center; padding: 3rem 1rem; }
.visits-pending-empty > svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1rem; }
@media (max-width: 640px) { .visits-tabs { gap: .6rem; } .visits-tabs a { font-size: .8rem; gap: .35rem; } }

.settings-layout.single-settings { grid-template-columns: 210px minmax(0, 1fr); max-width: 1450px; align-items: start; }
.settings-section-nav { position: sticky; top: 1rem; display: grid; gap: .25rem; padding: .55rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 18px color-mix(in srgb, #000, transparent 95%); }
.settings-section-nav a { display: flex; align-items: center; gap: .6rem; min-height: 40px; padding: .55rem .65rem; border-radius: 9px; color: var(--muted); font-size: .82rem; font-weight: 800; transition: color .15s ease, background-color .15s ease; }
.settings-section-nav a:hover, .settings-section-nav a:focus-visible, .settings-section-nav a.is-active { background: var(--surface-2); color: var(--text); outline: 0; }
.settings-section-nav a.is-active { box-shadow: inset 3px 0 0 var(--primary); }
.settings-section-nav svg { width: 1rem; height: 1rem; color: var(--primary-strong); }
.settings-main-panel { position: static; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.settings-main-panel > .section-toolbar { margin: 0; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 18px color-mix(in srgb, #000, transparent 95%); }
.settings-section { margin: 0; padding: 1.2rem 1.25rem 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 18px color-mix(in srgb, #000, transparent 95%); }
.settings-section + .settings-section { margin-top: 0; }
.settings-section::before { top: 1rem; bottom: 1rem; width: 3px; }
.settings-section h3 { font-size: 1.02rem; }
.settings-section-actions { padding-top: .1rem; }
.settings-logo-frame, .settings-fieldset, .message-preview, .inline-note { border-radius: 11px; }

.account-layout { grid-template-columns: 210px minmax(0, 1fr); max-width: 1500px; }
.account-section-nav { grid-column: 1; grid-row: 1 / span 20; top: 1rem; z-index: 10; flex-direction: column; align-items: stretch; overflow: visible; padding: .55rem; border-radius: 14px; box-shadow: 0 4px 18px color-mix(in srgb, #000, transparent 95%); }
.account-section-nav a { width: 100%; padding: .62rem .7rem; border-radius: 9px; white-space: normal; }
.account-section-nav a.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--primary); }
.account-layout > section { grid-column: 2; }
.account-layout > [id] { scroll-margin-top: 1rem; }
.account-layout .billing-plan-grid { gap: .8rem; }
.account-layout .price-card { padding: 1.05rem; gap: .65rem; }
.account-layout .plan-feature-list { gap: .35rem; }
.account-layout .plan-feature-list li { padding: .48rem .55rem; border: 0; background: color-mix(in srgb, var(--surface-2), var(--surface) 35%); }
.account-layout .price-line { font-size: 1.75rem; letter-spacing: -.035em; }
.account-layout .current-plan { box-shadow: inset 0 3px 0 var(--primary), 0 4px 18px color-mix(in srgb, #000, transparent 95%); }
.account-layout .pricing-tax-note { box-shadow: none; font-weight: 700; }

.fc-theme-standard .fc-scrollgrid { border-radius: 12px; }
.fc .fc-toolbar-title { font-size: 1.12rem; letter-spacing: -.02em; }
.fc .fc-button-primary { border-radius: 9px; }
.fc .fc-timegrid-slot-minor { border-top-style: solid; border-top-color: color-mix(in srgb, var(--line), transparent 52%); }
.fc .closed-hours { background: color-mix(in srgb, var(--muted), transparent 93%); opacity: 1; }
.fc .alternative-hours { background: color-mix(in srgb, var(--accent), transparent 91%); opacity: 1; }
.fc .holiday-hours { background: color-mix(in srgb, #dc2626, transparent 92%); opacity: 1; }

.modal-backdrop { background: rgba(18, 20, 22, .6); backdrop-filter: blur(8px); }
.modal-card { border-radius: 16px; background: var(--surface); box-shadow: 0 28px 90px rgba(0,0,0,.32); }
.modal-card::before { height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.modal-card h2 { letter-spacing: -.02em; }
.modal-actions { background: color-mix(in srgb, var(--surface), transparent 2%); }
.appointment-form-section, .owner-record-section, .record-timeline-section { border-radius: 13px; box-shadow: none; }
.appointment-section-heading, .owner-record-section-heading, .record-timeline-heading { background: color-mix(in srgb, var(--appointment-section-color, var(--owner-section-color, var(--timeline-color))), var(--surface) 96%); }

[data-theme="dark"] .payment-pill-paid { background: #173b31; border-color: #2f6c59; color: #8ee7c6; }
[data-theme="dark"] .payment-pill-unpaid, [data-theme="dark"] .warning-pill { background: #432c18; border-color: #71461f; color: #fdba74; }
[data-theme="dark"] .payment-pill-refunded { background: #431f22; border-color: #743036; color: #fda4af; }
[data-theme="dark"] .row-action-popover { box-shadow: 0 18px 48px rgba(0,0,0,.45); }
[data-theme="dark"] .settings-logo-frame { border-color: var(--line); }
[data-theme="dark"] .side-nav a.is-active, [data-theme="dark"] .settings-section-nav a.is-active, [data-theme="dark"] .account-section-nav a.is-active { background: #173638 !important; color: #ffffff !important; }
[data-theme="dark"] .side-nav a.is-active svg, [data-theme="dark"] .settings-section-nav a.is-active svg, [data-theme="dark"] .account-section-nav a.is-active svg { color: #9de4df; }
[data-theme="dark"] .side-nav-admin.is-open .side-nav-admin-toggle { background: #342a27 !important; color: #ffffff !important; }
[data-theme="dark"] .topbar-actions .status-pill { border-color: #3f6665; background: #203334; color: #dcf7f4; }
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]), [data-theme="dark"] select, [data-theme="dark"] textarea { background: #202428 !important; border-color: #4a5157 !important; color: #ffffff !important; }
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: #aaa29b; }

@media (prefers-reduced-motion: reduce) {
    .app-shell *, .app-shell *::before, .app-shell *::after, body > .modal * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 900px) {
    .hero, .pricing-wrap, .pricing-cards, .billing-plan-grid, .feature-grid, .app-shell, .settings-layout, .feedback-layout, .reports-grid, .panel-chart-grid { grid-template-columns: 1fr; }
    .settings-layout.single-settings, .account-layout { grid-template-columns: minmax(0, 1fr); max-width: none; }
    .settings-section-nav, .account-section-nav { position: relative; top: auto; grid-column: 1; grid-row: auto; display: flex; flex-direction: row; overflow-x: auto; }
    .settings-section-nav a, .account-section-nav a { flex: 0 0 auto; width: auto; white-space: nowrap; }
    .account-layout > section { grid-column: 1; }
    .app-shell, .app-shell.sidebar-collapsed { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: start; }
    .hero { min-height: auto; }
    .hero-visual { min-height: 280px; }
    .marketing-hero, .pricing-hero, .split-section, .showcase-grid, .outcome-grid, .screenshot-split { grid-template-columns: 1fr; }
    .marketing-hero { min-height: auto; }
    .featured-plan { transform: none; }
    .sidebar, .settings-main-panel, .feedback-context { position: relative; height: auto; top: auto; }
    .sidebar-collapsed .sidebar { padding: .75rem 1rem; }
    .sidebar-collapsed .sidebar-header { grid-template-columns: minmax(0, 1fr) 38px; justify-items: stretch; margin-bottom: 0; }
    .sidebar-collapsed .sidebar-brand { justify-content: flex-start; width: auto; height: auto; }
    .sidebar-collapsed .sidebar-toggle { width: 38px; }
    .sidebar-collapsed .sidebar-header .nav-label { display: block; }
    .sidebar-collapsed .sidebar > :not(.sidebar-header) { display: none; }
    .salon-profile { max-width: 360px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reminder-channel-grid { grid-template-columns: 1fr; }
    .settings-logo-block { grid-template-columns: 1fr; align-items: stretch; }
    .visit-filters, .record-search, .import-mapping-grid, .export-grid, .slot-recommendation-grid { grid-template-columns: 1fr; }
    .record-search .filter-card { grid-template-columns: 1fr; }
    .record-search .filter-card > label:first-child, .record-search .filter-card > span, .record-search .filter-card .care-due-filter { grid-column: 1; grid-row: auto; }
    .pending-closure-item { grid-template-columns: auto minmax(0, 1fr); }
    .pending-closure-price { grid-column: 2; }
    .pending-closure-actions { grid-column: 1 / -1; justify-content: stretch; }
    .pending-closure-actions .button { flex: 1 1 150px; }
}

@media (max-width: 1180px) {
    .pricing-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
    .reports-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .visit-filters, .record-search { grid-template-columns: 1fr; }
    .data-head { display: none; }
    .data-table[role="table"]:not(.groomers-table) > .data-head:not(.pets-row):not(.owners-row):not(.services-row) { display: grid; position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
    .data-table { border: 0; background: transparent; gap: .75rem; overflow: visible; }
    .data-row { grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 10px 26px rgba(0,0,0,.06); }
    .visit-management-body { min-width: 0; }
    .data-row > span, .data-row strong, .meta-stack span { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
    .data-row > [data-label]::before { content: attr(data-label); display: block; margin-bottom: .25rem; color: var(--muted); font-size: .7rem; font-weight: 900; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; white-space: normal; }
    .data-row > .identity-cell[data-label], .data-row > .row-actions[data-label] { flex-wrap: wrap; }
    .data-row > .identity-cell[data-label]::before, .data-row > .row-actions[data-label]::before { flex: 1 0 100%; }
    .row-actions { justify-content: flex-start; flex-wrap: wrap; }
    .groomers-table { border: 1px solid var(--line); background: var(--surface); gap: 0; overflow-x: auto; }
    .groomers-table .data-head { display: grid; }
    .groomers-table .groomers-row { grid-template-columns: minmax(190px, 1.15fr) minmax(130px, .65fr) minmax(180px, .9fr) minmax(135px, .7fr) minmax(165px, .85fr) minmax(105px, .5fr) minmax(120px, .55fr) 48px; }
    .groomers-table .data-row { min-width: 1150px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); box-shadow: none; }
    .groomers-table .data-row:last-child { border-bottom: 0; }
    .groomers-table .data-row > span, .groomers-table .data-row strong, .groomers-table .meta-stack span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
    .groomers-table .row-actions { justify-content: flex-end; flex-wrap: nowrap; }
    .waitlist-layout .data-table { overflow: visible; }
    .waitlist-layout .waitlist-row { min-width: 0; }
}

@media (max-width: 980px) {
    .pet-form-layout, .owner-record-layout, .groomer-record-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .site-header, .app-topbar, .list-row { align-items: flex-start; flex-direction: column; }
    .topbar-actions, .topbar-primary-action { width: 100%; }
    .topbar-primary-action { justify-content: center; }
    .flash { align-items: stretch; flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
    .site-header, .app-main, .feature-grid, .pricing-wrap, .form-page { padding-left: 1rem; padding-right: 1rem; }
    .marketing-hero, .marketing-section, .marketing-band, .pricing-panel, .pricing-hero { padding-left: 1rem; padding-right: 1rem; }
    .marketing-copy h1, .pricing-hero h1 { font-size: 3rem; }
    .hero-proof { grid-template-columns: 1fr; }
    .app-screenshot-frame { border-radius: 18px; }
    .app-screenshot-frame figcaption { position: relative; left: auto; bottom: auto; max-width: none; margin: .6rem; }
    .marketing-cta { flex-direction: column; align-items: stretch; margin: 1rem; padding: 1.2rem; }
    .schedule-row { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 3.2rem; }
    .hero { padding-left: 1rem; padding-right: 1rem; }
    .pet-form-intro, .pet-profile-options, .pet-notes-grid, .pet-treatment-grid, .treatment-repeat-fields, .groomer-form-grid, .groomer-form-header, .groomer-photo-row, .groomer-time-off-fields, .modal-field-grid, .modal-check-grid, .owner-summary-facts, .groomer-summary-facts, .appointment-field-grid, .appointment-completion-grid { grid-template-columns: 1fr; }
    .pet-profile-summary-identity { grid-template-columns: auto minmax(0, 1fr); }
    .pet-summary-inline-facts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .owner-pet-actions .button { width: 100%; justify-content: center; }
    .record-modal-titlebar { align-items: stretch; flex-direction: column; }
    .record-modal-titlebar .button { justify-content: center; }
    .owner-pet-shortcut-list { grid-template-columns: 1fr; }
    .owner-pet-appointment span { display: none; }
    .owner-pet-appointment { min-width: 46px; }
    .record-timeline-list li > a, .record-timeline-list li > div { grid-template-columns: 36px minmax(0, 1fr); }
    .record-timeline-list time { grid-column: 2; }
    .pet-modal-card > .modal-actions { bottom: -1rem; margin: 0 -1rem -1rem; padding: .9rem 1rem; }
    .appointment-modal-card > .modal-actions { bottom: -1rem; margin: 0 -1rem -1rem; padding: .9rem 1rem; }
    .appointment-modal-card .appointment-modal-header { grid-template-columns: auto minmax(0, 1fr); }
    .appointment-modal-card .appointment-modal-header > .button { grid-column: 1 / -1; width: 100%; justify-content: center; }
    .appointment-modal-header-icon { width: 46px; height: 46px; }
    .appointment-client-grid { grid-template-columns: 1fr; }
    .appointment-schedule-grid { grid-template-columns: 1fr; }
    .appointment-notes-field, .appointment-completion-wide, .appointment-completion-payment { grid-column: auto; }
    .appointment-pet-card { grid-template-columns: auto minmax(0, 1fr) auto; }
    .groomer-record-actions { bottom: -1rem; margin: 0 -1rem -1rem; padding: .9rem 1rem; }
    .treatment-reminder-card { align-items: stretch; flex-direction: column; }
    .groomer-avatar-preview { width: 60px; height: 60px; }
    .visit-photo-fields { grid-template-columns: 1fr; }
    .onboarding-step { grid-template-columns: auto minmax(0, 1fr); }
    .onboarding-step > .button, .onboarding-actions { grid-column: 1 / -1; width: 100%; }
    .onboarding-actions { align-items: stretch; flex-direction: column; }
    .onboarding-actions .button, .onboarding-actions form { width: 100%; }
    .rebooking-candidate { align-items: stretch; flex-direction: column; }
    .rebooking-candidate > div:last-child { justify-items: stretch; }
    .modal { padding: .5rem; }
    .modal-card { padding: 1rem; }
    .modal-actions, .filter-actions, .pagination { justify-content: stretch; }
    .modal-actions .button, .filter-actions .button, .pagination .button { flex: 1 1 100%; }
    .availability-row, .selected-owner, .waitlist-slot-header, .whatsapp-manual-list form { grid-template-columns: 1fr; }
    .owner-picker-compact .selected-owner { grid-template-columns: minmax(0, 1fr) auto; }
    .waitlist-slot-header, .whatsapp-manual-action { align-items: stretch; flex-direction: column; }
    .groomers-table { border: 0; background: transparent; gap: .75rem; overflow: visible; }
    .groomers-table .data-head { display: none; }
    .groomers-table .groomers-row { grid-template-columns: 1fr; }
    .groomers-table .data-row { min-width: 0; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 26px rgba(0,0,0,.06); }
    .groomers-table .data-row > [data-label] { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1fr); gap: .65rem; align-items: center; overflow: visible; white-space: normal; }
    .groomers-table .data-row > [data-label]::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 900; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; white-space: normal; }
    .groomers-table .row-actions { justify-content: stretch; }
    .groomers-table .row-actions .button, .groomers-table .row-actions form { flex: 1 1 100%; }
}

/* Shared accessible control states and operational layouts. */
[data-theme="dark"] .button:not(.ghost):not(.danger):not(.success),
[data-theme="dark"] .fc .fc-button-primary, [data-theme="dark"] .status-tabs a.is-active { --button-text: #30201a; color: #30201a; }
[data-theme="dark"] .row-action-popover .button.danger, [data-theme="dark"] .pending-no-show-button { color: #ffb4ab; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.text-link { border: 0; background: none; color: var(--primary-strong); text-decoration: underline; cursor: pointer; padding: .3rem 0; font: inherit; }
.search-status:empty { display: none; }
[role="option"][aria-selected="true"] { outline: 2px solid var(--accent); background: var(--surface-2); }
.pet-summary-inline-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pet-summary-inline-facts dt, .pet-summary-inline-facts dd { white-space: normal; overflow: visible; text-overflow: clip; }
.pet-behavior-icon { width: auto; gap: .3rem; padding: .25rem .45rem; font-size: .8rem; }
.pet-behavior-icon svg { width: 1rem; }
.pet-note-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; margin-bottom: 1rem; }
.pet-note-summary p { margin: .3rem 0 0; white-space: pre-wrap; }
.critical-note { padding: .8rem; border-left: 3px solid #bd7625; background: var(--surface-2); border-radius: 8px; }
.modal-actions { gap: .65rem; }
.modal-actions .button { min-height: 44px; }
.modal-card h2 { scroll-margin-top: 1rem; }
.record-open { border: 0; padding: .25rem 0; background: transparent; color: inherit; font: inherit; font-weight: 750; text-align: left; cursor: pointer; }
.pending-closures-panel > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 750; }
.pending-closures-panel[open] > summary { margin-bottom: 1rem; }
.calendar-filters { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1rem; align-items: end; }
.calendar-filters label { flex: 1 1 150px; max-width: 260px; }
.calendar-loading { min-height: 24px; }
.calendar-loading:empty { display: none; }
.appointment-modal-card.is-closing .appointment-client-section,
.appointment-modal-card.is-closing .appointment-details-section,
.appointment-modal-card.is-closing [data-appointment-delete-button],
.appointment-modal-card.is-closing [data-new-same-time],
.appointment-modal-card.is-closing [data-appointment-move-waitlist-button] { display: none !important; }
.appointment-modal-card.is-closing .appointment-completion-section { margin-top: 0; }
.compact-disclosure > summary { cursor: pointer; font-weight: 700; padding: .65rem 0; }
.compact-disclosure[open] > summary { margin-bottom: .6rem; }
.form-stack > .compact-disclosure { width: 100%; }
.dashboard-next { margin-bottom: 1rem; display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.dashboard-next strong { display: block; font-size: 1.1rem; }
.mobile-nav { display: none; }
.report-meter { grid-column: 1 / -1; width: 100%; height: 1rem; accent-color: var(--accent); }
.reports-stats small { display: block; color: var(--muted); line-height: 1.5; }
.usage-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.usage-grid meter { width: 100%; height: 1.2rem; }
.change-review { max-width: 640px; }
.change-review ul { max-height: 45vh; overflow: auto; padding-left: 1.2rem; }
button:disabled { cursor: not-allowed; opacity: .6; }
@media (min-width: 901px) and (max-width: 1180px) {
 .pets-row { grid-template-columns: minmax(220px,1.3fr) minmax(120px,.7fr) minmax(150px,1fr) 48px; }
 .owners-row { grid-template-columns: minmax(200px,1fr) minmax(130px,.6fr) minmax(170px,1fr) 48px; }
 .services-row { grid-template-columns: minmax(160px,1fr) 85px 100px minmax(160px,1fr) 48px; }
 .pets-row, .owners-row, .services-row { border-radius: 0; box-shadow: none; }
 .data-head.pets-row, .data-head.owners-row, .data-head.services-row { display: grid; }
 .pets-row > [data-label]::before, .owners-row > [data-label]::before, .services-row > [data-label]::before { display: none; }
}
@media (max-width: 560px) {
 .modal { padding: 0; }
 .modal-card { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; border-radius: 0; }
 .modal-actions .button { flex: 1 1 auto; min-width: 110px; }
 .app-main { padding-bottom: 5.5rem; }
 .mobile-nav { display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--line); justify-content: space-around; padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom)); }
 .mobile-nav a { padding: .5rem; min-height: 44px; display: flex; align-items: center; gap: .35rem; font-size: .85rem; }
 .mobile-nav svg { width: 1.1rem; height: 1.1rem; }
 .usage-grid, .pet-note-summary { grid-template-columns: 1fr; }
 .dashboard-next { align-items: stretch; flex-direction: column; }
 .calendar-filters label { max-width: none; }
}

[data-edit-booking] { display: none; }
.is-closing [data-edit-booking] { display: block; }

/* Shared record details, review dialogs and form actions. */
[data-theme="dark"] .status-pill { background: var(--surface-2); border-color: var(--line); }
.closing-summary { display: none; }
.is-closing .closing-summary { display: block; font-size: 1.1rem; font-weight: 750; }
.critical-note, .pet-care-disclosure { grid-column: 1 / -1; }
.pet-form-guidance { display: block; }
.pet-form-guidance > summary { cursor: pointer; font-weight: 700; }
.pet-form-guidance .pet-form-guidance-icon { display: none; }
.pet-form-guidance[open] > div { margin-top: .5rem; }
.record-notes-summary p, .critical-note p { margin: .3rem 0 .7rem; overflow-wrap: anywhere; }
.usage-grid > div { display: grid; gap: .4rem; }
.change-review { width: min(640px, calc(100vw - 2rem)); padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.change-review::backdrop { background: rgb(0 0 0 / .55); }
.change-review li { margin-bottom: .75rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.import-steps { padding: 1rem; border-left: 3px solid var(--primary); background: var(--surface); font-weight: 700; }
.import-reviewed { padding: 1rem; border: 1px solid var(--line); border-radius: 8px; }
.shop-hours-grid > [data-hours-copy-status] { grid-column: 1 / -1; }
[data-hours-copy-status]:empty { display: none; }
@media (max-width: 560px) {
 .modal .modal-card { width: 100%; max-height: 100dvh; }
 .modal-card > .modal-actions { position: sticky; bottom: -1rem; z-index: 3; margin: 0 -1rem -1rem; padding: 1rem; background: var(--surface); border-top: 1px solid var(--line); }
 .modal .unsaved-changes-card { height: auto; max-height: 90dvh; align-self: center; margin: 1rem; width: calc(100% - 2rem); border-radius: 12px; }
 .row-actions .button.has-icon, .row-action-trigger { min-width: 44px; min-height: 44px; }
 .fc .fc-header-toolbar { flex-wrap: wrap; gap: .65rem; }
 .fc .fc-toolbar-title { font-size: 1.1rem; }
 .fc .fc-button { min-height: 40px; }
 .pet-summary-inline-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Public previews share the product's native components and translated copy. */
.product-preview { background: var(--bg); color: var(--text); text-align: left; }
.product-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.product-preview-header > strong { font-size: 1.15rem; }
.product-preview-body { display: grid; gap: 1rem; padding: 1.5rem; }
.preview-agenda { display: grid; gap: .75rem; }
.preview-appointment { display: grid; grid-template-columns: 65px auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); background: var(--surface); border-radius: 10px; }
.preview-appointment time { font-weight: 750; }
.product-preview .avatar img, .product-preview .pet-profile-summary-photo img { width: 100%; height: 100%; object-fit: contain; }
.app-screenshot-frame .preview-caption { position: static; max-width: none; margin: 0; border-radius: 0; background: var(--surface); }
@media (max-width: 560px) {
 .product-preview-header { align-items: flex-start; flex-direction: column; padding: 1rem; }
 .product-preview-body { padding: 1rem; }
 .preview-appointment { grid-template-columns: 48px auto minmax(0, 1fr); gap: .6rem; padding: .75rem; }
 .preview-appointment > .status-pill { grid-column: 3; min-height: 30px; font-size: .75rem; }
 .product-preview .section-toolbar { flex-wrap: wrap; }
}

@media (max-width: 900px) {
 .data-table[role="table"] > .data-head.pets-row, .data-table[role="table"] > .data-head.owners-row, .data-table[role="table"] > .data-head.services-row { display: grid; position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 560px) {
 .groomers-table[role="table"] > .data-head { display: grid; position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
}

/* Starter launch offer; shared by marketing and account pages. */
.launch-offer { margin: .8rem 0; padding: .85rem 1rem; border: 1px solid #e9b2a8; border-radius: 12px; background: #fff3ef; color: #713c33; font-size: .875rem; line-height: 1.5; }
.launch-offer-badge { display: block; color: #a64232; font-size: .85rem; }
.launch-offer p { margin: .4rem 0 0; }
.launch-conditions { font-size: .82rem; line-height: 1.6; }
