:root {
  color: #15191d;
  background: #eef4f6;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #15191d;
  --muted: #65737b;
  --line: rgba(24, 32, 36, 0.1);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --shadow: 0 28px 80px rgba(33, 49, 57, 0.16);
  --shadow-soft: 0 14px 36px rgba(33, 49, 57, 0.12);
  --radius-lg: calc(32px * var(--kiosk-radius-scale, 1) * var(--site-radius, 1));
  --radius-md: calc(24px * var(--kiosk-radius-scale, 1) * var(--site-radius, 1));
  --radius-sm: calc(18px * var(--kiosk-radius-scale, 1) * var(--site-radius, 1));
  --gold: #c5a764;
  --mint: #8fd8ce;
  --ice: #dce9ef;
  --blue: #aebdff;
  --rose: #ecc5b8;
  --aurora-1: #9fe6dc;
  --aurora-2: #b7c3ff;
  --aurora-3: #f0d795;
  --aurora-ink: #12181d;
  --heading: #101417;
  --surface-tint: #eef8f8;
  --card-base-1: rgba(255, 255, 255, 0.8);
  --card-base-2: rgba(255, 255, 255, 0.5);
  --card-border: rgba(255, 255, 255, 0.72);
  --theme-glow: rgba(143, 216, 206, 0.3);
  --icon-bg: rgba(17, 23, 27, 0.92);
  --icon-color: #ffffff;
  --site-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --site-radius: 1;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html {
  font-size: calc(16px * var(--kiosk-font-scale, 1));
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--site-font-family);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.kiosk-app {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 8%, color-mix(in srgb, var(--aurora-1) 34%, transparent), transparent 42%),
    radial-gradient(ellipse at 82% 14%, color-mix(in srgb, var(--aurora-2) 30%, transparent), transparent 46%),
    radial-gradient(ellipse at 50% 96%, color-mix(in srgb, var(--aurora-3) 20%, transparent), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(235, 244, 246, 0.2) 42%, rgba(223, 234, 238, 0.8)),
    linear-gradient(90deg, rgba(143, 216, 206, 0.14), transparent 38%, rgba(197, 167, 100, 0.12)),
    var(--surface-tint);
}

.kiosk-app::before,
.kiosk-app::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kiosk-app::before {
  display: none;
}

.kiosk-app::after {
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.42) 44%, transparent 72%);
}

.screen-transition,
.screen-layer {
  position: absolute;
  inset: 0;
}

.screen-layer {
  z-index: 1;
}

.screen-layer--enter {
  z-index: 2;
}

.screen-layer--exit {
  pointer-events: none;
}

.screen-layer--enter.screen-layer--forward {
  animation: enter-forward 220ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.screen-layer--exit.screen-layer--forward {
  animation: exit-forward 220ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.screen-layer--enter.screen-layer--back {
  animation: enter-back 220ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.screen-layer--exit.screen-layer--back {
  animation: exit-back 220ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

@keyframes enter-forward {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes exit-forward {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-22px) scale(0.992);
  }
}

@keyframes enter-back {
  from {
    opacity: 0;
    transform: translateX(-24px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes exit-back {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(24px) scale(0.992);
  }
}

@keyframes theme-breathe {
  from {
    filter: saturate(1) brightness(1);
  }
  to {
    filter: saturate(1.1) brightness(1.025);
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] .kiosk-app::after {
  background: linear-gradient(120deg, transparent, rgba(140, 255, 225, 0.12) 44%, transparent 72%);
}

html[data-theme="dark"] .screen-heading h1,
html[data-theme="dark"] .splash-screen h1 {
  color: #0d1114;
  font-weight: 680;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.55),
    0 0 34px rgba(53, 240, 196, 0.26);
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .screen-subtitle,
html[data-theme="dark"] .splash-lead {
  color: #1f2b31;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.38);
}

html[data-theme="dark"] .feature-strip span,
html[data-theme="dark"] .feature-stack span,
html[data-theme="dark"] .mini-stats span,
html[data-theme="dark"] .stat-row span {
  color: #11171b;
  font-weight: 540;
  text-shadow: 0 0 13px rgba(255, 255, 255, 0.46);
}

html[data-theme="dark"] .mini-stats strong,
html[data-theme="dark"] .stat-row strong {
  color: #0d1114;
  font-weight: 620;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.42),
    0 0 24px rgba(53, 240, 196, 0.22);
}

html[data-theme="dark"] .feature-strip svg,
html[data-theme="dark"] .feature-stack svg {
  color: #9cfbe5;
}

html[data-theme="dark"] .doctor-card__body small,
html[data-theme="dark"] .doctor-card__body strong,
html[data-theme="dark"] .service-panel h2,
html[data-theme="dark"] .service-row strong,
html[data-theme="dark"] .service-row small,
html[data-theme="dark"] .service-row em {
  color: #0d1114;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .menu-tile strong,
html[data-theme="dark"] .menu-tile small,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .review-card div > strong,
html[data-theme="dark"] .review-card p,
html[data-theme="dark"] .review-score strong,
html[data-theme="dark"] .review-score span,
html[data-theme="dark"] .client-strip em,
html[data-theme="dark"] .client-strip b {
  color: #0d1114;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.38);
}

html[data-theme="dark"] .rating-stars,
html[data-theme="dark"] .review-card span,
html[data-theme="dark"] .review-score svg {
  color: #d8a62a;
  text-shadow: none;
}

.screen-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 30px 42px 38px;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  margin-bottom: 28px;
}

.brand-chip,
.icon-action,
.ghost-button,
.start-button,
.thanks-actions button,
.confirm-button {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: var(--glass);
  color: var(--ink);
  box-shadow:
    var(--shadow-soft),
    0 0 28px color-mix(in srgb, var(--theme-glow) 54%, transparent);
  backdrop-filter: blur(24px);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 760;
}

.brand-chip svg {
  color: var(--gold);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 118px;
  height: 54px;
  border-radius: 999px;
  font-weight: 720;
}

.icon-action:hover,
.brand-chip:hover,
.menu-tile:hover,
.doctor-card:hover,
.primary-action:hover,
.service-row:hover,
.document-card:hover,
.confirm-button:hover,
.thanks-actions button:hover {
  transform: translateY(-2px);
}

.screen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 26px;
  height: calc(100% - 90px);
  overflow: hidden;
}

.screen-grid:has(.screen-aside) {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.screen-heading {
  min-width: 0;
}

.screen-heading h1,
.splash-screen h1 {
  margin: 0;
  color: var(--heading);
  font-size: 4.45rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.96;
}

.eyebrow {
  margin: 0 0 13px;
  color: #728187;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.screen-subtitle {
  width: min(780px, 100%);
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.45;
}

.screen-aside {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 0;
}

.screen-content {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
}

.screen-grid:not(:has(.screen-aside)) .screen-content {
  grid-column: 1 / -1;
}

.splash-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  gap: 54px;
  width: 100%;
  height: 100%;
  padding: 64px;
  overflow: hidden;
}

.theme-switcher {
  position: absolute;
  z-index: 14;
  left: 50%;
  top: clamp(18px, 3vh, 34px);
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.theme-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dot-a), var(--dot-b) 52%, var(--dot-c));
  box-shadow:
    0 10px 25px rgba(20, 30, 36, 0.18),
    inset 0 1px 6px rgba(255, 255, 255, 0.48);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.theme-dot span {
  position: absolute;
  top: 31px;
  left: 50%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #314047;
  font-size: 0.62rem;
  font-weight: 820;
  opacity: 0;
  transform: translateX(-50%) translateY(-3px);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 160ms ease, transform 160ms ease;
}

.theme-dot:hover,
.theme-dot.is-active {
  transform: translateY(-2px) scale(1.12);
  box-shadow:
    0 12px 32px color-mix(in srgb, var(--dot-a) 48%, transparent),
    0 0 18px color-mix(in srgb, var(--dot-b) 44%, transparent),
    inset 0 1px 8px rgba(255, 255, 255, 0.62);
}

.theme-dot:hover span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.theme-dot--white {
  --dot-a: #ffffff;
  --dot-b: #e6f3f4;
  --dot-c: #f5dfad;
}

.theme-dot--north {
  --dot-a: #5ff0c8;
  --dot-b: #79a8ff;
  --dot-c: #d8a8ff;
}

.theme-dot--south {
  --dot-a: #ff6f61;
  --dot-b: #ffd166;
  --dot-c: #ff7bc8;
}

.theme-dot--west {
  --dot-a: #a7e86d;
  --dot-b: #7fd8a6;
  --dot-c: #d7f6bd;
}

.theme-dot--east {
  --dot-a: #c8ff57;
  --dot-b: #57f2b2;
  --dot-c: #8ed8ff;
}

.theme-dot--dark {
  --dot-a: #0a1016;
  --dot-b: #35f0c4;
  --dot-c: #7967ff;
}

.ambient {
  position: absolute;
  pointer-events: none;
}

.ambient--one {
  inset: 0 52% 0 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--aurora-1) 22%, transparent));
}

.ambient--two {
  inset: 0 0 0 58%;
  background: linear-gradient(235deg, color-mix(in srgb, var(--aurora-3) 22%, transparent), rgba(255, 255, 255, 0.2));
}

.splash-screen__content,
.splash-card {
  position: relative;
  z-index: 1;
}

.splash-mark,
.thanks-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin-bottom: 28px;
  border-radius: 28px;
  border: 0;
  background: #12171b;
  color: #f5deb3;
  box-shadow: 0 28px 70px rgba(18, 23, 27, 0.22);
}

.splash-mark {
  padding: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.splash-mark:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 24px 70px color-mix(in srgb, var(--theme-glow) 84%, transparent),
    0 0 36px color-mix(in srgb, var(--aurora-2) 45%, transparent);
  filter: saturate(1.14);
}

.splash-lead {
  max-width: 710px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

.start-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  height: 68px;
  border-radius: 999px;
  padding: 0 28px;
  font-size: 1.04rem;
  font-weight: 800;
}

.start-button {
  min-width: 190px;
  background: #11171b;
  color: white;
  border-color: rgba(17, 23, 27, 0.2);
}

.ghost-button {
  min-width: 154px;
}

.feature-strip,
.feature-stack {
  display: flex;
  gap: 12px;
}

.feature-strip {
  flex-wrap: wrap;
  margin-top: 32px;
}

.feature-strip span,
.feature-stack span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: #506069;
  font-size: 0.92rem;
  font-weight: 720;
  backdrop-filter: blur(18px);
}

.splash-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: min(680px, 78vh);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.clinic-preview {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(224, 236, 239, 0.86)),
    linear-gradient(90deg, rgba(143, 216, 206, 0.16), rgba(197, 167, 100, 0.12));
}

.clinic-preview__light {
  position: absolute;
  inset: 18% 14% auto;
  height: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.9);
}

.clinic-preview__chair {
  position: absolute;
  right: 11%;
  bottom: 16%;
  width: 64%;
  height: 32%;
  border-radius: 90px 34px 34px 110px;
  background: linear-gradient(135deg, #ffffff, #cbdbe0);
  box-shadow: 0 32px 50px rgba(76, 95, 104, 0.18);
}

.clinic-preview__chair::before {
  content: "";
  position: absolute;
  left: 8%;
  top: -72%;
  width: 42%;
  height: 120%;
  border-radius: 42px;
  background: linear-gradient(145deg, #fdfefe, #cedce1);
  transform: rotate(-18deg);
}

.clinic-preview__console {
  position: absolute;
  left: 12%;
  bottom: 12%;
  width: 24%;
  height: 46%;
  border-radius: 28px;
  background: rgba(20, 28, 32, 0.92);
  box-shadow: 0 24px 44px rgba(24, 32, 36, 0.2);
}

.clinic-preview__badge {
  position: absolute;
  right: 11%;
  top: 14%;
  color: var(--gold);
  filter: drop-shadow(0 14px 20px rgba(197, 167, 100, 0.2));
}

.stat-row,
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-row {
  margin-top: 18px;
}

.stat-row div,
.mini-stats div {
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.stat-row strong,
.mini-stats strong {
  display: block;
  font-size: 1.45rem;
}

.stat-stars {
  display: block;
  margin-top: 3px;
  color: #d8a62a;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 0 10px rgba(216, 166, 42, 0.38);
}

.stat-row span,
.mini-stats span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.menu-aside {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  height: 100%;
}

.status-orb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px);
}

.status-orb span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #a6f0da 0 42%, #2d8b72 43% 100%);
  box-shadow: 0 0 0 9px rgba(143, 216, 206, 0.18);
}

.status-orb strong {
  font-size: 1.1rem;
  text-transform: uppercase;
}

.feature-stack {
  flex-direction: column;
  min-height: 0;
}

.feature-stack span {
  justify-content: flex-start;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 18px;
}

.menu-grid,
.doctors-grid,
.works-grid,
.promo-grid,
.services-grid,
.document-grid,
.documents-hub-grid {
  display: grid;
  gap: 18px;
  height: 100%;
  min-height: 0;
}

.menu-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.menu-tile,
.doctor-card,
.primary-action,
.document-card,
.documents-hub-card,
.work-card,
.review-card,
.review-score,
.promo-card,
.service-panel,
.appointment-panel,
.contact-card,
.route-card,
.map-panel,
.thanks-layout {
  border: 1px solid var(--card-border);
  background:
    linear-gradient(135deg, var(--card-base-1), var(--card-base-2)),
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--aurora-1) 30%, transparent), transparent 42%),
    radial-gradient(circle at 92% 88%, color-mix(in srgb, var(--aurora-3) 25%, transparent), transparent 46%),
    linear-gradient(145deg, color-mix(in srgb, var(--aurora-1) 17%, transparent), color-mix(in srgb, var(--aurora-2) 14%, transparent) 56%, color-mix(in srgb, var(--aurora-3) 15%, transparent));
  box-shadow:
    var(--shadow-soft),
    0 0 30px color-mix(in srgb, var(--theme-glow) 40%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(26px);
}

.menu-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-md);
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.menu-tile:hover,
.doctor-card:hover,
.primary-action:hover,
.documents-hub-card:hover,
.service-row:hover,
.client-story:hover {
  border-color: color-mix(in srgb, var(--aurora-1) 42%, white);
  box-shadow:
    0 24px 64px color-mix(in srgb, var(--theme-glow) 76%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.68) inset,
    0 0 42px color-mix(in srgb, var(--aurora-1) 40%, transparent);
  animation: theme-breathe 1800ms ease-in-out infinite alternate;
}

.menu-tile:active,
.doctor-card:active,
.primary-action:active,
.documents-hub-card:active,
.service-row:active,
.client-story:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    0 16px 46px color-mix(in srgb, var(--aurora-1) 26%, transparent),
    0 0 42px color-mix(in srgb, var(--aurora-3) 22%, transparent);
}

.menu-tile__icon,
.primary-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: var(--icon-bg);
  color: var(--icon-color);
  box-shadow:
    0 0 24px color-mix(in srgb, var(--theme-glow) 68%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.menu-tile strong {
  margin-top: auto;
  font-size: 1.58rem;
  line-height: 1.08;
}

.menu-tile small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 680;
}

.doctors-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.doctors-grid--team {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.doctor-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 17px;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease;
}

.doctor-card::before,
.profile-photo::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 42%;
  border-radius: 28px;
  background: color-mix(in srgb, var(--doctor-accent, #8fd8ce) 42%, white);
  opacity: 0.5;
}

.doctor-card__photo {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(203, 219, 224, 0.88)),
    color-mix(in srgb, var(--doctor-accent, #8fd8ce) 34%, white);
}

.doctor-card__photo img,
.profile-photo img,
.doctor-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card__placeholder,
.profile-photo__placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.3) 38%, transparent 39%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(208, 224, 229, 0.7));
  color: rgba(17, 23, 27, 0.48);
  font-weight: 880;
  line-height: 1;
}

.doctor-card__placeholder {
  font-size: clamp(3.2rem, 7vw, 5.4rem);
}

.profile-photo__placeholder {
  font-size: clamp(7rem, 16vw, 12rem);
}

.doctor-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 82px;
  padding: 4px 6px 8px;
}

.doctor-card__body small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

.doctor-card__body strong {
  margin-top: 9px;
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow: 0 0 12px color-mix(in srgb, var(--theme-glow) 46%, transparent);
}

