:root {
    --page: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #f1f4f6;
    --ink: #171b21;
    --muted: #68717d;
    --soft: #8a94a1;
    --line: #dfe4ea;
    --line-strong: #c7d0d9;
    --brand: #0f766e;
    --brand-strong: #0b5f59;
    --brand-soft: #e5f3f1;
    --accent: #2f5fcb;
    --accent-soft: #e9efff;
    --danger: #b42318;
    --danger-soft: #fff0ee;
    --warning: #a15c08;
    --warning-soft: #fff6e6;
    --success: #177245;
    --success-soft: #e7f6ed;
    --shadow: 0 16px 38px rgba(24, 31, 39, .08);
    --radius: 8px;
}

.public-shell:has(.public-booking-layout) { background: #fff; }
html:has(.public-booking-layout) { min-width: 0; }
.public-shell:has(.public-booking-layout) .store-topbar-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.public-shell:has(.public-booking-layout) .store-footer { width: min(1120px, calc(100% - 24px)); margin: 36px auto 0; padding: 20px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.seller-columns.booking-seller-columns { grid-template-columns: minmax(0, 1fr); }
.booking-seller-columns .seller-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 800px) { .booking-seller-columns .seller-details { grid-template-columns: minmax(0, 1fr); } }
.booking-store-heading { padding: 32px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.booking-store-identity { display: flex; align-items: center; gap: 18px; }
.booking-store-identity .store-logo, .booking-store-identity .store-logo-fallback { width: 72px; height: 72px; margin: 0; border-radius: 8px; flex: 0 0 auto; }
.booking-store-heading h1 { font-size: 30px; line-height: 1.2; margin: 6px 0 0; overflow-wrap: anywhere; }
.booking-eyebrow { font-size: 11px; font-weight: 700; color: var(--muted); }
.booking-description { max-width: 700px; color: var(--muted); margin: 18px 0 12px; overflow-wrap: anywhere; }
.public-booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.public-booking-calendar { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.availability-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.availability-table th { text-align: center; padding: 12px 0; font-size: 12px; color: var(--muted); background: #f8f9fa; }
.availability-table td { padding: 0; border: 1px solid var(--line); }
.availability-day { height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink); }
.availability-day:hover { background: #f5f7f8; color: var(--ink); }
.availability-day > time { font-size: 15px; font-weight: 600; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.availability-today { background: #20262b; color: white; }
.availability-state { font-size: 10px; display: inline-flex; align-items: center; gap: 5px; }
.availability-state i, .availability-legend i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; flex: 0 0 auto; }
.is-free .availability-state { color: #177245; }
.is-free i, .free-dot { background: #177245; }
.is-busy .availability-state { color: #b74c37; }
.is-busy i, .busy-dot { background: #b74c37; }
.is-past { color: #8a94a1; }
.is-past i, .past-dot { background: #8a94a1; }
.availability-selected .availability-day { box-shadow: inset 0 0 0 2px var(--brand); background: #edf7f5; }
.availability-table .outside-month { opacity: .55; }
.availability-legend { display: flex; flex-wrap: wrap; gap: 20px; padding: 16px; font-size: 11px; color: var(--muted); }
.availability-legend span { display: inline-flex; align-items: center; gap: 6px; }
.booking-day-detail { border-top: 3px solid var(--ink); padding-top: 20px; min-width: 0; }
.booking-day-detail h2 { font-size: 21px; margin: 8px 0 20px; }
.booking-day-detail h3 { font-size: 12px; margin: 24px 0 8px; }
.booking-day-status { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 13px; border-block: 1px solid var(--line); }
.booking-day-status.free { color: #177245; }
.booking-day-status.busy { color: #b74c37; }
.booking-day-status.past { color: var(--muted); }
.booking-busy-times { list-style: none; padding: 0; margin: 0; }
.booking-busy-times li { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.booking-busy-times li > span { margin-left: auto; color: #b74c37; font-size: 11px; }
.booking-day-detail p { font-size: 13px; margin: 18px 0; }
.booking-contact { width: 100%; white-space: normal; text-align: center; margin-top: 8px; font-size: 13px; }
.booking-contact.booking-cancel { color: var(--danger); border-color: var(--line); margin-top: 12px; }
.booking-contact.booking-cancel:hover { background: var(--danger-soft); border-color: var(--danger); }
@media (max-width: 800px) {
    .public-booking-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .booking-store-heading { padding: 18px 0 20px; margin-bottom: 20px; }
    .booking-store-heading h1 { font-size: 26px; }
    .availability-day { height: 60px; gap: 3px; }
}
@media (max-width: 380px) {
    .public-shell:has(.public-booking-layout) .store-topbar-label { max-width: 115px; font-size: 10px; }
    .availability-state { font-size: 9px; gap: 3px; }
    .availability-day { height: 60px; }
    .booking-store-identity { gap: 12px; }
    .booking-store-identity .store-logo, .booking-store-identity .store-logo-fallback { width: 56px; height: 56px; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--page);
    line-height: 1.5;
    letter-spacing: 0;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
img, svg { display: block; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { letter-spacing: 0; }
svg.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.skip-link {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 80;
    transform: translateY(-140%);
    background: var(--ink);
    color: #fff;
    padding: 10px 12px;
    border-radius: var(--radius);
}
.skip-link:focus { transform: translateY(0); }

.workspace { display: block; }
.workspace-body { min-height: 100vh; display: flex; flex-direction: column; }
.container {
    width: min(1180px, calc(100% - 28px));
    margin: 22px auto 44px;
    flex: 1;
}
.public-container {
    width: min(1120px, calc(100% - 24px));
    margin: 18px auto 52px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 850;
    font-size: 18px;
}
.brand:hover { color: var(--ink); }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
}
.brand-dot { color: var(--brand); }
.brand-mark.witrin-mark { background: #12826c; color: #fff; font-size: 23px; font-weight: 850; line-height: 1; border-radius: 8px 8px 8px 2px; }
.brand-mark.witrin-mark { position: relative; }

.auth-shell { background: #fbfcfd; }
.auth-main {
    width: min(920px, calc(100% - 28px));
    min-height: calc(100vh - 150px);
    margin: 0 auto;
    display: grid;
    align-items: center;
    padding: 28px 0 46px;
}
.auth-topbar,
.store-topbar {
    width: min(1180px, calc(100% - 28px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.auth-topbar nav,
.store-topbar nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.auth-footer,
.public-footer,
.workspace-footer {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--soft);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(288px, calc(100vw - 48px));
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    border-right: 1px solid var(--line);
    background: var(--surface);
    transform: translateX(-104%);
    transition: transform .18s ease;
    box-shadow: var(--shadow);
}
body.nav-open .sidebar { transform: translateX(0); }
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(14, 18, 23, .42);
}
.sidebar-brand,
.sidebar-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.workspace-identity {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}
.workspace-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand-strong);
}
.workspace-identity strong,
.account-identity strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workspace-identity span,
.account-identity span {
    display: block;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
}
.nav-label {
    margin: 0 2px -6px;
    color: var(--soft);
    font-size: 11px;
    font-weight: 800;
}
.side-nav { display: grid; gap: 4px; }
.nav-item {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    color: var(--muted);
    border-radius: var(--radius);
    font-weight: 760;
}
.nav-item:hover,
.nav-item.active {
    color: var(--ink);
    background: var(--surface-2);
}
.nav-item.active { box-shadow: inset 3px 0 0 var(--brand); }
.nav-item span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-lock { margin-left: auto; color: var(--warning); }
.sidebar-store-link a,
.sidebar-plan {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--ink);
}
.sidebar-store-link a { display: flex; align-items: center; justify-content: space-between; font-weight: 800; }
.sidebar-plan strong { font-size: 14px; }
.sidebar-plan a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.sidebar-account {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.account-identity {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}
.avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 850;
}
.small-avatar { width: 32px; height: 32px; font-size: 13px; }

.workspace-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}
.breadcrumb {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--soft);
    font-size: 13px;
}
.breadcrumb strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
}
.topbar-right { display: inline-flex; align-items: center; gap: 8px; }
.topbar-role {
    display: none;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.page-head.compact { margin-bottom: 12px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.eyebrow {
    margin: 0 0 6px;
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
    margin-bottom: 6px;
    font-size: 28px;
    line-height: 1.16;
    letter-spacing: 0;
}
h2 { margin-bottom: 10px; font-size: 19px; line-height: 1.25; }
h3 { margin-bottom: 6px; font-size: 16px; line-height: 1.3; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.stack { display: grid; gap: 14px; }
.section-stack { display: grid; gap: 18px; }
.fine-print { color: var(--muted); font-size: 13px; }

.button,
button.button,
.icon-button,
.tool-button,
.segmented a,
.file-input-label {
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}
.button,
button.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--brand);
    color: #fff;
    font-weight: 850;
    white-space: nowrap;
}
.button:hover { background: var(--brand-strong); color: #fff; }
.button.secondary {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
}
.button.secondary:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.danger,
.danger-button { background: var(--danger); color: #fff; }
.button.danger:hover,
.danger-button:hover { background: #8f1c14; color: #fff; }
.button.small,
.danger-button.small {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
}
.button.full { width: 100%; }
.button.disabled,
.button:disabled {
    background: #cbd5df;
    border-color: #cbd5df;
    color: #536171;
    cursor: not-allowed;
}
.icon-button,
.tool-button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}
.tool-button.danger { color: var(--danger); }
.icon-button:hover,
.tool-button:hover { background: var(--surface-2); }
.mobile-only { display: inline-grid; }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 8px 22px rgba(24, 31, 39, .05);
}
.alert.success { background: var(--success-soft); border-color: #bfe5ce; color: var(--success); }
.alert.error { background: var(--danger-soft); border-color: #ffd0ca; color: var(--danger); }

.panel,
.auth-card,
.plan-card,
.product-row,
.admin-strip,
.metric-strip,
.reference-box,
.empty {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.panel,
.auth-card,
.plan-card,
.reference-box,
.empty { padding: clamp(16px, 3vw, 24px); }
.panel.subtle { background: #fbfcfd; }
.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.panel-head p { margin-bottom: 0; }
.auth-card {
    width: min(430px, 100%);
    margin: 0 auto;
    box-shadow: var(--shadow);
}
.auth-card.wide { width: min(760px, 100%); }
.auth-symbol {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: var(--radius);
    color: var(--brand-strong);
    background: var(--brand-soft);
}
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.divider {
    height: 1px;
    margin: 4px 0;
    background: var(--line);
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
label span,
.field-label {
    display: block;
    margin-bottom: 6px;
    color: #2d3540;
    font-size: 13px;
    font-weight: 850;
}
input, textarea, select {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    outline: none;
}
textarea { resize: vertical; min-height: 106px; }
input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
}
label small { display: block; margin-top: 5px; color: var(--danger); }
.input-with-icon,
.password-field,
.search-field {
    position: relative;
    display: block;
}
.password-field input,
.search-field input { padding-right: 46px; }
.password-field .icon-button,
.search-field svg {
    position: absolute;
    right: 4px;
    top: 4px;
}
.search-field svg {
    top: 12px;
    right: 12px;
    color: var(--soft);
    pointer-events: none;
}
.label-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.checkline {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.checkline input { width: 18px; height: 18px; min-height: 18px; accent-color: var(--brand); }
.checkline span { margin: 0; }
.form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 6px;
}
.upload-box {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: #fbfcfd;
}
.upload-box input { padding: 0; border: 0; min-height: 0; background: transparent; }
.upload-preview,
.image-strip,
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 10px;
}
.upload-preview img,
.image-strip img,
.thumb-grid img,
.thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface-2);
}
.thumb { width: 82px; height: 82px; }

.stat-grid,
.metric-grid,
.two-col,
.plan-grid,
.dashboard-grid {
    display: grid;
    gap: 14px;
}
.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.stat,
.metric-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.stat span,
.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
.stat strong,
.metric-card strong {
    display: block;
    margin-top: 5px;
    font-size: 25px;
    line-height: 1.1;
}
.stat.locked strong { color: var(--soft); font-size: 18px; }
.metric-strip,
.admin-strip {
    display: grid;
    gap: 1px;
    overflow: hidden;
    background: var(--line);
}
.metric-strip > *,
.admin-strip > * {
    padding: 15px;
    background: var(--surface);
}

.action-list { display: grid; gap: 10px; }
.action-list.inline { display: flex; flex-wrap: wrap; gap: 9px; }
.store-link-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfd;
}
.store-link-row code { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }

.toolbar {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.segmented a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    color: var(--muted);
    font-weight: 800;
}
.segmented a.active { background: var(--ink); color: #fff; }

.product-list { display: grid; gap: 10px; }
.product-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
}
.product-row h2 { margin: 0 0 2px; font-size: 16px; }
.product-row p { margin: 0; color: var(--muted); font-size: 13px; }
.product-cover,
.public-cover,
.detail-main-image,
.placeholder {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--soft);
}
.product-cover { width: 72px; aspect-ratio: 1; }
.product-cover img,
.public-cover img,
.detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.row-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.empty {
    color: var(--muted);
    text-align: center;
    border-style: dashed;
}
.empty.hidden { display: none; }

.store-hero {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 18px 0 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}
.store-logo,
.store-logo-fallback {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
}
.store-logo-fallback {
    display: grid;
    place-items: center;
    color: var(--brand-strong);
    background: var(--brand-soft);
    font-size: 24px;
    font-weight: 900;
}
.store-hero h1 { margin-bottom: 4px; font-size: 27px; }
.store-hero p { margin-bottom: 6px; color: var(--muted); }
.public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.public-product {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
}
.public-product:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: 0 10px 26px rgba(24, 31, 39, .08); }
.public-cover { aspect-ratio: 1; }
.public-product strong {
    min-height: 42px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.35;
}
.public-product span { color: var(--brand-strong); font-weight: 900; }

.product-detail {
    display: grid;
    gap: 16px;
    padding-bottom: 34px;
}
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.back-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 850; color: var(--ink); }
.detail-media { display: grid; gap: 10px; }
.detail-main-image,
.placeholder { width: 100%; aspect-ratio: 4 / 3; }
.detail-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.detail-thumbs button {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
}
.detail-thumbs button.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(15, 118, 110, .16); }
.detail-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-copy {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.detail-copy h1 { margin-bottom: 0; }
.price { color: var(--brand-strong); font-size: 25px; font-weight: 950; }
.whatsapp { background: #128c7e; }
.whatsapp:hover { background: #0f766e; }

.chart {
    display: flex;
    align-items: end;
    gap: 5px;
    min-height: 190px;
    padding: 12px 0 0;
    border-bottom: 1px solid var(--line);
}
.bar {
    flex: 1 1 10px;
    min-width: 8px;
    max-width: 24px;
    border-radius: 6px 6px 0 0;
    background: var(--accent);
}
.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}
.rank-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.plan-grid { grid-template-columns: 1fr; margin-bottom: 18px; }
.plan-card { display: grid; gap: 12px; box-shadow: 0 10px 26px rgba(24, 31, 39, .05); }
.plan-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan-price { color: var(--brand-strong); font-size: 29px; font-weight: 950; }
.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.feature-list li { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.reference-box {
    display: grid;
    gap: 8px;
    text-align: center;
    overflow-wrap: anywhere;
    background: #fbfcfd;
}
.reference-box strong { font-size: 20px; }

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: var(--surface);
}
th, td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}
th {
    color: var(--muted);
    background: #fbfcfd;
    font-size: 12px;
    font-weight: 850;
}
tbody tr:last-child td { border-bottom: 0; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 25px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}
.badge.success,
.badge.pro { color: var(--success); background: var(--success-soft); }
.badge.failed { color: var(--danger); background: var(--danger-soft); }
.badge.pending { color: var(--warning); background: var(--warning-soft); }
.badge.active { color: var(--success); background: var(--success-soft); }
.badge.passive { color: var(--muted); background: var(--surface-2); }

.toast {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 90;
    max-width: min(360px, calc(100vw - 28px));
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow);
}
.confirm-dialog {
    width: min(420px, calc(100% - 28px));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.confirm-dialog::backdrop { background: rgba(14, 18, 23, .48); }
.dialog-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: var(--radius);
    color: var(--danger);
    background: var(--danger-soft);
}
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
    .page-head { display: grid; }
    .page-actions { justify-content: flex-start; }
    .store-link-row { grid-template-columns: 1fr; }
    .auth-links { display: grid; }
    .button:not(.small), button.button:not(.small) { width: 100%; white-space: normal; text-align: center; }
    .auth-topbar nav a:not(.button) { display: none; }
    .public-footer, .auth-footer, .workspace-footer { display: grid; }
}

@media (min-width: 720px) {
    h1 { font-size: 32px; }
    .grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .span-2 { grid-column: span 2; }
    .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1.25fr .75fr; }
    .metric-strip,
    .admin-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-row { grid-template-columns: 86px minmax(0, 1fr) auto; }
    .product-cover { width: 86px; }
    .row-actions { grid-column: auto; }
    .public-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-detail { grid-template-columns: 1.1fr .9fr; align-items: start; }
    .detail-header { grid-column: 1 / -1; }
    .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar-role { display: inline; }
    .toolbar { grid-template-columns: minmax(260px, 1fr) auto; align-items: center; }
}

@media (min-width: 1020px) {
    .sidebar {
        transform: none;
        box-shadow: none;
        width: 258px;
    }
    .workspace-body { padding-left: 258px; }
    .mobile-only { display: none; }
    .nav-overlay { display: none; }
    .workspace-topbar { padding: 10px 22px; }
    .container { width: min(1180px, calc(100% - 44px)); margin-top: 28px; }
    .public-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .admin-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.workspace .container { min-width: 0; }
.workspace .sidebar { overflow-y: auto; }
.workspace-identity { grid-template-columns: 42px minmax(0, 1fr); }
.workspace-identity > div { min-width: 0; }
.workspace-identity .workspace-avatar { display: grid; color: var(--brand-strong); }
.sidebar-account > form { flex: 0 0 auto; }
.account-identity .avatar { display: grid; color: #fff; font-size: 14px; }
.workspace .nav-item { font-size: 14px; font-weight: 600; }
.workspace .nav-item.active { color: var(--brand-strong); background: var(--brand-soft); }
.workspace .breadcrumb { flex: 1; }
.workspace .button { font-weight: 600; }
.workspace .button:focus-visible, .workspace a:focus-visible, .workspace button:focus-visible {
    outline: 2px solid var(--brand); outline-offset: 3px;
}
.workspace.nav-open { overflow: hidden; }
.overview { display: grid; gap: 28px; font-size: 14px; }
.overview-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.overview-head > div { min-width: 0; }
.overview-head h1 { font-size: 30px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.overview-head p { margin-bottom: 0; }
.overview-head .eyebrow { margin-bottom: 7px; font-size: 11px; font-weight: 600; }
.overview-head .muted { margin-top: 8px; }
.overview-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface); border-block: 1px solid var(--line);
}
.overview-stat { position: relative; min-width: 0; padding: 22px 20px; display: grid; align-content: start; gap: 7px; }
.overview-stat + .overview-stat { border-left: 1px solid var(--line); }
.stat-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; margin-bottom: 5px; }
.stat-icon.blue { color: #3866ba; background: #eef3fc; }
.stat-icon.green { color: #187a60; background: #eaf5ef; }
.stat-icon.amber { color: #a36a11; background: #fff5e4; }
.stat-label { display: block; color: #58626f; font-size: 12px; }
.overview-stat > strong { display: block; font-size: 30px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.overview-stat > .text-value { font-size: 24px; min-height: 36px; display: flex; align-items: center; }
.stat-note { color: var(--muted); font-size: 12px; }
.stat-note a { display: inline-flex; align-items: center; gap: 5px; }
.stat-note .icon { width: 13px; height: 13px; }
.overview-section { min-width: 0; background: var(--surface); border-block: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; }
.section-heading > div { min-width: 0; }
.section-heading h2 { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; font-weight: 650; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.count-tag { font-size: 11px; font-weight: 500; padding: 3px 8px; color: #86611d; background: #fff5e4; border-radius: 4px; }
.overview .search-field { width: 280px; max-width: 100%; }
.overview .search-field input { min-height: 38px; padding: 8px 35px 8px 12px; font-size: 12px; background: #fafbfc; border-color: var(--line); border-radius: 6px; }
.overview .search-field .icon { top: 11px; width: 16px; height: 16px; }
.overview-toolbar { padding: 0 20px 16px; display: flex; align-items: center; gap: 10px; }
.overview-toolbar select { width: 170px; min-height: 38px; font-size: 12px; padding: 8px; border-color: var(--line); border-radius: 6px; }
.overview-table-wrap { width: 100%; min-width: 0; overflow-x: auto; }
.overview-table { min-width: 0; table-layout: fixed; font-size: 13px; }
.overview-table th { padding: 11px 20px; background: #fafbfc; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; }
.overview-table td { padding: 16px 20px; overflow-wrap: anywhere; }
.overview-table tbody tr:hover { background: #fcfdfd; }
.overview-table .badge { font-size: 11px; font-weight: 600; border-radius: 4px; white-space: normal; }
.overview-table .badge .icon { width: 13px; height: 13px; }
.overview-table .align-right { text-align: right; }
.overview-table code { font-size: 11px; }
.user-table th:first-child { width: 33%; }
.user-table th:nth-child(2) { width: 20%; }
.user-table th:nth-child(3) { width: 17%; }
.payment-table th:first-child { width: 22%; }
.payment-table th:nth-child(2) { width: 22%; }
.payment-table th:nth-child(4) { width: 13%; }
.table-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.table-person > div { min-width: 0; }
.table-person strong { font-size: 13px; font-weight: 600; }
.person-avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; background: #eaf5ef; color: #187a60; border-radius: 50%; font-weight: 600; }
.person-avatar.admin-avatar { background: #edf2fc; color: #3866ba; }
.cell-subtext { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.table-person .cell-subtext { margin-top: 3px; font-size: 11px; }
.table-store-link, .role-label { display: inline-flex; align-items: center; gap: 5px; }
.table-store-link .icon, .role-label .icon { width: 14px; height: 14px; }
.role-label { color: var(--muted); font-size: 12px; }
.amount-cell { font-weight: 600; font-variant-numeric: tabular-nums; }
.overview-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 32px 20px 36px; border-top: 1px solid var(--line); }
.overview-empty h3 { font-size: 14px; font-weight: 600; margin: 5px 0 0; }
.overview-empty p { font-size: 12px; color: var(--muted); margin: 0; }
.overview-empty .button { margin-top: 8px; }
.empty-symbol { display: grid; place-items: center; width: 44px; height: 44px; background: #f1f4f6; border-radius: 8px; color: #7b8796; }
.empty-symbol .icon { width: 22px; height: 22px; }
.seller-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.seller-details { min-width: 0; display: grid; gap: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; flex-shrink: 0; }
.text-link .icon { width: 15px; height: 15px; }
.recent-product { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 34px; gap: 12px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.recent-cover { width: 52px; height: 52px; overflow: hidden; border-radius: 6px; background: var(--surface-2); color: var(--soft); display: grid; place-items: center; }
.recent-cover img { width: 100%; height: 100%; object-fit: cover; }
.recent-product h3 { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; margin-bottom: 5px; }
.recent-product-copy > span { font-size: 12px; color: var(--muted); }
.recent-product .tool-button { width: 34px; height: 34px; border-color: transparent; }
.recent-product .badge { font-size: 11px; font-weight: 500; border-radius: 4px; }
.store-summary-identity { display: flex; gap: 12px; align-items: center; padding: 0 20px 16px; }
.store-summary-identity > div { min-width: 0; overflow-wrap: anywhere; }
.store-summary-identity h3 { font-size: 16px; font-weight: 600; margin: 0 0 3px; }
.summary-logo { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #f4f8f6; color: var(--brand); }
.summary-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-summary-description { margin: 0; padding: 0 20px 16px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.store-contact { margin: 0; padding: 0 20px 16px; display: grid; gap: 12px; }
.store-contact > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; }
.store-contact dt { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.store-contact .icon { width: 14px; height: 14px; }
.store-contact dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.store-share { padding: 16px 20px; border-top: 1px solid var(--line); }
.store-share > div { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 8px; align-items: center; margin-top: 5px; }
.store-share a { font-size: 12px; overflow-wrap: anywhere; }
.store-share .tool-button { width: 34px; height: 34px; }
.quick-section .section-heading { padding-bottom: 8px; }
.quick-links { padding: 0 20px 12px; display: grid; }
.quick-links a { display: grid; grid-template-columns: 18px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid #eff1f4; font-size: 12px; color: #535e6b; }
.quick-links a:first-child { border-top: 0; }
.quick-links a:hover { color: var(--brand); }
.quick-links .icon:last-child { width: 14px; height: 14px; }
.overview-notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: var(--warning-soft); color: var(--warning); font-size: 12px; }
.overview-notice > a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1190px) {
    .seller-columns { grid-template-columns: minmax(0, 1fr); }
    .seller-details { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .overview-table td, .overview-table th { padding-inline: 12px; }
}
@media (max-width: 719px) {
    .overview { gap: 20px; }
    .overview-head { align-items: flex-start; flex-direction: column; gap: 16px; }
    .overview-head h1 { font-size: 26px; }
    .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-stat { padding: 16px; }
    .overview-stat:nth-child(3) { border-left: 0; }
    .overview-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .overview-stat > strong { font-size: 26px; }
    .overview-stat > .text-value { font-size: 21px; min-height: 32px; }
    .section-heading { flex-wrap: wrap; padding: 16px; }
    .section-heading > .search-field { width: 100%; }
    .overview-toolbar { padding-inline: 16px; flex-wrap: wrap; }
    .overview-toolbar .search-field { flex: 1 1 200px; }
    .overview-toolbar select { flex: 1 1 150px; }
    .overview-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .overview-table, .overview-table tbody { display: block; width: 100%; }
    .overview-table tr { display: grid; padding: 16px; border-top: 1px solid var(--line); gap: 10px; }
    .overview-table td { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 8px; padding: 0; border: 0; font-size: 12px; }
    .overview-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; }
    .overview-table td .badge, .overview-table td .role-label { justify-self: start; }
    .overview-table td.align-right { text-align: left; }
    .payment-table td:first-child .cell-subtext { grid-column: 2; }
    .overview-table .table-person { align-items: flex-start; }
    .seller-details { grid-template-columns: minmax(0, 1fr); }
    .recent-product { grid-template-columns: 44px minmax(0, 1fr) 32px; padding: 14px 16px; gap: 8px 10px; }
    .recent-cover { width: 44px; height: 44px; grid-row: span 2; }
    .recent-product .badge { grid-column: 2; grid-row: 2; justify-self: start; }
    .recent-product .tool-button { grid-column: 3; grid-row: 1 / 3; width: 32px; height: 32px; }
    .recent-product h3 { margin-bottom: 2px; }
    .seller-columns .section-heading { gap: 8px; }
    .seller-columns .section-heading h2 { font-size: 14px; }
    .overview-head .page-actions { width: 100%; justify-content: flex-start; }
    .breadcrumb > span { display: none; }
    .breadcrumb > .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sidebar { transition: none; }
}

.stat-icon.neutral { color: #66717f; background: #f0f2f5; }
.booking-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); background: #fff; }
.booking-summary > div { min-width: 0; padding: 16px 20px; display: grid; gap: 5px; }
.booking-summary > div + div { border-left: 1px solid var(--line); }
.booking-summary span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.booking-summary strong { font-size: 24px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.booking-columns { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(270px, 1fr); align-items: start; gap: 24px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px; flex-wrap: wrap; }
.calendar-toolbar h2 { margin: 0; font-size: 16px; font-weight: 650; }
.calendar-toolbar nav { display: flex; align-items: center; gap: 6px; }
.calendar-toolbar .tool-button { width: 34px; height: 34px; }
.calendar-table { min-width: 0; table-layout: fixed; width: 100%; }
.calendar-table th { padding: 10px 0; text-align: center; font-weight: 500; font-size: 11px; border-top: 1px solid var(--line); }
.calendar-table abbr { text-decoration: none; }
.calendar-table td { padding: 0; vertical-align: top; border: 1px solid var(--line); }
.calendar-table tr td:first-child { border-left: 0; }
.calendar-table tr td:last-child { border-right: 0; }
.calendar-day { display: flex; flex-direction: column; min-width: 0; height: 104px; padding: 6px; color: var(--ink); }
.calendar-day:hover { background: #f5f8fb; color: var(--ink); }
.calendar-day:focus-visible { outline-offset: -3px !important; }
.day-number { display: grid; place-items: center; width: 26px; height: 26px; font-size: 12px; margin-bottom: 5px; flex: 0 0 auto; }
.outside-month .day-number { color: var(--soft); }
.outside-month { background: #fcfcfd; }
.selected-day .calendar-day { box-shadow: inset 0 0 0 2px var(--brand); background: #f3f9f6; }
.today-cell .day-number { background: var(--brand); color: #fff; border-radius: 50%; font-weight: 600; }
.calendar-events { display: grid; gap: 4px; min-width: 0; }
.calendar-event { display: flex; gap: 4px; align-items: center; padding: 3px 4px; background: #edf3fc; color: #3866ba; border-radius: 3px; font-size: 10px; min-width: 0; line-height: 1.3; }
.calendar-event > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.calendar-event time { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.calendar-event.completed { color: #177245; background: #eaf5ef; }
.calendar-event.cancelled { color: #78808c; background: #f0f1f3; text-decoration: line-through; }
.more-events { font-size: 9px; color: var(--muted); }
.mobile-event-count { display: none; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 16px; font-size: 10px; color: var(--muted); }
.calendar-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend i { width: 6px; height: 6px; border-radius: 2px; background: #3866ba; }
.calendar-legend i.completed { background: #177245; }
.calendar-legend i.cancelled { background: #9199a5; }
.booking-agenda .section-heading .eyebrow { margin: 0 0 7px; }
.agenda-create { padding: 0 20px 16px; }
.agenda-entry { padding: 16px 20px; border-top: 1px solid var(--line); min-width: 0; }
.agenda-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.agenda-entry-head .tool-button { width: 32px; height: 32px; border-color: transparent; }
.appointment-time { font-size: 12px; font-weight: 600; color: #3866ba; font-variant-numeric: tabular-nums; }
.appointment-time small { display: block; font-size: 10px; font-weight: 400; }
.agenda-entry h3 { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; margin: 0 0 5px; }
.appointment-subject, .appointment-message { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; margin-bottom: 10px; }
.appointment-message { margin-top: 12px; white-space: normal; }
.appointment-phone { font-size: 12px; display: inline-block; overflow-wrap: anywhere; }
.badge.scheduled { color: #3866ba; background: #edf3fc; }
.badge.completed { color: #177245; background: #eaf5ef; }
.badge.cancelled { color: #78808c; background: #f0f1f3; }
.booking-agenda .badge { font-size: 10px; font-weight: 500; border-radius: 4px; }
.booking-form-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); align-items: start; gap: 24px; }
.booking-form { padding: 24px; }
.booking-form-heading h2 { margin: 0 0 18px; font-size: 16px; font-weight: 650; }
.booking-form-heading:not(:first-of-type) { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.booking-form label { min-width: 0; }
.booking-form label > span { font-size: 12px; font-weight: 600; }
.booking-form em { color: var(--soft); font-size: 10px; font-weight: 400; font-style: normal; margin-left: 4px; }
.booking-form input, .booking-form select, .booking-form textarea { min-width: 0; font-size: 14px; }
.booking-form .form-footer { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.busy-time { padding: 14px 20px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.busy-time strong { font-size: 12px; font-weight: 600; color: #3866ba; }
.busy-time > span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.upcoming-booking { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 1fr) minmax(0, 1fr) 16px; align-items: center; gap: 12px; padding: 14px 20px; color: var(--ink); border-top: 1px solid var(--line); font-size: 12px; }
.upcoming-booking > span { min-width: 0; overflow-wrap: anywhere; }
.upcoming-booking:hover { background: #fafcfb; }
.upcoming-date { display: flex; align-items: center; gap: 8px; color: var(--brand); }
.upcoming-date strong { font-size: 11px; font-weight: 600; }
.report-chart { padding: 12px 24px 24px; }
.report-chart .chart-svg { display: block; width: 100%; height: 180px; border-bottom: 1px solid var(--line); }
.chart-date-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 8px; }
.report-rank { padding: 0 20px 16px; font-size: 13px; }
.report-overview .booking-summary { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-bottom: 0; }
.user-table th:first-child { width: 28%; }
.user-table th:nth-child(2) { width: 17%; }
.user-table th:nth-child(3) { width: 14%; }
.user-table th:nth-child(4) { width: 17%; }

@media (max-width: 1190px) {
    .booking-columns { grid-template-columns: minmax(0, 1fr); }
    .booking-form-columns { grid-template-columns: minmax(0, 1.7fr) minmax(230px, 1fr); }
}
@media (max-width: 719px) {
    .booking-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .booking-summary > div { padding: 14px 16px; }
    .booking-summary > div:nth-child(3) { border-left: 0; }
    .booking-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .calendar-toolbar { padding: 14px 10px; }
    .calendar-toolbar h2 { font-size: 14px; }
    .calendar-toolbar nav { gap: 4px; }
    .calendar-toolbar .tool-button { width: 30px; height: 32px; }
    .calendar-day { height: 64px; padding: 5px 2px; align-items: center; }
    .day-number { width: 24px; height: 24px; font-size: 11px; margin-bottom: 3px; }
    .calendar-events { display: none; }
    .mobile-event-count { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 3px; background: #edf3fc; color: #3866ba; font-size: 9px; }
    .calendar-legend { gap: 12px; padding-inline: 10px; }
    .booking-form-columns { grid-template-columns: minmax(0, 1fr); }
    .booking-form { padding: 18px 16px; }
    .upcoming-booking { grid-template-columns: minmax(0, 1fr) 16px; gap: 6px; }
    .upcoming-booking > span { grid-column: 1; }
    .upcoming-booking > .icon { grid-column: 2; grid-row: 1 / 4; }
    .booking-overview .overview-head .button { max-width: 100%; white-space: normal; }
}
