:root {
  --paper: #f6f2ea;
  --paper-2: #ede7dc;
  --ink: #1d211f;
  --muted: #6b706b;
  --line: rgba(29, 33, 31, 0.13);
  --card: rgba(255, 255, 255, 0.73);
  --sage: #9bb2a0;
  --sage-dark: #415e4a;
  --sage-pale: #dce6dd;
  --rust: #b86e52;
  --shadow: 0 24px 70px rgba(42, 45, 41, 0.08);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.ambient { position: fixed; width: 38vw; height: 38vw; border-radius: 50%; filter: blur(90px); opacity: .23; pointer-events: none; z-index: -1; }
.ambient-one { top: -15vw; right: -10vw; background: #b9cdb9; }
.ambient-two { left: -18vw; top: 35vh; background: #e1c5ae; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar { min-height: 90px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: white; background: var(--ink); font-family: Georgia, serif; font-size: 24px; font-style: italic; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.demo-pill { padding: 8px 12px; display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.4); font-size: 12px; }
.demo-pill span { width: 7px; height: 7px; border-radius: 50%; background: #6f9777; box-shadow: 0 0 0 4px rgba(111,151,119,.13); }
.demo-new-master { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--sage-dark); background: rgba(255,255,255,.48); font-size: 12px; font-weight: 700; }
.demo-new-master:hover { background: var(--sage-pale); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 20px; }
.hero { padding: 82px 0 52px; display: grid; grid-template-columns: 1.4fr .8fr; gap: 72px; align-items: end; }
.eyebrow { margin: 0 0 10px; color: var(--sage-dark); font-size: 11px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; max-width: 770px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 7vw, 88px); font-weight: 400; line-height: .94; letter-spacing: -.055em; }
h1 em { color: var(--sage-dark); font-weight: 400; }
.hero-copy { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-proof div { padding: 20px 12px 0; border-right: 1px solid var(--line); }
.hero-proof div:last-child { border-right: 0; }
.hero-proof strong { display: block; font-family: Georgia, serif; font-size: 38px; font-weight: 400; }
.hero-proof span { color: var(--muted); font-size: 12px; }
.role-switch { display: inline-flex; padding: 5px; margin-bottom: 54px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.42); }
.role-button { padding: 12px 20px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; }
.role-button span { margin-right: 8px; opacity: .6; font-size: 11px; }
.role-button.active { color: white; background: var(--ink); }
.view { display: none; padding-bottom: 100px; }
.view.active { display: block; }
.telegram-master-entry .hero,
.telegram-master-entry .role-switch,
.telegram-master-entry .top-actions { display: none; }
.telegram-master-entry .topbar { min-height: 72px; }
.telegram-master-entry main { min-height: calc(100vh - 72px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2, .booking-card h2, .dialog h2 { margin-bottom: 0; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 48px); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.date-control label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.date-control input, .full-input, select { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.62); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 22px; }
.card { border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.calendar-card { min-height: 610px; padding: 30px; }
.card-head { display: flex; align-items: start; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.card-head h3, .share-card h3, .protection-strip h3, .my-bookings h3 { margin-bottom: 0; font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.muted { color: var(--muted); }
.availability-badge { padding: 8px 12px; border-radius: 999px; color: var(--sage-dark); background: var(--sage-pale); font-size: 12px; font-weight: 700; }
.timeline { padding-top: 16px; }
.timeline-row { min-height: 68px; display: grid; grid-template-columns: 70px 1fr; gap: 14px; border-bottom: 1px solid var(--line); align-items: center; }
.timeline-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.timeline-event { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; }
.timeline-event strong, .timeline-event small { display: block; }
.timeline-event small { color: var(--muted); }
.timeline-event.booking { background: #e2ebe2; }
.timeline-event.block { background: #ece8e1; color: #77736d; }
.timeline-event.hold { border: 1px dashed var(--rust); background: #f5e8e1; }
.release-hold { border: 0; color: var(--rust); background: transparent; font-size: 12px; text-decoration: underline; }
.empty-day { padding: 70px 20px; text-align: center; color: var(--muted); }
.side-stack { display: grid; gap: 22px; }
.quick-card, .share-card { padding: 26px; }
.primary-action, .secondary-action { width: 100%; display: flex; gap: 14px; align-items: center; padding: 16px 0; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.primary-action > span:first-child, .secondary-action > span:first-child { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 50%; font-size: 24px; }
.primary-action > span:first-child { color: white; background: var(--sage-dark); }
.secondary-action > span:first-child { background: var(--paper-2); }
.primary-action strong, .primary-action small, .secondary-action strong, .secondary-action small { display: block; }
.primary-action small, .secondary-action small { color: var(--muted); font-size: 12px; }
.share-card { background: var(--sage-pale); }
.dark-button, .secondary-button { min-height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 700; }
.dark-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; color: white; background: var(--ink); }
.dark-button:hover { background: #303633; }
.secondary-button { border: 1px solid var(--line); background: transparent; }
.danger-button { min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; color: white; background: #8f493c; font-weight: 700; }
.danger-button:hover { background: #74392f; }
.danger-button:disabled { opacity: .55; cursor: wait; }
.full { width: 100%; justify-content: center; }
#blockDuration {
  height: 56px;
  min-height: 56px;
  padding-block: 0;
  font-size: 16px;
}
#blockForm .dark-button { margin-top: 18px; }
.protection-strip { margin-top: 22px; padding: 26px 30px; display: grid; grid-template-columns: auto 1.2fr 1fr; gap: 22px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.shield-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: white; background: var(--sage-dark); font-size: 28px; }
.protection-strip p:last-child { margin: 0; color: var(--muted); }
.booking-shell { display: grid; grid-template-columns: 320px minmax(0, 640px); justify-content: center; gap: 30px; align-items: start; }
.master-profile { position: sticky; top: 20px; padding: 38px 20px; text-align: center; }
.avatar { width: 110px; height: 110px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 45% 55% 48% 52%; color: white; background: var(--sage-dark); font-family: Georgia, serif; font-size: 52px; }
.master-profile h2 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 44px; font-weight: 400; }
.master-profile > p:not(.eyebrow) { color: var(--muted); }
.contact-row { display: flex; justify-content: center; gap: 8px; margin: 22px 0; }
.contact-link { padding: 9px 13px; border-radius: 999px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.telegram { background: #dcebf4; }
.max { background: #e5e0fb; }
.demo-actor-label { display: block; margin: 22px 0 6px; color: var(--muted); font-size: 11px; }
.booking-card { min-height: 600px; padding: 34px; }
.stepper, .mini-stepper { display: flex; align-items: center; margin-bottom: 42px; }
.stepper span, .mini-stepper span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 12px; }
.stepper span.active, .mini-stepper span.active { color: white; border-color: var(--ink); background: var(--ink); }
.stepper i, .mini-stepper i { width: 44px; height: 1px; background: var(--line); }
.client-step, .wizard-step { display: none; }
.client-step.active, .wizard-step.active { display: block; animation: reveal .25s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.service-list { display: grid; gap: 10px; margin-top: 28px; }
.service-option { width: 100%; padding: 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 16px; text-align: left; background: rgba(255,255,255,.58); }
.service-option:hover, .service-option.selected { border-color: var(--sage-dark); background: var(--sage-pale); }
.service-option strong, .service-option small { display: block; }
.service-option small { color: var(--muted); }
.service-option b { font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.service-summary { margin: 22px 0 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--sage-pale); }
.service-summary span, .service-summary strong, .service-summary small { display: block; }
.service-summary span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.service-summary strong { margin: 3px 0; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.service-summary small { color: var(--muted); line-height: 1.45; }
.master-service-list { display: grid; gap: 10px; margin: 24px 0; }
.master-service-row { padding: 15px 17px; display: grid; gap: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.5); }
.master-service-details { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.master-service-row strong, .master-service-row small { display: block; }
.master-service-row small { margin-top: 3px; color: var(--muted); }
.master-service-row b { white-space: nowrap; font-family: Georgia, serif; font-size: 19px; font-weight: 400; }
.master-service-actions { display: flex; gap: 20px; padding-top: 11px; border-top: 1px solid var(--line); }
.master-service-actions button { padding: 5px 0; border: 0; color: var(--sage-dark); background: transparent; font-size: 12px; font-weight: 700; }
.master-service-actions .delete-service-button { color: #8f493c; }
.master-service-actions button:disabled { opacity: .45; cursor: wait; }
.service-wizard[hidden] { display: none; }
.service-wizard-step { display: none; }
.service-wizard-step.active { display: block; }
.service-preview { margin: 26px 0 18px; padding: 22px; border-radius: 18px; color: white; background: var(--sage-dark); }
.service-preview span, .service-preview strong, .service-preview small { display: block; }
.service-preview strong { margin: 3px 0; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.service-preview span, .service-preview small { opacity: .76; }
.field-label { display: block; margin: 22px 0 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.optional-label { font-weight: 400; }
.full-input { width: 100%; }
.slot-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 18px; }
.empty-slots { grid-column: 1 / -1; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.48); }
.empty-slots > strong { display: block; font-family: Georgia, serif; font-size: 23px; font-weight: 400; line-height: 1.15; }
.empty-slots > p { margin: 8px 0 18px; color: var(--muted); line-height: 1.5; }
.nearest-date-list { display: grid; gap: 8px; }
.nearest-date-button { width: 100%; padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 14px; text-align: left; background: var(--paper); }
.nearest-date-button:hover { border-color: var(--sage-dark); background: var(--sage-pale); }
.nearest-date-button span, .nearest-date-button strong, .nearest-date-button small { display: block; }
.nearest-date-button strong { text-transform: capitalize; }
.nearest-date-button small { margin-top: 2px; color: var(--muted); }
.nearest-date-button b { color: var(--sage-dark); font-size: 12px; white-space: nowrap; }
.nearest-date-button i { margin-left: 5px; font-style: normal; }
.nearest-contact { display: inline-flex; width: auto; }
.slot-button { min-height: 56px; padding: 7px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.66); font-variant-numeric: tabular-nums; line-height: 1.2; }
.slot-button strong { font-size: 15px; }
.slot-button small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.slot-button:hover { color: white; border-color: var(--sage-dark); background: var(--sage-dark); }
.slot-button:hover small { color: rgba(255,255,255,.76); }
.form-note { margin-top: 18px; color: var(--muted); font-size: 12px; }
.compact-note { margin-top: 8px; line-height: 1.45; }
.setting-explainer { margin: 10px 0 0; padding: 13px 15px; border-left: 3px solid var(--sage-dark); border-radius: 0 12px 12px 0; color: var(--muted); background: var(--sage-pale); font-size: 12px; line-height: 1.5; }
.setting-explainer strong { color: var(--ink); }
.consent-placeholder { margin: 16px 0; padding: 14px 16px; display: grid; gap: 3px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.38); font-size: 12px; line-height: 1.45; }
.consent-placeholder strong { color: var(--ink); }
.back-button { margin-bottom: 20px; padding: 0; border: 0; color: var(--muted); background: transparent; }
.hold-card { margin: 26px 0 8px; padding: 22px; border-radius: 18px; color: white; background: var(--sage-dark); }
.hold-card strong, .hold-card span { display: block; }
.hold-card strong { font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.hold-card span { opacity: .75; }
.hold-countdown { margin-top: 12px; font-size: 12px; }
.success-step { text-align: center; }
.success-mark { width: 70px; height: 70px; display: grid; place-items: center; margin: 10px auto 24px; border-radius: 50%; color: white; background: var(--sage-dark); font-size: 32px; }
.success-actions { display: grid; gap: 10px; max-width: 320px; margin: 30px auto 0; }
.link-button { text-decoration: none; justify-content: center; }
.my-bookings { max-width: 990px; margin: 24px auto 0; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.booking-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.booking-chip { padding: 10px 13px; border-radius: 12px; background: var(--sage-pale); font-size: 12px; }
.client-master-invite { max-width: 990px; margin: 28px auto 0; padding: 22px; display: flex; align-items: center; justify-content: center; gap: 12px 22px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; }
.client-master-invite a { color: var(--sage-dark); font-weight: 750; text-decoration: none; }
.client-master-invite a:hover { text-decoration: underline; }
.client-master-invite b { margin-left: 5px; }
.dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow-y: auto; border: 0; border-radius: 26px; background: var(--paper); box-shadow: 0 40px 120px rgba(0,0,0,.25); }
.dialog::backdrop { background: rgba(24, 28, 25, .46); backdrop-filter: blur(8px); }
.wide-dialog { width: min(700px, calc(100% - 28px)); }
.dialog-inner { position: relative; padding: 36px; }
.dialog-alert { margin: -10px 46px 22px 0; padding: 13px 15px; border: 1px solid #c88678; border-radius: 13px; color: #70382f; background: #f7e4df; font-size: 13px; line-height: 1.45; }
.dialog-alert[hidden] { display: none; }
.onboarding-dialog { width: min(660px, calc(100% - 28px)); }
.onboarding-brand { display: flex; align-items: center; gap: 12px; margin: 0 54px 28px 0; }
.onboarding-brand strong, .onboarding-brand small { display: block; }
.onboarding-brand strong { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.onboarding-brand small { color: var(--muted); font-size: 11px; }
.onboarding-stepper { margin-bottom: 32px; }
.onboarding-step { display: none; }
.onboarding-step.active { display: block; animation: reveal .25s ease both; }
.profession-options { margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; border: 0; }
.profession-options legend { grid-column: 1 / -1; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.profession-options label { min-height: 52px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.48); cursor: pointer; }
.profession-options label:has(input:checked) { border-color: var(--sage-dark); background: var(--sage-pale); }
.profession-options input { margin: 0; accent-color: var(--sage-dark); }
.onboarding-next { margin-top: 24px; }
.onboarding-demo-exit { width: 100%; margin: 16px 0 0; text-align: center; }
.onboarding-preview { margin-bottom: 18px; }
.delete-booking-options { margin: 24px 0 0; padding: 0; display: grid; gap: 10px; border: 0; }
.delete-booking-options legend { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.delete-booking-option { padding: 15px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.42); }
.delete-booking-option:has(input:checked) { border-color: var(--sage-dark); background: var(--sage-pale); }
.delete-booking-option input { margin-top: 5px; }
.delete-booking-option strong, .delete-booking-option small { display: block; }
.delete-booking-option small { margin-top: 3px; color: var(--muted); line-height: 1.4; }
.delete-dialog-actions { display: grid; gap: 10px; margin-top: 28px; }
.close-dialog { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 22px; z-index: 2; }
.mini-stepper { margin-bottom: 30px; }
.service-list.compact .service-option { padding: 14px; }
.manual-slot-list { max-height: 240px; overflow-y: auto; padding-right: 2px; }
.manual-slot-list .empty-slots { padding: 16px; }
.manual-booking-summary { margin: 20px 0 4px; padding: 16px 18px; border-radius: 16px; color: white; background: var(--sage-dark); }
.manual-booking-summary strong, .manual-booking-summary span { display: block; }
.manual-booking-summary strong { font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.manual-booking-summary span { margin-top: 4px; opacity: .75; font-size: 12px; }
.exact-time-details { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.exact-time-details summary { cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 700; }
.exact-time-details .secondary-button { margin-top: 12px; }
.schedule-rows { margin: 26px 0; }
.schedule-row { min-height: 58px; display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.schedule-day { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.schedule-row input[type="time"] { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.availability-settings { display: grid; gap: 12px; margin: 28px 0; }
.availability-setting { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.46); }
.availability-setting h3 { margin: 0; font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.lunch-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.lunch-toggle input { margin-top: 5px; }
.lunch-toggle strong, .lunch-toggle small { display: block; }
.lunch-toggle small { margin-top: 3px; color: var(--muted); line-height: 1.45; }
.lunch-time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.lunch-time-row label { color: var(--muted); font-size: 12px; font-weight: 700; }
.lunch-time-row input[type="time"] {
  display: block;
  height: 48px;
  min-height: 48px;
  margin-top: 6px;
  padding-block: 0;
  color: var(--crm-ink, var(--ink));
  font-size: 16px;
  font-weight: 650;
  line-height: 48px;
}
.lunch-time-row input[type="time"]::-webkit-datetime-edit {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0;
}
.lunch-time-row input[type="time"]::-webkit-date-and-time-value {
  min-height: 1.2em;
  margin: 0;
  text-align: left;
}
.lunch-overlap-toggle { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.lunch-impact { margin-top: 16px; }
.share-links { display: grid; gap: 10px; margin: 26px 0; }
.share-link-row { padding: 16px; display: grid; grid-template-columns: 100px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.54); }
.share-link-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.copy-button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: transparent; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; max-width: min(520px, calc(100% - 32px)); padding: 13px 18px; border-radius: 999px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8f493c; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(65,94,74,.25); outline-offset: 2px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .booking-shell { grid-template-columns: 1fr; }
  .master-profile { position: static; }
  .protection-strip { grid-template-columns: auto 1fr; }
  .protection-strip > p { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1180px); }
  .topbar { min-height: 74px; }
  .demo-pill { display: none; }
  .demo-new-master { padding: 0 10px; font-size: 11px; }
  .hero { padding: 48px 0 34px; }
  h1 { font-size: 48px; }
  .hero-proof { grid-template-columns: repeat(3, 1fr); }
  .hero-proof div { padding-left: 6px; padding-right: 6px; }
  .hero-proof span { font-size: 10px; }
  .role-switch { width: 100%; }
  .role-button { flex: 1; padding-left: 8px; padding-right: 8px; }
  .section-heading { align-items: start; gap: 16px; flex-direction: column; }
  .calendar-card, .quick-card, .share-card, .booking-card { padding: 22px; }
  .timeline-row { grid-template-columns: 52px 1fr; }
  .slot-list { grid-template-columns: repeat(3, 1fr); }
  .my-bookings { align-items: start; flex-direction: column; }
  .client-master-invite { align-items: center; flex-direction: column; }
  .booking-chips { justify-content: flex-start; }
  .dialog-inner { padding: 28px 22px; }
  .profession-options { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 90px 1fr 1fr; }
  .share-link-row { grid-template-columns: 1fr auto; }
  .share-link-row code { grid-column: 1 / -1; grid-row: 2; }
  .empty-slots { padding: 18px; }
  .nearest-date-button { align-items: flex-start; flex-direction: column; }
  .nearest-date-button b { white-space: normal; }
}

/* Selected design: soft vertical timeline, applied to the working browser MVP. */
.crm-app {
  --crm-bg: #fbfaf7;
  --crm-surface: #f2f1ee;
  --crm-ink: #171916;
  --crm-muted: #777873;
  --crm-faint: #e4e4df;
  --crm-lime: #edf4b3;
  --crm-lime-strong: #acd000;
  --crm-orange: #ffd0b8;
  --crm-apricot-soft: #fff0e7;
  --crm-apricot-ink: #ef7540;
  min-height: 100dvh;
  padding-bottom: 0;
  overflow-x: hidden;
  color: var(--crm-ink);
  background: var(--crm-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

.crm-app button,
.crm-app input,
.crm-app select { font: inherit; }

.app-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 44px;
}

.crm-app .view { display: none; padding: 0; }
.crm-app .view.active { display: block; }

.demo-toolbar {
  position: relative;
  z-index: 30;
  width: max-content;
  max-width: calc(100% - 48px);
  margin: 18px 24px 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(23, 25, 22, .08);
  border-radius: 999px;
  background: rgba(251, 250, 247, .9);
  box-shadow: 0 12px 32px rgba(32, 34, 29, .08);
  backdrop-filter: blur(18px);
}

.compact-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  color: var(--crm-ink);
  text-decoration: none;
}

.compact-brand span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--crm-ink);
  color: #fff;
  font-family: Georgia, serif;
  font-style: italic;
}

.compact-brand strong { font-size: 13px; }
.demo-toolbar .demo-pill { border: 0; background: transparent; }
.demo-toolbar .demo-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crm-lime-strong);
  box-shadow: 0 0 0 4px rgba(172, 208, 0, .12);
}
.demo-toolbar .demo-new-master {
  border: 0;
  background: var(--crm-surface);
  color: var(--crm-ink);
}
.demo-toolbar .icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  background: var(--crm-surface);
}
.demo-toolbar .icon-button img { width: 17px; height: 17px; }

.day-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.day-heading .screen-kicker,
.settings-hub-dialog .screen-kicker {
  margin: 0 0 8px;
  color: #91aa00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.day-heading h1 {
  max-width: none;
  margin: 0;
  color: var(--crm-ink);
  font-family: inherit;
  font-size: clamp(46px, 5.2vw, 68px);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: 1;
}

.day-status {
  display: grid;
  justify-items: end;
  gap: 8px;
  padding-bottom: 5px;
  color: var(--crm-muted);
  font-size: 13px;
  text-transform: capitalize;
}

.crm-app .availability-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--crm-lime);
  color: #667600;
  font-size: 12px;
  font-weight: 700;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.week-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-top: 34px;
}

.week-day {
  min-width: 0;
  min-height: 86px;
  padding: 10px 6px;
  border: 0;
  border-radius: 28px;
  background: var(--crm-surface);
  color: #656761;
}

.week-day span,
.week-day strong { display: block; }
.week-day span { font-size: 17px; font-weight: 500; }
.week-day strong {
  margin-top: 4px;
  color: var(--crm-ink);
  font-size: 23px;
  font-weight: 600;
}
.week-day.selected {
  background: var(--crm-lime);
  color: var(--crm-ink);
}
.week-day:hover { filter: brightness(.985); }

.day-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  margin-top: 42px;
}

.crm-app .calendar-card {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.crm-app .timeline {
  position: relative;
  min-height: 520px;
  padding: 0;
}

.timeline-axis {
  position: absolute;
  top: 0;
  bottom: 22px;
  left: 90px;
  border-left: 1px dashed #dcddd7;
}

.timeline-hour {
  position: absolute;
  z-index: 0;
  top: var(--marker-top);
  left: 0;
  width: 100%;
  min-height: 22px;
  transform: translateY(-1px);
  color: #4f514c;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.timeline-hour span { display: block; width: 66px; }
.timeline-hour::after {
  position: absolute;
  top: 10px;
  right: 0;
  left: 90px;
  border-top: 1px solid rgba(220, 221, 215, .62);
  content: "";
}
.timeline-hour i {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 84px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--crm-faint);
}
.timeline-hour.minor::after { border-top-style: dotted; opacity: .58; }
.timeline-hour.minor span { color: #8d8f89; font-size: 11px; }
.timeline-hour.minor i {
  top: 7px;
  left: 86px;
  width: 8px;
  height: 8px;
  opacity: .72;
}
.timeline-hour.active i { background: var(--crm-lime-strong); }

.day-event,
.free-window {
  position: absolute;
  top: var(--event-top);
  right: 0;
  left: 124px;
}

.day-event {
  z-index: 2;
  display: flex;
  height: var(--event-height);
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(23, 25, 22, .035);
  border-radius: 25px;
  background: var(--crm-surface);
  color: var(--crm-ink);
  overflow: hidden;
  text-align: left;
}

.day-event strong,
.day-event small,
.day-event time { display: block; }
.day-event strong { font-size: 18px; line-height: 1.18; }
.day-event small,
.day-event time { color: var(--crm-muted); font-size: 14px; line-height: 1.35; }
.day-event .event-copy small { margin-top: 5px; }
.day-event .event-meta {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 10px;
  text-align: right;
}
.day-event .status-line {
  display: flex;
  align-items: center;
  gap: 7px;
}
.day-event .status-line img { width: 20px; height: 20px; opacity: .55; }

.day-event.next {
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--crm-lime);
}
.day-event.next .event-label {
  margin-bottom: 5px;
  color: #91aa00;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.day-event.next strong { font-size: 22px; line-height: 1.05; }
.day-event.next .event-copy small { margin-top: 3px; color: var(--crm-ink); font-size: 16px; line-height: 1.15; }
.day-event.next time {
  width: max-content;
  margin-top: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(190, 214, 34, .28);
  color: var(--crm-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.day-event.next .event-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: rgba(190, 214, 34, .34);
}
.day-event.next .event-icon img { width: 24px; height: 24px; }

.day-event.pending { background: var(--crm-apricot-soft); }
.day-event.pending .event-meta,
.day-event.pending .event-meta time { color: var(--crm-apricot-ink); }
.day-event.pending .status-line img { filter: invert(52%) sepia(72%) saturate(1514%) hue-rotate(336deg) brightness(101%); opacity: 1; }
.day-event.personal { min-height: 0; color: var(--crm-muted); }
.day-event.personal .event-copy {
  display: flex;
  align-items: center;
  gap: 11px;
}
.day-event.personal .event-copy img {
  width: 20px;
  height: 20px;
  padding: 9px;
  box-sizing: content-box;
  border-radius: 13px;
  background: #e5e4e0;
  opacity: .62;
}
.day-event.personal strong { color: var(--crm-muted); font-size: 16px; }
.day-event.hold { background: var(--crm-apricot-soft); }

.day-event.short.next {
  align-items: center;
  padding: 8px 12px;
}
.day-event.short.next .event-label,
.day-event.short.next .event-copy small { display: none; }
.day-event.compact {
  gap: 8px;
  padding: 5px 10px;
  border-radius: 14px;
}
.day-event.next.compact { align-items: center; }
.day-event.compact strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.day-event.compact small,
.day-event.compact .event-label,
.day-event.compact .status-line,
.day-event.compact .event-icon,
.day-event.compact .event-copy img { display: none; }
.day-event.compact .event-copy { min-width: 0; }
.day-event.compact .event-meta { display: block; }
.day-event.compact time,
.day-event.next.compact time { margin: 0; padding: 0; background: transparent; font-size: 11px; white-space: nowrap; }
.day-event.micro {
  min-height: 0;
  padding: 0;
  border-radius: 7px;
}
.day-event.micro > * { display: none; }

.free-window {
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 8px 0;
}
.free-window strong { font-size: 16px; font-weight: 600; }
.free-window button {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 17px;
  background: var(--crm-lime);
  color: var(--crm-ink);
  font-size: 14px;
  font-weight: 650;
}
.free-window img { width: 18px; height: 18px; }

.timeline-empty {
  display: grid;
  min-height: 520px;
  align-content: center;
  justify-items: center;
  color: var(--crm-muted);
  text-align: center;
}
.timeline-empty img {
  width: 28px;
  height: 28px;
  padding: 14px;
  box-sizing: content-box;
  border-radius: 18px;
  background: var(--crm-lime);
}
.timeline-empty strong { margin-top: 18px; color: var(--crm-ink); font-size: 22px; }
.timeline-empty p { margin: 5px 0 0; }

.master-tools {
  position: sticky;
  top: 86px;
  padding: 24px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(35, 37, 32, .08);
}
.master-tools h2 {
  margin: 0 0 20px;
  font-size: 25px;
  letter-spacing: -.03em;
}
.master-tools .screen-kicker { margin-bottom: 6px; color: #91aa00; }
.master-tools .tool-action {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 25, 22, .08);
  background: transparent;
  text-align: left;
}
.master-tools .tool-action > img {
  width: 20px;
  height: 20px;
  padding: 12px;
  box-sizing: content-box;
  border-radius: 16px;
  background: var(--crm-surface);
}
.master-tools .primary-action > img { background: var(--crm-lime); }
.master-tools .tool-action strong,
.master-tools .tool-action small { display: block; }
.master-tools .tool-action strong { font-size: 14px; }
.master-tools .tool-action small { margin-top: 2px; color: var(--crm-muted); font-size: 11px; }
.share-action {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 18px;
  background: var(--crm-orange);
  color: var(--crm-ink);
  font-size: 13px;
  font-weight: 700;
}

.floating-add {
  position: relative;
  z-index: 17;
  display: flex;
  width: max-content;
  min-width: 132px;
  min-height: 58px;
  margin: 24px 348px 28px auto;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 22px;
  border: 0;
  border-radius: 24px;
  background: var(--crm-orange);
  color: var(--crm-ink);
  font-size: 16px;
  font-weight: 720;
  box-shadow: 0 12px 30px rgba(84, 60, 47, .12);
}
.floating-add img { width: 25px; height: 25px; }

.bottom-navigation {
  position: relative;
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(720px, 100%);
  min-height: 100px;
  margin: 0 auto 24px;
  padding: 10px 34px max(10px, env(safe-area-inset-bottom));
  border-radius: 34px;
  background: rgba(255, 255, 252, .97);
  box-shadow: 0 -8px 40px rgba(35, 37, 32, .06);
  backdrop-filter: blur(20px);
}
.app-nav-button {
  display: grid;
  min-width: 0;
  min-height: 70px;
  place-items: center;
  gap: 4px;
  padding: 6px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: #74766f;
  font-size: 12px;
  font-weight: 520;
}
.app-nav-button span {
  display: grid;
  width: 68px;
  height: 38px;
  margin: 0;
  place-items: center;
  border-radius: 16px;
}
.app-nav-button img { width: 25px; height: 25px; opacity: .62; }
.app-nav-button.active { background: transparent; color: var(--crm-ink); font-weight: 720; }
.app-nav-button.active span { background: var(--crm-lime); }
.app-nav-button.active img { opacity: 1; }

.settings-hub-dialog { width: min(500px, calc(100% - 28px)); }
.settings-hub-list { display: grid; gap: 10px; margin-top: 28px; }
.settings-hub-list button {
  display: flex;
  min-height: 70px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  border: 0;
  border-radius: 20px;
  background: var(--crm-surface);
  color: var(--crm-ink);
  text-align: left;
}
.settings-hub-list strong,
.settings-hub-list small { display: block; }
.settings-hub-list small { margin-top: 3px; color: var(--crm-muted); }

.crm-app #clientView { padding-top: 42px; }
.crm-app .card {
  border: 0;
  background: #fff;
  box-shadow: 0 18px 60px rgba(35, 37, 32, .07);
  backdrop-filter: none;
}
.crm-app .booking-card { border-radius: 30px; }
.crm-app .master-profile { border-radius: 30px; background: var(--crm-surface); }
.crm-app .avatar { border-radius: 38px; background: var(--crm-lime); color: var(--crm-ink); }
.crm-app .service-option:hover,
.crm-app .service-option.selected { border-color: transparent; background: var(--crm-lime); }
.crm-app .service-summary,
.crm-app .hold-card { border: 0; background: var(--crm-lime); color: var(--crm-ink); }
.crm-app .hold-card span { color: var(--crm-muted); }
.crm-app .dark-button { background: var(--crm-ink); }

.crm-app .dialog {
  border-radius: 30px;
  background: var(--crm-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}
.crm-app .dialog h2 {
  font-family: inherit;
  font-weight: 720;
  letter-spacing: -.04em;
}
.crm-app .dialog::backdrop { background: rgba(40, 42, 37, .30); backdrop-filter: blur(10px); }
.crm-app .full-input,
.crm-app .date-control input,
.crm-app select { border: 0; background: var(--crm-surface); }

@media (max-width: 900px) {
  .day-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
  .floating-add { margin-right: 288px; }
}

@media (max-width: 720px) {
  .crm-app { padding-bottom: 106px; }
  .demo-toolbar { display: none; }
  .app-shell {
    width: min(100% - 28px, 560px);
    padding: 34px 0 22px;
  }
  .day-heading .screen-kicker,
  .day-status { display: none; }
  .day-heading h1 { font-size: 46px; letter-spacing: -.052em; }
  .week-picker { gap: 8px; margin-top: 28px; }
  .week-day {
    min-height: 66px;
    padding: 7px 3px;
    border-radius: 21px;
  }
  .week-day span { font-size: 14px; }
  .week-day strong { margin-top: 1px; font-size: 18px; }
  .day-layout { display: block; margin-top: 30px; }
  .master-tools { display: none; }
  .crm-app .calendar-card { min-height: 0; }
  .timeline-axis { left: 60px; }
  .timeline-hour { width: 100%; font-size: 12px; }
  .timeline-hour span { width: 44px; }
  .timeline-hour::after { left: 60px; }
  .timeline-hour i { top: 5.5px; left: 54.5px; width: 11px; height: 11px; }
  .timeline-hour.minor span { font-size: 10px; }
  .timeline-hour.minor i { left: 56px; width: 8px; height: 8px; }
  .day-event,
  .free-window { left: 84px; }
  .day-event { gap: 10px; padding: 12px 13px; border-radius: 22px; }
  .day-event strong { font-size: 13.5px; }
  .day-event small,
  .day-event time { font-size: 12px; }
  .day-event.next {
    padding: 12px 14px;
    border-radius: 24px;
  }
  .day-event.next .event-label { margin-bottom: 4px; font-size: 10.5px; }
  .day-event.next strong { font-size: 16.5px; }
  .day-event.next .event-copy small { margin-top: 2px; font-size: 12.5px; line-height: 1.1; }
  .day-event.next time { margin-top: 6px; padding: 4px 9px; font-size: 11.5px; }
  .day-event.next .event-icon { width: 38px; height: 38px; border-radius: 13px; }
  .day-event.next .event-icon img { width: 20px; height: 20px; }
  .day-event.short.next,
  .day-event.compact { padding: 5px 10px; }
  .day-event .status-line { gap: 5px; }
  .day-event .status-line img { width: 17px; height: 17px; }
  .day-event.personal strong { font-size: 13px; }
  .day-event.personal .event-copy img { width: 16px; height: 16px; padding: 7px; }
  .free-window strong { font-size: 13px; }
  .free-window button { min-height: 34px; padding: 0 13px; font-size: 12px; }
  .free-window img { width: 15px; height: 15px; }
  .floating-add { min-width: 118px; min-height: 54px; margin: 20px 14px 20px auto; border-radius: 22px; font-size: 15px; }
  .floating-add img { width: 23px; height: 23px; }
  .bottom-navigation {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 92px;
    margin: 0 auto;
    padding: 9px 22px max(8px, env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
  }
  .app-nav-button { min-height: 66px; }
  .app-nav-button span { width: 58px; height: 35px; }
  .app-nav-button img { width: 23px; height: 23px; }
  .crm-app #clientView { padding-top: 12px; }
  .crm-app .booking-shell { gap: 16px; }
  .crm-app .master-profile { padding: 28px 18px; }
  .crm-app .avatar { width: 82px; height: 82px; font-size: 38px; }
  .crm-app .master-profile h2 { font-size: 36px; }
  .crm-app .booking-card { padding: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .week-day,
  .day-event,
  .free-window button,
  .floating-add,
  .app-nav-button { transition: transform 150ms ease, filter 150ms ease, background 150ms ease; }
  .week-day:active,
  .day-event:active,
  .free-window button:active,
  .floating-add:active,
  .app-nav-button:active { transform: scale(.98); }
}

/* Production account shell: roles are selected at authentication, never inside the workspace. */
.account-toolbar {
  position: relative;
  z-index: 40;
  width: min(1120px, calc(100% - 48px));
  min-height: 68px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.account-toolbar[hidden] { display: none; }
.account-menu-wrap { position: relative; }
.account-menu-button {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px 6px 7px;
  border: 1px solid rgba(23, 25, 22, .08);
  border-radius: 999px;
  color: var(--crm-ink);
  background: rgba(251, 250, 247, .94);
  box-shadow: 0 12px 32px rgba(32, 34, 29, .08);
}
.account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--crm-lime);
  font-weight: 780;
}
.account-button-copy { min-width: 104px; text-align: left; }
.account-button-copy strong,
.account-button-copy small { display: block; }
.account-button-copy strong { font-size: 13px; }
.account-button-copy small { margin-top: 1px; color: var(--crm-muted); font-size: 10px; }
.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 228px;
  padding: 8px;
  border: 1px solid rgba(23, 25, 22, .08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(32, 34, 29, .15);
}
.account-menu[hidden] { display: none; }
.account-menu a,
.account-menu button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  color: var(--crm-ink);
  background: transparent;
  text-align: left;
  text-decoration: none;
}
.account-menu a:hover,
.account-menu button:hover { background: var(--crm-surface); }
.account-menu #logoutButton { color: #8f493c; }

.auth-view { min-height: calc(100dvh - 80px); padding: 42px 0 80px; }
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 62px;
}
.auth-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--crm-ink);
  font-family: Georgia, serif;
  font-size: 24px;
  font-style: italic;
}
.auth-brand strong { font-size: 20px; }
.auth-role-choice { max-width: 850px; margin: 0 auto; text-align: center; }
.auth-role-choice h1 { max-width: none; margin: 8px 0 12px; font-size: clamp(42px, 7vw, 72px); letter-spacing: -.06em; }
.auth-lead { max-width: 600px; margin: 0 auto; color: var(--crm-muted); font-size: 17px; line-height: 1.55; }
.auth-role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.auth-role-grid button {
  min-height: 270px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid transparent;
  border-radius: 32px;
  color: var(--crm-ink);
  background: #fff;
  text-align: left;
  box-shadow: 0 18px 60px rgba(35, 37, 32, .07);
}
.auth-role-grid button:hover { border-color: rgba(23, 25, 22, .12); transform: translateY(-2px); }
.auth-role-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  border-radius: 20px;
  background: var(--crm-lime);
  font-size: 22px;
  font-weight: 800;
}
.auth-role-icon.client { background: var(--crm-orange); }
.auth-role-grid strong { font-size: 27px; letter-spacing: -.035em; }
.auth-role-grid small { max-width: 290px; margin-top: 8px; color: var(--crm-muted); font-size: 14px; line-height: 1.5; }
.auth-role-grid b { margin-top: auto; padding-top: 26px; font-size: 13px; }
.auth-form { width: min(470px, 100%); margin: 0 auto; padding: 34px; border-radius: 30px; }
.auth-form[hidden] { display: none; }
.auth-form h2 { margin: 6px 0 22px; font-size: 42px; letter-spacing: -.05em; }
.auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 16px; background: var(--crm-surface); }
.auth-mode-switch button { min-height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--crm-muted); }
.auth-mode-switch button.active { color: var(--crm-ink); background: #fff; font-weight: 720; box-shadow: 0 4px 14px rgba(32, 34, 29, .07); }
.auth-privacy { margin: 18px 0 0; color: var(--crm-muted); font-size: 11px; line-height: 1.5; text-align: center; }
.auth-form .dialog-alert { margin: 16px 0; }

.client-home-view { padding: 36px 0 70px; }
.client-home-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.client-home-heading h1 { margin: 5px 0 0; font-size: 62px; letter-spacing: -.06em; }
.client-home-heading > p { max-width: 330px; margin: 0 0 9px; color: var(--crm-muted); line-height: 1.5; }
.client-booking-list { padding: 18px; display: grid; gap: 10px; border-radius: 28px; }
.client-booking-row { padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; border-radius: 20px; background: var(--crm-surface); }
.client-booking-row strong { font-size: 17px; }
.client-booking-row span,
.client-booking-row small { color: var(--crm-muted); }
.client-booking-row time { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 9px 12px; border-radius: 12px; background: var(--crm-lime); font-weight: 750; }
.client-empty-action { max-width: 640px; margin: 24px auto 0; display: grid; gap: 5px; text-align: center; }
.client-empty-action span { color: var(--crm-muted); line-height: 1.5; }
.audit-list { display: grid; gap: 9px; margin-top: 24px; }
.audit-row { padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; border-radius: 15px; background: var(--crm-surface); }
.audit-row small { color: var(--crm-muted); }
.audit-row time { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--crm-muted); font-size: 11px; }

@media (max-width: 720px) {
  .crm-app { padding-bottom: 0; }
  .account-toolbar { width: calc(100% - 28px); margin-top: 12px; }
  .account-button-copy { display: none; }
  .auth-view { padding-top: 22px; }
  .auth-brand { margin-bottom: 42px; }
  .auth-role-choice { text-align: left; }
  .auth-role-choice h1 { font-size: 48px; }
  .auth-lead { font-size: 15px; }
  .auth-role-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .auth-role-grid button { min-height: 220px; padding: 24px; }
  .auth-role-icon { margin-bottom: 24px; }
  .auth-form { padding: 26px 22px; }
  .client-home-heading { align-items: flex-start; flex-direction: column; }
  .client-home-heading h1 { font-size: 48px; }
  .client-booking-row { grid-template-columns: 1fr; }
  .client-booking-row time { grid-column: 1; grid-row: auto; justify-self: start; }
}
