:root {
  --ink: #263136;
  --muted: #627176;
  --line: #d9e1df;
  --paper: #fbfaf7;
  --white: #ffffff;
  --teal: #6b9fa5;
  --teal-deep: #46787f;
  --sage: #8ca88f;
  --accent: #6b9fa5;
  --accent-deep: #46787f;
  --accent-soft: #edf7f8;
  --brand-bg: #263136;
  --decorative: #9caa92;
  --amber: #c9a45c;
  --shadow: 0 24px 70px rgba(38, 49, 54, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent), transparent 87%), transparent 34%),
    linear-gradient(315deg, color-mix(in srgb, var(--accent), transparent 90%), transparent 28%),
    var(--paper);
  font-family: Inter, system-ui, sans-serif;
}

body.service-access {
  --ink: #263136;
  --muted: #627176;
  --accent: #6b9fa5;
  --teal: #6b9fa5;
  --accent-deep: #46787f;
  --teal-deep: #46787f;
  --accent-soft: #edf7f8;
  --paper: #fbfaf7;
  --brand-bg: #263136;
  --decorative: #b8d6d8;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
}

.brand-panel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(18px, 3.2vh, 36px);
  height: 100vh;
  min-height: 560px;
  padding: clamp(28px, 4.4vh, 44px) 34px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(color-mix(in srgb, var(--brand-bg), transparent 18%), color-mix(in srgb, var(--brand-bg), black 12%)),
    radial-gradient(circle at 30% 18%, color-mix(in srgb, var(--accent), transparent 48%), transparent 34%),
    var(--brand-bg);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  aspect-ratio: 1;
  border: 8px solid var(--white);
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-deep);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.brand-mark span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
}

.brand-logo-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.brand-mark img {
  position: absolute;
  left: calc(50% + var(--logo-offset-x, 0%));
  top: calc(50% + var(--logo-offset-y, 0%));
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(var(--logo-scale, 1));
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}

.brand-panel.sidebar-style-emblem {
  display: grid;
  grid-template-rows:
    auto
    auto
    auto
    auto
    auto
    auto
    minmax(0, 1fr);
  align-items: center;
  align-content: start;
  justify-items: center;
  row-gap: var(--emblem-section-gap);
  column-gap: 0;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  padding: clamp(27px, 4.5vh, 48px) 28px clamp(18px, 3vh, 32px);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--accent), transparent 58%), transparent 32%),
    linear-gradient(color-mix(in srgb, var(--brand-bg), black 4%), color-mix(in srgb, var(--brand-bg), black 18%)),
    var(--brand-bg);
  --emblem-section-gap: clamp(8px, 1.35vh, 16px);
  --doctor-name-font-size: 56px;
}

.brand-panel.sidebar-style-emblem .brand-lockup {
  display: contents;
}

.brand-panel.sidebar-style-emblem .brand-mark {
  grid-row: 1;
  width: clamp(176px, 27vh, 276px);
  margin-bottom: clamp(18px, 2.6vh, 28px);
  border: 3px solid var(--decorative);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--decorative), white 36%),
    0 0 0 16px rgba(255, 255, 255, 0.04),
    0 24px 56px rgba(0, 0, 0, 0.28);
}

.brand-panel.sidebar-style-emblem .brand-mark span {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
}

.brand-panel.sidebar-style-emblem .doctor-identity-block {
  display: contents;
}

.brand-panel.sidebar-style-emblem .doctor-name-fit-box {
  grid-row: 4;
  display: grid;
  align-items: start;
  justify-items: start;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding-inline: 28px;
  min-height: 0;
  overflow: visible;
}

.brand-panel.sidebar-style-emblem .doctor-name-inner {
  display: grid;
  justify-items: start;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--doctor-name-font-size);
  font-weight: 800;
  line-height: 0.92;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand-panel.sidebar-style-emblem .brand-title {
  grid-row: 3;
  display: block;
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding-inline: 28px;
  overflow: visible;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--doctor-name-font-size);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  text-align: left;
  white-space: nowrap;
}

.brand-panel.sidebar-style-emblem .eyebrow {
  grid-row: 2;
  margin: 0;
  color: color-mix(in srgb, var(--accent), white 54%);
  letter-spacing: 0.34em;
}

.brand-panel.sidebar-style-emblem h1 {
  display: grid;
  justify-items: start;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow: visible;
  font: inherit;
  line-height: inherit;
  text-shadow: inherit;
  text-wrap: normal;
  overflow-wrap: normal;
  white-space: normal;
  text-overflow: clip;
  -webkit-line-clamp: unset;
}

.brand-panel.sidebar-style-emblem .doctor-name-line {
  display: inline-block;
  max-width: none;
  overflow: visible;
  white-space: nowrap;
}

.brand-panel.sidebar-style-emblem .brand-lockup::after {
  content: none;
}

.brand-panel.sidebar-style-emblem .emblem-divider {
  grid-row: 5;
  width: min(300px, 88%);
  height: 1px;
  margin: var(--emblem-section-gap) auto;
  background: linear-gradient(
    90deg,
    transparent,
    var(--decorative),
    transparent
  );
}

.brand-panel.sidebar-style-emblem .brand-copy {
  grid-row: 6;
  width: 100%;
  justify-self: stretch;
  margin: 0;
  padding-inline: 28px;
  max-width: none;
  text-align: left;
  line-height: 1.42;
  min-height: 0;
}

.brand-panel.sidebar-style-emblem .emblem-actions {
  grid-row: 7;
  display: grid;
  align-self: end;
  gap: clamp(10px, 1.35vh, 14px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0;
}

.brand-panel.sidebar-style-emblem .status-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  width: min(100%, 23rem);
  margin-inline: auto;
  padding: 16px 18px;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(color-mix(in srgb, var(--brand-bg), white 9%), color-mix(in srgb, var(--brand-bg), white 9%)) padding-box,
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--decorative), white 30%),
      rgba(255, 255, 255, 0.32),
      color-mix(in srgb, var(--decorative), black 10%)
    ) border-box;
  text-align: left;
}

.brand-panel.sidebar-style-emblem .status-dot {
  display: none;
}

.brand-panel.sidebar-style-emblem .status-icon {
  display: grid;
  border: 1px solid transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--brand-bg), white 9%), color-mix(in srgb, var(--brand-bg), white 9%)) padding-box,
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--decorative), white 34%),
      rgba(255, 255, 255, 0.36),
      color-mix(in srgb, var(--decorative), black 8%)
    ) border-box;
}

.brand-panel.sidebar-style-emblem #availabilitySummary {
  align-self: center;
  line-height: 1.22;
}

.brand-panel.sidebar-style-emblem .commercial-trigger {
  width: min(100%, 23rem);
  margin-top: 0;
  margin-inline: auto;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(color-mix(in srgb, var(--white), var(--accent) 7%), color-mix(in srgb, var(--white), var(--accent) 7%)) padding-box,
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent), white 48%),
      rgba(255, 255, 255, 0.72),
      color-mix(in srgb, var(--accent), black 4%)
    ) border-box;
}

.brand-panel.sidebar-style-emblem .commercial-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 24px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg viewBox='0 0 32 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 4v28l7-6.7 4.4 10.1 5-2.2-4.5-10.1h9.4L8 4Z' fill='%23ffffff' stroke='%2346787f' stroke-width='2.8' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (max-height: 760px) {
  .brand-panel.sidebar-style-emblem {
    grid-template-rows:
      auto
      auto
      auto
      auto
      auto
      auto
      minmax(0, 1fr);
    row-gap: var(--emblem-section-gap);
    padding: clamp(27px, 4.5vh, 48px) 28px 16px;
    --doctor-name-font-size: 56px;
  }

  .brand-panel.sidebar-style-emblem .brand-mark {
    width: clamp(152px, 24vh, 232px);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--accent), white 36%),
      0 0 0 10px rgba(255, 255, 255, 0.04),
      0 18px 42px rgba(0, 0, 0, 0.24);
  }

  .brand-panel.sidebar-style-emblem .brand-copy {
    font-size: 0.86rem;
    line-height: 1.34;
  }

  .brand-panel.sidebar-style-emblem .status-panel {
    padding: 12px 15px;
    gap: 12px;
  }
}

.brand-panel.sidebar-style-emblem.emblem-tight {
  grid-template-rows:
    auto
    auto
    auto
    auto
    auto
    auto
    minmax(0, 1fr);
  row-gap: clamp(6px, 1vh, 10px);
  padding: clamp(27px, 4.5vh, 48px) 28px 14px;
  --doctor-name-font-size: 56px;
}

.brand-panel.sidebar-style-emblem.emblem-tight .brand-lockup {
  gap: 6px;
}

.brand-panel.sidebar-style-emblem.emblem-tight .brand-mark {
  width: clamp(128px, 20vh, 192px);
}

.brand-panel.sidebar-style-emblem.emblem-tight .brand-copy {
  font-size: 0.78rem;
  line-height: 1.3;
}

.brand-panel.sidebar-style-emblem.emblem-tight .status-panel {
  padding: 10px 13px;
}

.brand-panel.sidebar-style-emblem.emblem-tight .commercial-trigger {
  min-height: 42px;
  padding-block: 8px;
}

@media (max-height: 660px) {
  .brand-panel.sidebar-style-emblem {
    grid-template-rows:
      auto
      auto
      auto
      auto
      auto
      auto
      minmax(0, 1fr);
    row-gap: clamp(6px, 1vh, 10px);
    padding: clamp(27px, 4.5vh, 48px) 28px 14px;
    --doctor-name-font-size: 56px;
  }

  .brand-panel.sidebar-style-emblem .brand-lockup {
    gap: 6px;
  }

  .brand-panel.sidebar-style-emblem .brand-mark {
    width: clamp(168px, 26vh, 224px);
  }

  .brand-panel.sidebar-style-emblem .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
  }

  .brand-panel.sidebar-style-emblem .brand-lockup::after {
    margin-top: 4px;
  }

  .brand-panel.sidebar-style-emblem .brand-copy {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .brand-panel.sidebar-style-emblem .status-panel {
    padding: 10px 13px;
  }

  .brand-panel.sidebar-style-emblem .commercial-trigger {
    min-height: 42px;
    padding-block: 8px;
  }
}

.brand-panel.sidebar-style-premium {
  position: sticky;
  gap: clamp(8px, 1.45vh, 14px);
  padding: clamp(52px, 6vh, 68px) 34px clamp(42px, 5vh, 58px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 11%, color-mix(in srgb, var(--accent), transparent 48%), transparent 33%),
    radial-gradient(circle at 6% 60%, color-mix(in srgb, var(--accent), transparent 72%), transparent 22%),
    linear-gradient(145deg, color-mix(in srgb, var(--brand-bg), black 2%), color-mix(in srgb, var(--brand-bg), black 24%)),
    var(--brand-bg);
}

.brand-panel.sidebar-style-premium::before {
  content: "";
  position: absolute;
  inset: 22px;
  z-index: 0;
  border: 1px solid var(--decorative);
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(0, 0, 0, 0.14);
  pointer-events: none;
}

.brand-panel.sidebar-style-premium::after {
  content: "";
  position: absolute;
  left: -18px;
  bottom: 140px;
  z-index: 0;
  width: 150px;
  height: 190px;
  opacity: 0.22;
  background:
    radial-gradient(ellipse at 28% 18%, transparent 44%, var(--decorative) 45% 47%, transparent 48%),
    radial-gradient(ellipse at 56% 34%, transparent 44%, var(--decorative) 45% 47%, transparent 48%),
    radial-gradient(ellipse at 30% 55%, transparent 44%, var(--decorative) 45% 47%, transparent 48%),
    linear-gradient(72deg, transparent 48%, var(--decorative) 49% 51%, transparent 52%);
  pointer-events: none;
}

