/* Haven Claws theme. Tokens and components follow docs/ui-handoff/haven-claws-ui-handoff.md.
   Fonts: Great Vibes for page and dialog titles, Cormorant Garamond for section titles, Jost for everything else.
   Every number (dates, times, prices, code digits) is Jost with lining numbers, never Cormorant. */
:root {
    --blush: #fbe3ea;
    --petal: #fdf2f5;
    --pearl: #fffafb;
    --logo-pink: #e7a6b9;
    --rose: #b05a74;
    --deep-rose: #8f435b;
    --gold: #d8b56a;
    --champagne: #f7ebc8;
    --champagne-ink: #6f5320;
    --antique-gold: #866528;
    --cherry: #b4324f;
    --mist: #e9e4e6;
    --mist-ink: #5a4e53;
    --ink: #2b2226;
    --muted: #6d5a61;
    --white: #ffffff;
    --edge: #f1b9c8;
    --edge-soft: #f6cdd9;
    --field-edge: #e3b3c1;
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238f435b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --danger-edge: #e9b4bf;
    --halo: rgba(231, 166, 185, 0.38);
    --sage: #3d6b4f;
    --success-bg: #e4f0e7;
    --success-ink: #2f5a40;
    --success-edge: #b9d6c2;
    --radius: 28px;
    --card-radius: 28px;
    --card-stitch-offset: 10px;
    --card-stitch-color: var(--edge);
    --card-stitch-radius: calc(var(--card-radius) - 7px);
    --card-bg: var(--pearl);
    --card-border: var(--edge-soft);
    --card-shadow: 0 16px 38px rgba(185, 97, 123, 0.1);
    --card-pad: clamp(20px, 4vw, 28px);
    --focus-ring: 0 0 0 4px rgba(231, 166, 185, 0.38);
    --btn-shadow: 0 8px 18px rgba(176, 90, 116, 0.28);
    --radius-tile: 22px;
    --radius-field: 16px;
    --radius-pill: 999px;
    --disabled-bg: #f3dce4;
    --disabled-ink: #5e4a51;
    --placeholder: #8a777e;
    --champagne-edge: #e0c783;
    --champagne-deep: #5c4413;
    --neutral-bg: #f2ecee;
    --neutral-ink: #4f4247;
    --neutral-edge: #e1d5da;
    --cherry-bg: #fce8ec;
    --cherry-ink: #8e2239;
    --cherry-edge: #e8a3b3;

    /* Glass tokens */
    --glass-bg: rgba(255, 250, 251, 0.5);
    --glass-header-bg: rgba(255, 250, 251, 0.72);
    --glass-border: rgba(255, 255, 255, 0.75);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(176, 90, 116, 0.08), 0 6px 16px rgba(185, 97, 123, 0.16);

    --page-bg: linear-gradient(180deg, #fbe3ea 0%, #fdf2f5 40%, #ffffff 100%);
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Jost', system-ui, sans-serif;
    /* Fluid Spacing Scale (scales smoothly down to 320px screens) */
    --space-1: clamp(2px, 0.8vw, 4px);
    --space-2: clamp(4px, 1.5vw, 8px);
    --space-3: clamp(8px, 2.5vw, 12px);
    --space-4: clamp(12px, 3.5vw, 16px);
    --space-5: clamp(16px, 4.5vw, 24px);
    --space-6: clamp(20px, 6vw, 32px);
    --space-7: clamp(28px, 8vw, 48px);
    --space-8: clamp(36px, 10vw, 64px);

    /* Fluid Type Scale Tokens */
    --font-size-title-script: clamp(2.2rem, 6vw, 3.8rem);
    --font-size-title-serif: clamp(1.4rem, 4vw, 2.2rem);
    --font-size-chip: clamp(11px, 2.5vw, 12px);
    --font-size-label: clamp(12px, 2.8vw, 13px);
    --font-size-muted: clamp(13px, 3vw, 14px);
    --font-size-body: clamp(14px, 3.2vw, 15px);
    --font-size-body-phone: 15px;
    --font-size-input: 16px;
    --font-size-button: clamp(13.5px, 3vw, 15px);
}

[data-theme="dark"] {
    --page-bg: linear-gradient(180deg, #2a1a21 0%, #1e1519 40%, #151012 100%);
    --pearl: #241b1f;
    --petal: #2e2328;
    --blush: #35252c;
    --card-bg: #241b1f;
    --card-border: #5a3a46;
    --card-stitch-color: #5a3a46;
    --card-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
    --focus-ring: 0 0 0 4px rgba(231, 166, 185, 0.45);
    --btn-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    --edge: #5a3a46;
    --edge-soft: #4a2e38;
    --logo-pink: #5a3a46;
    --rose: #e39ab0;
    --deep-rose: #f2b8c9;
    --gold: #d8b56a;
    --antique-gold: #d8b56a;
    --cherry: #f07a93;
    --mist: #3a2e34;
    --mist-ink: #bfa7b0;
    --ink: #f6e9ee;
    --muted: #bfa7b0;
    --white: #1a1316;
    --glass-bg: rgba(36, 27, 31, 0.65);
    --glass-header-bg: rgba(36, 27, 31, 0.85);
    --glass-border: rgba(90, 58, 70, 0.65);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.35);
    --success-bg: #1c2b1e;
    --success-ink: #a3d9a5;
    --success-edge: #2e4731;
    --field-edge: #5a3a46;
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f2b8c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --danger-edge: #7a283c;
    --halo: rgba(227, 154, 176, 0.28);
    --champagne: #3d3120;
    --champagne-ink: #f0d59e;
}

/* Dark Mode Overrides for Hardcoded Light Values */
[data-theme="dark"] .book-card,
[data-theme="dark"] .agenda-day-card,
[data-theme="dark"] .appointments-view-card,
[data-theme="dark"] .client-card,
[data-theme="dark"] .service-admin-card,
[data-theme="dark"] .dialog-card,
[data-theme="dark"] .confirm-dialog {
    background: var(--card-bg) !important;
    border-color: var(--card-border) !important;
}

[data-theme="dark"] .booking-sticky-summary-bar {
    background: rgba(36, 27, 31, 0.88) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border-top-color: var(--card-border) !important;
}

[data-theme="dark"] .date-cell {
    background: var(--pearl) !important;
    border-color: var(--edge-soft) !important;
    color: var(--ink) !important;
}

[data-theme="dark"] .date-cell.is-open {
    border-color: var(--rose) !important;
}

[data-theme="dark"] .date-cell.is-selected {
    background: var(--rose) !important;
    color: var(--white) !important;
}

[data-theme="dark"] .date-cell.is-closed {
    background: var(--petal) !important;
    opacity: 0.45;
}

[data-theme="dark"] .time-chip {
    background: var(--pearl) !important;
    border-color: var(--edge) !important;
    color: var(--deep-rose) !important;
}

[data-theme="dark"] .time-chip.is-selected {
    background: var(--rose) !important;
    color: var(--white) !important;
}

[data-theme="dark"] .step-circle {
    background: var(--pearl) !important;
    border-color: var(--edge) !important;
    color: var(--muted) !important;
}

[data-theme="dark"] .step-circle.active {
    background: var(--rose) !important;
    border-color: var(--rose) !important;
    color: var(--white) !important;
}

[data-theme="dark"] .step-circle.done {
    background: var(--deep-rose) !important;
    border-color: var(--deep-rose) !important;
    color: var(--white) !important;
}

[data-theme="dark"] .site-header {
    background: var(--glass-header-bg) !important;
    border-bottom-color: var(--glass-border) !important;
}

[data-theme="dark"] .site-nav {
    background: var(--card-bg) !important;
    border-color: var(--card-border) !important;
}

[data-theme="dark"] .site-footer {
    border-top-color: var(--card-border) !important;
    color: var(--muted) !important;
}

[data-theme="dark"] .site-footer a {
    color: var(--deep-rose) !important;
}

[data-theme="dark"] .form-error {
    background: #351a21 !important;
    border-color: var(--danger-edge) !important;
    color: var(--cherry) !important;
}

[data-theme="dark"] .opt {
    background: var(--pearl) !important;
    border-color: var(--edge) !important;
    color: var(--deep-rose) !important;
}

[data-theme="dark"] .opt.on {
    background: var(--rose) !important;
    color: var(--white) !important;
}

[data-theme="dark"] .seg {
    background: var(--pearl) !important;
    border-color: var(--edge) !important;
    color: var(--ink) !important;
}

[data-theme="dark"] .seg.on {
    border-color: var(--rose) !important;
    background: var(--petal) !important;
}

[data-theme="dark"] .tm {
    background: var(--pearl) !important;
    border-color: var(--edge) !important;
    color: var(--deep-rose) !important;
}

* { box-sizing: border-box; font-variant-numeric: lining-nums; }

.num {
    font-family: var(--font-sans);
    font-weight: 400;
    font-variant-numeric: lining-nums;
}

h1 .num, h2 .num, h3 .num,
.card h1 .num, .card h2 .num, .card h3 .num {
    font-size: 0.9em;
    font-family: var(--font-sans);
    font-weight: 400;
    font-variant-numeric: lining-nums;
}

html, body {
    margin: 0;
    background: var(--page-bg);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--font-size-body, 15px);
    line-height: 1.5;
}

/* ---- Shared layout primitives (FE-3 A1) ---- */
:root {
    --page-max: 1200px;
    --stack-gap: 16px;
    --cluster-gap: 12px;
    --grid-min: 280px;
}

.page {
    width: min(100% - 32px, var(--page-max));
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--stack-gap, 16px);
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--cluster-gap, 12px);
}

.cluster.cluster-center {
    justify-content: center;
}

.cluster.cluster-start {
    justify-content: flex-start;
}

.cluster.cluster-between {
    justify-content: space-between;
}

.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--min, var(--grid-min, 280px)), 1fr));
    gap: var(--grid-gap, 16px);
}

.fluid-script-title {
    font-family: var(--font-script);
    font-size: clamp(34px, 4vw + 16px, 56px);
    line-height: 1.1;
    color: var(--rose);
}

.fluid-section-title {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2vw + 14px, 36px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--deep-rose);
}

@media (max-width: 400px) {
    html, body {
        font-size: var(--font-size-body-phone, 16px);
    }
}

/* Titles. h1 is the page title in script; h2 is a section title in serif; h3 is a dialog or card heading. */
h1, h2, h3 { margin: 0 0 0.5rem; }
h1 { font-family: var(--font-script); font-weight: 400; font-size: 3rem; line-height: 1.2; color: var(--rose); scroll-margin-top: calc(var(--header-height, 68px) + 16px); }
@media (min-width: 601px) {
    h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
}
h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.35rem, 4vw, 1.8rem); line-height: 1.15; color: var(--deep-rose); }
h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.15rem, 3.5vw, 1.5rem); color: var(--deep-rose); }
h1:focus,
h1:focus-visible,
h1[tabindex]:focus,
h1[tabindex]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

a { color: var(--deep-rose); }

/* ---- Header and footer ---- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    flex-wrap: nowrap;
    padding: 14px 32px;
    border-bottom: 1px solid var(--edge-soft);
    background: var(--glass-header-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; flex-shrink: 0; box-sizing: border-box; }
.brand-badge { display: contents; }
.brand-by-phone { display: none; }
.brand-by-desktop { display: inline-block; }
.brand-name { font-family: var(--font-script); font-size: 1.9rem; color: var(--rose); line-height: 1; }
.brand-by { font-family: var(--font-sans); font-weight: 500; font-size: var(--font-size-chip, 12px); color: var(--antique-gold); letter-spacing: 0.16em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; font-size: 0.95rem; }
.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    color: var(--deep-rose);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.site-nav a:hover { border-bottom-color: var(--edge); }
.site-nav a.active { border-bottom-color: var(--gold); }
.nav-cta { border: 1px solid var(--logo-pink) !important; border-radius: 999px; padding: 0 20px; background: var(--pearl); }
.link-button {
    min-height: 44px;
    background: none;
    border: none;
    padding: 0;
    color: var(--muted);
    font: inherit;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
}
.link-button:hover { color: var(--deep-rose); text-decoration: underline; }

/* ---- Header Right Actions & Pill ---- */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-book-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--deep-rose);
    color: #fff !important;
    border-radius: 999px;
    padding: 0 22px;
    min-height: 44px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    border: none !important;
    box-shadow: 0 4px 14px rgba(176, 90, 116, 0.28);
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.nav-book-pill:hover {
    background: var(--rose);
    transform: translateY(-1px);
    border-bottom: none !important;
    color: #fff !important;
}
.mobile-book-btn {
    display: none !important;
}
.mobile-only {
    display: none !important;
}
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    border: 1px solid var(--logo-pink);
    background: var(--card-bg);
    color: var(--deep-rose);
    cursor: pointer;
    padding: 0;
}