.doctor-card__body em {
  display: none;
  margin-top: auto;
  color: #3d4d54;
  font-size: 0.96rem;
  font-style: normal;
  font-weight: 760;
}

.doctor-card__arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: #12171b;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(310px, 38%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
  height: 100%;
}

.profile-photo {
  position: relative;
  grid-row: 1 / 3;
  min-height: 0;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.profile-photo img {
  position: relative;
  z-index: 1;
}

.profile-photo__glass {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  color: #243139;
  font-weight: 780;
  backdrop-filter: blur(22px);
}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  min-height: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px);
}

.profile-info p {
  max-width: 760px;
  margin: 0;
  color: #3a4850;
  font-size: 1.22rem;
  line-height: 1.55;
}

.competency-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.competency-grid span {
  padding: 12px 15px;
  border-radius: 999px;
  background: rgba(17, 23, 27, 0.07);
  color: #34434a;
  font-weight: 760;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.primary-action {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 18px;
  border-radius: 22px;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease;
}

.primary-action strong,
.primary-action small {
  display: block;
}

.primary-action strong {
  font-size: 1.08rem;
}

.primary-action small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 680;
}

.primary-action--dark {
  background: #11171b;
  color: white;
}

.primary-action--dark small {
  color: rgba(255, 255, 255, 0.68);
}

.primary-action--dark .primary-action__icon {
  background: rgba(255, 255, 255, 0.12);
}

.primary-action--gold .primary-action__icon {
  background: var(--gold);
  color: #101417;
}

.works-grid,
.promo-grid,
.services-grid,
.document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card,
.promo-card,
.service-panel,
.review-card,
.review-score,
.appointment-panel,
.contact-card,
.route-card,
.thanks-layout {
  border-radius: var(--radius-md);
}

.work-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.smile-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  min-height: 0;
}

.smile-shot {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(95, 48, 56, 0.28) 0 18%, transparent 19%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(216, 230, 232, 0.95)),
    linear-gradient(115deg, rgba(240, 182, 167, 0.62), rgba(143, 216, 206, 0.42));
}

.smile-shot img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  opacity: 0.42;
  mix-blend-mode: multiply;
}

.smile-shot::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 12%;
  right: 12%;
  top: 34%;
  height: 36%;
  border-radius: 50% / 44%;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 196, 188, 0.72) 0 17%, transparent 18%),
    linear-gradient(180deg, rgba(154, 77, 84, 0.48), rgba(94, 48, 58, 0.32));
  box-shadow: inset 0 -18px 26px rgba(84, 42, 48, 0.16);
}

.smile-shot::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 18%;
  right: 18%;
  top: 45%;
  height: 19%;
  border-radius: 28px;
  background:
    linear-gradient(90deg, #fff 0 15%, #eef7f7 15% 17%, #fff 17% 32%, #eef7f7 32% 34%, #fff 34% 49%, #eef7f7 49% 51%, #fff 51% 66%, #eef7f7 66% 68%, #fff 68% 83%, #eef7f7 83% 85%, #fff 85%),
    #fff;
  box-shadow: 0 10px 18px rgba(62, 78, 82, 0.12);
}

.smile-shot--after::before {
  left: 10%;
  right: 10%;
}

.smile-shot--after::after {
  left: 14%;
  right: 14%;
  top: 44%;
  height: 21%;
  background:
    linear-gradient(90deg, #fff 0 16%, #f7ffff 16% 18%, #fff 18% 34%, #f7ffff 34% 36%, #fff 36% 52%, #f7ffff 52% 54%, #fff 54% 70%, #f7ffff 70% 72%, #fff 72% 88%, #f7ffff 88% 90%, #fff 90%),
    #fff;
}

.smile-shot span {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(17, 23, 27, 0.78);
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
}

.smile-shot i {
  position: absolute;
  z-index: 2;
  left: 18%;
  right: 18%;
  bottom: 18%;
  height: 9px;
  border-radius: 999px;
  background: rgba(98, 58, 64, 0.16);
}

.work-card--2 .smile-shot {
  background:
    radial-gradient(ellipse at 50% 54%, rgba(62, 74, 82, 0.18) 0 20%, transparent 21%),
    linear-gradient(180deg, rgba(246, 250, 251, 0.98), rgba(219, 232, 236, 0.95)),
    linear-gradient(115deg, rgba(174, 189, 255, 0.46), rgba(198, 179, 127, 0.35));
}

.work-card--3 .smile-shot {
  background:
    radial-gradient(ellipse at 50% 54%, rgba(70, 56, 88, 0.18) 0 20%, transparent 21%),
    linear-gradient(180deg, rgba(255, 251, 248, 0.98), rgba(223, 234, 238, 0.95)),
    linear-gradient(115deg, rgba(236, 197, 184, 0.56), rgba(184, 199, 255, 0.34));
}

.work-card__body {
  padding: 22px;
}

.work-card__body small,
.promo-card span,
.contact-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
  text-transform: uppercase;
}

.work-card__body h2,
.promo-card h2,
.service-panel h2,
.appointment-panel h2 {
  margin: 8px 0 12px;
  font-size: 1.34rem;
  line-height: 1.12;
}

.work-card__body p {
  margin: 7px 0 0;
  color: #56666d;
  line-height: 1.35;
}

.review-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  height: 100%;
}

.review-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px;
  text-align: center;
}

.review-score svg {
  color: var(--gold);
}

.review-score strong {
  margin-top: 18px;
  font-size: 4rem;
  line-height: 1;
}

.review-score span {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 760;
}

.client-strip {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 26px;
}

.client-strip em {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  color: #65737b;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 730;
}

.client-strip b {
  color: #15191d;
}

.review-grid {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.review-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-card div > strong {
  font-size: 1.16rem;
}

.review-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-weight: 820;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #d8a62a;
  filter:
    drop-shadow(0 3px 5px rgba(136, 91, 7, 0.24))
    drop-shadow(0 0 9px rgba(216, 166, 42, 0.48));
}

.rating-stars svg {
  stroke-width: 1.7;
}

.rating-stars svg:not(.is-filled) {
  opacity: 0.28;
}

.review-public-tools {
  position: absolute;
  z-index: 8;
  right: 14px;
  top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.review-public-tools .admin-content-tools {
  position: static;
}

.review-compose-button,
.review-form__save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: #11171b;
  color: white;
  padding: 0 18px;
  box-shadow: 0 18px 46px rgba(17, 23, 27, 0.18);
  font-weight: 840;
}

.review-form {
  display: grid;
  gap: 18px;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
    linear-gradient(145deg, color-mix(in srgb, var(--aurora-1) 16%, transparent), color-mix(in srgb, var(--aurora-2) 12%, transparent));
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.review-form label {
  display: grid;
  gap: 8px;
  color: #53636b;
  font-weight: 780;
}

.review-form input,
.review-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 23, 27, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #11171b;
  font: inherit;
}

.review-form input {
  height: 54px;
  padding: 0 18px;
}

.review-form textarea {
  min-height: 150px;
  padding: 16px 18px;
  resize: none;
}

.review-form__rating {
  display: flex;
  gap: 8px;
}

.review-form__rating button {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(17, 23, 27, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #a7a09a;
}

.review-form__rating button.is-selected {
  color: #d8a62a;
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(216, 166, 42, 0.22) inset,
    0 0 18px rgba(216, 166, 42, 0.38);
}

.review-form__rating button:not(.is-selected) {
  opacity: 0.64;
}

.review-form [data-review-status] {
  min-height: 20px;
  margin: 0;
  color: #53636b;
  font-weight: 760;
}

.review-form__save {
  min-height: 56px;
  border-radius: 20px;
}

.review-card p {
  margin: 18px 0 0;
  color: #45555d;
  font-size: 1.04rem;
  line-height: 1.45;
}

.document-grid {
  align-items: stretch;
}

.documents-hub-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.documents-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 0;
  padding: 28px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease;
}

.documents-hub-card:hover {
  transform: translateY(-2px);
}

.documents-hub-card::before {
  content: "";
  position: absolute;
  inset: 24px 24px auto;
  height: 44%;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.24)),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(30, 42, 48, 0.08) 19px 20px);
}

.documents-hub-card span {
  position: absolute;
  z-index: 1;
  right: 24px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 23px;
  background: rgba(17, 23, 27, 0.92);
  color: white;
}

.documents-hub-card strong,
.documents-hub-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.documents-hub-card strong {
  font-size: 1.68rem;
  line-height: 1.05;
}

.documents-hub-card small {
  margin-top: 10px;
  color: #5a686f;
  font-size: 0.96rem;
  font-weight: 760;
}

.documents-hub-card--mint {
  background: color-mix(in srgb, var(--mint) 24%, white);
}

.documents-hub-card--ice {
  background: color-mix(in srgb, var(--ice) 62%, white);
}

.documents-hub-card--gold {
  background: color-mix(in srgb, var(--gold) 24%, white);
}

.documents-hub-card--rose {
  background: color-mix(in srgb, var(--rose) 34%, white);
}

.document-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease;
}

.document-card::before {
  content: "";
  position: absolute;
  inset: 24px 24px auto;
  height: 44%;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(180deg, transparent 0 17px, rgba(30, 42, 48, 0.08) 18px 19px);
}

.document-card--mint,
.document-sheet--mint {
  background: color-mix(in srgb, var(--mint) 23%, white);
}

.document-card--ice,
.document-sheet--ice {
  background: color-mix(in srgb, var(--ice) 60%, white);
}

.document-card--gold,
.document-sheet--gold {
  background: color-mix(in srgb, var(--gold) 24%, white);
}

.document-card--rose,
.document-sheet--rose {
  background: color-mix(in srgb, var(--rose) 34%, white);
}

.document-card__icon {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(17, 23, 27, 0.9);
  color: white;
}

.document-card p,
.document-card h3,
.document-card strong {
  position: relative;
  z-index: 1;
}

.document-card p {
  margin: 0 0 10px;
  color: #5a686f;
  font-weight: 760;
}

.document-card h3 {
  margin: 0;
  font-size: 1.46rem;
  line-height: 1.12;
}

.document-card strong {
  margin-top: 18px;
  font-size: 1.1rem;
}

.document-viewer {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(17, 23, 27, 0.08);
}

.document-viewer__back {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 2;
}

.document-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(680px, 72%);
  height: 88%;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 34px;
  box-shadow: var(--shadow);
  text-align: center;
}

.document-sheet__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #11171b;
  color: var(--gold);
}

.document-sheet p {
  margin: 24px 0 12px;
  color: #6b7a82;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-sheet h2 {
  max-width: 520px;
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.05;
}

.document-sheet span {
  margin-top: 18px;
  color: #596870;
  font-size: 1.1rem;
}

.document-sheet strong {
  margin-top: 20px;
  font-size: 1.55rem;
}

.document-lines {
  display: grid;
  gap: 12px;
  width: 74%;
  margin-top: 38px;
}

.document-lines i {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: rgba(17, 23, 27, 0.12);
}

.promo-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
}

.promo-card h2 {
  margin-top: 18px;
  font-size: 1.8rem;
}

.promo-card p {
  margin: 0;
  color: #526169;
  font-size: 1.04rem;
  line-height: 1.45;
}

.promo-card strong {
  margin-top: auto;
  color: #11171b;
  font-size: 2rem;
}

.service-panel {
  display: grid;
  grid-template-rows: auto repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 24px;
}

.service-panel h2 {
  margin: 0 0 8px;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(17, 23, 27, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease;
}

.service-row span {
  min-width: 0;
}

.service-row strong,
.service-row small {
  display: block;
}

.service-row strong {
  font-size: 1.02rem;
  line-height: 1.18;
}

.service-row small {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.service-row em {
  flex: 0 0 auto;
  color: #11171b;
  font-style: normal;
  font-weight: 830;
}

.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 18px;
  height: 100%;
}

.appointment-panel {
  min-height: 0;
  padding: 24px;
}

.appointment-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.doctor-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  height: calc(100% - 52px);
}

.doctor-picker button {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 27, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  text-align: left;
}

.doctor-picker button.is-selected,
.time-grid button.is-selected {
  border-color: rgba(17, 23, 27, 0.5);
  background: rgba(17, 23, 27, 0.92);
  color: white;
}

.doctor-picker img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  object-fit: cover;
}

.doctor-picker span {
  display: block;
  min-height: 92px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.doctor-picker button.is-selected span {
  background: rgba(17, 23, 27, 0.92);
}

.doctor-picker strong,
.doctor-picker small {
  display: block;
}

.doctor-picker strong {
  font-size: 1.02rem;
  line-height: 1.08;
}

.doctor-picker small {
  margin-top: 6px;
  color: currentColor;
  opacity: 0.64;
  line-height: 1.24;
}

.appointment-panel--time {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 16px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
}

.time-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(17, 23, 27, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 820;
}

.visit-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 0 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
}

.visit-summary span {
  color: #526169;
  font-weight: 760;
}

.visit-summary strong {
  font-size: 1.5rem;
}

.confirm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 72px;
  border-radius: 22px;
  background: #11171b;
  color: white;
  font-weight: 840;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  height: 100%;
}

.map-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(217, 236, 237, 0.52)),
    linear-gradient(90deg, rgba(143, 216, 206, 0.18), rgba(197, 167, 100, 0.1));
}

.map-gridline {
  position: absolute;
  border-radius: 999px;
  background: rgba(17, 23, 27, 0.08);
}

.map-gridline--one {
  left: -10%;
  right: 8%;
  top: 33%;
  height: 18px;
  transform: rotate(-14deg);
}

.map-gridline--two {
  left: 34%;
  top: -12%;
  bottom: -10%;
  width: 18px;
  transform: rotate(22deg);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 38%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 28px;
  background: #11171b;
  color: var(--gold);
  box-shadow: 0 18px 40px rgba(17, 23, 27, 0.22);
}

.map-panel strong {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
}

.map-panel em {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: var(--muted);
  font-style: normal;
  font-weight: 760;
}

.contact-card-grid {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
}

.contact-card,
.route-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 24px;
}

.contact-card strong,
.route-card strong {
  margin-top: 10px;
  font-size: 1.28rem;
  line-height: 1.14;
}

.route-card {
  background: #11171b;
  color: white;
}

.route-card svg {
  color: var(--gold);
}

.route-card span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.3;
}

.thanks-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 48px;
  text-align: center;
}

.thanks-layout h2 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.05;
}

.thanks-layout p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.45;
}

.thanks-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.thanks-actions button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 62px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 820;
}

@media (max-width: 1180px) {
  .screen-shell {
    padding: 24px;
  }

  .screen-grid:has(.screen-aside) {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .screen-heading h1,
  .splash-screen h1 {
    font-size: 3.3rem;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .doctors-grid,
  .works-grid,
  .promo-grid,
  .services-grid,
  .document-grid,
  .documents-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-grid .promo-card:nth-child(3),
  .services-grid .service-panel:nth-child(3),
  .document-grid .document-card:nth-child(3) {
    display: none;
  }

  .splash-screen {
    grid-template-columns: 1fr;
  }

  .splash-card {
    display: none;
  }
}

@media (max-height: 790px) {
  .screen-shell {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .topbar {
    height: 54px;
    margin-bottom: 18px;
  }

  .brand-chip,
  .icon-action {
    height: 48px;
  }

  .screen-grid {
    height: calc(100% - 72px);
    gap: 18px;
  }

  .screen-heading h1,
  .splash-screen h1 {
    font-size: 3.15rem;
  }

  .screen-subtitle {
    margin-top: 10px;
    font-size: 1rem;
  }

  .profile-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .primary-action {
    min-height: 76px;
  }
}

@media (max-width: 820px) {
  .topbar__actions span {
    display: none;
  }

  .icon-action {
    min-width: 54px;
    padding: 0;
  }

  .screen-grid:has(.screen-aside) {
    grid-template-columns: minmax(0, 1fr);
  }

  .screen-aside {
    display: none;
  }

  .profile-layout,
  .appointment-layout,
  .contacts-layout,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .profile-photo,
  .review-score,
  .contact-card-grid {
    display: none;
  }
}

/* The editor temporarily expands the terminal canvas so every moved block remains reachable. */
.screen-layer.page-layout-editor-active {
  overflow: auto !important;
  overscroll-behavior: contain;
  scrollbar-color: color-mix(in srgb, var(--gold) 68%, transparent) transparent;
}

.screen-layer.page-layout-editor-active .screen-shell,
.screen-layer.page-layout-editor-active .splash-screen {
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.screen-layer.page-layout-editor-active .screen-grid,
.screen-layer.page-layout-editor-active .screen-content {
  overflow: visible !important;
}

.page-layout-editor-active .page-layout-target {
  min-width: min-content;
  min-height: min-content;
}

.page-layout-handle {
  gap: 4px;
}

.page-layout-handle > .page-layout-handle__resize {
  font-size: 0.84rem;
}

.layout-custom-card--text {
  border-style: dashed;
}

.layout-custom-card--link {
  border-color: color-mix(in srgb, var(--gold) 72%, var(--card-border));
}

.layout-custom-card--video {
  align-content: start;
}

.layout-custom-card__video,
.layout-custom-card__media-placeholder {
  display: block;
  width: 100%;
  min-height: 116px;
  max-height: 240px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--icon-bg) 82%, black);
  object-fit: var(--site-block-media-fit, cover);
  object-position: var(--site-block-media-position, center);
}

.layout-custom-card__media-placeholder {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 800;
}

.layout-custom-card__link {
  justify-self: start;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--gold) 54%, transparent);
  border-radius: 9px;
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.layout-custom-card__url {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.page-layout-editor-active .layout-custom-card__url[contenteditable="true"] {
  min-width: 10ch;
}

/* Visual page composer. It is rendered only for an authenticated administrator. */
.page-layout-toolbar {
  position: fixed;
  z-index: 90;
  top: max(18px, env(safe-area-inset-top));
  right: clamp(16px, 3vw, 48px);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--glass-strong) 90%, white);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--theme-glow) 24%, transparent);
  backdrop-filter: blur(18px);
}