.brand-panel.sidebar-style-premium > * {
  position: relative;
  z-index: 1;
}

.brand-panel.sidebar-style-premium .brand-lockup {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
}

.brand-panel.sidebar-style-premium .brand-mark {
  width: clamp(132px, 18.5vh, 168px);
  margin: 0 0 4px;
  border: 2px solid var(--decorative);
  background: var(--brand-bg);
  color: var(--decorative);
  box-shadow:
    inset 0 0 0 9px var(--brand-bg),
    inset 0 0 0 12px var(--decorative),
    0 0 0 9px rgba(255, 255, 255, 0.026),
    0 0 0 16px color-mix(in srgb, var(--accent), transparent 76%),
    0 24px 52px rgba(0, 0, 0, 0.34);
}

.brand-title {
  display: none;
}

.brand-title[hidden] {
  display: none !important;
}

.brand-panel.sidebar-style-premium .brand-logo-viewport {
  inset: max(9%, 12px);
  border-radius: 50%;
  background: transparent;
}

.brand-panel.sidebar-style-premium .brand-logo-crop {
  inset: 0;
  border-radius: 50%;
}

.brand-panel.sidebar-style-premium .brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
}

.logo-position-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--paper) 72%, var(--white));
}

.logo-position-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.logo-position-workspace {
  display: grid;
  grid-template-columns: minmax(128px, 0.72fr) minmax(170px, 1fr);
  align-items: center;
  gap: 18px;
}

.logo-position-frame {
  position: relative;
  width: min(100%, 180px);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(38, 49, 54, 0.18);
  cursor: grab;
  touch-action: none;
}

.logo-position-frame.dragging {
  cursor: grabbing;
}

.logo-position-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
}

.logo-position-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.logo-position-frame img {
  position: absolute;
  left: calc(50% + var(--logo-offset-x, 0%));
  top: calc(50% + var(--logo-offset-y, 0%));
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(var(--logo-scale, 1));
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}

.logo-position-frame.sidebar-style-emblem {
  border-width: 3px;
  border-color: var(--decorative);
  background: var(--white);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--decorative), white 36%),
    0 0 0 10px rgba(38, 49, 54, 0.05),
    0 18px 36px rgba(38, 49, 54, 0.2);
}

.logo-position-frame.sidebar-style-premium {
  border: 2px solid var(--decorative);
  background: var(--brand-bg);
  box-shadow:
    inset 0 0 0 9px var(--brand-bg),
    inset 0 0 0 12px var(--decorative),
    0 0 0 9px rgba(38, 49, 54, 0.035),
    0 0 0 16px color-mix(in srgb, var(--accent), transparent 76%),
    0 18px 38px rgba(38, 49, 54, 0.24);
}

.logo-position-frame.sidebar-style-premium .logo-position-viewport {
  inset: max(9%, 12px);
  border-radius: 50%;
  background: transparent;
}

.logo-position-frame.sidebar-style-premium .logo-position-crop {
  inset: 0;
  border-radius: 50%;
}

.logo-position-frame.sidebar-style-premium img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.logo-zoom-control {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
}

.logo-zoom-control input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--accent-deep);
}

.logo-zoom-control output {
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 560px) {
  .logo-position-workspace {
    grid-template-columns: 1fr;
  }
}

.brand-panel.sidebar-style-premium .brand-mark span {
  font-size: clamp(2.7rem, 5.6vw, 4.3rem);
}

.brand-panel.sidebar-style-premium .brand-lockup > div {
  display: grid;
  justify-items: center;
  row-gap: 0;
}

.brand-panel.sidebar-style-premium .doctor-identity-block {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.brand-panel.sidebar-style-premium .doctor-name-quadrant,
.brand-panel.sidebar-style-premium .doctor-name-inner {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  overflow: visible;
}

.brand-panel.sidebar-style-premium .doctor-name-quadrant {
  order: 2;
}

.brand-panel.sidebar-style-premium .brand-title {
  display: flex;
  order: 0;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(320px, 86%);
  margin: 14px 0 0;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.brand-panel.sidebar-style-premium .brand-title::before,
.brand-panel.sidebar-style-premium .brand-title::after {
  content: "";
  flex: 1 1 82px;
  height: 1px;
  max-width: 110px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent), white 54%));
}

.brand-panel.sidebar-style-premium .brand-title::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent), white 54%), transparent);
}

.brand-panel.sidebar-style-premium h1 {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  overflow: visible;
  font-size: clamp(2.7rem, 5.05vw, 4.65rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  overflow-wrap: normal;
  text-align: center;
  white-space: normal;
}

.brand-panel.sidebar-style-premium .premium-name-line {
  display: block;
  width: max-content;
  max-width: none;
  white-space: nowrap;
}

.brand-panel.sidebar-style-premium h1::before {
  content: "";
  display: block;
  width: min(190px, 72%);
  height: 1px;
  margin: 12px auto 8px;
  background: linear-gradient(90deg, transparent, var(--decorative), transparent);
}

.brand-panel.sidebar-style-premium .eyebrow {
  order: 3;
  margin: 12px 0 0;
  color: var(--decorative);
  font-size: 0.76rem;
  letter-spacing: 0.34em;
}

.brand-panel.sidebar-style-premium .brand-lockup > div::after {
  content: none;
  order: 1;
  width: min(190px, 72%);
  height: 1px;
  margin: 14px 0 34px;
  background: linear-gradient(90deg, transparent, var(--decorative), transparent);
  box-shadow: 0 0 0 1px transparent;
}

.brand-panel.sidebar-style-premium .brand-copy {
  margin: 0 auto 2px;
  max-width: min(17rem, calc(100% - 28px));
  padding-inline: 10px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.42;
}

.brand-panel.sidebar-style-premium .status-panel {
  display: grid;
  position: relative;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  width: min(calc(100% - 20px), 21rem);
  margin-top: auto;
  margin-inline: auto;
  padding: 9px 15px 11px;
  border-color: var(--decorative);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
  text-align: left;
}

.brand-panel.sidebar-style-premium .status-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand-bg);
  border-radius: 50%;
  background: #9ed4a3;
  transform: translateX(-50%);
}

.brand-panel.sidebar-style-premium .status-dot {
  display: none;
}

.brand-panel.sidebar-style-premium .status-icon {
  display: grid;
  width: 38px;
  color: var(--decorative);
  background: color-mix(in srgb, var(--white), var(--accent) 5%);
}

.brand-panel.sidebar-style-premium #availabilitySummary {
  align-self: center;
  font-size: 14px;
  line-height: 1.2;
}

.brand-panel.sidebar-style-premium .commercial-trigger {
  width: min(calc(100% - 20px), 21rem);
  min-height: 48px;
  margin-top: 4px;
  margin-inline: auto;
  padding: 10px 18px;
  justify-content: center;
  gap: 14px;
  border-color: transparent;
  border-radius: 12px;
  background: color-mix(in srgb, var(--white), var(--accent) 8%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  text-align: left;
  font-size: 0.84rem;
  white-space: nowrap;
}

.brand-panel.sidebar-style-premium .commercial-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 20px;
  margin-left: 0;
  background: var(--decorative);
  mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg viewBox='0 0 30 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4L11 14L3 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 4L22 14L14 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg viewBox='0 0 30 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4L11 14L3 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 4L22 14L14 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-panel .eyebrow {
  color: color-mix(in srgb, var(--accent), white 42%);
}

.service-calendar-illo {
  display: none;
}

body.service-access .brand-panel {
  gap: clamp(22px, 4vh, 42px);
  background:
    linear-gradient(rgba(38, 49, 54, 0.84), rgba(38, 49, 54, 0.92)),
    radial-gradient(circle at 30% 18%, rgba(107, 159, 165, 0.48), transparent 34%),
    #263136;
}

body.service-access .brand-title {
  display: none !important;
}

body.service-access .emblem-divider {
  display: none;
}

body.service-access .brand-panel .eyebrow {
  color: #b8d6d8;
}

body.service-access .brand-mark {
  color: #46787f;
}

body.service-access .service-calendar-illo {
  display: grid;
  place-items: center;
  width: min(78%, 264px);
  margin: 10px auto 0;
  color: #b8d6d8;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.12));
}

body.service-access .service-calendar-illo svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

body.service-access .calendar-shell {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(184, 214, 216, 0.34);
  stroke-width: 0.8;
}

body.service-access .calendar-nav {
  fill: none;
  stroke: rgba(255, 255, 255, 0.46);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

body.service-access .calendar-label {
  fill: rgba(255, 255, 255, 0.78);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

body.service-access .calendar-weekdays text {
  fill: rgba(255, 255, 255, 0.38);
  font-family: Inter, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 900;
  text-anchor: middle;
}

body.service-access .calendar-cell {
  fill: rgba(237, 247, 248, 0.075);
  stroke: rgba(184, 214, 216, 0.18);
  stroke-width: 0.65;
}

body.service-access .calendar-cell.muted {
  fill: rgba(255, 255, 255, 0.025);
  stroke: rgba(255, 255, 255, 0.05);
}

body.service-access .calendar-cell.active {
  fill: rgba(107, 159, 165, 0.66);
  stroke: rgba(184, 214, 216, 0.58);
}

body.service-access .calendar-dots circle {
  fill: #ffffff;
  opacity: 0.55;
}

body.service-access .brand-copy {
  position: relative;
  max-width: 29rem;
  margin: auto 0 0;
  padding: 18px 20px 18px 24px;
  border: 1px solid rgba(184, 214, 216, 0.24);
  border-left: 4px solid #b8d6d8;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
  font-size: clamp(0.98rem, 2vh, 1.08rem);
  line-height: 1.55;
}

body.service-access .brand-copy::before {
  content: "Reservas claras, control privado.";
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.service-access .emblem-actions {
  display: none;
}

body.landing-mode:not(.service-access) .brand-panel.sidebar-style-emblem .brand-copy {
  width: 100%;
  justify-self: stretch;
  margin-inline: 0;
  padding-inline: 28px;
  max-width: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 2.65vw, 2.55rem);
}

h3 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.brand-copy {
  margin: auto 0 -12px;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.94rem, 2vh, 1.02rem);
  line-height: 1.58;
}

.status-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9ed4a3;
}

.status-icon {
  display: none;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--accent), white 24%);
  border-radius: 50%;
  color: color-mix(in srgb, var(--accent), white 30%);
  background: rgba(255, 255, 255, 0.05);
}

.status-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.commercial-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  min-height: 44px;
  margin-top: -16px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--accent), white 22%);
  border-radius: 8px;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft), white 12%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.commercial-trigger:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft), white 4%);
}

.emblem-actions {
  display: contents;
}

.guide-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--accent-deep);
  border-radius: 7px;
  color: var(--white);
  background: var(--accent-deep);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.guide-trigger:hover {
  transform: translateY(-1px);
  color: var(--white);
  background: color-mix(in srgb, var(--accent-deep), black 10%);
}

.doctor-panel-mode .status-panel {
  margin-top: auto;
}

