:root {
  color-scheme: light;
  color: #153836;
  background: #f4f8f6;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  --ink: #153836;
  --muted: #63807d;
  --line: #dce9e5;
  --surface: #ffffff;
  --primary: #0c7773;
  --primary-dark: #075b58;
  --mint: #dff2ec;
  --error: #b42318;
  --success: #087443;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 5% -10%, rgba(90, 194, 167, 0.18), transparent 30rem), #f4f8f6;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--primary);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(12, 119, 115, 0.2);
}

.brand strong,
.brand small {
  display: block;
}

.header-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.header-nav-button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}

.header-nav-button:hover,
.header-nav-button.active {
  color: var(--primary-dark);
  background: var(--mint);
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

main {
  min-height: calc(100vh - 176px);
}

.hidden {
  display: none !important;
}

.center-card {
  display: grid;
  min-height: 50vh;
  place-items: center;
  align-content: center;
  color: var(--muted);
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.login-layout {
  display: grid;
  grid-template-columns: 1.2fr minmax(340px, 0.8fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  padding: 78px 5vw 100px;
}

.login-intro h1 {
  max-width: 640px;
  margin: 8px 0 24px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.login-intro > p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.panel {
  border: 1px solid rgba(207, 225, 220, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(31, 72, 67, 0.08);
}

.login-panel {
  display: grid;
  gap: 22px;
  padding: 34px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.login-panel h2,
.section-heading h2 {
  margin: 4px 0 0;
  font-size: 26px;
  letter-spacing: -0.025em;
}

.section-heading h2 {
  font-size: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

label > span:not(.sr-only) {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8dbd6;
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: white;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input,
select {
  min-height: 40px;
  padding: 0 11px;
}

textarea {
  padding: 13px;
  line-height: 1.5;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 119, 115, 0.12);
}

input:disabled {
  color: #9cafac;
  background: #f0f5f3;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  font-weight: 750;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(12, 119, 115, 0.18);
}

.button-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.button-secondary {
  color: var(--primary-dark);
  background: var(--mint);
}

.button-quiet {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-status.error {
  color: var(--error);
}

.form-status.success {
  color: var(--success);
}

.settings-layout {
  padding: 12px 0 40px;
}

.page-heading {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.page-heading h1 {
  margin: 3px 0;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.page-heading .muted {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.saved-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.heading-meta {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
}

.plan-badge {
  padding: 8px 12px;
  border: 1px solid #d7e5e1;
  border-radius: 99px;
  color: #526d69;
  background: #edf3f1;
  font-size: 12px;
  font-weight: 800;
}

.plan-badge.pro {
  border-color: #b7ddd0;
  color: #07635d;
  background: #dff4ec;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25a76d;
  box-shadow: 0 0 0 4px rgba(37, 167, 109, 0.11);
}

#settings-form {
  display: grid;
  gap: 7px;
}

.section-panel {
  padding: 10px 14px;
}

.package-summary {
  overflow: hidden;
  margin-bottom: 10px;
  background:
    linear-gradient(135deg, rgba(216, 244, 235, 0.62), transparent 48%), rgba(255, 255, 255, 0.98);
}

.package-heading {
  margin-bottom: 10px;
}

.package-heading h2 {
  margin: 2px 0 0;
  font-size: clamp(21px, 2.4vw, 26px);
}

.package-status {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid #b7ddd0;
  border-radius: 99px;
  color: #07635d;
  background: #dff4ec;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.package-status.warning {
  border-color: #ead7a8;
  color: #7a5710;
  background: #fff7de;
}

.package-status.blocked {
  border-color: #efc9c4;
  color: #9f261c;
  background: #fff0ee;
}

.package-pricing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.package-price-item {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
}

.package-price-item span,
.package-price-item small,
.package-features span {
  display: block;
  color: var(--muted);
}

.package-price-item span,
.package-features span {
  font-size: 12px;
  font-weight: 700;
}

.package-price-item strong {
  display: block;
  margin: 3px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.025em;
}

.package-price-item small {
  display: none;
}

.package-total {
  border-color: var(--primary);
  color: white;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(12, 119, 115, 0.14);
}

.package-total span,
.package-total small {
  color: rgba(255, 255, 255, 0.78);
}

.package-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--line);
}

.package-features.with-trial {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.package-features > div {
  min-width: 0;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.94);
}

.package-features strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.package-note {
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.section-heading {
  margin-bottom: 7px;
}

.section-heading .muted {
  margin: 5px 0 0;
  font-size: 12px;
}

.split-heading {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.three-column {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.8fr;
  gap: 12px;
}

input[readonly] {
  color: #526d69;
  background: #f3f7f5;
}

.doctor-manager {
  background:
    linear-gradient(135deg, rgba(223, 242, 236, 0.45), transparent 55%), rgba(255, 255, 255, 0.96);
}

.doctor-manager-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 14px;
  align-items: end;
}

.doctor-manager-title h2 {
  margin: 2px 0 0;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.doctor-manager-title .muted {
  margin: 2px 0 0;
  font-size: 11px;
}

.doctor-manager-row #add-doctor {
  justify-self: end;
}

.doctor-settings-accordion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(31, 72, 67, 0.05);
}

.qr-upload-field {
  display: block;
  margin-top: 16px;
}

.qr-upload-field input[type='file'] {
  display: block;
  margin-top: 6px;
}

.qr-preview-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.qr-preview-wrap img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.doctor-settings-accordion > summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 8px 14px;
  cursor: pointer;
  list-style: none;
}

.doctor-settings-accordion > summary::-webkit-details-marker {
  display: none;
}

.doctor-settings-accordion > summary strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

.doctor-settings-action {
  padding: 6px 10px;
  border-radius: 99px;
  color: var(--primary-dark);
  background: var(--mint);
  font-size: 11px;
  font-weight: 800;
}

.doctor-settings-accordion[open] > summary {
  border-bottom: 1px solid var(--line);
}

.doctor-settings-content {
  display: grid;
  gap: 7px;
  padding: 7px;
  background: #f4f8f6;
}

.doctor-tabs {
  display: flex;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  gap: 10px;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f6f9f8;
}

.doctor-tab {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px 0 5px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #526d69;
  background: transparent;
  font-weight: 750;
}

.doctor-tab:hover,
.doctor-tab.active {
  border-color: #bcd9d1;
  color: var(--primary-dark);
  background: white;
  box-shadow: 0 5px 16px rgba(31, 72, 67, 0.07);
}

.doctor-number {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  color: var(--primary-dark);
  background: var(--mint);
  font-size: 11px;
  font-weight: 850;
}

.plan-help {
  min-height: 0;
  margin: 5px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.doctor-title-line {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mini-badge {
  padding: 5px 8px;
  border-radius: 99px;
  color: #0a655f;
  background: var(--mint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button-danger {
  color: #9b2c23;
  background: #fff0ee;
}

.calendar-share-note {
  margin-top: 7px;
  padding: 7px 10px;
  border-left: 3px solid #77baa8;
  border-radius: 5px 9px 9px 5px;
  color: #526d69;
  background: #f1f8f5;
  font-size: 12px;
  line-height: 1.5;
}

.calendar-share-note summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 800;
}

.calendar-share-note p {
  margin: 7px 0 0;
}

.doctor-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: white;
  box-shadow: 0 28px 90px rgba(14, 48, 44, 0.25);
}

.doctor-dialog::backdrop {
  background: rgba(10, 35, 32, 0.52);
  backdrop-filter: blur(4px);
}

.doctor-dialog form {
  display: grid;
  gap: 20px;
  padding: 30px;
}

.doctor-dialog h2 {
  margin: 5px 0 0;
  font-size: 26px;
}

.doctor-dialog .muted {
  margin: 8px 0 0;
  font-size: 13px;
}

.account-dialog {
  width: min(880px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.account-dialog form {
  gap: 24px;
}

.registration-dialog {
  width: min(920px, calc(100% - 28px));
}

.registration-dialog form {
  gap: 12px;
  padding: 22px;
}

.registration-dialog h2 {
  font-size: 24px;
}

.registration-dialog .muted {
  margin-top: 4px;
}

.registration-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.registration-steps li {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #f6f9f8;
  font-size: 11px;
  font-weight: 750;
}

.registration-steps li span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--mint);
  font-size: 10px;
}

.registration-steps li.active {
  border-color: #9ed1c3;
  color: var(--primary-dark);
  background: #eaf7f2;
}

.registration-steps li.active span {
  color: white;
  background: var(--primary);
}

.registration-steps li.completed {
  color: #33736a;
  background: #f0f8f5;
}

.registration-dialog .registration-step-panel {
  min-height: 210px;
  padding: 14px;
}

.registration-dialog .registration-step-panel .two-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.registration-dialog .registration-step-panel .span-two {
  grid-column: 1 / -1;
}

.registration-dialog .registration-addon {
  align-self: end;
  min-height: 40px;
}

.registration-dialog .consent-check {
  margin: 0;
}

.registration-dialog .dialog-actions {
  padding-top: 2px;
}

.account-dialog fieldset {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.account-dialog legend {
  padding: 0 8px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.account-dialog fieldset .two-column {
  gap: 16px 20px;
}

.span-two {
  grid-column: 1 / -1;
}

.inline-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #526d69;
  font-size: 13px;
  line-height: 1.45;
}

.inline-check input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--primary);
}

.inline-check > span:not(.sr-only) {
  margin: 0;
  font-weight: 600;
}

.registration-addon {
  align-self: end;
  min-height: 46px;
  padding: 12px 0;
}

.consent-check {
  padding: 14px 16px;
  border-radius: 13px;
  background: #f1f8f5;
}

.reset-dialog {
  width: min(620px, calc(100% - 28px));
}

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

.calendar-note {
  display: flex;
  max-width: none;
  gap: 4px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  color: #2a5c55;
  background: #edf8f3;
  font-size: 12px;
  line-height: 1.3;
}

.hours-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.hours-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 110px minmax(260px, 1.2fr);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 4px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.hours-row:last-child {
  border-bottom: 0;
}

.hours-row.is-closed {
  background: #f8faf9;
}

.closed-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.closed-toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.time-group {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.service-table-wrap {
  overflow-x: auto;
}

.service-table {
  width: 100%;
  border-collapse: collapse;
}

.service-table th {
  padding: 0 6px 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.service-table td {
  padding: 5px 6px;
  border-top: 1px solid var(--line);
}

.service-table th:first-child,
.service-table td:first-child {
  width: 48%;
  padding-left: 0;
}

.service-table th:last-child,
.service-table td:last-child {
  padding-right: 0;
}

.service-table .remove-cell {
  width: 40px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  color: #a5433a;
  background: #fff0ee;
  font-size: 22px;
  line-height: 1;
}

.save-bar {
  position: sticky;
  bottom: 10px;
  z-index: 3;
  display: none;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  padding: 7px;
  border: 1px solid rgba(207, 225, 220, 0.9);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 14px 40px rgba(31, 72, 67, 0.13);
  backdrop-filter: blur(14px);
}

.save-bar.dirty,
.save-bar:has(.form-status:not(:empty)) {
  display: flex;
}

.save-bar .form-status {
  margin-right: auto;
}

.save-bar .form-status:empty {
  display: none;
}

.setup-layout {
  padding: 12px 0 40px;
}

.setup-page-heading .button {
  flex: 0 0 auto;
}

.setup-overview {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.setup-overview > div:not(.setup-flow-line) {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 9px;
  align-items: center;
}

.setup-overview span,
.setup-number {
  display: grid;
  width: 30px;
  height: 30px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--primary);
  font-size: 13px;
  font-weight: 850;
}

.setup-overview strong {
  font-size: 13px;
}

.setup-overview small {
  color: var(--muted);
  font-size: 11px;
}

.setup-flow-line {
  height: 1px;
  background: #bdd7d1;
}

.setup-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.setup-card {
  padding: 20px;
}

.setup-card-heading,
.setup-card-title {
  display: flex;
  gap: 11px;
  align-items: center;
}

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

.setup-card-heading h2,
.setup-finish-card h2 {
  margin: 3px 0 0;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.setup-number {
  flex: 0 0 auto;
}

.setup-steps {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding-left: 22px;
  color: #315553;
  font-size: 13px;
  line-height: 1.45;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 5px 0 0;
  padding: 7px;
  border: 1px solid #bcdcd4;
  border-radius: 12px;
  background: #edf8f5;
}

.copy-field code {
  min-width: 0;
  padding-left: 5px;
  overflow-wrap: anywhere;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 750;
}

.copy-field .button {
  min-height: 34px;
  padding: 0 12px;
}

.inline-status {
  min-height: 18px;
  margin: 2px 0 6px;
  color: var(--success);
  font-size: 11px;
}

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.setup-actions .button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  font-size: 13px;
}

.doctor-calendar-summary {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.setup-doctor-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.setup-doctor-item {
  display: grid;
  grid-template-columns: minmax(90px, 0.65fr) minmax(0, 1.35fr);
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #f3f7f5;
}

.setup-doctor-item span:last-child {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.setup-verification-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.connection-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 99px;
  color: #6f5b13;
  background: #fff5cd;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.connection-status.connected {
  color: #075d37;
  background: #dff5e9;
}

.connection-status.disconnected,
.connection-status.not-provisioned {
  color: #8a4b08;
  background: #fff0da;
}

.connection-status.unavailable {
  color: var(--error);
  background: #ffebe8;
}

.connection-message {
  padding: 12px 14px;
  border-radius: 11px;
  color: #315553;
  background: #edf8f5;
  font-size: 13px;
  line-height: 1.45;
}

.qr-panel {
  display: grid;
  place-items: center;
  margin: 14px 0;
  padding: 15px;
  border: 1px dashed #99c8bd;
  border-radius: 14px;
  background: white;
  text-align: center;
}

.qr-panel img {
  width: min(100%, 290px);
  height: auto;
  margin-bottom: 8px;
  image-rendering: pixelated;
}

.qr-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.setup-security-note {
  margin-top: 16px;
  padding: 11px 13px;
  border-left: 3px solid #e3a62f;
  border-radius: 8px;
  color: #6d571f;
  background: #fff9e8;
  font-size: 11px;
  line-height: 1.45;
}

.setup-security-note strong {
  display: block;
  margin-bottom: 2px;
}

.setup-finish-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 12px;
  padding: 16px 20px;
}

.setup-finish-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

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

@media (max-width: 820px) {
  .login-layout {
    grid-template-columns: 1fr;
    padding: 38px 0 70px;
  }

  .login-intro h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .page-heading,
  .split-heading {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .registration-dialog .registration-step-panel .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-grid-spacer {
    display: none;
  }

  .three-column {
    grid-template-columns: 1fr;
  }

  .package-pricing,
  .package-features,
  .package-features.with-trial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-note {
    max-width: none;
  }

  .doctor-manager-row {
    grid-template-columns: 1fr auto;
  }

  .doctor-manager-title {
    grid-column: 1 / -1;
  }

  .doctor-settings-accordion > summary {
    min-height: 48px;
    padding: 7px 10px;
  }

  .hours-row {
    grid-template-columns: 1fr 100px;
    gap: 7px;
    min-height: 0;
    padding: 7px 9px;
  }

  .setup-columns {
    grid-template-columns: 1fr;
  }

  .setup-overview {
    grid-template-columns: 1fr;
  }

  .setup-flow-line {
    width: 1px;
    height: 14px;
    margin-left: 14px;
  }

  .setup-finish-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .time-group {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 24px, 1160px);
  }

  .site-header {
    min-height: 54px;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  .header-nav-button {
    padding: 0 8px;
    font-size: 11px;
  }

  #logout-button {
    padding: 0 7px;
    font-size: 11px;
  }

  .login-panel,
  .section-panel {
    padding: 10px;
    border-radius: 19px;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }

  .account-dialog form {
    padding: 22px 18px;
  }

  .registration-dialog form {
    gap: 10px;
    padding: 15px 12px;
  }

  .registration-steps li {
    justify-content: center;
    padding: 4px;
    font-size: 0;
  }

  .registration-steps li span {
    font-size: 10px;
  }

  .registration-dialog .registration-step-panel {
    min-height: 0;
    padding: 11px 10px;
  }

  .registration-dialog .registration-step-panel .two-column {
    grid-template-columns: 1fr;
  }

  .account-dialog fieldset {
    padding: 16px 14px;
  }

  .package-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .package-price-item {
    padding: 8px 9px;
  }

  .package-price-item strong {
    font-size: 20px;
  }

  .settings-layout {
    padding-top: 10px;
  }

  .setup-layout {
    padding-top: 10px;
  }

  .setup-card {
    padding: 14px;
  }

  .setup-overview {
    padding: 10px 12px;
  }

  .copy-field {
    grid-template-columns: 1fr;
  }

  .copy-field .button {
    width: 100%;
  }

  .setup-actions .button {
    width: 100%;
  }

  .saved-meta {
    display: none;
  }

  .heading-meta {
    align-items: flex-start;
  }

  .doctor-heading-row {
    gap: 6px;
  }

  .service-table,
  .service-table tbody,
  .service-table tr,
  .service-table td {
    display: block;
  }

  .service-table thead {
    display: none;
  }

  .service-table tr {
    position: relative;
    padding: 10px 44px 10px 0;
    border-top: 1px solid var(--line);
  }

  .service-table td,
  .service-table td:first-child,
  .service-table td:last-child {
    width: 100%;
    padding: 6px 0;
    border: 0;
  }

  .service-table td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
  }

  .service-table .remove-cell {
    position: absolute;
    top: 12px;
    right: 0;
  }

  .save-bar {
    align-items: center;
    flex-direction: row;
  }

  .save-bar .button {
    width: auto;
  }
}