.page-layout-toolbar.is-positioned {
  right: auto !important;
  bottom: auto !important;
}

.page-layout-toolbar.is-dragging {
  user-select: none;
  opacity: 0.92;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--theme-glow) 34%, transparent);
}

.page-layout-toolbar button,
.page-layout-toolbar__status {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--heading) 13%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--glass) 78%, white);
  color: var(--heading);
  font-size: 0.76rem;
  font-weight: 800;
}

.page-layout-toolbar__status {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}

.page-layout-toolbar__drag {
  display: inline-grid;
  width: 28px;
  min-height: 34px;
  place-items: center;
  padding: 0 !important;
  border-color: color-mix(in srgb, var(--gold) 46%, transparent) !important;
  color: var(--gold) !important;
  cursor: grab;
  font-size: 1.05rem !important;
  line-height: 1;
  touch-action: none;
  user-select: none;
}

.page-layout-toolbar__drag:active {
  cursor: grabbing;
}

.page-layout-toolbar__start,
.page-layout-toolbar__save {
  border-color: color-mix(in srgb, var(--gold) 74%, transparent) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 74%, white), var(--gold)) !important;
  color: #191611 !important;
}

/* The composer stays available without covering the kiosk with a large button. */
.page-layout-toolbar.is-compact {
  width: 32px;
  max-width: none;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.page-layout-toolbar.is-compact .page-layout-toolbar__start {
  display: grid;
  width: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--gold) !important;
  font-size: 1.45rem;
  line-height: 1;
  text-shadow: 0 0 13px color-mix(in srgb, var(--gold) 62%, transparent);
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.page-layout-toolbar.is-compact .page-layout-toolbar__start:hover,
.page-layout-toolbar.is-compact .page-layout-toolbar__start:focus-visible {
  color: color-mix(in srgb, var(--gold) 72%, white) !important;
  outline: none;
  text-shadow: 0 0 19px color-mix(in srgb, var(--gold) 82%, transparent);
  transform: scale(1.12);
}

.page-layout-editor-active {
  isolation: isolate;
}

.page-layout-editor-active::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(197, 166, 86, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(197, 166, 86, 0.14) 1px, transparent 1px);
  background-size: 8px 8px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 84%);
}

.page-layout-target {
  position: relative;
  left: var(--page-layout-x, 0px);
  top: var(--page-layout-y, 0px);
}

.page-layout-editor-active .page-layout-target {
  z-index: 30;
  overflow: visible !important;
  outline: 1px dashed color-mix(in srgb, var(--gold) 66%, transparent);
  outline-offset: 4px;
  cursor: default;
}

.page-layout-editor-active .page-layout-target:hover,
.page-layout-editor-active .page-layout-target.is-layout-selected {
  outline: 2px solid var(--gold);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 14%, transparent), 0 15px 34px color-mix(in srgb, var(--theme-glow) 22%, transparent);
}

.page-layout-handle {
  position: absolute;
  z-index: 50;
  inset: -16px -16px auto auto;
  display: flex;
  gap: 3px;
  pointer-events: auto;
}

.page-layout-handle > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid color-mix(in srgb, var(--gold) 72%, transparent);
  border-radius: 8px;
  background: #151a1d;
  color: var(--gold);
  box-shadow: 0 8px 18px rgba(5, 18, 25, 0.26);
  cursor: grab;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  user-select: none;
  touch-action: none;
}

.page-layout-handle > span:active {
  cursor: grabbing;
}

.menu-tile__media--custom {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
}

.layout-custom-card:not(.menu-tile) {
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 112px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--gold) 36%, var(--card-border));
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-base-1) 90%, white), color-mix(in srgb, var(--card-base-2) 88%, white));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--theme-glow) 17%, transparent);
}

.layout-custom-card:not(.menu-tile) strong {
  color: var(--heading);
  font-size: 1rem;
}

.layout-custom-card:not(.menu-tile) small {
  color: var(--muted);
  font-size: 0.84rem;
}

.page-layout-editor-active .layout-custom-card [contenteditable="true"] {
  position: relative;
  z-index: 3;
  display: inline-block;
  min-width: 4ch;
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--glass-strong) 82%, white);
}

.page-layout-context-menu {
  position: fixed;
  z-index: 170;
  display: grid;
  min-width: 196px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--glass-strong) 94%, white);
  box-shadow: 0 20px 52px rgba(3, 13, 18, 0.3);
  backdrop-filter: blur(18px);
}

.page-layout-context-menu button {
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--heading);
  text-align: left;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.page-layout-context-menu button:hover {
  background: color-mix(in srgb, var(--gold) 15%, transparent);
}

.page-layout-context-menu .is-danger {
  color: #9a4538;
}

.page-layout-save-overlay {
  position: fixed;
  z-index: 190;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 14, 19, 0.56);
  backdrop-filter: blur(12px);
}

.page-layout-save-overlay > div {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: min(300px, calc(100vw - 36px));
  padding: 25px;
  border: 1px solid color-mix(in srgb, var(--gold) 48%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--glass-strong) 92%, white);
  color: var(--heading);
  box-shadow: 0 24px 70px rgba(2, 13, 20, 0.38);
}

.page-layout-save-overlay span {
  width: 28px;
  height: 28px;
  border: 3px solid color-mix(in srgb, var(--gold) 25%, transparent);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: admin-upload-spin 850ms linear infinite;
}

.page-layout-save-overlay small {
  color: var(--muted);
}

@media (max-width: 680px) {
  .page-layout-toolbar {
    top: auto;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    justify-content: center;
    max-width: calc(100vw - 24px);
  }

  .page-layout-toolbar__status {
    display: none;
  }

  .page-layout-toolbar button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.7rem;
  }

  .page-layout-handle {
    inset: -13px -7px auto auto;
  }
}

/* Local media preparation stays visible until the administrator confirms the save. */
.admin-upload-overlay {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 15, 20, 0.58);
  backdrop-filter: blur(14px);
}

.admin-upload-dialog {
  display: grid;
  gap: 12px;
  width: min(450px, calc(100vw - 36px));
  padding: 26px;
  overflow: hidden;
  color: var(--heading);
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, rgba(255, 255, 255, 0.66));
  border-radius: 24px;
  background: color-mix(in srgb, var(--glass-strong) 92%, white);
  box-shadow: 0 28px 80px rgba(4, 17, 26, 0.36);
}

.admin-upload-dialog h2,
.admin-upload-dialog p {
  margin: 0;
}

.admin-upload-dialog h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
}

.admin-upload-dialog .eyebrow {
  color: var(--muted);
}

.admin-upload-dialog__loader {
  justify-self: center;
  width: 26px;
  height: 26px;
  border: 3px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: admin-upload-spin 850ms linear infinite;
}

.admin-upload-dialog__file,
.admin-upload-dialog__status {
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.admin-upload-dialog__preview-wrap {
  display: grid;
  place-items: center;
  min-height: 152px;
  max-height: 236px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 17px;
  background: color-mix(in srgb, var(--glass) 74%, white);
}

.admin-upload-dialog__preview {
  display: block;
  max-width: 100%;
  max-height: 214px;
  object-fit: contain;
  border-radius: 11px;
}

.admin-upload-dialog__placeholder {
  max-width: 100%;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-upload-dialog__progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--heading) 10%, transparent);
  box-shadow: inset 0 1px 2px rgba(12, 31, 44, 0.12);
}

.admin-upload-dialog__progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
  transition: width 180ms ease;
}

.admin-upload-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-upload-dialog__actions button {
  min-height: 44px;
  border-radius: 13px;
  font-weight: 800;
}

.admin-upload-dialog__save {
  border-color: color-mix(in srgb, var(--gold) 76%, #8d651d);
  background: linear-gradient(135deg, #c9a754, var(--gold));
  color: #1d1a12;
}

.admin-upload-dialog__cancel {
  border-color: color-mix(in srgb, var(--heading) 17%, transparent);
  background: color-mix(in srgb, var(--glass) 82%, white);
  color: var(--heading);
}

.admin-upload-dialog__actions button:disabled {
  cursor: wait;
  opacity: 0.5;
}

@keyframes admin-upload-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .admin-upload-overlay {
    align-items: end;
    padding: 12px;
  }

  .admin-upload-dialog {
    width: min(100%, 450px);
    padding: 20px;
    border-radius: 20px;
  }

  .admin-upload-dialog__preview-wrap {
    min-height: 126px;
    max-height: 190px;
  }

  .admin-upload-dialog__preview {
    max-height: 168px;
  }
}

/* Dr. Osmanov kiosk refresh */
.kiosk-app {
  background:
    radial-gradient(ellipse at 16% 7%, color-mix(in srgb, var(--aurora-1) 42%, transparent), transparent 42%),
    radial-gradient(ellipse at 84% 11%, color-mix(in srgb, var(--aurora-2) 36%, transparent), transparent 46%),
    radial-gradient(ellipse at 48% 98%, color-mix(in srgb, var(--aurora-3) 28%, transparent), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--glass-strong) 76%, transparent), color-mix(in srgb, var(--surface-tint) 62%, transparent) 48%, color-mix(in srgb, var(--aurora-2) 16%, transparent)),
    linear-gradient(90deg, color-mix(in srgb, var(--aurora-1) 18%, transparent), transparent 42%, color-mix(in srgb, var(--aurora-3) 17%, transparent)),
    var(--surface-tint);
}

.tooth-backdrop {
  position: absolute;
  z-index: 0;
  right: -5vw;
  top: 50%;
  width: min(70vw, 760px);
  height: auto;
  opacity: 0.18;
  filter: drop-shadow(0 30px 80px rgba(199, 169, 106, 0.32));
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}

.splash-mark {
  background: rgba(255, 255, 255, 0.62);
}

.splash-mark img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.splash-card--photo {
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 18px;
}

.hero-photo {
  min-height: 0;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-photo img,
.clinic-side-photo img,
.work-photo img,
.client-story img,
.map-panel--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo--reception img {
  object-position: center 40%;
}

.menu-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.menu-grid .menu-tile:nth-child(7) {
  grid-column: span 2;
}

.menu-aside--clinic {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.clinic-side-photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.clinic-side-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(10, 16, 19, 0.74));
}

.clinic-side-photo span {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 20px;
  color: white;
  font-size: 1.28rem;
  font-weight: 840;
}

.doctors-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doctor-card__photo img,
.profile-photo img,
.doctor-picker img {
  object-position: center top;
}

.works-grid--photo {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.work-card--photo {
  min-width: 0;
}

.work-photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #d9e6e9;
}

.work-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(14, 20, 24, 0.62));
  pointer-events: none;
}

.work-photo img {
  filter: saturate(0.96) contrast(1.03);
}

.work-photo span {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(16, 22, 25, 0.74);
  color: white;
  font-size: 0.72rem;
  font-weight: 840;
  text-transform: uppercase;
}

.work-card--photo .work-card__body {
  padding: 16px 17px 17px;
}

.work-card--photo .work-card__body h2 {
  margin: 6px 0 8px;
  font-size: 1.04rem;
  line-height: 1.12;
}

.work-card--photo .work-card__body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #536269;
  font-size: 0.88rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-carousel,
.client-viewer {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 18px;
  height: 100%;
  min-height: 0;
}

.work-media-filter {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: center;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--glass-strong) 82%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 13%, transparent);
}

.work-media-filter button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 780;
}

.work-media-filter button.is-active {
  background: color-mix(in srgb, var(--accent) 26%, var(--glass-strong));
  box-shadow: 0 4px 13px color-mix(in srgb, var(--accent) 24%, transparent);
}

.work-slide,
.client-viewer__card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px);
}

.work-slide__photo,
.client-viewer__card {
  position: relative;
}

.work-slide__photo,
.client-viewer__card > img {
  min-height: 0;
  overflow: hidden;
  background: #dce9ef;
}

.work-slide__photo img,
.work-slide__photo video,
.client-viewer__card > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #11171b;
}

.work-slide__photo span {
  position: absolute;
  left: 22px;
  top: 22px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(17, 23, 27, 0.78);
  color: white;
  font-size: 0.8rem;
  font-weight: 840;
  text-transform: uppercase;
}

.work-slide__photo > .admin-media-edit,
.client-viewer__card > .admin-media-edit,
.client-story > .admin-media-edit {
  z-index: 10;
  right: 12px;
  top: 12px;
  left: auto;
  display: inline-flex;
  width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  color: #c7a96a;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0;
  font-weight: inherit;
  text-transform: none;
}

.work-slide__info,
.client-viewer__card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  padding: 18px 22px;
}

.work-slide__info small,
.work-slide__info h2,
.work-slide__info p,
.client-viewer__card strong,
.client-viewer__card span {
  min-width: 0;
}

.work-slide__info small,
.client-viewer__card span {
  color: var(--muted);
  font-weight: 760;
}

.work-slide__info h2,
.client-viewer__card strong {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.08;
}

.work-slide__info p {
  grid-column: 1;
  margin: 0;
  color: #536269;
  line-height: 1.34;
}

.work-slide__info em,
.client-viewer__card em {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  color: #11171b;
  font-style: normal;
  font-size: 1.18rem;
  font-weight: 860;
}

.work-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #11171b;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.work-nav-button:disabled {
  cursor: default;
  opacity: 0.34;
  filter: grayscale(0.45);
  pointer-events: none;
}

.client-viewer__card > img {
  object-fit: contain;
}

.review-grid--six {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.review-card {
  min-width: 0;
}

.review-card small {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 740;
}

.review-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.review-score .primary-action {
  width: 100%;
  margin-top: 18px;
}

.review-score .primary-action strong {
  margin-top: 0;
  font-size: 1.08rem;
  line-height: 1.1;
}

.review-score .primary-action span {
  margin-top: 0;
  color: inherit;
  font-weight: inherit;
}

.review-score .primary-action small {
  color: rgba(255, 255, 255, 0.68);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
  height: 100%;
  min-height: 0;
}

.client-story {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-align: left;
  appearance: none;
}

.client-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(13, 19, 23, 0.72));
}

.client-story div {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: white;
}

.client-story strong,
.client-story span {
  display: block;
}

.client-story strong {
  font-size: 1.24rem;
  line-height: 1.08;
}

.client-story span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 720;
}

.services-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.services-grid--four .service-panel {
  grid-template-rows: auto repeat(3, minmax(0, 1fr));
  padding: 20px;
}

.services-grid--four .service-row {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.services-grid--four .service-row em {
  font-size: 1.03rem;
}

.map-panel--photo {
  background: #dce9ef;
}

.map-panel--photo img {
  position: absolute;
  inset: 0;
  filter: saturate(0.95) contrast(1.02);
}

.map-panel--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 18, 0.06), rgba(8, 14, 18, 0.74));
}