.doctor-panel-mode .guide-trigger,
.doctor-panel-mode .support-panel {
  margin-top: 0;
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem {
  row-gap: var(--emblem-section-gap);
  padding: clamp(18px, 3vh, 32px) 28px;
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem .brand-mark {
  width: clamp(118.8px, 18vh, 186.3px);
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem .brand-copy {
  display: block !important;
  grid-row: 6;
  width: 100%;
  justify-self: stretch;
  margin: 0;
  padding-inline: 28px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-align: left;
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem .brand-copy::before {
  content: "Gestiona las reglas, mensajes y diseño de tu agenda.";
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.94rem, 2vh, 1.02rem);
  line-height: 1.42;
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem .status-panel {
  width: min(100%, 23rem);
  margin-top: 0;
  margin-inline: auto;
  padding: 7px 16px;
  gap: 12px;
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem .status-icon {
  width: 36px;
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem .status-icon svg {
  width: 17px;
  height: 17px;
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem #availabilitySummary {
  font-size: 14px;
  line-height: 1.2;
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem .guide-trigger {
  width: min(100%, 23rem);
  margin-inline: auto;
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem .support-panel {
  width: min(100%, 23rem);
  margin-inline: auto;
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem .guide-trigger,
.doctor-panel-mode .brand-panel.sidebar-style-emblem .support-trigger {
  min-height: 38px;
  padding-block: 8px;
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem .support-trigger {
  width: 100%;
}

.doctor-panel-mode .brand-panel.sidebar-style-premium .support-panel p {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 100%;
  text-align: left;
  font-size: 9px;
  line-height: 1.24;
}

.doctor-panel-mode .brand-panel.sidebar-style-premium .support-panel p span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.doctor-panel-mode .brand-panel.sidebar-style-premium .brand-mark {
  width: clamp(92.4px, 12.95vh, 117.6px);
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem .support-panel p {
  display: grid;
  gap: 0;
  text-align: left;
  font-size: 10.5px;
  line-height: 1.24;
}

.doctor-panel-mode .brand-panel.sidebar-style-emblem .support-panel p span {
  display: block;
  white-space: nowrap;
}

.doctor-panel-mode .brand-panel.sidebar-style-premium .status-panel {
  width: min(calc(100% - 20px), 21rem);
  max-width: 21rem;
}

.doctor-panel-mode .brand-panel.sidebar-style-premium .guide-trigger {
  width: min(calc(100% - 20px), 21rem);
  margin-inline: auto;
}

.doctor-panel-mode .brand-panel.sidebar-style-premium .support-panel {
  width: min(calc(100% - 20px), 21rem);
  margin-inline: auto;
}

.support-panel {
  flex-shrink: 0;
  display: grid;
  gap: 8px;
}

.support-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(107, 159, 165, 0.45);
  border-radius: 7px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.support-trigger:hover {
  transform: translateY(-1px);
  color: var(--white);
  background: var(--accent-deep);
}

.support-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  line-height: 1.45;
}

.workspace {
  padding: 24px 34px 30px;
}

.landing-mode .app-shell {
  display: block;
}

.landing-mode .brand-panel,
.landing-mode .topbar-copy {
  display: none;
}

.landing-mode .workspace {
  height: 100vh;
  min-height: 0;
  padding: 18px 34px;
  overflow: hidden;
}

.landing-mode .topbar {
  justify-content: flex-end;
  min-height: 0;
  margin-bottom: 0;
}

.topbar,
.calendar-toolbar,
.panel-heading.row,
.panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  margin-bottom: 12px;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-link,
.ghost-button,
.primary-button,
.icon-button,
.slot-button,
.delete-button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link.active {
  color: var(--white);
  background: var(--ink);
}

.patient-booking-action {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

body.commercial-home {
  background: #fbfaf7;
}

body.commercial-home .app-shell {
  display: block;
  min-height: 100vh;
}

body.commercial-home .brand-panel,
body.commercial-home .topbar {
  display: none;
}

body.commercial-home .workspace {
  min-height: 100vh;
  padding: 0;
}

.commercial-page {
  min-height: 100vh;
  overflow: hidden;
  color: #263136;
  background:
    linear-gradient(135deg, rgba(107, 159, 165, 0.12), transparent 32%),
    linear-gradient(315deg, rgba(184, 214, 216, 0.16), transparent 28%),
    #fbfaf7;
}

.commercial-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 10px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid rgba(38, 49, 54, 0.1);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.commercial-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #263136;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.commercial-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border: 2px solid #6b9fa5;
  border-radius: 50%;
  color: #46787f;
  background: #edf7f8;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
}

.commercial-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.8vw, 24px);
  font-size: 0.84rem;
  font-weight: 700;
}

.commercial-nav a {
  color: #263136;
  text-decoration: none;
}

.commercial-nav-cta {
  padding: 10px 16px;
  border-radius: 8px;
  color: #ffffff !important;
  background: #46787f;
  box-shadow: 0 14px 30px rgba(38, 49, 54, 0.14);
}

.commercial-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(500px, 1.28fr);
  align-items: center;
  gap: clamp(20px, 3.2vw, 42px);
  min-height: calc(100vh - 64px);
  padding: clamp(28px, 4.2vw, 54px) clamp(22px, 5vw, 72px) 30px;
}

.commercial-hero-copy {
  max-width: 500px;
}

.commercial-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #46787f;
  background: #edf7f8;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.commercial-hero h1,
.commercial-steps h2,
.commercial-pricing h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

.commercial-hero h1 {
  max-width: 500px;
  font-size: clamp(2.55rem, 4.45vw, 4.55rem);
  line-height: 0.96;
}

.commercial-hero-copy > p:not(.commercial-kicker):not(.commercial-trust) {
  max-width: 470px;
  margin: 18px 0 0;
  color: #415158;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.55;
}

.commercial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.commercial-actions .primary-button,
.pricing-card .primary-button,
.pricing-support .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
}

.commercial-actions .primary-button,
.commercial-actions .ghost-button {
  width: auto;
  min-width: 152px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.commercial-actions .primary-button {
  color: #ffffff;
  background: #52777f;
  box-shadow: 0 16px 34px rgba(38, 49, 54, 0.16);
}

.commercial-actions .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(82, 119, 127, 0.58);
  color: #52777f;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(38, 49, 54, 0.06);
}

.commercial-trust {
  position: relative;
  margin: 20px 0 0;
  max-width: 560px;
  padding-left: 40px;
  color: #52666d;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.commercial-trust::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08em;
  width: 26px;
  height: 30px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.2 21 5.9v6.8c0 5.8-3.7 10.9-9 12.8-5.3-1.9-9-7-9-12.8V5.9l9-3.7Z' fill='none' stroke='%2352777f' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='m8 13.8 2.5 2.5L16.8 10' fill='none' stroke='%2352777f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.commercial-preview {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(82, 119, 127, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(82, 119, 127, 0.32), rgba(184, 214, 216, 0.2), rgba(82, 119, 127, 0.18)) border-box,
    #ffffff;
  box-shadow:
    0 18px 54px rgba(38, 49, 54, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: scale(0.96);
  transform-origin: center right;
}

.commercial-preview::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  z-index: 1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(82, 119, 127, 0.42), transparent);
  pointer-events: none;
}

.preview-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: none;
  border: 1px solid rgba(38, 49, 54, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(38, 49, 54, 0.1);
}

.preview-window.active {
  display: block;
}

.gallery-shot {
  background: #fbfaf7;
}

.gallery-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.93 / 1;
  object-fit: contain;
}

.preview-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  background: #f7f8f6;
}

.preview-window-bar span {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e16b5c;
}

.preview-window-bar span:nth-child(2) {
  background: #e0b94f;
}

.preview-window-bar span:nth-child(3) {
  background: #65bb78;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  min-height: 320px;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(rgba(38, 49, 54, 0.95), rgba(38, 49, 54, 0.98)),
    #263136;
}

.preview-sidebar p,
.preview-sidebar h2,
.preview-sidebar span {
  margin: 0;
}

.preview-sidebar h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 2.35vw, 2.35rem);
  line-height: 0.96;
}

.preview-sidebar > span {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  opacity: 0.72;
}

.preview-avatar {
  display: grid;
  place-items: center;
  width: 74px;
  aspect-ratio: 1;
  border: 2px solid #b8d6d8;
  border-radius: 50%;
  color: #46787f;
  background: #edf7f8;
  font-weight: 900;
}

.preview-chip,
.preview-button {
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(184, 214, 216, 0.26);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
}

.preview-button {
  color: #263136;
  background: #ffffff;
}

.preview-panel {
  padding: clamp(18px, 2.4vw, 28px);
}

.preview-panel h2 {
  margin: 0 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
}

.preview-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(38, 49, 54, 0.08);
}

.preview-link-row span,
.preview-grid p,
.preview-today span {
  display: block;
  margin: 0 0 6px;
  color: #6b9fa5;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-link-row button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  background: #46787f;
  font-weight: 800;
}

.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(160px, 0.9fr);
  gap: 16px;
}

.preview-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(24px, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.preview-calendar span,
.preview-calendar b {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 6px;
  color: #52666d;
  background: #ffffff;
  font-size: 0.78rem;
}

.preview-calendar span {
  min-height: 20px;
  color: #6b9fa5;
  background: transparent;
  font-weight: 900;
}

.preview-calendar .active,
.preview-calendar .dot {
  color: #ffffff;
  background: #6b9fa5;
}

.preview-today {
  padding-top: 24px;
  color: #52666d;
  text-align: right;
}

.patient-preview-layout,
.settings-preview-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(300px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 320px;
  padding: clamp(22px, 3vw, 34px);
}

.patient-preview-copy h2,
.settings-preview-layout h2 {
  margin: 0;
  max-width: 460px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 3.6vw, 3.6rem);
  line-height: 0.98;
}

.patient-preview-copy p:not(.commercial-kicker),
.settings-preview-layout p:not(.commercial-kicker) {
  max-width: 420px;
  margin: 14px 0 0;
  color: #52666d;
  line-height: 1.5;
}

.patient-preview-copy button {
  min-height: 42px;
  margin-top: 20px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: #52777f;
  font-weight: 900;
}

.patient-preview-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(38, 49, 54, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(38, 49, 54, 0.1);
}

.patient-preview-card .preview-calendar {
  margin-top: 0;
}

.patient-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.patient-times span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 7px;
  color: #52777f;
  background: #edf7f8;
  font-weight: 900;
}

