:root {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

.calendar-toolbar { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin:20px 0; }
.calendar-date-nav { display:flex; gap:6px; }
.calendar-views { margin:0 0 0 auto; }
.calendar-key { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.8rem; flex-wrap:wrap; }
.calendar-key i { display:inline-block; width:14px; height:14px; border-radius:3px; }
.working-key { background:var(--mint); }.blocked-key { background:var(--request-soft); }
.closed-key { background:var(--surface-soft); }.appointment-key { background:var(--rose-soft); border:1px solid var(--rose-dark); }
.calendar-scroll { max-height:75vh; overflow:auto; border:1px solid var(--line); border-radius:16px; background:white; }
.time-calendar { display:grid; grid-template-columns:52px repeat(var(--day-count),minmax(0,1fr)); position:relative; min-height:1592px; }
.time-gutter { position:relative; color:var(--muted); font-size:.65rem; }
.time-gutter>span { position:absolute; right:6px; transform:translateY(-50%); }
.calendar-column { min-width:0; border-left:1px solid var(--line); }
.calendar-day-heading { height:56px; position:sticky; top:0; z-index:9; background:var(--surface); border-bottom:1px solid var(--line); text-align:center; font-size:.8rem; padding:8px 2px; }
.calendar-day-heading strong { display:block; margin-top:3px; }.calendar-day-heading.is-today { color:var(--rose-dark); background:var(--rose-soft); }
.calendar-day-body { height:1536px; position:relative; background:repeating-linear-gradient(to bottom,var(--gold-soft) 0px,var(--gold-soft) 31px,var(--gold-soft) 32px); }
.working-band { position:absolute; left:0; right:0; background:var(--success-soft); border-block:1px solid var(--success-soft); pointer-events:none; }
.windows-only { background:repeating-linear-gradient(135deg,var(--gold-soft),var(--gold-soft) 8px,var(--surface-soft) 8px,var(--surface-soft) 9px); }
.availability-window { position:absolute; left:0; right:0; background:var(--success-soft); border-block:1px solid var(--success-soft); pointer-events:none; }
.availability-label { position:absolute; right:0; top:0; z-index:2; max-width:100%; min-height:44px; padding:6px; border-radius:4px; background:var(--success-soft); color:var(--success); font-size:.65rem; pointer-events:auto; overflow-wrap:anywhere; }
.month-availability { display:block; background:var(--success-soft); padding:7px 4px; margin-top:5px; font-size:.7rem; }
.availability-selecting { background:var(--success-soft); z-index:8; border:2px solid var(--success); }
.availability-form { max-width:800px; }.availability-form>label { margin:16px 0; }
.open-slots,.slot-close-panel { max-width:800px; padding:24px; margin-block:20px; }
.open-slots h3 { margin:24px 0 8px; font-size:1rem; }
.open-slot-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:8px 0; border-bottom:1px solid var(--line); }
.open-slot-row.is-selected { padding-inline:8px; border-radius:8px; background:var(--rose-soft); }
.open-slots .slot-close-panel { margin:8px 0 16px; scroll-margin-top:88px; background:var(--paper); }
.slot-close-panel:focus-visible { outline:2px solid var(--rose-dark); outline-offset:2px; }
.slot-remove { min-width:48px; min-height:48px; font-size:1.5rem; }
.availability-mode-notice { background:var(--bg); color:var(--success); }
.report-meter { width:100%; height:18px; accent-color:var(--accent); }
.filter-bar label { min-width:0; }.filter-bar input[type=date] { max-width:100%; }
.calendar-slot { height:32px; position:absolute; left:0; right:0; z-index:1; border-bottom:1px solid var(--line-strong); }
.calendar-slot:hover,.calendar-slot:focus-visible { background:var(--accent); }
.calendar-buffer { position:absolute; left:2px; right:2px; z-index:2; background:repeating-linear-gradient(135deg,var(--gold-soft),var(--gold-soft) 4px,var(--gold-soft) 4px,var(--gold-soft) 8px); border-radius:4px; font-size:.65rem; overflow:hidden; pointer-events:none; }
.calendar-block { position:absolute; left:2px; right:2px; z-index:2; border:1px dashed var(--request-soft); border-radius:6px; background:repeating-linear-gradient(135deg,var(--request-soft),var(--request-soft) 5px,var(--request-soft) 5px,var(--request-soft) 10px); padding:4px; font-size:.7rem; overflow:hidden; }
.calendar-event { position:absolute; width:calc(100% / var(--lanes) - 3px); left:calc(100% / var(--lanes) * var(--lane) + 1px); z-index:3; border:1px solid var(--accent-soft); border-left:4px solid var(--rose); border-radius:7px; background:var(--rose-soft); overflow:hidden; padding:4px 2px; font-size:.73rem; min-height:30px; }
.calendar-event>a { display:flex; flex-direction:column; gap:3px; height:100%; overflow:hidden; padding-right:14px; overflow-wrap:anywhere; }
.calendar-event small { display:block; }.calendar-event.status-Pending { background:var(--sand); border-color:var(--gold-soft); }
.calendar-event.status-Cancelled,.calendar-event.status-NoShow { opacity:.55; border-style:dashed; text-decoration:line-through; }
.calendar-event.status-Completed { background:var(--mint); border-color:var(--success-soft); }
.event-drag,.event-resize { position:absolute; border:0; color:var(--rose-dark); background:transparent; width:22px; padding:0; cursor:grab; touch-action:none; }
.event-drag { right:0; top:0; height:26px; }.event-resize { bottom:0; right:0; height:18px; cursor:ns-resize; }
.event-moving { z-index:12; box-shadow:0 4px 12px var(--line-strong); opacity:.8; }
.current-time { position:absolute; left:0; right:0; border-top:2px solid var(--warning); z-index:5; pointer-events:none; }
.current-time span { font-size:.65rem; color:var(--warning); background:white; position:absolute; right:0; top:-14px; }
.month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.month-day { min-width:0; padding:10px; min-height:150px; }.month-day h2 { font-family:inherit; font-size:.8rem; font-weight:600; }.outside-month { opacity:.55; }
.month-event,.month-block { display:block; border-radius:5px; padding:7px 4px; margin-top:5px; background:var(--rose-soft); font-size:.7rem; overflow-wrap:anywhere; }
.month-block { background:var(--lavender); }.month-event.status-Cancelled { text-decoration:line-through; opacity:.6; }
.month-day .touch-link { font-size:.7rem; }
.service-selector { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:16px; max-height:360px; overflow:auto; }
.crm-form .service-choice { flex-direction:row; align-items:center; padding:12px; border:1px solid var(--line); border-radius:12px; min-height:60px; }
.service-choice input[type="checkbox"] { width:22px; height:22px; flex:none; accent-color:var(--rose-dark); }
.service-choice small { display:block; margin-top:5px; }.appointment-estimate { display:block; background:var(--mint); padding:16px; margin-top:20px; border-radius:12px; font-weight:600; }
[hidden] { display:none !important; }
@media(max-width:760px) {
    .calendar-toolbar>strong { order:-1; width:100%; }.calendar-views { margin:0; width:100%; gap:4px; }.calendar-views a { padding:10px 12px; }
    .time-calendar { grid-template-columns:42px repeat(var(--day-count),minmax(0,1fr)); }.calendar-event { font-size:.7rem; }
    .month-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.month-day { padding:12px; }
    .service-selector { grid-template-columns:1fr; }.event-drag { width:30px; height:30px; }.event-resize { width:36px; height:24px; }
    .calendar-page .module-heading { flex-direction:row; align-items:center; gap:10px; margin-bottom:12px; }
    .calendar-page .module-heading .eyebrow,.calendar-page .page-subtitle,.calendar-interaction-help { display:none; }
    .calendar-page h1 { font-size:1.65rem; margin:0; }
    .calendar-page .module-heading .button { width:auto; max-width:160px; min-height:44px; font-size:.75rem; padding:8px 10px; }
    .calendar-page .calendar-toolbar { margin:8px 0; gap:8px; }
    .calendar-page .calendar-toolbar>strong { order:0; width:auto; font-size:.8rem; }
    .calendar-page .calendar-views a { min-height:44px; padding:10px 12px; }
    .calendar-page .profile-actions { gap:8px; margin:8px 0; }
    .calendar-page .filter-bar { padding:10px; display:flex; flex-direction:row; align-items:end; gap:8px; margin-bottom:12px; }
    .calendar-page .filter-bar .search-field { font-size:0; gap:0; min-width:0; flex:1 1 0; }
    .calendar-page .search-field input { font-size:16px; min-width:0; }
    .calendar-page .filter-bar .button { min-height:46px; flex:none; width:auto; }
    .calendar-page .calendar-views { margin:0; }
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--paper); }
html:has(.public-site) { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
.service-image-preview { display:block; width:min(100%,480px); aspect-ratio:8/5; margin-bottom:20px; background:var(--public-soft); object-fit:cover; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, select { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
h1 { margin-bottom: .45rem; font-size: clamp(1.8rem, 3.2vw, 2.35rem); font-weight: 600; }
h2 { margin-bottom: .3rem; font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.04rem; }
h1[tabindex="-1"]:focus { outline:none; }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 252px; flex-direction: column;
    padding: 28px 18px 18px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto;
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 14px 14px 14px 5px; background: var(--rose); color: white; font: 600 1.65rem Georgia, serif; }
.brand-copy { display: flex; min-width:0; flex-direction: column; line-height: 1; }
.brand-copy strong { font: 600 1.32rem Georgia, serif; letter-spacing: -.05em; }
.brand-copy small { margin-top: 5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .19em; }
.studio-switcher { display: flex; min-width: 0; align-items: center; gap: 10px; margin: 34px 0 20px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 13px; }
.studio-avatar, .profile-avatar { display: grid; flex: 0 0 auto; width: 35px; height: 35px; place-items: center; border-radius: 12px; background: var(--rose-soft); color: var(--rose-dark); font-weight: 700; }
.studio-name, .profile-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.studio-name strong, .profile-copy strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.studio-name small, .profile-copy small { color: var(--muted); font-size: .7rem; }
.chevron { color: var(--muted); }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: .86rem; font-weight: 600; transition: transform .15s ease, background .15s ease; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--rose-dark); color: var(--surface); box-shadow: 0 5px 14px var(--accent); }
.button-primary:hover { background: var(--warning); }
.button-secondary { border-color: var(--accent-soft); background: var(--surface); color: var(--rose-dark); }
.plus-icon { font-size: 1.2rem; font-weight: 400; line-height: 1; }
.new-appointment { width: 100%; justify-content: flex-start; margin-bottom: 24px; }
.new-appointment:disabled { margin-bottom:8px; }
.feature-availability { color:var(--muted); font-size:.75rem; line-height:1.5; margin-bottom:20px; }
button:disabled, .feature-disabled, input:disabled, select:disabled, textarea:disabled { opacity:1; background:var(--gold-soft); color:var(--ink-2); border-color:var(--line-strong); box-shadow:none; cursor:not-allowed; }
button:disabled:active { transform:none; }
button.quick-action { width:100%; text-align:left; border:0; background:transparent; color:inherit; }
button.mobile-add { border:0; }
.primary-nav { display: grid; gap: 5px; }
.nav-link { display: flex; min-height: 44px; align-items: center; gap: 13px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-size: .88rem; font-weight: 500; }
.nav-link:hover { background: var(--gold-soft); color: var(--ink); }
.nav-link.active { background: var(--rose-soft); color: var(--rose-dark); font-weight: 600; }
.nav-icon { display: inline-grid; width: 21px; place-items: center; font-size: 1.1rem; }
.sidebar-bottom { display: grid; gap: 10px; margin-top: auto; }
.language-form select { max-width: 100%; padding: 9px 28px 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: .78rem; }
.page-language-toolbar { display:grid; grid-template-columns:minmax(120px,1fr) auto auto; gap:12px 16px; align-items:center; width:min(1480px,100%); min-height:64px; margin:0 auto; padding:10px clamp(12px,2vw,32px); }
.page-language-toolbar .language-form { display:flex; margin:0; max-width:100%; }
.page-language-toolbar .language-form select { min-height:44px; padding:8px 34px 8px 12px; border-radius:8px; font:inherit; }
@media (max-width:759px) {
    .page-language-toolbar { grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; }
    .page-language-toolbar .page-navigation { grid-column:1 / -1; }
    .page-language-toolbar .language-form select { max-width:132px; }
}
@media (min-width:760px) and (max-width:1099px) {
    .main-content .page-language-toolbar { grid-template-columns:minmax(0,1fr) auto; }
    .main-content .page-language-toolbar .page-navigation { grid-column:1 / -1; }
}
.profile-context { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 10px 6px 2px; border-top: 1px solid var(--line); }
.profile-menu { color: var(--muted); }
.logout-form { padding-left: 5px; }
.logout-button { padding: 7px 4px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .76rem; }
.logout-button:hover { color: var(--rose-dark); }
.invitation-account-context { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--gold-soft); color: var(--muted); font-size: .84rem; }
.invitation-account-context strong { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.invitation-account-context form { margin-left: auto; }
.main-content { min-height: 100vh; margin-left: 252px; }
.page-content { width: min(1320px, 100%); margin: 0 auto; padding: 42px clamp(22px, 4vw, 58px) 54px; }
.mobile-header, .mobile-nav { display: none; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.eyebrow { margin-bottom: 9px; color: var(--rose-dark); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.page-subtitle { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.summary-card, .panel { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.summary-card { min-width: 0; padding: 17px 18px 16px; }
.summary-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.summary-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--ink-2); }
.blush { background: var(--rose-soft); }.sand { background: var(--sand); }.mint { background: var(--mint); }.lavender { background: var(--lavender); }
.summary-value { display: block; margin-top: 12px; font-size: 1.65rem; font-weight: 600; letter-spacing: -.04em; }
.summary-footnote { color: var(--muted); font-size: .72rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(265px, .9fr); gap: 18px; align-items: start; }
.panel { padding: 21px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.text-link { flex: 0 0 auto; color: var(--rose-dark); font-size: .8rem; font-weight: 600; }
.empty-schedule { display: flex; min-height: 340px; flex-direction: column; align-items: center; justify-content: center; padding: 35px 20px; text-align: center; }
.empty-illustration { position: relative; display: grid; width: 84px; height: 84px; place-items: center; margin-bottom: 18px; border-radius: 26px; background: var(--accent-soft); color: var(--rose); }
.empty-calendar { font-size: 2.1rem; }
.empty-sun { position: absolute; top: 6px; right: 8px; color: var(--gold-ink); font-size: 1.3rem; }
.empty-schedule h3 { margin-bottom: 7px; }
.empty-schedule p { max-width: 280px; margin-bottom: 17px; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.side-panels { display: grid; gap: 16px; }
.compact { align-items: center; }
.compact h2 { font-size: 1.2rem; }
.compact p { font-size: .76rem; }
.panel-heading-icon { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 11px; background: var(--rose-soft); color: var(--rose-dark); }
.next-client-empty { display: flex; align-items: center; gap: 13px; margin-top: 20px; padding: 16px 12px; border-radius: 12px; background: var(--gold-soft); }
.next-client-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--rose-soft); color: var(--rose-dark); }
.next-client-empty p { margin: 0; color: var(--muted); font-size: .8rem; }
.quick-actions-panel { padding-bottom: 12px; }
.quick-actions-panel .panel-heading { margin-bottom: 9px; }
.quick-action { display: flex; min-height: 52px; align-items: center; gap: 11px; border-top: 1px solid var(--accent-soft); font-size: .82rem; font-weight: 500; }
.quick-action-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; color: var(--rose-dark); font-size: 1rem; }
.quick-action-arrow { margin-left: auto; color: var(--line-strong); }
.auth-card { width: min(440px, calc(100% - 32px)); margin: 12vh auto; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.auth-card p { color: var(--muted); }
.login-page { display: grid; min-height: 100vh; grid-template-columns: 1fr 1fr; background: var(--surface); }
.login-page.public-booking-page { grid-template-columns: 1fr; }
.onboarding-page { overflow-wrap: anywhere; }
.onboarding-page > .login-form-panel { min-width: 0; }
.public-booking-page { min-height: 100vh; background: var(--paper); }
.public-booking-page .login-form-panel { display: block; padding: 28px clamp(16px, 4vw, 48px) 48px; }
.public-booking-page .login-form-wrap { width: min(100%, 1040px); margin-inline: auto; }
.booking-header { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.booking-header .eyebrow { margin: 0 0 3px; }
.booking-header h1 { margin: 0; font: 500 clamp(1.8rem, 3vw, 2.5rem)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.booking-studio-logo { display: block; width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%; object-fit: contain; background: var(--surface); }
.pilot-support { max-width:76rem; margin:24px auto; padding:16px 24px; font-size:1rem; line-height:1.6; }
.pilot-support p { margin:8px 0; }
.booking-contact { margin: 0 0 14px; color: var(--muted); font-size: .82rem; }
.booking-search-option { min-width:0; margin:0; padding:16px; border:1px solid var(--line); border-radius:12px; }
.booking-search-option legend { padding-inline:6px; font-size:1rem; font-weight:600; }
.booking-search-option .button { width:100%; margin-top:12px; white-space:normal; }
.booking-current-selection { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--rose-dark); background: var(--rose-soft); color: var(--ink); font-size: .84rem; }
.booking-current-selection strong { margin-right: 5px; color: var(--rose-dark); }
.public-booking-page .notice { margin: 12px 0; padding: 10px 13px; border-radius: 8px; font-size: .82rem; }
.public-booking-page .notice[data-pilot-registration] { font-size: 1rem; }
.public-booking-page .crm-form { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px 16px; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.public-booking-page .crm-form label { min-width: 0; gap: 5px; margin: 0; }
.public-booking-page .crm-form .form-control { min-width: 0; font-size: 16px; }
.public-booking-page .booking-selection-form > button { grid-column: 1 / -1; width: 100%; margin-top: 2px; }
.public-booking-page .booking-selection-form .button { background: var(--rose-dark); color: var(--surface); }
.public-booking-page .booking-selection-form .button:hover { background: var(--warning); }
.public-booking-page .booking-selection-form input[type="hidden"] { display: none; }
.public-booking-page .crm-form[data-public-booking] { margin-top: 14px; }
.public-booking-page .crm-form[data-public-booking] button,
.public-booking-page [data-booking-confirm] button { grid-column: 1 / -1; }
.public-booking-page .crm-form[data-public-booking] button { background: var(--rose-dark); color: var(--surface); }
.public-booking-page .empty-inline { margin: 14px 0 0; }
.booking-studio-work { margin-top: 18px; }
.booking-masters { margin-top: 28px; }
.booking-masters > h2 { margin-bottom: 10px; font: 500 1.35rem/1.2 Georgia, "Times New Roman", serif; }
.booking-master { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.booking-master-profile { display: block; width: 72px; height: 82px; border-radius: 8px; object-fit: cover; }
.booking-master-info { min-width: 0; }
.booking-master h3 { margin: 0; font: 600 1.1rem/1.25 Georgia, "Times New Roman", serif; }
.booking-master-title { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.booking-master-services { margin: 5px 0 0; color: var(--rose-dark); font-size: .76rem; font-weight: 600; }
.booking-master-bio { margin: 5px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.booking-master > .button { min-height: 44px; }
.booking-portfolio { margin-top: 7px; }
.booking-portfolio > summary { width: fit-content; min-height: 36px; padding: 7px 0; color: var(--rose-dark); cursor: pointer; font-size: .78rem; font-weight: 600; }
.booking-portfolio-grid { display: flex; max-width: 100%; gap: 8px; margin-top: 4px; overflow-x: auto; }
.booking-portfolio-grid img { display: block; width: 112px; height: 104px; flex: 0 0 112px; border-radius: 6px; object-fit: cover; }
.booking-portfolio-grid img:nth-child(n+4) { display: none; }
.public-booking-page [data-booking-management] { margin-top: 10px; }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 44px clamp(26px, 6vw, 90px); background: var(--accent-soft); }
.login-brand > p { max-width: 370px; margin: auto 0 12vh; color: var(--muted); font: 500 clamp(1.35rem, 2.5vw, 2.15rem) Georgia, serif; line-height: 1.45; }
.login-art { position: absolute; inset: 22% 9% 20%; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 4rem; }
.login-art span:nth-child(2) { position: absolute; top: 18%; right: 14%; font-size: 2rem; }
.login-art span:nth-child(3) { position: absolute; bottom: 13%; left: 14%; font-size: 2rem; }
.login-form-panel { display: grid; place-items: center; padding: 32px; }
.login-form-wrap { width: min(390px, 100%); }
.owner-registration-page .owner-registration-wrap { width: min(100%, 480px); }
.owner-registration-page .owner-registration-wrap h1 { margin-top: 0; }
.owner-registration-toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.owner-registration-toolbar .language-form { display: flex; gap: 0; margin: 0; }
.owner-registration-toolbar .language-form select { min-height: 44px; max-width: 100%; padding: 8px 34px 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.booking-address-input { display: flex; align-items: center; gap: 8px; min-width: 0; }
.booking-address-input input { min-width: 0; flex: 1; }
.booking-address-input span { flex-shrink: 0; font-size: .85rem; }
.booking-address-preview { overflow-wrap: anywhere; }
[data-address-status] { overflow-wrap: anywhere; min-height: 1.5em; }
.login-form-wrap h1 { margin-top: 6px; }
.login-form-wrap form { display: grid; gap: 9px; margin-top: 28px; }
.login-form-wrap label { margin-top: 9px; font-size: .82rem; font-weight: 600; }
.studio-booking-logo { display: block; width: auto; max-width: min(220px, 100%); max-height: 120px; object-fit: contain; margin: 12px auto 20px; }
.media-section { margin-block: 24px; }
.media-grid, .public-booking-page .public-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-block: 20px; }
.media-grid > .panel { min-width: 0; overflow-wrap: anywhere; }
.media-preview, .public-booking-page .public-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.media-section input[type="file"] { padding: 12px; max-width: 100%; }
.form-control { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--accent-soft); border-radius: 10px; outline: none; background: var(--surface); color: var(--ink); }
.form-control:focus { border-color: var(--rose); box-shadow: 0 0 0 3px var(--accent); }
.login-submit { width: 100%; margin-top: 15px; }
.form-error, .validation-message { color: var(--warning); font-size: .8rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

#blazor-error-ui { position: fixed; z-index: 50; right: 1rem; bottom: 1rem; display: none; max-width: calc(100% - 2rem); padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
#blazor-error-ui .reload { margin-left: 12px; color: var(--rose-dark); }
#blazor-error-ui .dismiss { margin-left: 10px; cursor: pointer; }
#blazor-error-ui .blazor-error-boundary { display: none; }

@media (max-width: 1100px) {
    .sidebar { width: 220px; padding-inline: 14px; }
    .main-content { margin-left: 220px; }
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: minmax(0, 1.3fr) minmax(240px, .9fr); }
}

@media (max-width: 760px) {
    body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .mobile-header { position: sticky; top: 0; z-index: 15; display: flex; flex-wrap:wrap; gap:8px; min-height: 62px; align-items: center; justify-content: space-between; padding: 8px 17px; border-bottom: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(12px); }
    .mobile-header .brand-mark { width: 33px; height: 33px; }
    .mobile-header .brand { min-width:0; max-width:100%; }
    .mobile-header .brand-copy strong { font-size: 1.18rem; }
    .mobile-header .language-form select { max-width: 122px; padding: 8px 22px 8px 8px; font-size: .72rem; }
    .page-content { padding: 26px 16px 28px; }
    .welcome-row { align-items: flex-start; margin-bottom: 20px; }
    .welcome-row .eyebrow { font-size: .65rem; }
    .welcome-row h1 { font-size: 1.85rem; }
    .welcome-row .page-subtitle { max-width: 270px; font-size: .82rem; line-height: 1.5; }
    .desktop-new-appointment { display: none; }
    .summary-grid { gap: 10px; margin-bottom: 13px; }
    .summary-card { padding: 13px 12px; border-radius: 13px; }
    .summary-card-top { align-items: flex-start; font-size: .69rem; }
    .summary-icon { width: 27px; height: 27px; border-radius: 9px; }
    .summary-value { margin-top: 9px; font-size: 1.42rem; }
    .summary-footnote { font-size: .67rem; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 12px; }
    .panel { padding: 16px; border-radius: 14px; }
    .panel-heading h2 { font-size: 1.2rem; }
    .panel-heading p { max-width: 220px; font-size: .73rem; line-height: 1.4; }
    .empty-schedule { min-height: 275px; padding: 24px 12px; }
    .empty-illustration { width: 72px; height: 72px; }
    .side-panels { gap: 12px; }
    .mobile-nav { position: fixed; inset: auto 0 0; z-index: 30; display: grid; min-height: calc(64px + env(safe-area-inset-bottom)); grid-template-columns: repeat(var(--mobile-nav-count,5), minmax(0,1fr)); align-items: center; padding: 5px 9px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -6px 20px var(--warning); backdrop-filter: blur(12px); }
    .mobile-nav-link { display: flex; min-width: 0; min-height:44px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: .63rem; }
    .mobile-nav-link .nav-icon { height: 24px; font-size: 1.15rem; }
    .mobile-nav-link.active { color: var(--rose-dark); font-weight: 700; }
    .mobile-add { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 15px; background: var(--rose-dark); box-shadow: 0 4px 12px var(--accent); color: white; font-size: 1.7rem; }
    .login-page { grid-template-columns: 1fr; }
    .login-brand { min-height: 190px; padding: 24px; }
    .login-brand .login-art { inset: 20px 14% 16px auto; width: 130px; height: 130px; font-size: 2.7rem; }
    .login-brand > p { max-width: 190px; margin: 26px 0 0; font-size: 1.08rem; }
    .login-form-panel { align-items: start; padding: 34px 22px; }
    .public-booking-page .login-form-panel { padding: 22px 18px 40px; }
    .public-booking-page .crm-form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .booking-master { grid-template-columns: 62px minmax(0, 1fr); gap: 10px 12px; }
    .booking-master-profile { width: 62px; height: 72px; }
    .booking-master > .button { grid-column: 1 / -1; justify-self: stretch; }
}

@media (max-width: 360px) {
    .page-content { padding-inline: 12px; }
    .summary-card { padding-inline: 9px; }
    .summary-card-top { font-size: .64rem; }
    .mobile-nav { padding-inline: 5px; }
    .public-booking-page .login-form-panel { padding-inline: 12px; }
    .public-booking-page .crm-form { gap: 10px; padding: 13px; }
    .booking-header { gap: 11px; }
    .booking-studio-logo { width: 52px; height: 52px; }
    .booking-portfolio-grid img { width: 100px; height: 82px; flex-basis: 100px; }
}

@media (min-width: 761px) {
    .public-booking-page .booking-selection-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-booking-page .crm-form[data-public-booking] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.public-site) { scroll-behavior: auto !important; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* CRM: cards and single-column touch forms stay within a narrow viewport. */
.module-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.module-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; }
.module-tabs a { display:flex; align-items:center; min-height:44px; padding:10px 18px; border-radius:12px; color:var(--muted); }
.module-tabs a.active { background:var(--rose-soft); color:var(--rose-dark); font-weight:600; }
.filter-bar { display:flex; align-items:flex-end; flex-wrap:wrap; gap:14px; margin-bottom:22px; }
.filter-bar label { min-width:130px; flex:1; }
.filter-bar .search-field { flex:3; min-width:180px; }
.filter-bar label, .crm-form label { display:flex; flex-direction:column; gap:8px; font-size:.86rem; font-weight:600; }
.filter-bar .form-control { margin-top:2px; }
.result-count, .muted, .empty-inline { color:var(--muted); font-size:.86rem; line-height:1.6; }
.record-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.record-top { display:flex; align-items:center; gap:12px; min-width:0; }
.record-top>div { flex:1; min-width:0; }
.record-top h2 { font-family:inherit; font-size:1.08rem; overflow-wrap:anywhere; }
.record-top p { color:var(--muted); font-size:.82rem; margin-bottom:4px; overflow-wrap:anywhere; }
.client-initial { display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:16px; background:var(--rose-soft); color:var(--rose-dark); font-size:1.2rem; }
.card-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:22px 0; }
.card-metrics dt { color:var(--muted); font-size:.76rem; margin-bottom:4px; }
.card-metrics dd { margin:0; font-size:.9rem; font-weight:600; overflow-wrap:anywhere; }
.record-footer { display:flex; align-items:center; gap:12px; justify-content:space-between; flex-wrap:wrap; }
.badge { display:inline-flex; padding:5px 10px; border-radius:9px; background:var(--mint); color:var(--success); font-size:.72rem; }
.badge.warning { background:var(--sand); color:var(--gold-ink); }
.touch-link { display:inline-flex; min-height:44px; align-items:center; }
.empty-module { text-align:center; padding:48px 20px; }
.empty-module p { color:var(--muted); max-width:440px; margin:12px auto 24px; line-height:1.6; }
.empty-symbol { display:grid; place-items:center; width:64px; height:64px; border-radius:22px; margin:0 auto 20px; background:var(--rose-soft); color:var(--rose-dark); font:2rem Georgia,serif; }
.back-link { display:inline-flex; min-height:44px; align-items:center; color:var(--rose-dark); margin-bottom:14px; font-size:.86rem; }
.crm-form { display:grid; gap:20px; max-width:100%; }
.form-section h2 { margin-bottom:20px; }
.settings-sections a { border:1px solid var(--line); background:var(--card); overflow-wrap:anywhere; }
#studio-details, #branding-photos, #public-website, #locations-language, #booking-preferences { scroll-margin-top:120px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.full-width { grid-column:1 / -1; }
textarea.form-control { min-height:110px; padding:12px; resize:vertical; font:inherit; }
.crm-form small { color:var(--muted); font-weight:400; line-height:1.5; }
.crm-form .check-label { display:flex; flex-direction:row; align-items:center; min-height:44px; margin-top:12px; }
.check-label input { width:22px; height:22px; flex:none; accent-color:var(--rose-dark); }
.form-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; padding:10px 0 18px; }
.notice { padding:18px 20px; border:1px solid var(--line); border-radius:14px; margin-bottom:20px; line-height:1.6; overflow-wrap:anywhere; }
.notice h2 { font-size:1.1rem; }
.notice p:last-child { margin-bottom:0; }
.error-notice { background:var(--accent-soft); color:var(--danger); border-color:var(--accent-soft); }
.success-notice { background:var(--mint); color:var(--success); }
.warning-notice { background:var(--sand); color:var(--gold-ink); }
.pagination { display:flex; justify-content:center; align-items:center; gap:18px; margin-top:26px; }
.profile-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:22px; }
.profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.profile-section { margin-top:18px; }
.details-list { display:grid; grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr); gap:14px; font-size:.86rem; }
.details-list dt { color:var(--muted); }
.details-list dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.small-id { font-size:.72rem; }
.preserve-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.timeline-note { border-top:1px solid var(--line); padding:16px 0 4px; margin-top:12px; }
.timeline-note p { margin:8px 0; }
.timeline-note .record-footer { color:var(--muted); font-size:.8rem; }
.sensitive-section summary { cursor:pointer; font-weight:600; min-height:32px; }
.service-dot { width:14px; height:38px; border-radius:8px; flex:none; background:var(--service-color); }
.service-description { color:var(--muted); font-size:.86rem; line-height:1.6; margin-top:16px; overflow-wrap:anywhere; }
.color-input { padding:5px; max-width:160px; }
.category-row { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:14px 0; border-bottom:1px solid var(--line); }
.category-row h2 { flex:1; min-width:120px; font-family:inherit; font-size:1rem; overflow-wrap:anywhere; margin:0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline:3px solid var(--rose-dark); outline-offset:3px; }
@media (max-width:900px) { .record-grid, .profile-grid { grid-template-columns:1fr; } }
@media (max-width:600px) {
    .module-heading { align-items:flex-start; flex-direction:column; gap:16px; }
    .module-heading>.button { width:100%; }
    .form-grid { grid-template-columns:1fr; gap:18px; }
    .filter-bar { gap:12px; padding:16px; }
    .filter-bar .search-field { flex-basis:100%; min-width:0; }
    .filter-bar label { min-width:0; flex-basis:40%; }
    .filter-bar>.button { width:100%; }
    .crm-form .form-control, .filter-bar .form-control, .report-filter .form-control { font-size:16px; min-width:0; }
    .record-grid { gap:12px; }
    .record-top { flex-wrap:wrap; }
    .form-actions { position:sticky; bottom:70px; background:var(--paper); padding:12px 0; z-index:5; }
    .form-actions>* { flex:1; }
    .crm-summary .summary-card { font-size:.76rem; }
    .crm-summary .summary-value { font-size:1.3rem; }
    .details-list { grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr); gap:12px; }
    .mobile-nav-link { min-height:44px; }
}
.client-photo { display: block; width: 100%; height: 220px; object-fit: contain; border-radius: 12px; background: var(--surface-soft, var(--gold-soft)); }
.photo-grid .record-card { overflow: hidden; }
.report-filter { flex-wrap: wrap; }
input[type="file"] { max-width: 100%; }

/* Compact internal workspaces; public booking and marketing retain their presentation. */
.management-surface { --shadow: none; }
.management-surface .page-content { width:min(1480px,100%); padding:24px clamp(16px,2.5vw,36px) 32px; }
.management-surface h1, .management-surface h2 { font-family:inherit; letter-spacing:-.015em; }
.management-surface h1 { font-size:clamp(1.5rem,2.2vw,1.85rem); }
.management-surface h2 { font-size:1.05rem; }
.management-surface .sidebar { padding-top:20px; }
.management-surface .studio-switcher { margin:20px 0 12px; padding:8px 10px; }
.management-surface .workspace-actions { gap:6px; margin-bottom:12px; }
.management-surface .new-appointment { margin-bottom:16px; }
.management-surface .primary-nav { gap:2px; }
.management-surface .panel, .management-surface .summary-card { border-radius:8px; box-shadow:none; }
.management-surface .panel { padding:14px; }
.management-surface .button { min-height:44px; box-shadow:none; }
.management-surface .module-heading, .management-surface .welcome-row { gap:12px; margin-bottom:16px; }
.management-surface .eyebrow { margin-bottom:5px; letter-spacing:.05em; }
.management-surface .page-subtitle { font-size:.86rem; line-height:1.5; }
.management-surface .module-tabs { gap:4px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.management-surface .module-tabs a { padding:8px 12px; border-radius:4px 4px 0 0; border-bottom:2px solid transparent; }
.management-surface .module-tabs a.active { background:transparent; border-bottom-color:var(--rose-dark); }
.management-surface .filter-bar, .management-surface .report-filter { gap:10px; margin-bottom:14px; padding:12px; }
.management-surface .filter-bar label, .management-surface .crm-form label { gap:5px; }
.management-surface .form-control { min-height:44px; border-radius:6px; }
.management-surface .crm-form, .management-surface .form-grid { gap:14px; }
.management-surface .form-section h2 { margin-bottom:12px; }
.management-surface .profile-actions { gap:8px; margin-bottom:12px; }
.management-surface .profile-grid { gap:12px; }
.management-surface .profile-section { margin-top:12px; }
.management-surface .details-list { gap:10px 14px; }
.management-surface .notice { padding:12px 14px; margin-bottom:14px; border-radius:8px; }
.management-surface .category-row { gap:12px; padding:8px 0; }
.management-surface .timeline-note { padding-top:10px; margin-top:8px; }
.management-surface .pagination { gap:12px; margin-top:16px; }
.management-surface .empty-module { padding:24px 16px; }
.management-surface .empty-symbol, .management-surface .empty-illustration,
.management-surface .summary-icon, .management-surface .panel-heading-icon { display:none; }
.management-surface .summary-grid { gap:0; border:1px solid var(--line); border-radius:8px; background:var(--card); margin-bottom:14px; overflow:hidden; }
.management-surface .summary-card { border:0; border-radius:0; border-right:1px solid var(--line); padding:12px 14px; }
.management-surface .summary-card:last-child { border-right:0; }
.management-surface .summary-value { font-size:1.4rem; margin-top:6px; overflow-wrap:anywhere; }
.management-surface .crm-summary { grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); }
.management-surface .summary-card small { display:block; line-height:1.5; color:var(--muted); }
.management-surface .dashboard-grid { gap:14px; grid-template-columns:minmax(0,2fr) minmax(240px,1fr); }
.management-surface .side-panels { gap:12px; min-width:0; }
.management-surface .quick-action { min-height:44px; gap:8px; }
.management-surface .quick-action-icon { width:22px; height:22px; border-radius:4px; background:transparent; }
.management-surface .next-client-empty { margin-top:12px; padding:10px; }
.management-surface .empty-schedule { min-height:160px; padding:20px 12px; }
.management-surface .card-metrics { gap:10px; margin:12px 0; }
.management-surface .admin-action summary { min-height:44px; align-content:center; }
.compact-record-list { display:grid; gap:0; border:1px solid var(--line); border-radius:8px; background:var(--card); }
.management-surface .compact-record-list > .panel { border:0; border-bottom:1px solid var(--line); border-radius:0; margin:0; }
.management-surface .compact-record-list > .panel:last-child { border-bottom:0; }
.compact-record-list h2, .compact-record-list p { margin-bottom:6px; }
.compact-record-list .profile-actions { margin:8px 0 0; }
.compact-record-list .preserve-text { line-height:1.5; }
.team-row-summary { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; }
.team-row-summary > div:first-child { flex:1; min-width:160px; }
.team-row-summary .profile-actions { margin:0; }

.data-table-scroll { position:relative; width:100%; min-width:0; max-width:100%; overflow:auto; border:1px solid var(--line); border-radius:8px; background:var(--card); }
.data-table-scroll:focus-visible { outline:3px solid var(--rose-dark); outline-offset:3px; }
.data-table { width:100%; border-collapse:separate; border-spacing:0; font-size:.85rem; }
.data-table th, .data-table td { padding:6px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; }
.data-table thead th { padding-block:10px; background:var(--gold-soft); color:var(--muted); font-size:.76rem; font-weight:600; }
.data-table tbody th { font-weight:600; }
.data-table tr:last-child > * { border-bottom:0; }
.data-table tbody tr:hover > * { background:var(--gold-soft); }
.platform-admin .admin-heading { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.platform-admin .admin-heading h1 { margin:0; }
.platform-admin .panel p { overflow-wrap:anywhere; }
.admin-security-form { max-width:680px; }
.admin-security-form form { display:grid; gap:14px; }
.admin-studio-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:12px; margin:16px 0 0; }
.admin-studio-metrics > div { padding:12px; background:var(--gold-soft); border-radius:6px; }
.admin-studio-metrics dt { font-size:.8rem; color:var(--muted); }
.admin-studio-metrics dd { margin:6px 0 0; font-weight:600; }
.admin-studio-section { border-top:1px solid var(--line); margin-top:18px; padding-top:18px; }
.admin-metric-help summary, .admin-supporting-data > summary { min-height:44px; align-content:center; cursor:pointer; }
.admin-supporting-data { margin-top:16px; min-width:0; }
.admin-supporting-data table { min-width:720px; }
.admin-supporting-data td { max-width:360px; overflow-wrap:anywhere; }
.admin-users-table { min-width:900px; }
.admin-users-table th[scope=row] { min-width:180px; max-width:300px; overflow-wrap:anywhere; }
.admin-users-table td { min-width:140px; max-width:320px; overflow-wrap:anywhere; }
.admin-users-table .table-detail { display:block; }
.admin-user-actions summary { cursor:pointer; display:list-item; list-style:disclosure-closed inside; }
.admin-user-actions[open] > summary { list-style-type:disclosure-open; }
.admin-user-actions[open] { min-width:260px; padding-bottom:8px; }
.admin-plan-chooser { max-width:760px; margin:16px 0; }
.admin-plan-chooser [data-plan-preview-result] { margin-top:16px; }
.data-table .numeric { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.data-table .date-cell { white-space:nowrap; font-variant-numeric:tabular-nums; }
.data-table .touch-link { padding:4px 0; }
.data-table .table-detail, .data-table .service-description { font-size:.8rem; color:var(--muted); font-weight:400; margin:2px 0 6px; line-height:1.4; }
.data-table .table-actions { display:flex; flex-wrap:wrap; gap:4px 12px; }
.data-table .service-dot { width:4px; height:20px; border-radius:2px; }
.client-table { min-width:1080px; }
.client-table th:first-child { position:sticky; left:0; z-index:1; min-width:170px; max-width:240px; background:var(--card); box-shadow:1px 0 var(--line); }
.client-table thead th:first-child { background:var(--gold-soft); z-index:2; }
.client-table .client-name { overflow-wrap:anywhere; }
.client-table .phone-cell { white-space:nowrap; }
.client-table .email-cell { min-width:230px; max-width:300px; overflow-wrap:anywhere; }
.service-table { min-width:900px; }
.service-table tbody th { min-width:200px; max-width:340px; overflow-wrap:anywhere; }
.product-table { min-width:760px; }
.product-table tbody th { min-width:200px; max-width:360px; overflow-wrap:anywhere; }
@media (max-width:1100px) {
    .management-surface .summary-card { border-bottom:1px solid var(--line); }
    .management-surface .crm-summary { grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); }
    .management-surface .crm-summary .summary-card { border-right:0; }
}
@media (max-width:760px) {
    .management-surface .page-content { padding:16px 12px 24px; }
    .management-surface .dashboard-grid { grid-template-columns:minmax(0,1fr); }
    .management-surface .summary-card { padding:10px; }
    .management-surface .summary-value { font-size:1.25rem; }
    .management-surface .panel-heading { flex-wrap:wrap; }
    .management-surface .module-heading { gap:10px; }
    .data-table th, .data-table td { padding-inline:10px; }
    .client-table th:first-child { min-width:150px; max-width:180px; }
}
.support-message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