.map-panel--photo strong,
.map-panel--photo em,
.map-panel--photo .map-pin,
.map-panel--photo .map-panel__link-edit {
  z-index: 1;
}

.map-panel--photo strong,
.map-panel--photo em {
  color: white;
}

.map-panel--photo em {
  color: rgba(255, 255, 255, 0.76);
}

.map-panel__link-edit {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.documents-hub-card::before,
.document-card::before {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

@media (max-width: 1180px) {
  .menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .doctors-grid--team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .doctors-grid--three,
  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .works-grid--photo {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .services-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .services-grid.services-grid--four .service-panel:nth-child(3),
  .services-grid.services-grid--four .service-panel:nth-child(4),
  .document-grid .document-card:nth-child(3) {
    display: grid;
  }

  .promo-grid .promo-card:nth-child(3) {
    display: flex;
  }
}

@media (max-height: 790px) {
  .works-grid--photo {
    gap: 10px;
  }

  .work-card--photo .work-card__body {
    padding: 12px;
  }

  .work-card--photo .work-card__body h2 {
    font-size: 0.94rem;
  }

  .work-card--photo .work-card__body p {
    -webkit-line-clamp: 1;
  }

  .review-card {
    padding: 18px;
  }

  .review-card p {
    margin-top: 8px;
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 820px) {
  .menu-grid,
  .works-grid--photo,
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .review-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .tooth-backdrop {
    width: 86vw;
    right: -22vw;
  }
}

@media (max-width: 640px) {
  :root {
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
  }

  html,
  body,
  #root {
    min-width: 320px;
  }

  .screen-shell {
    padding: max(16px, env(safe-area-inset-top)) 28px max(18px, env(safe-area-inset-bottom));
  }

  .topbar {
    height: 56px;
    margin-bottom: 20px;
  }

  .brand-chip {
    max-width: 188px;
    height: 52px;
    padding: 0 16px;
    gap: 10px;
    font-size: 0.98rem;
  }

  .brand-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar__actions {
    gap: 10px;
  }

  .icon-action {
    min-width: 52px;
    width: 52px;
    height: 52px;
    padding: 0;
  }

  .screen-grid,
  .screen-grid:has(.screen-aside) {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100% - 76px);
    gap: 18px;
  }

  .screen-heading h1,
  .splash-screen h1 {
    max-width: 10ch;
    font-size: clamp(3.05rem, 13vw, 4rem);
    line-height: 1.08;
  }

  .screen-heading h1 {
    text-wrap: balance;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 0.76rem;
    letter-spacing: 0.22em;
  }

  .screen-subtitle {
    max-width: 34ch;
    margin-top: 12px;
    font-size: 1.06rem;
    line-height: 1.38;
  }

  .screen-content {
    min-height: 0;
    overflow: hidden;
  }

  .screen-aside {
    display: none;
  }

  .splash-screen {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 34px 28px;
  }

  .splash-mark {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    border-radius: 24px;
  }

  .splash-mark img {
    width: 54px;
    height: 54px;
  }

  .splash-lead {
    max-width: 32ch;
    margin-top: 20px;
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .splash-actions {
    gap: 12px;
    margin-top: 28px;
  }

  .start-button,
  .ghost-button {
    height: 58px;
    min-width: 0;
    padding: 0 20px;
  }

  .feature-strip {
    gap: 8px;
    margin-top: 24px;
  }

  .feature-strip span {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.76rem;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .menu-grid .menu-tile:nth-child(7) {
    grid-column: 1 / -1;
  }

  .menu-tile {
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 0;
    padding: 10px 8px;
    border-radius: 22px;
    text-align: center;
  }

  .menu-tile__icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .menu-tile__icon svg {
    width: 24px;
    height: 24px;
  }

  .menu-tile strong {
    margin-top: 2px;
    font-size: clamp(0.78rem, 3vw, 0.95rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .menu-tile small {
    display: none;
  }

  .doctors-grid--team,
  .doctors-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .doctors-grid--team {
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .doctors-grid--three {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .doctors-grid--three .doctor-card:nth-child(3) {
    width: calc(50% - 5px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .doctor-card {
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 0;
    padding: 10px;
    border-radius: 26px;
  }

  .doctor-card::before {
    inset: auto 10px 10px;
    height: 38%;
    border-radius: 20px;
  }

  .doctor-card__photo {
    border-radius: 22px;
  }

  .doctor-card__photo img {
    object-position: center top;
  }

  .doctor-card__body {
    min-height: 0;
    padding: 0 2px 3px;
  }

  .doctor-card__body small {
    display: none;
  }

  .doctor-card__body strong {
    margin-top: 0;
    font-size: clamp(0.94rem, 3.9vw, 1.18rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .doctor-card__body em {
    margin-top: 5px;
    font-size: clamp(0.68rem, 2.55vw, 0.82rem);
    line-height: 1.12;
  }

  .doctor-card__arrow {
    display: none;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .profile-photo {
    display: none;
  }

  .profile-info {
    padding: 22px;
  }

  .profile-info p {
    font-size: 1rem;
    line-height: 1.42;
  }

  .competency-grid span {
    padding: 9px 11px;
    font-size: 0.82rem;
  }

  .profile-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .primary-action {
    min-height: 70px;
    padding: 12px;
    gap: 10px;
    border-radius: 18px;
  }

  .primary-action__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
  }

  .primary-action strong {
    font-size: 0.96rem;
    line-height: 1.1;
  }

  .primary-action small {
    display: none;
  }

  .works-grid--photo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .work-card--photo {
    grid-template-rows: minmax(0, 1fr);
    border-radius: 22px;
  }

  .work-card--photo .work-card__body {
    display: none;
  }

  .work-photo span {
    left: 10px;
    top: 10px;
    max-width: calc(100% - 20px);
    padding: 6px 8px;
    font-size: 0.6rem;
  }

  .review-layout,
  .contacts-layout,
  .appointment-layout {
    grid-template-columns: 1fr;
  }

  .review-score,
  .contact-card-grid {
    display: none;
  }

  .review-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .review-card {
    padding: 18px;
    border-radius: 22px;
  }

  .review-card div {
    align-items: flex-start;
    gap: 8px;
  }

  .review-card div > strong {
    font-size: clamp(1rem, 4vw, 1.24rem);
    line-height: 1.05;
  }

  .review-card span {
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .review-card p {
    display: none;
  }

  .review-card small {
    margin-top: 12px;
    font-size: 0.82rem;
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .client-story {
    border-radius: 28px;
  }

  .client-story div {
    left: 14px;
    right: 14px;
    bottom: 13px;
  }

  .client-story strong {
    font-size: clamp(0.94rem, 4.4vw, 1.18rem);
  }

  .client-story span {
    display: none;
  }

  .services-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .services-grid--four .service-panel {
    grid-template-rows: auto repeat(3, minmax(0, 1fr));
    padding: 14px;
    border-radius: 22px;
  }

  .service-panel h2 {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.1;
  }

  .services-grid--four .service-row {
    padding: 10px;
    border-radius: 16px;
    overflow: hidden;
  }

  .service-row strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.14;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .service-row small {
    display: none;
  }

  .services-grid--four .service-row em {
    margin-top: 7px;
    max-width: 100%;
    font-size: 0.76rem;
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .appointment-layout {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .appointment-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .appointment-panel h2 {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .doctor-picker {
    gap: 9px;
    height: calc(100% - 36px);
  }

  .doctor-picker button {
    border-radius: 18px;
  }

  .doctor-picker span {
    min-height: 64px;
    padding: 9px;
  }

  .doctor-picker strong {
    font-size: 0.76rem;
    line-height: 1.05;
  }

  .doctor-picker small {
    margin-top: 4px;
    font-size: 0.66rem;
    line-height: 1.05;
  }

  .appointment-panel--time {
    gap: 10px;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }

  .time-grid {
    gap: 8px;
  }

  .time-grid button {
    border-radius: 16px;
    font-size: 0.94rem;
  }

  .visit-summary {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 16px;
  }

  .visit-summary span {
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .visit-summary strong {
    font-size: 1.1rem;
  }

  .confirm-button {
    height: 54px;
    border-radius: 17px;
  }

  .map-panel {
    min-height: 0;
    padding: 26px;
    border-radius: 0;
  }

  .map-pin {
    width: 76px;
    height: 76px;
    border-radius: 26px;
  }

  .map-panel strong {
    font-size: clamp(2rem, 8vw, 2.65rem);
    line-height: 1.08;
  }

  .map-panel em {
    font-size: 1rem;
  }

  .document-grid,
  .documents-hub-grid,
  .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .work-carousel,
  .client-viewer {
    display: block;
    height: 100%;
  }

  .work-slide,
  .client-viewer__card {
    height: 100%;
    border-radius: 26px;
  }

  .work-slide__photo img,
  .client-viewer__card > img {
    object-fit: contain;
  }

  .work-slide__photo span {
    left: 14px;
    top: 14px;
    padding: 7px 10px;
    font-size: 0.68rem;
  }

  .work-slide__info,
  .client-viewer__card div {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 14px;
  }

  .work-slide__info h2,
  .client-viewer__card strong {
    font-size: 1rem;
    line-height: 1.08;
  }

  .work-slide__info p {
    display: none;
  }

  .work-slide__info small,
  .client-viewer__card span {
    font-size: 0.78rem;
  }

  .work-slide__info em,
  .client-viewer__card em {
    font-size: 0.94rem;
  }

  .work-nav-button {
    position: absolute;
    z-index: 5;
    top: 43%;
    width: 50px;
    height: 50px;
  }

  .work-nav-button--prev {
    left: 8px;
  }

  .work-nav-button--next {
    right: 8px;
  }

  .documents-screen .screen-heading h1 {
    max-width: 11ch;
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .documents-hub-card,
  .document-card {
    justify-content: flex-start;
    gap: 8px;
    padding: 16px;
    border-radius: 22px;
  }

  .documents-hub-card::before,
  .document-card::before {
    display: none;
  }

  .documents-hub-card span,
  .document-card__icon {
    position: static;
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 15px;
  }

  .documents-hub-card span svg,
  .document-card__icon svg {
    width: 23px;
    height: 23px;
  }

  .documents-hub-card strong,
  .document-card h3 {
    font-size: 1.04rem;
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .documents-hub-card small,
  .document-card p,
  .document-card strong {
    margin-top: 0;
    font-size: 0.78rem;
    line-height: 1.14;
  }

  .promotions-screen .screen-subtitle {
    display: none;
  }

  .promo-grid .promo-card:nth-child(3) {
    display: flex;
    grid-column: 1 / -1;
  }

  .promotions-screen .promo-grid {
    align-content: start;
    height: auto;
    grid-auto-rows: minmax(170px, auto);
  }

  .promo-card {
    min-height: 0;
    padding: 18px;
    overflow: hidden;
    border-radius: 22px;
  }

  .promo-card span {
    font-size: 0.76rem;
    line-height: 1.12;
  }

  .promo-card h2 {
    margin: 12px 0 10px;
    font-size: 1.18rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .promo-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
  }

  .promo-card strong {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.08;
  }

  .services-screen .screen-subtitle {
    display: none;
  }

  .services-grid--four .service-panel {
    grid-template-rows: auto repeat(3, minmax(0, 1fr));
    padding: 16px;
  }

  .service-panel h2 {
    font-size: 1.06rem;
  }

  .services-grid--four .service-row {
    display: block;
    padding: 10px 11px;
    border-radius: 14px;
  }

  .services-grid--four .service-row span {
    display: block;
    width: 100%;
  }

  .service-row strong {
    display: block;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.12;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    -webkit-line-clamp: unset;
  }

  .services-grid--four .service-row em {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .appointment-screen .screen-subtitle {
    display: none;
  }

  .appointment-screen .screen-heading h1 {
    font-size: clamp(2.75rem, 12vw, 3.5rem);
  }

  .appointment-layout {
    grid-template-rows: 43% 57%;
  }

  .appointment-panel {
    padding: 14px;
  }

  .doctor-picker button {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .doctor-picker span {
    min-height: 58px;
    padding: 8px;
  }

  .time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .time-grid button {
    min-height: 38px;
    font-size: 0.86rem;
  }

  .visit-summary {
    display: none;
  }

  .confirm-button {
    height: 50px;
  }
}

@media (max-width: 390px) {
  .screen-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .screen-heading h1,
  .splash-screen h1 {
    font-size: clamp(2.55rem, 12.4vw, 3.4rem);
  }

  .screen-subtitle {
    font-size: 0.96rem;
  }

  .menu-tile__icon,
  .primary-action__icon {
    width: 38px;
    height: 38px;
  }

  .menu-tile strong,
  .doctor-card__body strong {
    font-size: 0.78rem;
  }

  .review-card,
  .appointment-panel {
    padding: 14px;
  }
}

.admin-launcher,
.admin-bar,
.admin-panel,
.admin-modal {
  position: fixed;
  z-index: 50;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-launcher {
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: #11171b;
  color: white;
  font-size: 1.7rem;
  box-shadow: 0 18px 45px rgba(17, 23, 27, 0.26);
}

.admin-modal {
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 16, 19, 0.38);
  backdrop-filter: blur(16px);
}

.admin-login {
  display: grid;
  gap: 14px;
  width: min(360px, calc(100vw - 36px));
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.admin-login h2,
.admin-panel h3 {
  margin: 0;
}

.admin-login label,
.admin-panel label {
  display: grid;
  gap: 7px;
  color: #4d5c64;
  font-size: 0.82rem;
  font-weight: 760;
}

.admin-login input,
.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(17, 23, 27, 0.14);
  border-radius: 12px;
  background: white;
  color: #11171b;
  font: inherit;
  font-size: 0.9rem;
}

.admin-login input,
.admin-panel input,
.admin-panel select {
  height: 42px;
  padding: 0 12px;
}

.admin-panel textarea {
  min-height: 88px;
  padding: 11px 12px;
  resize: vertical;
}

.admin-login div,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-login button,
.admin-bar button,
.admin-panel button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: #11171b;
  color: white;
  padding: 0 14px;
  font-weight: 760;
}

.admin-login button[type="button"],
.admin-bar button + button,
.admin-panel summary button,
.admin-panel nav button {
  background: rgba(17, 23, 27, 0.08);
  color: #11171b;
}

.admin-message,
.admin-hint {
  margin: 0;
  color: #607078;
  font-size: 0.84rem;
  line-height: 1.35;
}

.admin-bar {
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.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;
}

.admin-bar--inline {
  z-index: 89;
  top: max(18px, env(safe-area-inset-top));
  right: calc(clamp(16px, 3vw, 48px) + 42px);
  bottom: auto;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-bar--inline .admin-bar__icon {
  display: grid;
  width: 30px;
  min-height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--gold) !important;
  font-size: 1.25rem;
  line-height: 1;
  text-shadow: 0 0 13px color-mix(in srgb, var(--gold) 58%, transparent);
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.admin-bar--inline .admin-bar__icon:hover,
.admin-bar--inline .admin-bar__icon:focus-visible {
  color: color-mix(in srgb, var(--gold) 72%, white) !important;
  outline: none;
  text-shadow: 0 0 19px color-mix(in srgb, var(--gold) 82%, transparent);
  transform: scale(1.12);
}

body:has(.page-layout-toolbar.is-editing) .admin-bar--inline {
  display: none;
}

@media (max-width: 680px) {
  .admin-bar--inline {
    top: auto;
    right: 54px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* Local-only publisher controls. They are mounted only for an authenticated admin. */
.publisher-modal {
  position: fixed;
  z-index: 145;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.5vw, 32px);
  background: rgba(14, 26, 36, 0.42);
  backdrop-filter: blur(12px);
}

.publisher-panel {
  width: min(1180px, 100%);
  max-height: min(92dvh, 920px);
  overflow: auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid color-mix(in srgb, var(--text, #101820) 16%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface, #f7fbfd) 92%, white);
  box-shadow: 0 28px 80px rgba(4, 14, 24, 0.28);
  color: var(--text, #101820);
}

.publisher-panel__head,
.publisher-section__head,
.publisher-profile,
.publisher-action-row,
.publisher-terminal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.publisher-panel__head,
.publisher-section__head { justify-content: space-between; }

.publisher-panel__head h2,
.publisher-section__head h3,
.publisher-profile h4,
.publisher-profile p,
.publisher-panel__notice,
.publisher-panel__hint,
.publisher-panel__error,
.publisher-empty,
.publisher-terminal__empty { margin: 0; }

.publisher-panel__notice,
.publisher-panel__hint,
.publisher-empty,
.publisher-terminal__empty {
  margin-top: 10px;
  color: color-mix(in srgb, var(--muted, #60717d) 88%, var(--text, #101820));
  line-height: 1.45;
}

.publisher-panel__error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(175, 35, 49, 0.12);
  color: #982432;
}

.publisher-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.4fr);
  gap: 16px;
  margin-top: 18px;
}

.publisher-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--text, #101820) 12%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface, #f7fbfd) 76%, transparent);
}

.publisher-profiles {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.publisher-profile {
  justify-content: space-between;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--text, #101820) 10%, transparent);
  border-radius: 10px;
}

.publisher-profile.is-active {
  border-color: color-mix(in srgb, var(--gold, #bd9443) 74%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold, #bd9443) 38%, transparent);
}

.publisher-profile > button:first-child {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.publisher-profile h4,
.publisher-profile p,
.publisher-terminal,
.publisher-field-grid input,
.publisher-field-grid select { overflow-wrap: anywhere; }

.publisher-profile p {
  margin-top: 3px;
  color: var(--muted, #60717d);
  font-size: 0.8rem;
}

.publisher-profile__delete,
.publisher-terminal__actions button,
.publisher-action-row button,
.publisher-profile-form__submit {
  border: 1px solid color-mix(in srgb, var(--text, #101820) 16%, transparent);
  border-radius: 9px;
  padding: 9px 11px;
  background: color-mix(in srgb, var(--surface, #f7fbfd) 82%, white);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.publisher-profile__delete { flex: 0 0 auto; color: #a72032; }

.publisher-profile-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.publisher-profile-form__help,
.publisher-profile-form__notice {
  margin: 0;
  color: var(--muted, #60717d);
  font-size: 0.82rem;
  line-height: 1.45;
}

.publisher-profile-form__notice {
  padding: 10px 12px;
  border-left: 3px solid var(--gold, #bd9443);
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold, #bd9443) 10%, transparent);
}

.publisher-profile-form__facts {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 12px 10px 28px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text, #101820) 5%, transparent);
  color: var(--muted, #60717d);
  font-size: 0.78rem;
  line-height: 1.4;
}

.publisher-profile-form__facts strong,
.publisher-profile-form__facts code {
  color: var(--text, #101820);
}

.publisher-profile-form__facts code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.75rem;
}

.publisher-profile-form > label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted, #60717d);
  font-size: 0.78rem;
}

.publisher-profile-form > label > input,
.publisher-profile-form > label > select,
.publisher-credentials label > input,
.publisher-credentials label > textarea {
  min-width: 0;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--text, #101820) 16%, transparent);
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text, #101820);
  font: inherit;
}

.publisher-credentials {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--gold, #bd9443) 38%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold, #bd9443) 7%, transparent);
}

.publisher-credentials label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted, #60717d);
  font-size: 0.78rem;
}

.publisher-credentials label > textarea {
  min-height: 106px;
  height: auto;
  padding: 9px;
  resize: vertical;
  line-height: 1.35;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.74rem;
}

.publisher-credentials__note {
  margin: 0;
  color: var(--muted, #60717d);
  font-size: 0.76rem;
  line-height: 1.45;
}

.publisher-credentials__memory {
  margin: 0;
  color: var(--text, #101820);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.publisher-credentials__note strong,
.publisher-credentials__note code {
  color: var(--text, #101820);
}

.publisher-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.publisher-field-grid label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted, #60717d);
  font-size: 0.78rem;
}

.publisher-field-grid input,
.publisher-field-grid select {
  min-width: 0;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--text, #101820) 16%, transparent);
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text, #101820);
  font: inherit;
}

.publisher-preflight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.publisher-preflight__item {
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text, #101820) 5%, transparent);
}

.publisher-preflight__item strong,
.publisher-preflight__item span { display: block; overflow-wrap: anywhere; }

.publisher-preflight__item span {
  margin-top: 3px;
  color: var(--muted, #60717d);
  font-size: 0.82rem;
}

.publisher-project-choice {
  margin-top: 16px;
  padding: 10px;
  border-left: 3px solid var(--gold, #bd9443);
  background: color-mix(in srgb, var(--gold, #bd9443) 8%, transparent);
}

.publisher-action-row { flex-wrap: wrap; margin-top: 16px; }
.publisher-dry-run { border-color: color-mix(in srgb, var(--gold, #bd9443) 70%, transparent) !important; }

.publisher-live-action[disabled],
.publisher-action-row button[disabled],
.publisher-terminal__actions button[disabled],
.publisher-profile-form__submit[disabled] { opacity: 0.48; cursor: not-allowed; }

.publisher-terminal {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 230px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #0d161d;
  color: #d9ebef;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-x: hidden;
}

.publisher-terminal > pre {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.publisher-terminal__status { color: #f2c96d; }
.publisher-terminal__plan { margin: 14px 0 0; color: #b4d9c1; white-space: pre-wrap; }
.publisher-terminal__actions { flex-wrap: wrap; margin-top: 12px; }

.publisher-terminal__actions button {
  border-color: rgba(242, 201, 109, 0.82);
  background: #17313a;
  color: #fff7d8;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.publisher-terminal__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.52rem 0.8rem;
  border: 1px solid rgba(230, 191, 99, 0.68);
  border-radius: 0.65rem;
  color: #fff4cc;
  background: rgba(24, 53, 63, 0.92);
  font: inherit;
  text-decoration: none;
}

.publisher-terminal__open:hover,
.publisher-terminal__open:focus-visible {
  background: rgba(42, 85, 95, 0.98);
  outline: none;
}

.publisher-terminal__actions button:not([disabled]):hover,
.publisher-terminal__actions button:not([disabled]):focus-visible {
  border-color: #ffdc7c;
  background: #24505b;
  color: #ffffff;
  outline: none;
}

.publisher-terminal__actions button[disabled] {
  border-color: rgba(242, 201, 109, 0.45);
  background: #17303a;
  color: rgba(255, 247, 216, 0.86);
  opacity: 1;
}

@media (max-width: 760px) {
  .publisher-modal { align-items: end; padding: 8px; }
  .publisher-panel { max-height: 94dvh; border-radius: 14px; }
  .publisher-layout, .publisher-field-grid, .publisher-preflight { grid-template-columns: 1fr; }
  .publisher-terminal { min-height: 185px; }
}

.admin-panel {
  top: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(480px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(246, 251, 252, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.admin-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
}

.admin-panel header strong {
  font-size: 1rem;
}

.admin-panel nav {
  display: flex;
  gap: 7px;
  padding: 0 16px 12px;
  overflow-x: auto;
}

.admin-panel nav button {
  white-space: nowrap;
}

.admin-panel nav button.is-active {
  background: #11171b;
  color: white;
}

.admin-panel > .admin-message {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(197, 167, 100, 0.34);
  border-radius: 14px;
  background: rgba(197, 167, 100, 0.14);
  color: #354148;
  font-weight: 820;
}

.admin-panel__body {
  min-height: 0;
  overflow: auto;
  padding: 0 16px 18px;
}

.admin-panel form,
.admin-card {
  display: grid;
  gap: 12px;
}

.admin-card {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid rgba(17, 23, 27, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #11171b;
  font-weight: 820;
  cursor: pointer;
}

.admin-preview {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 14px;
  background: #dce9ef;
}

.admin-screen-tools {
  position: absolute;
  z-index: 12;
  right: clamp(18px, 3vw, 52px);
  top: clamp(84px, 8vh, 116px);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.admin-screen-tools button,
.admin-add-chip,
.admin-inline-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(17, 23, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #11171b;
  box-shadow: 0 12px 28px rgba(33, 49, 57, 0.12);
  backdrop-filter: blur(16px);
  font-size: 0.78rem;
  font-weight: 840;
}

.admin-screen-tools button,
.admin-add-chip {
  padding: 0 13px;
}

.admin-content-tools {
  position: absolute;
  z-index: 8;
  right: 14px;
  top: 14px;
  display: flex;
  gap: 8px;
}

.admin-inline-edit {
  width: 31px;
  height: 31px;
  padding: 0;
  color: var(--gold);
  vertical-align: middle;
}

.admin-inline-editor {
  display: inline-grid;
  align-items: flex-start;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--gold) 72%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--glass-strong) 90%, white);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--theme-glow) 26%, transparent);
  vertical-align: middle;
}

.admin-inline-editor__field {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #11171b;
  font: inherit;
  font-size: inherit;
  line-height: 1.3;
  resize: vertical;
}

.admin-inline-editor__save {
  grid-column: 1;
  justify-self: start;
}

.admin-inline-editor__cancel {
  grid-column: 2;
  justify-self: end;
}

.admin-inline-editor__field:focus {
  outline: 2px solid color-mix(in srgb, var(--gold) 68%, transparent);
  outline-offset: 1px;
}

.admin-inline-editor__save,
.admin-inline-editor__cancel {
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #11171b;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 820;
}

.admin-inline-editor__cancel {
  background: color-mix(in srgb, var(--ink) 12%, white);
}

/* Direct editing always expands inside its original text node. Responsive text clamps
   are disabled only while that one field is being edited. */
.is-admin-inline-editing {
  display: block !important;
  overflow: visible !important;
  max-height: none !important;
  min-width: 0 !important;
  height: auto !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}

.menu-tile:has(.is-admin-inline-editing),
.doctor-card:has(.is-admin-inline-editing),
.primary-action:has(.is-admin-inline-editing),
.documents-hub-card:has(.is-admin-inline-editing),
.document-sheet:has(.is-admin-inline-editing),
.review-card:has(.is-admin-inline-editing),
.review-score:has(.is-admin-inline-editing),
.client-story:has(.is-admin-inline-editing),
.contact-card:has(.is-admin-inline-editing) {
  z-index: 40;
  overflow: visible !important;
}

.review-score {
  position: relative;
}

.review-score__icon {
  position: relative;
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
}

.review-score__custom-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.review-score__icon > .admin-media-edit,
.review-score__icon > .admin-media-delete {
  position: absolute;
  z-index: 3;
  top: -10px;
}

.review-score__icon > .admin-media-edit {
  right: -18px;
}

.review-score__icon > .admin-media-delete {
  left: -18px;
}

.review-score__label {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.client-strip em > span {
  min-width: 0;
  text-align: right;
}

.client-strip em:has(.is-admin-inline-editing) {
  align-items: stretch;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .admin-inline-editor {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 4px;
  }

  .admin-inline-editor__save,
  .admin-inline-editor__cancel {
    width: 100%;
    padding: 0 6px;
  }
}

.contacts-layout .contact-card,
.contacts-layout .route-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.map-panel--photo > .admin-media-edit {
  position: absolute;
  z-index: 6;
  top: 12px;
  right: 12px;
}

.doctor-admin-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}

.doctor-admin-tools:empty {
  display: none;
}

.doctor-admin-tools {
  display: none;
}

.doctor-edit-list {
  display: grid;
  gap: 9px;
}

.doctor-edit-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: #2d3940;
  font-weight: 760;
}

.doctor-edit-list strong {
  min-width: 132px;
  color: #68767d;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 16px;
  height: 100%;
  min-height: 220px;
  padding: 28px;
  border: 1px dashed rgba(17, 23, 27, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  color: #53636b;
  text-align: center;
}

.empty-state strong {
  color: #15191d;
  font-size: 1.2rem;
}

.work-placeholder,
.client-story__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(17, 23, 27, 0.38);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
}

.work-slide__photo .work-placeholder {
  position: static;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(17, 23, 27, 0.38);
  text-transform: none;
}

.document-grid--sheets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.document-grid--sheets .document-sheet {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 26px;
  border-radius: 28px;
}

.document-sheet--preview .document-sheet__seal {
  width: 68px;
  height: 68px;
}

.document-sheet--preview h2 {
  max-width: 100%;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.document-sheet--preview p {
  margin-top: 15px;
}

.document-sheet__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  background: white;
}

.admin-image-field {
  gap: 9px;
}

.admin-upload-status {
  color: #68767d;
  font-size: 0.78rem;
  font-weight: 760;
}

.admin-upload-meter {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 23, 27, 0.08);
}

.admin-upload-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width 160ms ease;
}

.admin-preview-box {
  display: grid;
  place-items: center;
  min-height: 160px;
  overflow: hidden;
  border-radius: 14px;
  background: #dce9ef;
}

.admin-preview-placeholder {
  color: rgba(17, 23, 27, 0.38);
  font-size: 3.4rem;
  font-weight: 900;
}

.admin-doc-section {
  display: grid;
  gap: 10px;
}

.admin-doc-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.menu-tile strong,
.menu-tile small,
.doctor-card__body strong,
.doctor-card__body em,
.primary-action strong,
.primary-action small,
.documents-hub-card strong,
.documents-hub-card small,
.document-card h3,
.document-card p,
.review-card strong,
.review-card p,
.client-story strong,
.client-story span,
.service-row strong,
.service-row em,
.doctor-edit-list span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.primary-action > span:last-child,
.menu-tile,
.doctor-card__body,
.documents-hub-card,
.review-card,
.client-story div,
.service-row span {
  min-width: 0;
}

.screen-content > .theme-switcher + .menu-grid {
  padding-top: 48px;
}

.primary-action strong,
.documents-hub-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.documents-hub-card small,
.primary-action small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-json {
  min-height: 430px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .theme-switcher {
    top: 82px;
    gap: 8px;
  }

  .theme-dot {
    width: 21px;
    height: 21px;
  }

  .screen-content > .theme-switcher + .menu-grid {
    padding-top: 38px;
  }

  .doctor-edit-list {
    gap: 7px;
  }

  .doctor-edit-list span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 5px 8px;
    min-height: 0;
  }

  .doctor-edit-list strong {
    grid-column: 1 / -1;
  }

  .profile-actions {
    align-content: end;
  }

  .primary-action {
    min-width: 0;
  }

  .primary-action strong {
    font-size: clamp(0.78rem, 3.55vw, 0.96rem);
  }

  .documents-hub-card strong {
    font-size: clamp(0.9rem, 4.2vw, 1.12rem);
    line-height: 1.05;
  }

  .review-public-tools {
    left: 14px;
    right: 14px;
    justify-content: flex-end;
  }

  .review-compose-button span {
    display: none;
  }

  .review-form {
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
  }

  .review-form input {
    height: 48px;
  }

  .review-form textarea {
    min-height: 116px;
  }

  .review-form__rating button {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .admin-screen-tools {
    left: 30px;
    right: 30px;
    top: 136px;
    justify-content: flex-start;
  }

  .admin-screen-tools button span {
    display: none;
  }

  .doctor-edit-list strong {
    min-width: 92px;
  }

  .document-grid--sheets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panel {
    inset: 8px;
    width: auto;
    border-radius: 20px;
  }

.admin-bar {
    right: 12px;
    bottom: 12px;
  }
}

/* Final mobile safety net: these rules intentionally sit at the end of the file
   so earlier kiosk/admin responsive blocks cannot let labels spill out. */
@media (max-width: 820px) {
  .menu-tile,
  .doctor-card,
  .primary-action,
  .documents-hub-card,
  .document-card,
  .review-card,
  .client-story,
  .service-row,
  .doctor-picker button {
    min-width: 0;
    overflow: hidden;
  }

  .menu-tile strong,
  .menu-tile small,
  .doctor-card__body strong,
  .doctor-card__body em,
  .primary-action strong,
  .primary-action small,
  .documents-hub-card strong,
  .documents-hub-card small,
  .document-card h3,
  .document-card p,
  .review-card strong,
  .review-card p,
  .client-story strong,
  .client-story span,
  .service-row strong,
  .service-row small,
  .service-row em,
  .doctor-picker strong,
  .doctor-picker small {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .primary-action strong,
  .documents-hub-card strong,
  .document-card h3,
  .doctor-picker strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.06;
  }

  .primary-action small,
  .documents-hub-card small,
  .document-card p,
  .doctor-picker small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.14;
  }

  .primary-action strong {
    font-size: clamp(0.82rem, 3.2vw, 1.05rem);
  }

  .primary-action small {
    font-size: clamp(0.68rem, 2.65vw, 0.82rem);
  }

  .documents-hub-card strong,
  .document-card h3 {
    font-size: clamp(0.9rem, 3.8vw, 1.14rem);
  }

  .documents-hub-card small,
  .document-card p {
    font-size: clamp(0.68rem, 2.7vw, 0.82rem);
  }

  .service-row {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
  }

  .service-row em {
    justify-self: stretch;
    text-align: left;
  }

  .profile-actions {
    gap: 10px;
  }

  .profile-card__copy,
  .profile-card__copy h1,
  .profile-card__copy p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .screen-heading h1,
  .splash-screen h1 {
    letter-spacing: 0;
  }

  .profile-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-action {
    min-height: 82px;
    padding: 12px;
    gap: 9px;
  }

  .primary-action__icon,
  .documents-hub-card span,
  .document-card__icon {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .documents-hub-card {
    padding: 14px;
    gap: 7px;
  }

  .client-viewer__card div,
  .work-slide__info {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }
}

.brand-chip svg {
  color: #c7a96a;
  stroke-width: 2.35;
  filter: drop-shadow(0 0 8px rgba(199, 169, 106, 0.42));
}

.menu-tile--image {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  justify-content: stretch;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  text-align: left;
}

.menu-tile--image .menu-tile__icon {
  display: none;
}

.menu-tile__media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 26px);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9), rgba(212, 235, 255, 0.62) 62%, rgba(255, 255, 255, 0.42)),
    color-mix(in srgb, var(--aurora-1) 12%, white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 14px 30px color-mix(in srgb, var(--theme-glow) 22%, transparent);
}

.menu-tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(0.98);
  transition: transform 210ms ease, filter 210ms ease;
}

.menu-tile--image:hover .menu-tile__media img {
  transform: scale(1.015);
  filter: saturate(1.08) contrast(1.03);
}

.menu-tile__text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0 4px 4px;
}

.menu-tile--image strong,
.menu-tile--image small {
  margin: 0;
}

.menu-tile--image small {
  display: block;
}

@media (max-width: 820px) {
  .menu-tile--image {
    gap: 9px;
    padding: 10px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .menu-grid .menu-tile:nth-child(7) {
    grid-column: auto;
  }

  .menu-tile--image {
    gap: 7px;
    padding: 8px;
  }

  .menu-tile__media {
    border-radius: 17px;
  }

  .menu-tile--image strong {
    font-size: clamp(0.82rem, 3.25vw, 1rem);
    line-height: 1.02;
  }

  .menu-tile--image small {
    display: none;
  }
}

.profile-info p {
  white-space: pre-line;
}

.training-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  height: 100%;
  min-height: 0;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(232, 245, 247, 0.68)),
    radial-gradient(circle at 18% 14%, color-mix(in srgb, var(--aurora-1) 28%, transparent), transparent 42%),
    radial-gradient(circle at 86% 84%, color-mix(in srgb, var(--aurora-3) 24%, transparent), transparent 48%);
  box-shadow:
    var(--shadow-soft),
    0 0 36px color-mix(in srgb, var(--theme-glow) 46%, transparent);
  overflow: hidden;
}

.training-card > div:first-child {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
}

.training-card svg {
  color: var(--gold);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--gold) 45%, transparent));
}

.training-card h2 {
  margin: 0;
  color: #101417;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 0.96;
}

.training-card p {
  margin: 0;
  color: #3a4850;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.48;
}

.training-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
  min-width: 0;
}

.training-list span {
  min-width: 0;
  padding: clamp(14px, 1.7vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  color: #12191d;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 820;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 28px color-mix(in srgb, var(--theme-glow) 18%, transparent);
  overflow-wrap: normal;
  word-break: normal;
}

.training-list__heading {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--aurora-1) 22%, white), rgba(255, 255, 255, 0.72));
  color: #53636b;
  font-size: clamp(0.82rem, 1.15vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-tile--image {
  border: 2px solid color-mix(in srgb, var(--aurora-1) 58%, rgba(255, 255, 255, 0.92));
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 0 34px color-mix(in srgb, var(--theme-glow) 54%, transparent),
    0 14px 38px color-mix(in srgb, var(--aurora-2) 17%, transparent);
}

.menu-tile--image:hover {
  border-color: color-mix(in srgb, var(--aurora-1) 82%, white);
  box-shadow:
    0 28px 70px color-mix(in srgb, var(--theme-glow) 82%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 0 54px color-mix(in srgb, var(--aurora-1) 58%, transparent);
}

.review-card div > strong {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

@media (max-width: 820px) {
  .training-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .training-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-card div {
  gap: 8px;
}

.admin-bar--inline {
  align-items: center;
  padding: 5px 6px 5px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--glass-strong) 86%, transparent);
  color: var(--ink);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--theme-glow) 30%, transparent);
  font-size: 0.74rem;
  font-weight: 800;
}

.admin-toast {
  position: fixed;
  z-index: 51;
  right: 18px;
  bottom: 72px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--glass-strong) 92%, white);
  color: var(--ink);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--theme-glow) 28%, transparent);
  font-size: 0.82rem;
  font-weight: 760;
}

  .review-card div > strong {
    display: block;
    flex: 1 1 auto;
    min-width: 6.5em;
    max-width: calc(100% - 78px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 460px) {
  .training-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Admin-editable premium controls and kiosk chrome refinements. */
.topbar .brand-chip,
.topbar .icon-action {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar .brand-chip {
  height: 54px;
  padding: 0;
  color: #11171b;
  font-weight: 880;
}

.topbar .brand-chip svg,
.topbar .icon-action svg {
  width: 29px;
  height: 29px;
  color: #c7a96a;
  stroke-width: 2.7;
  filter:
    drop-shadow(0 0 8px rgba(199, 169, 106, 0.52))
    drop-shadow(0 7px 12px rgba(112, 82, 28, 0.18));
}

.topbar .icon-action {
  width: 58px;
  min-width: 58px;
  height: 58px;
  padding: 0;
}

.topbar .icon-action span {
  display: none;
}

.splash-mark {
  position: relative;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.splash-mark img {
  filter:
    drop-shadow(0 0 14px rgba(199, 169, 106, 0.44))
    drop-shadow(0 22px 30px rgba(24, 32, 36, 0.14));
}

.splash-actions {
  align-items: center;
}

.start-button {
  position: relative;
  min-width: clamp(270px, 25vw, 390px);
  height: 86px;
  padding: 0 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(252, 229, 154, 0.92) 32%, rgba(190, 142, 52, 0.86) 68%, rgba(255, 246, 203, 0.94)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 38%);
  color: #21190b;
  box-shadow:
    0 28px 72px rgba(158, 111, 30, 0.28),
    0 0 44px color-mix(in srgb, var(--theme-glow) 64%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -12px 24px rgba(90, 57, 8, 0.1);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.64);
}

.start-button::before {
  content: "";
  position: absolute;
  inset: -70% -24%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.78) 48%, transparent 62%);
  transform: translateX(-44%) rotate(8deg);
  animation: start-button-shine 2.7s ease-in-out infinite;
  pointer-events: none;
}

.start-button span,
.start-button small {
  position: relative;
  z-index: 1;
}

.start-button span {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 950;
}

.start-button small {
  margin-left: 4px;
  color: rgba(33, 25, 11, 0.44);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes start-button-shine {
  0%,
  38% {
    transform: translateX(-58%) rotate(8deg);
  }
  78%,
  100% {
    transform: translateX(58%) rotate(8deg);
  }
}

.screen-layer--enter.screen-layer--forward .menu-aside {
  animation: clinic-enter-pass 240ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.screen-layer--enter.screen-layer--forward .menu-tile {
  animation: tile-open-pass 250ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

@keyframes clinic-enter-pass {
  from {
    opacity: 0;
    filter: blur(10px) saturate(1.2);
    transform: scale(1.045) translateY(18px);
  }
  to {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1) translateY(0);
  }
}

@keyframes tile-open-pass {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.965);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-media-edit {
  position: absolute;
  z-index: 8;
  right: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  min-height: 31px;
  padding: 0;
  border: 1px solid rgba(199, 169, 106, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #c7a96a;
  box-shadow: 0 12px 28px rgba(33, 49, 57, 0.14);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.admin-inline-edit {
  cursor: pointer;
}

.admin-media-edit.is-uploading {
  animation: theme-breathe 700ms ease-in-out infinite alternate;
}

.screen-heading .admin-inline-edit,
.splash-screen__content .admin-inline-edit,
.feature-strip .admin-inline-edit,
.feature-stack .admin-inline-edit,
.menu-tile .admin-inline-edit,
.documents-hub-card .admin-inline-edit {
  margin-left: 7px;
  vertical-align: middle;
}

.feature-strip .admin-inline-edit,
.feature-stack .admin-inline-edit,
.menu-tile .admin-inline-edit,
.documents-hub-card .admin-inline-edit {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 999px;
}

.documents-hub-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.documents-hub-card__visual .admin-media-edit {
  right: -8px;
  top: -8px;
}

.hero-photo,
.clinic-side-photo,
.menu-tile__media {
  position: relative;
}

@media (max-width: 640px) {
  .topbar .brand-chip svg,
  .topbar .icon-action svg {
    width: 25px;
    height: 25px;
  }

  .topbar .icon-action {
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .start-button {
    min-width: min(100%, 300px);
    height: 68px;
    padding: 0 28px;
  }

  .start-button span {
    font-size: 1.38rem;
  }

  .start-button small {
    font-size: 0.76rem;
  }
}

/* Profile mobile fit and theme-blended entrance controls. */
.start-button {
  isolation: isolate;
  border-color: transparent;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.96), transparent 34%),
    radial-gradient(circle at 88% 80%, color-mix(in srgb, var(--aurora-1) 34%, transparent), transparent 42%),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--glass-strong) 72%, transparent),
      color-mix(in srgb, var(--aurora-3) 48%, var(--glass) 52%) 34%,
      color-mix(in srgb, var(--gold) 54%, var(--aurora-1) 30%) 66%,
      color-mix(in srgb, #fff7d4 76%, var(--aurora-2) 24%)
    );
  box-shadow:
    0 0 0 1px color-mix(in srgb, rgba(255, 255, 255, 0.62) 72%, transparent),
    0 30px 82px color-mix(in srgb, var(--theme-glow) 82%, transparent),
    0 16px 46px rgba(135, 91, 22, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -18px 34px rgba(116, 78, 15, 0.08);
}

.start-button::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -22px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 35% 20%, color-mix(in srgb, var(--aurora-3) 48%, transparent), transparent 48%),
    radial-gradient(circle at 75% 76%, color-mix(in srgb, var(--aurora-1) 38%, transparent), transparent 50%);
  filter: blur(18px);
  opacity: 0.68;
  pointer-events: none;
}

.start-button::before {
  z-index: 1;
}

.start-button span,
.start-button small {
  z-index: 2;
}

.splash-mark::after {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--theme-glow) 62%, transparent), transparent 62%);
  filter: blur(20px);
  opacity: 0.72;
}

.splash-mark img {
  mix-blend-mode: multiply;
  background: transparent;
}

@media (max-width: 820px) {
  .screen-grid:has(.profile-layout) {
    gap: clamp(8px, 1.8vh, 14px);
  }

  .screen-grid:has(.profile-layout) .eyebrow {
    margin-bottom: 5px;
    font-size: clamp(0.58rem, 2.1vw, 0.72rem);
    line-height: 1.05;
  }

  .screen-grid:has(.profile-layout) .screen-heading h1 {
    font-size: clamp(1.45rem, 6.6vw, 2.3rem);
    line-height: 0.98;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .screen-grid:has(.profile-layout) .screen-subtitle {
    margin-top: 5px;
    font-size: clamp(0.72rem, 2.55vw, 0.88rem);
    line-height: 1.12;
  }

  .profile-layout {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) min-content;
    gap: clamp(7px, 1.4vh, 10px);
  }

  .doctor-admin-tools {
    position: absolute;
    z-index: 9;
    top: 0;
    right: 0;
    justify-content: flex-end;
    max-width: min(100%, 330px);
    pointer-events: none;
  }

  .doctor-admin-tools .admin-add-chip {
    pointer-events: auto;
  }

  .doctor-admin-tools .admin-add-chip span {
    display: none;
  }

  .profile-info {
    gap: clamp(5px, 1vh, 9px);
    padding: clamp(11px, 3.2vw, 17px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--accent) 60%, transparent) transparent;
  }

  .doctor-edit-list {
    gap: clamp(3px, 0.7vh, 6px);
  }

  .doctor-edit-list span {
    gap: 3px 7px;
    font-size: clamp(0.66rem, 2.55vw, 0.84rem);
    line-height: 1.08;
  }

  .doctor-edit-list strong {
    min-width: 0;
    font-size: clamp(0.56rem, 2vw, 0.68rem);
    line-height: 1;
  }

  .profile-info p {
    font-size: clamp(0.66rem, 2.45vw, 0.86rem);
    line-height: 1.15;
  }

  .competency-grid {
    gap: 4px;
  }

  .competency-grid span {
    padding: 5px 7px;
    font-size: clamp(0.56rem, 2.05vw, 0.7rem);
    line-height: 1.05;
  }

  .profile-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(5px, 1.2vh, 8px);
    align-content: end;
  }

  .primary-action {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: clamp(52px, 10vh, 66px);
    padding: 7px;
    gap: 5px;
    border-radius: 15px;
  }

  .primary-action__icon {
    width: clamp(28px, 7.2vw, 34px);
    height: clamp(28px, 7.2vw, 34px);
    min-width: clamp(28px, 7.2vw, 34px);
    border-radius: 11px;
  }

  .primary-action strong {
    font-size: clamp(0.62rem, 2.55vw, 0.82rem);
    line-height: 1.04;
    -webkit-line-clamp: 2;
  }

  .primary-action small {
    display: none;
  }
}

@media (max-width: 430px), (max-height: 740px) {
  .screen-grid:has(.profile-layout) .screen-heading h1 {
    font-size: clamp(1.28rem, 6vw, 1.75rem);
  }

  .profile-info {
    border-radius: 20px;
    padding: clamp(9px, 2.7vw, 13px);
  }

  .doctor-edit-list span {
    font-size: clamp(0.6rem, 2.32vw, 0.74rem);
  }

  .profile-info p {
    font-size: clamp(0.58rem, 2.22vw, 0.72rem);
    line-height: 1.12;
  }

  .competency-grid span {
    padding: 4px 6px;
    font-size: clamp(0.5rem, 1.9vw, 0.62rem);
  }

  .primary-action {
    min-height: clamp(48px, 9.2vh, 58px);
    padding: 6px;
  }

  .primary-action strong {
    font-size: clamp(0.56rem, 2.35vw, 0.72rem);
  }
}

/* Documents: uploaded images are real full-card previews, not tiny corner marks. */
.documents-hub-card--has-image {
  position: relative;
  isolation: isolate;
  justify-content: flex-end;
  overflow: hidden;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

.documents-hub-card__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.75);
}

.documents-hub-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.documents-hub-card--has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(12, 17, 20, 0.08), rgba(12, 17, 20, 0.62)),
    radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.28), transparent 42%);
  pointer-events: none;
}

.documents-hub-card--has-image .documents-hub-card__visual {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.72);
  color: #c7a96a;
  backdrop-filter: blur(16px);
}

.documents-hub-card--has-image strong,
.documents-hub-card--has-image small {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.document-sheet {
  position: relative;
}

.document-sheet--image {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
}

.document-sheet--image .document-sheet__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--aurora-1) 10%, white));
}

.document-sheet--image .document-sheet__details {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  gap: 3px;
  max-height: 46%;
  padding: 10px 12px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: rgba(11, 18, 22, 0.68);
  color: white;
  backdrop-filter: blur(12px);
}

.document-sheet__details h2,
.document-sheet__details span,
.document-sheet__details strong {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.document-sheet__details h2 {
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
}

.document-sheet__details span {
  font-size: 0.75rem;
  opacity: 0.86;
}

.document-sheet__details strong {
  font-size: 0.78rem;
}

.document-grid--sheets .document-sheet--image {
  padding: 0;
}

.document-sheet__media-edit {
  right: 14px;
  top: 14px;
}

/* Reviews: mobile-safe name/rating layout and a cleaner public add-review control. */
.review-public-tools {
  top: 0;
  right: 0;
  left: auto;
}

.review-public-tools + .review-layout {
  height: calc(100% - 52px);
  margin-top: 52px;
}

.review-compose-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  box-shadow: none;
  text-shadow: 0 0 18px color-mix(in srgb, var(--gold) 50%, transparent);
}

.review-compose-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.8;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--gold) 55%, transparent));
}

.review-compose-button span {
  display: inline;
  font-weight: 900;
}

.review-card {
  overflow: hidden;
}

.review-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: start;
  gap: 7px;
}

.review-card div > strong {
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.review-card div > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}

.review-card .rating-stars {
  flex: 0 1 auto;
  max-width: 100%;
}

.review-card p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .review-public-tools {
    top: -4px;
    right: 0;
    left: 0;
    justify-content: flex-start;
  }

  .review-public-tools + .review-layout {
    height: calc(100% - 42px);
    margin-top: 42px;
  }

  .review-compose-button span {
    display: inline;
    font-size: clamp(0.82rem, 3vw, 0.95rem);
  }

  .review-grid--six {
    gap: 10px;
  }

  .review-card {
    justify-content: start;
    gap: 6px;
    padding: clamp(12px, 3.1vw, 16px);
  }

  .review-card div > strong {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(0.82rem, 3.55vw, 1.04rem);
    line-height: 1.05;
    text-overflow: clip;
    white-space: normal;
    -webkit-line-clamp: unset;
  }

  .review-card div > span {
    gap: 4px;
    font-size: clamp(0.72rem, 2.8vw, 0.86rem);
    line-height: 1;
  }

  .rating-stars {
    gap: 1px;
  }

  .rating-stars svg {
    width: clamp(12px, 3.4vw, 15px);
    height: clamp(12px, 3.4vw, 15px);
  }

  .review-card small {
    margin-top: 2px;
    font-size: clamp(0.64rem, 2.55vw, 0.78rem);
    line-height: 1.08;
  }

  .review-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: clamp(0.62rem, 2.45vw, 0.78rem);
    line-height: 1.16;
  }
}

@media (max-width: 420px) {
  .review-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .review-card {
    border-radius: 18px;
  }
}

/* Admin media controls: every image/icon surface has a real upload/add target. */
.primary-action {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.primary-action > span:not(.primary-action__icon):not(.admin-media-edit) {
  min-width: 0;
}

.primary-action strong,
.primary-action small,
.doctor-card__body strong,
.doctor-card__body small,
.doctor-edit-list span,
.profile-info p {
  overflow-wrap: anywhere;
}

.doctor-card__photo .admin-media-edit,
.profile-photo > .admin-media-edit,
.primary-action__media-edit {
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  color: #c7a96a;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    color-mix(in srgb, var(--aurora-3) 18%, transparent);
  box-shadow:
    0 12px 26px rgba(24, 32, 36, 0.2),
    0 0 18px color-mix(in srgb, var(--gold) 38%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.primary-action__media-edit {
  z-index: 9;
  pointer-events: auto;
}

.doctor-card__photo .admin-media-edit,
.profile-photo > .admin-media-edit {
  z-index: 6;
}

.profile-info,
.doctor-edit-list,
.doctor-edit-list span,
.competency-grid,
.profile-actions {
  min-width: 0;
}

@media (min-width: 821px) and (max-width: 1280px) {
  .screen-grid:has(.profile-layout) {
    gap: 16px;
  }

  .screen-grid:has(.profile-layout) .screen-heading h1 {
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
    line-height: 0.98;
  }

  .screen-grid:has(.profile-layout) .screen-subtitle {
    margin-top: 10px;
    font-size: clamp(0.96rem, 1.45vw, 1.08rem);
    line-height: 1.24;
  }

  .profile-layout {
    grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
    gap: 14px;
  }

  .profile-info {
    gap: 8px;
    padding: 18px;
  }

  .doctor-edit-list {
    gap: 6px;
  }

  .doctor-edit-list span {
    font-size: clamp(0.78rem, 1.18vw, 0.98rem);
    line-height: 1.14;
    min-height: 0;
    padding: 7px 10px;
  }

  .doctor-edit-list strong {
    min-width: 108px;
  }

  .profile-info p {
    font-size: clamp(0.82rem, 1.22vw, 1.05rem);
    line-height: 1.22;
  }

  .competency-grid {
    gap: 6px;
  }

  .competency-grid span {
    padding: 7px 9px;
    font-size: clamp(0.72rem, 1vw, 0.88rem);
    line-height: 1.08;
  }

  .profile-actions {
    gap: 10px;
  }

  .primary-action {
    min-height: 76px;
    padding: 12px;
    gap: 10px;
  }

  .primary-action__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
  }

  .primary-action strong {
    font-size: clamp(0.86rem, 1.2vw, 1.02rem);
    line-height: 1.08;
  }

  .primary-action small {
    font-size: clamp(0.7rem, 0.95vw, 0.82rem);
    line-height: 1.12;
  }
}

@media (max-width: 820px) {
  .doctor-card__photo .admin-media-edit,
  .profile-photo > .admin-media-edit,
  .primary-action__media-edit {
    right: 8px;
    top: 8px;
    width: 29px;
    height: 29px;
    min-height: 29px;
  }
}

/* Final responsive overrides for direct editing and uploaded covers. */
.primary-action__cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
  pointer-events: none;
}

.primary-action:has(.primary-action__cover)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.22));
  pointer-events: none;
}

.primary-action > .primary-action__icon,
.primary-action > span:last-child {
  position: relative;
  z-index: 1;
}

.primary-action:has(.primary-action__cover) .primary-action__icon {
  background: transparent;
  color: var(--gold);
  box-shadow: none;
}

.primary-action:has(.primary-action__cover) strong,
.primary-action:has(.primary-action__cover) small {
  color: #101417;
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.72);
}

.icon-action--back {
  position: relative;
  overflow: visible;
}

.icon-action__custom-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.icon-action--back > .icon-action__media-edit {
  right: -8px;
  top: -8px;
  z-index: 12;
}

.documents-hub-card--has-image::before {
  display: none;
}

.documents-hub-card--has-image .documents-hub-card__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: inherit;
  background: transparent;
}

.documents-hub-card--has-image::after {
  z-index: 1;
}

.documents-hub-card--has-image strong,
.documents-hub-card--has-image small {
  z-index: 2;
}

.documents-hub-card > .admin-media-edit {
  z-index: 4;
  background: rgba(255, 255, 255, 0.9);
}

.documents-hub-card__visual {
  background: transparent !important;
  color: var(--gold) !important;
  box-shadow: none !important;
}

.documents-hub-card__visual .admin-inline-edit {
  background: rgba(255, 255, 255, 0.9);
}

.document-sheet__seal,
.document-sheet--preview .document-sheet__seal {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 8px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.map-pin {
  width: 54px;
  height: 54px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.map-pin__image {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.map-pin > .admin-media-edit {
  right: -10px;
  top: -10px;
  z-index: 6;
}

.map-panel--photo strong .admin-inline-edit,
.map-panel--photo em .admin-inline-edit,
.map-panel__link-edit .admin-inline-edit {
  color: var(--gold);
}

/* The minus control removes the selected local image or an album entry. */
.admin-media-delete {
  position: absolute;
  z-index: 8;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  min-height: 31px;
  padding: 0;
  border: 1px solid rgba(140, 81, 73, 0.42);
  border-radius: 999px;
  background: rgba(37, 31, 31, 0.88);
  color: #f0c0af;
  box-shadow: 0 12px 28px rgba(33, 49, 57, 0.16);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.admin-media-edit:hover,
.admin-media-edit:focus-visible {
  background: rgba(255, 255, 255, 1);
}

.admin-media-delete:hover,
.admin-media-delete:focus-visible {
  background: #733f39;
  color: #fff7f4;
}

.work-slide__photo > .admin-media-delete,
.client-viewer__card > .admin-media-delete,
.client-story > .admin-media-delete {
  z-index: 10;
  left: 12px;
  top: 12px;
  right: auto;
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.map-panel--photo > .admin-media-delete {
  z-index: 6;
  left: 12px;
  top: 12px;
}

.doctor-card__photo .admin-media-delete,
.profile-photo > .admin-media-delete,
.primary-action__media-delete {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.doctor-card__photo .admin-media-delete,
.profile-photo > .admin-media-delete {
  z-index: 6;
}

.primary-action__media-delete {
  z-index: 9;
  pointer-events: auto;
}

.documents-hub-card > .admin-media-delete {
  z-index: 4;
}

.map-pin > .admin-media-delete,
.icon-action__media-delete {
  left: -10px;
  top: -10px;
  z-index: 6;
}

.icon-action__media-edit {
  right: -10px;
  top: -10px;
}

@media (max-width: 820px) {
  .doctor-card__photo .admin-media-delete,
  .profile-photo > .admin-media-delete,
  .primary-action__media-delete {
    left: 8px;
    top: 8px;
    width: 29px;
    height: 29px;
    min-height: 29px;
  }
}

/* Final overrides: a long editing canvas must not be clipped by kiosk screen rules. */
.screen-layer.page-layout-editor-active {
  overflow: auto !important;
  overscroll-behavior: contain;
  bottom: auto !important;
  height: max(100dvh, var(--page-layout-editor-height, 100dvh)) !important;
  min-height: max(100dvh, var(--page-layout-editor-height, 100dvh)) !important;
}

.screen-layer.page-layout-editor-active .screen-shell,
.screen-layer.page-layout-editor-active .splash-screen {
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.screen-layer.page-layout-editor-active .screen-grid,
.screen-layer.page-layout-editor-active .screen-content {
  overflow: visible !important;
}

.page-layout-editor-active .page-layout-target {
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
}

.page-layout-editor-active .page-layout-target.is-layout-resized-width {
  justify-self: start !important;
}

.page-layout-editor-active .page-layout-target.is-layout-resized-height {
  align-self: start !important;
}

/* Preserve the kiosk grid while composing. Moved blocks use relative offsets. */
.page-layout-editor-active .menu-grid,
.page-layout-editor-active .doctors-grid,
.page-layout-editor-active .works-grid,
.page-layout-editor-active .promo-grid,
.page-layout-editor-active .services-grid,
.page-layout-editor-active .reviews-grid,
.page-layout-editor-active .clients-grid,
.page-layout-editor-active .documents-grid,
.page-layout-editor-active .contacts-grid {
  overflow: visible !important;
}

.page-layout-editor-active .menu-tile.is-layout-resized-height,
.page-layout-editor-active .doctor-card.is-layout-resized-height,
.page-layout-editor-active .service-panel.is-layout-resized-height,
.page-layout-editor-active .review-card.is-layout-resized-height,
.page-layout-editor-active .client-story.is-layout-resized-height,
.page-layout-editor-active .documents-hub-card.is-layout-resized-height,
.page-layout-editor-active .contact-card.is-layout-resized-height {
  min-height: 0 !important;
}

/* Free blocks never participate in the kiosk grid, so they cannot move sibling cards. */
.page-layout-free-canvas {
  position: absolute;
  z-index: 45;
  inset: 0 auto auto 0;
  width: 100%;
  min-height: max(100dvh, var(--page-layout-canvas-height, 620px));
  overflow: visible !important;
  pointer-events: none;
}

.page-layout-free-canvas .layout-custom-card--free {
  position: absolute !important;
  left: var(--page-layout-x, 0px) !important;
  top: var(--page-layout-y, 0px) !important;
  margin: 0 !important;
  pointer-events: auto;
}

.page-layout-free-canvas .layout-custom-card--free.is-layout-resized-width {
  justify-self: auto !important;
}

.page-layout-free-canvas .layout-custom-card--free.is-layout-resized-height {
  align-self: auto !important;
}

.layout-custom-page-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 28px;
  border: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.page-layout-editor-active .page-layout-handle {
  z-index: 80;
}

.page-layout-editor-active .page-layout-handle > .page-layout-handle__resize:last-child {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 20%, #151a1d);
}

.layout-custom-card__url {
  display: none;
}

.page-layout-editor-active .layout-custom-card__url {
  display: block;
}

.page-layout-editor-active .layout-custom-card--video {
  min-height: 228px;
}

.layout-custom-card__image {
  display: block;
  width: 100%;
  min-height: 116px;
  max-height: 300px;
  border-radius: 11px;
  object-fit: var(--site-block-media-fit, cover);
  object-position: var(--site-block-media-position, center);
}

.page-layout-media-overlay > div {
  width: min(340px, calc(100vw - 42px));
}

.page-layout-media-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
}

.page-layout-media-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--theme-glow) 72%, white));
  transition: width 180ms ease;
}

.page-layout-target.has-layout-link {
  cursor: pointer;
}

@keyframes layout-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes layout-scale-in {
  from { opacity: 0; scale: 0.96; }
  to { opacity: 1; scale: 1; }
}

.page-layout-target[data-layout-animation="fade"] {
  animation: layout-fade-in 360ms ease-out both;
}

.page-layout-target[data-layout-animation="scale"] {
  animation: layout-scale-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.page-layout-link-editor {
  position: absolute;
  z-index: 110;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  gap: 7px;
  width: min(300px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 62%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--glass-strong) 94%, white);
  box-shadow: 0 16px 38px rgba(5, 18, 25, 0.24);
  color: var(--heading);
  backdrop-filter: blur(16px);
}

.page-layout-link-editor--floating {
  position: fixed;
  z-index: 190;
}

.page-layout-link-editor label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.page-layout-link-editor label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 7px;
}

.page-layout-link-editor input[type="url"] {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--heading) 18%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--glass) 78%, white);
  color: var(--heading);
  font: inherit;
}

.page-layout-link-editor button {
  min-height: 31px;
  border: 1px solid color-mix(in srgb, var(--gold) 54%, transparent);
  border-radius: 8px;
  background: transparent;
  color: var(--heading);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Local project catalog: each project keeps its own content and page layouts. */
.admin-sites-modal {
  position: fixed;
  z-index: 220;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 17, 22, 0.42);
  backdrop-filter: blur(16px);
}

.admin-sites-panel {
  width: min(920px, 100%);
  max-height: min(780px, calc(100dvh - 48px));
  overflow: auto;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid color-mix(in srgb, var(--gold) 32%, rgba(255, 255, 255, 0.72));
  border-radius: 22px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--glass-strong) 92%, white), color-mix(in srgb, var(--surface-tint) 88%, white));
  color: var(--heading);
  box-shadow: 0 28px 80px rgba(4, 15, 22, 0.3);
}