.settings-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-preview-grid article {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(38, 49, 54, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(38, 49, 54, 0.08);
}

.settings-preview-grid span {
  color: #6b9fa5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.settings-preview-grid strong {
  color: #263136;
  font-size: 1rem;
  line-height: 1.25;
}

.preview-gallery-controls {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.preview-gallery-controls button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(82, 119, 127, 0.3);
  border-radius: 999px;
  color: #52777f;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.preview-gallery-controls button.active {
  color: #ffffff;
  background: #52777f;
}

.commercial-benefits {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 14px;
  padding: 18px clamp(22px, 5vw, 72px) 24px;
  background: rgba(255, 255, 255, 0.58);
}

.commercial-benefits article {
  min-height: 150px;
  padding: 18px 14px;
  border: 1px solid rgba(38, 49, 54, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  text-align: center;
  box-shadow: 0 18px 42px rgba(38, 49, 54, 0.06);
}

.commercial-benefits span {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #46787f;
  background: #edf7f8;
  font-weight: 900;
}

.commercial-benefits h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.commercial-benefits p {
  margin: 0;
  color: #52666d;
  font-size: 0.86rem;
  line-height: 1.42;
}

.commercial-steps {
  padding: 14px clamp(22px, 5vw, 72px) 36px;
  text-align: center;
}

.commercial-steps h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 24px auto 0;
}

.steps-row article {
  position: relative;
  padding-top: 18px;
}

.steps-row span {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #ffffff;
  background: #263136;
  font-weight: 900;
}

.steps-row h3 {
  margin: 0 0 10px;
}

.steps-row p {
  margin: 0;
  color: #52666d;
  line-height: 1.55;
}

.commercial-pricing {
  padding: 38px clamp(22px, 5vw, 72px);
  color: #ffffff;
  background:
    radial-gradient(circle at 22% 20%, rgba(107, 159, 165, 0.32), transparent 34%),
    linear-gradient(140deg, #16282d, #263136 58%, #102228);
}

.pricing-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.commercial-pricing h2 {
  text-align: center;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}

.activation-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  max-width: 880px;
  margin: 18px auto 18px;
  padding: 14px 22px;
  border: 1px solid rgba(184, 214, 216, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 34px rgba(0, 0, 0, 0.12);
}

.activation-side {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.activation-badge {
  display: grid;
  place-items: center;
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 50%, #f7c95f 0 38%, transparent 39%),
    repeating-conic-gradient(from 0deg, #f2c15c 0 10deg, #dba94c 10deg 20deg);
  font-size: 1.25rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.activation-divider {
  display: block;
  width: 1px;
  height: 64px;
  background: rgba(184, 214, 216, 0.26);
}

.activation-banner strong {
  display: grid;
  gap: 2px;
  color: #f6d978;
  font-size: clamp(1rem, 1.35vw, 1.24rem);
  line-height: 1.15;
}

.activation-banner strong span:last-child {
  color: #fff0ae;
}

.activation-banner strong span:nth-child(3) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86em;
}

.activation-copy {
  display: grid;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.42;
  text-align: left;
  white-space: nowrap;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
  max-width: 840px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(184, 214, 216, 0.46);
  border-radius: 8px;
  color: #263136;
  background: #ffffff;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.recommended {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 999px;
  color: #263136;
  background: #ffe08a;
  font-size: 0.78rem;
  font-weight: 900;
}

.pricing-card h3 {
  margin: 0;
  text-align: center;
  font-size: 1.22rem;
}

.price {
  margin: 0;
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.12rem;
}

.price strong {
  font-size: clamp(2.35rem, 3.8vw, 3.35rem);
  line-height: 1;
}

.activation-box {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(107, 159, 165, 0.5);
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.25;
}

.pricing-card.featured .activation-box {
  border-color: rgba(255, 255, 255, 0.58);
}

.activation-box-title {
  color: #263136;
  font-size: 1.02rem;
  font-weight: 900;
}

.activation-box-special {
  color: #52777f;
  font-size: 0.92rem;
  font-weight: 800;
}

.activation-box-regular {
  color: #87979c;
  font-size: 0.82rem;
  font-weight: 600;
}

.activation-box-includes {
  color: #6f858b;
  font-size: 0.86rem;
  font-weight: 700;
}

.pricing-card.featured .activation-box-title {
  color: #ffffff;
}

.pricing-card.featured .activation-box-special {
  color: #fff0ae;
}

.pricing-card.featured .activation-box-regular {
  color: rgba(255, 255, 255, 0.64);
}

.pricing-card.featured .activation-box-includes {
  color: #edf7f8;
}

.pricing-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  font-weight: 500;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #6b9fa5;
}

.feature-info {
  display: inline-grid;
  place-items: center;
  width: 16px;
  min-height: 16px;
  aspect-ratio: 1;
  margin-left: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.72;
  vertical-align: 0.12em;
}

.feature-info[aria-expanded="true"] {
  opacity: 1;
}

.feature-note {
  display: block;
  margin-top: 7px;
  color: #52666d;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.36;
}

.pricing-card .primary-button {
  width: 100%;
  margin-top: auto;
}

.pricing-note {
  margin: 16px auto 18px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.pricing-launch-note {
  max-width: 760px;
  margin: -8px auto 22px;
  color: rgba(255, 240, 174, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.pricing-support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.pricing-support article {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 8px;
  color: #263136;
  background: #ffffff;
}

.pricing-support h3,
.pricing-support p {
  margin: 0;
}

.pricing-support h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
}

.pricing-support p {
  color: #415158;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pricing-support .primary-button {
  justify-self: end;
  min-width: min(100%, 290px);
}

.commercial-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(140px, 0.5fr) minmax(140px, 0.5fr);
  gap: 22px;
  padding: 30px clamp(22px, 5vw, 72px);
  color: #ffffff;
  background: #16282d;
}

.commercial-footer .commercial-brand,
.commercial-footer a {
  color: #ffffff;
}

.commercial-footer .commercial-brand-mark {
  color: #16282d;
  background: #ffffff;
}

.commercial-footer h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.commercial-footer p,
.commercial-footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  text-decoration: none;
}

.commercial-footer div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
}

.calendar-toolbar {
  margin-bottom: 18px;
}

.patient-landing {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: center;
  height: calc(100vh - 36px);
  min-height: 0;
  padding: clamp(20px, 4vh, 46px) clamp(32px, 5vw, 64px);
  border-radius: 0;
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0.98) 0 39%, rgba(237, 247, 248, 0.95) 39% 100%),
    var(--white);
  overflow: hidden;
}

.patient-landing.custom-hero {
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0.96) 0 39%, rgba(237, 247, 248, 0.78) 39% 100%),
    var(--hero-image) center / cover no-repeat,
    var(--white);
}

.patient-landing.custom-hero .visual-card {
  display: none;
}

.landing-copy {
  display: grid;
  justify-items: start;
  align-content: center;
  max-width: 520px;
  min-width: 0;
}

.landing-copy #landingSpecialty {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  line-height: 1.2;
}

.landing-copy h3 {
  display: block;
  width: 100%;
  margin-bottom: clamp(12px, 2.5vh, 22px);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4.35rem, min(9.2vw, 13vh), 8.8rem);
  line-height: 0.88;
  overflow-wrap: normal;
}

.landing-title-line,
.landing-name-line {
  display: block;
}

.landing-title-line {
  margin-bottom: 0.08em;
  font-size: 1em;
  line-height: 1;
}

.landing-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1rem, min(1.8vw, 2.6vh), 1.32rem);
  line-height: 1.55;
}

.landing-action {
  width: min(100%, 430px);
  margin-top: clamp(18px, 4vh, 32px);
}

.brand-panel.sidebar-style-emblem ~ .workspace #startBooking {
  color: var(--white);
  border: 1px solid transparent;
  background:
    radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--accent), transparent 58%), transparent 42%) padding-box,
    linear-gradient(color-mix(in srgb, var(--brand-bg), black 4%), color-mix(in srgb, var(--brand-bg), black 18%)) padding-box,
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--decorative), white 30%),
      rgba(255, 255, 255, 0.32),
      color-mix(in srgb, var(--decorative), black 10%)
    ) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 28px color-mix(in srgb, var(--brand-bg), transparent 76%);
}

.brand-panel.sidebar-style-premium ~ .workspace #startBooking {
  color: var(--white);
  border: 1px solid var(--decorative);
  background: var(--brand-bg);
}

.landing-visual {
  display: grid;
  place-items: center;
  min-height: 0;
}

.visual-card {
  position: relative;
  width: min(100%, 720px, 76vh);
  aspect-ratio: 1.45;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 12% 2% 8% 5%;
  border-radius: 42% 50% 46% 54%;
  background: #dbeef3;
}

.visual-card::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 16%;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 12px solid rgba(107, 159, 165, 0.22);
}

.visual-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(107, 159, 165, 0.22);
}

.circle-one {
  top: 10%;
  left: 32%;
  width: 34px;
  height: 34px;
}

.circle-two {
  top: 22%;
  right: 14%;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(70, 120, 127, 0.45);
  background: transparent;
}

.circle-three {
  bottom: 24%;
  left: 10%;
  width: 24px;
  height: 24px;
}

.brain-mark {
  position: absolute;
  top: 27%;
  left: 36%;
  width: 26%;
  aspect-ratio: 1.15;
  border-radius: 48% 52% 45% 55%;
  background: #5f8fae;
  box-shadow:
    -28px 16px 0 #5f8fae,
    30px 18px 0 #5f8fae,
    0 42px 0 #5f8fae;
}

.brain-mark span {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.brain-mark span:nth-child(1) {
  inset: 18% 14% 42% 12%;
}

.brain-mark span:nth-child(2) {
  inset: 34% 8% 18% 28%;
}

.brain-mark span:nth-child(3) {
  inset: 38% 34% 12% 8%;
}

.brain-mark span:nth-child(4) {
  inset: 16% 34% 34% 34%;
}

.leaf {
  position: absolute;
  width: 22%;
  height: 34%;
  border-radius: 80% 0 80% 0;
  background: #8fb5c8;
}

.leaf-left {
  left: 20%;
  top: 36%;
  transform: rotate(-38deg);
}

.leaf-right {
  right: 18%;
  top: 22%;
  transform: rotate(36deg);
}

.doctor-shape {
  position: absolute;
  bottom: 12%;
  width: 42px;
  height: 88px;
  border-radius: 24px 24px 8px 8px;
  background: var(--white);
  box-shadow: inset 0 -34px 0 #5f8fae;
}

.doctor-shape::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #263136;
}

.doctor-shape::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 54px;
  height: 8px;
  border-radius: 999px;
  background: #5f8fae;
}

.doctor-left {
  left: 26%;
}

.doctor-left::after {
  right: -34px;
  transform: rotate(-24deg);
}

.doctor-right {
  right: 18%;
}

.doctor-right::after {
  left: -34px;
  transform: rotate(24deg);
}

.schedule-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cancel-card {
  width: min(100%, 980px);
  margin: 18px auto 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(38, 49, 54, 0.08);
}

.cancel-card .panel-heading {
  margin-bottom: 14px;
}

.cancel-card .panel-heading .eyebrow {
  margin-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.cancel-card .panel-heading h3 {
  font-size: 1.2rem;
  line-height: 1.15;
}

.cancel-card #backToBooking {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.76rem;
}

.login-card {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

#adminLoginView.active {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

#activationView.active,
#inactiveAccountView.active,
#planChangeView.active,
#renewalView.active {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

.activation-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.activation-form {
  display: grid;
  gap: 16px;
}

.activation-section {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.activation-section legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.activation-plan-grid,
.activation-method-grid {
  display: grid;
  gap: 10px;
}

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

.activation-method-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.activation-plan-option,
.activation-method-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.activation-method-grid label {
  min-height: 50px;
  padding: 10px 12px;
  font-size: 0.86rem;
}

.activation-plan-option span {
  display: grid;
  gap: 3px;
}

.activation-plan-option strong {
  font-size: 0.98rem;
}

.activation-plan-option small {
  color: var(--accent-deep);
  font-weight: 900;
}

.activation-plan-option:has(input:checked),
.activation-method-grid label:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent), black 8%);
  background: color-mix(in srgb, var(--accent-soft), white 44%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent), white 24%);
}

.activation-price-summary {
  display: grid;
  grid-template-columns: 1.15fr 0.78fr 0.95fr 0.95fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent), white 34%);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(237, 247, 248, 0.88), rgba(255, 255, 255, 0.8));
}

.activation-price-summary div {
  display: grid;
  grid-template-rows: 18px 1fr;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 70px;
  padding: 11px 18px 12px;
}

.activation-price-summary div + div {
  border-left: 1px solid color-mix(in srgb, var(--accent), white 42%);
}

.activation-price-summary span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.activation-price-summary strong {
  align-self: center;
  justify-self: start;
  color: var(--accent-deep);
  font-size: 1.15rem;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 850;
  line-height: 1;
}

.activation-price-feature {
  background: rgba(255, 255, 255, 0.48);
}

.activation-price-feature strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: color-mix(in srgb, var(--accent-deep), var(--ink) 22%);
}

.activation-price-feature strong small {
  color: var(--accent-deep);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
}

.activation-price-summary div:nth-child(2) strong {
  color: color-mix(in srgb, var(--accent-deep), white 28%);
  justify-self: center;
}

.activation-price-summary div:nth-child(3) strong {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.18;
}

.activation-price-total {
  background: color-mix(in srgb, var(--accent-soft), white 24%);
  text-align: center;
}

.activation-price-total span,
.activation-price-total strong {
  justify-self: center;
}

.activation-price-total strong {
  color: color-mix(in srgb, var(--ink), var(--accent-deep) 34%);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.65rem, 2.5vw, 2.05rem);
}

