/* Odera Berberim — shared application and booking interface */
:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --surface-hover: #f0f5f4;
  --text: #18243c;
  --muted: #7b8597;
  --subtle: #a1a9b6;
  --border: #e9edf1;
  --border-strong: #dce3e8;
  --primary: #186d61;
  --primary-hover: #12584e;
  --primary-soft: #eaf4ef;
  --primary-text: #18634f;
  --primary-ink: #ffffff;
  --purple: #8b6fc1;
  --purple-soft: #f1ecfa;
  --blue: #5c8bc5;
  --blue-soft: #edf3fb;
  --orange: #bd8a49;
  --orange-soft: #fbf3e8;
  --red: #c66b73;
  --red-soft: #fbebed;
  --shadow: 0 4px 24px rgb(24 36 60 / 3%);
  --shadow-raised: 0 12px 40px rgb(24 36 60 / 9%);
  --radius: 18px;
  --sidebar-width: 236px;
  --font: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #10191e;
  --surface: #172329;
  --surface-soft: #1b292f;
  --surface-hover: #22352f;
  --text: #e9eff0;
  --muted: #9aaeb7;
  --subtle: #718992;
  --border: #293940;
  --border-strong: #384c54;
  --primary: #77c6ac;
  --primary-hover: #a0dec8;
  --primary-soft: #203d33;
  --primary-text: #9dd9c4;
  --primary-ink: #102e24;
  --purple: #b6a0dc;
  --purple-soft: #342d43;
  --blue: #8aaedd;
  --blue-soft: #25384a;
  --orange: #dbb47d;
  --orange-soft: #403629;
  --red: #e59ba2;
  --red-soft: #422c33;
  --shadow: 0 4px 24px rgb(0 0 0 / 8%);
  --shadow-raised: 0 12px 40px rgb(0 0 0 / 24%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { outline: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 38%, transparent); outline-offset: 3px; }
dialog.modal .modal-heading { position: sticky; top: 0; z-index: 2; background: var(--surface); }
dialog.modal .modal-heading h2 { overflow-wrap: anywhere; }
.field-error { overflow-wrap: anywhere; }
@media (pointer: coarse) {
  .icon-button, .btn, input:not([type="checkbox"]):not([type="radio"]), select { min-height: 44px; }
  .icon-button { min-width: 44px; }
}
button:disabled { cursor: not-allowed; opacity: .5; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.035em; }
::selection { color: var(--primary-text); background: var(--primary-soft); }
.hidden, [hidden], .is-hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