.admin-sites-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-sites-panel__head p,
.admin-sites-panel__head h2,
.admin-sites-panel__lead {
  margin: 0;
}

.admin-sites-panel__head p {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-sites-panel__head h2 {
  margin-top: 5px;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.admin-sites-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--heading) 15%, transparent);
  border-radius: 50%;
  background: transparent;
  color: var(--heading);
  font-size: 1.35rem;
}

.admin-sites-panel__lead {
  max-width: 670px;
  margin-top: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.admin-sites-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 24px 0;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--glass) 72%, white);
}

.admin-sites-create label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.admin-sites-create input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--heading) 16%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--glass-strong) 82%, white);
  color: var(--heading);
  font: inherit;
}

.admin-sites-create__button,
.admin-site-card__actions button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--gold) 46%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 18%, var(--glass-strong));
  color: var(--heading);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 820;
}

.admin-sites-create__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.admin-sites-create__button--vpn {
  border-color: color-mix(in srgb, var(--theme-glow) 68%, var(--gold));
  background: color-mix(in srgb, var(--theme-glow) 20%, var(--glass-strong));
}

.admin-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 12px;
}

.admin-site-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--heading) 12%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--glass) 78%, white);
}

.admin-site-card.is-active {
  border-color: color-mix(in srgb, var(--gold) 72%, white);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 20%, transparent), 0 12px 28px color-mix(in srgb, var(--theme-glow) 28%, transparent);
}