.activation-method-details {
  min-height: 68px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fbfaf7;
  line-height: 1.55;
}

.activation-method-details strong {
  color: var(--ink);
}

.activation-file-control {
  min-height: 68px;
}

.activation-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.inactive-account-card {
  width: min(100%, 560px);
}

@media (max-width: 720px) {
  .activation-plan-grid,
  .activation-price-summary,
  .plan-dialog-grid,
  .plan-change-summary,
  .renewal-summary {
    grid-template-columns: 1fr;
  }

  .plan-dialog-grid div + div,
  .plan-change-summary div + div {
    border-top: 1px solid color-mix(in srgb, var(--accent), white 42%);
    border-left: 0;
  }

  .plan-change-actions {
    display: grid;
  }

  .renewal-warning {
    display: grid;
  }
}

@media (max-width: 980px) {
  .activation-method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .activation-method-grid {
    grid-template-columns: 1fr;
  }
}

.login-card form {
  display: grid;
  gap: 10px;
}

.login-card .panel-heading {
  margin-bottom: 4px;
}

.login-card .panel-heading h3 {
  font-size: 1.18rem;
}

.login-card label {
  gap: 5px;
  font-size: 0.82rem;
}

.login-card input {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 12px 0 16px;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--accent), white 36%);
  border-radius: 999px;
  color: var(--accent-deep);
  background: linear-gradient(135deg, rgba(237, 247, 248, 0.95), rgba(255, 255, 255, 0.86));
  box-shadow: none;
  font-size: 0.88rem;
  font-weight: 900;
}

.auth-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--accent-deep);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.auth-tab.active {
  color: var(--white);
  border-color: color-mix(in srgb, var(--accent), white 22%);
  background: var(--teal-deep);
  box-shadow: none;
  text-decoration: none;
}

.auth-tab:not(.active):hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.78);
}

.auth-tab-separator {
  display: none;
}

.register-only-fields {
  display: grid;
  gap: 10px;
}

.full-width-action {
  width: 100%;
}

.share-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding-block: 12px;
}

.copy-toast {
  position: absolute;
  right: 24px;
  bottom: -14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.copy-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.action-toast {
  position: fixed;
  right: 28px;
  top: 28px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(107, 159, 165, 0.42);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 16px 45px rgba(38, 49, 54, 0.18);
  font-size: 0.88rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.action-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.action-toast::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent-deep);
}

.login-copy {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.login-copy.register-copy {
  display: grid;
  gap: 2px;
  max-width: 100%;
  font-size: clamp(0.68rem, 1.05vw, 0.76rem);
  line-height: 1.35;
  text-align: left;
}

.login-copy.register-copy span {
  display: block;
  white-space: nowrap;
}

.login-card .primary-button {
  min-height: 38px;
  margin-top: 2px;
  font-size: 0.9rem;
}

.auth-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.cancel-search {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px);
  gap: 12px;
  align-items: end;
}

.cancel-search label {
  margin-bottom: 0;
}

.cancel-results {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.cancel-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid color-mix(in srgb, var(--accent), white 16%);
  border-radius: 7px;
  background: color-mix(in srgb, var(--white) 94%, var(--accent-soft));
}

.cancel-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.cancel-item > div:first-child {
  min-width: 0;
}

.cancel-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.reschedule-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cancel-item .reschedule-actions .ghost-button {
  min-height: 32px;
  padding-inline: 11px;
  font-size: 0.74rem;
}

.cancel-item .reschedule-actions .delete-button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 0.78rem;
}

.schedule-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 18px 0;
}

.progress-step {
  position: relative;
  padding-bottom: 11px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.progress-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  border-radius: 999px;
  background: #d6dddc;
}

.progress-step.active {
  color: var(--accent-deep);
}

.progress-step.active::after {
  background: var(--accent);
}

.schedule-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.25fr);
  gap: 22px;
  padding: 18px 18px 22px;
}

.month-toolbar,
.time-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.month-toolbar {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
}

.month-toolbar > div {
  min-width: 0;
  text-align: center;
}

.text-action {
  margin-top: 4px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(107, 159, 165, 0.45);
  border-radius: 7px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(70, 120, 127, 0.08);
}

.text-action:hover {
  color: var(--white);
  background: var(--accent-deep);
}

.admin-nav .text-action {
  color: var(--white);
  background: var(--accent-deep);
}

.admin-nav .text-action:hover {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.admin-nav #reportProblemButton {
  border-color: #aeb7b9;
  color: #48575b;
  background: #eef1f1;
}

.admin-nav #reportProblemButton:hover {
  border-color: #657478;
  color: var(--white);
  background: #657478;
}

.brand-panel.sidebar-style-premium ~ .workspace #showCancelView,
.brand-panel.sidebar-style-premium ~ .workspace #toggleWeek {
  border-color: var(--decorative);
}

.brand-panel.sidebar-style-premium ~ .workspace #showCancelView {
  color: var(--white);
  background: var(--brand-bg);
}

.mini-button {
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.mini-button:hover {
  border-color: var(--line);
  background: #f4f1ed;
}

.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.month-weekdays {
  margin-bottom: 8px;
  color: #9aa6a9;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.date-button {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
}

.date-button.outside {
  color: #c9d0d0;
}

.date-button.has-slots {
  border-color: rgba(107, 159, 165, 0.38);
  color: var(--ink);
  background: var(--accent-soft);
}

.date-button.selected {
  color: var(--white);
  background: var(--accent-deep);
}

.date-button.today:not(.selected) {
  border-color: var(--teal);
}

.admin-agenda-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(360px, 1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.admin-calendar-shell {
  max-width: 330px;
}

.admin-month-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: -6px 0 12px;
}

.admin-month-selector h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.admin-month-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.admin-month-grid {
  gap: 5px;
}

.admin-date-button {
  position: relative;
  min-height: 36px;
  align-items: start;
  justify-items: start;
  padding: 6px;
  border-color: var(--line);
  background: var(--white);
  font-size: 0.76rem;
}

.admin-date-button.has-appointments {
  border-color: color-mix(in srgb, var(--accent), transparent 35%);
  background: var(--accent-soft);
}

.admin-date-button.selected {
  color: var(--white);
  background: var(--teal-deep);
}

.admin-date-count {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  font-size: 0.58rem;
  font-weight: 900;
}

.admin-date-button.selected .admin-date-count {
  color: var(--accent-deep);
  background: var(--white);
}

.day-agenda-heading {
  margin-bottom: 12px;
}

.admin-day-panel {
  justify-self: start;
  min-width: 0;
  width: min(100%, 520px);
  margin-top: -58px;
  margin-right: 0;
  text-align: right;
}

.time-picker {
  min-width: 0;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(104px, 1fr));
  gap: 9px;
  align-content: start;
}

.compact {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.week-drawer {
  margin-top: 18px;
}

.icon-button {
  width: 44px;
  border: 1px solid var(--line);
  color: var(--teal-deep);
  background: var(--white);
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.day-column {
  min-height: 430px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 35px rgba(38, 49, 54, 0.06);
}

.day-column.today {
  border-color: var(--teal);
  background: var(--white);
}

.day-name {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.day-number {
  margin-bottom: 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
}

.slot-list {
  display: grid;
  gap: 8px;
}

.slot-button {
  width: 100%;
  padding: 0 10px;
  color: var(--ink);
  border: 1px solid rgba(107, 159, 165, 0.55);
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.time-grid .slot-button {
  min-height: 44px;
}

.slot-list .slot-button {
  min-height: 38px;
  padding-inline: 6px;
  font-size: 0.82rem;
}

.slot-button:hover {
  color: var(--white);
  background: var(--accent-deep);
}

.slot-button:hover,
.icon-button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.empty-day {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.helper-copy {
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.confirmation-helper-copy {
  font-size: 0.72rem;
}

.delivery-status {
  margin-top: -2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
}

.delivery-status.warning {
  background: #fff7e8;
  border-color: #e7c98f;
  color: #8a5d16;
}

.time-grid .empty-day {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.doctor-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin: 10px 0 16px;
}

.doctor-layout-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 16px 0 0;
}

.compact-panel-action {
  width: 38px;
  min-height: 38px;
  font-size: 1rem;
}

.doctor-column {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.panel,
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px;
}

.collapsible-panel {
  padding: 0;
  overflow: hidden;
}

.panel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 18px 20px;
  border: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.panel-toggle strong {
  display: block;
  font-size: 1.05rem;
}

.panel-toggle .eyebrow {
  display: block;
}

.toggle-symbol {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(107, 159, 165, 0.45);
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-weight: 900;
}

.collapsible-content {
  padding: 22px 20px 20px;
  border-top: 1px solid var(--line);
}

.collapsible-content[hidden] {
  display: none;
}

#settingsFormWrap {
  display: grid;
  gap: 14px;
  padding: 18px;
}

#settingsFormWrap[hidden] {
  display: none;
}

.rules-form-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--paper) 74%, var(--white));
}

.compact-settings-form {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.compact-settings-form > label,
.compact-settings-form > div > label,
.compact-settings-form .form-grid label {
  gap: 5px;
  margin-bottom: 0;
  font-size: 0.78rem;
}

.compact-settings-form input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]),
.compact-settings-form select,
.compact-settings-form textarea {
  min-height: 36px;
  padding-inline: 10px;
  font-size: 0.82rem;
}

.compact-settings-form textarea {
  min-height: 62px;
  padding-block: 8px;
}

.compact-settings-form fieldset,
.compact-settings-form .mode-switch,
.compact-settings-form .check-row,
.compact-settings-form .helper-copy {
  margin-bottom: 0;
}

.compact-settings-form fieldset {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--paper) 74%, var(--white));
}

.compact-settings-form fieldset legend {
  margin-bottom: 7px;
  padding: 0 4px;
  font-size: 0.78rem;
}

.compact-settings-form .mode-switch label,
.compact-settings-form .check-row {
  min-height: 34px;
  font-size: 0.78rem;
}

.compact-settings-form .helper-copy,
.compact-settings-form .email-required-note {
  margin-block: 0;
  font-size: 0.74rem;
  line-height: 1.4;
}

.compact-settings-form .style-form-actions {
  margin-top: 4px;
}

.rules-section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 2px;
  color: var(--ink);
}

.rules-section-heading > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 900;
}

.rules-section-heading strong {
  font-size: 0.86rem;
}

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

#settingsFormWrap label {
  gap: 5px;
  margin-bottom: 0;
  font-size: 0.78rem;
}

#settingsFormWrap input,
#settingsFormWrap select,
#settingsFormWrap textarea {
  min-height: 36px;
  padding-inline: 10px;
  font-size: 0.82rem;
}

#settingsFormWrap textarea {
  min-height: 62px;
}

.label-with-info {
  display: flex;
  align-items: center;
  gap: 7px;
}

.info-toggle {
  display: inline-grid;
  place-items: center;
  width: 19px;
  min-height: 19px;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
}

.field-info {
  margin: -3px 0 2px;
  padding: 9px 10px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  background: var(--white);
  font-size: 0.72rem;
  line-height: 1.45;
}

.variable-duration-toggle {
  min-height: 34px;
  margin: 2px 0 0;
}

.rules-save-button {
  justify-self: end;
  width: auto;
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.8rem;
}

.rules-section-copy {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.special-block-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recurring-break-toggle,
.special-block-toggle {
  margin-top: 3px;
}

.recurring-break-fields,
.special-block-fields {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent), white 42%);
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent-soft), white 62%);
}

.recurring-break-fields[hidden],
.special-block-fields[hidden] {
  display: none;
}

.recurring-break-day-selector {
  margin: 0;
}

.recurring-break-submit {
  justify-self: end;
}

.recurring-break-list {
  display: grid;
  gap: 8px;
}

.recurring-break-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.recurring-break-item strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.2;
}