/* The calm, fixed navigation gives the calendar room to breathe. */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 29px 17px 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: var(--surface); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; margin-bottom: 30px; color: var(--text); }
.brand-mark { display: flex; width: 38px; height: 38px; flex-shrink: 0; align-items: center; justify-content: center; font-size: 29px; font-weight: 650; line-height: 1; letter-spacing: -.055em; background: var(--primary); color: var(--primary-ink); border-radius: 12px; box-shadow: 0 4px 10px rgb(24 109 97 / 12%); }
.brand-mark > span { font-size: 24px; margin-left: 1px; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-name { display: block; font-weight: 750; font-size: 18px; letter-spacing: -.055em; line-height: 1.2; }
.brand-name > span { font-weight: 450; }
.brand-sub { display: block; color: var(--muted); font-size: 10px; font-weight: 550; letter-spacing: .13em; margin-top: 4px; text-transform: uppercase; }
.workspace-picker { position: relative; margin: 0 6px 31px; padding: 12px 13px 11px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px; }
.workspace-picker label { display: block; font-size: 10px; color: var(--muted); letter-spacing: .06em; margin-bottom: 5px; }
.workspace-picker select { display: block; width: 100%; border: 0; padding: 0 18px 0 0; background: transparent; color: var(--text); font-size: 12px; font-weight: 650; }
.workspace-picker select + select { margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 500; }
.nav-label { display: block; margin: 0 15px 10px; font-size: 10px; color: var(--subtle); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.nav-label:not(:first-child) { margin-top: 26px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; margin: 2px 0; padding: 10px 14px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; text-align: left; font-size: 12px; font-weight: 550; transition: background .16s, color .16s; }
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.65; }
.nav-item:hover { color: var(--text); background: var(--surface-soft); }
.nav-item.active { color: var(--primary-text); background: var(--primary-soft); font-weight: 650; }
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 20px; margin-left: auto; padding: 0 6px; background: var(--surface); color: var(--primary-text); border-radius: 6px; font-size: 10px; font-weight: 650; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; }
.sidebar-help { padding: 15px; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 12px; margin: 20px 4px; }
.sidebar-help strong { display: block; font-size: 12px; margin-bottom: 5px; }
.sidebar-help p { color: var(--muted); font-size: 11px; margin-bottom: 11px; }
.sidebar-help a { font-size: 11px; font-weight: 600; }
.profile { display: flex; align-items: center; gap: 10px; padding: 17px 12px 0; border-top: 1px solid var(--border); }
.profile > div:not(.avatar) { min-width: 0; }
.profile strong { display: block; font-size: 12px; font-weight: 650; }
.profile small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.profile .icon-button { margin-left: auto; width: 27px; height: 30px; }
.avatar { display: inline-flex; width: 37px; height: 37px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--avatar-color, #186d61) 12%, var(--surface)); color: var(--avatar-color, #186d61); font-size: 12px; font-weight: 650; letter-spacing: -.01em; overflow: hidden; }
html[data-theme='dark'] .avatar { color: color-mix(in srgb, var(--avatar-color, #186d61) 55%, white); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: 10px; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.avatar.sage { background: #e5eeea; color: #52766a; }
.avatar.purple { background: #eee6f3; color: #9874a4; }
.avatar.blue { background: #e5edf8; color: #668db9; }
.avatar.peach { background: #f7e9df; color: #ba8865; }

.main-shell { min-width: 0; flex: 1; margin-left: var(--sidebar-width); }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; border-bottom: 1px solid var(--border); background: var(--surface); }
.topbar-title { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.topbar-title strong { font-size: 12px; color: var(--text); font-weight: 550; }
.topbar-title svg { width: 14px; height: 14px; color: var(--subtle); }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.topbar-divider { width: 1px; height: 24px; background: var(--border); margin: 0 3px; }
.icon-button { width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--muted); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; transition: color .16s, background .16s; }
.icon-button:hover { color: var(--primary); background: var(--primary-soft); }
.icon-button svg { width: 18px; height: 18px; }
.icon-button.notification { position: relative; }
.icon-button.notification::after { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; background: var(--orange); border-radius: 50%; content: ''; border: 1px solid var(--surface); }
.search-box { display: flex; align-items: center; gap: 8px; width: 227px; padding: 8px 11px; color: var(--subtle); background: var(--surface-soft); border: 1px solid var(--border); border-radius: 9px; }
.search-box svg { width: 16px; height: 16px; }
.search-box input { min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 11px; }
.search-box input::placeholder { color: var(--subtle); }
.search-box:focus-within { border-color: var(--primary); }
.search-box input:focus-visible { outline: none; }
.mobile-menu { display: none; }
.main-content { max-width: 1740px; margin: 0 auto; padding: 30px 32px 40px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow svg { width: 13px; height: 13px; }
.page-heading h1 { font-size: clamp(23px, 2.25vw, 32px); line-height: 1.22; margin: 0 0 7px; }
.subtitle { color: var(--muted); font-size: 12px; margin: 0; }
.heading-actions { display: flex; align-items: center; flex-shrink: 0; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; line-height: 1.3; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background .16s, border-color .16s, box-shadow .16s, transform .16s; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 3px 8px rgb(24 109 97 / 9%); }
.btn.primary:hover { background: var(--primary-hover); color: var(--primary-ink); box-shadow: 0 4px 14px rgb(24 109 97 / 14%); }
.btn.secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn.secondary:hover { background: var(--surface-soft); border-color: var(--primary); }
.btn.ghost { color: var(--muted); background: transparent; }
.btn.ghost:hover { color: var(--primary); background: var(--primary-soft); }
.btn.danger { color: var(--red); background: var(--red-soft); }
.btn.danger:hover { background: color-mix(in srgb, var(--red) 22%, var(--surface)); }
.btn.small { min-height: 31px; padding: 7px 10px; font-size: 10px; border-radius: 7px; }
.btn.full { width: 100%; }
.btn:active { transform: translateY(1px); }

/* Overview */
.welcome-card { display: flex; align-items: center; justify-content: space-between; position: relative; min-height: 112px; overflow: hidden; padding: 23px 28px; margin-bottom: 22px; border: 1px solid #e1ece5; border-radius: var(--radius); background: #edf4ed; }
.welcome-copy { position: relative; z-index: 2; max-width: 76%; }
.welcome-copy h2 { font-size: 19px; margin: 0 0 6px; color: #245446; }
.welcome-copy p { font-size: 12px; color: #668276; margin: 0; }
.welcome-copy .btn { margin-top: 12px; }
.welcome-graphic { width: 185px; height: 115px; position: absolute; right: 20px; bottom: -17px; color: #a8c4ae; }
.welcome-graphic::before, .welcome-graphic::after { content: ''; position: absolute; border: 1px solid #b7cdbb; border-radius: 50%; width: 110px; height: 110px; }
.welcome-graphic::before { top: 3px; left: 19px; background: #e1ece0; }
.welcome-graphic::after { top: -22px; left: 84px; }
.welcome-graphic > svg { position: absolute; z-index: 1; width: 53px; height: 53px; top: 25px; left: 51px; color: #638974; stroke-width: 1.1; transform: rotate(-18deg); }
.welcome-graphic > span { position: absolute; z-index: 2; background: #fff; border-radius: 9px; padding: 8px 12px; top: 6px; right: 0; font-size: 11px; color: #648373; box-shadow: 0 4px 14px rgb(44 73 49 / 5%); }
html[data-theme='dark'] .welcome-card { background: #213a2e; border-color: #304a3d; }
html[data-theme='dark'] .welcome-copy h2 { color: #c0decd; }
html[data-theme='dark'] .welcome-copy p { color: #9abaaa; }
html[data-theme='dark'] .welcome-graphic::before { background: #2b4735; }
html[data-theme='dark'] .welcome-graphic::before, html[data-theme='dark'] .welcome-graphic::after { border-color: #4c705b; }
html[data-theme='dark'] .welcome-graphic > span { background: #1a2d24; color: #a7c7b4; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { position: relative; padding: 20px 21px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.stat-icon { display: grid; position: absolute; right: 18px; top: 19px; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--primary-text); background: var(--primary-soft); }
.stat-icon svg { width: 18px; height: 18px; stroke-width: 1.7; }
.stat-card:nth-child(2) .stat-icon { color: var(--purple); background: var(--purple-soft); }
.stat-card:nth-child(3) .stat-icon { color: var(--orange); background: var(--orange-soft); }
.stat-card:nth-child(4) .stat-icon { color: var(--blue); background: var(--blue-soft); }
.stat-label { display: block; margin: 1px 38px 9px 0; font-size: 11px; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 28px; line-height: 1.3; letter-spacing: -.055em; font-weight: 650; font-variant-numeric: tabular-nums; margin-bottom: 7px; }
.stat-value small { font-size: 16px; font-weight: 500; letter-spacing: -.01em; color: var(--muted); }
.stat-foot { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.stat-foot strong { color: var(--primary-text); font-weight: 550; }
.stat-foot svg { width: 13px; height: 13px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 21px 22px 17px; }
.panel-heading h2, .panel-heading h3 { font-size: 14px; margin: 0; letter-spacing: -.025em; }
.panel-heading h2 + .panel-subtitle { margin-top: 4px; }
.panel-subtitle { color: var(--muted); font-size: 10px; margin: 0; }
.side-panel { display: grid; gap: 18px; }
.side-panel .panel-heading { padding: 19px 20px 16px; }
.side-panel .panel-heading h2 { font-size: 13px; }
.panel-body { padding: 0 21px 21px; }
.calendar-panel { overflow: hidden; }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 22px 16px; }
.date-nav { display: flex; align-items: center; gap: 5px; }
.date-nav strong { margin: 0 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.date-nav .icon-button { width: 27px; height: 28px; border: 1px solid var(--border); border-radius: 7px; }
.date-nav .icon-button svg { width: 14px; height: 14px; }
.date-nav .btn { margin-left: 7px; }
.date-nav label { display: flex; align-items: center; }
.date-nav input[type='date'] { width: 122px; min-height: 28px; padding: 2px 4px; border: 0; border-radius: 5px; color: var(--text); background: transparent; font-size: 11px; font-weight: 600; }
.date-nav [data-action='prev-day'] svg { transform: rotate(180deg); }
.view-toggle { display: flex; padding: 3px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 8px; }
.view-toggle button { min-width: 48px; padding: 6px 10px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 10px; }
.view-toggle button.active { color: var(--text); background: var(--surface); box-shadow: 0 1px 4px rgb(24 36 60 / 7%); }
.view-toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.view-toggle button svg { width: 12px; height: 12px; }
.staff-filter { display: flex; gap: 6px; overflow-x: auto; padding: 0 22px 18px; scrollbar-width: thin; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; padding: 6px 11px; min-height: 28px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 500; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { color: var(--primary-text); background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 15%, var(--border)); }
.filter-chip .swatch { width: 6px; height: 6px; }
.schedule { position: relative; overflow-x: auto; overflow-y: hidden; max-width: 100%; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.schedule-scroll { overflow-x: auto; }
.schedule-header { display: grid; min-width: 700px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-soft); }
.schedule-header > :first-child { display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--subtle); }
.staff-heading { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 16px 12px; border-left: 1px solid var(--border); }
.staff-heading .avatar { width: 29px; height: 29px; font-size: 9px; }
.staff-name { display: block; font-size: 10px; font-weight: 600; }
.staff-title { display: block; color: var(--muted); font-size: 9px; margin-top: 2px; }
.schedule-body { position: relative; display: grid; min-width: 700px; height: 600px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 59px, var(--border) 59px, var(--border) 60px); }
.time-column { position: relative; background: var(--surface-soft); }
.time-label { position: absolute; left: 0; width: 58px; padding: 5px 10px 0 0; color: var(--subtle); text-align: right; font-size: 9px; font-variant-numeric: tabular-nums; }
.schedule-column { position: relative; min-width: 0; height: 100%; border-left: 1px solid var(--border); }
.appointment { position: absolute; z-index: 2; left: 7px; right: 7px; min-height: 30px; padding: 4px 8px 4px 9px; overflow: hidden; border: 0; border-left: 3px solid var(--appointment-color, var(--primary)); border-radius: 7px; color: var(--primary-text); background: var(--primary-soft); text-align: left; cursor: pointer; transition: box-shadow .15s, filter .15s; }
.appointment.compact { min-height: 0; padding-block: 0; border-radius: 4px; display: flex; align-items: center; }
.appointment.compact .appointment-time { display: none; }
.appointment.compact .appointment-name { line-height: 1; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.appointment:hover { box-shadow: 0 3px 12px rgb(24 36 60 / 10%); filter: brightness(.985); z-index: 4; }
.appointment-time { display: block; font-size: 8px; line-height: 1.1; font-weight: 500; opacity: .85; letter-spacing: .01em; margin-bottom: 1px; font-variant-numeric: tabular-nums; }
.appointment-time svg { width: 9px; height: 9px; float: right; }
.appointment-name { display: block; font-size: 9.5px; font-weight: 650; line-height: 1.1; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appointment-service { display: block; font-size: 9px; line-height: 1.45; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appointment-meta { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 9px; margin-top: 5px; opacity: .8; }
.appointment-meta svg { width: 11px; height: 11px; }
.appointment.pending { background: var(--orange-soft); color: var(--orange); border-color: var(--orange); }
.appointment.completed { background: var(--blue-soft); color: var(--blue); border-color: var(--blue); }
.appointment.cancelled, .appointment.no_show { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.appointment.cancelled { opacity: .65; }
.appointment.purple { background: var(--purple-soft); color: var(--purple); border-color: var(--purple); }
.appointment.blue { background: var(--blue-soft); color: var(--blue); border-color: var(--blue); }
.appointment.peach { background: var(--orange-soft); color: var(--orange); border-color: var(--orange); }
.empty-slot { display: flex; position: absolute; align-items: center; justify-content: center; left: 7px; right: 7px; gap: 5px; min-height: 38px; border: 1px dashed var(--border-strong); border-radius: 7px; background: transparent; color: var(--subtle); font-size: 10px; opacity: 0; transition: opacity .15s; }
.empty-slot:hover, .empty-slot:focus-visible { opacity: 1; color: var(--primary); background: var(--primary-soft); border-color: var(--primary); }
.empty-slot svg { width: 12px; height: 12px; }
.day-marker { pointer-events: none; position: absolute; z-index: 5; left: 55px; right: 0; height: 1px; background: var(--red); }
.day-marker::before { position: absolute; content: ''; width: 5px; height: 5px; border-radius: 50%; left: -2px; top: -2px; background: var(--red); }
.day-marker span { position: absolute; right: 10px; bottom: 3px; font-size: 8px; color: var(--red); background: var(--surface); padding: 1px 4px; border-radius: 3px; }
.legend { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }
.legend > span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot, .swatch { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.legend-dot.pending { background: var(--orange); }
.legend-dot.completed { background: var(--blue); }
.legend-dot.cancelled { background: var(--red); }

.activity-list { padding: 0 20px 6px; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; position: relative; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; }
.activity-item:first-child { padding-top: 0; }
.activity-item:last-child { border-bottom: 0; }
.activity-item:hover .activity-body strong { color: var(--primary); }
.activity-item > svg { width: 13px; height: 13px; margin-top: 5px; color: var(--subtle); }
.activity-item > .activity-time { min-width: 36px; padding-top: 3px; font-size: 10px; font-weight: 550; color: var(--muted); }
.activity-item .avatar { width: 31px; height: 31px; font-size: 10px; }
.activity-body { min-width: 0; flex: 1; padding-top: 1px; }
.activity-body strong { display: block; font-size: 11px; font-weight: 600; }
.activity-body p { color: var(--muted); font-size: 10px; margin: 2px 0 5px; }
.activity-body > span:not(.badge) { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.activity-time { display: inline-block; color: var(--subtle); font-size: 9px; }
.activity-body .badge { margin-top: 4px; }
.progress-track { height: 5px; border-radius: 10px; overflow: hidden; background: var(--surface-soft); }
.progress-fill { height: 100%; border-radius: inherit; background: var(--primary); min-width: 0; }
.performance-list { display: grid; gap: 17px; padding: 0 20px 22px; }
.performance-item .performance-row, .performance-item > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.performance-item span { color: var(--muted); font-size: 10px; }
.performance-item strong { font-size: 10px; font-weight: 600; }
.performance-item:nth-child(2) .progress-fill { background: var(--purple); }
.performance-item:nth-child(3) .progress-fill { background: var(--orange); }
.public-link-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid #e2ece6; border-radius: 14px; background: #f0f5f0; }
.public-link-card > svg { color: #507764; width: 21px; height: 21px; margin-bottom: 11px; }
.public-link-card h3 { font-size: 13px; margin: 0 0 6px; color: #355e4c; }
.public-link-card p { font-size: 10px; color: #7b9082; margin-bottom: 14px; max-width: 210px; }
.public-link-card .btn { background: var(--surface); border: 1px solid #dce6de; color: #487058; }
html[data-theme='dark'] .public-link-card { border-color: #304a3d; background: #21352a; }
html[data-theme='dark'] .public-link-card h3 { color: #c0decd; }
html[data-theme='dark'] .public-link-card p { color: #9abaaa; }
html[data-theme='dark'] .public-link-card .btn { border-color: var(--border-strong); color: var(--primary-text); }

/* Lists and management pages */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 21px; }
.toolbar .search-box { width: 300px; background: var(--surface); padding: 11px 13px; }
.toolbar-filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.toolbar select, .toolbar input[type='date'] { border: 1px solid var(--border-strong); border-radius: 8px; padding: 9px 12px; min-height: 37px; font-size: 11px; color: var(--text); background: var(--surface); }
.table-wrap { width: 100%; overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); scrollbar-width: thin; }
table { border-collapse: collapse; width: 100%; text-align: left; }
thead { background: var(--surface-soft); }
th { padding: 13px 19px; font-size: 10px; font-weight: 550; color: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 15px 19px; border-bottom: 1px solid var(--border); font-size: 11px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-soft); }
.cell-main { display: block; color: var(--text); font-size: 11px; font-weight: 600; }
.cell-sub { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.cell-profile { display: flex; align-items: center; gap: 10px; }
.cell-profile .avatar { width: 31px; height: 31px; font-size: 10px; }
.cell-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.cell-actions .icon-button { width: 28px; height: 28px; }
.cell-actions .icon-button svg { width: 15px; height: 15px; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 8px; border-radius: 5px; font-size: 9px; line-height: 1.4; font-weight: 550; white-space: nowrap; color: var(--primary-text); background: var(--primary-soft); }
.badge.confirmed { color: var(--primary-text); background: var(--primary-soft); }
.badge.pending { color: var(--orange); background: var(--orange-soft); }
.badge.completed { color: var(--blue); background: var(--blue-soft); }
.badge.cancelled, .badge.no_show { color: var(--red); background: var(--red-soft); }
.badge.neutral { color: var(--muted); background: var(--surface-soft); }
.badge svg { width: 11px; height: 11px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-top: 1px solid var(--border); font-size: 10px; color: var(--muted); }
.empty-state { padding: 65px 24px; text-align: center; color: var(--muted); }
.empty-state > svg { width: 36px; height: 36px; color: var(--subtle); margin-bottom: 14px; stroke-width: 1.4; }
.empty-state h3 { font-size: 15px; color: var(--text); margin: 0 0 5px; }
.empty-state p { max-width: 320px; margin: 0 auto 17px; font-size: 12px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.detail-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.detail-card h3 { font-size: 15px; margin-bottom: 17px; }
.detail-card dl { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 0; font-size: 11px; }
.detail-card dt { color: var(--muted); }
.detail-card dd { margin: 0; font-weight: 550; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card, .staff-card { position: relative; min-width: 0; padding: 23px; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow); }
.service-card > .icon-button, .staff-card > .icon-button { position: absolute; top: 14px; right: 13px; }
.service-card h3, .staff-card h3 { margin: 14px 0 4px; font-size: 15px; }
.service-card p, .staff-card p { margin-bottom: 18px; color: var(--muted); font-size: 11px; }
.card-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-text); }
.card-icon svg { width: 23px; height: 23px; stroke-width: 1.5; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--border); font-size: 11px; }
.card-footer strong { font-size: 17px; font-weight: 650; letter-spacing: -.03em; }
.card-footer > span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.card-footer svg { width: 13px; height: 13px; }
.staff-card .avatar { width: 53px; height: 53px; font-size: 17px; }
.staff-card .staff-stats { display: flex; gap: 30px; margin-top: 17px; }
.staff-stats strong { display: block; font-size: 18px; letter-spacing: -.04em; }
.staff-stats span { color: var(--muted); font-size: 10px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.settings-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.settings-card h2, .settings-card h3 { margin: 0 0 4px; font-size: 16px; }
.settings-card > p { font-size: 11px; color: var(--muted); margin-bottom: 23px; }
.settings-card .btn { margin-top: 20px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { display: block; font-size: 11px; font-weight: 600; }
.setting-row small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.setting-row input[type='checkbox'] { accent-color: var(--primary); width: 17px; height: 17px; }
.notice { display: flex; align-items: flex-start; gap: 9px; padding: 12px 15px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 9px; font-size: 11px; line-height: 1.65; }
.notice svg { width: 16px; height: 16px; margin-top: 1px; }
.notice.info { color: var(--blue); background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 15%, var(--border)); }
.notice.error { color: var(--red); background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 15%, var(--border)); }
.notice.success { color: var(--primary-text); background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 15%, var(--border)); }

/* Transaction forms, dialogs and feedback */
.overlay { display: none; position: fixed; inset: 0; z-index: 35; background: rgb(19 32 44 / 36%); backdrop-filter: blur(2px); }
.overlay.open { display: block; }
dialog.modal { width: min(620px, calc(100% - 36px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--border); border-radius: 19px; color: var(--text); background: var(--surface); box-shadow: 0 20px 90px rgb(16 33 45 / 22%); }
dialog.modal::backdrop { background: rgb(16 28 36 / 42%); backdrop-filter: blur(3px); }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 23px 26px 20px; border-bottom: 1px solid var(--border); }
.modal-heading h2 { font-size: 19px; margin: 0 0 3px; }
.modal-heading p { color: var(--muted); font-size: 11px; margin: 0; }
.modal-close { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: var(--surface-soft); }
.modal-close:hover { background: var(--red-soft); color: var(--red); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 22px 26px 24px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 17px 26px; background: var(--surface-soft); border-top: 1px solid var(--border); border-radius: 0 0 19px 19px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { min-width: 0; }
.field.full, .form-grid > .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: var(--text); font-size: 11px; font-weight: 550; }
.field label .required { color: var(--red); }
.field input:not([type='checkbox']):not([type='radio']), .field select, .field textarea { width: 100%; min-height: 41px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text); background: var(--surface); font-size: 12px; line-height: 1.5; transition: border-color .16s, box-shadow .16s; }
.field input::placeholder, .field textarea::placeholder { color: var(--subtle); font-size: 11px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--muted) 50%, var(--border)); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 8%, transparent); }
.field input[readonly], .field input:disabled, .field select:disabled { background: var(--surface-soft); color: var(--muted); cursor: default; }
.field textarea { min-height: 84px; resize: vertical; }
.field input[type='color'] { padding: 4px; }
.field input[type='checkbox'], .field input[type='radio'] { accent-color: var(--primary); }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field [aria-invalid='true'] { border-color: var(--red); }
.field-error { color: var(--red); font-size: 10px; display: block; margin-top: 5px; }
.field-hint { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.form-section { margin-bottom: 20px; }
.form-section + .form-section { border-top: 1px solid var(--border); padding-top: 20px; }
.form-section h3 { margin: 0 0 14px; font-size: 12px; }
.summary-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 9px; background: var(--primary-soft); color: var(--primary-text); margin-top: 20px; font-size: 11px; line-height: 1.7; }
.summary-box span { font-size: 11px; }
.summary-box strong { font-size: 17px; font-weight: 650; letter-spacing: -.03em; }
.summary-box small { font-size: 10px; font-weight: 400; }
.toast-container { position: fixed; z-index: 100; bottom: 25px; right: 25px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; max-width: 380px; padding: 13px 17px; border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 10px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-raised); font-size: 12px; animation: toast-in .2s ease-out; }
.toast svg { color: var(--primary); width: 18px; height: 18px; }
.toast.error { border-left-color: var(--red); }
.toast.error svg { color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.loading-state { min-height: 200px; padding: 40px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.skeleton { border-radius: 6px; background: linear-gradient(110deg, var(--surface-soft) 20%, var(--border) 40%, var(--surface-soft) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* A quiet, confident first impression for salon owners. */
.auth-screen { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100dvh; background: var(--surface); }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 46px 64px 40px; background: #eaf2e9; color: #244d3b; }
.auth-story::before { content: ''; position: absolute; width: 480px; height: 480px; border: 1px solid #c3d6c3; border-radius: 50%; top: 12%; right: -245px; }
.auth-story::after { content: ''; position: absolute; width: 620px; height: 620px; border: 1px solid #d4e0d0; border-radius: 50%; top: 2%; right: -315px; pointer-events: none; }
.auth-story > * { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 750; letter-spacing: -.05em; }
.auth-logo .brand-mark { width: 39px; height: 39px; }
.auth-story-content { padding: 75px 0 55px; max-width: 390px; }
.auth-story .eyebrow { color: #74947d; font-size: 10px; margin-bottom: 18px; }
.auth-story h1 { font-size: clamp(34px, 3.4vw, 49px); line-height: 1.18; font-weight: 650; letter-spacing: -.055em; margin-bottom: 21px; }
.auth-story p { font-size: 13px; line-height: 1.85; color: #67836e; max-width: 340px; }
.auth-story-footer { color: #83a08b; font-size: 10px; }
.auth-metrics { display: flex; gap: 30px; margin-top: 30px; padding-top: 28px; border-top: 1px solid #d1dfcf; }
.auth-metric strong { display: block; font-size: 16px; letter-spacing: -.035em; line-height: 1.3; }
.auth-metric > svg { display: block; margin-bottom: 10px; width: 20px; height: 20px; color: #6d9277; }
.auth-metric span { display: block; font-size: 10px; margin-top: 4px; color: #7f9a85; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 60px clamp(30px, 6vw, 100px); width: 100%; max-width: 670px; margin: auto; }
.auth-card h2 { font-size: 28px; margin: 0 0 9px; }
.auth-card > p { font-size: 12px; color: var(--muted); margin-bottom: 29px; }
.auth-card .field { margin-bottom: 18px; }
.auth-card .field input { min-height: 45px; }
.auth-card .btn.primary { min-height: 45px; width: 100%; font-size: 12px; margin-top: 9px; }
.auth-card .auth-footer { margin-top: 22px; text-align: center; color: var(--muted); font-size: 11px; }
.auth-card .auth-footer a { font-weight: 600; }
.auth-tabs { display: flex; gap: 0; padding: 4px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 26px; background: var(--surface-soft); }
.auth-tabs button { flex: 1; border: 0; border-radius: 6px; padding: 9px; color: var(--muted); background: transparent; font-size: 11px; }
.auth-tabs button.active { color: var(--primary-text); background: var(--surface); box-shadow: 0 1px 5px rgb(24 36 60 / 7%); font-weight: 600; }
.demo-note { margin-top: 28px; padding: 15px 17px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.demo-note strong { display: block; color: var(--text); font-size: 11px; margin-bottom: 4px; }
.demo-note code { font-family: var(--font); color: var(--primary); font-size: 11px; }
.demo-note p { margin: 0; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 42px !important; }
.password-wrap .icon-button { position: absolute; right: 5px; top: 4px; }
html[data-theme='dark'] .auth-story { background: #21372a; color: #c3ddca; }
html[data-theme='dark'] .auth-story p { color: #9bbda3; }
html[data-theme='dark'] .auth-story::before, html[data-theme='dark'] .auth-story::after, html[data-theme='dark'] .auth-metrics { border-color: #3b5741; }

/* The public booking flow shares the brand, without the management navigation. */
.booking-screen { min-height: 100dvh; padding: 35px 30px 55px; background: var(--bg); }
.booking-layout { display: grid; grid-template-columns: 300px minmax(0, 600px); justify-content: center; align-items: start; gap: 45px; max-width: 1020px; margin: 45px auto 0; }
.booking-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 1020px; margin: 0 auto; font-size: 18px; font-weight: 700; letter-spacing: -.04em; }
.booking-brand .brand { padding: 0; margin: 0; }
.booking-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.booking-brand .brand-mark svg { width: 19px; height: 19px; }
.booking-intro { padding-top: 16px; }
.booking-intro .avatar { width: 75px; height: 75px; font-size: 25px; margin-bottom: 22px; border-radius: 20px; color: var(--primary-text); background: var(--primary-soft); }
.booking-intro h1 { font-size: 30px; line-height: 1.23; margin: 0 0 12px; }
.booking-intro > p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 22px; }
.booking-intro .booking-contact { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 13px; color: var(--muted); font-size: 11px; }
.booking-contact svg { width: 16px; height: 16px; color: var(--primary); }
.booking-card { min-width: 0; padding: 29px 30px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.booking-card h2 { font-size: 20px; margin: 0 0 7px; }
.booking-card > p { color: var(--muted); font-size: 11px; margin-bottom: 21px; }
.booking-steps { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.booking-step { display: flex; align-items: center; gap: 7px; color: var(--subtle); font-size: 10px; white-space: nowrap; }
.booking-step > span:first-child { font-size: 10px; font-weight: inherit; }
.booking-step.active { color: var(--primary-text); font-weight: 600; }
.booking-step.active > span:first-child { color: var(--primary-text); }
.booking-service { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; cursor: pointer; }
.booking-service.selected, .booking-service:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); }
.booking-service input { accent-color: var(--primary); }
.booking-service strong { display: block; font-size: 12px; font-weight: 600; }
.booking-service small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.booking-service .service-price { margin-left: auto; font-size: 12px; font-weight: 600; white-space: nowrap; }
.booking-card .field { margin-bottom: 16px; }
.booking-card .form-grid .field { margin-bottom: 0; }
.slots-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.slot { min-height: 37px; padding: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 7px; color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--primary); background: var(--primary-soft); }
.slot.selected { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); font-weight: 600; }
.slot:disabled { background: var(--surface-soft); color: var(--subtle); border-color: var(--border); text-decoration: line-through; }
.booking-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--border); }
.booking-actions .btn.primary { margin-left: auto; }
.booking-summary { display: grid; gap: 11px; border: 1px solid var(--border); background: var(--surface-soft); padding: 18px; border-radius: 11px; font-size: 11px; margin: 20px 0; }
.booking-summary > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.booking-summary span { color: var(--muted); }
.booking-summary strong { font-weight: 600; text-align: right; }
.booking-summary .total { padding-top: 12px; border-top: 1px solid var(--border); }
.booking-summary .total strong { font-size: 17px; color: var(--primary-text); }
.booking-success { text-align: center; padding: 10px 0 5px; }
.booking-success > svg { display: block; width: 54px; height: 54px; margin: 0 auto 22px; padding: 12px; color: var(--primary); background: var(--primary-soft); border-radius: 50%; stroke-width: 1.5; }
.booking-success h2 { margin-bottom: 8px; }
.booking-success > p { color: var(--muted); font-size: 12px; max-width: 350px; margin: 0 auto; line-height: 1.8; }
.booking-footer { max-width: 1020px; margin: 35px auto 0; text-align: center; color: var(--subtle); font-size: 10px; }

/* Concrete screen components from the application renderer. */
.muted { color: var(--muted); }
.stat-top { min-height: 28px; }
.topbar-separator { margin: 0 9px; color: var(--subtle); }
.app-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; max-width: 1740px; padding: 0 32px 24px; margin: 0 auto; color: var(--subtle); font-size: 9px; }
.app-footer > span { color: var(--muted); font-weight: 550; }
.sidebar .public-link-card { padding: 15px; margin: 12px 4px 17px; }
.sidebar .public-link-card > svg { display: block; width: 18px; height: 18px; margin-bottom: 9px; }
.sidebar .public-link-card > strong { display: block; font-size: 11px; color: var(--primary-text); letter-spacing: -.02em; margin-bottom: 5px; }
.sidebar .public-link-card p { margin-bottom: 10px; font-size: 10px; }
.sidebar .public-link-card .btn { padding: 5px 8px; min-height: 27px; font-size: 9px; }
.sidebar .brand-sub { font-size: 7px; letter-spacing: .085em; }
.calendar-count { color: var(--muted); font-size: 10px; }
.schedule-corner { color: var(--subtle); font-size: 8px !important; font-weight: 500; letter-spacing: .06em; }
.time-gutter { position: relative; background: var(--surface-soft); }
.time-gutter .time-label:last-child { padding-top: 0; transform: translateY(-100%); }
.break-block { position: absolute; left: 0; right: 0; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 1px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--subtle); background: repeating-linear-gradient(135deg, var(--surface-soft), var(--surface-soft) 5px, var(--border) 5px, var(--border) 6px); font-size: 9px; letter-spacing: .06em; pointer-events: none; }
.appointment.confirmed { background: color-mix(in srgb, var(--appointment-color, var(--primary)) 11%, var(--surface)); color: color-mix(in srgb, var(--appointment-color, var(--primary)) 85%, var(--text)); }
html[data-theme='dark'] .appointment.confirmed { color: color-mix(in srgb, var(--appointment-color, var(--primary)) 50%, white); }
.performance-item > div:first-child { justify-content: flex-start; gap: 8px; }
.performance-item > div:first-child .avatar { width: 22px; height: 22px; font-size: 8px; }
.performance-item > div:first-child > span:last-child { margin-left: auto; font-size: 9px; }
.side-panel .welcome-card { display: block; min-height: 195px; padding: 22px 20px; margin: 0; }
.side-panel .welcome-card > :not(.welcome-graphic) { position: relative; z-index: 2; }
.side-panel .welcome-card .eyebrow { font-size: 8px; letter-spacing: .075em; color: #7f9987; margin-bottom: 10px; }
.side-panel .welcome-card h3 { color: #315a45; font-size: 16px; line-height: 1.45; letter-spacing: -.035em; margin: 0 0 8px; }
.side-panel .welcome-card p { color: #7d9382; font-size: 10px; line-height: 1.7; margin: 0 0 16px; max-width: 200px; }
.side-panel .welcome-graphic { right: -50px; bottom: -38px; opacity: .45; }
html[data-theme='dark'] .side-panel .welcome-card h3 { color: #c0decd; }
html[data-theme='dark'] .side-panel .welcome-card p { color: #9abaaa; }
.person-cell { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.person-cell strong { font-size: 11px; font-weight: 550; }
.note-preview { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.staff-hours, .service-duration { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.staff-hours svg, .service-duration svg { width: 13px; height: 13px; }
.staff-services { display: flex; flex-wrap: wrap; gap: 5px; min-height: 45px; align-content: flex-start; margin-top: 17px; }
.staff-services .badge { font-size: 8px; font-weight: 450; padding: 4px 7px; }
.card-icon[style] { color: var(--avatar-color, var(--primary)); background: color-mix(in srgb, var(--avatar-color, var(--primary)) 10%, var(--surface)); }
.detail-customer { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.detail-customer h3 { font-size: 16px; margin: 0 0 3px; }
.detail-customer p { font-size: 11px; margin: 0; color: var(--muted); }
.detail-customer > .badge { margin-left: auto; }
.summary-box:has(> .setting-row) { display: block; margin: 0 0 22px; padding: 5px 17px; color: var(--text); background: var(--surface-soft); }
.summary-box > .setting-row { padding: 11px 0; }
.summary-box > .setting-row > span { font-size: 10px; color: var(--muted); }
.summary-box > .setting-row > strong { font-size: 11px; font-weight: 600; text-align: right; letter-spacing: 0; }
.detail-notes { font-size: 11px; padding: 12px 15px; border-left: 2px solid var(--border-strong); margin-bottom: 20px; color: var(--muted); white-space: pre-wrap; }
.payment-button { width: 100%; margin-top: 18px; }
.modal-body > .panel-subtitle { margin-bottom: 18px; }
.modal-body form > .form-grid + .field { margin-top: 17px; }
.modal-body .modal-footer { margin-top: 22px; padding: 17px 0 0; background: transparent; border-radius: 0; }
.field-error:empty { display: none; }
.service-checklist { display: flex; flex-wrap: wrap; gap: 9px 16px; margin: 22px 0 0; padding: 15px; border: 1px solid var(--border); border-radius: 9px; }
.service-checklist legend { padding: 0 5px; font-size: 11px; font-weight: 550; }
.service-checklist label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.service-checklist input { accent-color: var(--primary); }
.settings-card .notice { margin-top: 18px; margin-bottom: 0; }
.settings-card .heading-actions { flex-wrap: wrap; padding-top: 0; margin-top: 17px; }
.public-url { overflow-wrap: anywhere; display: block; font-size: 11px; }
.copy-url { width: 100%; min-height: 42px; padding: 11px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--primary); background: var(--surface-soft); font-size: 12px; }
.auth-story .brand { padding: 0; margin: 0; }
.auth-story > div:not(.brand) { max-width: 390px; padding: 65px 0 45px; }
.auth-story > small { font-size: 10px; color: #83a08b; }
.auth-footer { line-height: 1.8; }
.booking-intro > .eyebrow { line-height: 1.7; font-size: 9px; margin-bottom: 17px; }
.booking-salon { display: flex; align-items: center; gap: 11px; padding: 17px 0; margin: 22px 0 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.booking-salon .card-icon { width: 39px; height: 39px; border-radius: 10px; }
.booking-salon .card-icon svg { width: 20px; height: 20px; }
.booking-salon h3 { font-size: 12px; letter-spacing: -.015em; margin: 0 0 3px; }
.booking-salon p { font-size: 10px; color: var(--muted); margin: 0; }
.booking-assurance { color: var(--muted); font-size: 10px; line-height: 2.4; }
.booking-assurance svg { width: 13px; height: 13px; margin-right: 4px; color: var(--primary); }
.booking-card form > .form-grid { margin-bottom: 20px; }
.booking-card form > .btn.primary { width: 100%; min-height: 43px; margin-top: 17px; }
.booking-card .form-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.booking-card .form-section > .form-grid { margin-bottom: 17px; }
.slots-grid > .notice { grid-column: 1 / -1; margin: 0; }
.booking-summary:has(> strong) { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.booking-summary:has(> strong) > strong { font-size: 17px; color: var(--primary-text); letter-spacing: -.035em; }
.success-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.success-mark svg { width: 26px; height: 26px; }
.booking-success > .eyebrow { justify-content: center; font-size: 8px; margin-bottom: 13px; }
.booking-success .summary-box { flex-direction: column; gap: 10px; margin: 24px 0; padding: 22px; }
.booking-success .summary-box > strong { font-size: 13px; }
.booking-success .summary-box > p { font-size: 12px; margin: 0; line-height: 1.8; }
.booking-success > .btn { margin-top: 22px; }

/* Responsive layouts keep the schedule within its own scroll surface. */
@media (min-width: 1600px) {
  .main-content { padding-top: 36px; padding-inline: 42px; }
  .topbar { padding-inline: 42px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .stat-card { padding: 23px 25px; }
  .stat-icon { top: 23px; right: 23px; }
}
@media (max-width: 1250px) {
  :root { --sidebar-width: 216px; }
  .sidebar { padding-inline: 12px; }
  .main-content { padding: 25px 24px 35px; }
  .topbar { padding-inline: 24px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; }
  .stats-grid { gap: 13px; }
  .stat-card { padding: 18px 16px; }
  .stat-icon { right: 14px; top: 17px; width: 29px; height: 29px; }
  .stat-value { font-size: 25px; }
  .cards-grid { gap: 15px; }
  .service-card, .staff-card { padding: 20px; }
  .auth-story { padding-inline: 43px; }
}
@media (max-width: 1080px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .side-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .side-panel .panel-heading { padding-inline: 16px; }
  .activity-list, .performance-list { padding-inline: 16px; }
  .public-link-card { min-height: 211px; padding: 18px; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-box { width: 190px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-card { padding-inline: 40px; }
  .booking-layout { gap: 28px; grid-template-columns: 260px minmax(0, 560px); }
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-heading { align-items: flex-start; }
  .heading-actions { padding-top: 9px; }
  .heading-actions .btn.secondary { display: none; }
  .side-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-panel .public-link-card { grid-column: 1 / -1; min-height: 0; }
  .side-panel .welcome-card { grid-column: 1 / -1; min-height: 0; }
  .public-link-card p { max-width: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .auth-story { padding-inline: 30px; }
  .auth-metrics { gap: 20px; }
  .auth-metric strong { font-size: 15px; }
  .booking-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .booking-card { padding: 25px; }
  .booking-intro h1 { font-size: 25px; }
}
@media (max-width: 760px) {
  .app-shell.menu-open .overlay { display: block; }
  .sidebar { z-index: 50; width: 246px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 12px 0 40px rgb(16 33 45 / 15%); }
  .main-shell { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .topbar { height: 62px; padding-inline: 18px; gap: 8px; }
  .topbar-title { gap: 5px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions .search-box { display: none; }
  .topbar-divider { margin-inline: 5px; }
  .main-content { padding: 24px 18px 32px; }
  .app-footer { padding-inline: 18px; font-size: 8px; }
  .page-heading { gap: 12px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 25px; }
  .subtitle { font-size: 11px; }
  .heading-actions { padding-top: 4px; }
  .heading-actions .btn.primary { padding: 10px 12px; font-size: 10px; }
  .stats-grid { gap: 12px; margin-bottom: 20px; }
  .stat-card { padding: 17px; }
  .welcome-card { min-height: 105px; padding: 20px; }
  .welcome-copy h2 { font-size: 17px; }
  .welcome-copy p { font-size: 11px; max-width: 300px; }
  .welcome-graphic { right: -8px; opacity: .7; }
  .dashboard-grid { gap: 20px; }
  .toolbar .search-box { flex: 1; width: auto; min-width: 200px; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-story { padding: 26px; min-height: 0; }
  .auth-story-content { padding: 34px 0 9px; max-width: 500px; }
  .auth-story > div:not(.brand) { padding: 30px 0 9px; max-width: 500px; }
  .auth-story h1 { font-size: 32px; margin-bottom: 11px; }
  .auth-story p { max-width: 420px; margin-bottom: 10px; font-size: 12px; }
  .auth-metrics, .auth-story-footer, .auth-story > small { display: none; }
  .auth-story::before { width: 300px; height: 300px; top: -50px; right: -120px; }
  .auth-story::after { width: 400px; height: 400px; top: -100px; right: -170px; }
  .auth-card { max-width: 500px; padding: 32px 26px 40px; }
  .auth-card h2 { font-size: 24px; }
  .booking-screen { padding: 25px 18px 35px; }
  .booking-layout { grid-template-columns: 1fr; margin-top: 30px; gap: 22px; max-width: 570px; }
  .booking-intro { padding-top: 0; display: block; }
  .booking-intro .avatar { grid-row: 1 / 3; width: 56px; height: 56px; font-size: 19px; border-radius: 15px; margin: 0; }
  .booking-intro h1 { margin-bottom: 3px; font-size: 22px; align-self: end; }
  .booking-intro > p { font-size: 11px; margin: 0; line-height: 1.65; }
  .booking-intro > .eyebrow { margin-bottom: 9px; }
  .booking-intro h1 { margin-bottom: 12px; }
  .booking-salon { margin: 18px 0 12px; padding: 13px 0; }
  .booking-intro .booking-contact { grid-column: 1 / -1; margin: 13px 0 0; font-size: 10px; }
  .booking-card { padding: 25px; border-radius: 16px; }
}
@media (max-width: 480px) {
  .topbar-title > span { font-size: 10px; }
  .topbar-title > span > strong { font-size: 10px; }
  .topbar-separator { margin-inline: 4px; }
  .topbar-actions .avatar { width: 29px; height: 29px; font-size: 10px; }
  .topbar-actions .icon-button { width: 30px; }
  .main-content { padding: 20px 15px 30px; }
  .page-heading { flex-wrap: wrap; gap: 14px; }
  .page-heading h1 { font-size: 25px; margin-bottom: 5px; }
  .heading-actions { width: 100%; padding: 0; }
  .heading-actions .btn.primary { font-size: 11px; }
  .heading-actions .btn.secondary { display: inline-flex; font-size: 10px; }
  .welcome-card { padding: 19px; }
  .welcome-copy { max-width: 90%; }
  .welcome-copy p { max-width: 260px; }
  .welcome-graphic { right: -38px; opacity: .3; }
  .stats-grid { gap: 10px; }
  .stat-card { border-radius: 12px; padding: 15px 14px; }
  .stat-label { font-size: 10px; margin-right: 29px; margin-bottom: 10px; }
  .stat-icon { width: 25px; height: 25px; right: 11px; top: 13px; border-radius: 8px; }
  .stat-icon svg { width: 14px; height: 14px; }
  .stat-value { font-size: 25px; }
  .stat-foot { font-size: 8px; gap: 3px; flex-wrap: wrap; }
  .panel-heading { padding: 18px 17px 16px; }
  .calendar-toolbar { padding-inline: 17px; gap: 10px; }
  .staff-filter { padding-inline: 17px; }
  .date-nav strong { font-size: 11px; margin-inline: 3px; }
  .date-nav .btn { margin-left: 3px; }
  .view-toggle button { min-width: 37px; padding: 6px 8px; }
  .legend { gap: 12px; padding-inline: 17px; font-size: 8px; }
  .side-panel { grid-template-columns: 1fr; }
  .side-panel .public-link-card { grid-column: auto; }
  .side-panel .welcome-card { grid-column: auto; }
  .cards-grid { grid-template-columns: 1fr; }
  .toolbar { gap: 10px; }
  .toolbar-filters { width: 100%; }
  .toolbar select, .toolbar input[type='date'] { flex: 1; min-width: 0; }
  .settings-card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .field.full, .form-grid > .full { grid-column: auto; }
  dialog.modal { width: calc(100% - 22px); max-height: calc(100dvh - 24px); border-radius: 15px; }
  .modal-heading { padding: 20px; }
  .modal-heading h2 { font-size: 18px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 15px 20px; border-radius: 0 0 15px 15px; }
  .toast-container { right: 15px; bottom: 15px; left: 15px; align-items: stretch; }
  .toast { max-width: 100%; font-size: 11px; }
  .auth-story h1 { font-size: 29px; }
  .auth-logo { font-size: 19px; }
  .auth-card { padding-top: 28px; }
  .booking-card { padding: 22px 19px; }
  .booking-steps { gap: 6px; }
  .booking-step { font-size: 9px; gap: 5px; }
  .booking-step > span:first-child { font-size: 9px; }
  .booking-brand .brand-name { font-size: 16px; }
  .booking-brand .brand-sub { font-size: 7px; letter-spacing: .07em; }
  .booking-brand > .btn { font-size: 9px; padding: 6px 8px; }
  .slots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .booking-intro > p { line-height: 1.55; }
  .booking-summary { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .sidebar, .topbar, .heading-actions, .staff-filter, .calendar-toolbar .view-toggle, .empty-slot, .toast-container, .overlay { display: none !important; }
  body { color: #18243c; background: #fff; }
  .main-shell { margin: 0; }
  .main-content { padding: 0; }
  .panel, .stat-card { box-shadow: none; break-inside: avoid; }
  .dashboard-grid { display: block; }
  .side-panel { margin-top: 20px; }
  .schedule { overflow: visible; }
}