.admin-site-card__meta,
.admin-site-card small {
  color: var(--muted);
  font-size: 0.74rem;
}

.admin-site-card__publish-status {
  min-height: 1.2em;
  overflow-wrap: anywhere;
}

.admin-site-card__publish-status.is-current {
  color: color-mix(in srgb, #0f7b58 76%, var(--heading));
}

.admin-site-card__publish-status.is-pending {
  color: color-mix(in srgb, var(--gold) 84%, var(--heading));
  font-weight: 760;
}

.admin-site-card__meta {
  color: color-mix(in srgb, var(--gold) 78%, var(--heading));
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-site-card strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.admin-site-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.admin-site-card__actions .is-danger {
  border-color: rgba(174, 50, 45, 0.34);
  color: #912f2c;
}

.admin-site-card__actions .admin-site-card__update {
  border-color: color-mix(in srgb, var(--gold) 78%, transparent);
  background: color-mix(in srgb, var(--gold) 16%, var(--glass));
  box-shadow: 0 7px 18px color-mix(in srgb, var(--theme-glow) 21%, transparent);
}

.screen-shell--builder-blank .screen-content {
  position: relative;
  display: grid;
  min-height: 0;
  align-content: center;
}

.layout-custom-page-empty--builder {
  align-content: center;
  justify-items: center;
  min-height: clamp(240px, 42vh, 420px);
  padding: clamp(26px, 5vw, 56px);
  border-style: solid;
  background: color-mix(in srgb, var(--glass) 56%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 18px 46px color-mix(in srgb, var(--theme-glow) 18%, transparent);
}

.layout-custom-page-empty--builder strong {
  color: var(--heading);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.layout-custom-page-empty--builder span {
  max-width: 520px;
  margin-top: 10px;
  line-height: 1.5;
}

.builder-admin-entry {
  min-height: 42px;
  margin-top: 22px;
  padding: 0 15px;
  border: 1px solid color-mix(in srgb, var(--gold) 62%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 18%, var(--glass-strong));
  color: var(--heading);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 820;
}

@media (max-width: 620px) {
  .admin-sites-modal {
    padding: 12px;
  }

  .admin-sites-panel {
    max-height: calc(100dvh - 24px);
    padding: 18px;
    border-radius: 18px;
  }

  .admin-sites-create {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sites-create__button {
    width: 100%;
  }

  .admin-sites-create__actions {
    width: 100%;
  }
}

/* Reusable local-site blocks. They share the kiosk theme but store independent data per project. */
.layout-custom-card--contact,
.layout-custom-card--location,
.layout-custom-card--rating,
.layout-custom-card--review,
.layout-custom-card--gallery,
.layout-custom-card--navigation,
.layout-custom-card--hero,
.layout-custom-card--menu,
.layout-custom-card--doctor,
.layout-custom-card--service,
.layout-custom-card--document,
.layout-custom-card--training,
.layout-custom-card--client,
.layout-custom-card--divider,
.layout-custom-card--themeSwitch {
  isolation: isolate;
  overflow: hidden;
}

.site-block-text-surface {
  display: grid;
  gap: 6px;
  max-width: 100%;
  color: var(--site-block-text, var(--heading));
  font-size: calc(1em * var(--site-block-scale, 1));
  line-height: var(--site-block-leading, 1.35);
}

.site-block-text-surface .layout-custom-card__title,
.site-block-text-surface .layout-custom-card__subtitle {
  color: inherit;
  overflow-wrap: anywhere;
}

.site-block-text-surface .layout-custom-card__title {
  font-weight: var(--site-block-weight, 700);
}

.site-block-text-surface--rect,
.site-block-text-surface--round,
.site-block-text-surface--pill,
.site-block-text-surface--circle {
  padding: 12px;
  border: 1px solid var(--site-block-surface-border, color-mix(in srgb, var(--gold) 36%, transparent));
  background: color-mix(in srgb, var(--site-block-surface, var(--glass-strong)) var(--site-block-surface-opacity, 88%), transparent);
}

.site-block-text-surface--round {
  border-radius: calc(14px * var(--site-radius));
}

.site-block-text-surface--pill {
  border-radius: 999px;
}

.site-block-text-surface--circle {
  width: min(100%, 240px);
  min-height: 180px;
  place-content: center;
  border-radius: 50%;
  text-align: center;
}

.site-block-text-surface.has-shadow {
  box-shadow: 0 14px 36px color-mix(in srgb, var(--theme-glow) 34%, transparent);
}

.site-block-hero__media,
.site-block-profile__media,
.site-block-service__media,
.site-block-document__media {
  display: block;
  width: 100%;
  border-radius: calc(12px * var(--site-radius));
  object-fit: var(--site-block-media-fit, cover);
  object-position: var(--site-block-media-position, center);
}

.site-block-hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 100%;
  border-radius: inherit;
}

.site-block-hero__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(125deg, color-mix(in srgb, var(--heading) 42%, transparent), transparent 70%);
}

.layout-custom-card--hero .site-block-text-surface {
  margin-top: auto;
}

.site-block-profile__media {
  aspect-ratio: 4 / 3;
}

.site-block-service__media {
  aspect-ratio: 16 / 9;
}

.site-block-document__media {
  aspect-ratio: 1.3 / 1;
  object-fit: var(--site-block-media-fit, contain);
  background: color-mix(in srgb, var(--glass-strong) 76%, transparent);
}

.site-block-profile__meta,
.site-block-service__meta,
.site-block-document__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.site-block-service__meta b,
.site-block-document__meta b {
  color: var(--gold);
  font-size: 1rem;
}

.site-block-menu__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-block-menu__items .layout-custom-card__link {
  width: auto;
}

.layout-custom-card__link.is-disabled {
  opacity: 0.58;
}

.site-block-divider {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--theme-glow) 56%, transparent);
}

.site-block-training__list {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--heading);
  font-size: 0.82rem;
  line-height: 1.35;
}