.recurring-break-item span {
  color: var(--muted);
  font-size: 0.72rem;
}

.check-row.disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.receipt-attach-requirement {
  margin-top: -4px;
}

.special-block-submit {
  justify-self: end;
}

.special-block-status {
  min-height: 0;
  margin: 0;
  font-size: 0.75rem;
}

.special-block-conflict-card {
  display: grid;
  gap: 14px;
  width: min(92vw, 620px);
  padding: 24px;
  background: var(--white);
}

.special-block-conflict-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.special-block-conflict-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.special-block-conflict-item {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 74%, var(--white));
}

.special-block-conflict-item strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.special-block-conflict-item span {
  color: var(--muted);
  font-size: 0.76rem;
}

.appointment-item.block-item {
  border-color: color-mix(in srgb, var(--accent), white 30%);
  background: color-mix(in srgb, var(--accent-soft), white 58%);
}

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

.compact-settings-form .form-grid.two {
  gap: 10px;
}

@media (max-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .rules-inline-fields {
    grid-template-columns: 1fr;
  }
}

.panel-heading {
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.day-selector {
  display: grid;
  grid-template-columns: repeat(7, 30px);
  gap: 7px;
  align-items: center;
}

.mode-switch label,
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.82rem;
}

.day-selector label {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.day-selector input {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  opacity: 0;
  cursor: pointer;
}

.day-selector label:has(input:checked) {
  color: var(--white);
  border-color: var(--accent-deep);
  background: var(--accent-deep);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.reminder-settings {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.reminder-settings legend {
  padding: 0 4px;
  color: var(--accent-deep);
}

.reminder-master-option,
.reminder-option-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--ink);
}

.reminder-master-option input,
.reminder-option-list input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.reminder-master-option span {
  display: grid;
  gap: 3px;
}

.reminder-master-option small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
}

.reminder-option-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--white);
}

.reminder-option-list label {
  font-size: 0.82rem;
  font-weight: 700;
}

.reminder-option-list.disabled {
  opacity: 0.48;
}

.style-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.style-form-actions > button {
  flex: 0 1 auto;
  width: auto;
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.76rem;
}

.check-row {
  margin-bottom: 14px;
}

#paymentSettingsFormWrap .check-row {
  min-height: 34px;
  margin-bottom: 0;
  font-size: 0.78rem;
}

#paymentSettingsFormWrap input[type="checkbox"] {
  width: 14px;
  min-height: 14px;
}

.payment-config-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.payment-config-fields label {
  margin-bottom: 0;
  gap: 6px;
  font-size: 0.78rem;
}

.payment-config-fields input {
  min-width: 0;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.payment-config-fields[hidden] {
  display: none;
}

.custom-payment-section {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 10px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper), white 44%);
}

.custom-payment-section .custom-payment-help {
  margin: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.custom-payment-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}

.custom-payment-form label {
  min-width: 0;
  margin: 0;
  gap: 6px;
  font-size: 0.78rem;
}

.custom-payment-form input,
.custom-payment-form textarea {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 0.8rem;
}

.custom-payment-form textarea {
  resize: vertical;
}

.custom-payment-form .compact-add {
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding-inline: 12px;
  font-size: 0.74rem;
}

.custom-payment-list {
  display: grid;
  gap: 7px;
}

.custom-payment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.custom-payment-item div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.custom-payment-item strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.custom-payment-item span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.compact-empty {
  margin: 0;
  padding: 8px;
  font-size: 0.74rem;
}

.fixed-payment-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper), white 45%);
}

.fixed-payment-fields[hidden] {
  display: none;
}

.style-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

#styleFormWrap {
  padding: 18px;
}

#styleFormWrap label {
  gap: 5px;
  margin-bottom: 0;
  font-size: 0.78rem;
}

#styleFormWrap input,
#styleFormWrap select,
#styleFormWrap textarea {
  min-height: 36px;
  border-radius: 10px;
  font-size: 0.82rem;
}

#styleFormWrap label.is-disabled {
  opacity: 0.48;
}

#styleFormWrap input:disabled {
  cursor: not-allowed;
}

#styleFormWrap textarea {
  min-height: 62px;
}

.style-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.style-media-grid > label {
  min-width: 0;
}

.sidebar-style-field {
  margin: 0;
}

.sidebar-style-field legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.sidebar-style-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#styleFormWrap .sidebar-style-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

#styleFormWrap .sidebar-style-option input {
  width: 15px;
  min-height: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--accent-deep);
}

.sidebar-style-option span {
  display: grid;
  gap: 3px;
}

.sidebar-style-option strong {
  font-size: 0.86rem;
  line-height: 1.2;
}

.sidebar-style-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent), black 8%);
  background: color-mix(in srgb, var(--accent-soft), white 46%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent), white 20%);
}

.style-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.style-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-reset-button {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 1rem;
  font-weight: 900;
}

.compact-style-action {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  justify-self: start;
}

.style-color-grid input[type="color"] {
  width: 100%;
  min-height: 38px;
  padding: 3px;
  border-radius: 10px;
}

.consultation-type-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.consultation-type-row label {
  margin-bottom: 0;
}

.consultation-type-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.consultation-type-fields label {
  margin-bottom: 0;
}

.consultation-type-fields:has(#newConsultationDurationWrap[hidden]) {
  grid-template-columns: 1fr;
}

.consultation-type-form-actions,
.consultation-type-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.compact-add {
  width: auto;
  min-height: 32px;
  padding-inline: 11px;
  font-size: 0.74rem;
}

.consultation-type-list {
  display: grid;
  gap: 8px;
}

.consultation-type-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.consultation-type-copy {
  min-width: 0;
}

.consultation-type-name {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  line-height: 1.2;
}

.consultation-type-badge {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 3px;
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.consultation-type-item span {
  color: var(--muted);
  font-size: 0.72rem;
}

.consultation-type-actions .compact {
  min-height: 28px;
  padding-inline: 8px;
  font-size: 0.68rem;
}

.consultation-type-actions {
  display: grid;
  grid-template-columns: 30px max-content 30px;
  align-items: center;
  gap: 6px;
}

.consultation-type-actions .consultation-icon-button {
  display: inline-grid;
  width: 30px;
  min-width: 30px;
  padding-inline: 0;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.consultation-type-actions .consultation-delete-button {
  font-size: 1.18rem;
}

.consultation-type-actions .consultation-toggle-button {
  min-width: 84px;
}

.consultation-type-actions .consultation-delete-button {
  color: #9a3412;
  border-color: rgba(154, 52, 18, 0.28);
}

.consultation-type-actions .consultation-delete-button:hover {
  color: #7c2d12;
  border-color: rgba(154, 52, 18, 0.5);
  background: #fff7ed;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--teal-deep);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
}

textarea {
  padding-block: 10px;
  line-height: 1.45;
  resize: vertical;
}

select {
  padding-right: 42px;
  background-position: right 16px center;
}

.payment-period-control {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--white));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

.consultation-type-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

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

.payment-period-option {
  min-width: 64px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--accent-deep);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.payment-period-option:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.payment-period-option.active {
  color: var(--white);
  background: var(--accent-deep);
  box-shadow: 0 3px 9px color-mix(in srgb, var(--accent-deep) 25%, transparent);
}

.payment-period-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.select-wrap {
  position: relative;
  display: inline-flex;
}

.select-wrap select {
  appearance: none;
  padding-right: 46px;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.primary-button {
  width: 100%;
  padding: 0 18px;
  color: var(--white);
  background: var(--teal-deep);
  font-weight: 800;
}

.inline-route-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  text-decoration: none;
}

.ghost-button {
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.panel-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel-actions .ghost-button.compact {
  min-height: 34px;
  padding: 0 10px;
  border-color: color-mix(in srgb, var(--accent), white 38%);
  color: var(--accent-deep);
  font-size: 0.72rem;
}

.appointment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  gap: 8px;
  justify-content: start;
  justify-items: stretch;
}

.appointment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  width: 100%;
  max-width: 360px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--line), white 18%);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(36, 45, 49, 0.04);
  text-align: left;
}

.appointment-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.appointment-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
}

.appointment-topline strong {
  display: block;
  flex: 0 0 auto;
  margin: 0 2px 0 0;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.18;
}

.appointment-item span {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.appointment-reason {
  width: max-content;
  max-width: 100%;
}

.appointment-reason summary {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--accent), white 34%);
  border-radius: 999px;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft), white 38%);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.appointment-reason summary::-webkit-details-marker {
  display: none;
}

.appointment-reason summary::after {
  content: "+";
  margin-left: 6px;
  font-weight: 900;
}

.appointment-reason[open] summary::after {
  content: "-";
}

.appointment-reason p {
  position: absolute;
  z-index: 3;
  max-width: 300px;
  margin: 5px 0 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: color-mix(in srgb, var(--white) 88%, var(--accent-soft));
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.32;
}

.appointment-meta-row {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  overflow: visible !important;
}

.appointment-kind {
  color: var(--accent-deep);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.appointment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
}

.appointment-actions .compact {
  min-height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 800;
}

.appointment-item .delete-button {
  width: 24px;
  min-height: 24px;
  border-radius: 6px;
  font-size: 0.6rem;
}

.compact-dialog-form {
  max-width: 560px;
}

.two-column-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.email-required-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent), white 38%);
  border-radius: 8px;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft), white 48%);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payments-panel {
  margin-top: 16px;
}

.payment-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-title-row h3 {
  margin: 0;
}

.payment-title-row .ghost-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.7rem;
}

.payment-config-button {
  width: 34px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent), white 34%);
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 0.86rem;
}

.payment-rate-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.payment-rate-row label {
  margin-bottom: 0;
}

.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.payment-control-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent-soft), white 58%);
}

.payment-control-empty[hidden] {
  display: none;
}

.payment-control-empty h3,
.payment-control-empty p {
  margin: 0;
}

.payment-control-empty p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.payment-control-empty .payment-control-intro {
  max-width: 560px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.payment-control-empty .primary-button {
  width: auto;
  flex: 0 0 auto;
}

.summary-card {
  padding: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.summary-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card .summary-label-with-info {
  position: relative;
  display: block;
  min-width: 0;
  padding-right: 22px;
  overflow: visible;
}

.summary-card .summary-label-with-info > span {
  display: block;
  min-width: 0;
  margin-bottom: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(0.46rem, 0.72vw, 0.6rem);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.summary-info {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.summary-info summary {
  display: grid;
  place-items: center;
  width: 16px;
  min-height: 16px;
  border: 1px solid color-mix(in srgb, var(--accent), white 30%);
  border-radius: 50%;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft), white 36%);
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  text-transform: none;
}

.summary-info summary::-webkit-details-marker {
  display: none;
}

.summary-info p {
  position: absolute;
  left: 0;
  z-index: 6;
  width: min(280px, 72vw);
  margin: 7px 0 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  box-shadow: 0 12px 26px rgba(38, 49, 54, 0.1);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.4;
  text-transform: none;
}

.summary-card strong {
  color: var(--accent-deep);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(0.92rem, 2.15vw, 1.18rem);
  font-weight: 700;
}

.summary-card strong.summary-fit-text {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(0.76rem, 1.75vw, 1.18rem);
  font-weight: 700;
  line-height: 1.15;
}

.summary-card strong.summary-fit-text.is-long {
  font-size: clamp(0.66rem, 1.35vw, 1rem);
}

.summary-card strong.summary-fit-text.is-very-long {
  font-size: clamp(0.56rem, 1.08vw, 0.86rem);
}

.payment-control-form {
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  width: 100%;
  max-height: min(88vh, 760px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 20px;
}

.payment-control-mode {
  display: grid;
  gap: 7px;
}

.payment-control-mode label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.payment-control-form fieldset {
  min-width: 0;
  margin-bottom: 0;
}

.payment-control-form legend {
  max-width: 100%;
  color: var(--accent-deep);
  overflow-wrap: anywhere;
}

.payment-control-mode span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payment-control-mode small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.35;
}

.payment-control-mode strong,
.payment-control-mode small,
.payment-control-form label,
.payment-control-form .field-help,
.payment-control-form .helper-copy {
  overflow-wrap: anywhere;
}

.payment-control-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.payment-control-section .inline-fieldset {
  display: grid;
  gap: 7px;
}

.payment-control-section .inline-fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.25;
}

.payment-control-form input,
.payment-control-form select {
  min-width: 0;
  max-width: 100%;
}

.payment-control-form .dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-control-form .dialog-actions .primary-button,
.payment-control-form .dialog-actions .ghost-button {
  flex: 0 0 auto;
  width: fit-content;
  min-width: 0;
  max-width: 190px;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  line-height: 1.1;
  white-space: nowrap;
}

.payment-control-capture-fields {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper), white 42%);
}

