.booking-chat {
  color-scheme: light;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto auto;
  color: #182b37;
  background-color: rgb(225 239 235 / .56);
  background-image: radial-gradient(circle, #b3ccc478 1px, transparent 1.5px),
    radial-gradient(ellipse at 76% 75%, #ccdeea88, transparent 70%);
  background-size: 22px 22px, auto;
}
.booking-chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px max(15px, calc((100% - 740px) / 2));
  color: #172933; background: #fbfcfd;
}
.booking-chat-header strong, .booking-chat-header small { display: block; }
.booking-chat-header strong { font-size: 14px; }
.booking-chat-header small { color: #496e86; margin-top: 2px; font-size: 11px; }
.booking-chat-avatar {
  display: block; flex: none; width: 36px; height: 36px;
  border-radius: 50%; object-fit: cover;
}
.booking-chat-thread { min-height: 0; overflow: auto; scroll-behavior: smooth; padding: 12px max(13px, calc((100% - 740px) / 2)) 8px; }
.booking-chat-day { display: block; width: fit-content; margin: 0 auto 12px; padding: 4px 9px; border-radius: 999px; background: #72999760; font-size: 11px; }
.booking-chat-messages { display: flex; flex-direction: column; gap: 7px; }
.booking-chat-bubble {
  width: fit-content; max-width: min(90%, 460px); padding: 8px 11px; border-radius: 13px 13px 13px 3px;
  background: white; box-shadow: 0 1px 1px #29414319; font-size: 13px; line-height: 1.42;
  overflow-wrap: anywhere;
}
.booking-chat-bubble.outgoing { align-self: flex-end; border-radius: 13px 13px 3px 13px; background: #d9f4d4; }
.booking-chat-bubble small { display: inline-block; margin-left: 8px; color: #4c745e; font-size: 9px; white-space: nowrap; }
.booking-chat-typing { color: #3e6269; font-size: 11px; margin: 6px 0 0 4px; }
.booking-chat-typing span { animation: booking-blink 1s steps(2,start) infinite; }
@keyframes booking-blink { to { opacity: .24; } }
.booking-chat-options, .booking-chat-form { display: flex; gap: 6px; padding-inline: max(12px, calc((100% - 740px) / 2)); }
.booking-chat-options { height:44px; align-content:start; align-items:start; padding-block: 4px 7px; flex-wrap: wrap; }
.booking-chat-options button {
  border: 0; border-radius: 999px; padding: 7px 11px; background: #f3fafb;
  color: #206186; font-size: 12px; cursor: pointer;
}
.booking-chat-options button:hover { background: #fff; }
.booking-chat-form { padding-bottom: 12px; }
.booking-chat-form input {
  flex: 1; min-width: 0; min-height: 42px; border: 0; border-radius: 14px;
  padding: 0 13px; color: #182b37; background: white; font-size: 16px;
}
.booking-chat-form button {
  border: 0; border-radius: 50%; width: 42px; height: 42px; background: #3287bf;
  color: white; cursor: pointer;
}
/* The stage owns the geometry; demo screens never resize the header or caption. */
.workbench { width: min(952px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding-bottom: clamp(76px,12vw,142px); }
.work-tabs, .work-subtabs { display:flex; justify-content:center; flex-wrap:wrap; gap:5px; }
.work-tabs { position:relative; z-index:1; }
.work-tabs button, .work-subtabs button { border:0; background:transparent; color:inherit; cursor:pointer; border-radius:999px; min-height:34px; padding:0 13px; font-size:13px; white-space:nowrap; }
.work-tabs button:hover, .work-subtabs button:hover { background:#ffffff24; }
.work-tabs button[aria-selected=true] { color:#151518; background:#fafaff; }
.work-toolbar { display:grid; place-items:center; height:39px; }
.work-subtabs button { min-height:28px; font-size:12px; }
.work-subtabs [aria-pressed=true] { background:#ffffff30; }
.work-grid { position:relative; }
.work-stage {
  position:relative; isolation:isolate; overflow:clip; aspect-ratio: 952 / 580; border-radius:28px;
  background: rgb(251 251 255 / .75); color:#19191c; color-scheme:light;
  backdrop-filter: blur(18px) saturate(112%);
  box-shadow: 0 14px 48px #11164720;
}
.work-apps, .work-app { position:absolute; inset:0; }
.work-app { min-width:0; min-height:0; }
.work-frame { overflow:clip; }
.work-frame iframe { display:block; width:100%; height:100%; border:0; }
.work-pointer { position:absolute; z-index:5; top:0; left:0; width:18px; height:22px; color:#191919; pointer-events:none; opacity:0; transform:translate(22px,22px); filter:drop-shadow(0 1px 2px #0005); transition:transform var(--pointer-ms,950ms) cubic-bezier(.35,0,.19,1), opacity .24s ease; }
.work-pointer.is-visible { opacity:1; }
.work-pointer svg { display:block; fill:currentColor; stroke:white; stroke-width:1.45; overflow:visible; transition:scale .17s ease; transform-origin:4px 3px; }
.work-pointer.is-clicking svg { scale:.79; }
.work-pointer::after { content:''; position:absolute; left:-7px; top:-8px; width:22px; height:22px; border:1px solid #526def; border-radius:50%; opacity:0; }
.work-pointer.is-clicking::after { animation:work-click .3s ease-out; }
@keyframes work-click { from { opacity:.85; scale:.5; } to { opacity:0; scale:1.4; } }
.work-caption { position:absolute; top:48px; left:calc(100% + 24px); width:146px; color:#eff3ff; font-size:13px; line-height:1.45; }
.work-caption h3 { font-size:16px; margin:3px 0 5px; }
.work-caption.is-empty { visibility:hidden; }
.work-scenario { margin-top:12px; }
.work-scenario strong { display:block; margin-bottom:3px; }
.work-open { display:inline-grid; place-items:center; min-width:38px; min-height:38px; margin-top:2px; border-radius:50%; font-size:18px; }
.work-open:hover { background:#ffffff2b; }
.work-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%, 200px), 1fr)); align-content:start; gap:12px; padding:clamp(12px, 2.5vw, 28px); overflow:auto; }
.work-card { display:grid; align-content:start; max-width:330px; min-width:0; overflow:hidden; border-radius:13px; background:#fff9; color:#171b30; }
.work-card:focus-visible { outline-offset:2px; outline-color:#244ba1; }
.work-card-preview { display:grid; place-items:center; aspect-ratio: 16 / 10; padding:10%; overflow:hidden;
  background: #3e62df url('assets/card-current.jpg') center / cover; }
.work-card:nth-child(2n) .work-card-preview { background-image:
  linear-gradient(139deg, #ffb48fb8, #9c4a9f55 60%, #36278922), url('assets/card-current.jpg'); }
.work-card img { display:block; width:100%; height:100%; min-height:0; object-fit:cover; object-position:top; border-radius:5px; box-shadow:0 6px 20px #25183f45; }
.work-card-title { display:flex; justify-content:space-between; gap:6px; padding:9px 12px; font-size:13px; font-weight:600; }
.work-card:hover .work-card-title { background:#fff; }
.work-stage:has(.work-gallery-github:not([hidden])) { aspect-ratio:auto; height:auto; }
.work-stage:has(.work-gallery-github:not([hidden])) .work-apps,
.work-gallery.work-gallery-github { position:static; }
.work-gallery.work-gallery-github {
  grid-template-columns:minmax(0, 660px);
  justify-content:center;
  padding:clamp(10px, 3.2vw, 34px);
}
.work-card-github {
  max-width:none;
  border:1px solid #1c264f2e;
  border-radius:18px;
  background:#f8f9ff;
  box-shadow:0 8px 28px #26326119;
}
.work-card-cover {
  display:grid;
  place-items:center;
  overflow:hidden;
  padding:clamp(12px, 3.3vw, 34px);
  background:radial-gradient(ellipse at 22% 8%, #a2b3ffb8, transparent 65%),
    linear-gradient(136deg, #4d71c5aa, #23204cbf), url('assets/card-current.jpg') center / cover;
}
.work-card-screens {
  position:relative;
  display:block;
  width:min(100%, 450px);
  aspect-ratio:8 / 5;
  overflow:hidden;
  border:1px solid #ffffff66;
  border-radius:clamp(5px, 1vw, 10px);
  box-shadow:0 15px 34px #16143866;
}
.work-card-screens img { position:absolute; inset:0; border-radius:0; box-shadow:none; }
.work-card-screens img + img { opacity:0; transform:scale(1.045); }
.work-card-info {
  display:grid;
  align-items:center;
  grid-template-columns:minmax(0, 1fr) auto;
  grid-template-areas:'repo arrow' 'name arrow' 'summary arrow' 'stats stats';
  gap:4px 14px;
  padding:clamp(14px, 2.2vw, 23px);
}
.work-card-repo {
  grid-area:repo;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:#4b5878;
  font-size:12px;
  overflow-wrap:anywhere;
}
.work-card-repo span:first-child { color:#253659; font-weight:650; }
.work-card-name {
  grid-area:name;
  font-size:clamp(21px, 4.3vw, 31px);
  line-height:1.15;
  font-weight:600;
  letter-spacing:-.035em;
}
.work-card-summary { grid-area:summary; color:#414b62; font-size:14px; line-height:1.4; }
.work-card-github .project-arrow { width:40px; height:40px; font-size:20px; }
.work-card-stats { grid-area:stats; display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.work-card-stat {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border-radius:999px;
  background:#e8edf9;
  color:#273655;
  font-size:12px;
  line-height:1.4;
}
.work-card-stat svg { width:15px; height:15px; flex:none; }
.work-card-stat strong { font-variant-numeric:tabular-nums; }
.work-card-stat-status { align-self:center; color:#4b5878; font-size:12px; }
@media (prefers-reduced-motion:no-preference) {
  .work-card-github { transition:box-shadow .3s, border-color .3s; }
  .work-card-screens,
  .work-card-screens img,
  .work-card-github .project-arrow {
    transition:transform .55s cubic-bezier(.2,.7,.25,1), opacity .45s;
  }
  .work-card-github[data-visible] .work-card-screens { animation:work-card-reveal .7s cubic-bezier(.2,.7,.25,1) both; }
  .work-card-github[data-visible] .work-card-info { animation:work-card-reveal .46s .12s ease-out both; }
  @keyframes work-card-reveal {
    from { opacity:0; translate:0 14px; }
    to { opacity:1; translate:0; }
  }
}
.work-card-github:focus-visible .work-card-screens img + img { opacity:1; transform:none; }
.work-card-github:focus-visible .project-arrow { transform:translate(2px,-2px); }
@media (hover:hover) {
  .work-card-github:hover { border-color:#3557ad75; box-shadow:0 12px 32px #29387830; }
  .work-card-github:hover .work-card-screens { transform:translateY(-3px); }
  .work-card-github:hover .work-card-screens img + img { opacity:1; transform:none; }
  .work-card-github:hover .project-arrow { transform:translate(2px,-2px); }
}
.project-gallery {
  container-type:inline-size;
  overflow:auto;
  overscroll-behavior-y:contain;
  scrollbar-color:#8a91a8 transparent;
  scroll-padding:12px;
  padding:clamp(12px, 2.4vw, 24px);
  color:#191e30;
}
.project-gallery:focus-visible { outline:2px solid #3557ad; outline-offset:-4px; }
@media (hover: none) and (pointer: coarse) {
  .project-gallery { overscroll-behavior-y:auto; }
}
.project-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.project-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid #1c264f26;
  border-radius:15px;
  background:#ffffffa8;
  color:inherit;
  text-decoration:none;
}
.project-card:hover { border-color:#3557ad75; }
.project-card:focus-visible { outline:2px solid #3557ad; outline-offset:2px; }
.project-preview {
  position:relative;
  aspect-ratio:2.12;
  overflow:hidden;
  background:radial-gradient(ellipse at 78% 18%, var(--project-color-3), transparent 60%),
    linear-gradient(132deg, var(--project-color-1), var(--project-color-2));
}
.project-preview canvas { position:absolute; inset:0; width:100%; height:100%; visibility:hidden; }
.project-screen {
  position:absolute;
  inset:12% 8.5% 0;
  overflow:hidden;
  isolation:isolate;
  border:1px solid #ffffff30;
  border-bottom:0;
  border-radius:8px 8px 0 0;
  background:#f5f4f0;
  box-shadow:0 5px 18px #0006;
}
.project-screen img {
  position:absolute;
  inset:0 auto auto 0;
  display:block;
  width:100%;
  height:auto;
  transform-origin:50% 0;
}
.project-details {
  display:grid;
  flex:1;
  align-content:center;
  grid-template-columns:minmax(0, 1fr) auto;
  grid-template-areas:'title arrow' 'description arrow';
  gap:4px 10px;
  padding:11px 12px 12px;
}
.project-details strong { grid-area:title; font-size:clamp(15px, 2.4cqi, 20px); line-height:1.14; }
.project-description { grid-area:description; color:#414b62; font-size:13px; line-height:1.35; }
.project-arrow {
  grid-area:arrow;
  align-self:center;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#dde5f6;
  color:#202e53;
  font-size:16px;
}
@container (max-width:395px) {
  .project-grid { grid-template-columns:minmax(0, 1fr); }
}
.work-unavailable { display:grid; place-content:center; text-align:center; padding:22px; gap:10px; }
@media(max-width:1310px) { .work-caption { position:static; max-width:56ch; width:auto; min-height:90px; margin-top:12px; } }
@media(max-width:760px) {
  .work-stage { aspect-ratio:auto; height:clamp(468px, 75vw, 550px); border-radius:22px; }
  .workbench { width:calc(100% - 20px); }
  .work-tabs { gap:2px; }
  .work-tabs button { min-height:44px; padding-inline:clamp(6px, 2vw, 13px); }
  .work-gallery { grid-template-columns:repeat(auto-fill,minmax(min(100%, 130px), 1fr)); }
}
@media(max-width:600px) {
  .work-stage { height:clamp(670px, 177vw, 760px); }
}
@media(min-width:601px) and (max-width:960px) {
  .work-stage { aspect-ratio:auto; height:560px; }
}
@media(prefers-reduced-motion:reduce) { .work-pointer { display:none; } }

@font-face {
  font-family: "Secretary Roboto";
  src: url("assets/secretary-roboto-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Secretary Roboto";
  src: url("assets/secretary-roboto-cyrillic.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

.work-stage:has(.secretary:not([hidden])) {
  container-type: inline-size;
  background:
    radial-gradient(ellipse at 42% 14%, #fff5f588, transparent 60%),
    radial-gradient(ellipse at 16% 83%, #f5edfb9c, transparent 56%),
    radial-gradient(ellipse at 81% 92%, #f9eef06b, transparent 56%),
    #f9f9f9;
  backdrop-filter: blur(10px);
  box-shadow: none;
}
.secretary {
  display: flex;
  overflow: hidden;
  color: #000;
  font: .090909cqw / 1.5 "Secretary Roboto", Arial, sans-serif;
}
.secretary [hidden] { display: none; }
.secretary svg { display: block; flex: none; }
.secretary-sidebar { flex: 0 0 290em; min-width: 0; }
.secretary-sidebar-top {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 48em;
  margin-top: 9em;
  padding-right: 6em;
}
.secretary-dots { position: absolute; left: 27em; top: 18em; display: flex; gap: 8em; }
.secretary-dots i { width: 12em; height: 12em; border-radius: 50%; background: #00000026; }
.secretary-threads { padding: 4.8em 9.6em 0; }
.secretary-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8em;
  height: 38.4em;
  padding-inline: 9.6em;
  border-radius: 9.6em;
}
.secretary-row span { font-size: 14.4em; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.secretary-row.is-current { background: rgb(0 0 0 / .07); }
.secretary-shortcut { gap: 9.6em; }
.secretary-shortcut svg { width: 16em; height: 16em; }
.secretary-list-label { margin-top: 9.6em; }
.secretary-list-label, .secretary-row.is-muted { color: #0009; }
.secretary-row.is-child { padding-left: 28.8em; }
.secretary-row.is-child::before {
  content: '';
  position: absolute;
  left: 9.6em;
  top: -1.2em;
  bottom: 50%;
  width: 9.6em;
  border: solid #0005;
  border-width: 0 0 1em 1em;
  border-bottom-left-radius: 3.6em;
}
.secretary-row.is-child.is-first::before, .secretary-row.is-child.is-first::after { top: 4.8em; }
.secretary-row.is-child.continues::before { border-left-color: transparent; border-radius: 0; }
.secretary-row.is-child.continues::after {
  content: '';
  position: absolute;
  left: 9.6em;
  top: -1.2em;
  bottom: 0;
  border-left: 1em solid #0005;
}
.secretary-thread-dot { display: none; }
.secretary-row.has-dot .secretary-thread-dot {
  display: block;
  flex: 0 0 5.4em;
  height: 5.4em;
  border-radius: 50%;
  background: #0008;
}
.secretary-row.is-working .secretary-thread-dot { background: #fbbf24; }
.secretary-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  margin: 8em 8em 8em 0;
  border: 1em solid #0000001a;
  border-radius: 21em;
  background: #00000005;
}
.secretary-bar { display: flex; flex: 0 0 48em; align-items: center; padding-inline: 10em; }
.secretary-bar strong {
  flex: 1;
  min-width: 0;
  margin-left: .556em;
  font-size: 14.4em;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.secretary-tool { display: grid; place-items: center; flex: 0 0 26em; width: 26em; height: 26em; }
.secretary-tool > svg { width: 14em; height: 14em; }
.secretary-dialog {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: end;
  gap: 1em;
  min-height: 0;
  overflow: hidden;
  padding: 0 1.7em 1.3em;
  font-size: 16.8em;
  line-height: 1.625;
}
.secretary-dialog > * { flex: none; }
.secretary-request {
  align-self: flex-end;
  max-width: 70%;
  padding: .85em 1.15em;
  border-radius: 1.6em;
  background: #0000000d;
}
.secretary-activity, .secretary-result { display: flex; flex-direction: column; }
.secretary-activity { gap: .4em; color: #0009; }
.secretary-result { gap: 1em; }
.secretary-status, .secretary-duration { display: flex; align-items: center; gap: .6em; }
.secretary-status svg { width: 1em; height: 1em; }
.secretary-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secretary-duration { gap: .3em; color: #0009; }
.secretary-duration svg { width: .85em; height: .85em; }
.secretary-status.is-working span {
  color: transparent;
  background: linear-gradient(90deg,#f97316,#9333ea,#f97316) 0 0 / 200% 100% text;
  animation: secretary-flow 2s steps(48) infinite;
}
.secretary-status.is-working svg { color: #f97316; animation: secretary-thinking 2s steps(48) infinite; }
.secretary-preview {
  position: relative;
  width: 20em;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: .3em;
  overflow: hidden;
  border: .06em solid #0000001a;
  border-radius: .75em;
  background: linear-gradient(to bottom right,#c3bef2,#e8bedb,#f0d5be);
}
.secretary-preview img { display: block; width: 100%; height: 100%; }
.secretary-composer { padding: 0 16em 16em; }
.secretary-input {
  display: flex;
  align-items: center;
  height: 48em;
  padding: 0 9em 0 20em;
  border: 1em solid #0000001a;
  border-radius: 24em;
  color: #0009;
}
.secretary-input > span { flex: 1; font-size: 16.8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secretary-input i {
  display: grid;
  place-items: center;
  width: 28em;
  height: 28em;
  border-radius: 50%;
  background: #000;
  color: #fff;
  opacity: .3;
}
.secretary-input svg { width: 14em; height: 14em; }
.secretary-options { display: flex; align-items: center; gap: 4em; height: 28em; padding-inline: 12em; margin-top: 6em; color: #000e; }
.secretary-options > span:not(.secretary-tool) { font-size: 14.4em; }
.secretary-options .secretary-tool { flex-basis: 28em; width: 28em; height: 28em; }
.secretary-options .secretary-tool svg, .secretary-quota { width: 16em; height: 16em; }
.secretary-permissions { flex: 1; margin-left: .5em; }
.secretary-level { color: #0009; }
.secretary-quota { margin-left: 16em; color: #f59e0b; transform: rotate(-90deg); }

@container (max-width: 740px) {
  .secretary { font-size: 1px; }
  .secretary-sidebar { display: none; }
  .secretary-chat {
    container-type: size;
    margin: 8px;
    border-radius: 16px;
  }
  .secretary-bar { flex-basis: 42px; }
  .secretary-bar strong { font-size: 15px; }
  .secretary-tool > svg { width: 16px; height: 16px; }
  .secretary-dialog {
    justify-content: safe end;
    gap: 8px;
    overflow-y: auto;
    padding: 0 12px 10px;
    font-size: 14px;
    line-height: 1.4;
  }
  .secretary-request { max-width: 88%; padding: 8px 12px; border-radius: 14px; }
  .secretary-result { gap: 6px; }
  .secretary-preview { width: min(100%, clamp(132px, 100cqh - 320px, 250px)); }
  .secretary-composer { padding: 0 10px 8px; }
  .secretary-input { height: 38px; padding-inline: 12px 6px; }
  .secretary-input > span { font-size: 13px; }
  .secretary-options { padding-inline: 2px; gap: 3px; height: 23px; white-space: nowrap; }
  .secretary-options .secretary-tool { flex-basis: 21px; width: 21px; height: 21px; }
  .secretary-options > span:not(.secretary-tool) { font-size: 10px; }
  .secretary-quota { width: 12px; height: 12px; margin-left: 4px; }
}
@container (max-width: 320px) {
  .secretary-dialog { gap: 5px; padding: 0 10px 7px; line-height: 1.3; }
  .secretary-request { max-width: 95%; padding: 6px 10px; }
  .secretary-result { gap: 4px; }
}
.secretary-line { animation: secretary-line-in .26s ease-out both; }
@keyframes secretary-line-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes secretary-flow { from { background-position: 200% 0; } }
@keyframes secretary-thinking { 50% { color: #9333ea; } }
@media (prefers-reduced-motion: reduce) {
  .secretary-line, .secretary-status.is-working :is(svg,span) { animation: none; }
}

.booking-chat-thread { scrollbar-width:none; }
.booking-chat-bubble { animation:chat-in .3s both; }
@keyframes chat-in { from { opacity:.25; transform:translateY(4px); } }
@media(max-width:600px) { .booking-chat-options { height:94px; } }
.beauty-preview { --beauty-paper:#faf7f1; --beauty-card:#fffdf9; --beauty-line:#e2dcd1; --beauty-ink:#272b24; --beauty-muted:#585d51; --beauty-accent:#284438; container:beauty / inline-size; display:grid; grid-template-rows:56px minmax(0,1fr) auto; padding-inline:clamp(12px,4.1vw,46px); background:var(--beauty-paper); color:var(--beauty-ink); }
.beauty-bar,.beauty-title,.beauty-actions { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.beauty-bar { border-bottom:1px solid #22251a15; }
.beauty-preview button { cursor:pointer; color:inherit; border:0; border-radius:9px; background:transparent; }
.beauty-preview button:disabled { cursor:default; opacity:.42; }
.beauty-bar button { padding:7px 10px; white-space:nowrap; font-size:13px; }
.beauty-bar .beauty-brand { padding-inline:0; font-size:16px; font-weight:700; letter-spacing:-.035em; }
.beauty-brand span { color:#617158; margin-right:4px; }
.beauty-bar button:hover,.beauty-bar [aria-current] { background:#252d1a0e; }
.beauty-bar nav { gap:1px; }
.beauty-screen { min-width:0; overflow:auto; scroll-padding-block:12px; }
.beauty-screen > div { min-height:100%; min-width:0; }
.beauty-screen > .beauty-hero, .beauty-screen > .beauty-page:has(.beauty-catalog) { height:100%; }
.beauty-preview :is(button, select, input):focus-visible { outline:2px solid #425f46; outline-offset:-2px; }
.beauty-eyebrow { color:#525e49; font-size:11px; letter-spacing:.09em; text-transform:uppercase; margin-bottom:8px; }
.beauty-preview h3 { font-size:clamp(22px,3vw,38px); line-height:1.04; font-weight:600; letter-spacing:-.045em; }
.beauty-hero { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:clamp(14px,5vw,64px); padding-block:22px; min-height:0; }
.beauty-hero h3 { font-family:Georgia,serif; font-size:clamp(32px,4.6vw,72px); font-weight:normal; }
.beauty-hero p:not(.beauty-eyebrow), .beauty-partner p:not(.beauty-eyebrow) { font-size:14px; line-height:1.5; margin:12px 0; max-width:36ch; color:#4b4e45; }
.beauty-hero img { width:100%; height:100%; min-height:0; max-height:394px; object-fit:cover; border-radius:15px; }
.beauty-hero small { display:block; color:#4b5247; margin-bottom:12px; }
.beauty-preview .beauty-primary { background:var(--beauty-accent); color:white; border-radius:12px; padding:9px 16px; font-size:13px; font-weight:600; min-height:35px; }
.beauty-preview .beauty-primary:hover { background:#354b3d; }
.beauty-page { display:flex; flex-direction:column; gap:13px; padding-block:18px; }
.beauty-title label { font-size:12px; white-space:nowrap; }
.beauty-title select { padding:5px; background:#ffffffad; border:1px solid #373e2924; border-radius:5px; }
.beauty-catalog { flex:1; min-height:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:minmax(0,1fr); gap:12px; }
.beauty-preview .beauty-tile { display:grid; min-height:0; grid-template-rows:minmax(0,1fr) auto; text-align:left; gap:4px; background:#ffffffa3; border:1px solid #44422c17; padding:8px; }
.beauty-tile img { width:100%; height:100%; min-height:0; object-fit:cover; border-radius:5px; }
.beauty-tile span { display:grid; gap:3px; }
.beauty-tile strong { margin-top:4px; font-size:14px; }
.beauty-tile small { color:#5d6258; }
.beauty-preview .beauty-tile:hover, .beauty-preview .beauty-options button:hover { border-color:#71866e; }
.beauty-pagination { display:flex; justify-content:center; align-items:center; gap:10px; font-size:11px; }
.beauty-pagination button { width:26px; height:25px; background:#ffffff94; font-size:17px; }
.beauty-back { align-self:flex-start; font-size:12px; padding:4px 6px; }
.beauty-back:hover { background:#ffffff72; }
.beauty-salon { flex:1; padding:0 0 4px; }
.beauty-progress { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); list-style:none; margin:0; padding:0; gap:4px; font-size:11px; }
.beauty-progress li { padding:6px 8px; border-radius:7px; color:#4f5249; background:#ffffff64; }
.beauty-progress [aria-current] { color:#213d30; background:#dae7db; font-weight:700; }
.beauty-step-count { display:none; }
.beauty-booking-grid { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(138px,32%); gap:14px; }
.beauty-booking-grid > div > p:last-child { margin-top:13px; font-size:13px; }
.beauty-summary { min-width:0; align-self:start; border:1px solid var(--beauty-line); border-radius:14px; background:var(--beauty-card); padding:4px 14px; font-size:13px; overflow-wrap:anywhere; }
.beauty-summary dl { margin:0; }
.beauty-summary dl > div { display:grid; grid-template-columns:minmax(67px,27%) minmax(0,1fr); gap:8px; padding-block:8px; }
.beauty-summary dl > div + div { border-top:1px solid var(--beauty-line); }
.beauty-summary :is(dt,small) { color:var(--beauty-muted); }
.beauty-summary dd { margin:0; font-weight:600; }
.beauty-summary-time { white-space:nowrap; }
.beauty-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:12px; }
.beauty-options button { display:grid; gap:4px; text-align:left; background:#ffffff9d; border:1px solid #4046381a; padding:9px; font-size:13px; }
.beauty-options button span { display:grid; gap:3px; min-width:0; overflow-wrap:anywhere; }
.beauty-options [data-service] { grid-template-columns:minmax(0,1fr) auto; align-items:center; }
.beauty-options [data-master] { grid-template-columns:40px minmax(0,1fr); align-items:center; column-gap:10px; }
.beauty-options img { display:block; width:40px; height:40px; border-radius:50%; object-fit:cover; }
.beauty-options small,.beauty-dates small { color:#51574b; font-size:10px; }
.beauty-preview button[aria-pressed=true] { background:#dce8dc; border-color:#758d78; color:#17382b; }
.beauty-dates,.beauty-slots { display:grid; gap:4px; margin-top:9px; }
.beauty-dates { grid-template-columns:repeat(7,minmax(0,1fr)); }
.beauty-slots { grid-template-columns:repeat(4,minmax(0,1fr)); min-height:62px; }
.beauty-slots small { grid-column:1/-1; }
.beauty-dates button,.beauty-slots button { padding:4px; background:#ffffff8d; font-size:11px; border:1px solid #4046381a; }
.beauty-dates strong,.beauty-dates small { display:block; }
.beauty-field-title { margin-top:12px; font-size:12px; font-weight:600; color:var(--beauty-muted); }
.beauty-field-title::first-letter, .beauty-summary dd::first-letter { text-transform:uppercase; }
.beauty-time-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:28px; margin-top:8px; }
.beauty-time-heading .beauty-field-title { margin:0; }
.beauty-time-heading .beauty-field-title span { display:block; color:var(--beauty-ink); font-variant-numeric:tabular-nums; }
.beauty-actions { justify-content:flex-end; padding-block:8px; border-top:1px solid #22251a13; }
.beauty-actions .beauty-back { align-self:auto; margin-right:auto; }
.beauty-partner { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:20px; }
.beauty-partner-form { display:grid; gap:9px; padding:14px; background:#ffffff86; border-radius:10px; }
.beauty-partner-form label { display:grid; gap:4px; font-size:12px; }
.beauty-partner-form input { width:100%; background:#ffffffe1; border:1px solid #5a665048; border-radius:5px; padding:7px; }
.beauty-receipt { display:grid; justify-items:start; align-content:start; gap:10px; }
.beauty-receipt p { color:var(--beauty-muted); font-size:14px; line-height:1.5; }
.beauty-check { display:grid; place-items:center; width:48px; aspect-ratio:1; border-radius:50%; background:#e4ecdf; }
.beauty-check::after { content:""; width:16px; height:9px; border:solid var(--beauty-accent); border-width:0 0 2px 2px; transform:translateY(-2px) rotate(-45deg); }
.beauty-partner-done { justify-content:center; align-items:start; }
@container beauty (max-width: 600px) {
  .beauty-bar { gap:4px; border-color:var(--beauty-line); }
  .beauty-bar nav { display:flex; gap:3px; }
  .beauty-bar button { padding-inline:7px; font-size:12px; font-weight:600; }
  .beauty-bar .beauty-brand { font-size:16px; }
  .beauty-bar [aria-current] { background:#e9eee4; color:var(--beauty-accent); }
  .beauty-preview button, .beauty-title select, .beauty-partner-form input { min-height:44px; }
  .beauty-preview .beauty-primary { min-height:48px; font-size:14px; }
  .beauty-preview button:active:not(:disabled) { filter:brightness(.93); }
  .beauty-preview h3 { font-size:clamp(25px,8.2cqi,34px); line-height:1.08; text-wrap:balance; }
  .beauty-screen > .beauty-hero, .beauty-screen > .beauty-page:has(.beauty-catalog) { height:auto; }
  .beauty-hero, .beauty-partner { grid-template-columns:minmax(0,1fr); align-content:start; gap:17px; padding-block:14px; }
  .beauty-hero h3 { font-size:clamp(33px, 12cqi, 49px); text-wrap:initial; }
  .beauty-hero img { height:clamp(126px, 49cqi, 212px); order:-1; }
  .beauty-screen > .beauty-home { height:100%; grid-template-rows:minmax(140px,1fr) auto; gap:22px; padding-block:14px 22px; }
  .beauty-home img { display:block; height:100%; max-height:none; object-position:center 38%; }
  .beauty-home p:not(.beauty-eyebrow) { margin:12px 0 18px; }
  .beauty-hero .beauty-primary, .beauty-partner-form .beauty-primary { width:100%; }
  .beauty-salon { padding:0; gap:11px; }
  .beauty-salon h3 { font-size:clamp(30px, 10cqi, 41px); }
  .beauty-salon img { height:clamp(104px,36cqi,168px); }
  .beauty-salon p:not(.beauty-eyebrow) { margin:8px 0; }
  .beauty-page { padding-block:14px; gap:12px; }
  .beauty-detail { gap:7px; padding-top:4px; }
  .beauty-title { display:grid; justify-content:stretch; gap:12px; }
  .beauty-title label { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:10px; border:1px solid var(--beauty-line); border-radius:11px; background:var(--beauty-card); padding-inline:12px 6px; font-size:13px; }
  .beauty-filter-label { color:var(--beauty-muted); }
  .beauty-title select { min-width:0; border:0; font:inherit; font-weight:600; font-size:16px; padding-inline:4px; background:transparent; }
  .beauty-catalog { flex:none; grid-template-columns:minmax(0,1fr); grid-template-rows:auto; gap:8px; }
  .beauty-preview .beauty-tile { grid-template-columns:64px minmax(0,1fr) 12px; grid-template-rows:auto; align-items:center; gap:11px; border:1px solid var(--beauty-line); border-radius:12px; background:var(--beauty-card); }
  .beauty-tile::after { content:""; width:7px; height:7px; border:solid var(--beauty-muted); border-width:1.5px 1.5px 0 0; transform:rotate(45deg); }
  .beauty-tile img { height:50px; }
  .beauty-tile strong { margin:0; font-size:15px; }
  .beauty-tile small { font-size:12px; }
  .beauty-pagination { gap:14px; font-size:12px; }
  .beauty-pagination button { min-width:44px; background:var(--beauty-card); border:1px solid var(--beauty-line); }
  .beauty-time-heading .beauty-pagination { flex:none; gap:6px; }
  .beauty-step { display:grid; gap:7px; }
  .beauty-step-count { display:block; color:#525e49; font-size:12px; font-weight:600; }
  .beauty-progress li { position:relative; height:4px; padding:0; background:#d9dbd1; }
  .beauty-progress li span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .beauty-progress [data-complete], .beauty-progress [aria-current] { background:#527057; }
  .beauty-booking-grid { grid-template-columns:minmax(0,1fr); gap:16px; align-content:start; }
  .beauty-booking-grid .beauty-eyebrow { margin-bottom:5px; }
  .beauty-options { grid-template-columns:minmax(0,1fr); }
  .beauty-options button { min-height:58px; border-color:var(--beauty-line); background:var(--beauty-card); padding:8px 11px; font-size:14px; }
  .beauty-options small { font-size:12px; }
  .beauty-screen:is([data-page=service], [data-page=time]) .beauty-summary { display:none; }
  .beauty-screen[data-page=time] .beauty-booking { padding-block:12px 0; }
  .beauty-screen[data-page=time] .beauty-time-heading { margin-top:6px; }
  .beauty-screen[data-page=master] .beauty-summary dl > div:first-child { display:none; }
  .beauty-screen[data-page=master] .beauty-summary dl > div:nth-child(2) { border-top:0; }
  .beauty-dates, .beauty-slots { gap:6px; margin-top:6px; }
  .beauty-dates button, .beauty-slots button { font-size:14px; background:var(--beauty-card); border-color:var(--beauty-line); font-variant-numeric:tabular-nums; }
  .beauty-dates button { min-width:44px; }
  .beauty-actions { padding-bottom:14px; }
  .beauty-actions .beauty-primary { flex:1; }
  .beauty-actions .beauty-back { padding-inline:10px; border:1px solid var(--beauty-line); font-size:13px; min-height:48px; }
  .beauty-partner { padding-block:21px; }
  .beauty-partner-form { gap:12px; border:1px solid var(--beauty-line); background:var(--beauty-card); }
  .beauty-partner-form label { gap:6px; font-size:13px; font-weight:600; }
  .beauty-partner-form input { font-size:16px; font-weight:400; }
  .beauty-receipt { gap:9px; }
  .beauty-partner-done { justify-content:start; padding-top:24px; }
  .beauty-partner-done .beauty-primary { width:100%; margin-top:8px; }
}
@container beauty (max-width: 343px) {
  .beauty-dates { grid-template-columns:repeat(4,minmax(44px,1fr)); }
}
@media(prefers-reduced-motion:reduce) { .booking-chat-bubble { animation:none; } .booking-chat-thread { scroll-behavior:auto; } }

@media (max-width: 760px) {
  #work .work-stage:has(.work-frame:not([hidden])) {
    height: clamp(270px, 76svh, 650px);
  }
}

/* A caption is part of the demo, not a floating footnote. */
.work-caption {
  top:39px; left:calc(100% + 18px); width:216px; padding:20px;
  border:1px solid #ffffff88; border-radius:24px;
  color:#222d48; background:rgb(248 250 255 / .88);
  backdrop-filter:blur(18px) saturate(112%); box-shadow:0 14px 48px #11164720;
  font-size:13px; line-height:1.5;
}
.work-caption h3 { font-size:20px; line-height:1.15; margin:0 0 10px; letter-spacing:-.025em; }
.work-caption > p { margin:0; color:#46526b; }
.work-caption.is-empty { display:none; }
.work-scenario { margin-top:16px; padding-top:14px; border-top:1px solid #27385b24; color:#53617a; font-size:12px; }
.work-scenario strong { color:#354663; font-size:11px; letter-spacing:.03em; }
.work-scenario p { margin:0; }
.work-open { display:flex; justify-content:space-between; gap:16px; min-height:44px; margin-top:18px; padding:0 14px;
  border-radius:13px; background:#273d83; color:white; font-size:13px; font-weight:600; }
.work-open svg { width:20px; height:20px; flex:none; }
.work-open:hover { background:#354f9c; }
.work-open:focus-visible { outline:3px solid #507ac7; outline-offset:3px; }
.work-open[hidden] { display:none; }
@media(max-width:1480px) {
 .work-caption { position:static; max-width:none; width:auto; min-height:0; margin-top:14px; padding:20px 24px; }
 .work-caption > p { max-width:70ch; }
 .work-open { width:fit-content; min-width:174px; }
}
@media(max-width:760px) {
 .work-caption { padding:18px; border-radius:22px; }
 .work-caption h3 { font-size:19px; }
 .work-open { width:100%; }
}