.site-block-training__list li::marker {
  color: var(--gold);
}

.site-block-theme-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
}

.site-block-theme-switch button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--theme-glow) 62%, var(--card-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-base-1) 82%, transparent);
  color: var(--heading);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 780;
  cursor: pointer;
  box-shadow: 0 0 16px color-mix(in srgb, var(--theme-glow) 20%, transparent);
}

.site-block-contact__list {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 3px 0;
}

.site-block-contact__list div {
  display: grid;
  grid-template-columns: minmax(72px, 0.38fr) minmax(0, 1fr);
  gap: 8px;
}

.site-block-contact__list dt,
.site-block-contact__list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-block-contact__list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-block-contact__list dd,
.site-block-contact__list a {
  color: var(--heading);
  font-size: 0.84rem;
  font-weight: 720;
  text-decoration: none;
}

.site-block-location__pin {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 64%, transparent);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.7rem;
  line-height: 1;
  text-shadow: 0 0 18px color-mix(in srgb, var(--theme-glow) 80%, transparent);
}

.site-block-location__address {
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-block-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.site-block-rating__stars {
  display: inline-flex;
  gap: 2px;
}

.site-block-rating__stars i {
  color: color-mix(in srgb, var(--muted) 38%, transparent);
  font-size: 1.24rem;
  font-style: normal;
  line-height: 1;
}

.site-block-rating__stars i.is-filled {
  color: #d7ab48;
  text-shadow: 0 0 12px color-mix(in srgb, #f6d47b 72%, transparent);
}

.site-block-rating b {
  color: var(--heading);
  font-size: 1.05rem;
}

.site-block-rating small {
  width: 100%;
}

.site-block-gallery__media {
  display: block;
  width: 100%;
  min-height: 148px;
  max-height: min(42vh, 330px);
  border-radius: 12px;
  background: color-mix(in srgb, var(--heading) 10%, transparent);
  object-fit: cover;
}

.site-block-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.site-block-gallery__controls button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 46%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--glass-strong) 78%, transparent);
  color: var(--heading);
  font: inherit;
  font-size: 1rem;
}