.payment-control-capture-fields[hidden],
.payment-control-capture-fields [hidden] {
  display: none;
}

.payment-reference-field {
  margin-top: 12px;
}

.payment-list {
  display: grid;
  gap: 8px;
}

.payment-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.payment-item strong,
.payment-item span {
  display: block;
}

.payment-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-item .payment-receipt-number {
  display: inline;
  margin-left: 6px;
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.payment-entry-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3px;
}

.payment-entry-title-row strong {
  margin: 0;
}

.payment-entry-title-row .payment-status-pill {
  margin-top: 0;
}

.compact-payments {
  gap: 6px;
}

.compact-payment-item {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 46px;
  padding: 8px 10px;
  gap: 10px;
}

.compact-payment-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.compact-payment-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.compact-payment-line strong,
.compact-payment-line span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.compact-payment-line strong {
  color: var(--ink);
  font-weight: 850;
}

.compact-payment-line > *:not(:last-child)::after {
  content: "|";
  margin: 0 8px;
  color: rgba(103, 113, 118, 0.55);
  font-weight: 400;
}

.capture-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 750;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.capture-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.capture-link.has-capture {
  color: #247a4d;
}

.capture-link.no-capture {
  color: #b33b3b;
}

.capture-link.receipt-link {
  color: var(--accent-deep);
}

.compact-payment-item .primary-button.compact {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 0.74rem;
}

.compact-payment-item .primary-button.compact,
.compact-payment-item .payment-status-pill.confirmed-toggle {
  align-self: center;
  justify-self: end;
  min-width: 92px;
}

.payment-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
}

.payment-status-pill.confirmed-toggle {
  min-height: 30px;
  padding: 0 12px;
  margin-top: 0;
  border-radius: 7px;
  font-size: 0.74rem;
  cursor: pointer;
}

.payment-status-pill.confirmed-toggle:hover {
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(107, 159, 165, 0.26);
}

.delete-button {
  width: 38px;
  min-height: 38px;
  color: var(--accent-deep);
  border: 1px solid rgba(107, 159, 165, 0.45);
  background: var(--accent-soft);
  font-weight: 900;
}

dialog {
  width: min(460px, calc(100vw - 28px));
  padding: 0;
  background: var(--white);
}

dialog::backdrop {
  background: rgba(38, 49, 54, 0.42);
}

.commercial-dialog {
  width: min(480px, calc(100vw - 32px));
  border-radius: 14px;
}

.plan-steps-dialog {
  width: min(500px, calc(100vw - 32px));
  border-radius: 14px;
}

.account-created-dialog {
  width: min(460px, calc(100vw - 32px));
  border-radius: 14px;
}

.plan-dialog {
  width: min(520px, calc(100vw - 32px));
  border-radius: 14px;
}

.capture-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  overflow: hidden;
  border-radius: 14px;
}

#paymentControlDialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(88vh, 760px);
  overflow: hidden;
  border-radius: 14px;
}

.guide-dialog {
  width: min(720px, calc(100vw - 32px));
  border-radius: 14px;
}

.commercial-dialog::backdrop {
  background: rgba(38, 49, 54, 0.46);
}

.plan-steps-dialog::backdrop {
  background: rgba(38, 49, 54, 0.46);
}

.account-created-dialog::backdrop {
  background: rgba(38, 49, 54, 0.46);
}

.plan-dialog::backdrop {
  background: rgba(38, 49, 54, 0.46);
}

.capture-dialog::backdrop {
  background: rgba(38, 49, 54, 0.46);
}

.guide-dialog::backdrop {
  background: rgba(38, 49, 54, 0.46);
}

.commercial-modal {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 26px;
  background: var(--white);
}

.plan-steps-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 26px;
  background: var(--white);
}

.plan-steps-card .panel-heading h3 {
  color: var(--accent-deep);
}

.plan-steps-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: plan-step;
}

.plan-steps-list li {
  counter-increment: plan-step;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent), white 38%);
  border-radius: 9px;
  color: var(--ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft), white 46%), rgba(255, 255, 255, 0.9));
  font-weight: 750;
}

.plan-steps-list li::before {
  content: counter(plan-step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft), white 22%);
  font-size: 0.74rem;
  font-weight: 900;
}

.account-created-card {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: var(--white);
}

.plan-dialog-card {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: var(--white);
}

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

.plan-dialog-grid,
.plan-change-summary {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent), white 34%);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(237, 247, 248, 0.9), rgba(255, 255, 255, 0.84));
}

.plan-dialog-grid {
  grid-template-columns: 1fr 1fr;
}

.plan-change-summary {
  grid-template-columns: 1fr 1fr 1fr;
}

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

.plan-dialog-grid div,
.plan-change-summary div {
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 74px;
  padding: 15px 18px;
}

.plan-dialog-grid div + div,
.plan-change-summary div + div {
  border-left: 1px solid color-mix(in srgb, var(--accent), white 42%);
}

.plan-dialog-grid span,
.plan-change-summary span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.plan-dialog-grid strong,
.plan-change-summary strong {
  color: var(--accent-deep);
  font-size: 1rem;
  line-height: 1.2;
}

.plan-dialog-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent), white 38%);
  border-radius: 10px;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft), white 42%);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.plan-change-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.renewal-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #d8a85b;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff3cf, #fffaf0 72%);
  box-shadow: 0 14px 32px rgba(142, 88, 23, 0.12);
}

.renewal-warning[hidden] {
  display: none;
}

.renewal-warning p:not(.eyebrow) {
  margin: 2px 0 0;
  color: #78512b;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.renewal-warning .eyebrow {
  color: #9a6320;
}

.renewal-warning .primary-button {
  min-width: max-content;
  background: #9a6320;
}

.renewal-warning.trial-warning {
  border-color: #aa8bd2;
  background: linear-gradient(135deg, #eee4fb, #faf7ff 72%);
  box-shadow: 0 14px 32px rgba(95, 56, 145, 0.14);
}

.renewal-warning.trial-warning p:not(.eyebrow) {
  color: #5b3d78;
}

.renewal-warning.trial-warning .eyebrow {
  color: #70449b;
}

.renewal-warning.trial-warning .primary-button {
  background: #70449b;
}

#cancelPlanChange,
#cancelRenewal {
  min-height: 40px;
  padding: 0 16px;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 750;
}

.capture-modal {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  max-height: min(86vh, 760px);
  padding: 22px;
  background: var(--white);
}

.capture-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 70px;
}

.capture-zoom-button,
.capture-fit-button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1;
}

.capture-zoom-button {
  min-width: 38px;
}

.capture-frame {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 220px;
  height: min(62vh, 540px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.capture-frame.fit {
  overflow: auto;
}

.capture-frame img {
  display: block;
  object-fit: contain;
}

.capture-frame.fit img {
  height: auto;
}

.capture-frame.zoomed {
  place-items: start center;
  overflow: auto;
}

.capture-frame.zoomed img {
  height: auto;
  max-width: none;
  max-height: none;
}

.guide-modal {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 26px;
  background: var(--white);
}

.commercial-modal h3 {
  max-width: 430px;
  font-family: "Inter", Arial, system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 0;
}

.guide-modal h3 {
  max-width: 420px;
  font-family: "Inter", Arial, system-ui, sans-serif;
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.guide-intro {
  max-width: 560px;
}

.guide-content {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.guide-tab:hover,
.guide-tab.active {
  transform: translateY(-1px);
  border-color: var(--accent-deep);
  color: var(--white);
  background: var(--accent-deep);
}

.guide-section-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent-soft), white 60%);
}

.guide-section-kicker {
  margin-bottom: 6px;
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-section-panel h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.guide-section-panel p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.guide-section-panel ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.45;
}

.commercial-modal p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.account-created-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.account-created-link {
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--accent), white 36%);
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent-soft), white 42%);
}

.account-created-link strong {
  color: var(--accent-deep);
  font-weight: 900;
}

.guide-modal p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 1rem;
  font-weight: 900;
}

.commercial-cta {
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  font-size: 0.94rem;
}

.guide-understood {
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  font-size: 0.94rem;
}

.commercial-contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.commercial-choice {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.commercial-contact-options[hidden] {
  display: none;
}

.booking-form {
  padding: 18px 20px;
  background: var(--white);
}

.booking-form .panel-heading {
  margin-bottom: 12px;
}

.booking-form label {
  gap: 6px;
  margin-bottom: 9px;
  font-size: 0.82rem;
}

.booking-form input,
.booking-form select {
  min-height: 38px;
}

.booking-form textarea {
  min-height: 70px;
  padding-block: 8px;
}

.booking-form menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.booking-form menu .primary-button,
.booking-form menu .ghost-button {
  width: auto;
  min-width: 112px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.78rem;
}

.booking-patient-fields {
  display: grid;
  gap: 8px;
}

.optional-label {
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.field-help {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.35;
}

.reschedule-summary {
  margin-bottom: 16px;
}

.reschedule-summary-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(107, 159, 165, 0.28);
  border-radius: 10px;
  background: rgba(232, 243, 244, 0.62);
}

.reschedule-summary-card div {
  min-width: 0;
}

.summary-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reschedule-summary-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
}

.reschedule-mode .payment-status {
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid rgba(107, 159, 165, 0.22);
  border-radius: 8px;
  background: rgba(232, 243, 244, 0.48);
}

.notice-copy {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

#rescheduleInfoDialog .notice-copy {
  font-weight: 400;
}

.notice-form {
  text-align: center;
}

.notice-form .panel-heading {
  margin-bottom: 14px;
}

.notice-form .eyebrow {
  color: var(--accent-deep);
}

.notice-form h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.notice-form .primary-button {
  max-width: 220px;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .reschedule-summary-card {
    grid-template-columns: 1fr;
  }
}

.payment-button {
  display: block;
  width: auto;
  min-height: 40px;
  padding: 0 20px;
  margin: 0 auto;
  border: 1px solid rgba(107, 159, 165, 0.45);
  border-radius: 7px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.payment-status {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.payment-status.ready {
  color: var(--accent-deep);
}

.booking-consultation-warning {
  margin: 8px 0 2px;
  padding: 10px 12px;
  border: 1px solid rgba(192, 117, 39, 0.42);
  border-radius: 7px;
  color: #7a4616;
  background: #fff7ed;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.payment-methods label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fbfaf7;
  font-size: 0.78rem;
  line-height: 1.15;
}

.payment-method-option {
  background: linear-gradient(135deg, var(--white), color-mix(in srgb, var(--accent-soft), white 48%));
}

.payment-method-copy {
  display: grid;
  width: 100%;
}

.payment-method-copy > strong {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.1;
}

.payment-selected-details {
  display: grid;
  gap: 7px;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--accent), white 42%);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), color-mix(in srgb, var(--accent-soft), white 54%));
}

