:root {
  color-scheme: dark;
  --paper: #0b090e;
  --panel: #17131c;
  --ink: #f5eff8;
  --muted: #cdc2d3;
  --line: #46354e;
  --lavender: #d6b4e7;
  --violet: #2b1e34;
  --shadow: 0 20px 55px #0003;
  --gutter: clamp(20px, 5.5vw, 88px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; }
button:disabled { opacity: .45; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
em { color: var(--lavender); font-weight: 400; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 4px; }
::selection { background: var(--lavender); color: #17101c; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 10; top: -100px; left: 20px; padding: 12px 18px; background: var(--lavender); color: #160e1b; }
.skip-link:focus { top: 10px; }
.site-shell { max-width: 1600px; margin: auto; }
.site-header { display: flex; align-items: center; gap: 28px; min-height: 84px; padding: 17px var(--gutter); border-bottom: 1px solid #ffffff0d; background: #08070b; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 27px Georgia, serif; letter-spacing: -.055em; white-space: nowrap; }
.brand strong { color: var(--lavender); font-weight: 400; }
.brand-mark { display: grid; place-items: center; flex-shrink: 0; width: 41px; height: 41px; border-radius: 50%; background: var(--lavender); color: #170e1e; font: 27px Georgia, serif; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); margin-left: auto; }
.nav-link { min-height: 44px; padding: 6px 0; border: 0; background: none; color: #d3cbd7; font-size: 14px; white-space: nowrap; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link.is-active { box-shadow: inset 0 -2px var(--lavender); }
.preview-dot { display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 4px; border-radius: 50%; background: var(--lavender); }
.auth-links { display: flex; min-width: 0; }
.client-link { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px 15px; border: 1px solid var(--line); border-radius: 6px; color: var(--lavender); font-size: 12px; font-weight: 600; }
.client-link:hover { border-color: var(--lavender); }
.admin-link { font-size: 13px; color: var(--muted); }
.admin-link:hover { color: var(--lavender); }
main { min-height: calc(100vh - 180px); }
.view { padding: 0 var(--gutter); }

.hero { position: relative; min-height: 525px; margin: 0 calc(-1 * var(--gutter)); padding: 62px var(--gutter) 58px; overflow: hidden; background: #160f1c; isolation: isolate; }
.hero-media { position: absolute; inset: 0 0 0 auto; z-index: -2; width: 62%; margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 38%; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #1a1121 0%, #160e1cf5 35%, #140d1acc 47%, #100a1238 64%, transparent 79%), linear-gradient(0deg, #100a16a6, transparent 35%); }
.hero-copy { position: relative; max-width: 720px; width: 62%; }
.eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 19px; color: var(--lavender); font-size: 10px; font-weight: 650; letter-spacing: .22em; }
.eyebrow-line { width: 38px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(48px, 4.7vw, 76px); letter-spacing: -.052em; margin: 0 0 25px; line-height: 1.04; }
.hero h1 em { display: block; white-space: nowrap; }
.hero-lead { max-width: 510px; margin-bottom: 0; color: #e4dce8; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 31px 0 23px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 50px; padding: 12px 22px; border-radius: 7px; border: 1px solid transparent; font-size: 13px; font-weight: 650; line-height: 1.4; transition: background .18s, border-color .18s, transform .18s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-dark { border-color: var(--lavender); background: var(--lavender); color: #1b1021; }
.button-dark:hover:not(:disabled) { background: #e6c9f3; border-color: #e6c9f3; }
.button-outline { border-color: #a18aaf; color: var(--ink); background: transparent; }
.button-outline:hover:not(:disabled) { border-color: var(--lavender); background: #d6b4e710; }
.button-full { width: 100%; }
.hero-note { display: flex; gap: 9px; align-items: center; color: #d4c6dd; font-size: 11px; }
.note-icon { color: var(--lavender); font-size: 18px; }
.visit-ribbon { display: grid; grid-template-columns: 56px minmax(210px, .9fr) minmax(250px, 1.4fr) auto; align-items: center; gap: 30px; min-height: 114px; padding: 24px 30px; border: 1px solid #92749e; background: linear-gradient(95deg, #26182c, #211527ed 72%, #2115277a), url("images/beauty-petals.jpg") right center / auto 100% no-repeat; }
.ribbon-symbol { color: var(--lavender); font: 42px Georgia, serif; }
.visit-ribbon h2 { padding-right: 25px; margin: 0; border-right: 1px solid #775c83; font: 600 19px/1.35 "Avenir Next", sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.visit-ribbon p { margin: 0; color: #dac4e5; font-size: 13px; line-height: 1.7; }
.text-button { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; padding: 6px 0; border: 0; background: none; color: var(--lavender); font-size: 12px; font-weight: 600; white-space: nowrap; }
.text-button:hover { color: #f0d9ff; }
.home-services { padding: 49px 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 3.5vw, 47px); letter-spacing: -.035em; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 60px; }
.service-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #684f74; border-radius: 2px; background: linear-gradient(155deg, #211626, #100d15); box-shadow: var(--shadow); }
.service-photo { aspect-ratio: 2.1; overflow: hidden; background: #24172c; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-photo img { transform: scale(1.035); }
.service-card-content { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.card-kicker { color: var(--lavender); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.service-card h3 { margin: 13px 0 8px; font: 400 27px/1.14 Georgia, serif; letter-spacing: -.025em; }
.service-card p { margin-bottom: 23px; color: var(--muted); font-size: 12px; }
.service-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.service-price { font: 24px Georgia, serif; white-space: nowrap; }
.card-arrow { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 42px; padding: 9px 14px; border: 1px solid #b4a1bf; border-radius: 5px; color: var(--ink); background: transparent; font-size: 11px; }
.card-arrow:hover { border-color: var(--lavender); background: var(--violet); }
.intro-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 34px; padding: 15px 0 65px; }
.intro-title h2 { margin-bottom: 0; font-size: 36px; letter-spacing: -.04em; }
.intro-number { font: italic 22px Georgia, serif; color: var(--lavender); }
.intro-item h3 { margin: 13px 0 10px; font: 400 23px Georgia, serif; }
.intro-item p { max-width: 235px; color: var(--muted); font-size: 12px; }
.loading, .empty-state { padding: 25px; color: var(--muted); font-size: 14px; }
.empty-state a { color: var(--lavender); text-decoration: underline; text-underline-offset: 3px; }

.page-heading { padding: 58px 0 32px; }
.page-heading .eyebrow { margin-bottom: 15px; }
.page-heading h1 { margin: 0 0 18px; font-size: clamp(44px, 5vw, 69px); letter-spacing: -.05em; }
.page-heading > p:last-child { max-width: 610px; margin-bottom: 0; color: var(--muted); font-size: 14px; }
.catalog-toolbar { display: flex; align-items: center; gap: 26px; margin-bottom: 27px; }
.filter-label, .small-caps { color: var(--lavender); font-size: 10px; font-weight: 650; letter-spacing: .13em; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; }
.segmented button.is-selected { border-color: var(--lavender); background: var(--violet); color: var(--ink); }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 28px; padding-bottom: 75px; }
.booking-flow { min-width: 0; padding: 3px 29px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.step { padding: 28px 0 31px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-heading { display: flex; gap: 17px; align-items: start; margin-bottom: 20px; }
.step-index { color: var(--lavender); font: italic 20px Georgia, serif; }
.step-heading h2 { margin: 0 0 6px; font-size: 28px; }
.step-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.choice-grid, .date-grid, .slot-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-left: 36px; }
.choice { display: flex; flex-direction: column; gap: 4px; max-width: 100%; min-width: 115px; min-height: 46px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 6px; background: #110d16; color: var(--ink); text-align: left; overflow-wrap: anywhere; }
.choice:hover:not(:disabled), .choice.is-selected { border-color: var(--lavender); background: var(--violet); }
.choice strong { font-size: 13px; font-weight: 600; }
.choice span { color: var(--muted); font-size: 11px; }
.date-grid { margin-bottom: 14px; }
.date-grid .choice { min-width: 98px; }
.slot-grid .choice { display: inline-flex; justify-content: center; min-width: 76px; text-align: center; }
.step-placeholder { margin-left: 36px; color: var(--muted); font-size: 12px; }
.summary-card { position: sticky; top: 24px; min-width: 0; padding: 27px; border: 1px solid #70567f; border-radius: 10px; background: linear-gradient(140deg, #2c1d36, #1c1523); box-shadow: var(--shadow); }
.summary-top { display: flex; align-items: center; gap: 11px; }
.summary-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--lavender); color: #1b1021; font: 20px Georgia, serif; }
.summary-card h2 { margin: 22px 0; font-size: 33px; }
.summary-row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.summary-row span { color: var(--muted); }
.summary-row strong { max-width: 66%; text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.summary-empty, .summary-hint { color: var(--muted); font-size: 12px; }
.summary-divider { height: 1px; margin: 23px 0; background: var(--line); }
.auth-boundary { margin-bottom: 20px; font-size: 12px; }
.auth-boundary strong { display: block; margin-bottom: 5px; }
.auth-boundary p { margin: 0; color: var(--muted); }
.summary-hint { margin: 12px 0 0; }
.booking-confirm-form { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.booking-confirm-form label, .login-card label { font-size: 12px; font-weight: 600; }
.booking-confirm-form input, .login-card input { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid #685472; border-radius: 6px; background: #100c15; color: var(--ink); font-size: 16px; }
.booking-confirm-form p { color: var(--lavender); font-size: 12px; }
.booking-confirm-form .button { margin-top: 7px; }
.my-bookings { display: grid; gap: 12px; max-width: 1000px; padding-bottom: 75px; }
.my-booking-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.my-booking-card h2 { margin: 7px 0; font-size: 26px; }
.my-booking-card p { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.my-booking-card strong { font-size: 14px; }

#chat-view .page-heading { max-width: 1000px; margin: auto; padding-top: 36px; padding-bottom: 24px; }
.chat-shell { max-width: 1000px; margin: 0 auto 75px; overflow: hidden; border: 1px solid #5b4267; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.chat-header { display: flex; align-items: center; gap: 13px; padding: 20px 25px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, #281a32, #17131c); }
.chat-avatar { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--lavender); color: #180f20; font: 27px Georgia, serif; }
.chat-header strong, .chat-header span { display: block; }
.chat-header strong { margin-bottom: 2px; font-size: 15px; font-weight: 600; }
.chat-header div:nth-child(2) span { color: var(--muted); font-size: 11px; }
.chat-status { flex-shrink: 0; margin-left: auto; padding: 6px 10px; border: 1px solid #725381; border-radius: 20px; color: var(--lavender); font-size: 10px; }
.chat-messages { display: flex; flex-direction: column; gap: 16px; min-height: 340px; max-height: 55dvh; padding: 28px; overflow-y: auto; overscroll-behavior: contain; }
.chat-message { max-width: 82%; padding: 15px 18px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.assistant { align-self: flex-start; border-color: #44334e; border-bottom-left-radius: 3px; background: #211a28; }
.chat-message.user { align-self: flex-end; border-color: #755586; border-bottom-right-radius: 3px; background: #442b55; }
.chat-source { max-width: 82%; padding: 10px 13px; margin: -7px 0 5px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.chat-source summary { cursor: pointer; color: var(--lavender); }
.chat-source p { margin: 14px 0 0; white-space: pre-wrap; line-height: 1.7; }
.chat-compose { display: flex; gap: 10px; padding: 17px 22px; border-top: 1px solid var(--line); background: #130f18; }
.chat-compose input { flex: 1; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #655071; border-radius: 7px; background: #1d1525; color: var(--ink); font-size: 16px; }
input::placeholder { color: #c1b3cc; opacity: 1; }
.chat-send { flex-shrink: 0; width: 49px; min-height: 48px; border: 1px solid var(--lavender); border-radius: 7px; background: var(--lavender); color: #1b1021; font-size: 24px; }
.chat-booking { padding: 0 26px 26px; border-top: 1px solid var(--line); }
.chat-booking h2 { margin: 20px 0 12px; font-size: 28px; }
.chat-booking p { color: var(--muted); font-size: 12px; }
.chat-booking .slot-grid { margin-left: 0; }
.chat-booking-card { padding: 5px 22px 22px; margin-top: 22px; border: 1px solid #785989; border-radius: 9px; background: #291d33; }
.chat-booking-card .booking-confirm-form { max-width: 480px; }
.chat-booking-card .summary-row strong { max-width: 66%; }
.chat-booking-card > [data-action] { margin: 14px 8px 0 0; }
.chat-slot-options { margin-top: 24px; }
.chat-slot-options > [data-action="chat-choose-appointment"] { width: 100%; margin-bottom: 9px; white-space: normal; overflow-wrap: anywhere; }
.app-status { margin: 22px var(--gutter) 0; padding: 13px 17px; border: 1px solid #8d6f9e; border-radius: 7px; background: #32203e; color: #ecdef4; font-size: 13px; overflow-wrap: anywhere; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 26px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer > span:first-child { color: var(--ink); font: 20px Georgia, serif; white-space: nowrap; }
.site-footer .text-button { font-size: 11px; }
.admin-page { min-height: 100vh; }
.client-login-page { background: radial-gradient(ellipse at 12% 35%, #23162d, transparent 65%), var(--paper); }
.client-login-page .login-card { border-color: #886a98; }
.client-login-page .login-card input { border-color: #887294; background: #120e19; }
.admin-header { max-width: 1600px; margin: auto; justify-content: space-between; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 75px; max-width: 1240px; min-height: calc(100vh - 84px); margin: auto; padding: 55px var(--gutter); }
.login-intro { position: relative; min-width: 0; }
.login-intro h1 { margin: 22px 0 25px; font-size: clamp(50px, 5.2vw, 75px); letter-spacing: -.05em; }
.login-intro h1 em { display: block; }
.login-intro > p:last-of-type { max-width: 430px; color: var(--muted); font-size: 15px; }
.login-visual { max-width: 450px; height: 190px; margin-top: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.login-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.login-card { min-width: 0; padding: 34px; border: 1px solid #674b76; border-radius: 12px; background: linear-gradient(140deg, #271a30, #17131d); box-shadow: var(--shadow); }
.login-card h2 { margin: 24px 0 12px; font-size: 38px; }
.login-card > p { color: var(--muted); font-size: 12px; }
.login-card form { display: flex; flex-direction: column; gap: 8px; margin: 27px 0 0; }
.login-card input { margin-bottom: 11px; }
.login-card .button { margin-top: 12px; }
.login-card .login-message { margin: 20px 0 0; padding: 12px; border-radius: 5px; background: var(--violet); color: var(--muted); font-size: 11px; }

@media (max-width: 1150px) {
  .site-header { gap: 20px; }
  .brand { font-size: 23px; }
  .main-nav { gap: 18px; }
  .nav-link { font-size: 13px; }
  .client-link { max-width: 140px; padding: 9px 11px; }
  .hero { min-height: 510px; }
  .hero-copy { width: 65%; }
  .hero h1 { font-size: 55px; }
  .hero h1 em { white-space: normal; }
  .visit-ribbon { grid-template-columns: 34px 1fr 1.4fr; gap: 22px; padding: 24px; }
  .visit-ribbon .text-button { grid-column: 2 / -1; min-height: 25px; }
  .intro-grid { grid-template-columns: repeat(3, 1fr); }
  .intro-title { grid-column: 1 / -1; }
  .intro-title h2 br { display: none; }
  .booking-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
  .booking-flow { padding: 3px 21px; }
  .choice-grid, .date-grid, .slot-grid { margin-left: 0; }
  .summary-card { padding: 22px; }
  .login-layout { gap: 35px; grid-template-columns: minmax(0, 1fr) 390px; }
}
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 12px 20px; padding-top: 16px; padding-bottom: 8px; }
  .brand { font-size: 25px; }
  .auth-links { margin-left: auto; }
  .main-nav { order: 3; justify-content: space-between; width: 100%; min-width: 0; gap: 20px; margin: 0; overflow-x: auto; }
  .nav-link { flex-shrink: 0; font-size: 13px; }
  .client-link { max-width: 185px; }
  .hero-copy { width: 76%; }
  .hero h1 { font-size: 56px; }
  .hero-media { width: 60%; }
  .hero::before { background: linear-gradient(90deg, #1b1122 2%, #1b1122f5 30%, #1b1122ab 57%, #140d1a33 90%), linear-gradient(0deg, #100a16, transparent 60%); }
  .hero-lead { font-size: 16px; }
  .service-grid { gap: 17px; }
  .service-card-content { padding: 19px; }
  .service-card h3 { font-size: 25px; }
  .service-card-bottom { flex-wrap: wrap; }
  .booking-layout { grid-template-columns: 1fr; gap: 24px; }
  .summary-card { position: static; }
  .booking-confirm-form { max-width: 500px; }
  .login-layout { grid-template-columns: 1fr 1fr; gap: 28px; }
  .login-intro h1 { font-size: 54px; }
  .login-card { padding: 26px; }
}
@media (max-width: 650px) {
  :root { --gutter: 22px; }
  .brand { font-size: 23px; gap: 9px; }
  .brand-mark { width: 33px; height: 33px; font-size: 24px; }
  .client-link { max-width: 125px; font-size: 11px; padding: 8px 11px; }
  .main-nav { gap: 22px; }
  .nav-link { min-height: 46px; font-size: 12px; }
  .hero { min-height: 650px; padding-top: 47px; padding-bottom: 30px; }
  .hero-copy { width: 100%; max-width: 520px; }
  .hero h1 { max-width: 530px; font-size: clamp(43px, 8.8vw, 58px); line-height: 1.06; }
  .hero h1 em { max-width: 480px; }
  .hero-media { width: 100%; height: 64%; top: auto; bottom: 0; }
  .hero-media img { object-position: 50% 25%; }
  .hero::before { background: linear-gradient(180deg, #1b1122 13%, #1b1122e8 36%, #1b112299 59%, #100a1630 87%, #100a16c7 100%); }
  .hero-lead { max-width: 430px; font-size: 15px; }
  .hero-actions { gap: 10px; margin-top: 26px; }
  .button { min-height: 49px; padding: 12px 17px; gap: 18px; }
  .hero-note { font-size: 11px; }
  .visit-ribbon { grid-template-columns: 28px minmax(0, 1fr); gap: 16px 18px; padding: 23px; }
  .visit-ribbon h2 { border-right: 0; padding-right: 0; font-size: 19px; }
  .visit-ribbon p { grid-column: 1 / -1; font-size: 12px; }
  .visit-ribbon .text-button { grid-column: 1 / -1; }
  .home-services { padding-top: 39px; }
  .section-heading { gap: 15px; align-items: center; }
  .section-heading h2 { font-size: 34px; }
  .section-heading .eyebrow { font-size: 9px; }
  .text-button { gap: 11px; font-size: 11px; }
  .service-grid { grid-template-columns: 1fr; gap: 21px; padding-bottom: 43px; }
  .service-photo { aspect-ratio: 2.05; }
  .service-card-content { padding: 22px; }
  .service-card h3 { font-size: 29px; }
  .service-card-bottom { flex-wrap: nowrap; }
  .card-arrow { min-height: 44px; padding: 10px 17px; }
  .intro-grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 40px; }
  .intro-title h2 { font-size: 36px; }
  .intro-item { padding-left: 16px; border-left: 1px solid var(--line); }
  .intro-item h3 { margin: 6px 0 8px; }
  .intro-item p { max-width: 390px; margin-bottom: 0; }
  .page-heading { padding: 40px 0 28px; }
  .page-heading h1 { font-size: clamp(42px, 9vw, 59px); }
  .page-heading > p:last-child { font-size: 13px; }
  .catalog-toolbar { flex-direction: column; align-items: start; gap: 12px; }
  .segmented button { padding: 10px 14px; }
  .booking-flow { padding: 3px 18px; }
  .step-heading { gap: 13px; }
  .step-placeholder { margin-left: 0; }
  .choice-grid, .date-grid, .slot-grid { gap: 9px; }
  .choice { min-width: calc(50% - 5px); padding: 11px 12px; }
  .date-grid .choice { min-width: calc(33.333% - 6px); }
  .slot-grid .choice { min-width: calc(25% - 7px); }
  .summary-card { padding: 23px; }
  .summary-row { gap: 12px; }
  .my-booking-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 19px 20px; }
  #chat-view .page-heading { padding-top: 28px; padding-bottom: 22px; }
  .chat-shell { margin-bottom: 45px; }
  .chat-header { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 7px 12px; padding: 17px; }
  .chat-avatar { width: 35px; height: 35px; grid-row: 1 / 3; }
  .chat-header strong { font-size: 14px; }
  .chat-header div:nth-child(2) span { font-size: 10px; }
  .chat-status { justify-self: start; grid-column: 2; margin: 2px 0 0; padding: 3px 8px; font-size: 9px; }
  .chat-messages { min-height: 315px; max-height: 52dvh; padding: 17px; }
  .chat-message { max-width: 94%; padding: 12px 14px; font-size: 13px; }
  .chat-source { max-width: 94%; font-size: 11px; }
  .chat-compose { gap: 8px; padding: 13px; }
  .chat-compose input { padding: 10px 11px; }
  .chat-send { width: 45px; }
  .chat-booking { padding: 0 16px 18px; }
  .chat-booking-card { padding: 5px 15px 18px; }
  .chat-booking-card .button { width: 100%; margin-right: 0; }
  .chat-booking h2 { font-size: 25px; }
  .site-footer { flex-wrap: wrap; gap: 9px 22px; padding-top: 25px; padding-bottom: 25px; }
  .site-footer > span:first-child { width: 100%; }
  .site-footer .text-button { margin-left: auto; }
  .login-layout { grid-template-columns: 1fr; gap: 22px; min-height: auto; padding-top: 38px; padding-bottom: 45px; }
  .login-intro h1 { font-size: 52px; }
  .login-visual { display: none; }
  .login-card { padding: 25px; }
  .admin-header { flex-wrap: nowrap; gap: 15px; padding-bottom: 15px; }
  .admin-header .brand { font-size: 21px; }
  .admin-link { font-size: 11px; }
}
@media (max-width: 380px) {
  :root { --gutter: 17px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 30px; height: 30px; font-size: 22px; }
  .client-link { max-width: 90px; }
  .hero { min-height: 660px; }
  .hero h1 { font-size: 43px; }
  .hero-actions .button { gap: 12px; font-size: 12px; padding: 12px 14px; }
  .hero-lead br { display: none; }
  .section-heading { align-items: start; flex-direction: column; gap: 5px; }
  .visit-ribbon { padding: 20px; }
  .summary-card { padding: 20px; }
  .service-card-content { padding: 20px; }
  .service-price { font-size: 23px; }
  .site-footer .text-button { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* «Мои записи»: перенос визита */
.my-booking-card { flex-wrap: wrap; }
.my-booking-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.reschedule-panel { flex-basis: 100%; display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.reschedule-panel h3 { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.reschedule-panel .date-grid, .reschedule-panel .slot-grid { margin-left: 0; }
.reschedule-card { display: grid; gap: 6px; max-width: 520px; }
.reschedule-card p { margin: 6px 0; font-size: 12px; }

/* Кабинет сотрудника и вход администратора — в той же тёмно-фиолетовой теме, что и сайт клиента */
.login-decoration { position: absolute; z-index: -1; bottom: -80px; left: 30px; color: #d6b4e714; font: 180px Georgia, serif; pointer-events: none; }
.staff-page { --card: #17131c; --card-soft: #221a29; --field: #100c15; --field-line: #5b4766; }
.staff-layout { max-width: 1400px; margin: auto; padding: 0 var(--gutter) 70px; }
.staff-layout .page-heading { padding-bottom: 20px; }
.staff-status { min-height: 24px; color: var(--muted); font-size: 13px; }
.staff-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 17px; padding: 23px; margin: 22px 0 40px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.staff-filters label { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 150px; font-size: 12px; font-weight: 600; }
.staff-page input:not([type=checkbox]):not([type=radio]), .staff-page select, .staff-page textarea { min-height: 44px; padding: 9px 11px; border: 1px solid var(--field-line); border-radius: 6px; background: var(--field); color: var(--ink); font: inherit; color-scheme: dark; }
.staff-page input:focus, .staff-page select:focus, .staff-page textarea:focus { border-color: var(--lavender); outline: none; }
.staff-filters input[type=date], .staff-filters select { width: 100%; }
.staff-filters .staff-check { flex-direction: row; align-items: center; min-height: 44px; font-weight: 400; }
.staff-page input[type=checkbox], .staff-page input[type=radio] { accent-color: var(--lavender); }
.staff-layout .section-heading { align-items: center; flex-wrap: wrap; }
.staff-layout .section-heading h2 { font-size: clamp(28px, 3vw, 40px); }
.staff-layout .section-heading span { color: var(--muted); font-size: 12px; }
.staff-appointments, #staff-promos { display: grid; gap: 12px; }
.staff-appointment { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 23px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.staff-appointment h3 { margin: 10px 0; font: 27px Georgia, serif; }
.staff-appointment p { margin: 0; color: var(--muted); font-size: 13px; }
.staff-appointment-time { display: flex; flex-direction: column; align-items: end; gap: 6px; font-size: 12px; white-space: nowrap; }
.staff-appointment-time strong { color: var(--lavender); font: 24px Georgia, serif; }
.staff-badge { padding: 4px 10px; border-radius: 20px; background: var(--violet); color: var(--lavender); font-size: 11px; }
.staff-badge.is-cancelled { background: #3a1f26; color: #f0b6c1; }
.staff-schedule-section { margin-top: 45px; }
.staff-schedules { display: grid; gap: 15px; }
.staff-schedule { padding: 23px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.staff-schedule h3 { margin-bottom: 20px; font: 25px Georgia, serif; }
.staff-schedule-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.staff-schedule-head h3 { margin: 0; }
.staff-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.staff-day { display: flex; flex-direction: column; gap: 8px; padding: 12px 8px; border: 1px solid #3a2c42; border-radius: 8px; background: var(--card-soft); font-size: 11px; overflow-wrap: anywhere; }
.staff-day > span { color: var(--muted); }
.staff-day strong { font-size: 12px; }
.staff-day.is-day-off { background: transparent; color: var(--muted); border-style: dashed; }
.staff-day small { font-size: 10px; }
.staff-day-edit, .staff-link { align-self: start; padding: 0; border: 0; background: none; color: var(--lavender); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.staff-day-edit:hover, .staff-link:hover { color: #f0d9ff; }
.staff-editor { display: grid; gap: 12px; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #0f0b13; }
.staff-editor h4 { margin: 0; font-size: 15px; }
.staff-editor-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.staff-editor-row label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.staff-editor-row input:not([type=checkbox]), .staff-editor-row select { min-height: 38px; padding: 6px 10px; }
.staff-editor-row .staff-check { display: flex; align-items: center; gap: 6px; min-height: 38px; }
.staff-editor-hint { margin: 0; color: var(--muted); font-size: 12px; }
.staff-weekday { min-width: 32px; padding-bottom: 9px; }
.staff-blocks { margin: 0; padding-left: 18px; font-size: 13px; }
.staff-visit-actions { display: flex; gap: 14px; margin-top: 4px; }
.staff-visit-panel { flex-basis: 100%; margin-top: 4px; }
.staff-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-chip { min-width: 64px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--card-soft); color: var(--ink); font-size: 13px; }
.staff-chip.is-selected, .staff-chip:hover { border-color: var(--lavender); background: var(--violet); color: var(--lavender); }
.staff-phone-section, .staff-promo-section { margin-bottom: 40px; }
.staff-phone-step { display: grid; gap: 8px; }
.staff-phone-step h4 { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.staff-promo { display: flex; justify-content: space-between; gap: 20px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.staff-promo h3 { margin: 6px 0; font: 23px Georgia, serif; }
.staff-promo p { margin: 0 0 6px; color: var(--muted); }
.staff-promo-side { display: flex; flex-direction: column; align-items: end; gap: 8px; white-space: nowrap; }
.staff-wide { flex: 1 1 360px; }
.staff-wide input { width: 100%; }
.staff-page .button { min-height: 44px; }
@media (max-width: 1000px) { .staff-week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .staff-promo { flex-direction: column; } .staff-promo-side { align-items: start; } }
@media (max-width: 600px) {
  .staff-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-filters { padding: 17px; gap: 12px; }
  .staff-filters label { min-width: 100%; }
  .staff-filters .button { width: 100%; }
  .staff-appointment { align-items: start; flex-direction: column; }
  .staff-appointment-time { align-items: start; }
  .staff-layout .section-heading { align-items: start; flex-direction: column; gap: 10px; }
}
/* «администратора» — длинное слово: на входе сотрудника заголовок чуть меньше и умеет переноситься */
[data-account-kind="admin"] .login-intro h1 { font-size: clamp(36px, 3.8vw, 50px); hyphens: auto; overflow-wrap: break-word; }
.login-decoration { color: #d6b4e70a; }