/* ---- Avatar button & dropdown menu in header ---- */
.avatar-menu-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--logo-pink);
    color: var(--deep-rose);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(185, 97, 123, 0.12);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.avatar-btn:hover,
.avatar-btn:focus-visible {
    border-color: var(--deep-rose);
    transform: scale(1.05);
    outline: none;
}
.avatar-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--card-bg);
    border: 1px solid var(--edge);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(185, 97, 123, 0.18);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.avatar-dropdown-user {
    border-bottom: 1px solid var(--edge-soft);
    padding-bottom: 8px;
    margin-bottom: 2px;
}
.avatar-dropdown-name {
    font-weight: 600;
    color: var(--ink);
    font-size: var(--font-size-body, 15px);
}
.avatar-dropdown-email {
    font-size: var(--font-size-label, 13px);
    color: var(--muted);
    word-break: break-all;
}

/* ---- Password field with eye toggle ---- */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.password-input-wrapper .input {
    width: 100%;
    padding-right: 52px;
}
.password-toggle-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    border-radius: var(--radius-sm);
    transition: color 0.15s ease;
}
.password-toggle-btn:hover {
    color: var(--deep-rose);
}
.password-toggle-btn:focus-visible {
    outline: 2px solid var(--deep-rose);
    outline-offset: -2px;
}
.password-paste-hint {
    margin-top: 6px;
    font-size: var(--font-size-label, 13px);
    color: var(--deep-rose);
    font-weight: 500;
}

/* ---- Password Checklist ---- */
.password-checklist {
    list-style: none;
    margin: 8px 0 16px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px 16px;
    font-size: var(--font-size-label, 13px);
}
.password-checklist li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    transition: color 0.2s ease;
}
.password-checklist li.met {
    color: #2b7a4b;
    font-weight: 500;
}
.password-checklist li .check-icon {
    font-size: 14px;
    font-weight: bold;
    width: 16px;
    text-align: center;
}
.password-checklist li.met .check-icon {
    color: #2b7a4b;
}

/* ---- Divider with text ---- */
.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0 16px;
    color: var(--muted);
    font-size: var(--font-size-label, 13px);
    font-weight: 500;
}
.divider-text::before,
.divider-text::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--edge-soft);
}
.divider-text span {
    padding: 0 14px;
}

.page { max-width: 720px; margin: 0 auto; padding: 44px 16px 56px; }
.page:has(.admin-wide) { max-width: 1100px; padding-left: 24px; padding-right: 24px; }

.site-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 24px 16px 36px;
    color: var(--muted);
    font-size: 0.85rem;
}
.site-footer a { color: var(--muted); }
.foot-script { font-family: var(--font-script); font-size: 22px; color: var(--rose); }

.cap { font-size: var(--font-size-chip, 12px); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--deep-rose); }

/* ---- Cards ---- one plain border; .stitch-card adds the dashed inner stitch for the hero card */
.card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 28px 30px;
    margin-bottom: 18px;
    box-shadow: var(--card-shadow);
}
/* The dashed stitch is only for the hero card on a page (StitchCard, booking summary) and only from 601 px up. */
.stitch-card::after {
    content: "";
    position: absolute;
    inset: var(--card-stitch-offset);
    border: 1px dashed var(--card-stitch-color);
    border-radius: var(--card-stitch-radius);
    pointer-events: none;
}
.card h2 { color: var(--deep-rose); }
@media (max-width: 600px) {
    :root { --card-pad: 16px; }
    .stitch-card::after,
    .book-summary-card::after { display: none; }
}

.hero { text-align: center; padding: 16px 0 24px; }
.hero h1 { font-size: 4.2rem; }
.lead { font-size: 1.05rem; }
.inspo-reminder {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--antique-gold);
    font-size: 0.9rem;
}

.plain-list { margin: 0; padding-left: 20px; }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--edge);
}
@media (min-width: 601px) {
    .price-list li {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
    }
}
.price-list li:last-child { border-bottom: none; }
.price-list li > div { display: flex; flex-direction: column; }
.tier-name { font-weight: 500; }
.price { white-space: nowrap; color: var(--antique-gold); font-weight: 500; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.loading-text { text-align: center; color: var(--muted); }

/* ---- Loading screen (Loading.html) ---- */
.app-loading {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(180deg, #fbe3ea 0%, #fdf2f5 55%, #ffffff 100%);
}
.loading-badge {
    display: inline-block;
    box-sizing: border-box;
    width: 150px;
    height: 150px;
    padding: 7px;
    border-radius: 50%;
    background: #fffafb;
    border: 2px solid #d8b56a;
    box-shadow: 0 0 0 10px #fbe3ea, 0 0 0 11px #f1b9c8, 0 20px 40px rgba(185, 97, 123, 0.2);
}
.loading-badge img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.loading-title { margin-top: 14px; text-align: center; }
.loading-script { font-family: 'Great Vibes', cursive; font-size: 56px; line-height: 1; color: #b05a74; }
.loading-by { margin-top: 6px; font-family: 'Jost', system-ui, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #a8823a; }
.loading-dots { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.loading-dots span { width: 10px; height: 10px; border-radius: 50%; background: #e7a6b9; display: inline-block; animation: bob 1.2s ease-in-out infinite; }
.loading-dots .b2 { background: #d8b56a; animation-delay: 0.15s; }
.loading-dots .b3 { animation-delay: 0.3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .loading-dots span { animation: none; } }

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--blush);
    border-top: 1px solid var(--logo-pink);
    z-index: 1000;
}
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

/* ---- Forms ---- */
.form-card {
    width: 100%;
    max-width: 540px;
    margin: 0 auto var(--space-5, 24px);
    padding: 28px 22px 26px;
    box-sizing: border-box;
}
.form-card h1 {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 6px;
}
.form-card > .muted:first-of-type { text-align: center; }

@media (min-width: 601px) {
    .form-card {
        padding: clamp(24px, 5vw, 36px) clamp(18px, 4.5vw, 36px) clamp(24px, 5vw, 32px);
    }
    .form-card h1 {
        font-size: clamp(2.2rem, 6.5vw, 3.2rem);
    }
}

/* ---- Field Labels and Groups ---- */
.lbl,
.field > span:first-child {
    display: block;
    font-family: var(--font-sans, 'Jost', sans-serif);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--deep-rose);
    margin-bottom: 8px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--deep-rose);
}

/* ---- Standard Text Inputs (.input & .field inputs) ---- */
.input,
.field input,
.field textarea,
.field select,
.slot-time {
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--field-edge);
    border-radius: var(--radius-field);
    background: var(--white, #fff);
    color: var(--ink, #2b2226);
    font-family: var(--font-sans, 'Jost', sans-serif);
    font-size: var(--font-size-input, 16px);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.input::placeholder,
.field input::placeholder,
.field textarea::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--placeholder);
    opacity: 1;
    font-size: 16px;
    letter-spacing: normal;
    text-transform: none;
    font-family: var(--font-sans, 'Jost', sans-serif);
}

/* Textareas: several lines tall, text starts at the top-left like the inputs (A0.2, A0.8). */
textarea.input,
.field textarea {
    height: auto;
    min-height: 88px;
    padding: 14px 18px;
    line-height: 1.45;
    resize: vertical;
}

/* Every dropdown shows a chevron (A0.8). appearance:none above hides the browser's own arrow. */
select.input,
.field select {
    padding-right: 46px;
    background-image: var(--select-chevron);
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px 18px;
    cursor: pointer;
}

.input:focus,
.input:focus-visible,
.field input:focus,
.field input:focus-visible,
.field textarea:focus,
.field textarea:focus-visible,
.field select:focus,
.field select:focus-visible,
.slot-time:focus,
.slot-time:focus-visible {
    outline: none !important;
    border-color: var(--rose) !important;
    box-shadow: 0 0 0 5px var(--halo) !important;
}
.field small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 8px; font-size: 0.9rem; }
.checkbox input { margin-top: 4px; accent-color: var(--rose); }

/* ---- Form Validation & Shared FormField Wrapper ---- */
.validation-message { color: var(--cherry); font-size: var(--font-size-muted, 14px); font-weight: 400; letter-spacing: 0; text-transform: none; margin-top: 4px; }

.invalid,
.modified.invalid,
input.invalid,
input.modified.invalid,
textarea.invalid,
textarea.modified.invalid,
select.invalid,
select.modified.invalid,
.field-invalid .input,
.field-invalid input,
.field-invalid textarea,
.field-invalid select {
    border-color: var(--cherry) !important;
    box-shadow: 0 0 0 3px rgba(180, 50, 79, 0.2) !important;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--deep-rose);
    margin-bottom: var(--space-2, 8px);
}

.required-star {
    color: var(--cherry);
    font-weight: bold;
}

/* NumberField Box with Affixes (shows ₱ or "min" outside the text) */
.number-field-box {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 100%;
}
.number-affix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: var(--font-size-body, 15px);
    font-weight: 500;
    color: var(--antique-gold);
    background: var(--petal);
    border: 1px solid var(--field-edge);
    height: 52px;
    user-select: none;
    box-sizing: border-box;
}
.number-prefix {
    border-right: none;
    border-radius: 18px 0 0 18px;
}
.number-suffix {
    border-left: none;
    border-radius: 0 18px 18px 0;
}
.number-field-box.with-prefix .number-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.number-field-box.with-suffix .number-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Centered Containers for Low-Content & Auth Pages */
.centered-container,
.centered-page {
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
}

.services-page.centered-page,
.services-page.security-page,
.services-page.payments-page {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Home Page Tiles & Open Dates */
.home-dates-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
}
.home-all-dates-btn {
    margin-top: var(--space-4, 16px);
    height: 48px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 0 24px;
}
.home-info-tile {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
    width: 100%;
    box-sizing: border-box;
    padding: 24px;
}
.home-info-tile .bl {
    width: 100%;
    padding-right: 0;
    margin-right: 0;
}
.home-info-tile .bl span {
    font-size: var(--font-size-body, 15px);
    line-height: 1.5;
    color: var(--ink);
}

.form-error { color: var(--cherry); background: var(--cherry-bg); border: 1px solid var(--danger-edge); border-radius: var(--radius-field); padding: 10px 14px; }
.success { color: var(--success-ink); font-weight: 500; }
.notice h1 { font-size: 3rem; }

/* ---- Buttons: primary 52px, secondary 48px, text and icon 44px ---- */
.button, .btn, .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    padding: 0 28px;
    border: none;
    border-radius: 999px;
    background: var(--rose);
    color: var(--white);
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.28), 0 8px 18px rgba(176, 90, 116, 0.28);
    cursor: pointer;
    box-sizing: border-box;
}
.button:hover { background: var(--deep-rose); }
.button:disabled,
.btn:disabled,
.btn-primary:disabled,
.btn[aria-disabled="true"] { background: var(--disabled-bg); color: var(--disabled-ink); box-shadow: none; opacity: 1; cursor: not-allowed; }
.button-secondary, .btn-secondary {
    min-height: 48px;
    background: var(--white);
    color: var(--deep-rose);
    border: 1px solid var(--edge);
    box-shadow: none;
}
.button-secondary:hover { background: var(--blush); }
.button-danger, .btn-danger {
    min-height: 48px;
    background: var(--cherry);
    color: var(--white);
    border: 0;
    box-shadow: none;
}
.button-danger:hover { background: var(--cherry-bg); }

/* Auth & Form Card Buttons (perfectly centered text in pill, slightly smaller) */
.auth-page .button,
.auth-page .button-secondary,
.form-card .button,
.form-card .button-secondary {
    min-height: 44px;
    height: 44px;
    padding: 0 24px;
    font-size: var(--font-size-button, 14.5px);
    font-weight: 500;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

/* ---- Apple-style Glass Icon Button ---- */
.btn-glass-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--glass-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--deep-rose);
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    box-sizing: border-box;
}
.btn-glass-icon:hover {
    color: var(--rose);
}
.btn-glass-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--glass-shadow);
    color: var(--deep-rose);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-bounce), color 0.15s ease;
}
.btn-glass:hover {
    color: var(--rose);
}
.btn-glass:active {
    transform: scale(0.97);
}