.payment-selected-title {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.payment-selected-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 7px;
}

.payment-selected-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.payment-detail-chip {
  display: grid;
  gap: 2px;
  min-width: 100px;
  padding: 6px 7px;
  border: 1px solid color-mix(in srgb, var(--accent), white 46%);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.payment-detail-chip span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-detail-chip strong {
  font-size: 0.82rem;
  line-height: 1.2;
  word-break: break-word;
}

.receipt-dialog {
  width: min(760px, calc(100vw - 28px));
  padding: 0;
}

.receipt-preview-modal {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.receipt-preview-content {
  border: 1px solid #d7dde2;
  background: #f8f9fa;
  overflow: hidden;
}

.receipt-document {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 46px 42px 24px;
  color: #263136;
  background: #fff;
}

.receipt-document::before,
.receipt-document::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 760px;
  height: 315px;
  border-radius: 50%;
  background: #f0f1f2;
  pointer-events: none;
}

.receipt-document::before {
  top: -154px;
  left: -255px;
  border-radius: 46% 54% 50% 50%;
  transform: rotate(-3deg);
  box-shadow: 420px -15px 0 18px #f6f6f6;
}

.receipt-document::after {
  right: -455px;
  bottom: -245px;
  transform: rotate(8deg);
  box-shadow: -420px 45px 0 16px #f6f6f6;
}

.receipt-document > * {
  position: relative;
  z-index: 1;
}

.receipt-document .receipt-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  padding: 0 0 16px;
}

.receipt-title {
  display: grid;
  justify-items: end;
}

.receipt-title h3 {
  margin: 0;
  color: #46787f;
  font-size: clamp(2rem, 6vw, 3.8rem);
  letter-spacing: 0.12em;
}

.receipt-title p {
  margin: 0 0 14px;
  color: #46787f;
  letter-spacing: 0.24em;
}

.receipt-title span {
  font-size: 0.8rem;
}

.receipt-issuer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.receipt-issuer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.receipt-issuer-brand div {
  display: grid;
  gap: 4px;
}

.receipt-issuer-brand strong,
.receipt-info-grid h4,
.receipt-note-block h4 {
  color: #46787f;
}

.receipt-issuer-brand span,
.receipt-subtitle {
  color: #5c6974;
}

.receipt-subtitle {
  margin: -18px 0 0;
  font-size: 0.78rem;
}

.receipt-info-grid,
.receipt-bottom-grid,
.receipt-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.receipt-info-grid h4,
.receipt-note-block h4 {
  margin: 0 0 12px;
  border-bottom: 1px solid #46787f;
  padding-bottom: 7px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.receipt-info-grid p,
.receipt-bottom-grid p {
  margin: 6px 0;
  font-size: 0.78rem;
}

.receipt-service-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.receipt-service-table th {
  padding: 11px;
  background: linear-gradient(90deg, #46787f, #263136);
  color: #fff;
  text-align: left;
}

.receipt-service-table th:nth-child(n + 2),
.receipt-service-table td:nth-child(n + 2) {
  text-align: center;
}

.receipt-service-table td {
  border-bottom: 1px solid #d7dde2;
  padding: 12px;
}

.receipt-summary {
  display: grid;
  justify-content: end;
  gap: 7px;
}

.receipt-summary > p {
  display: grid;
  grid-template-columns: 110px 92px;
  gap: 12px;
  margin: 0;
  font-size: 0.78rem;
}

.receipt-summary > p strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.receipt-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #46787f;
  font-weight: 800;
}

.receipt-total strong {
  border-radius: 8px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #46787f, #263136);
  color: #fff;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.receipt-note-block {
  width: 76%;
  padding-top: 12px;
}

.receipt-note-block h4 {
  width: 73%;
  margin: 0 0 10px;
  padding-bottom: 7px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.receipt-note-block div {
  min-height: 64px;
  border: 1px solid #e2e4e6;
  border-radius: 10px;
  padding: 14px 18px;
  background: linear-gradient(145deg, #fcfcfc, #f6f6f6);
  font-size: 0.78rem;
}

.receipt-legal-grid {
  border-top: 1px solid #9cabb7;
  padding-top: 16px;
  font-size: 0.7rem;
  line-height: 1.45;
}

.receipt-document footer {
  border-top: 1px solid #46787f;
  padding-top: 10px;
  color: #5c6974;
  text-align: center;
  font-size: 0.7rem;
}

.receipt-document footer strong {
  color: #46787f;
  font-size: 0.82rem;
}

.receipt-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 640px) {
  .receipt-document .receipt-hero,
  .receipt-info-grid,
  .receipt-bottom-grid,
  .receipt-legal-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .receipt-title {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .booking-form menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .booking-form menu .primary-button,
  .booking-form menu .ghost-button {
    width: 100%;
    min-width: 0;
  }

}

.file-control,
.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.file-control input[type="file"],
.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--white);
  background: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.file-name {
  flex: 1 1 auto;
  display: block;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-file-control {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: stretch;
  min-height: 76px;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 10px;
  text-align: left;
}

.compact-file-control .file-button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 0.76rem;
  width: 100%;
}

.compact-file-control .file-name {
  width: 100%;
  font-size: 0.76rem;
  text-align: center;
  align-self: center;
  justify-self: stretch;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  #adminLoginView.active {
    min-height: auto;
    place-items: start center;
  }

  .brand-panel {
    position: relative;
    top: auto;
    height: auto;
    min-height: 320px;
    overflow: visible;
  }

  .brand-panel.sidebar-style-premium {
    position: relative;
  }

  .patient-landing {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 36px);
    overflow: auto;
  }

  .landing-visual {
    min-height: 360px;
  }

  .doctor-layout {
    grid-template-columns: 1fr;
  }

  .doctor-layout-toolbar {
    justify-content: flex-end;
  }

  .schedule-main {
    grid-template-columns: 1fr;
  }

  .admin-agenda-layout {
    grid-template-columns: 1fr;
  }

  .admin-calendar-shell {
    max-width: 100%;
  }

  .admin-day-panel {
    justify-self: stretch;
    width: 100%;
    margin-top: 0;
    margin-right: 0;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .workspace,
  .brand-panel {
    padding: 24px 18px;
  }

  .landing-mode .workspace {
    height: 100vh;
    padding: 12px;
    overflow: hidden;
  }

  .topbar,
  .calendar-toolbar,
  .panel-heading.row,
  .panel-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-progress {
    gap: 8px;
    padding-inline: 12px;
  }

  .patient-landing {
    gap: 18px;
    min-height: calc(100vh - 24px);
    padding: 22px 18px;
  }

  .landing-copy h3 {
    font-size: clamp(3.3rem, 18vw, 5.4rem);
  }

  .landing-visual {
    min-height: 260px;
  }

  .doctor-shape {
    width: 30px;
    height: 66px;
  }

  .schedule-main {
    gap: 16px;
    padding: 14px 12px 16px;
  }

  .month-toolbar,
  .time-heading {
    align-items: flex-start;
  }

  .time-heading {
    flex-direction: column;
  }

  .cancel-search,
  .cancel-item,
  .payment-rate-row,
  .payment-item,
  .share-panel {
    grid-template-columns: 1fr;
  }

  .compact-payment-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .payment-summary-grid {
    grid-template-columns: 1fr;
  }

  .payment-control-empty {
    align-items: stretch;
    flex-direction: column;
  }

  #paymentControlDialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .payment-control-form {
    max-height: calc(100vh - 24px);
    padding: 16px 14px;
  }

  .custom-payment-form {
    grid-template-columns: 1fr;
  }

  .custom-payment-form .compact-add {
    width: fit-content;
  }

  .commercial-modal {
    max-height: min(82vh, 620px);
    overflow: auto;
    padding: 22px 18px;
  }

  .capture-modal {
    max-height: min(82vh, 620px);
    padding: 22px 18px;
  }

  .capture-toolbar {
    padding-right: 56px;
  }

  .capture-frame {
    height: min(56vh, 440px);
  }

  .guide-modal {
    max-height: min(82vh, 620px);
    overflow: auto;
    padding: 22px 18px;
  }

  .commercial-modal h3 {
    padding-right: 32px;
    font-size: 1.12rem;
  }

  .guide-modal h3 {
    padding-right: 32px;
    font-size: 1.14rem;
  }

  .guide-content {
    grid-template-columns: 1fr;
  }

  .guide-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .guide-tab {
    flex: 0 0 auto;
  }

  .commercial-contact-options {
    grid-template-columns: 1fr;
  }

  .reschedule-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cancel-card {
    padding: 15px;
  }

  .cancel-card .panel-heading {
    gap: 10px;
  }

  .cancel-item .reschedule-actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .appointment-actions,
  .dialog-actions,
  .two-column-fields {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .appointment-actions {
    flex-direction: column;
  }

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

  .admin-nav {
    width: 100%;
  }

  .mode-switch,
  .payment-config-fields,
  .style-color-grid,
  .sidebar-style-options,
  .style-media-grid,
  .consultation-type-row,
  .consultation-type-item,
  .consultation-type-fields {
    grid-template-columns: 1fr;
  }

  .consultation-type-actions,
  .consultation-type-form-actions {
    justify-content: stretch;
  }

  .consultation-type-actions {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
  }

  .consultation-type-actions button,
  .consultation-type-form-actions button {
    flex: 1;
  }

  .consultation-type-actions .consultation-icon-button {
    width: 32px;
    min-width: 32px;
    flex: 0 0 32px;
  }

  .panel-actions {
    width: 100%;
  }

  .nav-link {
    flex: 1;
    justify-content: center;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, 78vw);
  }
}

@media (max-width: 1100px) {
  body.commercial-home .workspace {
    padding: 0;
  }

  .commercial-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .commercial-preview {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    transform: none;
  }

  .commercial-benefits {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 820px) {
  .commercial-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .commercial-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .commercial-nav a {
    display: grid;
    align-items: center;
    min-height: 42px;
  }

  .commercial-nav-cta {
    justify-content: center;
    text-align: center;
  }

  .commercial-hero {
    padding-top: 34px;
  }

  .commercial-hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.6rem);
  }

  .preview-layout,
  .patient-preview-layout,
  .settings-preview-layout,
  .preview-grid,
  .pricing-cards,
  .pricing-support,
  .commercial-footer {
    grid-template-columns: 1fr;
  }

  .activation-banner {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }

  .activation-side {
    justify-content: flex-start;
  }

  .activation-divider {
    display: none;
  }

  .activation-copy {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(184, 214, 216, 0.2);
    justify-content: start;
    white-space: normal;
  }

  .preview-sidebar {
    min-height: 220px;
  }

  .preview-today {
    padding-top: 0;
    text-align: left;
  }

  .patient-preview-copy h2,
  .settings-preview-layout h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .commercial-benefits {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .pricing-support .primary-button {
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .commercial-header,
  .commercial-hero,
  .commercial-benefits,
  .commercial-steps,
  .commercial-pricing,
  .commercial-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .commercial-nav {
    grid-template-columns: 1fr;
  }

  .commercial-actions {
    flex-direction: column;
  }

  .commercial-actions .primary-button,
  .commercial-actions .ghost-button {
    width: 100%;
  }

  .commercial-benefits {
    grid-template-columns: 1fr;
  }

  .preview-window {
    border-radius: 0;
    margin-inline: -18px;
  }

  .preview-panel {
    padding: 22px 16px;
  }

  .patient-preview-layout,
  .settings-preview-layout {
    padding: 22px 16px;
  }

  .preview-link-row {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-link-row button {
    width: 100%;
  }

  .preview-calendar {
    gap: 5px;
  }

  .preview-calendar span,
  .preview-calendar b {
    min-height: 29px;
  }

  .patient-times,
  .settings-preview-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 20px 16px;
  }
}
