@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --velocity-indigo: #4f46e5;
  --recovery-mint: #10b981;
  --instant-amber: #f59e0b;
  --frictionless-gray: #f8fafc;
  --deep-slate: #0f172a;
  --ink: var(--deep-slate);
  --muted: #475569;
  --line: #e2e8f0;
  --canvas: var(--frictionless-gray);
  --paper: #fff;
  --green: var(--velocity-indigo);
  --green-dark: #4338ca;
  --green-pale: #eef2ff;
  --serif: "Manrope", "DM Sans", sans-serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
body:not(.app-ready) .app-shell { display: none; }
.auth-screen { display: none; min-height: 100vh; padding: 28px clamp(18px,5vw,76px); background: radial-gradient(ellipse at 18% 82%,#e6f0e5 0,transparent 36%),linear-gradient(135deg,#f6f7f4,#fbfcf9 58%,#f0f5ef); }
body:not(.app-ready) .auth-screen { display: block; }
.auth-brand { margin: 0; }
.auth-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr); align-items: center; gap: clamp(40px,9vw,140px); width: min(1050px,100%); min-height: calc(100vh - 92px); margin: 0 auto; padding: 38px 0; }
.auth-story { max-width: 460px; }
.auth-story-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 24px; border-radius: 12px; color: #438669; background: #e8f2e7; font-size: 19px; }
.auth-story h1 { margin: 0; font-family: var(--serif); font-size: clamp(38px,5vw,58px); font-weight: 700; letter-spacing: -2.6px; line-height: 1.08; }
.auth-story h1 > span { color: #d7a17f; }
.auth-story > p:not(.eyebrow) { max-width: 360px; margin: 17px 0 0; color: #78847d; font-size: 13px; line-height: 1.8; }
.auth-story-note { display: flex; align-items: center; gap: 12px; max-width: 355px; margin-top: 37px; padding-top: 17px; border-top: 1px solid #e1e9e1; color: #77847c; font-size: 10px; line-height: 1.6; }
.auth-story-note span:first-child { color: #d59b72; font-size: 17px; }
.auth-card { width: 100%; max-width: 415px; justify-self: end; padding: 30px; border: 1px solid #e8ede8; border-radius: 13px; background: #fff; box-shadow: 0 12px 40px #20352a10; }
.auth-heading h2 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -.7px; }
.auth-heading > p:last-child { margin: 7px 0 0; color: #87928c; font-size: 10px; }
.auth-form { display: grid; gap: 14px; margin-top: 23px; }
.auth-form[hidden],.auth-switch[hidden] { display: none; }
.auth-divider[hidden],.auth-demo-button[hidden] { display: none; }
.auth-submit { width: 100%; min-height: 40px; margin-top: 3px; }
.auth-remember { align-items: flex-start; margin-top: -3px; color: #475569; font-size: 12px; }
.auth-remember input { margin-top: 2px; accent-color: var(--velocity-indigo); }
.auth-remember span { display: grid; gap: 3px; }
.auth-remember small { color: #64748b; font-size: 11px; font-weight: 400; }
.auth-error { min-height: 0; margin: 0; color: #a35243; font-size: 9px; line-height: 1.6; }
.auth-error:not(:empty) { margin-top: 12px; }
.auth-status { margin: 12px 0 0; color: #26734f; font-size: 9px; line-height: 1.6; }
.auth-status[hidden] { display: none; }
.auth-switch { margin: 16px 0 0; color: #87928c; font-size: 9px; text-align: center; }
.auth-switch button { padding: 0; border: 0; color: var(--green); background: transparent; font-size: inherit; font-weight: 700; }
.auth-switch button:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0 12px; color: #b0b8b2; font-size: 8px; }
.auth-divider::before,.auth-divider::after { height: 1px; flex: 1; background: #edf0ed; content: ""; }
.auth-demo-button { width: 100%; min-height: 36px; border: 1px solid #e6ece6; border-radius: 7px; color: #66736b; background: #fbfcfa; font-size: 9px; font-weight: 600; }
.auth-demo-button:hover { background: #f0f5ef; }
.auth-footnote { margin: 15px 0 0; color: #a0aaa4; font-size: 8px; line-height: 1.6; text-align: center; }
.onboarding-card { display: flex; align-items: center; gap: 13px; margin: -4px 0 17px; padding: 14px 15px; border: 1px solid #e4ede3; border-radius: 9px; background: linear-gradient(110deg,#f2f8f0,#fbfcf9); }
.onboarding-card[hidden] { display: none; }
.onboarding-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; color: #4a8965; background: #e6f1e4; }
.onboarding-copy { display: grid; flex: 1; gap: 4px; }
.onboarding-copy strong { font-size: 10px; }
.onboarding-copy span { color: #8a968e; font-size: 9px; }
.onboarding-actions { display: flex; align-items: center; gap: 12px; }
body:not(.demo-mode) [data-action="reset-demo"] { display: none; }
body.demo-mode [data-action="sign-out"] { display: none; }
.sidebar-sign-out { width: 100%; margin-top: 8px; }

.sidebar {
  width: 264px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 27px 17px 18px;
  background: #fff;
  border-right: 1px solid #ecefeb;
  z-index: 4;
}
.brand { display: flex; align-items: center; gap: 9px; width: fit-content; margin: 0 0 34px 8px; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; width: 132px; height: auto; object-fit: contain; }
.brand-mark { width: 31px; height: 31px; color: var(--green); display: grid; place-items: center; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 800; letter-spacing: -1.05px; }
.brand-name > span { color: #e8a77c; }
.business-switcher { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid var(--line); background: white; border-radius: 9px; text-align: left; }
.business-avatar,.profile-avatar { display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; font-weight: 700; }
.business-avatar { width: 34px; height: 34px; background: #f6e8df; color: #a76e50; font-family: var(--serif); font-size: 18px; }
.business-avatar { overflow: hidden; }
.business-avatar img { width: 100%; height: 100%; object-fit: contain; }
.business-logo-editor { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.business-logo-preview { display: grid; width: 72px; height: 72px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #a76e50; font: 700 28px var(--serif); }
.business-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.business-logo-editor .checkbox-field { grid-column: 2; }
.business-switcher-copy,.profile-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.business-switcher-copy strong,.profile-copy strong { font-size: 12px; font-weight: 700; }
.profile-copy strong { overflow-wrap: anywhere; }
.business-switcher-copy small,.profile-copy small { color: var(--muted); font-size: 10px; }
.switcher-chevron { color: #89938e; font-size: 18px; transform: translateY(-2px); }
.nav-label { margin: 35px 0 11px 10px; color: #a3aca8; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
.nav-links { display: grid; gap: 4px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; padding: 0 11px; border: 0; border-radius: 7px; color: #747f7a; background: transparent; text-align: left; font-size: 12px; font-weight: 500; transition: background .16s, color .16s; }
.nav-link:hover { background: #f7f9f7; color: var(--ink); }
.nav-link.active { background: #eaf5f0; color: var(--green-dark); font-weight: 700; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; color: currentColor; font-size: 19px; line-height: 1; }
.nav-count { margin-left: auto; min-width: 20px; padding: 3px 6px; border-radius: 10px; color: #6f7a75; background: #f0f2ef; font-size: 9px; text-align: center; }
.nav-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #e6a16f; }
.sidebar-bottom { margin-top: auto; }
.fill-card { padding: 15px 14px 14px; border: 1px solid #e8eee8; border-radius: 10px; background: linear-gradient(140deg, #f8fbf8 0%, #eff6f0 100%); }
.fill-card-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #e4f0e8; color: #498b69; font-size: 14px; }
.fill-card-title { margin: 12px 0 5px; font-size: 11px; font-weight: 700; }
.fill-card-copy { margin: 0; max-width: 175px; color: #78827d; font-size: 10px; line-height: 1.6; }
.fill-card-link { display: flex; justify-content: space-between; width: 100%; margin-top: 12px; padding: 0; border: 0; color: var(--green); background: transparent; font-size: 10px; font-weight: 700; text-align: left; }
.profile-button { display: flex; align-items: center; width: 100%; gap: 10px; margin-top: 20px; padding: 12px 4px 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.profile-avatar { width: 33px; height: 33px; border-radius: 50%; color: #79513d; background: #f1e4dc; font-size: 10px; }
.profile-more { color: #84908a; font-size: 20px; letter-spacing: 1px; }

.main-content { margin-left: 264px; min-height: 100vh; padding: 0 42px; }
.topbar { height: 67px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e9ece8; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #89938e; font-size: 10px; }
.breadcrumb strong { color: #525d58; font-weight: 600; }
.breadcrumb-slash { color: #c1c8c3; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.today-label { color: #78837e; font-size: 10px; }
.icon-button { position: relative; display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 8px; color: #66716c; background: white; }
.notification-button svg { width: 16px; height: 16px; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border: 1px solid white; border-radius: 50%; background: #e7a176; }
.mobile-menu { display: none; border: 0; background: none; color: var(--ink); font-size: 20px; }
.view { display: none; max-width: 1320px; margin: 0 auto; padding: 33px 0 24px; }
.view.active { display: block; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 23px; }
.eyebrow { margin: 0 0 9px; color: #9aa49f; font-size: 9px; font-weight: 700; letter-spacing: 1.08px; }
h1,h2,h3,p { margin-top: 0; }
.page-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 29px); font-weight: 700; letter-spacing: -1.15px; line-height: 1.23; }
.page-heading h1 > span { color: #d7a17f; }
.page-subtitle { margin: 7px 0 0; color: #8a948f; font-size: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; font-size: 10px; font-weight: 700; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--green); color: white; box-shadow: 0 2px 3px #176e5714; }
.button-primary:hover { background: var(--green-dark); }
.button-plus { font-size: 17px; font-weight: 400; line-height: 1; }
.button-secondary { border-color: #dfe9e2; background: #f4f8f4; color: #397454; }
.button-secondary:hover,.button-light:hover { background: #eaf2eb; }
.button-light { border-color: var(--line); color: #63706a; background: white; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 700; white-space: nowrap; }
.text-button span { margin-left: 4px; font-size: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card,.panel { border: 1px solid #e9ede9; border-radius: 10px; background: var(--paper); box-shadow: 0 2px 5px #253c3010; }
.stat-card { min-height: 111px; padding: 16px 17px 13px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: #78837e; font-size: 10px; font-weight: 500; }
.stat-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; font-size: 15px; }
.stat-icon.mint { color: #3e8b6a; background: #eaf5ed; }
.stat-icon.lilac { color: #8884ac; background: #f1eff8; }
.stat-icon.peach { color: #c98663; background: #fbf0e9; }
.stat-value { margin-top: 8px; font-family: var(--serif); font-size: 25px; font-weight: 700; letter-spacing: -.8px; line-height: 1; }
.stat-value > span { color: #9aa49f; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.stat-foot { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: #a0a9a4; font-size: 9px; }
.stat-positive { color: #438669; font-weight: 600; }
.stat-spark { color: #549474; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,1fr); align-items: start; gap: 16px; }
.panel { padding: 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading h2,.settings-panel h2 { margin: 0; font-family: var(--serif); font-size: 14px; font-weight: 700; letter-spacing: -.25px; }
.panel-subtitle { margin: 5px 0 0; color: #9aa39f; font-size: 9px; }
.schedule-list { margin-top: 18px; }
.appointment-row { display: grid; grid-template-columns: 67px 3px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 69px; border-top: 1px solid #f0f2ef; }
.appointment-row:first-child { border-top: 0; }
.appointment-time { color: #78837e; font-size: 10px; font-weight: 600; white-space: nowrap; }
.appointment-date { display: block; margin-bottom: 3px; color: #9aa49e; font-size: 8px; font-weight: 500; }
.appointment-color { width: 3px; height: 35px; border-radius: 5px; background: #87b79b; }
.appointment-color.color-peach { background: #e1aa84; }
.appointment-color.color-lilac { background: #aaa1c8; }
.appointment-color.color-blue { background: #89a9c5; }
.appointment-color.color-gray { background: #ccd1cc; }
.appointment-info { min-width: 0; }
.appointment-info strong { display: block; overflow: hidden; color: #34403b; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.appointment-info span { display: block; margin-top: 5px; overflow: hidden; color: #9aa39f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.appointment-amount { color: #707b75; font-size: 10px; font-weight: 600; white-space: nowrap; }
.appointment-state { padding: 5px 7px; border-radius: 10px; color: #56836a; background: #eff7f0; font-size: 8px; font-weight: 700; white-space: nowrap; }
.appointment-state.cancelled { color: #a56d51; background: #fbf1eb; }
.appointment-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.appointment-action { padding: 4px 5px; border: 0; border-radius: 4px; color: #62816e; background: transparent; font-size: 8px; opacity: 0; }
.appointment-row:hover .appointment-action,.appointment-action:focus-visible { opacity: 1; }
.appointment-action:hover { background: #eef5ef; }
.appointment-action.cancel { color: #a07461; }
.appointment-row.is-cancelled .appointment-info strong { color: #89928e; text-decoration: line-through; text-decoration-color: #b6beba; }
.empty-state { padding: 30px 12px; color: #929c97; font-size: 11px; text-align: center; }
.heading-with-icon { display: flex; align-items: center; gap: 7px; }
.sparkle { color: #d3996f; font-size: 15px; }
.live-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 10px; color: #69836f; background: #f0f6f0; font-size: 7px; font-weight: 700; letter-spacing: .3px; }
.live-pill span { width: 5px; height: 5px; border-radius: 50%; background: #72a27b; }
.open-slot-card { display: flex; align-items: center; gap: 11px; margin-top: 18px; padding: 11px; border: 1px solid #eef0eb; border-radius: 8px; background: #fcfcfa; }
.open-slot-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 39px; height: 43px; border-radius: 7px; background: #f8eee6; color: #a97958; }
.open-slot-month { font-size: 7px; font-weight: 700; letter-spacing: .55px; }
.open-slot-date strong { margin-top: 1px; font-family: var(--serif); font-size: 18px; line-height: 1; }
.open-slot-details { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.open-slot-details strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.open-slot-details span { color: #909b95; font-size: 8px; }
.open-slot-status { padding: 4px 5px; border-radius: 5px; color: #54856b; background: #eaf4ea; font-size: 7px; font-weight: 700; }
.match-label { margin: 19px 0 7px; color: #98a19c; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.match-label span { color: #b1b8b3; font-weight: 500; letter-spacing: 0; }
.match-row { display: flex; align-items: center; gap: 8px; min-height: 42px; border-top: 1px solid #f1f3f0; }
.match-avatar,.customer-avatar,.specialist-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%; background: #f3e8e1; color: #996e57; font-size: 8px; font-weight: 700; }
.avatar-1 { background: #e8edf5; color: #657f9c; }
.avatar-2 { background: #f4e9ef; color: #9b7287; }
.match-info { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.match-info strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.match-info span { overflow: hidden; color: #9ca6a0; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.match-score { color: #5d8a6c; font-size: 8px; font-weight: 700; }
.match-send { padding: 5px 8px; border: 1px solid #e4eee6; border-radius: 5px; color: #4a805f; background: #f5f9f4; font-size: 8px; font-weight: 700; }
.match-send:hover { background: #eaf5ec; }
.full-width { width: 100%; margin-top: 10px; }
.privacy-note { margin: 10px 0 0; color: #adb5b0; font-size: 8px; text-align: center; }
.privacy-note span { margin-right: 3px; font-size: 11px; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; margin: 19px 2px 0; color: #a3aca7; font-size: 8px; }
.page-footer a { color: #6c9878; text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }

.calendar-panel { padding: 20px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; }
.calendar-month { display: flex; align-items: center; gap: 13px; }
.calendar-month h2 { min-width: 145px; margin: 0; font-family: var(--serif); font-size: 15px; text-align: center; }
.calendar-step { font-size: 22px; line-height: 1; }
.week-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; margin: 22px 0; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px; border: 1px solid transparent; border-radius: 8px; color: #85908a; background: transparent; }
.week-day:hover { background: #f7f9f6; }
.week-day.selected { border-color: #dcebe0; color: #397653; background: #f0f7f0; }
.week-day-name { font-size: 8px; font-weight: 600; text-transform: uppercase; }
.week-day-number { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #47534d; font-family: var(--serif); font-size: 13px; font-weight: 700; }
.week-day.selected .week-day-number { color: white; background: var(--green); }
.week-day.has-events::after { width: 4px; height: 4px; margin-top: -6px; border-radius: 50%; background: #d9a07b; content: ""; }
.day-schedule-heading { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.day-schedule-heading h3 { margin: 0; font-family: var(--serif); font-size: 13px; }
.day-schedule-heading > span { color: #9ca6a0; font-size: 9px; }
.calendar-schedule { margin-top: 12px; }

.waitlist-panel { padding: 0 18px 10px; }
.waitlist-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 65px; border-bottom: 1px solid #edf0ec; }
.waitlist-summary { display: flex; align-items: baseline; gap: 7px; color: #8a958f; font-size: 10px; }
.summary-number { color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 700; }
.summary-divider { color: #c5ccc7; }
.summary-match { color: #508465; font-size: 9px; font-weight: 600; }
.search-box { display: flex; align-items: center; gap: 7px; width: 198px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; color: #9ca6a0; }
.search-box > span { font-size: 18px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 9px; }
.search-box input::placeholder { color: #a4aea8; }
.waitlist-row { display: grid; grid-template-columns: minmax(160px,1.25fr) minmax(125px,1fr) minmax(115px,.9fr) minmax(85px,.65fr) minmax(120px,auto); align-items: center; gap: 14px; min-height: 65px; border-bottom: 1px solid #f0f2ef; }
.waitlist-header { min-height: 41px; color: #a1aaa5; font-size: 8px; font-weight: 700; letter-spacing: .35px; }
.customer-cell { display: flex; min-width: 0; align-items: center; gap: 9px; }
.customer-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.customer-copy strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.customer-copy span { overflow: hidden; color: #a0aaa4; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.customer-contact { color: #87928c; font-size: 8px; }
.customer-preference { color: #6d7872; font-size: 8px; }
.waitlist-card-label { display: none; }
.contact-tag { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 4px 6px; border-radius: 4px; color: #77827c; background: #f4f6f3; font-size: 7px; font-weight: 600; }
.contact-tag.email { color: #70849a; background: #f0f3f7; }
.waitlist-actions { display: flex; justify-content: flex-end; gap: 5px; }
.waitlist-actions .match-send { white-space: nowrap; }
.waitlist-actions button:disabled { cursor: default; opacity: .48; }
.empty-search { padding: 35px; color: #929c97; font-size: 11px; text-align: center; }

.services-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-bottom: 16px; }
.service-card { position: relative; padding: 16px; border: 1px solid #e9ede9; border-radius: 10px; background: white; box-shadow: 0 2px 5px #253c3010; }
.service-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #4e8a67; background: #edf5ed; font-size: 15px; }
.service-icon.peach { color: #b17c5e; background: #faf0e8; }
.service-icon.lilac { color: #827ca3; background: #f1eff7; }
.service-name { margin: 13px 0 6px; font-size: 11px; font-weight: 700; }
.service-meta { color: #929d97; font-size: 9px; }
.service-price { margin-top: 15px; padding-top: 11px; border-top: 1px solid #f0f2ef; color: #58645e; font-size: 10px; font-weight: 600; }
.service-more { border: 0; color: #98a29d; background: none; font-size: 18px; }
.team-panel { margin-top: 0; }
.specialist-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.specialist-card { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid #edf0ec; border-radius: 7px; }
.specialist-avatar { width: 32px; height: 32px; font-size: 9px; }
.specialist-info { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.specialist-info strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.specialist-info span { overflow: hidden; color: #9aa49e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 14px; }
.settings-panel { display: flex; flex-direction: column; gap: 14px; }
.team-management-panel[hidden] { display: none; }
.team-management-panel .panel-heading { align-items: flex-start; }
.team-seat-summary { margin: 0; color: var(--muted); font-size: 10px; font-weight: 600; }
.team-member-list { display: grid; }
.team-member-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.team-member-copy { display: grid; min-width: 0; gap: 4px; }
.team-member-copy strong { overflow-wrap: anywhere; font-size: 10px; }
.team-member-copy small { color: var(--muted); font-size: 9px; }
.team-member-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.team-member-actions .text-button { font-size: 9px; }
.team-remove-button { color: #b42318; }
.settings-field { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 11px; border-bottom: 1px solid #f0f2ef; font-size: 9px; }
.settings-field > span:first-child { color: #8d9892; }
.settings-field strong { color: #4d5953; font-size: 9px; text-align: right; }
.hours-editor { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 9px; }
.hours-editor > legend { padding: 0 5px; font-size: 11px; font-weight: 700; }
.hours-help { margin: 0 0 12px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.hours-day-row { display: grid; grid-template-columns: 58px minmax(85px,1fr) minmax(85px,1fr) auto; align-items: end; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.hours-day-row > strong { padding-bottom: 8px; font-size: 9px; }
.hours-time-field { display: grid; gap: 4px; color: var(--muted); font-size: 8px; }
.hours-time-controls { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 4px; }
.hours-time-field input,.hours-time-field select { width: 100%; min-width: 0; padding: 7px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; font-size: 10px; }
.hours-closed-field { display: flex; align-items: center; gap: 4px; padding-bottom: 8px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.hours-closed-field input { margin: 0; }
.settings-enabled { color: #548265; font-size: 9px; font-weight: 600; }
.settings-panel > .button { align-self: flex-start; }
.subscription-card { background: linear-gradient(145deg,#fff 20%,#f7faf6); }
.subscription-card .plan-tag { color: #8e9a93; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.subscription-card > h2 { font-size: 19px; }
.subscription-card > p { margin: -7px 0 0; color: #919b95; font-size: 9px; }
.plan-price { padding-bottom: 11px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 25px; font-weight: 700; }
.plan-price span { color: #8b9690; font-family: var(--sans); font-size: 9px; font-weight: 400; }
.subscription-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: #69756e; font-size: 9px; }
.subscription-card li::before { margin-right: 8px; color: #52906a; content: "✓"; font-weight: 700; }
.subscription-card small,.settings-footnote { color: #9ca6a0; font-size: 8px; line-height: 1.6; }
.booking-share-panel .form-field { display: grid; gap: 7px; color: #78847d; font-size: 10px; font-weight: 600; }
.booking-share-panel input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: #5d6862; background: #fbfcfa; font-size: 10px; }
.booking-share-actions { display: flex; gap: 8px; margin-top: 12px; }
.booking-share-actions .button { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; padding: 0 12px; text-decoration: none; }
.notification-settings { grid-column: 1 / -1; }

.app-dialog { position: fixed; inset: 50% auto auto 50%; width: min(440px,calc(100vw - 28px)); max-height: min(90vh,780px); margin: 0; padding: 0; overflow: auto; transform: translate(-50%,-50%); border: 1px solid #e8ece8; border-radius: 12px; color: var(--ink); background: white; box-shadow: 0 18px 70px #1d302d2b; }
.app-dialog::backdrop { background: #1c29264d; backdrop-filter: blur(2px); }
.dialog-form { padding: 22px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 17px; }
.dialog-heading .eyebrow { margin-bottom: 6px; }
.dialog-heading h2 { margin: 0; font-family: var(--serif); font-size: 19px; letter-spacing: -.4px; }
.dialog-close { border: 0; font-size: 21px; }
.form-fields { display: grid; gap: 12px; }
.form-field { display: grid; gap: 6px; color: #6f7a74; font-size: 9px; font-weight: 600; }
.form-field input,.form-field select { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid #e6ebe7; border-radius: 6px; outline: none; color: #36413c; background: white; font-size: 10px; }
.form-field input:focus,.form-field select:focus { border-color: #86b89c; box-shadow: 0 0 0 3px #e6f2e9; }
.country-search-field { margin-bottom: -4px; }
.form-field small { color: #9aa39e; font-size: 8px; font-weight: 400; }
.field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.phone-contact-row { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); }
.checkbox-field { display: flex; align-items: flex-start; gap: 8px; color: #717d76; font-size: 9px; line-height: 1.5; }
.checkbox-field input { margin: 1px 0 0; accent-color: var(--green); }
.service-checkboxes { display: grid; gap: 10px; margin: 0; padding: 11px; border: 1px solid #e6ebe7; border-radius: 6px; }
.service-checkboxes legend { padding: 0 4px; color: #6f7a74; font-size: 9px; font-weight: 600; }
.service-checkboxes input { accent-color: var(--green); }
.offer-preview { padding: 13px; border: 1px solid #e8eee8; border-radius: 8px; color: #68746d; background: #f8faf7; font-size: 10px; line-height: 1.65; }
.offer-preview p:last-child { margin-bottom: 0; color: #98a29c; font-size: 8px; }
.offer-decline { padding: 2px 0; border: 0; color: #9b7362; background: transparent; font-size: 9px; text-align: left; }
.offer-decline:hover { text-decoration: underline; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; padding-top: 14px; border-top: 1px solid #edf0ed; }
.form-error { min-height: 0; margin: 0; color: #a35243; font-size: 9px; }
.form-error:not(:empty) { margin-top: 9px; }
.toast { position: fixed; right: 24px; bottom: 22px; z-index: 8; max-width: min(360px,calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #dfeae1; border-radius: 8px; color: #345b44; background: #f3faf2; box-shadow: 0 5px 18px #293a3019; font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s,transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1500px) {
  .main-content { padding-right: 64px; padding-left: 64px; }
}
@media (max-width: 1050px) {
  .main-content { padding-right: 26px; padding-left: 26px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.25fr) minmax(275px,.9fr); gap: 12px; }
  .panel { padding: 15px; }
  .waitlist-row { grid-template-columns: minmax(140px,1.15fr) minmax(105px,.9fr) minmax(100px,.8fr) minmax(75px,.6fr) minmax(105px,auto); gap: 8px; }
}
@media (max-width: 790px) {
  .sidebar { width: 230px; padding-right: 13px; padding-left: 13px; }
  .main-content { margin-left: 230px; padding-right: 20px; padding-left: 20px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .opportunity-panel { max-width: none; }
  .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .waitlist-panel { overflow-x: auto; }
  .waitlist-toolbar,.waitlist-list { min-width: 680px; }
}
@media (max-width: 600px) {
  .auth-screen { padding: 20px 16px; }
  .auth-layout { grid-template-columns: 1fr; gap: 22px; min-height: auto; padding: 35px 0 12px; }
  .auth-story { max-width: 400px; }
  .auth-story-icon { width: 34px; height: 34px; margin-bottom: 15px; }
  .auth-story h1 { font-size: 34px; letter-spacing: -1.5px; }
  .auth-story > p:not(.eyebrow) { margin-top: 10px; font-size: 11px; }
  .auth-story-note { display: none; }
  .auth-card { max-width: none; justify-self: stretch; padding: 23px 19px; }
  .onboarding-card { align-items: flex-start; flex-wrap: wrap; }
  .onboarding-copy { flex-basis: calc(100% - 48px); padding-top: 2px; }
  .onboarding-actions { width: 100%; justify-content: flex-end; }
  .sidebar { width: min(282px,82vw); box-shadow: 12px 0 35px #14271e16; transform: translateX(-105%); transition: transform .2s; }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 0 16px; }
  .topbar { height: 57px; }
  .topbar-actions { gap: 10px; }
  .today-label { display: none; }
  .mobile-menu { display: block; }
  .view { padding-top: 25px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .page-heading h1 { max-width: 310px; font-size: 23px; }
  .page-heading .button { min-height: 33px; padding: 0 10px; font-size: 9px; }
  .page-subtitle { max-width: 290px; font-size: 10px; line-height: 1.5; }
  .eyebrow { font-size: 8px; letter-spacing: .7px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .stat-card { min-height: 102px; padding: 12px; }
  .stat-card:last-child { grid-column: 1 / -1; min-height: 88px; }
  .stat-card:last-child .stat-value { display: inline-block; margin-right: 10px; }
  .stat-card:last-child .stat-foot { display: inline-flex; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 22px; }
  .panel { padding: 14px; }
  .appointment-row { grid-template-columns: 53px 3px minmax(0,1fr) auto; gap: 8px; }
  .appointment-time { font-size: 9px; }
  .appointment-info strong { font-size: 9px; }
  .appointment-info span { font-size: 8px; }
  .appointment-amount { font-size: 9px; }
  .appointment-row-actions { gap: 2px; }
  .appointment-action { padding: 4px 2px; font-size: 7px; opacity: 1; }
  .appointment-state { padding: 4px 5px; font-size: 7px; }
  .page-footer { flex-direction: column; gap: 7px; }
  .calendar-panel { padding: 13px 10px; }
  .week-strip { gap: 1px; }
  .week-day { padding: 8px 1px; }
  .week-day-name { font-size: 7px; }
  .calendar-month { gap: 7px; }
  .calendar-month h2 { min-width: 115px; font-size: 13px; }
  .services-grid { gap: 8px; }
  .service-card { padding: 12px; }
  .service-name { min-height: 25px; font-size: 10px; }
  .service-meta,.service-price { font-size: 8px; }
  .specialist-list { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .notification-settings { grid-column: auto; }
  .waitlist-panel { margin-right: -6px; }
  .waitlist-summary { gap: 5px; font-size: 9px; }
  .summary-match { font-size: 8px; }
}

:root {
  color: var(--deep-slate);
  background: var(--frictionless-gray);
  accent-color: var(--velocity-indigo);
}

body {
  background: var(--frictionless-gray);
  color: var(--deep-slate);
  font-size: 14px;
}

.auth-screen,
.booking-page {
  background:
    radial-gradient(ellipse at 86% 12%, #e0e7ff 0, transparent 34%),
    linear-gradient(145deg, #f8fafc, #fff 58%, #f1f5f9);
}

.auth-brand,
.sidebar .brand,
.booking-brand {
  margin-bottom: 0;
}

.auth-brand { margin: 0; }
.auth-brand .brand-logo { width: 148px; }
.sidebar .brand { margin: 0 0 34px 8px; }
.sidebar .brand-logo { width: 118px; }
.booking-brand { margin: 0 0 22px 4px; }
.booking-brand .brand-logo { width: 124px; }

.brand-mark { color: var(--velocity-indigo); }
.brand-name > span,
.auth-story h1 > span,
.page-heading h1 > span,
.booking-heading h1 span { color: var(--velocity-indigo); }

.auth-story-icon,
.onboarding-icon,
.fill-card-icon {
  color: #3730a3;
  background: #e0e7ff;
}

.auth-story > p:not(.eyebrow),
.auth-story-note,
.auth-card,
.business-switcher,
.sidebar,
.stat-card,
.panel,
.service-card,
.app-dialog,
.booking-card {
  border-color: var(--line);
}

.auth-card {
  max-width: 440px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 20px;
  box-shadow: 0 24px 70px #0f172a12;
}

.auth-story h1 {
  letter-spacing: -2px;
}

.auth-story > p:not(.eyebrow),
.auth-story-note,
.auth-heading > p:last-child,
.auth-switch,
.auth-footnote,
.page-subtitle,
.panel-subtitle,
.stat-foot,
.appointment-info span,
.match-info span,
.booking-subtitle,
.booking-footnote,
.booking-footer {
  color: #475569;
}

.auth-heading h2 { font-size: 25px; }
.auth-heading > p:last-child,
.auth-story > p:not(.eyebrow),
.auth-switch,
.auth-footnote { font-size: 13px; }

.auth-form,
.booking-form { gap: 16px; }

.form-field,
.auth-form .form-field {
  color: #334155;
  font-size: 13px;
}

.form-field input,
.form-field select {
  min-height: 46px;
  padding: 9px 12px;
  border-color: #cbd5e1;
  border-radius: 10px;
  color: var(--deep-slate);
  background: #fff;
  font-size: 14px;
}

.form-field input:focus,
.form-field select:focus,
.booking-form input:focus,
.booking-form select:focus {
  border-color: var(--velocity-indigo);
  box-shadow: 0 0 0 3px #4f46e51f;
}

.form-field small,
.auth-form .form-field small { color: #475569; font-size: 12px; }
.auth-error,
.form-error { color: #9f1239; font-size: 12px; }
.auth-status { color: #065f46; font-size: 12px; }

.button,
.icon-button,
.match-send,
.search-box,
.week-day {
  border-radius: 10px;
}

.button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
}

.button-primary {
  color: #fff;
  background: var(--velocity-indigo);
  box-shadow: 0 3px 8px #4f46e52e;
}

.button-primary:hover { background: #4338ca; }
.button-secondary {
  border-color: #c7d2fe;
  color: #3730a3;
  background: #eef2ff;
}
.button-secondary:hover,
.button-light:hover { background: #e0e7ff; }
.button-light {
  border-color: #cbd5e1;
  color: #334155;
  background: #fff;
}
.text-button,
.fill-card-link,
.auth-switch button { color: #4338ca; font-size: 13px; }

.sidebar {
  background: #fff;
  border-right-color: var(--line);
}

.business-avatar {
  color: #3730a3;
  background: #e0e7ff;
}

.nav-label,
.eyebrow { color: #475569; }
.nav-label { font-size: 10px; }
.eyebrow { font-size: 11px; }

.nav-link {
  min-height: 46px;
  border-radius: 10px;
  color: #475569;
  font-size: 13px;
}

.nav-link:hover { color: var(--deep-slate); background: #f1f5f9; }
.nav-link.active { color: #3730a3; background: #eef2ff; }
.nav-count { color: #334155; background: #e2e8f0; }
.nav-dot,
.notification-dot { background: var(--instant-amber); }

.fill-card {
  border-color: #c7d2fe;
  background: linear-gradient(145deg, #eef2ff, #f8fafc);
}
.fill-card-title { font-size: 13px; }
.fill-card-copy { color: #334155; font-size: 12px; }
.profile-button { border-top-color: var(--line); }
.profile-avatar { color: #3730a3; background: #e0e7ff; }

.main-content { background: var(--frictionless-gray); }
.topbar { border-bottom-color: var(--line); }
.breadcrumb,
.today-label { color: #475569; font-size: 12px; }
.breadcrumb strong { color: var(--deep-slate); }
.icon-button {
  width: 40px;
  height: 40px;
  border-color: #cbd5e1;
  color: #334155;
}
.mobile-menu { min-width: 44px; min-height: 44px; }

.view { padding-top: 36px; }
.page-heading h1 { font-size: clamp(26px, 2.4vw, 34px); }
.page-subtitle { font-size: 14px; }
.stats-grid { gap: 16px; }
.stat-card,
.panel,
.service-card {
  border-radius: 14px;
  box-shadow: 0 3px 12px #0f172a08;
}
.stat-card { min-height: 124px; padding: 19px; }
.stat-label { color: #334155; font-size: 13px; }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; }
.stat-icon.mint { color: #065f46; background: #d1fae5; }
.stat-icon.lilac { color: #3730a3; background: #e0e7ff; }
.stat-icon.peach { color: #92400e; background: #fef3c7; }
.stat-value { font-size: 28px; }
.stat-value > span { color: #475569; font-size: 13px; }
.stat-foot { font-size: 12px; }
.stat-positive,
.stat-spark { color: #047857; }

.panel { padding: 20px; }
.panel-heading h2,
.settings-panel h2 { font-size: 17px; }
.panel-subtitle { font-size: 12px; }
.appointment-row {
  min-height: 76px;
  grid-template-columns: max-content 3px minmax(0, 1fr) auto;
}
.appointment-time,
.appointment-amount { color: #334155; font-size: 12px; }
.appointment-date { color: #475569; font-size: 11px; }
.appointment-info strong { color: var(--deep-slate); font-size: 13px; }
.appointment-info span { font-size: 12px; }
.appointment-state {
  color: #065f46;
  background: #d1fae5;
  font-size: 10px;
}
.appointment-state.cancelled { color: #92400e; background: #fef3c7; }
.appointment-action { color: #3730a3; font-size: 11px; }
.appointment-action:hover { background: #eef2ff; }

.heading-with-icon .sparkle { color: var(--instant-amber); }
.live-pill {
  color: #065f46;
  background: #d1fae5;
  font-size: 10px;
}
.live-pill span { background: var(--recovery-mint); }
.open-slot-card {
  border-color: #fde68a;
  background: #fffbeb;
}
.open-slot-date {
  color: #78350f;
  background: #fef3c7;
}
.open-slot-month,
.open-slot-details span { font-size: 11px; }
.open-slot-details strong { color: var(--deep-slate); font-size: 12px; }
.open-slot-status {
  padding: 6px 9px;
  color: #78350f;
  background: #fef3c7;
  font-size: 10px;
}
.match-label { color: #334155; font-size: 10px; }
.match-label span { color: #475569; }
.match-info strong { font-size: 12px; }
.match-info span { font-size: 11px; }
.match-score { color: #047857; font-size: 11px; }
.match-send {
  min-height: 40px;
  padding: 0 12px;
  border-color: #a7f3d0;
  color: #065f46;
  background: #d1fae5;
  font-size: 12px;
}
.match-send:hover { background: #a7f3d0; }
.privacy-note { color: #475569; font-size: 11px; }
.page-footer { color: #475569; font-size: 11px; }
.page-footer a { color: #4338ca; }

.week-day { min-height: 48px; color: #334155; }
.week-day.selected {
  border-color: #c7d2fe;
  color: #3730a3;
  background: #eef2ff;
}
.week-day-number { color: #0f172a; }
.week-day.selected .week-day-number {
  color: #fff;
  background: var(--velocity-indigo);
}
.week-day.has-events::after { background: var(--instant-amber); }
.day-schedule-heading > span { color: #475569; font-size: 12px; }

.waitlist-toolbar { border-bottom-color: var(--line); }
.waitlist-summary,
.summary-match { color: #334155; font-size: 12px; }
.summary-match { color: #047857; }
.search-box {
  min-height: 42px;
  border-color: #cbd5e1;
  color: #475569;
}
.search-box input { color: var(--deep-slate); font-size: 12px; }
.search-box input::placeholder { color: #64748b; }
.waitlist-header { color: #334155; font-size: 10px; }
.waitlist-row { min-height: 72px; border-bottom-color: var(--line); }
.customer-copy strong { color: var(--deep-slate); font-size: 12px; }
.customer-copy span,
.customer-contact,
.customer-preference { color: #475569; font-size: 11px; }
.contact-tag { color: #334155; background: #e2e8f0; font-size: 10px; }
.contact-tag.email { color: #3730a3; background: #eef2ff; }
.empty-search,
.empty-state { color: #475569; font-size: 13px; }

.service-card { padding: 18px; }
.service-icon { color: #065f46; background: #d1fae5; }
.service-icon.peach { color: #92400e; background: #fef3c7; }
.service-icon.lilac { color: #3730a3; background: #e0e7ff; }
.service-name { color: var(--deep-slate); font-size: 13px; }
.service-meta { color: #475569; font-size: 11px; }
.service-price { color: #334155; font-size: 12px; }
.specialist-card { border-color: var(--line); }
.specialist-info strong { color: var(--deep-slate); font-size: 12px; }
.specialist-info span { color: #475569; font-size: 11px; }

.settings-field { border-bottom-color: var(--line); font-size: 12px; }
.settings-field > span:first-child,
.settings-field strong { color: #334155; font-size: 12px; }
.hours-help,
.hours-time-field,
.hours-closed-field,
.settings-footnote,
.subscription-card small { color: #475569; font-size: 11px; }
.hours-day-row > strong { font-size: 11px; }
.hours-time-field input,
.hours-time-field select { min-height: 40px; border-color: #cbd5e1; font-size: 12px; }
.settings-enabled { color: #065f46; font-size: 11px; }
.subscription-card { background: #fff; }
.subscription-card > p,
.plan-price span { color: #475569; font-size: 12px; }
.subscription-card ul { color: #334155; font-size: 12px; }
.subscription-card li::before { color: #047857; }

.dialog-form { padding: 24px; }
.dialog-heading h2 { font-size: 22px; }
.form-field { font-size: 12px; }
.form-field input,
.form-field select { min-height: 44px; font-size: 14px; }
.checkbox-field { color: #334155; font-size: 12px; }
.checkbox-field input,
.service-checkboxes input { accent-color: var(--velocity-indigo); }
.service-checkboxes { border-color: var(--line); }
.service-checkboxes legend { color: #334155; font-size: 12px; }
.offer-preview {
  border-color: #fde68a;
  color: #78350f;
  background: #fffbeb;
  font-size: 12px;
}
.offer-preview p:last-child { color: #92400e; font-size: 11px; }
.offer-decline { color: #92400e; font-size: 12px; }
.dialog-actions { border-top-color: var(--line); }
.toast {
  border-color: #a7f3d0;
  color: #064e3b;
  background: #ecfdf5;
  font-size: 13px;
}

.booking-shell { width: min(660px, 100%); }
.booking-card {
  border-radius: 20px;
  box-shadow: 0 24px 70px #0f172a12;
}
.booking-business-mark {
  color: #3730a3;
  background: #e0e7ff;
}
.booking-heading h1 { color: var(--deep-slate); }
.booking-subtitle { font-size: 14px; }
.booking-form .form-field { color: #334155; font-size: 14px; }
.booking-form input,
.booking-form select {
  min-height: 48px;
  border-color: #cbd5e1;
  border-radius: 10px;
  color: var(--deep-slate);
  font-size: 15px;
}
.booking-form .form-field small { color: #475569; font-size: 12px; }
.booking-service-summary { color: #334155; font-size: 12px; }
.booking-slots legend,
.booking-contact h2 { color: var(--deep-slate); font-size: 15px; }
.booking-hint { color: #475569; font-size: 13px; }
.booking-slot-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.booking-slot {
  min-height: 48px;
  border-color: #c7d2fe;
  color: #3730a3;
  background: #eef2ff;
  font-size: 14px;
}
.booking-slot:hover,
.booking-slot[aria-pressed="true"] {
  border-color: var(--velocity-indigo);
  color: #fff;
  background: var(--velocity-indigo);
}
.optional-label { color: #475569; font-size: 12px; }
.booking-submit { min-height: 52px; font-size: 15px; }
.booking-submit:disabled { opacity: .58; }
.booking-footnote,
.booking-footer { font-size: 12px; }
.manage-appointment-details {
  color: var(--deep-slate);
  background: #f1f5f9;
  font-size: 14px;
}
.booking-error { color: #9f1239; background: #fff1f2; }
.booking-success-icon { color: #065f46; background: #d1fae5; }
.booking-success h2 { color: var(--deep-slate); }
.booking-success p { color: #334155; font-size: 14px; }
.booking-success .booking-success-note { color: #475569; font-size: 12px; }
.booking-footer strong { color: #334155; }

:focus-visible {
  outline: 3px solid #4f46e580;
  outline-offset: 3px;
}

@media (max-width: 790px) {
  .main-content { padding-right: 20px; padding-left: 20px; }
  .waitlist-panel { overflow-x: auto; }
}

@media (max-width: 600px) {
  .auth-screen { padding: 20px 16px; }
  .auth-layout { gap: 24px; padding-top: 28px; }
  .auth-story h1 { font-size: clamp(34px, 9vw, 42px); }
  .auth-story > p:not(.eyebrow) { font-size: 14px; line-height: 1.65; }
  .auth-card { padding: 24px 20px; border-radius: 18px; }
  .sidebar { padding-top: 22px; }
  .main-content { padding-right: 16px; padding-left: 16px; }
  .topbar { height: 60px; }
  .breadcrumb { gap: 7px; font-size: 11px; }
  .view { padding-top: 26px; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; }
  .page-heading h1 { font-size: 26px; }
  .page-subtitle { font-size: 13px; }
  .stats-grid { gap: 10px; }
  .stat-card { min-height: 108px; padding: 13px; }
  .stat-label { font-size: 12px; }
  .stat-value { font-size: 24px; }
  .stat-foot { font-size: 11px; }
  .panel { padding: 16px; }
  .appointment-row {
    grid-template-columns: max-content 3px minmax(0, 1fr) 86px;
    gap: 8px;
  }
  .appointment-time { font-size: 10px; }
  .appointment-info strong { font-size: 11px; }
  .appointment-info span { font-size: 10px; }
  .appointment-row-actions { flex-wrap: wrap; gap: 2px; }
  .appointment-amount { flex-basis: 100%; text-align: right; }
  .appointment-action { min-height: 32px; padding: 4px; font-size: 10px; }
  .appointment-state { font-size: 9px; }
  .waitlist-panel { overflow: visible; margin-right: 0; padding: 0 16px 16px; }
  .waitlist-toolbar { min-width: 0; align-items: stretch; flex-direction: column; padding: 12px 0; }
  .waitlist-summary { flex-wrap: wrap; font-size: 11px; }
  .search-box { width: 100%; }
  .waitlist-list { display: grid; min-width: 0; gap: 12px; padding-top: 12px; }
  .waitlist-row.waitlist-header { display: none; }
  .waitlist-row:not(.waitlist-header) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, .7fr);
    gap: 12px;
    min-height: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .waitlist-row .customer-cell { grid-column: 1 / -1; }
  .waitlist-row .customer-preference,
  .waitlist-row .waitlist-contact { display: grid; gap: 5px; }
  .waitlist-row .waitlist-card-label {
    display: block;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .waitlist-row .customer-preference { color: #0f172a; font-size: 12px; }
  .waitlist-row .waitlist-contact { align-content: start; }
  .waitlist-row .waitlist-actions { align-self: end; }
  .waitlist-row .match-send { width: 100%; min-height: 44px; }
  .hours-day-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hours-day-row > strong { grid-column: 1 / -1; padding: 0; }
  .hours-closed-field { align-self: center; padding: 0; }
  .booking-shell { padding: 18px 12px 24px; }
  .booking-card { padding: 24px 18px; border-radius: 18px; }
  .booking-heading { margin-bottom: 22px; }
  .booking-heading h1 { font-size: 29px; }
  .booking-form { gap: 16px; }
  .booking-contact { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