/* ---- Apple-style Glass Segmented Toggle ---- */
.toggle-segmented {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--glass-shadow);
    gap: 4px;
    width: max-content;
    box-sizing: border-box;
}
.toggle-segmented-item {
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--deep-rose);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toggle-segmented-item.active {
    background: var(--rose);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(176, 90, 116, 0.24);
}

/* ---- Time Slot Pill ---- */
.time-pill {
    height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--logo-pink);
    background: var(--card-bg);
    color: var(--deep-rose);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: lining-nums;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.time-pill:hover:not(:disabled) {
    border-color: var(--rose);
}
.time-pill.active,
.time-pill[aria-pressed="true"] {
    background: var(--rose);
    border-color: var(--rose);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(176, 90, 116, 0.28);
}
.time-pill:disabled,
.time-pill.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-style: dashed;
}

/* ---- iOS-style Toggle Switch ---- */
/* Class is .switch (not .toggle-switch). The older .tg class (button-style toggle) is separate and untouched. */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--mist);
    border-radius: 999px;
    transition: 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.switch .slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    transition: 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.switch input:checked + .slider {
    background-color: var(--rose);
}
.switch input:checked + .slider::before {
    transform: translateX(22px);
}

/* ---- Bottom Sheet ---- */
.bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(43, 34, 38, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    animation: sheetFadeIn 220ms ease;
}
.bottom-sheet-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(90vh, 90dvh);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 1001;
    background: var(--card-bg);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    border-top: 1px solid var(--card-border);
    box-shadow: 0 -16px 40px rgba(43, 34, 38, 0.2);
    padding: 14px clamp(16px, 4vw, 24px) max(32px, env(safe-area-inset-bottom, 24px));
    animation: sheetSlideUp 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
}
.bottom-sheet-panel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.bottom-sheet-handle-wrap {
    display: flex;
    justify-content: center;
    padding: 6px 0 14px;
    cursor: pointer;
}
.bottom-sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: var(--logo-pink);
    opacity: 0.7;
}
.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.bottom-sheet-title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 24px;
    color: var(--deep-rose);
}
@keyframes sheetFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (min-width: 601px) {
    .bottom-sheet-panel {
        top: 50%;
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        border-radius: var(--radius-card, 24px);
        border: 1px solid var(--card-border);
        box-shadow: 0 24px 60px rgba(43, 34, 38, 0.25);
        max-width: 680px;
        width: min(90vw, 680px);
        max-height: 85vh;
        animation: sheetDialogZoom 200ms cubic-bezier(0.16, 1, 0.3, 1);
    }
    .bottom-sheet-handle-wrap {
        display: none;
    }
}
@keyframes sheetDialogZoom {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ---- Two-factor setup and code entry ---- */
.steps { padding-left: 20px; }
.steps li { margin-bottom: 12px; }
.setup-key { margin: 8px 0; padding: 12px 14px; background: var(--petal); border: 1px dashed var(--gold); border-radius: 18px; }
.setup-key code { font-family: var(--font-sans); font-size: 1.05rem; letter-spacing: 0.05em; word-break: break-all; }
.code-list { columns: 2; list-style: none; padding: 0; margin: 12px 0 16px; }
.code-list li { padding: 4px 0; }
.code-list code { font-family: var(--font-sans); font-weight: 500; letter-spacing: 0.06em; }
/* The code box is one field (it also takes a recovery code), styled as a wide, centred row of digits. */
.code-field input {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    min-height: 64px;
}

/* ---- Sign-in lockup above the card ---- */
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 16px; }
.auth-brand img {
    width: 72px;
    height: 72px;
    padding: 5px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 6px #fbe3ea;
    object-fit: cover;
}
.auth-brand-name { font-family: var(--font-script); font-size: 2.75rem; line-height: 1; color: var(--rose); text-align: center; }
.auth-brand-by { font-weight: 500; font-size: clamp(10.5px, 2.5vw, 12px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--antique-gold); text-align: center; }

@media (min-width: 601px) {
    .auth-brand { margin: 8px 0 22px; }
    .auth-brand img {
        width: clamp(72px, 18vw, 96px);
        height: clamp(72px, 18vw, 96px);
        box-shadow: 0 0 0 7px var(--blush), 0 14px 28px rgba(185, 97, 123, 0.18);
    }
    .auth-brand-name { font-size: clamp(2.3rem, 8vw, 4rem); }
}
.form-card .subtitle { text-align: center; color: var(--muted); margin: -4px 0 18px; }

/* ---- Rules text ---- */
.rules h2 { font-size: 1.6rem; margin-top: 20px; }
.rules ul { padding-left: 20px; }
.rules li { margin-bottom: 6px; }

