:root {
  font-family: Inter, Arial, sans-serif;
  color: #2d2a2a;
  background: #f7f3ef;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f7f3ef; }
a { color: #785a52; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.topbar {
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid #e5ddd7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar h1 { margin: 0; font-size: 22px; }
.topbar nav { display: flex; gap: 14px; flex-wrap: wrap; }

main { max-width: 1050px; margin: 0 auto; padding: 28px 20px 50px; }
.hero { margin-bottom: 24px; }
.hero h2 { margin-bottom: 6px; }
.muted { color: #746d68; }

.card {
  background: #fff;
  border: 1px solid #e4dcd6;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

label { display: block; font-weight: 600; margin: 10px 0 6px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cfc5be;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
textarea { min-height: 90px; resize: vertical; }

button {
  border: 0;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  background: #70564f;
  color: #fff;
  font-weight: 600;
}
button.secondary { background: #ece5df; color: #4d4541; }
button.danger { background: #a64848; }
button:disabled { opacity: .55; cursor: default; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions { margin-top: 14px; }
.message { margin: 10px 0; padding: 10px 12px; border-radius: 8px; display: none; }
.message.show { display: block; }
.message.error { background: #fae8e8; color: #7b2525; }
.message.ok { background: #e9f5ea; color: #285b31; }

.service, .booking {
  border-top: 1px solid #eee7e2;
  padding: 14px 0;
}
.service:first-child, .booking:first-child { border-top: 0; }
.price { font-weight: 700; }
.small { font-size: 13px; }
.badge {
  display: inline-block;
  background: #eee5df;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.hidden { display: none !important; }
.auth-grid { max-width: 820px; margin: 0 auto; }
footer { text-align: center; color: #8a817b; padding: 20px; font-size: 13px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.photo-card {
  border: 1px solid #e4dcd6;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}
.photo-card img, .photo-grid > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #f2ece7;
}
.photo-card button {
  width: 100%;
  margin-top: 8px;
}


/* Step 011 — public specialist profile */
.profile-page { max-width: 980px; margin: 0 auto; }
.profile-breadcrumbs { display:flex; gap:8px; align-items:center; margin-bottom:14px; color:#746d68; font-size:14px; }
.profile-hero { display:grid; grid-template-columns:minmax(280px, 42%) 1fr; gap:28px; align-items:stretch; padding:0; overflow:hidden; }
.profile-hero-visual { min-height:360px; background:#eee8e3; }
.profile-hero-image, .profile-hero-placeholder { width:100%; height:100%; min-height:360px; display:block; object-fit:cover; }
.profile-hero-placeholder { display:grid; place-items:center; font-size:88px; color:#8b746c; background:#eee8e3; }
.profile-hero-copy { padding:34px 34px 34px 8px; display:flex; flex-direction:column; justify-content:center; }
.profile-eyebrow { text-transform:uppercase; letter-spacing:.08em; font-size:12px; font-weight:700; color:#8b746c; margin-bottom:10px; }
.profile-hero-copy h1 { font-size:clamp(34px,5vw,56px); line-height:1.02; margin:0 0 14px; }
.profile-bio { font-size:18px; line-height:1.6; margin:0 0 18px; max-width:650px; }
.profile-quickfacts { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.profile-quickfacts span { background:#f2ece7; border-radius:999px; padding:8px 12px; font-size:13px; }
.profile-primary-cta, .profile-book-button { display:inline-flex; justify-content:center; align-items:center; border-radius:10px; background:#70564f; color:#fff; font-weight:700; min-height:46px; padding:0 18px; transition:transform .08s ease, opacity .15s ease; }
.profile-primary-cta:hover, .profile-book-button:hover { opacity:.92; transform:translateY(-1px); }
.profile-primary-cta { align-self:flex-start; }
.profile-section { margin-top:28px; }
.profile-section-heading { display:flex; justify-content:space-between; align-items:baseline; gap:14px; margin-bottom:12px; }
.profile-section-heading h2 { margin:0; font-size:28px; }
.profile-services-list { display:grid; gap:12px; }
.profile-service-card { background:#fff; border:1px solid #e4dcd6; border-radius:14px; padding:18px; display:grid; grid-template-columns:1fr auto; gap:14px 18px; align-items:center; }
.profile-service-category { grid-column:1/-1; color:#8b746c; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; }
.profile-service-main { min-width:0; }
.profile-service-main h3 { margin:0 0 6px; font-size:20px; }
.profile-service-main p { margin:0; line-height:1.5; }
.profile-service-meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; white-space:nowrap; }
.profile-service-meta strong { font-size:20px; }
.profile-service-meta span { color:#746d68; font-size:13px; }
.profile-book-button { grid-column:2; grid-row:2; min-width:140px; }
.profile-gallery { display:grid; grid-template-columns:2fr repeat(3, 1fr); gap:10px; }
.profile-photo-main, .profile-photo-thumb { padding:0; border:0; background:none; border-radius:14px; overflow:hidden; cursor:pointer; min-height:0; }
.profile-photo-main { grid-row:span 2; }
.profile-photo-main img, .profile-photo-thumb img { width:100%; height:100%; display:block; object-fit:cover; aspect-ratio:1/1; }
.profile-photo-main img { aspect-ratio:4/3; }
.profile-booking-note { margin-top:28px; display:flex; justify-content:space-between; gap:20px; align-items:center; padding:24px; }
.profile-booking-note h2 { margin:0 0 6px; }
.profile-booking-note p { margin:0; }
.profile-lightbox { position:fixed; inset:0; z-index:1000; background:rgba(25,20,18,.86); display:grid; place-items:center; padding:24px; }
.profile-lightbox[hidden] { display:none; }
.profile-lightbox img { max-width:min(1100px,94vw); max-height:88vh; object-fit:contain; border-radius:10px; }
.profile-lightbox-close { position:absolute; right:18px; top:12px; background:rgba(255,255,255,.14); color:#fff; font-size:34px; line-height:1; width:44px; height:44px; border-radius:50%; padding:0; }
.profile-lightbox-open { overflow:hidden; }
@media (max-width: 760px) {
  .profile-hero { grid-template-columns:1fr; }
  .profile-hero-visual, .profile-hero-image, .profile-hero-placeholder { min-height:280px; }
  .profile-hero-copy { padding:24px; }
  .profile-service-card { grid-template-columns:1fr; }
  .profile-service-meta { align-items:flex-start; }
  .profile-book-button { grid-column:auto; grid-row:auto; width:100%; }
  .profile-gallery { grid-template-columns:repeat(2,1fr); }
  .profile-photo-main { grid-column:1/-1; grid-row:auto; }
  .profile-photo-main img { aspect-ratio:4/3; }
  .profile-booking-note { align-items:stretch; flex-direction:column; }
  .profile-booking-note .profile-primary-cta { align-self:stretch; }
}

.profile-booking-modal { position:fixed; inset:0; z-index:1100; background:rgba(25,20,18,.62); display:grid; place-items:center; padding:18px; }
.profile-booking-modal[hidden] { display:none; }
.profile-booking-dialog { position:relative; width:min(560px, 100%); max-height:min(90vh, 760px); overflow:auto; background:#fff; border-radius:18px; padding:28px; box-shadow:0 24px 80px rgba(0,0,0,.24); }
.profile-booking-close { position:absolute; right:14px; top:10px; width:42px; height:42px; padding:0; border:0; border-radius:50%; font-size:30px; line-height:1; background:#f2ece7; color:#4d403b; }
.profile-booking-summary { margin:-4px 0 20px; font-size:16px; }
.profile-booking-panel { display:grid; gap:10px; }
.profile-booking-panel[hidden] { display:none; }
.profile-booking-user { margin-bottom:4px; padding:10px 12px; background:#f6f1ed; border-radius:10px; font-size:14px; }
.profile-booking-date-row { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:end; }
.profile-booking-slots { display:grid; grid-template-columns:repeat(auto-fill,minmax(92px,1fr)); gap:8px; margin-top:6px; }
.profile-slot-button { min-height:44px; border:1px solid #d9cec7; border-radius:10px; background:#fff; color:#4f403a; font-weight:700; cursor:pointer; }
.profile-slot-button:hover:not(:disabled) { border-color:#8b746c; transform:translateY(-1px); }
.profile-slot-button:disabled { opacity:.55; cursor:default; }
.profile-booking-success { margin-top:14px; }
.profile-booking-success[hidden] { display:none; }
body.profile-booking-open { overflow:hidden; }
@media (max-width: 640px) {
  .profile-booking-dialog { padding:22px 18px; border-radius:16px; }
  .profile-booking-date-row { grid-template-columns:1fr; }
  .profile-booking-date-row button { width:100%; }
}

/* Step 035 — Discovery / visual browsing */
:root {
  --mcy-ink:#2d2826;
  --mcy-muted:#756c67;
  --mcy-line:#e7ded7;
  --mcy-paper:#fffdfb;
  --mcy-soft:#f4eee9;
  --mcy-accent:#735a52;
  --mcy-accent-soft:#ece1db;
}

body{color:var(--mcy-ink);background:#f8f4f1}
.topbar.site-shell{padding:0;background:rgba(255,253,251,.94);border-bottom:1px solid var(--mcy-line);position:sticky;top:0;z-index:50;backdrop-filter:blur(12px)}
.topbar-inner{width:min(1120px,100%);margin:0 auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;color:var(--mcy-ink)}
.brand-mark{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#eaded8;color:#624c45;font-size:16px}
.brand-text{font-size:16px;letter-spacing:-.01em}
.topbar-catalog{font-size:14px;font-weight:700;color:var(--mcy-accent)}
.site-main{min-height:calc(100vh - 130px);padding:0 20px 52px}
.site-footer{border-top:1px solid var(--mcy-line);background:#fffdfb}
.site-footer-inner{width:min(1120px,100%);margin:0 auto;padding:24px 20px;display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:13px;color:var(--mcy-muted)}
.site-footer nav{display:flex;gap:18px;flex-wrap:wrap}
.site-footer a{font-weight:700}

.home-page{width:min(1120px,100%);margin:0 auto}
.home-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(250px,.7fr);gap:28px;padding:48px 44px;margin:28px 0 42px;border:1px solid var(--mcy-line);border-radius:28px;background:linear-gradient(135deg,#fffaf7 0%,#f0e7e1 100%);box-shadow:0 10px 38px rgba(88,66,57,.06)}
.home-hero:after{content:"";position:absolute;right:-90px;top:-100px;width:270px;height:270px;border-radius:50%;background:radial-gradient(circle,#e8d7cd 0%,rgba(232,215,205,0) 68%);pointer-events:none}
.home-hero-copy,.home-hero-side{position:relative;z-index:1}
.home-hero-copy h2{margin:8px 0 14px;font-size:clamp(40px,6vw,70px);line-height:.98;letter-spacing:-.035em;max-width:760px}
.home-hero-copy p{font-size:18px;line-height:1.62;max-width:670px;color:#5f5752}
.home-eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#90776e}
.home-hero-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:24px}
.home-primary-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 19px;border-radius:13px;background:#6f564e;color:#fff;font-weight:800;box-shadow:0 7px 18px rgba(93,67,59,.14)}
.home-secondary-link{font-size:14px;font-weight:800;color:#6b554e}
.home-search-secondary{margin-top:18px;max-width:620px}
.home-search-secondary input{background:rgba(255,255,255,.75);border-color:#ddd1c9}
.home-search-secondary button.secondary{background:#eee7e2;color:#4f4540}
.home-hero-side{display:grid;align-content:center;gap:10px}
.home-how-card{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start;padding:15px 16px;border:1px solid rgba(125,100,89,.12);background:rgba(255,255,255,.66);border-radius:16px}
.home-how-number{font-size:11px;font-weight:900;letter-spacing:.08em;color:#9a7e74;padding-top:2px}
.home-how-card strong,.home-how-card span{display:block}
.home-how-card strong{font-size:14px}
.home-how-card span{font-size:13px;color:var(--mcy-muted);margin-top:2px}
.home-section{margin:42px 0}
.home-section-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:18px}
.home-section-heading h2{margin:4px 0 0;font-size:clamp(28px,4vw,40px);letter-spacing:-.025em}
.home-section-heading>a{font-size:14px;font-weight:800}
.home-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.home-category-card{min-height:260px;display:flex;flex-direction:column;padding:21px;border:1px solid var(--mcy-line);border-radius:20px;background:var(--mcy-paper);box-shadow:0 8px 24px rgba(93,71,61,.045);transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.home-category-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(93,71,61,.08);border-color:#d9cbc3}
.home-category-icon{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(145deg,#efe2db,#f7f0ec);color:#765b52;font-size:25px;margin-bottom:15px}
.home-category-card h2{font-size:22px;line-height:1.12;margin:5px 0 7px;letter-spacing:-.02em}
.home-category-caption{margin:0 0 14px;color:var(--mcy-muted);font-size:14px;line-height:1.45}
.home-chip-row{display:flex;flex-wrap:wrap;gap:7px}
.home-service-chip{display:inline-flex;align-items:center;padding:7px 9px;border-radius:999px;background:#f3ede8;color:#68544d;font-size:12px;font-weight:700}
.home-card-kicker{color:#947b72;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.home-card-link{margin-top:auto;padding-top:18px;font-weight:800;font-size:14px}
.home-master-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.home-master-card{overflow:hidden;border:1px solid var(--mcy-line);border-radius:20px;background:#fff;box-shadow:0 7px 22px rgba(93,71,61,.05)}
.home-master-media{display:block;aspect-ratio:4/3;background:#eee7e2;overflow:hidden}
.home-master-media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .2s ease}
.home-master-card:hover .home-master-media img{transform:scale(1.025)}
.home-master-placeholder{width:100%;height:100%;display:grid;place-items:center;font-size:72px;color:#8b746c;background:#eee8e3}
.home-master-body{padding:16px 17px 18px}
.home-master-body h3{margin:5px 0 7px;font-size:21px;line-height:1.15}
.home-master-body p{margin:3px 0;color:var(--mcy-muted);font-size:14px;line-height:1.45}
.home-trust-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;margin:46px 0 10px;padding:18px 16px;border-top:1px solid var(--mcy-line);border-bottom:1px solid var(--mcy-line);color:#685950;font-size:13px;font-weight:800}
.home-search-header{margin:22px 0 36px}
.home-search-header h2{margin:6px 0 10px;font-size:clamp(30px,4vw,48px);letter-spacing:-.025em}
.home-search-header>.card{padding:18px 20px;border-radius:18px}
.home-search-service{padding:18px 19px;border-radius:17px}
.home-search-service h3{margin:6px 0 8px}
.search-result-master .home-master-media-compact{aspect-ratio:16/10}

.client-main{width:min(920px,100%);margin:0 auto}
.client-intro{display:flex;justify-content:space-between;align-items:end;gap:24px;padding:34px 0 22px}
.client-intro h1{font-size:clamp(34px,6vw,52px);margin:5px 0 7px;letter-spacing:-.03em}
.client-choice,.client-empty-account{border-radius:18px}
.section-kicker{display:block;text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:800;color:#947b72;margin-bottom:6px}
.section-heading-row{display:flex;justify-content:space-between;align-items:baseline;gap:15px}
.service-list{display:grid;gap:12px;margin-top:14px}
.service-card{padding:17px 18px;border:1px solid var(--mcy-line);border-radius:16px;background:#fff}
.service-card-main{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.service-card-main h3{margin:5px 0 5px;font-size:20px}
.service-card-master{margin:0;color:#5f534e;font-weight:700}
.service-card-description{max-width:660px;margin:5px 0 0}
.service-card-price{display:flex;flex-direction:column;align-items:flex-end;gap:3px;white-space:nowrap}
.service-card-price strong{font-size:18px}
.service-card-price span{font-size:12px;color:var(--mcy-muted)}
.booking-tools{margin-top:14px;padding-top:14px;border-top:1px solid #eee6e1}
.booking-date-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:end}
.service-secondary-actions{margin-top:7px}
.service-secondary-actions .text-button{font-size:14px;min-height:38px}

.slot-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.slot-button{min-width:76px;min-height:42px;padding:0 12px;border-radius:10px;background:#fff;border:1px solid #d8cdc5;color:#4f423c;font-weight:800}
.slot-button:hover{border-color:#9a8178;transform:translateY(-1px)}
.modal-backdrop{position:fixed;inset:0;z-index:1000;background:rgba(37,29,26,.58);display:grid;place-items:center;padding:18px}
.auth-modal{position:relative;width:min(520px,100%);max-height:90vh;overflow:auto;background:#fffdfa;border-radius:20px;padding:26px;box-shadow:0 28px 100px rgba(0,0,0,.24)}
.modal-close{position:absolute;right:12px;top:10px;width:42px;height:42px;padding:0;border-radius:50%;background:#f1eae5;color:#4d403a;font-size:28px;line-height:1}
.auth-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}
.auth-actions button{flex:1;min-width:150px}
body.modal-open{overflow:hidden}
.text-link{font-weight:700}

@media(max-width:860px){
  .home-hero{grid-template-columns:1fr;padding:35px 27px}
  .home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-master-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .topbar-inner{padding:12px 15px}
  .brand-text{font-size:15px}
  .site-main{padding:0 15px 42px}
  .site-footer-inner{padding:21px 15px;align-items:flex-start;flex-direction:column}
  .home-hero{padding:26px 21px;border-radius:22px;margin-top:16px}
  .home-hero-copy h2{font-size:42px}
  .home-hero-copy p{font-size:16px}
  .home-hero-actions{align-items:stretch;flex-direction:column}
  .home-primary-button,.home-secondary-link{width:100%;text-align:center}
  .home-search-secondary{flex-direction:column}
  .home-search-secondary button{width:100%}
  .home-hero-side{grid-template-columns:1fr}
  .home-section{margin:32px 0}
  .home-section-heading{align-items:flex-start;flex-direction:column}
  .home-category-grid,.home-master-grid{grid-template-columns:1fr}
  .home-category-card{min-height:0}
  .home-trust-strip{gap:10px;justify-content:flex-start}
  .client-intro{align-items:flex-start;flex-direction:column;padding:24px 0 18px}
  .service-card-main{flex-direction:column}
  .service-card-price{align-items:flex-start}
  .booking-date-row{grid-template-columns:1fr}
  .booking-date-row button{width:100%}
}


/* Step 036 — booking flow: choose time first, account only at commitment */
.profile-booking-stepper{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 18px}
.profile-booking-stepper span{padding:6px 9px;border-radius:999px;background:#f2ece7;color:#8a7b74;font-size:11px;font-weight:800;letter-spacing:.02em}
.profile-booking-stepper span.is-active{background:#e7dcd6;color:#624d46}
.profile-booking-dialog h2{margin-bottom:6px}
.profile-booking-date-row>div{display:grid;gap:6px}
.profile-booking-date-row input{width:100%}
.profile-booking-date-row button{min-height:44px}
.profile-booking-selected{display:grid;gap:3px;padding:14px 15px;margin-bottom:4px;border:1px solid #e2d7d0;background:#f8f3ef;border-radius:13px}
.profile-booking-selected strong{font-size:16px;color:#3f3530}
.profile-booking-selected span{font-size:13px;color:#766a64}
.profile-slot-button.is-selected{border-color:#735a52;background:#eee2dc;box-shadow:0 0 0 2px rgba(115,90,82,.08)}
.profile-booking-success{text-align:left;padding:2px 0 4px}
.profile-booking-success-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;margin-bottom:12px;background:#e7efe8;color:#315c3b;font-weight:900;font-size:22px}
.profile-booking-success h3{margin:0 0 5px;font-size:22px}
.text-button{border:0;background:none;color:#735a52;padding:7px 0;font-weight:800;text-align:left}
.text-button:hover{background:none;text-decoration:underline}
@media (max-width:640px){
  .profile-booking-stepper{margin-bottom:14px}
  .profile-booking-stepper span{flex:1;text-align:center}
  .profile-booking-dialog .actions{display:grid}
  .profile-booking-dialog .actions button{width:100%}
}


/* STEP 037B: reusable password visibility control */
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 52px;
}
.password-toggle,
button.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 40px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4d4541;
  font-size: 18px;
  line-height: 1;
  border-radius: 7px;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  background: #f1ebe6;
  outline: none;
}


/* STEP 040 — master calendar + inquiries */
.profile-service-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.profile-question-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border:1px solid var(--mcy-line);border-radius:11px;font-weight:800;color:#65544d;text-decoration:none;background:#fff}
.profile-question-link:hover{background:#f7f1ed}
.calendar-heading,.calendar-toolbar,.calendar-nav,.calendar-view-switch,.calendar-legend{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.calendar-heading{justify-content:space-between;align-items:flex-start}.calendar-heading h2{margin:2px 0 4px}.calendar-toolbar{justify-content:space-between;margin:14px 0 10px}.calendar-nav strong{margin-left:4px}.calendar-view-switch .is-active{background:#4f423c;color:#fff;border-color:#4f423c}.calendar-legend{gap:16px;margin:8px 0 14px}.calendar-legend span{display:inline-flex;align-items:center;gap:6px}.calendar-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.calendar-dot.pending{background:#d79b3a}.calendar-dot.confirmed{background:#5f8f78}.calendar-dot.manual{background:#7183a9}.calendar-dot.blocked{background:#888}
.calendar-scroll{overflow-x:auto;border:1px solid var(--mcy-line);border-radius:14px;background:#fff}.calendar-grid{display:grid;grid-template-columns:64px repeat(var(--calendar-days),minmax(150px,1fr));min-width:calc(64px + var(--calendar-days)*150px)}.calendar-day,.calendar-times{min-width:0;border-left:1px solid #eee6e1}.calendar-times{border-left:0}.calendar-day-head{height:42px;display:flex;align-items:center;justify-content:center;padding:5px;font-weight:800;border-bottom:1px solid #eee6e1;background:#faf7f4;position:sticky;top:0;z-index:5}.calendar-day-body,.calendar-times-body{position:relative;background:repeating-linear-gradient(to bottom,transparent 0,transparent 34px,#f2ece8 34px,#f2ece8 35px)}.calendar-times-body span{position:absolute;left:8px;transform:translateY(-50%);font-size:11px;color:var(--mcy-muted)}.calendar-open-window{position:absolute;left:0;right:0;background:#fcfdfb;border-top:1px solid #edf2ee;border-bottom:1px solid #edf2ee;pointer-events:none}.calendar-break{position:absolute;left:2px;right:2px;z-index:2;background:repeating-linear-gradient(135deg,#f0ece9,#f0ece9 6px,#e5ded9 6px,#e5ded9 12px);color:#6d625c;font-size:10px;font-weight:800;padding:3px;overflow:hidden;pointer-events:none}.calendar-empty-slot{position:absolute;left:0;right:0;border:0;border-bottom:1px solid rgba(230,222,217,.38);background:transparent;z-index:1;padding:0;border-radius:0}.calendar-empty-slot:hover{background:rgba(116,91,81,.05)}.calendar-event{position:absolute;left:4px;right:4px;z-index:3;border:0;border-radius:9px;padding:5px 7px;text-align:left;overflow:hidden;display:flex;flex-direction:column;gap:1px;color:#2f2926}.calendar-event strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-event span,.calendar-event small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-event.pending{background:#f6dfb9;border-left:4px solid #d79b3a}.calendar-event.confirmed{background:#dcece3;border-left:4px solid #5f8f78}.calendar-event.completed{background:#ece8e5;border-left:4px solid #8e847e}.calendar-event.manual{background:#dfe5f1;border-left:4px solid #7183a9}.calendar-event.blocked{background:#e6e4e3;border-left:4px solid #888}.calendar-entry-form{margin-top:16px;padding:16px;border:1px solid var(--mcy-line);border-radius:14px;background:#fbf8f5}.calendar-list{display:grid;gap:8px}.calendar-list-item{display:flex;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid var(--mcy-line);border-radius:12px;background:#fff;border-left-width:5px}.calendar-list-item.pending{border-left-color:#d79b3a}.calendar-list-item.confirmed{border-left-color:#5f8f78}.calendar-list-item.manual{border-left-color:#7183a9}.calendar-list-item.blocked{border-left-color:#888}
.inquiry-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.6fr);gap:14px;margin-top:12px}.inquiry-thread-list{display:grid;gap:7px;align-content:start}.inquiry-thread{display:grid;gap:3px;text-align:left;background:#fff;color:inherit;border:1px solid var(--mcy-line);border-radius:12px;padding:11px 12px}.inquiry-thread span,.inquiry-thread small{display:block;color:var(--mcy-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inquiry-detail{border:1px solid var(--mcy-line);border-radius:14px;padding:14px;background:#fcfaf8}.inquiry-messages{max-height:360px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:12px 2px;margin:8px 0}.inquiry-bubble{max-width:86%;padding:9px 11px;border-radius:13px;background:#eee8e4;align-self:flex-start}.inquiry-bubble.mine{background:#e4ede7;align-self:flex-end}.inquiry-bubble strong,.inquiry-bubble small{display:block;font-size:11px;color:var(--mcy-muted)}.inquiry-bubble div{white-space:pre-wrap;overflow-wrap:anywhere}.inquiry-reply{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.inquiry-reply textarea{margin:0}
@media(max-width:720px){.calendar-view-switch [data-calendar-view="week"]{display:none}.calendar-grid{grid-template-columns:56px minmax(230px,1fr);min-width:0}.calendar-times-body span{left:5px}.calendar-day:nth-of-type(n+3){display:none}.inquiry-layout{grid-template-columns:1fr}.inquiry-reply{grid-template-columns:1fr}.calendar-toolbar{align-items:flex-start}.calendar-list-item{flex-direction:column}}

/* STEP 042 — contacts + master confirmation workflow */
.booking-contact-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:8px;
  font-size:.9rem;
}
.booking-contact-row a {
  text-decoration:none;
}
.booking-contact-row span {
  color:var(--muted, #777);
}
.booking-confirm-panel {
  margin-top:12px;
  padding:12px;
  border:1px solid var(--border, #ddd);
  border-radius:12px;
  background:rgba(127,127,127,.045);
}
.booking-confirm-panel textarea {
  width:100%;
}
.booking-note {
  margin-top:8px;
}
.booking-private-note {
  margin-top:8px;
  padding:8px 10px;
  border-left:3px solid var(--border, #bbb);
  background:rgba(127,127,127,.05);
}
.booking-master-comment {
  margin-top:8px;
  padding:8px 10px;
  border-radius:8px;
  background:rgba(127,127,127,.06);
}
.auth-contact-grid {
  margin-top:6px;
}
@media (max-width: 720px) {
  .booking-confirm-panel .grid.two,
  .auth-contact-grid {
    grid-template-columns:1fr;
  }
}

/* STEP 043 — reviews + primary photo */
.photo-card {
  position: relative;
}
.photo-card.is-primary {
  outline: 2px solid #70564f;
  outline-offset: 2px;
}
.photo-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.photo-card-actions button {
  flex: 1 1 auto;
}
.photo-primary-badge {
  background: #70564f;
  color: #fff;
}

.master-review-card,
.client-review-item,
.profile-review-card {
  border-top: 1px solid #eee7e2;
  padding: 14px 0;
}
.master-review-card:first-child,
.client-review-item:first-child,
.profile-review-card:first-child {
  border-top: 0;
}

.master-review-stars,
.client-review-stars,
.profile-review-stars {
  letter-spacing: .08em;
  font-size: 20px;
  color: #8a6038;
  line-height: 1.2;
}
.client-review-stars {
  margin-top: 10px;
}
.master-review-comment,
.profile-review-card p {
  margin: 10px 0 0;
  line-height: 1.55;
}

.review-quality-row,
.profile-review-qualities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.review-quality-chip,
.profile-review-quality {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ded2c9;
  background: #f8f4f1;
  color: #574c47;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.review-editor {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e4dcd6;
}
.review-star-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.review-star-picker button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 11px;
  font-size: 23px;
  line-height: 1;
}
.review-star-picker button.is-selected {
  background: #70564f;
  color: #fff;
}
.review-quality-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px 14px;
  margin-top: 8px;
}
.review-quality-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
}
.review-quality-picker input {
  width: auto;
  flex: 0 0 auto;
}

.profile-rating-summary {
  font-weight: 700;
  color: #6f4f34;
}
.profile-reviews-grid {
  display: grid;
  gap: 0;
}
.profile-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .review-quality-picker {
    grid-template-columns: 1fr;
  }
  .photo-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
}


/* STEP 044 — explicit account/session state */
.account-session-card,
.account-role-warning {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.account-session-card strong,
.account-inline-summary strong {
  display:block;
  overflow-wrap:anywhere;
}
.account-inline-summary {
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--border, #d8dee8);
}
.account-inline-summary span {
  display:block;
  margin-top:3px;
}
.account-role-warning {
  border-style:dashed;
}
@media (max-width: 640px) {
  .account-session-card,
  .account-role-warning {
    align-items:flex-start;
  }
  .account-session-card .actions,
  .account-role-warning .actions {
    width:100%;
  }
}


/* STEP 045 — master workspace priority */
.master-welcome-actions {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.master-quick-nav {
  width:100%;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding-top:12px;
  margin-top:4px;
  border-top:1px solid rgba(120,140,165,.24);
}
.quick-nav-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 14px;
  border-radius:10px;
  text-decoration:none;
  font-weight:650;
  background:var(--accent, #79584c);
  color:#fff;
}
.quick-nav-link.secondary {
  background:transparent;
  color:inherit;
  border:1px solid rgba(120,140,165,.35);
}
.dashboard-section-label {
  margin:22px 2px 8px;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted, #68707b);
}
.dashboard-section-label.settings-label {
  margin-top:34px;
}
#master-bookings-card {
  border-width:1.5px;
}
#master-bookings-card #open-manual-calendar-entry {
  white-space:nowrap;
}
#master-bookings-card #manual-calendar-entry-form {
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(120,140,165,.25);
}
#master-clients-card {
  scroll-margin-top:18px;
}
#master-bookings-card,
#master-calendar-card,
#master-profile-card {
  scroll-margin-top:18px;
}
@media (max-width:640px) {
  .master-welcome-actions,
  .master-quick-nav {
    width:100%;
  }
  .quick-nav-link {
    flex:1 1 44%;
  }
}


/* STEP 046 — returning-client flow */
.topbar-primary-nav {
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.topbar-link {
  font-size:14px;
  font-weight:700;
  color:var(--mcy-accent);
  text-decoration:none;
  white-space:nowrap;
}
.topbar-link.is-active {
  text-decoration:underline;
  text-underline-offset:5px;
}
.client-intro-actions {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.client-empty-account {
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(300px,1.1fr);
  gap:26px;
  align-items:start;
}
.client-empty-account h2 { margin-bottom:8px; }
.client-quick-login { display:grid; gap:12px; }
.client-quick-login .auth-actions { margin-top:2px; }
.client-session-note { margin:0; max-width:620px; }
.client-empty-state {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  padding:16px 0 4px;
}
.client-booking-group + .client-booking-group {
  margin-top:24px;
  padding-top:22px;
  border-top:1px solid rgba(120,140,165,.22);
}
.client-booking-group-title {
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:10px;
}
.client-booking-group-title h3 { margin:0; }
.booking-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:rgba(120,140,165,.12);
}
.client-booking-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.client-booking-item + .client-booking-item { margin-top:10px; }

@media (max-width:700px) {
  .topbar-inner { align-items:flex-start; }
  .topbar-primary-nav { gap:11px; justify-content:flex-end; }
  .client-empty-account { grid-template-columns:1fr; gap:18px; }
  .client-intro-actions { width:100%; }
}
@media (max-width:430px) {
  .brand-text { max-width:118px; }
  .topbar-primary-nav { gap:9px; }
  .topbar-link { font-size:13px; }
}


/* STEP 047 — reputation where the client chooses */
.public-rating {
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:13px;
  font-weight:750;
  line-height:1.3;
  color:#7a5320;
  text-decoration:none;
}
.public-rating > span { color:#b77719; }
.public-rating-new {
  color:var(--muted, #68707b);
  font-weight:650;
}
.home-master-rating { min-height:21px; margin:2px 0 7px; }
.service-offer-rating { margin:-2px 0 7px; }
.profile-hero-rating { margin:6px 0 4px; }
.profile-hero-rating .public-rating { font-size:15px; }
.review-summary-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:16px 0 12px;
}
.review-summary-item {
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:12px;
  border:1px solid rgba(120,140,165,.22);
  border-radius:12px;
  background:rgba(255,255,255,.45);
}
.review-summary-item strong { font-size:1.25rem; }
.review-summary-item span {
  font-size:12px;
  color:var(--muted, #68707b);
}
.review-filter-bar {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 14px;
}
.master-review-card.is-new-review { border-left:3px solid currentColor; }
@media (max-width:700px) {
  .review-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* STEP 048 — search/filter/sort */
.catalog-price-range {
  display:inline-flex;
  align-items:center;
  margin:0 0 8px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(120,140,165,.10);
  font-size:12px;
  font-weight:750;
}
.catalog-filter-actions {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}
.catalog-reset-link {
  display:inline-flex;
  min-height:40px;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border:1px solid rgba(120,140,165,.28);
  border-radius:10px;
  text-decoration:none;
}
.category-filter-card {
  margin-bottom:22px;
}
.category-filter-card h3 {
  margin-bottom:0;
}
@media (max-width:700px) {
  .catalog-filter-actions > button,
  .catalog-filter-actions > a {
    flex:1 1 auto;
  }
}

/* STEP 049 — master CRM / full booking lifecycle */
.autocomplete-field { position: relative; }
.autocomplete-menu {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(120,140,165,.35);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(20,30,45,.14);
}
.autocomplete-menu button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(120,140,165,.15);
  border-radius: 0;
  background: #fff;
  color: inherit;
  text-align: left;
}
.autocomplete-menu button:hover { background: #f6f7f9; }
.autocomplete-menu button span { font-size: 12px; color: var(--muted, #68707b); }

.time-button-row { display: flex; gap: 8px; align-items: center; }
.time-picker-trigger { min-width: 82px; font-variant-numeric: tabular-nums; }
.time-picker-popover {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15,23,42,.36);
}
.time-picker-card {
  width: min(430px,100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 55px rgba(15,23,42,.22);
}
.time-picker-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 8px;
  margin-top: 14px;
}
.time-picker-grid button { min-height: 46px; padding: 8px 4px; }

.manual-email-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-weight: 650;
}
.manual-email-toggle input { width: auto; margin: 0; }
.manual-repeat-controls { margin-top: 16px; }

.booking-reschedule-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(120,140,165,.25);
  border-radius: 10px;
}
.booking-reschedule-panel summary { cursor: pointer; font-weight: 700; }
.booking-reschedule-panel[open] summary { margin-bottom: 12px; }
.is-focused-booking { outline: 3px solid rgba(181,119,25,.28); outline-offset: 3px; }
.master-review-card.is-focused-review { outline: 3px solid rgba(181,119,25,.28); outline-offset: 3px; }
.booking-note-label { margin-top: 12px; }
.booking-note-input { min-height: 66px; }
.booking-note-help { margin-top: 4px; }

@media(max-width:640px){
  .time-picker-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}


/* STEP 050 — master workspace UX */
#master-dashboard { padding-bottom: 30px; }
.master-workspace-nav {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  width:100%;
  padding-top:12px;
  border-top:1px solid rgba(120,140,165,.2);
}
.master-workspace-nav button,
.settings-tab-bar button {
  background:transparent;
  color:var(--text,#17202a);
  border:1px solid rgba(120,140,165,.24);
  box-shadow:none;
}
.master-workspace-nav button.is-active,
.settings-tab-bar button.is-active {
  background:var(--mcy-accent,#54433d);
  color:#fff;
  border-color:transparent;
}
.nav-count,.mobile-nav-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  margin-left:5px;
  font-size:11px;
  font-weight:800;
  background:#b42318;
  color:#fff;
}
.master-today-card { padding:20px; }
.master-today-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}
.master-today-head h2 { margin-bottom:3px; }
.master-today-actions { display:flex;gap:8px;flex-wrap:wrap; }
.today-kpi-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:18px 0 22px;
}
.today-kpi {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  min-height:82px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(120,140,165,.2);
  background:rgba(255,255,255,.6);
  color:inherit;
  box-shadow:none;
}
.today-kpi span { font-size:12px;color:var(--muted,#68707b); }
.today-kpi strong { font-size:1.55rem; }
.today-kpi.attention { border-color:rgba(181,71,8,.28);background:#fffaeb; }
.today-section + .today-section { margin-top:26px;padding-top:22px;border-top:1px solid rgba(120,140,165,.18); }
.today-section h3 { margin-bottom:0; }
.today-attention-row,
.today-schedule-row,
.today-upcoming-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid rgba(120,140,165,.15);
}
.today-attention-row:last-child,.today-schedule-row:last-child,.today-upcoming-row:last-child { border-bottom:0; }
.today-attention-row > div:first-child { display:grid;gap:4px;justify-items:start; }
.today-schedule-row { grid-template-columns:64px minmax(0,1fr) auto; }
.today-time { font-weight:800;font-variant-numeric:tabular-nums; }
.today-event-copy { display:flex;flex-direction:column;gap:2px; }
.today-event-copy span { font-size:12px;color:var(--muted,#68707b); }
.today-schedule-row.pending { border-left:3px solid #b54708;padding-left:10px; }
.today-schedule-row.confirmed { border-left:3px solid #067647;padding-left:10px; }
.today-schedule-row.manual_booking { border-left:3px solid #175cd3;padding-left:10px; }
.today-schedule-row.blocked_time { border-left:3px solid #667085;padding-left:10px; }
.today-empty { padding:16px;border:1px dashed rgba(120,140,165,.28);border-radius:10px;color:var(--muted,#68707b); }

/* STEP069C: Settings tabs remain in normal document flow. A tall sticky panel
   covered input fields and photo controls on desktop and mobile. */
.master-settings-nav { position:static;top:auto;z-index:auto; }
[data-master-view="settings"][data-settings-panel] { scroll-margin-top:86px; }
.settings-tab-bar { display:flex;gap:8px;flex-wrap:wrap; }

.master-drawer-backdrop {
  position:fixed;inset:0;z-index:800;background:rgba(15,23,42,.35);
}
.master-drawer {
  position:fixed!important;
  top:0;right:0;bottom:0;
  z-index:810;
  width:min(560px,96vw);
  overflow:auto;
  margin:0!important;
  padding:20px;
  border-radius:18px 0 0 18px;
  background:#fff;
  box-shadow:-18px 0 45px rgba(15,23,42,.18);
}
body.master-drawer-open { overflow:hidden; }

.booking-confirm-panel,.booking-reschedule-panel {
  margin-top:12px;
  padding:14px;
  border:1px solid rgba(120,140,165,.24);
  border-radius:12px;
  background:rgba(249,250,251,.7);
}
.booking-primary-actions { align-items:center; }
.client-safety-panel { margin-top:10px;padding:12px;border:1px solid rgba(120,140,165,.2);border-radius:10px; }
.compact-action { margin-top:10px; }

.master-mobile-nav,.master-more-sheet { display:none; }

@media(max-width:760px){
  body { padding-bottom:72px; }
  #master-dashboard { padding-bottom:84px; }
  .master-workspace-nav { display:none; }
  .dashboard-welcome { padding-bottom:12px; }
  .master-welcome-actions { width:100%; }
  .master-mobile-nav {
    position:fixed;
    left:0;right:0;bottom:0;
    z-index:600;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:0;
    min-height:64px;
    padding:6px max(6px,env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-right));
    background:rgba(255,255,255,.97);
    border-top:1px solid rgba(120,140,165,.22);
    box-shadow:0 -8px 28px rgba(15,23,42,.08);
  }
  .master-mobile-nav button {
    position:relative;
    min-width:0;
    padding:8px 3px;
    border:0;
    background:transparent;
    color:var(--muted,#68707b);
    font-size:11px;
    box-shadow:none;
  }
  .master-mobile-nav button.is-active { color:var(--mcy-accent,#54433d);font-weight:800; }
  .mobile-nav-count { position:absolute;top:2px;right:10%;margin:0; }
  .master-more-sheet {
    position:fixed;inset:0;z-index:900;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    padding:18px 10px calc(78px + env(safe-area-inset-bottom));
    background:rgba(15,23,42,.35);
  }
  .master-more-sheet.hidden { display:none!important; }
  .master-more-card {
    width:min(520px,100%);
    padding:16px;
    border-radius:16px;
    background:#fff;
    box-shadow:0 20px 50px rgba(15,23,42,.22);
  }
  .master-more-menu { display:grid;gap:8px;margin-top:12px; }
  .master-more-menu button,.master-more-menu a {
    display:flex;align-items:center;justify-content:space-between;
    min-height:48px;padding:10px 12px;
    border:1px solid rgba(120,140,165,.2);
    border-radius:10px;
    background:#fff;color:inherit;text-decoration:none;text-align:left;
  }
  body.master-more-open { overflow:hidden; }
  .today-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .today-schedule-row { grid-template-columns:54px minmax(0,1fr); }
  .today-schedule-row > button { grid-column:2;justify-self:start; }
  .today-attention-row,.today-upcoming-row { grid-template-columns:1fr; }
  .today-attention-row > button,.today-upcoming-row > button { justify-self:start; }
  .master-settings-nav { position:static;top:auto;z-index:auto; }
  .settings-tab-bar { overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px; }
  .settings-tab-bar button { white-space:nowrap; }
  .master-drawer {
    width:100vw;
    border-radius:0;
    padding:16px 14px calc(28px + env(safe-area-inset-bottom));
  }
}


/* STEP 051 — one appointment/client = one visual object */

/* Appointment groups */
.booking-day { margin-top:24px; }
.booking-day:first-child { margin-top:10px; }
.booking-day-title {
  margin:0 0 10px;
  padding:0 2px 9px;
  border-bottom:1px solid rgba(112,86,79,.18);
  font-size:1.05rem;
  font-weight:800;
  text-transform:capitalize;
  color:#3f3834;
}
.booking-day-cards { display:grid; gap:12px; }

/* Appointment card */
.master-booking-card {
  position:relative;
  margin:0;
  padding:16px 17px 14px;
  border:1px solid #e4ddd8 !important;
  border-left-width:5px !important;
  border-radius:14px;
  background:#fff;
  box-shadow:0 2px 8px rgba(56,43,36,.045);
}
.master-booking-card:first-child { border-top:1px solid #e4ddd8 !important; }
.master-booking-card.status-pending { border-left-color:#d59a34 !important; }
.master-booking-card.status-confirmed { border-left-color:#5d8c72 !important; }
.master-booking-card.status-completed { border-left-color:#8b827c !important; }
.master-booking-card.status-no_show { border-left-color:#b65b55 !important; }
.master-booking-card.status-cancelled {
  border-left-color:#b8afa9 !important;
  background:#fbfaf9;
}

.master-booking-head {
  display:grid;
  grid-template-columns:72px minmax(0,1fr) auto;
  gap:14px;
  align-items:start;
}
.master-booking-time {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:7px 9px;
  border-radius:10px;
  background:#f4efeb;
  font-size:1.08rem;
  font-weight:850;
  font-variant-numeric:tabular-nums;
  color:#332d2a;
}
.master-booking-main { min-width:0; }
.master-booking-client {
  display:block;
  margin:1px 0 3px;
  font-size:1.04rem;
  line-height:1.25;
  color:#211d1b;
  overflow-wrap:anywhere;
}
.master-booking-service {
  display:flex;
  flex-wrap:wrap;
  gap:5px 9px;
  color:#6d625c;
  font-size:.88rem;
}
.master-booking-service span + span::before {
  content:"·";
  margin-right:9px;
  color:#b0a6a0;
}

.status-badge {
  align-self:start;
  white-space:nowrap;
  border:1px solid transparent;
  font-weight:750;
}
.status-badge.warning {
  background:#fff4dc;
  color:#8a5a0a;
  border-color:#efd7a5;
}
.status-badge.ok {
  background:#edf6f0;
  color:#35664d;
  border-color:#cfe4d7;
}
.status-badge.muted {
  background:#f1efed;
  color:#6f6762;
  border-color:#e2ddda;
}

.master-booking-card .booking-contact-row {
  margin:12px 0 0 86px;
  gap:6px 8px;
}
.master-booking-card .booking-contact-row a,
.master-booking-card .booking-contact-row span {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 8px;
  border:1px solid #e8e1dc;
  border-radius:8px;
  background:#fbfaf9;
  color:#665a54;
  font-size:.82rem;
}

.master-booking-card .booking-note,
.master-booking-card .booking-private-note {
  margin:10px 0 0 86px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid transparent;
}
.master-booking-card .booking-note > span,
.master-booking-card .booking-private-note > span {
  display:block;
  margin-bottom:3px;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.master-booking-card .booking-note > div,
.master-booking-card .booking-private-note > div {
  line-height:1.4;
  overflow-wrap:anywhere;
}
.booking-note-client {
  background:#f8f5f1;
  border-color:#ebe2dc !important;
}
.booking-note-client > span { color:#7a6255; }
.booking-note-master {
  background:#f4f7f5;
  border-color:#dfe9e2 !important;
}
.booking-note-master > span { color:#4f755f; }
.master-booking-card .booking-private-note {
  border-left:3px solid #a59b95;
  background:#f5f4f3;
  color:#514a46;
}
.master-booking-card .booking-private-note > span { color:#756c67; }

.master-booking-card .booking-confirm-panel,
.master-booking-card .booking-reschedule-panel {
  margin-left:86px;
}
.booking-action-bar {
  margin:14px 0 0 86px !important;
  padding-top:12px;
  border-top:1px solid #eee8e4;
  gap:8px;
}
.booking-action-bar button { min-height:40px; }
.master-booking-card > .small.muted { margin-left:86px; }

/* Client list */
#master-clients {
  display:grid;
  gap:12px;
  margin-top:16px;
}
.master-client-card {
  margin:0;
  padding:16px 17px;
  border:1px solid #e4ddd8 !important;
  border-radius:14px;
  background:#fff;
  box-shadow:0 2px 8px rgba(56,43,36,.04);
}
.master-client-card:first-child { border-top:1px solid #e4ddd8 !important; }
.master-client-card-head {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:start;
}
.master-client-name-row {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.master-client-name {
  font-size:1.05rem;
  line-height:1.3;
  color:#211d1b;
  overflow-wrap:anywhere;
}
.client-kind-badge {
  background:#f4efeb;
  color:#6b5a51;
}
.master-client-contact {
  display:flex;
  flex-wrap:wrap;
  gap:5px 8px;
  margin-top:5px;
  color:#716862;
  font-size:.84rem;
}
.master-client-contact span + span::before {
  content:"·";
  margin-right:8px;
  color:#b5aca6;
}
.master-client-open {
  margin:0;
  min-width:92px;
}

.master-client-stats {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid #eee8e4;
}
.master-client-stats > div { min-width:0; }
.master-client-stats span {
  display:block;
  margin-bottom:2px;
  font-size:.72rem;
  color:#817771;
}
.master-client-stats strong {
  display:block;
  font-size:.9rem;
  font-weight:750;
  color:#423b37;
  overflow-wrap:anywhere;
}

/* Opened client history */
#master-client-history {
  display:grid;
  gap:10px;
}
.client-history-card {
  margin:0;
  padding:13px 14px;
  border:1px solid #e8e1dc !important;
  border-radius:12px;
  background:#fff;
}
.client-history-card:first-child { border-top:1px solid #e8e1dc !important; }
.client-history-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.client-history-meta {
  display:flex;
  flex-wrap:wrap;
  gap:7px 12px;
  margin-top:7px;
  font-size:.82rem;
  color:#716862;
}
.client-history-note {
  margin-top:9px;
  padding:8px 10px;
  border-radius:8px;
  background:#f7f5f3;
}
.client-history-note > span {
  display:block;
  margin-bottom:2px;
  font-size:.7rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:#7c716a;
}

@media(max-width:760px) {
  .master-booking-head {
    grid-template-columns:60px minmax(0,1fr);
  }
  .master-booking-head .status-badge {
    grid-column:2;
    justify-self:start;
  }
  .master-booking-time {
    grid-row:1 / span 2;
    min-height:40px;
  }
  .master-booking-card .booking-contact-row,
  .master-booking-card .booking-note,
  .master-booking-card .booking-private-note,
  .master-booking-card .booking-confirm-panel,
  .master-booking-card .booking-reschedule-panel,
  .booking-action-bar,
  .master-booking-card > .small.muted {
    margin-left:0 !important;
  }
  .booking-action-bar {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .booking-action-bar button { width:100%; }

  .master-client-card-head { grid-template-columns:1fr; }
  .master-client-open { width:100%; }
  .master-client-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* STEP 052 — client identity / editable account data */
.client-account-summary {
  align-items:center;
}
.client-account-identity {
  min-width:0;
}
.client-session-name {
  display:block;
  margin-top:2px;
  font-size:1.08rem;
  color:#211d1b;
  overflow-wrap:anywhere;
}
.client-account-actions {
  justify-content:flex-end;
}
.client-account-actions a.secondary {
  text-decoration:none;
}
.client-profile-card {
  scroll-margin-top:90px;
}
.client-profile-grid {
  margin-top:14px;
}
.client-identity-note {
  display:flex;
  flex-direction:column;
  gap:2px;
  margin-top:14px;
  padding:11px 12px;
  border:1px solid #e6ded9;
  border-radius:10px;
  background:#faf8f6;
  color:#514842;
}
.client-identity-note strong {
  font-size:.86rem;
}
.client-identity-note span {
  font-size:.8rem;
  color:#776d67;
}

@media(max-width:700px){
  .client-account-summary {
    align-items:flex-start;
  }
  .client-account-actions {
    width:100%;
  }
  .client-account-actions > * {
    flex:1 1 auto;
    text-align:center;
  }
}


/* STEP 055 — homepage carousel: full-size promotions, mobile swipe/tap */
.home-rotation-shell {
  min-width:0;
}
.home-rotation {
  position:relative;
  height:100%;
  min-height:390px;
  overflow:hidden;
  border:1px solid #e6ddd7;
  border-radius:24px;
  background:#fff;
  box-shadow:0 14px 35px rgba(71,52,43,.08);
  touch-action:pan-y;
}
.home-rotation-stage {
  height:100%;
  min-height:390px;
  will-change:transform,opacity;
}
.home-rotation-loading {
  min-height:390px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  color:#80736c;
}
.home-rotation-card {
  height:100%;
  min-height:390px;
  display:grid;
  grid-template-columns:minmax(145px,46%) minmax(0,1fr);
  overflow:hidden;
  background:#fff;
  cursor:pointer;
  outline:none;
}
.home-rotation-card:focus-visible {
  box-shadow:inset 0 0 0 3px rgba(112,82,69,.34);
}
.home-rotation-card.is-promotion {
  background:#fff;
  color:#2f2926;
}
.home-rotation-media {
  min-width:0;
  min-height:390px;
  overflow:hidden;
  background:#eee5df;
}
.home-rotation-media img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.home-rotation-placeholder {
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 30% 24%,#fff 0%,rgba(255,255,255,.2) 36%,transparent 37%),
    linear-gradient(145deg,#eadbd3,#cdb5a8);
}
.home-rotation-placeholder span {
  display:flex;
  width:82px;
  height:82px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.7);
  font-size:2rem;
  font-weight:850;
  color:#674f44;
}
.home-rotation-promo-media {
  background:#342b27;
}
.home-rotation-promo-art {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  isolation:isolate;
  color:#fff;
  background:
    radial-gradient(circle at 77% 22%,rgba(255,255,255,.20),transparent 26%),
    radial-gradient(circle at 18% 78%,rgba(255,255,255,.10),transparent 30%),
    linear-gradient(145deg,#5c453c 0%,#987667 100%);
}
.home-rotation-promo-art:before,
.home-rotation-promo-art:after {
  content:"";
  position:absolute;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  z-index:-1;
}
.home-rotation-promo-art:before {
  width:210px;
  height:210px;
  right:-76px;
  top:-66px;
}
.home-rotation-promo-art:after {
  width:150px;
  height:150px;
  left:-60px;
  bottom:-55px;
}
.home-rotation-promo-mark {
  display:flex;
  width:94px;
  height:94px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.36);
  border-radius:24px;
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(4px);
  font-size:2.25rem;
  font-weight:900;
  letter-spacing:-.05em;
}
.home-rotation-promo-art-copy {
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.18em;
  opacity:.75;
}
.home-rotation-copy {
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:28px 28px 26px;
}
.home-rotation-copy h3 {
  margin:10px 0 9px;
  font-size:clamp(1.45rem,2.35vw,2.15rem);
  line-height:1.04;
  letter-spacing:-.02em;
}
.home-rotation-copy p {
  margin:0;
  line-height:1.48;
  color:#776a64;
}
.home-rotation-card.is-promotion .home-rotation-copy p {
  color:#6d5f58;
}
.home-rotation-badge {
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#f4ece7;
  color:#775e52;
  font-size:.7rem;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.home-rotation-badge.is-ad {
  background:#efe4de;
  color:#76584c;
}
.home-rotation-meta {
  margin-top:15px;
  font-size:.88rem;
  font-weight:780;
  color:#514640;
}
.home-rotation-rating {
  margin-top:6px;
  font-size:.8rem;
  color:#85672e;
}
.home-rotation-openline {
  margin-top:auto;
  padding-top:19px;
  color:#73584c;
  font-size:.82rem;
  font-weight:820;
}
.home-rotation-openline > span {
  display:inline-block;
  margin-left:3px;
  transition:transform .18s ease;
}
.home-rotation-card:hover .home-rotation-openline > span,
.home-rotation-card:focus-visible .home-rotation-openline > span {
  transform:translateX(3px);
}
.home-rotation-openline.is-promotion {
  color:#684b3f;
}

/* Desktop only: arrows float over the card. There is no slide counter. */
.home-rotation-controls {
  position:absolute;
  inset:0;
  z-index:4;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 10px;
  pointer-events:none;
}
.home-rotation-arrow {
  pointer-events:auto;
  display:flex;
  width:38px;
  height:38px;
  min-height:38px;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid rgba(91,70,61,.12);
  border-radius:50%;
  background:rgba(255,253,251,.82);
  color:#604a40;
  box-shadow:0 5px 16px rgba(62,46,39,.12);
  backdrop-filter:blur(6px);
  opacity:.78;
  transition:opacity .16s ease, transform .16s ease;
}
.home-rotation:hover .home-rotation-arrow,
.home-rotation:focus-within .home-rotation-arrow {
  opacity:1;
}
.home-rotation-arrow:hover {
  transform:scale(1.05);
}

/* Explicitly remove the old finite-gallery counter everywhere. */
.home-rotation-counter {
  display:none !important;
}

@media(max-width:900px) {
  .home-rotation,
  .home-rotation-stage,
  .home-rotation-card,
  .home-rotation-loading {
    min-height:410px;
  }
  .home-rotation-card {
    grid-template-columns:minmax(135px,42%) minmax(0,1fr);
  }
  .home-rotation-media {
    min-height:410px;
  }
  .home-rotation-copy {
    padding:22px;
  }
}

@media(max-width:650px) {
  .home-rotation {
    min-height:520px;
    border-radius:22px;
  }
  .home-rotation-stage,
  .home-rotation-card,
  .home-rotation-loading {
    min-height:520px;
  }
  .home-rotation-card {
    grid-template-columns:1fr;
    grid-template-rows:minmax(285px,56%) minmax(220px,44%);
  }
  .home-rotation-media {
    min-height:285px;
    height:100%;
  }
  .home-rotation-copy {
    min-height:220px;
    padding:18px 20px 20px;
    justify-content:flex-start;
  }
  .home-rotation-copy h3 {
    margin-top:9px;
    font-size:clamp(1.6rem,7vw,2.05rem);
  }
  .home-rotation-copy p {
    font-size:.98rem;
  }
  .home-rotation-meta {
    margin-top:12px;
    font-size:.9rem;
  }
  .home-rotation-openline {
    padding-top:14px;
  }

  /* Mobile = pure gesture/tap UI: no arrows and no counter. */
  .home-rotation-controls {
    display:none;
  }
}

@media(prefers-reduced-motion:reduce) {
  .home-rotation-stage,
  .home-rotation-openline > span,
  .home-rotation-arrow {
    transition:none !important;
  }
}


/* STEP 053 — admin */
.myc-admin-body {
  background:#f6f2ef;
}
.admin-topbar {
  position:sticky;
  top:0;
  z-index:20;
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:10px max(20px,calc((100vw - 1180px)/2));
  border-bottom:1px solid #e7ded8;
  background:rgba(255,253,251,.96);
  backdrop-filter:blur(10px);
}
.admin-topbar > div {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}
.admin-shell {
  max-width:1180px;
  margin:0 auto;
  padding:28px 20px 70px;
}
.admin-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
}
.admin-heading h1 {
  margin:4px 0 6px;
}
.admin-check {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
}
.admin-check input {
  width:auto;
  margin:0;
}
.admin-check.compact {
  min-height:auto;
}
.admin-campaign-editor {
  margin:18px 0;
  padding:18px;
  border:1px solid #dfd4ce;
  border-radius:14px;
  background:#faf7f5;
}
.admin-span-2 {
  grid-column:1 / -1;
}
.admin-campaign-list {
  display:grid;
  gap:10px;
  margin-top:16px;
}
.admin-campaign-card {
  padding:14px;
  border:1px solid #e5ddd8;
  border-radius:13px;
  background:#fff;
}
.admin-campaign-card-head {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:start;
}
.admin-campaign-card-head strong {
  display:block;
  margin:7px 0 2px;
}
.admin-campaign-stats {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:13px;
  padding-top:12px;
  border-top:1px solid #eee7e2;
}
.admin-campaign-stats span {
  display:block;
  font-size:.7rem;
  color:#857871;
}
.admin-campaign-stats strong {
  font-size:.92rem;
}
.admin-master-list {
  display:grid;
  gap:8px;
  margin-top:14px;
}
.admin-master-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 150px auto;
  gap:14px;
  align-items:center;
  padding:11px 12px;
  border:1px solid #e8e0db;
  border-radius:11px;
  background:#fff;
}
.admin-master-weight {
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  font-size:.8rem;
  color:#766b64;
}
.admin-master-weight input {
  width:72px;
  margin:0;
}

@media(max-width:900px) {
  .home-rotation {
    min-height:300px;
  }
  .home-rotation-card {
    grid-template-columns:minmax(105px,38%) minmax(0,1fr);
  }
  .home-rotation-copy {
    padding:18px;
  }
  .admin-master-row {
    grid-template-columns:minmax(0,1fr) auto;
  }
  .admin-master-row .admin-master-weight {
    grid-column:1;
  }
}
@media(max-width:650px) {
  .home-rotation-card {
    grid-template-columns:1fr;
  }
  .home-rotation-media {
    min-height:150px;
    max-height:180px;
  }
  .home-rotation-copy {
    min-height:190px;
  }
  .admin-heading {
    flex-direction:column;
  }
  .admin-campaign-card-head {
    grid-template-columns:1fr;
  }
  .admin-campaign-stats {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .admin-master-row {
    grid-template-columns:1fr;
  }
  .admin-master-row .admin-master-weight {
    grid-column:auto;
  }
}


/* STEP 054 — central MYC admin */
.admin-app {
  max-width:1440px;
  margin:0 auto;
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:22px;
  padding:22px 20px 80px;
}
.admin-sidebar {
  position:sticky;
  top:92px;
  align-self:start;
  display:grid;
  gap:6px;
  padding:12px;
  border:1px solid #e6ddd7;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(71,52,43,.05);
}
.admin-sidebar .admin-nav {
  width:100%;
  min-height:42px;
  text-align:left;
  justify-content:flex-start;
  background:transparent;
  color:#544942;
  border:0;
  box-shadow:none;
}
.admin-sidebar .admin-nav.active {
  background:#f1e8e3;
  color:#4d372e;
}
.admin-sidebar-foot {
  margin-top:8px;
  padding:12px 8px 2px;
  border-top:1px solid #eee6e1;
  font-size:.8rem;
}
.admin-sidebar-foot a {
  color:#71584c;
}
.admin-main {
  min-width:0;
}
.admin-section {
  min-width:0;
}
.admin-kpi-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.admin-kpi {
  min-height:118px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:18px;
  border:1px solid #e6ddd7;
  border-radius:15px;
  background:#fff;
}
.admin-kpi span {
  color:#7e716a;
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.admin-kpi strong {
  margin:5px 0 2px;
  font-size:2rem;
  line-height:1;
}
.admin-kpi small {
  color:#8a7e77;
}
.admin-status-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.admin-status-grid > div {
  padding:12px;
  border:1px solid #eee6e1;
  border-radius:10px;
  background:#fbf8f6;
}
.admin-status-grid span {
  display:block;
  font-size:.72rem;
  color:#80736c;
}
.admin-status-grid strong {
  display:block;
  margin-top:3px;
  font-size:1.2rem;
}
.admin-audit-row {
  padding:10px 0;
  border-bottom:1px solid #eee7e2;
}
.admin-audit-row:last-child {
  border-bottom:0;
}
.admin-filterbar {
  display:grid;
  grid-template-columns:minmax(180px,1fr) repeat(3,minmax(140px,200px)) auto;
  gap:10px;
  align-items:end;
  margin-bottom:12px;
  padding:12px;
}
#section-clients .admin-filterbar,
#section-services .admin-filterbar {
  grid-template-columns:minmax(220px,1fr) minmax(150px,220px) auto;
}
#section-bookings .admin-filterbar {
  grid-template-columns:minmax(180px,240px) auto;
  justify-content:start;
}
.admin-filterbar input,
.admin-filterbar select,
.admin-filterbar button {
  margin:0;
}
.admin-entity-list {
  display:grid;
  gap:10px;
}
.admin-entity-card {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  padding:16px;
  border:1px solid #e6ddd7;
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 16px rgba(71,52,43,.03);
}
.admin-entity-title {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:5px;
}
.admin-entity-title strong {
  font-size:1.05rem;
}
.admin-mini-stats {
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:10px;
  font-size:.76rem;
  color:#7a6c65;
}
.admin-mini-stats strong {
  color:#4c403a;
}
.admin-entity-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}
.admin-entity-actions button,
.admin-entity-actions a {
  white-space:nowrap;
}
.admin-pager {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:18px 0 6px;
  font-size:.8rem;
  color:#756962;
}
.admin-mobile-nav {
  display:none;
}
.admin-topbar-user {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}
.admin-overview-lower {
  margin-bottom:16px;
}

@media(max-width:1050px) {
  .admin-app {
    grid-template-columns:180px minmax(0,1fr);
    gap:14px;
  }
  .admin-kpi-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .admin-filterbar,
  #section-clients .admin-filterbar,
  #section-services .admin-filterbar {
    grid-template-columns:1fr 1fr;
  }
  .admin-filterbar button {
    width:max-content;
  }
}

@media(max-width:760px) {
  .admin-app {
    display:block;
    padding:14px 12px 92px;
  }
  .admin-sidebar {
    display:none;
  }
  .admin-mobile-nav {
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:50;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:1px;
    padding:7px 6px max(7px,env(safe-area-inset-bottom));
    border-top:1px solid #ddd4cf;
    background:rgba(255,253,251,.97);
    backdrop-filter:blur(10px);
  }
  .admin-mobile-nav .admin-nav {
    min-width:0;
    min-height:44px;
    padding:6px 3px;
    background:transparent;
    color:#74675f;
    border:0;
    box-shadow:none;
    font-size:.7rem;
  }
  .admin-mobile-nav .admin-nav.active {
    background:#f0e7e2;
    color:#4b372e;
  }
  .admin-kpi-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .admin-kpi {
    min-height:100px;
    padding:14px;
  }
  .admin-kpi strong {
    font-size:1.65rem;
  }
  .admin-filterbar,
  #section-clients .admin-filterbar,
  #section-services .admin-filterbar,
  #section-bookings .admin-filterbar {
    grid-template-columns:1fr;
  }
  .admin-filterbar button {
    width:100%;
  }
  .admin-entity-card {
    grid-template-columns:1fr;
    gap:12px;
  }
  .admin-entity-actions {
    justify-content:flex-start;
  }
  .admin-pager {
    gap:8px;
    font-size:.7rem;
  }
  .admin-status-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:480px) {
  .admin-kpi-grid {
    grid-template-columns:1fr 1fr;
  }
  .admin-overview-lower {
    grid-template-columns:1fr;
  }
}

/* MYC STEP057: compact per-master reminder controls (client area only) */
.client-page .myc-reminder-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid rgba(128,128,128,.18);cursor:pointer}
.client-page .myc-reminder-choice input[type="checkbox"]{width:22px;height:22px;flex-shrink:0;cursor:pointer}

/* STEP057: master account email settings */
.master-account-email-settings{margin-top:20px;padding-top:16px;border-top:1px solid rgba(128,128,128,.24)}
.master-account-email-settings .row.actions{margin-top:12px}

/* STEP058 — explicit booking confirmation (client/profile). */
.booking-confirm-summary { margin:8px 0 12px; font-weight:700; }
.booking-confirm-panel .actions { margin-top:12px; }
.slot-button.is-selected { border-color:#70564f; background:#eee2dc; box-shadow:0 0 0 2px rgba(112,86,79,.12); }
.profile-booking-guest[hidden], .profile-booking-identity[hidden] { display:none; }


/* TEMP: Tallinn local time beside the MYC brand. No booking/server timezone changes. */
.myc-brand-clock{display:flex;align-items:center;gap:12px;min-width:0}
.myc-brand-clock .brand{flex-shrink:0}
.myc-tallinn-clock{display:inline-flex;align-items:baseline;gap:5px;white-space:nowrap;color:#735a52;font-size:12px;font-weight:700;letter-spacing:0}
.myc-tallinn-clock time{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;color:#443731}
.myc-tallinn-clock-label{font-size:11px;font-weight:600;color:#85736c}
.admin-topbar > .myc-brand-clock{display:flex;flex-direction:row;align-items:center;gap:12px}
@media(max-width:700px){
  .myc-clock-topbar .topbar-inner{flex-wrap:wrap;row-gap:8px}
  .myc-clock-topbar .topbar-primary-nav{justify-content:flex-start;width:100%}
  .myc-brand-clock{gap:9px}
  .myc-tallinn-clock{gap:4px}
}
@media(max-width:370px){
  .myc-tallinn-clock-label{display:none}
  .myc-tallinn-clock time{font-size:12px}
  .admin-topbar > .myc-brand-clock{gap:6px}
}

/* STEP059 — password recovery, accessible mobile layouts */
#client-recovery-modal .auth-modal { max-width: 480px; }
#client-recovery-modal .password-field { margin-bottom: 10px; }
#client-recovery-modal button:not(.password-toggle) { max-width: 100%; }
#master-recovery-card { max-width: 620px; }
#master-recovery-card .actions { flex-wrap: wrap; }
#master-recovery-card button:not(.password-toggle),
#client-recovery-modal button:not(.password-toggle) { min-height: 42px; }

/* STEP059 — compact 7-day mobile load overview and focused CRM client card */
.calendar-week-mobile{display:grid;gap:9px;}
.calendar-week-day{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px 12px;align-items:center;text-align:left;color:inherit;background:#fff;border:1px solid var(--mcy-line);border-radius:12px;padding:12px;min-height:74px;width:100%;}
.calendar-week-day.is-today{border-color:#886d5c;background:#fbf7f2;}
.calendar-week-date{font-weight:800;white-space:nowrap;}
.calendar-week-workload{text-align:right;font-size:.85em;}
.calendar-week-track{display:block;grid-column:1/-1;height:6px;background:#eee6e1;border-radius:9px;overflow:hidden;}
.calendar-week-track i{display:block;background:#5f8f78;height:100%;border-radius:9px;}
.calendar-week-labels{display:flex;flex-wrap:wrap;gap:5px 10px;grid-column:1/-1;color:#756b65;font-size:.72em;}
.calendar-week-labels .pending{color:#ad7522}.calendar-week-labels .confirmed{color:#438062}.calendar-week-labels .manual{color:#6476a3}.calendar-week-labels .blocked{color:#777}
.client-contact-actions{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:7px;overflow-wrap:anywhere;}
.client-contact-actions a{color:#735a52;text-decoration:underline;text-underline-offset:2px;}
#master-client-details{scroll-margin-top:112px;}
#master-client-details .row.actions{align-items:flex-start;}
@media(max-width:720px){
  .calendar-view-switch [data-calendar-view="week"]{display:inline-flex}
  #master-client-details .row.actions{display:flex;flex-direction:column-reverse;}
  #close-master-client-details{max-width:100%;}
}

/* STEP060: compact master inbox tabs (New / Open / Archive) */
.inquiry-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 4px}
.inquiry-tabs [data-inquiry-tab]{flex:1 1 100px;min-width:0;white-space:nowrap;padding:9px 8px}
.inquiry-tabs [data-inquiry-tab].active{border-color:var(--mcy-ink,#262626);background:var(--mcy-ink,#262626);color:#fff}
.inquiry-thread.active{border-color:var(--mcy-ink,#262626);background:#f5f2ee}
.inquiry-thread .unread-indicator{font-size:12px;font-weight:700;color:#8b3423}
@media(max-width:420px){.inquiry-tabs{gap:5px}.inquiry-tabs [data-inquiry-tab]{padding:8px 5px;font-size:13px}}

/* STEP061: one independent R2 cover per specialist service */
.myc-service-cover {display:block;width:100%;max-height:230px;aspect-ratio:16/10;object-fit:cover;border-radius:12px;background:#f2ece7;margin-bottom:10px;}
.myc-client-service-cover {max-width:200px;max-height:150px;aspect-ratio:4/3;}
.myc-profile-service-cover {width:145px;height:105px;object-fit:cover;grid-column:1/-1;margin:0;border-radius:10px;}
.myc-cover-editor {display:flex;gap:14px;flex-wrap:wrap;align-items:center;border-top:1px solid #eee4df;padding-top:12px;margin:12px 0;}
.myc-cover-editor .myc-service-cover {width:130px;height:98px;margin:0;}
.myc-cover-placeholder {width:130px;height:98px;display:grid;place-items:center;background:#f5f1ee;border-radius:10px;color:#706b66;font-size:12px;}
.myc-cover-editor-controls {display:flex;flex-wrap:wrap;gap:8px;align-items:center;flex:1;min-width:220px;}
.myc-cover-editor-controls input {max-width:100%;}
@media(max-width:650px){.myc-client-service-cover{max-width:100%;width:100%;}.myc-profile-service-cover{width:100%;height:auto;max-height:180px;}}


/* STEP063 — client cabinet information architecture */
.client-page .myc-client-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px;margin:6px 0 20px;border:1px solid #e7ddd6;border-radius:18px;background:#fff}
.client-page .myc-client-tab{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:50px;border-radius:12px;background:transparent;color:#655650;font-size:14px;font-weight:800;padding:10px 9px}
.client-page .myc-client-tab[aria-selected="true"]{background:#70564f;color:#fff}
.client-page .myc-client-tab:focus-visible,.client-page .myc-client-accordion summary:focus-visible,.client-page .myc-master-reminder-item summary:focus-visible{outline:3px solid #bf977e;outline-offset:2px}
.client-page .myc-client-tab span:last-child{min-width:0;overflow-wrap:break-word}
.client-page .myc-client-panel{min-width:0}
.client-page .myc-client-accordion{border:1px solid #e5dad3;border-radius:16px;background:#fff;margin:0 0 14px;overflow:hidden}
.client-page .myc-client-accordion>summary{cursor:pointer;display:flex;flex-direction:column;gap:4px;padding:17px 20px;position:relative;padding-right:48px;list-style:none}
.client-page .myc-client-accordion>summary::-webkit-details-marker{display:none}
.client-page .myc-client-accordion>summary::after{content:'⌄';position:absolute;right:19px;top:16px;font-size:23px;line-height:1;transition:transform .15s;color:#7d6b62}
.client-page .myc-client-accordion[open]>summary::after{transform:rotate(180deg)}
.client-page .myc-accordion-title{font-size:18px;font-weight:800;color:#322823}
.client-page .myc-accordion-hint{font-size:13px;color:#776b64}
.client-page .myc-client-accordion>.card{border:0;border-top:1px solid #ede4df;box-shadow:none;border-radius:0;margin:0}
.client-page .myc-client-questions{margin-top:14px}
.client-page .myc-master-reminder-item{border:1px solid #e9e0d9;background:#fff;border-radius:12px;margin:10px 0;overflow:hidden}
.client-page .myc-master-reminder-item>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;font-size:14px}
.client-page .myc-master-reminder-item>summary strong{overflow-wrap:anywhere}
.client-page .myc-reminder-state{font-size:12px;font-weight:800;color:#6e574f;background:#f2ebe5;padding:5px 9px;border-radius:999px;flex-shrink:0}
.client-page .myc-master-reminder-item>.myc-reminder-choice{padding:14px 15px;border-top:1px solid #e9e0d9;margin:0}
.client-page .myc-master-reminder-item>p{padding:0 15px 14px;margin:0}
@media (max-width:640px){
  .client-page{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
  .client-page .myc-client-tabs:not(.hidden){position:fixed;left:0;right:0;bottom:0;z-index:70;margin:0;border-radius:17px 17px 0 0;border-left:0;border-right:0;border-bottom:0;box-shadow:0 -7px 24px rgba(50,36,29,.12);padding:8px 9px calc(8px + env(safe-area-inset-bottom,0px));gap:4px}
  .client-page .myc-client-tab{min-height:53px;flex-direction:column;gap:2px;font-size:11px;padding:5px 2px;line-height:1.25}
  .client-page .myc-client-tab span:first-child{font-size:18px}
  .client-page .client-intro h1{font-size:31px}
  .client-page .myc-client-accordion>summary{padding:16px 44px 16px 15px}
  .client-page .myc-client-accordion>.card{padding:15px 13px}
}

/* STEP064 — work content first, no repeated welcome card on every master tab. */
.master-workspace-navigation { margin:0 0 12px; }
.master-workspace-navigation .master-workspace-nav { padding:4px 0 8px; border-top:0; }
@media (max-width:760px) { .master-workspace-navigation { display:none; } }

/* STEP066 – compact mobile-friendly calendar subscription controls */
.master-ics-controls {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0;}
.master-ics-link-panel {margin-top:14px;padding:14px;border-radius:10px;background:#faf7f4;border:1px solid #e4dcd6;}
.master-ics-link-panel input {font-size:14px;width:100%;} 
.master-ics-controls .button-like {display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid #bda9a0;border-radius:8px;color:#6e4f45;background:#fff;text-decoration:none;min-height:42px;}
@media (max-width:600px){.master-ics-controls>*{flex:1 1 100%;text-align:center;}.settings-tab-bar{flex-wrap:wrap;}}

/* STEP067 — central admin review screens; mobile-friendly, no extra tables overflow. */
.admin-ops-filter {grid-template-columns: minmax(0,1fr) auto;}
.admin-inquiry-detail {margin-top:18px;scroll-margin-top:20px;}
.admin-inquiry-messages {display:flex;flex-direction:column;gap:10px;max-height:560px;overflow-y:auto;}
.admin-chat-message {border:1px solid var(--line, #eee5df);border-radius:12px;padding:12px;background:var(--surface, #fff);}
.admin-chat-body {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;}
@media (max-width: 800px) {
  .admin-mobile-nav {display:flex;overflow-x:auto;justify-content:flex-start;gap:4px;scrollbar-width:thin;}
  .admin-mobile-nav .admin-nav {flex:0 0 auto;min-width:72px;white-space:nowrap;}
  .admin-ops-filter {grid-template-columns:minmax(0,1fr);}
}

/* STEP068 — unified master service editor and date-first public booking. */
.myc-services-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px;flex-wrap:wrap}
.myc-services-header h2{margin:0}
.myc-services-header p{margin:5px 0 0}
.myc-service-list-item{display:grid;grid-template-columns:86px minmax(0,1fr) auto;gap:16px;align-items:center;padding:15px 0;border-bottom:1px solid #e8dfd9}
.myc-service-list-item:last-child{border-bottom:0}
.myc-service-thumbnail{width:86px;height:86px;border-radius:13px;background:#f2ece7;display:grid;place-items:center;overflow:hidden;color:#85766e;font-size:12px;text-align:center}
.myc-service-thumbnail img{width:100%;height:100%;object-fit:cover}
.myc-service-list-info{min-width:0;display:grid;gap:3px}
.myc-service-list-info strong{overflow-wrap:anywhere}
.myc-service-list-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.myc-service-list-actions button{min-height:40px}
.myc-service-dialog{position:fixed;inset:0;z-index:1600;background:rgba(30,23,19,.65);padding:20px;display:grid;place-items:center}
.myc-service-dialog[hidden]{display:none}
.myc-service-dialog-card{position:relative;background:var(--card,#fff);color:var(--text,#2c2826);border-radius:18px;width:min(680px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;padding:26px;box-shadow:0 20px 70px rgba(0,0,0,.25)}
.myc-service-dialog-card h2{margin:0 40px 8px 0}
.myc-service-dialog-card form{display:grid;gap:6px}
.myc-service-dialog-card .grid{gap:10px}
.myc-service-dialog-card label{margin-top:8px}
.myc-service-dialog-close{position:absolute;right:16px;top:16px;border-radius:50%;width:42px;height:42px;padding:0;background:#efe7e1;color:#493b36;font-size:24px}
.myc-service-form-photo-preview{border:1px dashed #cfc0b6;border-radius:12px;min-height:70px;display:flex;align-items:center;gap:12px;padding:10px}
.myc-service-form-photo-preview img{width:100px;max-height:95px;object-fit:cover;border-radius:9px}
body.myc-service-dialog-open{overflow:hidden}
.myc-booking-calendar{border:1px solid #e4d9d2;border-radius:14px;padding:12px}
.myc-booking-calendar-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.myc-booking-calendar-bar strong{text-align:center;text-transform:capitalize}
.myc-booking-calendar-bar button{width:40px;height:40px;min-width:40px;padding:0;font-size:25px;line-height:1}
.myc-booking-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.myc-booking-weekday{font-size:12px;text-align:center;color:#7c7068;padding:5px 0;font-weight:700}
.myc-booking-date{font:inherit;min-height:44px;min-width:0;padding:5px 1px;border-radius:9px;border:1px solid #b8a397;background:#f8f2ed;color:#493b35;cursor:pointer}
.myc-booking-date:not(:disabled):hover{background:#e7d8d1}
.myc-booking-date.is-selected{background:#755a51;color:white;border-color:#755a51}
.myc-booking-date:disabled{background:#faf9f7;color:#bab2ad;border:1px solid transparent;cursor:default}
.myc-booking-no-availability{background:#f7f0ea;border-radius:12px;padding:14px}
.myc-booking-no-availability[hidden],#myc-booking-slots-title[hidden]{display:none}
.myc-booking-no-availability p{margin:0 0 10px}
.myc-booking-no-availability .actions{display:flex;gap:8px;flex-wrap:wrap}
.myc-booking-no-availability a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border-radius:10px;text-decoration:none}
#myc-booking-slots-title{font-weight:700;margin:12px 0 4px}
@media(max-width:720px){
  .myc-service-list-item{grid-template-columns:70px minmax(0,1fr);gap:10px}
  .myc-service-thumbnail{height:70px;width:70px}
  .myc-service-list-actions{grid-column:1/-1;justify-content:flex-start}
  .myc-service-dialog{padding:8px}
  .myc-service-dialog-card{max-height:calc(100dvh - 16px);padding:18px}
  .myc-service-dialog-card .grid.three{grid-template-columns:1fr 1fr}
  .myc-booking-calendar{padding:8px}
  .myc-booking-calendar-days{gap:3px}
  .myc-booking-date{min-height:40px}
}

/* STEP069B: cohesive master profile & three homepage discovery routes */
.profile-photo-section {
  border:1px solid rgba(120,140,165,.24);
  border-radius:16px;
  padding:16px;
  margin:16px 0 24px;
  background:#fdfaf8;
}
.profile-photo-section h3 { margin:0 0 8px; }
.profile-photo-section .photo-grid {margin-top:14px;}
.profile-photo-section #master-photo-input {max-width:100%;}
.home-discovery-tabs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:23px 0 4px; }
.home-discovery-tabs button { min-width:0;background:#fff;color:#5a4943;border:1px solid #d9cbc3;border-radius:13px;padding:13px 8px;font-weight:750;box-shadow:none; }
.home-discovery-tabs button.is-active { background:#70564f;color:#fff;border-color:#70564f; }
.home-discovery-tabs button:focus-visible { outline:3px solid #c39d82;outline-offset:2px; }
.home-discovery-panel {scroll-margin-top:95px;}
.home-discovery-service-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;}
.home-discovery-service-grid .service-item {margin:0;min-width:0;}
.home-discovery-service-grid .myc-service-cover {width:100%;max-height:190px;object-fit:cover;border-radius:10px;}
@media (max-width:950px){.home-discovery-service-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:640px){
 .home-discovery-service-grid{grid-template-columns:1fr;}
 .home-discovery-tabs{gap:5px;}
 .home-discovery-tabs button{padding:12px 5px;font-size:13px;}
 .profile-photo-section{padding:13px;margin:14px 0 22px;}
}

/* STEP069C: Less vertical overhead in settings on narrow screens. */
@media (max-width:760px) {
  #master-settings-nav { padding:14px 16px; }
  #master-settings-nav .section-heading-row { margin:0 0 10px; }
  #master-settings-nav .section-kicker,
  #master-settings-nav .section-heading-row .muted { display:none; }
  #master-settings-nav h2 { margin:0; font-size:clamp(21px,6vw,27px); line-height:1.16; }
  #master-settings-nav .settings-tab-bar { gap:6px; flex-wrap:wrap; overflow-x:visible; padding-bottom:0; }
  #master-settings-nav .settings-tab-bar button { white-space:normal; padding:10px 12px; min-height:42px; }
  [data-master-view="settings"][data-settings-panel] { scroll-margin-top:72px; }
}



/* Public introduction on /pro/; keeps the existing login and authenticated workspace intact. */
.myc-pro-guide{width:min(1100px,calc(100% - 30px));margin:48px auto 90px}
body:has(#master-dashboard:not(.hidden)) .myc-pro-guide{display:none}
.myc-pro-guide-hero{background:linear-gradient(135deg,#ecf4ef,#f6eee6);border:1px solid #dce9df;border-radius:26px;padding:clamp(26px,5vw,56px)}
.myc-pro-eyebrow{font-size:.74rem;text-transform:uppercase;letter-spacing:.11em;color:#327b69;font-weight:800}
.myc-pro-guide h2,.myc-pro-guide h3{letter-spacing:-.025em;line-height:1.2}
.myc-pro-guide-hero h2{font-size:clamp(1.8rem,4vw,3.3rem);max-width:740px;margin:10px 0}
.myc-pro-guide-hero>p:not(.myc-pro-eyebrow){max-width:730px;line-height:1.7}
.myc-pro-guide-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}
.myc-pro-guide a.myc-pro-guide-primary,.myc-pro-guide a.myc-pro-guide-outline,.myc-demo-wrap a.myc-pro-guide-primary{display:inline-flex;text-decoration:none;padding:13px 18px;border-radius:12px;font-weight:800;align-items:center;justify-content:center}
.myc-pro-guide-primary{background:#1a5246;color:#fff!important}.myc-pro-guide-outline{background:white;border:1px solid #aecabd;color:#285c4e}
.myc-pro-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:25px 0 46px}
.myc-pro-benefits article{background:#fff;border:1px solid #e0e5e5;border-radius:19px;padding:24px}
.myc-pro-benefits article>span{font-size:1.7rem}.myc-pro-benefits h3{font-size:1.15rem;margin:10px 0}
.myc-pro-benefits p,.myc-pro-example p,.myc-pro-tip-grid p{font-size:.92rem;color:#596669;line-height:1.68}
.myc-pro-how,.myc-pro-tips{margin:48px 0}.myc-pro-how h3,.myc-pro-example h3,.myc-pro-tips h3{font-size:clamp(1.4rem,2.5vw,2rem);margin:8px 0 20px}
.myc-pro-how ol{list-style:none;counter-reset:prostep;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:0}
.myc-pro-how li{counter-increment:prostep;display:flex;flex-direction:column;gap:7px;padding:20px 20px 20px 65px;border:1px solid #e0e5e5;border-radius:15px;background:white;position:relative}
.myc-pro-how li:before{content:counter(prostep,decimal-leading-zero);position:absolute;left:20px;top:16px;font-size:1.27rem;color:#31775f;font-weight:900}
.myc-pro-how li span{font-size:.9rem;color:#596669;line-height:1.6}
.myc-pro-example{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:28px;background:#f2f6f3;border-radius:23px;padding:28px}
.myc-pro-example-image{display:flex;align-items:center;gap:16px;padding:16px;border-radius:16px;background:white;border:1px solid #dce4de;text-decoration:none}
.myc-pro-mini-photo{width:115px;aspect-ratio:4/5;flex:none;border-radius:13px;background:#e8ddd1 url('/demo/photo-sprite.webp') 33.333% 100% / 400% 300% no-repeat}
.myc-pro-mini-info{display:grid;gap:7px;font-size:.88rem}.myc-pro-mini-info span{color:#5b6765}.myc-pro-mini-info b{color:#216d59}
.myc-pro-tip-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.myc-pro-tip-grid p{background:white;border:1px solid #e0e5e5;border-radius:15px;padding:20px}
.myc-pro-guide-end{border-top:1px solid #e0e5e5;text-align:center;padding:28px}.myc-pro-guide-end strong{font-size:1.25rem}
.myc-pro-guide-end a{color:#23725f;font-weight:800}
@media(max-width:850px){.myc-pro-benefits{grid-template-columns:repeat(2,1fr)}.myc-pro-example{grid-template-columns:1fr}}
@media(max-width:610px){.myc-pro-guide{width:calc(100% - 22px);margin:32px auto 65px}.myc-pro-benefits,.myc-pro-how ol,.myc-pro-tip-grid{grid-template-columns:1fr}.myc-pro-example{padding:20px}.myc-pro-example-image{gap:10px}.myc-pro-mini-photo{width:90px}}
/* Contact action uses an anchor but inherits service-button styling. */
.profile-contact-cta{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}


/* Standalone noindex illustrative specialist profile. Real profiles still use SSR in worker.js. */
.myc-demo-body{background:#f8faf9}
.myc-demo-wrap{width:min(1130px,calc(100% - 30px));margin:26px auto 80px}
.myc-demo-warning{background:#fff6e1;border:1px solid #e6d19c;border-radius:13px;padding:13px 17px;font-size:.85rem;line-height:1.5}
.myc-demo-breadcrumb{font-size:.85rem;color:#596b65;margin:20px 0}.myc-demo-breadcrumb a{color:#296f5c}
.myc-demo-hero{display:grid;grid-template-columns:250px 1fr;align-items:center;gap:30px;background:#fff;border:1px solid #e1e9e5;border-radius:22px;padding:24px}
.myc-demo-portrait{height:275px;border-radius:16px}
.myc-demo-hero h1{font-size:clamp(2rem,4vw,3rem);margin:8px 0}.myc-demo-hero p{color:#596660;line-height:1.65;max-width:680px}
.myc-demo-tags,.myc-demo-contacts{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.myc-demo-tags span,.myc-demo-contacts span{padding:8px 11px;border-radius:10px;border:1px solid #dfe8e2;background:#f4f8f5;font-size:.84rem}
.myc-demo-contacts span{background:#fff;font-weight:700}
.myc-demo-fine{font-size:.81rem;color:#66736d;line-height:1.6}
.myc-demo-tile{background:#e0d7cd url('/demo/photo-sprite.webp') center / 400% 300% no-repeat}
.myc-demo-tile.tile-0{background-position:0% 0%}
.myc-demo-tile.tile-1{background-position:33.333% 0%}
.myc-demo-tile.tile-2{background-position:66.666% 0%}
.myc-demo-tile.tile-3{background-position:100% 0%}
.myc-demo-tile.tile-4{background-position:0% 50%}
.myc-demo-tile.tile-5{background-position:33.333% 50%}
.myc-demo-tile.tile-6{background-position:66.666% 50%}
.myc-demo-tile.tile-7{background-position:100% 50%}
.myc-demo-tile.tile-8{background-position:0% 100%}
.myc-demo-tile.tile-9{background-position:33.333% 100%}
.myc-demo-tile.tile-10{background-position:66.666% 100%}
.myc-demo-tile.tile-11{background-position:100% 100%}
.myc-demo-state{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:space-between;margin:30px 0;padding:22px;background:#ebf5ef;border:1px solid #d2e8dc;border-radius:18px}
.myc-demo-state>div:first-child{max-width:530px}.myc-demo-state h2{font-size:1.5rem;margin:0 0 8px}
.myc-demo-state p{font-size:.92rem;color:#596761;margin:0}
.myc-demo-segments{display:flex;background:#fff;border:1px solid #d2e0d6;padding:4px;border-radius:12px;gap:4px}
.myc-demo-segments button{background:transparent;color:#314c3f;border:0;border-radius:9px;padding:11px 13px;font-weight:800;cursor:pointer}
.myc-demo-segments button[aria-pressed=true]{background:#1a594a;color:#fff}
#myc-demo-schedule-caption{flex-basis:100%}
.myc-demo-portfolio{margin:40px 0}.myc-demo-portfolio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.myc-demo-portfolio-grid>div{height:190px;border-radius:15px}
.myc-demo-list{margin:36px 0}.myc-demo-list h2{font-size:1.7rem;margin:0}
.myc-demo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.myc-demo-service{background:#fff;border:1px solid #e1e6e3;border-radius:18px;overflow:hidden}
.myc-demo-photo{height:185px;width:100%}.myc-demo-service-content{padding:18px}
.myc-demo-service-content small{font-size:.78rem;color:#2f765e;font-weight:800}
.myc-demo-service h3{font-size:1.17rem;margin:7px 0 10px}
.myc-demo-service p{font-size:.87rem;color:#5b6862;line-height:1.55}
.myc-demo-pricing{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:14px 0}
.myc-demo-pricing span{color:#62706a;font-size:.85rem}
.myc-demo-online-action,.myc-demo-contact-action{padding:11px 12px;border-radius:9px;text-align:center;font-size:.91rem;font-weight:800;border:1px solid #2b765b}
.myc-demo-online-action{background:#2b765b;color:#fff}
.myc-demo-contact-action{background:#fff;color:#25654e}
.myc-demo-no-schedule .myc-demo-online-action{display:none}
.myc-demo-no-schedule .myc-demo-contact-action[hidden]{display:block}
.myc-demo-footer{margin-top:48px;text-align:center;background:#eef6f0;border-radius:19px;padding:30px}
.myc-demo-footer p{color:#5a6760;margin-bottom:25px}
@media(max-width:850px){.myc-demo-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:610px){.myc-demo-hero,.myc-demo-grid{grid-template-columns:1fr}.myc-demo-portrait{height:290px}.myc-demo-portfolio-grid>div{height:115px}.myc-demo-state{align-items:stretch;flex-direction:column}.myc-demo-segments{width:100%}.myc-demo-segments button{flex:1}}

/* Direct contact stays available alongside optional booking on every public service. */
.profile-service-actions .profile-direct-link,.profile-booking-note .profile-direct-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;min-height:41px;border:1px solid var(--line,#d7e2dd);border-radius:10px;background:#fff;color:#245d4e;font-size:.88rem;font-weight:750;text-decoration:none;white-space:nowrap}
.profile-service-actions .profile-direct-link:hover,.profile-booking-note .profile-direct-link:hover{background:#eff5f1}
.myc-demo-always-contacts{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 0}
.myc-demo-always-contacts span{font-size:.8rem;font-weight:700;padding:8px 9px;border:1px solid #d0ddd5;border-radius:8px;background:#fff;color:#255c4a}
.myc-demo-no-schedule .myc-demo-contact-action[hidden]{display:block}
@media(max-width:610px){.profile-service-actions{flex-wrap:wrap}.profile-service-actions .profile-direct-link{flex:1 1 auto}.myc-demo-always-contacts span{flex:1 1 auto;text-align:center}}


/* Screenshots captured from public demo UI; never use real client account records. */
.myc-pro-screenshots{margin:38px 0 48px}
.myc-pro-screenshots h3{font-size:clamp(1.4rem,2.5vw,2rem);margin:10px 0 10px}
.myc-pro-screenshots-intro{max-width:800px;color:#596669;line-height:1.7;font-size:.94rem;margin-bottom:19px}
.myc-pro-screenshots-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.myc-pro-screenshot{margin:0;min-width:0;background:#fff;border:1px solid #dfe9e4;border-radius:17px;overflow:hidden}
.myc-pro-screenshot>a{display:flex;justify-content:center;align-items:flex-start;height:245px;overflow:hidden;background:#edf3f0;text-decoration:none}
.myc-pro-screenshot-wide>a{height:265px}
.myc-pro-screenshot img{height:100%;max-width:100%;object-fit:contain;object-position:center top}
.myc-pro-screenshot figcaption{padding:17px 19px;display:grid;gap:5px}
.myc-pro-screenshot figcaption strong{font-size:.97rem}
.myc-pro-screenshot figcaption span{color:#586962;font-size:.87rem;line-height:1.5}
.myc-pro-screenshots-cta{margin-top:17px}
.myc-pro-screenshots-cta a{color:#276951;font-weight:800;text-decoration:underline;text-underline-offset:3px}
@media(max-width:610px){.myc-pro-screenshots-grid{grid-template-columns:1fr}.myc-pro-screenshot>a{height:230px}.myc-pro-screenshot-wide>a{height:240px}}

/* Dedicated explanation of how the independent MYC website complements the Tallinn Facebook community. */
.myc-pro-facebook{padding:clamp(23px,4vw,36px);border-radius:23px;background:#f4f7f5;border:1px solid #dce8e1;margin:30px 0 38px}
.myc-pro-facebook-heading h3{font-size:clamp(1.35rem,2.7vw,2rem);margin:8px 0 16px}
.myc-pro-facebook>p{max-width:930px;font-size:.95rem;line-height:1.77;color:#485d54;margin:0 0 14px}
.myc-pro-facebook>p.myc-pro-facebook-summary{border-top:1px solid #dce8e1;margin:18px 0 0;padding-top:18px;color:#245b49}
@media(max-width:610px){.myc-pro-facebook{margin:23px 0 32px;padding:20px}.myc-pro-facebook>p{font-size:.92rem}}

/* Keep homepage discovery controls adjacent to the content they switch. */
.home-featured{margin:20px 0 16px}
.home-featured .home-rotation,.home-featured .home-rotation-stage,.home-featured .home-rotation-card,.home-featured .home-rotation-loading{height:240px;min-height:0}
.home-featured .home-rotation-card{grid-template-columns:minmax(160px,34%) minmax(0,1fr);grid-template-rows:1fr}
.home-featured .home-rotation-media{height:240px;min-height:0;max-height:none}
.home-featured .home-rotation-copy{min-height:0;padding:20px 28px}
.home-featured .home-rotation-copy h3{font-size:28px;margin:8px 0}
.home-featured .home-rotation-copy p,.home-featured .home-rotation-meta{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.home-featured .home-rotation-meta{margin-top:8px}
.home-featured .home-rotation-openline{padding-top:10px}
.home-discovery-controls{position:sticky;top:var(--myc-home-header-height,80px);z-index:40;background:#f8f4f1;padding:10px 0 12px;border-bottom:1px solid var(--mcy-line)}
.home-discovery-controls .home-discovery-tabs{margin:0 0 8px}
.home-discovery-controls .home-search{display:flex;flex-direction:row;gap:8px;max-width:none;margin:0}
.home-discovery-controls .home-search input{flex:1;min-width:0}
.home-discovery-controls .home-search button{flex:0 0 auto;width:auto;min-height:44px}
.home-discovery-controls .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.home-page .home-discovery-panel{scroll-margin-top:calc(var(--myc-home-header-height,80px) + var(--myc-home-controls-height,120px) + 12px)}
@media(max-width:650px){
 .home-featured{margin:12px 0 8px}
 .home-featured .home-rotation{border-radius:16px}
 .home-featured .home-rotation,.home-featured .home-rotation-stage,.home-featured .home-rotation-card,.home-featured .home-rotation-loading{height:240px;min-height:0}
 .home-featured .home-rotation-card{grid-template-columns:minmax(100px,34%) minmax(0,1fr);grid-template-rows:1fr}
 .home-featured .home-rotation-media{height:240px;min-height:0;max-height:none}
 .home-featured .home-rotation-copy{padding:12px 14px;min-height:0}
 .home-featured .home-rotation-copy h3{font-size:21px;line-height:1.1;margin:6px 0;overflow-wrap:anywhere}
 .home-featured .home-rotation-copy p{font-size:12px;line-height:1.35}
 .home-featured .home-rotation-badge{font-size:9px;padding:4px 7px}
 .home-featured .home-rotation-meta{font-size:12px;line-height:1.3;margin-top:6px}
 .home-featured .home-rotation-rating{font-size:11px;margin-top:4px}
 .home-featured .home-rotation-openline{font-size:12px;padding-top:6px}
 .home-featured .home-rotation-promo-mark{width:60px;height:60px;font-size:24px}
 .home-featured .home-rotation-promo-art-copy{font-size:8px;letter-spacing:.08em}
 .home-discovery-controls{padding:8px 0 10px}
 .home-discovery-controls .home-discovery-tabs button{padding:11px 3px;font-size:12px;min-height:44px}
 .home-discovery-controls .home-search input{font-size:16px;padding:10px}
 .home-discovery-controls .home-search button{padding:10px 13px;font-size:14px}
}


/* Launch-stage fictional profile examples: never styled as bookable professionals */
.demo-profile-card{background:#fff;border:1px solid #e8ddd7;border-radius:19px;overflow:hidden;box-shadow:0 7px 22px rgba(60,40,40,.05);min-width:0}
.demo-profile-card .demo-cover{display:block;width:100%;aspect-ratio:1.65;background-color:#e3d7d0}
.demo-profile-card .demo-copy{padding:16px}
.demo-profile-card .demo-mark{display:inline-block;border-radius:40px;padding:5px 9px;background:#f1e0d9;color:#73483e;font-size:10px;font-weight:850;letter-spacing:.035em}
.demo-profile-card .demo-kicker{font-size:12px;color:#78645c;margin:12px 0 5px}
.demo-profile-card h3{margin:0;font-size:20px;line-height:1.3;overflow-wrap:anywhere}
.demo-profile-card .demo-copy p{font-size:14px;color:#716a63;margin:10px 0}
.demo-profile-card .demo-see{display:inline-block;margin-top:5px;font-weight:700;text-decoration:underline}