.site-block-gallery__controls button:disabled {
  opacity: 0.42;
}

.site-block-gallery__controls span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

/* VPN-service blocks are generic builder components, not a VPN control plane. */
.layout-custom-card--vpnPricing,
.layout-custom-card--vpnAccount,
.layout-custom-card--vpnSupport,
.layout-custom-card--vpnFeature {
  isolation: isolate;
  overflow: hidden;
}

.site-block-vpn-pricing,
.site-block-vpn-action {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-top: 8px;
}

.site-block-vpn__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-block-vpn__term,
.site-block-vpn__devices button {
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--theme-glow) 56%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--card1) 80%, transparent);
  color: var(--heading);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.site-block-vpn__term {
  padding: 0 11px;
}

.site-block-vpn__term.is-active {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--theme-glow) 28%, var(--glass-strong));
  box-shadow: 0 0 18px color-mix(in srgb, var(--theme-glow) 46%, transparent);
}

.site-block-vpn__devices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 30px 36px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.site-block-vpn__devices button {
  padding: 0;
  font-size: 1.1rem;
}

.site-block-vpn__devices button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.site-block-vpn__devices b {
  color: var(--heading);
  text-align: center;
}

.site-block-vpn__total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.site-block-vpn__total small,
.site-block-vpn-action span,
.site-block-vpn-action small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.site-block-vpn__total strong {
  color: var(--heading);
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  overflow-wrap: anywhere;
}

.site-block-vpn__checkout,
.site-block-vpn-action .layout-custom-card__link {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--gold) 68%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--theme-glow) 18%, var(--glass-strong));
  color: var(--heading);
  font-size: 0.78rem;
  font-weight: 820;
}

.site-block-vpn__badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--theme-glow) 52%, var(--line));
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-block-editor-tools {
  position: absolute;
  z-index: 120;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.site-block-editor-tools button {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 68%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, #141d21 78%, var(--glass-strong));
  color: var(--gold);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
}

.page-layout-editor-active .layout-custom-card {
  isolation: isolate;
}

.site-settings-section {
  display: grid;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
}

.site-settings-section:first-of-type {
  border-top: 0;
}

.site-settings-section__head,
.site-theme-editor__title,
.site-theme-editor__options,
.site-settings-page,
.site-settings-transfer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-settings-section__head span,
.site-settings-section__head strong {
  display: block;
}

.site-settings-section__head span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 840;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-settings-section__head strong {
  margin-top: 4px;
  color: var(--heading);
  font-size: 0.86rem;
  line-height: 1.35;
}

.site-settings-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.site-settings-theme {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--card-border) 82%, transparent);
  border-radius: calc(10px * var(--site-radius));
  background: color-mix(in srgb, var(--card1) 82%, transparent);
  color: var(--heading);
  text-align: left;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.site-settings-theme i {
  width: 20px;
  height: 20px;
  border: 1px solid color-mix(in srgb, var(--heading) 18%, transparent);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2) 56%, var(--aurora-3));
  box-shadow: 0 0 13px color-mix(in srgb, var(--theme-glow) 62%, transparent);
}

.site-settings-theme.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 36%, transparent), 0 0 20px color-mix(in srgb, var(--theme-glow) 34%, transparent);
}

.site-settings-theme small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.site-settings-action,
.site-settings-page button,
.site-theme-editor button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 52%, transparent);
  border-radius: calc(8px * var(--site-radius));
  background: color-mix(in srgb, var(--gold) 12%, var(--glass-strong));
  color: var(--heading);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
}

.site-theme-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--card-border) 86%, transparent);
  border-radius: calc(12px * var(--site-radius));
  background: color-mix(in srgb, var(--card1) 70%, transparent);
}

.site-theme-editor__title input,
.site-theme-editor__options select,
.site-settings-transfer input[type="file"] {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--heading) 16%, transparent);
  border-radius: calc(7px * var(--site-radius));
  background: color-mix(in srgb, var(--glass-strong) 86%, white);
  color: var(--heading);
  font: inherit;
}

.site-theme-editor__title input {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.site-theme-editor__colors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.site-theme-editor__colors label,
.site-theme-editor__options label,
.site-settings-transfer label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 780;
}

.site-theme-editor__colors input[type="color"] {
  width: 100%;
  height: 32px;
  padding: 2px;
  border: 1px solid color-mix(in srgb, var(--heading) 14%, transparent);
  border-radius: 7px;
  background: transparent;
}

.site-theme-editor__options {
  align-items: end;
  flex-wrap: wrap;
}

.site-theme-editor__options select {
  min-height: 34px;
  padding: 0 7px;
}

.site-settings-pages {
  display: grid;
  gap: 8px;
}

.site-settings-page {
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--card-border) 76%, transparent);
  border-radius: calc(9px * var(--site-radius));
  background: color-mix(in srgb, var(--card1) 58%, transparent);
}

.site-settings-page strong,
.site-settings-page small {
  display: block;
}

.site-settings-page strong {
  color: var(--heading);
  font-size: 0.82rem;
}

.site-settings-page small,
.site-settings-empty {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-settings-page > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.site-settings-page button {
  width: 30px;
  min-height: 30px;
  padding: 0;
}

.site-settings-page button:disabled {
  opacity: 0.35;
}

.site-settings-transfer {
  align-items: end;
  flex-wrap: wrap;
}

.site-settings-transfer form {
  display: flex;
  align-items: end;
  flex: 1 1 320px;
  flex-wrap: wrap;
  gap: 8px;
}

.site-settings-transfer label {
  flex: 1 1 220px;
}

.site-settings-transfer input[type="file"] {
  min-height: 34px;
  max-width: 100%;
  padding: 5px;
}

@media (max-width: 620px) {
  .site-settings-section__head,
  .site-settings-page,
  .site-settings-transfer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-theme-editor__colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-settings-page > div:last-child {
    justify-content: flex-start;
  }
}

.site-block-inspector {
  position: fixed;
  z-index: 240;
  top: 50%;
  right: max(18px, env(safe-area-inset-right));
  display: grid;
  gap: 11px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 36px));
  overflow: auto;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--gold) 56%, rgba(255, 255, 255, 0.38));
  border-radius: 16px;
  background: color-mix(in srgb, var(--glass-strong) 96%, white);
  box-shadow: 0 26px 72px rgba(3, 14, 20, 0.34);
  color: var(--heading);
  transform: translateY(-50%);
  backdrop-filter: blur(20px);
}

.site-block-inspector header,
.site-block-inspector footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-block-inspector header span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-block-inspector header strong {
  display: block;
  margin-top: 3px;
  font-size: 1.05rem;
}

.site-block-inspector > label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 780;
}

.site-block-inspector input,
.site-block-inspector textarea,
.site-block-inspector select {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--heading) 18%, transparent);
  border-radius: 9px;
  outline: none;
  background: color-mix(in srgb, var(--glass) 82%, white);
  color: var(--heading);
  font: inherit;
  font-size: 0.86rem;
}

.site-block-inspector textarea {
  min-height: 76px;
  resize: vertical;
}

.site-block-inspector header > button,
.site-block-inspector footer button,
.site-block-inspector__secondary {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--gold) 48%, transparent);
  border-radius: 9px;
  background: transparent;
  color: var(--heading);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.site-block-inspector header > button {
  width: 34px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.25rem;
}

.site-block-inspector__save {
  border-color: color-mix(in srgb, var(--gold) 72%, transparent) !important;
  background: color-mix(in srgb, var(--gold) 24%, var(--glass-strong)) !important;
}

.site-block-inspector__gallery {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--heading) 12%, transparent);
  border-radius: 10px;
}

.site-block-inspector__gallery span {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-block-inspector__media,
.site-block-inspector__fieldset {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--heading) 12%, transparent);
  border-radius: 10px;
}

.site-block-inspector__media label,
.site-block-inspector__fieldset label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 780;
}

.site-block-inspector__fieldset {
  margin: 0;
}

.site-block-inspector__fieldset legend {
  padding: 0 5px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 820;
}

.site-block-inspector__check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.site-block-inspector__check input {
  width: auto;
  min-height: 0;
}

@media (max-width: 680px) {
  .site-block-inspector {
    top: auto;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-height: min(72dvh, 650px);
    transform: none;
  }
}

/* Keep the persistent admin controls compact even after responsive kiosk overrides. */
.admin-bar--inline {
  z-index: 89;
  top: max(18px, env(safe-area-inset-top));
  right: calc(clamp(16px, 3vw, 48px) + 42px);
  bottom: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-bar--inline .admin-bar__icon {
  display: grid;
  width: 30px;
  min-height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--gold) !important;
}

@media (max-width: 680px) {
  .admin-bar--inline {
    top: auto;
    right: 54px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}