/* ---- Chips and dots (values from design-reference/Calendar.html and DayCard.html) ---- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-baguio { background: #b05a74; }
.dot-villasis { background: #a8823a; }
.dot-closed { background: #a99da2; }
.dot-flagged { background: #b4324f; }
.dot-other { background: #8f435b; }
.chip-baguio, .chip-open { background: var(--blush); color: var(--deep-rose); border-color: var(--edge); }
.chip-villasis { background: var(--champagne); color: var(--champagne-ink); border-color: var(--champagne-edge); }
.chip-closed { background: #e9e4e6; color: #5a4e53; border-color: #cfc7ca; }
.chip-flagged, .chip-needs-rescheduling { background: #fdf2f5; color: #b4324f; border-color: #e9b4bf; }
.chip-other { background: #fff; color: #8f435b; border-color: #e7b9c6; }
.chip-booked, .chip-confirmed { background: var(--success-bg); color: var(--success-ink); border-color: var(--success-edge); }
.chip-ended-done { background: var(--success-bg); color: var(--success-ink); border-color: var(--success-edge); }
.chip-ended-failed { background: var(--cherry-bg); color: var(--cherry-ink); border-color: var(--cherry-edge); }
.chip-blocked { background: #fffafb; color: #a8823a; border: 1px dashed #d8b56a; max-width: 260px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 26px; }
.chip-removal { background: #e9e4e6; color: #6d5a61; border-color: #cfc7ca; }
.chip-free { background: transparent; color: var(--deep-rose); border: 1px dashed var(--logo-pink); }

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--blush);
    border: 1px solid var(--edge);
    color: var(--deep-rose);
    font-size: var(--font-size-chip, 12px);
    font-weight: 500;
}
.tag-blocked { background: var(--pearl); color: var(--antique-gold); border: 1px dashed var(--gold); }
.tag-booked { background: var(--success-bg); color: var(--success-ink); border-color: var(--success-edge); }
.tag-failed { background: var(--white); color: var(--cherry); border-color: var(--danger-edge); }
.head-secondary { width: auto; margin: 0; min-height: 44px; padding: 0 20px; gap: 8px; font-size: 15px; }
.sparkle {
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c.8 6.5 4.5 10.2 11 11-6.5.8-10.2 4.5-11 11-.8-6.5-4.5-10.2-11-11 6.5-.8 10.2-4.5 11-11z' fill='%23d8b56a'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Small pills that never wrap or grow: two fit on a row at iPad width, and a tile holds two rows (then a "+N" pill). */
.tm { font-size: 12px; line-height: 1.3; font-weight: 500; white-space: nowrap; letter-spacing: -0.02em; color: #8f435b; background: #fffafb; border: 1px solid #f1b9c8; border-radius: 999px; padding: 2px 6px; }

/* ---- The agenda (Agenda.html) ---- */
.chip-t1 { background: #fbe3ea; color: #8f435b; border-color: #f1b9c8; }
.chip-t2 { background: #f7ebc8; color: #6f5320; border-color: #d8b56a; }
.chip-t3 { background: #fffafb; color: #a8823a; border-color: #d8b56a; }
.chip-t4 { background: #fff; color: #8f435b; border-color: #e7b9c6; }
.chip-removal { background: #f1ecee; color: #4a3d43; border: 1px dashed #a99da2; }
.chip-check { background: #f7ebc8; color: #6f5320; border-color: #d8b56a; }
.chip-nodeposit { background: #e9e4e6; color: #5a4e53; border-color: #cfc7ca; }
.pick-input { max-width: 260px; }

@media (max-width: 599px) {
    .pg {
        max-width: 100%;
        padding: 18px 16px 28px;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    .tm { padding: 1px 4px; }
}

/* ---- Day card (DayCard.html) ---- */
.round-button {
    flex: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e7a6b9;
    background: #fffafb;
    color: #8f435b;
    box-shadow: inset 0 0 0 3px #fdf2f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* "Where will you be?": two segmented buttons, a dot and the short name */
.seg-row { display: flex; gap: 14px; }
.seg {
    box-sizing: border-box;
    flex: 1;
    min-height: 56px;
    border-radius: 20px;
    border: 1px solid #e7b9c6;
    background: #fff;
    color: #8f435b;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}
.seg.on { background: #fbe3ea; border: 2px solid #b05a74; box-shadow: 0 0 0 5px rgba(231, 166, 185, 0.38); }

/* Slots: time, status chip, then the actions */
.slot-item { margin-bottom: 10px; }
.slot {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 6px 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #f1d3dc;
}
.slot.blk { background: transparent; border: 1.5px dashed #d8b56a; }
.slot .t { font-size: 20px; font-weight: 500; line-height: 1.2; color: #8f435b; }
.slot.blk .t { color: #a8823a; }
.slot-timebox { position: relative; display: block; width: 120px; margin: 0; letter-spacing: 0; text-transform: none; cursor: pointer; }
.slot-timebox .t { display: block; padding: 8px 0; }
.slot-time-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: 0;
    padding: 0;
}
.slot-time-input:disabled { cursor: default; }
.slot-timebox:focus-within { outline: 2px solid #b05a74; outline-offset: 2px; border-radius: 8px; }
.slot-fill { flex: 1; }
.slot-action {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #e7a6b9;
    border-radius: 999px;
    background: #fffafb;
    color: #8f435b;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 3px #fdf2f5;
    cursor: pointer;
}
.slot-action:disabled { opacity: 0.5; cursor: wait; }
.trash-button, .slot-lock {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trash-button { border: 1px solid #e9b4bf; background: transparent; color: #b4324f; cursor: pointer; }
.trash-button:disabled { opacity: 0.4; cursor: not-allowed; }
.slot-lock { background: #f6f1f2; }
.slot-time {
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid #e7b9c6;
    border-radius: 18px;
    background: #fff;
    font: inherit;
    font-size: 16px;
    color: #2b2226;
}
.slot-time:focus { outline: none; border-color: #b05a74; box-shadow: 0 0 0 5px rgba(231, 166, 185, 0.38); }
.form-warning { color: #6b4200; background: #fff8e8; border: 1px dashed var(--gold); border-radius: 18px; padding: 10px 14px; margin-top: 8px; }
.block-panel { margin-top: 8px; padding: 16px 18px; border-radius: 22px; border: 1px solid #f6cdd9; background: #fdf2f5; }
.block-panel .slot-time { width: 100%; }

/* Footer: Copy and Close on the left, Cancel and Save on the right (buttons 48px high) */

.icon-button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--logo-pink);
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--deep-rose);
    font: inherit;
    cursor: pointer;
}
.copy-month-head .icon-button { box-shadow: inset 0 0 0 3px var(--petal); }
.icon-button:disabled { opacity: 0.4; cursor: not-allowed; }

/* On a phone the card is a sheet that slides up from the bottom. */
@media (max-width: 599px) {
    .seg-row { flex-direction: column; }
}

/* ---- Slot markers: blocked, and a booking that needs rescheduling. A word and a pattern, never colour alone. ---- */
.slot-marker-box { margin: 6px 0 8px 4px; }
.slot-marker {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}
.slot-marker-blocked { background: var(--pearl); color: var(--antique-gold); border: 1.5px dashed var(--gold); }
.slot-marker-reschedule { background: var(--white); color: var(--cherry); border: 1px solid var(--danger-edge); }
.slot-marker-reason { margin: 4px 0 0 6px; color: var(--muted); font-size: 0.9rem; }

/* ---- Confirmation dialogs (close or move a date, copy day) ---- */
.confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(43, 34, 38, 0.45);
}
.confirm-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 34px 38px;
    border-radius: var(--card-radius);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 16px 38px rgba(185, 97, 123, 0.2);
    outline: none;
}
.confirm-dialog h3 { margin: 0 0 14px; font-family: var(--font-script); font-weight: 400; font-size: 2.8rem; line-height: 1.1; color: var(--rose); }
.confirm-locations { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.confirm-summary { margin: 0 0 10px; font-weight: 500; color: var(--deep-rose); }
.confirm-list { margin: 0 0 10px; padding: 0; list-style: none; }
.confirm-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 6px 14px;
    margin-bottom: 8px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid #f1d3dc;
}
.confirm-list li > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
@media (max-width: 599px) {
    .confirm-backdrop { align-items: flex-end; padding: 0; }
    .confirm-dialog { max-width: none; padding: 24px 20px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}

/* ---- Day card: the switch, the Add a time box, the Block a slot box (DayCard.html) ---- */
.slots-hint { font-size: 13px; color: #6d5a61; }
.tg {
    position: relative;
    flex: none;
    width: 52px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #e7a6b9;
    cursor: pointer;
}
.tg::after { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18); }
.tg.off { background: #e9e4e6; }
.tg.off::after { right: auto; left: 3px; }
.tg:disabled { opacity: 0.5; cursor: not-allowed; }
.tg:focus-visible { outline: 2px solid #b05a74; outline-offset: 3px; }

.add-time-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px !important; padding: 0 16px !important; font-size: 13px !important; border-radius: 999px; }
.chip-button {
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #e7b9c6;
    background: #fff;
    color: #8f435b;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}
.chip-button-gold { border: 1px dashed #d8b56a; color: #a8823a; }


/* ---- Confirmation dialog (Confirm.html) ---- */
.confirm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.confirm-icon { width: 44px; height: 44px; border-radius: 50%; background: #fbe3ea; border: 1px solid #f1b9c8; display: flex; align-items: center; justify-content: center; }
.confirm-dialog { max-width: 700px; padding: 36px 40px; }
.confirm-dialog::after { content: ""; position: absolute; inset: 8px; border: 1px dashed #f1b9c8; border-radius: 21px; pointer-events: none; }
.confirm-dialog h3 { font-size: 50px; line-height: 1.05; margin: 4px 0 14px; }
.confirm-body { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: #4a3d43; }
.confirm-flag { color: #b4324f; font-weight: 500; }
.confirm-rows { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.confirm-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: #fff; border: 1px solid #f1d3dc; }
.confirm-row b { font-size: 19px; font-weight: 500; color: #8f435b; }
.confirm-name { font-size: 15px; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 4px; }
.confirm-actions .button, .btn, .btn-primary { width: auto; flex: none; margin: 0; min-height: 48px; padding: 0 28px; }
.confirm-summary { margin: 0 0 12px; font-weight: 500; color: #8f435b; }

/* ---- Copy day dialog (CopyDates.html) ---- */
.copy-dialog { max-width: 820px; max-height: 92vh; overflow-y: auto; }
.copy-dialog h3 { font-size: 52px; margin-bottom: 4px; }
.copy-sub { margin: 0 0 14px; font-size: 15px; color: #6d5a61; }
.copy-source { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.copy-source-note { font-size: 13px; color: #6d5a61; }
.chip-plain { background: #fff; color: #8f435b; border-color: #e7b9c6; }
.copy-month-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.copy-month-head strong { font-size: 22px; font-weight: 500; color: #8f435b; }
.copy-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.copy-weekday { text-align: center; }
.cd {
    box-sizing: border-box;
    height: 60px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font: inherit;
    font-size: 18px;
    font-weight: 500;
    color: #8f435b;
    background: #fffafb;
    border: 1.5px dashed #e7b9c6;
    cursor: pointer;
}
.cd small { font-size: 12px; font-weight: 400; letter-spacing: 0.04em; }
.cd.past { background: #f6f1f2; border: 1px solid #ece4e6; color: #b3a4aa; cursor: default; }
.cd.src { background: #f7ebc8; border: 2px solid #d8b56a; color: #6f5320; cursor: default; }
.cd.on { background: #b05a74; border: 1px solid #b05a74; color: #fff; box-shadow: 0 0 0 4px rgba(231, 166, 185, 0.38); }
.cd.has { background: #fbe3ea; border: 1px solid #f1b9c8; }
.cd.cl { background: #e9e4e6; border: 1px solid #d3cbce; color: #8a7f84; }
.cd:focus-visible { outline: 2px solid #b05a74; outline-offset: 2px; }
.copy-row { align-items: center; justify-content: space-between; }
.copy-row-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.copy-footer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 8px; }
.copy-count { font-size: 15px; font-weight: 500; color: #8f435b; }
.copy-footer-buttons { display: flex; gap: 12px; margin-left: auto; }
.copy-footer-buttons .button, .btn, .btn-primary { width: auto; flex: none; margin: 0; min-height: 48px; padding: 0 28px; }

@media (max-width: 599px) {
    .confirm-dialog { padding: 24px 20px; }
    .confirm-dialog h3, .copy-dialog h3 { font-size: 2.4rem; }
    .confirm-actions .button, .copy-footer-buttons .button, .btn, .btn-primary { flex: 1; }
}

/* ---- Time off (TimeOff.html) and the shared dialog fields ---- */
.confirm-dialog .lbl {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8f435b;
}
.confirm-dialog .input {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid #e7b9c6;
    background: #fff;
    color: #2b2226;
    font: inherit;
    font-size: 16px;
}
.confirm-dialog .input:focus { outline: none; border-color: #b05a74; box-shadow: 0 0 0 5px rgba(231, 166, 185, 0.38); }
.timeoff-dialog { max-width: 760px; padding: 34px 38px; }
.timeoff-dialog h3 { font-size: 52px; margin-bottom: 4px; }
.timeoff-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.timeoff-reason { margin-bottom: 18px; }
.timeoff-box { margin-bottom: 18px; padding: 16px 18px; border-radius: 20px; border: 1px solid #f6cdd9; background: #fdf2f5; font-size: 15px; line-height: 1.55; color: #4a3d43; }
.timeoff-box b { font-weight: 500; color: #8f435b; }
.head-secondary { width: auto; margin: 0; min-height: 44px; padding: 0 22px; font-size: 15px; }

/* ---- Export dialog (Export.html) ---- */
.head-secondary { display: inline-flex; align-items: center; gap: 8px; }

/* ---- Six code boxes (LoginCode.html) ---- */
.code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.code-boxes .box {
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 1 / 1.25;
    max-height: 64px;
    padding: 0;
    border-radius: 16px;
    border: 1px solid #e7b9c6;
    background: #fff;
    color: #8f435b;
    font: inherit;
    font-size: 26px;
    font-weight: 500;
    text-align: center;
    caret-color: #b05a74;
}
.code-boxes .box:focus { outline: none; border: 2px solid #b05a74; box-shadow: 0 0 0 4px rgba(231, 166, 185, 0.38); }
.code-help { text-align: center; }
.recovery-field input { letter-spacing: 0.1em; font-size: 1.2rem; }


/* ---- Services and Prices (Services.html) ---- */
.services-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 32px 20px 56px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.admin-services-page {
    max-width: 1040px;
}
.services-header { display: flex; flex-direction: column; gap: 6px; }
.services-banner { background: var(--champagne); border: 1px solid var(--gold); border-radius: 20px; padding: 14px 18px; font-size: 14px; line-height: 1.5; color: #6f5320; }
.services-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.services-sec-title { font: 600 30px 'Cormorant Garamond', Georgia, serif; color: var(--deep-rose); }
.services-sec-sub { font-size: 14px; color: var(--muted); }

/* Service Tier Items & Responsive Controls */
.service-tiers-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}
.service-tier-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border-soft, #f1d3dc);
    transition: opacity 0.15s ease;
}
.service-tier-item.disabled { opacity: 0.65; }
.service-tier-info b { display: block; font: 600 24px 'Cormorant Garamond', Georgia, serif; color: var(--deep-rose); }
.service-tier-info span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
.service-tier-row-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.service-control-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.service-control-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.service-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.service-price-inputs .to-label {
    color: var(--antique-gold, #a8823a);
    font-size: 14px;
}
.price-input-wrapper {
    width: 130px;
}
.service-dur-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dur-input-wrapper {
    width: 110px;
}
.dur-human {
    font-size: 14px;
    color: #4a3d43;
    font-weight: 500;
    white-space: nowrap;
}
.service-control-cell.toggle-cell {
    align-items: center;
}
.service-control-cell.actions-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.service-control-cell .ib {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--logo-pink, #e7a6b9);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: none;
    color: var(--deep-rose);
    transition: background 0.15s ease;
}
.service-control-cell .ib:hover { background: var(--petal, #fdf2f5); }
.service-control-cell .ib.del { border-color: #e9b4bf; color: var(--cherry, #b4324f); }
.service-control-cell .ib.del:hover { background: #fff5f6; }
.service-control-cell .ib svg { width: 20px; height: 20px; }

/* Deposit section */
.deposit-card-section .deposit-card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 14px;
}
.deposit-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.deposit-help-text {
    flex: 1;
    min-width: 240px;
    font-size: 14px;
    color: #4a3d43;
    line-height: 1.5;
}

.pr { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 20px; background: #fff; border: 1px solid #f1d3dc; flex-wrap: wrap; }
.pr.disabled { opacity: 0.65; }
.pr .nm { flex: 1; min-width: 230px; }
.pr .nm b { display: block; font: 600 24px 'Cormorant Garamond', Georgia, serif; color: var(--deep-rose); }
.pr .nm span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }
.pr .dur-input { height: 52px; border-radius: 18px; border: 1px solid var(--border-soft, #e7b9c6); background: #fff; padding: 0 12px; font: 400 15px 'Jost', sans-serif; color: #4a3d43; width: 110px; box-sizing: border-box; text-align: center; }
.pr .rng { display: flex; align-items: center; gap: 8px; }
.pr .rng .to-label { color: var(--antique-gold); font-size: 14px; }
.pr .money-box { display: flex; align-items: center; height: 52px; border-radius: 18px; border: 1px solid var(--border-soft, #e7b9c6); background: #fff; padding: 0 12px; gap: 4px; box-sizing: border-box; font: 500 17px 'Jost', sans-serif; font-variant-numeric: lining-nums; width: 112px; }
.pr .money-box i { font-style: normal; color: var(--antique-gold); }
.pr .money-box input { border: 0; outline: 0; background: transparent; font: inherit; color: inherit; width: 100%; min-width: 0; padding: 0; }
.pr .money-box input:focus { outline: none; }
.pr .tg, .tg { width: 56px; height: 32px; border-radius: 999px; background: var(--logo-pink, #e7a6b9); position: relative; flex: none; cursor: pointer; border: 0; padding: 0; }
.pr .tg::after, .tg::after { content: ""; position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.18); transition: all .15s ease; }
.pr .tg.off, .tg.off { background: var(--mist, #e9e4e6); }
.pr .tg.off::after, .tg.off::after { right: auto; left: 3px; }
.pr .ib, .ib { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--logo-pink, #e7a6b9); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; color: var(--deep-rose); }
.pr .ib:hover, .ib:hover { background: var(--petal, #fdf2f5); }
.pr .ib.del, .ib.del { border-color: #e9b4bf; color: var(--cherry, #b4324f); }
.pr .ib.del:hover, .ib.del:hover { background: #fff5f6; }
.services-footer { margin-top: 8px; }
.deposit-box { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.deposit-box .money-box { width: 170px; font-size: 19px; }

/* ---- Payments & QR Codes (Payments.html) ---- */
.admin-payments-page {
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
}
.payments-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.payments-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 10px;
}
.qr-method-card {
    background: #fff;
    border: 1px solid var(--border-soft, #f1d3dc);
    border-radius: 24px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    transition: all 0.15s ease;
    box-shadow: 0 4px 14px rgba(185, 97, 123, 0.05);
}
.qr-method-card.disabled { opacity: 0.65; }
.qr-card-preview {
    width: 150px;
    height: 150px;
    border-radius: 18px;
    border: 1px dashed var(--logo-pink, #e7a6b9);
    background: #fffafb;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.qr-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.qr-placeholder-text {
    font-size: 14px;
    color: #9a7f88;
}
.qr-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    flex: 1;
}
.qr-card-name {
    font: 600 24px 'Cormorant Garamond', Georgia, serif;
    color: var(--deep-rose);
}
.qr-card-note {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}
.qr-card-chips {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}
.qr-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f9e7ed;
    margin-top: auto;
}
.qr-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qr-card-actions .ib svg {
    width: 20px;
    height: 20px;
}
.qr-upload-target {
    height: 200px;
    border-radius: 22px;
    border: 1.5px dashed var(--logo-pink, #e7a6b9);
    background: #fffafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--deep-rose);
    font-size: 15px;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}
.qr-upload-target input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* ---- Settings (Settings.html) ---- */
.admin-settings-page {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}
.settings-two-col-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
    align-items: start;
    width: 100%;
}
.settings-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.settings-short-card {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.settings-right-col {
    position: sticky;
    top: 88px;
}
.rules-manager-card {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.rules-header-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rules-notice-box {
    background: var(--champagne, #fff7eb);
    border: 1px solid var(--gold, #dfb872);
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 13px;
    color: #6f5320;
    line-height: 1.45;
    margin-top: 8px;
}
.rules-tab-bar {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #f4dde4;
    padding-bottom: 2px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.rules-tab-bar::-webkit-scrollbar {
    display: none;
}
.rules-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 16px;
    font: 500 14px 'Jost', sans-serif;
    color: var(--muted);
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    flex: none;
}
.rules-tab-btn:hover {
    color: var(--deep-rose);
    background: #fffafb;
}
.rules-tab-btn.active {
    color: var(--deep-rose);
    font-weight: 600;
    background: #fdf2f5;
    border-bottom: 3px solid var(--rose);
    margin-bottom: -2px;
}
.tab-dirty-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rose, #b05a74);
    flex: none;
}
.rules-tab-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.rules-edit-pane {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rules-auto-grow-ta {
    width: 100%;
    box-sizing: border-box;
    border-radius: 18px;
    border: 1px solid var(--border-soft, #e7b9c6);
    background: #fff;
    padding: 14px 16px;
    font: 400 14px 'Jost', sans-serif;
    line-height: 1.6;
    color: #4a3d43;
    min-height: 140px;
    field-sizing: content;
    resize: vertical;
}
.rules-auto-grow-ta:focus {
    outline: none;
    border-color: #b05a74;
    box-shadow: 0 0 0 5px rgba(231,166,185,.38);
}
.rules-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}
.rules-live-preview-box {
    background: #fffafb;
    border: 1px dashed var(--logo-pink, #e7a6b9);
    border-radius: 20px;
    padding: 18px 20px;
}
.rules-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.preview-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fbe3ea;
    color: #8f435b;
    padding: 4px 10px;
    border-radius: 999px;
}
.preview-category {
    font-size: 13px;
    font-weight: 500;
    color: var(--deep-rose);
}
.rules-preview-list {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: #4a3d43;
    line-height: 1.6;
}
.rules-preview-list li {
    margin-bottom: 6px;
}
.rules-preview-empty {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
    padding: 8px 0;
}
.rules-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.rules-unsaved-dot-label {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--rose);
    font-weight: 500;
}
.settings-ta {
    box-sizing: border-box;
    width: 100%;
    min-height: 110px;
    border-radius: 18px;
    border: 1px solid #e7b9c6;
    background: #fff;
    padding: 14px 18px;
    font: 400 15px/1.55 'Jost', sans-serif;
    color: #2b2226;
    resize: vertical;
}
.settings-ta:focus {
    outline: none;
    border-color: #b05a74;
    box-shadow: 0 0 0 5px rgba(231,166,185,.38);
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}
.setting-row {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

/* ---- Admin Bookings (Booking.html, AddBooking.html, Reschedule.html) ---- */
.booking-dialog {
    max-width: 820px;
    padding: 34px 38px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 90vh;
    overflow-y: auto;
}
.booking-dialog::after {
    content: "";
    position: absolute;
    inset: var(--card-stitch-offset);
    border: 1px dashed #f1b9c8;
    border-radius: var(--card-stitch-radius);
    pointer-events: none;
}
.booking-dialog .script-title {
    font-family: 'Great Vibes', cursive;
    font-size: 56px;
    line-height: 1.05;
    color: #b05a74;
}
.booking-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.booking-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}
.booking-col-left {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.booking-col-right {
    width: 230px;
    max-width: 100%;
}
.booking-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}
.booking-line.border-top {
    border-top: 1px dashed #f1b9c8;
    padding-top: 10px;
}
.money-input {
    display: flex;
    align-items: center;
    height: 44px;
    border-radius: 18px;
    border: 1px solid #e7b9c6;
    background: #fff;
    padding: 0 14px;
    gap: 4px;
    box-sizing: border-box;
    font: 500 17px 'Jost', sans-serif;
}
.money-input i {
    font-style: normal;
    color: #a8823a;
}
.money-input input {
    border: 0;
    outline: 0;
    width: 100%;
    font: inherit;
    color: inherit;
}
.bub {
    background: #fdf2f5;
    border: 1px solid #f6cdd9;
    border-radius: 20px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.55;
    color: #4a3d43;
}
.dt {
    box-sizing: border-box;
    min-width: 92px;
    height: 84px;
    border-radius: 20px;
    border: 1.5px dashed #e7b9c6;
    background: #fffafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: 'Jost', sans-serif;
    color: #8f435b;
    flex: none;
    cursor: pointer;
    transition: all .15s ease;
}
.dt b {
    font: 500 26px 'Jost', sans-serif;
}
.dt small {
    font: 500 10px 'Jost', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.dt.bag { background: #fbe3ea; border: 1px solid #f1b9c8; }
.dt.vil { background: #f7ebc8; border: 1px solid #e0c783; color: #6f5320; }
.dt.sel { border: 2px solid #b05a74; box-shadow: 0 0 0 4px rgba(231,166,185,.38); }
.dt.off { background: #f6f1f2; border: 1px solid #ece4e6; color: #b3a4aa; cursor: not-allowed; }

.clickable-row {
    cursor: pointer;
    transition: background-color .15s ease;
}
.clickable-row:hover {
    background-color: #fdf2f5;
}

/* ---- Security.html Button variants ---- */
.btn { box-sizing: border-box; height: 52px; padding: 0 28px; border-radius: var(--radius-pill); border: 0; background: var(--rose); color: var(--white); font: 500 16px var(--font-sans); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .28), 0 8px 18px rgba(176, 90, 116, .28); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn:hover { background: var(--deep-rose); }
.btn2 { box-sizing: border-box; height: 48px; padding: 0 22px; border-radius: var(--radius-pill); border: 1px solid var(--edge); background: var(--white); color: var(--deep-rose); font: 500 15px var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn2:hover { background: var(--blush); }
.btn2:disabled { background: var(--disabled-bg); color: var(--disabled-ink); border-color: transparent; cursor: not-allowed; }
.btn3 { box-sizing: border-box; height: 48px; padding: 0 22px; border-radius: var(--radius-pill); border: 0; background: var(--cherry); color: var(--white); font: 500 15px var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn3:hover { background: var(--cherry-ink); }
.btn3:disabled { background: var(--disabled-bg); color: var(--disabled-ink); cursor: not-allowed; }
/* Text button: quiet link-style action, 44px tall */
.btn-text { box-sizing: border-box; height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--rose); font: 500 15px var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-text:hover { color: var(--deep-rose); }
.btn-text.is-danger { color: var(--cherry); }
.btn-text:disabled { color: var(--disabled-ink); cursor: not-allowed; }

/* ---- Client 390px Mobile & Dialog Styles (from UI handoff mockups) ---- */
.pg {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 18px 16px 28px;
    background: linear-gradient(180deg, #fbe3ea 0%, #fdf2f5 22%, #ffffff 60%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}
.top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top .lg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 2px;
    background: #fffafb;
    border: 1.5px solid #d8b56a;
    box-sizing: border-box;
    flex: none;
}
.top .lg img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.prog {
    display: flex;
    gap: 6px;
    align-items: center;
}
.prog i {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #f1d3dc;
    display: block;
}
.prog i.on {
    background: #b05a74;
}
.stp {
    font: 500 12px 'Jost', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8f435b;
}
.h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    line-height: 1.05;
    color: #b05a74;
}
.h2 {
    font: 600 24px 'Cormorant Garamond', Georgia, serif;
    color: #8f435b;
    line-height: 1.1;
}
.mut {
    font-size: 14px;
    line-height: 1.5;
    color: #6d5a61;
}
.card2 {
    position: relative;
    background: #fffafb;
    border-radius: 24px;
    border: 1px solid #f6cdd9;
    box-shadow: 0 12px 28px rgba(185, 97, 123, .10);
    padding: 20px 18px;
    box-sizing: border-box;
}
.card2::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px dashed #f1b9c8;
    border-radius: 19px;
    pointer-events: none;
}
.card2 > * {
    position: relative;
    z-index: 1;
}
.bar {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.row2 {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
    padding: 9px 0;
    border-bottom: 1px dashed #f1b9c8;
}
.row2:last-child {
    border-bottom: 0;
}
.row2 span:first-child {
    color: #6d5a61;
}
.row2 b {
    font-weight: 500;
    text-align: right;
}
.bl {
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #4a3d43;
}
.bl i {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d8b56a;
    margin-top: 8px;
    display: block;
}
.pick {
    box-sizing: border-box;
    min-height: 56px;
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid #e7b9c6;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2b2226;
    cursor: pointer;
    text-align: left;
    transition: all .15s ease;
}
.pick .r {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e7b9c6;
    flex: none;
    box-sizing: border-box;
}
.pick .a {
    font: 500 16px 'Jost', sans-serif;
    color: #8f435b;
}
.pick .b {
    font-size: 13px;
    color: #6d5a61;
    line-height: 1.4;
}
.pick.on {
    background: #fbe3ea;
    border: 2px solid #b05a74;
    box-shadow: 0 0 0 4px rgba(231, 166, 185, .38);
}
.pick.on .r {
    border-color: #b05a74;
    background: radial-gradient(circle, #b05a74 0 5px, #fff 6px);
}
.tm {
    box-sizing: border-box;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #e7b9c6;
    background: #fff;
    color: #8f435b;
    font: 500 15px 'Jost', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s ease;
}
.tm.on {
    background: #fbe3ea;
    border: 2px solid #b05a74;
    box-shadow: 0 0 0 4px rgba(231, 166, 185, .38);
}
.dt {
    box-sizing: border-box;
    flex: none;
    width: 78px;
    min-height: 92px;
    border-radius: 20px;
    border: 1px solid #e7b9c6;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #8f435b;
    cursor: pointer;
    transition: all .15s ease;
}
.dt .w {
    font: 500 11px 'Jost', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.dt .n {
    font: 500 28px 'Jost', sans-serif;
    line-height: 1;
}
.dt .l {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}
.dt.on {
    background: #fbe3ea;
    border: 2px solid #b05a74;
    box-shadow: 0 0 0 4px rgba(231, 166, 185, .38);
}
.dt.vil.on {
    background: #f7ebc8;
    border-color: #a8823a;
    box-shadow: 0 0 0 4px rgba(216, 181, 106, .35);
}
.cal-day-cell {
    box-sizing: border-box;
    height: 46px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font: 500 15px 'Jost', sans-serif;
    border: 1px solid transparent;
}
.cal-day-empty {
    color: #d0c3c8;
}
.cal-day-closed {
    color: #b3a4aa;
    background: #f6f1f2;
}
.cal-day-open-bag {
    background: #fbe3ea;
    border: 1px solid #f1b9c8;
    color: #2b2226;
    cursor: pointer;
}
.cal-day-open-vil {
    background: #f7ebc8;
    border: 1px solid #e0c783;
    color: #2b2226;
    cursor: pointer;
}
.cal-day-selected {
    background: #fbe3ea;
    border: 2px solid #b05a74;
    box-shadow: 0 0 0 4px rgba(231, 166, 185, .38);
    color: #2b2226;
    cursor: pointer;
}

/* ---- Studio Earnings & Analytics (/admin/earnings) ---- */
.admin-earnings-page {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    scroll-margin-top: 84px;
    padding-top: 16px;
}
.earnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 16px;
    width: 100%;
}
.earn-right { text-align: right; }
.earn-fee { color: var(--cherry); }
.earn-total { font-weight: 600; color: var(--deep-rose); }
.earn-center { text-align: center; }
.earn-tier { color: var(--muted); font-size: 13px; margin-left: 6px; }
.earn-sub { font-size: 12px; color: var(--muted); }

/* Client profile: the top numbers as small tiles, number above label. */
.client-standing-header .lbl { margin: 0; }
.booking-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 10px;
}
.booking-kpi-box {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--edge-soft);
    border-radius: 14px;
    background: var(--pearl);
    text-align: center;
}
.booking-kpi-val {
    font-size: 20px;
    font-weight: 600;
    color: var(--deep-rose);
    overflow-wrap: anywhere;
}
.booking-kpi-lbl {
    font-size: 12px;
    color: var(--muted);
}

.kpi-card {
    background: #fff;
    border: 1px solid var(--border-soft, #f1d3dc);
    border-radius: 20px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(143, 67, 91, 0.04);
}
.kpi-card.highlight {
    background: linear-gradient(135deg, #fff7f9 0%, #fff 100%);
    border-color: var(--rose);
}
.kpi-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--deep-rose);
    font-family: 'Cormorant Garamond', Georgia, serif;
    line-height: 1.1;
    margin: 6px 0;
}
.kpi-sub {
    font-size: 13px;
    color: #8c737d;
}
.earnings-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    width: 100%;
}
.earnings-chart-card {
    min-width: 0;
    min-height: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 28px;
    box-sizing: border-box;
}
.earnings-empty-box {
    padding: 44px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    background: #fffafb;
    border: 1px dashed var(--border-soft, #f1d3dc);
    border-radius: 18px;
    margin: 12px 0;
}
.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 190px;
    padding: 24px 10px 0;
    overflow-x: auto;
}
.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 40px;
    height: 100%;
    justify-content: flex-end;
    gap: 6px;
}
.chart-bar-amount {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}
.chart-bar-wrapper {
    width: 100%;
    max-width: 42px;
    height: 120px;
    display: flex;
    align-items: flex-end;
    background: #fdf2f5;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.chart-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--rose) 0%, var(--logo-pink) 100%);
    border-radius: 8px 8px 0 0;
    transition: height 0.3s ease;
    min-height: 4px;
}
.chart-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: #4a3d43;
    text-align: center;
}
.chart-bar-sub {
    font-size: 12px;
    color: var(--muted);
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.admin-table,
.earnings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th,
.earnings-table th {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 2px solid #f1d3dc;
    color: var(--deep-rose);
    font-weight: 600;
    font-size: 13px;
}
.admin-table td,
.earnings-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f9e8ed;
    color: #4a3d43;
}
.admin-table tr:hover td,
.earnings-table tr:hover td {
    background: #fdf8fa;
}
.text-cherry {
    color: var(--cherry, #b4324f) !important;
}
.period-btn {
    font-family: inherit;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-soft, #e7b9c6);
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #4a3d43;
    cursor: pointer;
    transition: all 0.15s ease;
}
.period-btn.active {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
}
.earnings-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--border-soft, #f1d3dc);
    border-radius: 18px;
    padding: 14px 20px;
}

/* ==========================================================================
   Responsive Architecture
   Breakpoints:
   - Phone:   400px / 600px and under       (@media (max-width: 400px), base mobile-first)
   - Tablet:  601px to 1023px               (@media (min-width: 601px))
   - Desktop: 1024px and up                 (@media (min-width: 1024px))
   ========================================================================== */

/* Universal interactive and accessibility foundation */
button,
a,
input,
select,
textarea,
.btn,
.btn2,
.btn3,
.button,
.round-button,
.nav-toggle,
.ib,
.seg,
.tm,
.dt,
.pick {
    touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 2px;
}

/* Ensure inputs inside money boxes never show borders or outlines */
.money-box input,
.money-input input {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.money-box input:focus,
.money-box input:focus-visible,
.money-input input:focus,
.money-input input:focus-visible {
    outline: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.btn,
.btn2,
.btn3,
.button,
.head-secondary {
    min-height: 48px;
    box-sizing: border-box;
}

.btn:hover:not(:disabled),
.button:hover:not(:disabled) {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35), 0 10px 22px rgba(176, 90, 116, 0.35);
}

.btn2:hover:not(:disabled),
.button-secondary:hover:not(:disabled) {
    background: #fff;
    border-color: var(--rose);
}

.btn3:hover:not(:disabled) {
    background: rgba(180, 50, 79, 0.08);
}

.round-button, .nav-toggle, .ib {
    min-width: 48px;
    min-height: 48px;
}

.round-button:hover:not(:disabled),
.nav-toggle:hover:not(:disabled),
.ib:hover:not(:disabled) {
    background: var(--petal);
    border-color: var(--rose);
}

.site-nav a,
.site-nav .link-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}

/* Base dialog & sheet behavior: dashed stitch clearance, no scrollbar, max-height fit */
.confirm-backdrop,
.dialog-backdrop,
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(43, 34, 38, 0.5);
    display: flex;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.confirm-dialog,
.copy-dialog,
.timeoff-dialog,
.dialog-card,
.booking-dialog {
    max-height: min(90vh, 90dvh);
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: clamp(24px, 5vw, 36px) clamp(20px, 4vw, 36px) clamp(28px, 6vw, 40px);
}

.confirm-backdrop::-webkit-scrollbar,
.dialog-backdrop::-webkit-scrollbar,
.modal-backdrop::-webkit-scrollbar,
.confirm-dialog::-webkit-scrollbar,
.copy-dialog::-webkit-scrollbar,
.timeoff-dialog::-webkit-scrollbar,
.dialog-card::-webkit-scrollbar,
.booking-dialog::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ==========================================================================
   Desktop Viewport (1024px and up)
   ========================================================================== */
@media (min-width: 1024px) {
    .page {
        max-width: 1200px;
        margin: 0 auto;
        padding: 36px 32px 64px;
        box-sizing: border-box;
    }
    .page:has(.admin-wide) {
        max-width: 1240px;
    }

    /* Client forms container */
    .pg,
    .booking-auth-container,
    .booking-done-container {
        max-width: 560px;
        margin: 0 auto;
        padding: 36px 36px 52px;
        border-radius: 32px;
        border: 1px solid #f6cdd9;
        box-shadow: 0 16px 42px rgba(185, 97, 123, 0.08);
        box-sizing: border-box;
    }

    /* Compatibility for test assertion */
    .pg {
        max-width: 820px;
    }

    .site-header {
        padding: 16px 48px;
        gap: 16px 32px;
    }
    .brand-name {
        font-size: 2.1rem;
    }
    .brand img {
        width: 44px;
        height: 44px;
    }
    .nav-toggle {
        display: none !important;
    }
    .site-nav {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        gap: 8px 28px;
        font-size: 1rem;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        width: auto !important;
        padding: 0 !important;
    }
    .mobile-book-btn {
        display: none !important;
    }
    .desktop-only {
        display: inline-flex !important;
    }
    .mobile-only {
        display: none !important;
    }
    .site-nav a {
        transition: color 0.15s ease, border-color 0.15s ease;
    }

    /* Client Home Desktop (ClientHomeDesktop.html) */
    .home-page {
        max-width: 1160px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 34px;
        padding: 44px 32px 64px;
    }
    .home-mobile-top {
        display: none;
    }
    .home-hero-grid {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 48px;
        align-items: center;
    }
    .home-hero-brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
    }
    .home-hero-logo {
        display: none;
    }
    .home-hero-title {
        font-family: 'Great Vibes', cursive;
        font-size: 96px;
        line-height: 1;
        color: #b05a74;
    }
    .home-hero-sub {
        font-size: 18px;
        line-height: 1.6;
        color: #4a3d43;
        max-width: 460px;
    }
    .home-chips {
        display: flex;
        gap: 8px;
    }
    .home-actions {
        display: flex;
        gap: 12px;
        margin-top: 8px;
    }
    .home-btn {
        width: 260px;
    }
    .home-login-note {
        font-size: 14px;
        color: #6d5a61;
    }
    .home-cards-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        align-items: stretch;
    }
    .home-cards-grid > .card2 {
        height: 100%;
        box-sizing: border-box;
    }

    /* Client Booking Desktop (ClientBookDesktop.html) */
    .booking-page.wizard-mode {
        max-width: 1160px;
        margin: 0 auto;
        padding: 36px 32px 64px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .booking-progress-header {
        margin-bottom: 8px;
    }
    .booking-wizard-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 36px;
        align-items: start;
    }
    .booking-wizard-main {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .booking-summary-sidebar {
        position: sticky;
        top: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    .booking-mobile-bar {
        display: none !important;
    }
    .date-picker-layout {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        gap: 28px;
        align-items: start;
    }
    .date-picker-empty-prompt {
        display: flex;
    }

    /* Client Account Desktop */
    .account-page {
        max-width: 1080px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 36px 32px 64px;
    }
    .account-card-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 28px;
        align-items: start;
    }

    /* Dialogs on Desktop */
    .confirm-backdrop {
        align-items: center;
        justify-content: center;
        padding: 24px;
    }
    .confirm-dialog,
    .booking-dialog {
        max-width: 940px;
        border-radius: 28px;
        padding: 32px 36px;
        margin: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    .booking-cols {
        display: flex;
        gap: 28px;
    }
    .booking-col-left {
        flex: 1.15;
    }
    .booking-col-right {
        flex: 0.85;
    }

    /* Admin Pages Desktop (Services, Settings, Payments, Security, Earnings) */
    .services-page {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 32px 24px 64px;
    }
    .admin-services-page {
        max-width: 1040px;
    }
    .admin-payments-page {
        max-width: 980px;
    }
    .admin-earnings-page {
        max-width: 1200px;
        scroll-margin-top: 84px;
    }
    .admin-settings-page {
        max-width: 1240px;
    }
    .services-header,
    .services-banner,
    .services-page > .form-error,
    .services-footer,
    .services-page > div[style*="background:#e8f2e6"] {
        width: 100%;
    }
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .chart-container {
        height: 220px;
        gap: 16px;
    }
    .tm {
        font-size: var(--font-size-chip, 12px);
    }
}

/* ==========================================================================
   Tablet & iPad Viewport (600px to 1023px)
   ========================================================================== */
@media (min-width: 600px) and (max-width: 1023px) {
    .page {
        max-width: 100%;
        padding: 28px 24px 56px;
        box-sizing: border-box;
    }
    .page:has(.admin-wide) {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-header {
        padding: 12px 20px;
        flex-wrap: nowrap !important;
    }
    .site-header .brand {
        flex-shrink: 0;
    }
    .site-nav {
        flex-wrap: nowrap !important;
        gap: clamp(8px, 1.8vw, 16px) !important;
    }
    .nav-toggle {
        display: none !important;
    }
    .site-nav {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        align-items: center;
        gap: 16px;
        font-size: 0.95rem;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        width: auto !important;
        padding: 0 !important;
    }
    .mobile-book-btn {
        display: none !important;
    }
    .desktop-only {
        display: inline-flex !important;
    }
    .mobile-only {
        display: none !important;
    }

    /* Client Forms */
    .pg,
    .booking-page.form-mode,
    .booking-auth-container,
    .booking-done-container {
        max-width: 560px;
        margin: 0 auto;
        padding: 28px 24px 36px;
        border-radius: 28px;
        border: 1px solid #f6cdd9;
        box-shadow: 0 12px 32px rgba(185, 97, 123, 0.07);
    }

    .home-page {
        max-width: 680px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .home-mobile-top {
        display: none;
    }
    .home-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .home-hero-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .home-hero-logo {
        width: 112px;
        height: 112px;
        border-radius: 50%;
        padding: 5px;
        background: #fffafb;
        border: 2px solid #d8b56a;
        box-shadow: 0 0 0 8px #fbe3ea, 0 14px 28px rgba(185,97,123,.18);
        display: inline-block;
    }
    .home-hero-logo img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }
    .home-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
    }
    .home-btn {
        width: 240px;
    }
    .home-cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: stretch;
    }
    .home-cards-grid > .card2:last-child {
        grid-column: 1 / -1;
    }

    /* Booking wizard on tablet */
    .booking-page.wizard-mode {
        max-width: 760px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .booking-wizard-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .booking-summary-sidebar {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }
    .booking-mobile-bar {
        display: none !important;
    }
    .date-picker-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .date-picker-empty-prompt {
        display: none;
    }

    /* Account on tablet */
    .account-page {
        max-width: 680px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .account-card-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    /* Dialogs on tablet */
    .confirm-backdrop {
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    .confirm-dialog,
    .booking-dialog {
        max-width: 760px;
        width: 100%;
        border-radius: 28px;
        padding: 26px 28px;
        margin: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    .booking-cols {
        display: flex;
        gap: 20px;
    }
    .booking-col-left {
        flex: 1.1;
    }
    .booking-col-right {
        flex: 0.9;
    }

    /* Admin pages on tablet */
    .services-page {
        max-width: 820px;
        margin: 0 auto;
    }
    .head-actions {
        gap: 8px;
    }
    .head-secondary {
        min-height: 48px;
    }
    .settings-two-col-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .settings-right-col {
        position: static;
    }
    .earnings-charts-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Phone & Mobile Viewport (under 600px)
   ========================================================================== */
@media (max-width: 599px) {
    /* Full-bleed client pages with clean mobile edge-to-edge styling */
    .pg,
    .home-page,
    .booking-page,
    .booking-auth-container,
    .booking-done-container,
    .account-page {
        max-width: 100%;
        padding: 20px 20px 32px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        box-sizing: border-box;
    }

    /* Ensure sticky header never covers content */
    .page:has(.pg),
    .page:has(.home-page),
    .page:has(.booking-page),
    .page:has(.account-page) {
        padding: clamp(12px, 2.5vw, 20px) 0 36px;
        max-width: 100%;
    }
    .page {
        padding: clamp(16px, 3.5vw, 24px) clamp(12px, 3vw, 20px) 48px;
        box-sizing: border-box;
    }
    .card,
    .card2,
    .form-card,
    .home-dates-card {
        padding: var(--card-pad) !important;
        border-radius: 20px;
        box-sizing: border-box;
    }

    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: inline-flex !important;
    }
    .mobile-book-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 clamp(9px, 2vw, 14px) !important;
        min-height: 36px !important;
        height: 36px !important;
        font-size: clamp(11.5px, 2.5vw, 13px) !important;
        white-space: nowrap !important;
    }

    /* Client header: strictly one single row on every phone (logo left, Book now + menu right) */
    .site-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px clamp(8px, 2.5vw, 16px) !important;
        gap: 8px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        background: rgba(255, 250, 251, 0.96) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid var(--logo-pink) !important;
    }
    .site-header {
        flex-wrap: nowrap !important;
    }
    .site-header .brand {
        display: flex !important;
        align-items: center !important;
        gap: clamp(4px, 1.2vw, 8px) !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    .site-header .brand .brand-badge {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    .site-header .brand img {
        width: clamp(28px, 7vw, 36px) !important;
        height: clamp(28px, 7vw, 36px) !important;
        flex-shrink: 0 !important;
    }
    .site-header .brand .brand-by-phone {
        display: block !important;
        font-family: var(--font-sans, 'Jost', sans-serif) !important;
        font-size: 8px !important;
        font-weight: 500 !important;
        color: var(--antique-gold, #866528) !important;
        letter-spacing: 0.06em !important;
        text-transform: uppercase !important;
        line-height: 1 !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
    }
    .site-header .brand-name {
        font-size: clamp(1.15rem, 3.8vw, 1.55rem) !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }
    .site-header .brand .brand-by-desktop {
        display: none !important;
    }
    .site-header .header-right-actions {
        display: flex !important;
        align-items: center !important;
        gap: clamp(6px, 1.5vw, 10px) !important;
        flex-shrink: 0 !important;
    }
    .site-header .nav-toggle {
        display: inline-flex !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        border: 1px solid var(--logo-pink) !important;
        background: var(--card-bg) !important;
        color: var(--deep-rose) !important;
        cursor: pointer !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }
    .site-nav {
        display: none !important;
    }
    .site-nav.open {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(255, 250, 251, 0.98);
        border-bottom: 1px solid var(--logo-pink);
        box-shadow: 0 16px 36px rgba(185, 97, 123, 0.16);
        padding: 16px 22px;
        gap: 8px;
        z-index: 99;
        backdrop-filter: blur(10px);
        box-sizing: border-box;
    }
    .site-nav a,
    .site-nav .link-button {
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 1rem;
        width: 100%;
    }
    .nav-cta {
        padding: 0 18px;
        justify-content: center;
    }

    /* Client Home Mobile */
    .home-mobile-top {
        display: flex;
    }
    .home-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .home-hero-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .home-hero-logo {
        width: 112px;
        height: 112px;
        border-radius: 50%;
        padding: 5px;
        background: #fffafb;
        border: 2px solid #d8b56a;
        box-shadow: 0 0 0 8px #fbe3ea, 0 14px 28px rgba(185,97,123,.18);
        display: inline-block;
    }
    .home-hero-logo img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }
    .home-hero-title {
        font-family: 'Great Vibes', cursive;
        font-size: 54px;
        margin-top: 8px;
        line-height: 1;
        color: #b05a74;
    }
    .home-hero-sub {
        max-width: 300px;
    }
    .home-chips {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .home-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .home-btn {
        width: 100%;
    }
    .home-all-dates-btn {
        width: 100%;
        display: flex;
        justify-content: center;
        align-self: stretch;
        margin-top: 16px;
    }

    /* Client Booking Mobile */
    .booking-summary-sidebar {
        display: none !important;
    }
    .booking-mobile-bar {
        display: flex !important;
    }
    .date-picker-layout {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .date-picker-empty-prompt {
        display: none;
    }

    /* Client Account Mobile */
    .account-card-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Prevent auto-zoom on iOS Safari when focusing form inputs */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Dialogs as full-screen sheets on phone */
    .confirm-backdrop {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    .confirm-dialog,
    .booking-dialog {
        max-width: 100% !important;
        width: 100% !important;
        max-height: min(90vh, 90dvh) !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-bottom: 0 !important;
        margin: 0 !important;
        padding: 24px clamp(20px, 4.5vw, 28px) max(32px, env(safe-area-inset-bottom, 24px)) !important;
        box-shadow: 0 -8px 32px rgba(43, 34, 38, 0.25);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        box-sizing: border-box !important;
    }
    .confirm-dialog::-webkit-scrollbar,
    .booking-dialog::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    /* Dashed stitch never overlaps bottom on mobile sheet/dialogs */
    .confirm-dialog::after,
    .booking-dialog::after {
        border-bottom: none !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        bottom: 0 !important;
    }
    .booking-cols {
        flex-direction: column;
        gap: 16px;
    }
    .booking-col-left {
        min-width: 0;
        width: 100%;
    }
    .booking-col-right {
        width: 100%;
    }

    /* Services & Prices Screen */
    .services-page {
        padding: 20px 14px 44px;
        gap: 18px;
    }
    .service-tier-row-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .price-input-wrapper {
        width: 100%;
    }
    .dur-input-wrapper {
        width: 100%;
    }
    .settings-two-col-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .earnings-charts-grid {
        grid-template-columns: 1fr;
    }
    .pr {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }
    .pr .nm {
        min-width: 0;
        width: 100%;
    }
    .pr .rng {
        flex-wrap: wrap;
    }

    /* Settings Screen */
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Earnings Dashboard */
    .earnings-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }
    .btn,
.btn-primary {
        width: 100%;
        min-height: 52px;
        padding: 0 28px;
        font-size: 16px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   UF-8: Gallery, Lightbox, Recent Work Strip & Tier Samples
   ========================================================================== */

/* Lightbox Modal */
.hc-lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(18, 9, 13, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    outline: none;
}

.hc-lightbox-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hc-lightbox-close {
    position: absolute;
    top: -46px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.hc-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hc-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 90vh;
}

.hc-lightbox-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 72vh;
    max-width: 90vw;
}

.hc-lightbox-image {
    max-height: 72vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.hc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.15s ease;
}

.hc-lightbox-nav:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.hc-lightbox-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.hc-lightbox-prev {
    left: 12px;
}

.hc-lightbox-next {
    right: 12px;
}

.hc-lightbox-details {
    margin-top: 14px;
    text-align: center;
    color: #fff;
    max-width: 600px;
}

.hc-lightbox-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.hc-lightbox-counter {
    font-family: 'Jost', sans-serif;
    font-variant-numeric: lining-nums;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    padding: 0 4px;
}

.hc-lightbox-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.hc-lightbox-caption {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    margin: 0;
}

/* Admin Gallery Page */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.admin-gallery-card {
    background: #fff;
    border: 1px solid var(--border-soft, #f1d3dc);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(143, 67, 91, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-gallery-card.disabled {
    opacity: 0.6;
}

.admin-gallery-card-thumb {
    position: relative;
    height: 200px;
    background: #fdf2f5;
    cursor: pointer;
    overflow: hidden;
}

.admin-gallery-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.admin-gallery-card-thumb:hover img {
    transform: scale(1.03);
}

.admin-gallery-card-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 13px;
}

.admin-gallery-card-badge-strip {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-gallery-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.admin-gallery-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color, #2a1f23);
    line-height: 1.25;
}

.admin-gallery-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-gallery-card-caption {
    font-size: 13px;
    color: var(--text-muted, #6d5a61);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-gallery-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #fae6ec;
    padding-top: 8px;
}

/* Gallery Item Dialog Photos */
.gallery-dialog-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.gallery-photo-thumb-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1b9c8;
    height: 120px;
    background: #fff;
}

.gallery-photo-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-photo-thumb-meta {
    position: absolute;
    top: 4px;
    left: 4px;
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
}

.gallery-photo-thumb-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: space-around;
    padding: 4px 0;
}

.gallery-photo-thumb-actions button {
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 0 4px;
    transition: opacity 0.15s ease;
}

.gallery-photo-thumb-actions button:hover:not(:disabled) {
    opacity: 1;
    color: #f7a9be;
}

.gallery-photo-thumb-actions button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-photo-upload-placeholder {
    height: 120px;
    border: 2px dashed #e7a6b9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fffafb;
    transition: background 0.15s ease;
}

.gallery-photo-upload-placeholder:hover {
    background: #fdf2f5;
}

.gallery-upload-btn-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--deep-rose, #8f435b);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

/* Public Gallery Page */
.gallery-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 36px;
}

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 46px;
    margin: 6px 0 10px;
}

.gallery-sub {
    max-width: 580px;
    margin: 0 auto 24px;
    font-size: 15px;
    line-height: 1.5;
}

.gallery-filters-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gallery-filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.public-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border-soft, #f1d3dc);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(143, 67, 91, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(143, 67, 91, 0.1);
}

.gallery-card-image-wrap {
    position: relative;
    height: 280px;
    background: #fdf2f5;
    overflow: hidden;
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.04);
}

.gallery-card-photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    backdrop-filter: blur(4px);
}

.gallery-card-info {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.gallery-card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 2px;
}

.gallery-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color, #2a1f23);
    line-height: 1.25;
}

.gallery-card-caption {
    font-size: 13.5px;
    color: var(--text-muted, #6d5a61);
    line-height: 1.45;
    margin: 0;
}

/* Home Recent Work Strip */
.home-recent-work-section {
    margin: 36px 0 28px;
}

.home-recent-work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.home-gallery-cta {
    text-decoration: none;
    font-size: 14px;
    padding: 8px 18px;
}

.home-recent-work-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.home-recent-card {
    background: #fff;
    border: 1px solid var(--border-soft, #f1d3dc);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(143, 67, 91, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-recent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(143, 67, 91, 0.09);
}

.home-recent-card-img-wrap {
    position: relative;
    height: 170px;
    background: #fdf2f5;
    overflow: hidden;
}

.home-recent-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-recent-card:hover .home-recent-card-img-wrap img {
    transform: scale(1.04);
}

.home-recent-card-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-recent-card-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.home-recent-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color, #2a1f23);
}

/* Book Page Tier Samples & LongDescription */
.btn-more-toggle {
    background: none;
    border: none;
    padding: 0;
    color: var(--deep-rose, #8f435b);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.service-long-desc-text {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-color, #2a1f23);
    background: #fff8fa;
    border: 1px solid #f6dfe5;
    border-radius: 8px;
    padding: 10px 12px;
    white-space: pre-line;
}

.tier-sample-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #f6dfe5;
    gap: 10px;
    flex-wrap: wrap;
}

.tier-sample-thumbs {
    display: flex;
    gap: 6px;
}

.tier-sample-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #f1b9c8;
}

.tier-sample-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--deep-rose, #8f435b);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.tier-sample-link:hover {
    text-decoration: underline;
}

.appointments-view-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.appointments-agenda-col {
    flex-grow: 1;
    min-width: 0;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */

.toast-container {
    position: fixed;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    box-sizing: border-box;
    top: calc(env(safe-area-inset-top, 12px) + 8px);
    left: 16px;
    right: 16px;
    width: auto;
}

@media (min-width: 601px) {
    .toast-container {
        /* bottom left, so it never covers the title and close button of the side panel on the right */
        top: auto;
        bottom: 24px;
        right: auto;
        left: 24px;
        width: 360px;
        max-width: calc(100vw - 48px);
    }
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 250, 251, 0.95);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 12px 32px rgba(185, 97, 123, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    font-family: Jost, system-ui, sans-serif;
    color: #2B2226;
    animation: toastSlideIn 0.25s cubic-bezier(.2, .8, .2, 1);
    box-sizing: border-box;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast-item {
        animation: none !important;
    }
}

.toast-item.toast-success {
    border: 1px solid #D8A5B4;
}

.toast-item.toast-success .toast-icon {
    color: #8F435B;
}

.toast-item.toast-error {
    border: 1px solid #F1B9C8;
    background: rgba(255, 248, 250, 0.97);
}

.toast-item.toast-error .toast-icon {
    color: #B4324F;
}

.toast-item.toast-error .toast-title {
    color: #B4324F;
}

.toast-item.toast-info {
    border: 1px solid #D8B56A;
}

.toast-item.toast-info .toast-icon {
    color: #866528;
}

.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}

.toast-content {
    flex-grow: 1;
    min-width: 0;
}

.toast-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #8F435B;
    padding: 2px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.toast-close:hover {
    opacity: 1;
}

/* ---- Redesign Client Home (T5a) ---- */
.client-home-page {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    font-family: 'Jost', system-ui, sans-serif;
    color: var(--ink, #2B2226);
    padding-bottom: 60px;
}

.home-section {
    padding: 36px 16px 0;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
}

.home-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}

.home-section-title {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 29px;
    color: var(--headings, #8F435B);
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.home-section-subtitle {
    margin: 4px 0 14px;
    font-size: 14px;
    color: var(--muted, #6D5A61);
}

/* Home Card with Dashed Stitch */
.home-stitch-card {
    position: relative;
    background: var(--card-bg, #FFFAFB);
    border: 1px solid var(--border-pink, #F6CDD9);
    border-radius: 28px;
    box-shadow: 0 16px 38px rgba(185, 97, 123, 0.12);
    padding: 20px 22px;
    box-sizing: border-box;
}

.home-stitch-card::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed var(--stitch-color, #F1B9C8);
    border-radius: 21px;
    pointer-events: none;
}

/* Hero Pill (Desktop vs Touch) */
.hero-glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    min-height: 48px;
    padding: 0 20px 0 14px;
    border-radius: 999px;
    background: rgba(255, 250, 251, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 22px rgba(43, 34, 38, 0.22);
    color: #8F435B;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.pill-text-desktop {
    display: none;
}

.pill-text-mobile {
    display: inline;
}

@media (hover: hover) and (pointer: fine) {
    .pill-text-desktop {
        display: inline;
    }
    .pill-text-mobile {
        display: none;
    }
}

/* Open This Week List */
.home-dates-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-date-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.home-day-col {
    width: 56px;
    text-align: center;
    flex-shrink: 0;
}

.home-day-dow {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--antique-gold, #866528);
}

.home-day-num {
    font-size: 30px;
    line-height: 1.1;
    color: var(--headings, #8F435B);
}

.home-time-pills-wrap {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.home-open-pill {
    min-height: 48px;
    min-width: 48px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border-pink, #E7A6B9);
    color: var(--headings, #8F435B);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: #FFFFFF;
    transition: transform var(--duration-fast, 180ms) var(--ease-spring), border-color 180ms ease, background 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.home-open-pill:active {
    transform: scale(0.96);
    background: #FDF2F5;
    border-color: #B05A74;
}

@media (hover: hover) and (pointer: fine) {
    .home-open-pill:hover {
        border-color: #B05A74;
        background: #FDF2F5;
    }
}

.home-all-dates-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 14px;
    color: var(--headings, #8F435B);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.home-all-dates-link:hover {
    text-decoration: underline;
}

/* Service Cards */
.home-services-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-service-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

/* How Booking Works */
.home-steps-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.home-step-num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #FBE3EA;
    color: #8F435B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
}

.home-step-text-title {
    font-weight: 500;
    color: var(--ink, #2B2226);
}

.home-step-text-sub {
    font-size: 14px;
    font-weight: 300;
    color: var(--muted, #6D5A61);
    margin-top: 2px;
}

.home-ig-callout {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 20px;
    background: #FDF2F5;
    border: 1px solid #F6CDD9;
    font-size: 14px;
    line-height: 1.5;
    color: #6D5A61;
}

.home-ig-callout a {
    color: #8F435B;
    font-weight: 500;
    text-decoration: none;
}

.home-ig-callout a:hover {
    text-decoration: underline;
}

/* Footer on Home */
.home-footer {
    padding: 44px 16px 20px;
    text-align: center;
    font-size: 13px;
    color: #6D5A61;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.home-footer-brand {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: #B05A74;
}

.home-footer-links {
    display: flex;
    gap: 20px;
}

.home-footer-links a {
    color: #8F435B;
    text-decoration: none;
    font-weight: 400;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}

.home-footer-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   T5b: Client Booking Flow Redesign (Book.dc.html match)
   ========================================================================== */

.booking-page-wrap {
    min-height: 100vh;
    min-height: 100svh;
    background: linear-gradient(180deg, #FBE3EA 0%, #FDF2F5 40%, #FFFFFF 100%);
    font-family: 'Jost', system-ui, sans-serif;
    color: #2B2226;
    display: flex;
    flex-direction: column;
}

.book-card {
    position: relative;
    background: #FFFAFB;
    border: 1px solid #F6CDD9;
    border-radius: 28px;
    box-shadow: 0 16px 38px rgba(185, 97, 123, 0.12);
    padding: 22px;
}

.book-summary-card::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed #F1B9C8;
    border-radius: 21px;
    pointer-events: none;
}

/* The client header is fixed, so the page starts below it and the sticky bar sticks just under it. */
.page:has(.booking-page-wrap) {
    padding-top: var(--client-header-h, 64px);
}

/* ---- Villasis selected highlight (gold style like Villasis chip) ---- */
.opt.on.on-villasis,
.opt.on-villasis {
    background: #f7ebc8 !important;
    color: #6f5320 !important;
    border: 2px solid #d8b56a !important;
    box-shadow: 0 0 0 4px rgba(216, 181, 106, 0.38) !important;
}

/* ---- Agenda View: Location Label and "Edit day" Pill Button ---- */






/* F3b · Dialogs Frame Stitch, Fixed Header/Footer, Scrolling Middle */
.confirm-dialog,
.copy-dialog,
.timeoff-dialog,
.dialog-card,
.booking-dialog {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: min(90vh, 90dvh) !important;
    overflow: hidden !important;
    box-sizing: border-box;
    padding: clamp(20px, 3.5vw, 32px) clamp(20px, 4vw, 36px) !important;
}

.confirm-dialog::after,
.copy-dialog::after,
.timeoff-dialog::after,
.dialog-card::after,
.booking-dialog::after {
    content: "";
    position: absolute;
    inset: var(--card-stitch-offset, 10px);
    border: 1px dashed var(--card-stitch-color, #f1b9c8);
    border-radius: calc(var(--card-radius, 28px) - 6px);
    pointer-events: none;
    z-index: 5;
}

.dialog-head,
.confirm-dialog-head {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
}

.dialog-body,
.booking-dialog-body {
    flex: 1 1 auto;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 4px 2px 14px;
    position: relative;
    z-index: 2;
}

.dialog-body::-webkit-scrollbar,
.booking-dialog-body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.dialog-footer,
.confirm-actions,
.dialog-actions {
    flex-shrink: 0;
    position: relative;
    z-index: 4;
    padding-top: 14px;
    border-top: 1px solid rgba(246, 205, 217, 0.45);
    margin-top: auto;
    background: inherit;
}

/* ---- Design system components (FE-1): icon, location chip, status chip, field help and error ---- */
.icon { display: inline-block; flex: none; vertical-align: middle; }
.chip-loc { gap: 6px; height: 24px; padding: 0 10px; }
.chip-loc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.chip-villasis .chip-loc-dot { background: var(--antique-gold); }
.chip-status { gap: 6px; height: 26px; padding: 0 10px 0 8px; }
.chip-status-waiting { background: var(--champagne); color: var(--champagne-deep); border-color: var(--champagne-edge); }
.chip-status-accent { background: var(--rose); color: var(--white); border-color: var(--rose); }
.chip-status-ok { background: var(--success-bg); color: var(--success-ink); border-color: var(--success-edge); }
.chip-status-neutral { background: var(--neutral-bg); color: var(--neutral-ink); border-color: var(--neutral-edge); }
.chip-status-bad { background: var(--cherry-bg); color: var(--cherry-ink); border-color: var(--cherry-edge); }
.field-help { margin: 6px 0 0; font-size: 14px; line-height: 1.45; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.field-error { margin: 6px 0 0; display: flex; align-items: flex-start; gap: 6px; font-size: 14px; line-height: 1.45; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--cherry); }
.field-error .icon { margin-top: 2px; }
.btn-glass-icon:focus-visible, .btn:focus-visible, .btn2:focus-visible, .btn3:focus-visible, .btn-text:focus-visible, .button:focus-visible, .chip-button:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 2px;
}
/* Validation messages carry the alert icon, so an error is never colour alone */
.validation-message { display: flex; align-items: flex-start; gap: 6px; }
.validation-message::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* StitchCard keeps the design-system size (outer radius 28, 10px gap, 20px inside the stitch) on phones too,
   where the older .card rule shrinks cards. Padded with --card-pad token. */
.card.stitch-card { padding: var(--card-pad) !important; border-radius: var(--card-radius) !important; margin-bottom: 0; }

/* Earnings below 1024px (phones and tablets; the 10-column table does not fit anyway): the chart fits the width, tables become small stacked cards (label: value). */
@media (max-width: 1023px) {
    .earnings-chart-card { padding: 16px; min-height: 0; }
    .chart-container { gap: 3px; padding: 20px 8px 0; overflow: hidden; }
    .chart-month { gap: 1px; }
    .chart-bar-group { min-width: 0; gap: 4px; }
    .chart-bar-wrapper { max-width: 18px; }
    .chart-bar-label { font-size: 11px; }
    .chart-bar-sub { font-size: 10px; }
    .chart-bar-amount,
    .chart-month .chart-bar-label { display: none; }
    .chart-month .chart-bar-group:not(:nth-child(5n+1)) .chart-bar-sub { font-size: 0; }

    .earnings-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .earnings-table,
    .earnings-table tbody,
    .earnings-table tr,
    .earnings-table td { display: block; width: 100%; box-sizing: border-box; }
    .earnings-table tr {
        margin-bottom: 10px;
        padding: 6px 12px;
        border: 1px solid var(--edge-soft);
        border-radius: 14px;
        background: var(--white);
    }
    .earnings-table td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        padding: 6px 0;
        border-bottom: 0;
        text-align: right;
        overflow-wrap: anywhere;
    }
    .earnings-table td::before {
        content: attr(data-label);
        flex: none;
        color: var(--muted);
        font-size: 13px;
        text-align: left;
    }
    .earnings-table tr:hover td { background: none; }
}

/* App.razor: the Access Restricted heading (was an inline style) */
.hc-title.hc-title-restricted { font-size: 3rem; margin-bottom: 8px; }

/* Staging test-site bar (config Site:TestBanner): fixed, never dismissible; fixed headers sit below it. */
:root:has(.test-banner) { --test-banner-h: 24px; }
body { padding-top: var(--test-banner-h, 0px); }
.test-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
    height: var(--test-banner-h); display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--white); font-size: 12px; letter-spacing: .02em;
}
