:root {
  --black: #161616;
  --gray-600: #424242;
  --gray-400: #a6a6a6;
  --gray-200: #e9e9e9;
  --gray-100: #f4f6fa;
  --blue: #3a86ff;
  --orange: #ff8a00;
  --red: #ff002c;
  --green: #34c759;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(108, 125, 159, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  background: #f2f2f2;
  color: var(--black);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.page-root {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 12px 48px;
}

.phone {
  width: 360px;
  max-width: 100%;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.top-bar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
}

.header-group {
  position: absolute;
  left: 20px;
  top: 6px;
  width: 231px;
  height: 41px;
}

.header-home-link {
  display: block;
  width: 231px;
  height: 41px;
}

.header-burger {
  width: 22px;
  height: 22px;
  display: block;
}

.header-burger-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  width: 22px;
  height: 22px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.account-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.account-menu {
  position: absolute;
  top: 52px;
  right: 12px;
  width: 220px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 21;
  padding: 8px;
}

.account-menu-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 4px;
}

.account-menu-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--gray-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.account-menu-profile-text {
  min-width: 0;
}

.account-menu-profile-login {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.account-menu-profile-type {
  font-size: 12px;
  color: var(--gray-400);
}

.account-menu-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--black);
  text-decoration: none;
  font-size: 15px;
}

.account-menu-link:hover {
  background: var(--gray-100);
}

.account-menu-link-button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 12px;
}

.page-link {
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 4px 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo img {
  width: 160px;
  height: 25px;
  display: block;
}

.tagline {
  font-size: 12px;
  color: rgba(22, 22, 22, 0.6);
  margin-left: 20px;
  margin-top: -4px;
}

.burger {
  width: 22px;
  height: 16px;
  display: grid;
  gap: 4px;
}

.burger span {
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

.section {
  padding: 12px 20px;
  width: 100%;
  min-width: 0;
}

.title {
  font-size: 24px;
  margin: 12px 0 8px;
}

.subtitle {
  font-size: 18px;
  font-weight: 500;
  margin: 16px 0 12px;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.no-margin {
  margin: 0;
}

.small-text {
  font-size: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.muted {
  color: var(--gray-400);
}

.input {
  height: 48px;
  border: 1px solid var(--gray-400);
  border-radius: 10px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
}

.input.small {
  height: 38px;
}

.input-field {
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  width: 100%;
  color: var(--black);
}

.input-field::placeholder {
  color: var(--gray-400);
}

.input-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.field-input-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  opacity: 0.62;
}

.input-icon-btn {
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.visit-period {
  position: relative;
}

.period-panel {
  background: var(--gray-100);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.period-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.period-grid > * {
  min-width: 0;
}

.date-field {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--gray-400);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
}

@media (max-width: 360px) {
  .period-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.period-apply {
  width: 100%;
  margin-top: 12px;
}

.service-dropdown {
  background: var(--gray-100);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 180px;
  overflow-y: auto;
  padding: 6px;
}

.service-specialization-dropdown {
  left: 0;
  margin-top: 6px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
}

.service-option {
  width: 100%;
  min-height: 52px;
  display: grid;
  gap: 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.2;
  padding: 10px 12px;
  text-align: left;
}

.service-option-title {
  min-width: 0;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.service-option-meta {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(22, 22, 22, 0.62);
}

.service-option.active .service-option-meta,
.service-option:hover .service-option-meta {
  color: rgba(255, 255, 255, 0.86);
}

.service-option.active,
.service-option:hover {
  background: #212121;
  color: var(--white);
}

.service-option.disabled {
  color: var(--gray-400);
  cursor: default;
}

.service-option.disabled:hover {
  background: transparent;
  color: var(--gray-400);
}

.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip-row-nowrap {
  flex-wrap: nowrap;
  gap: 10px;
}

.chip {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--gray-600);
  font-size: 16px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip-image {
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  outline: none;
  box-shadow: none;
}

.chip-image.active {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}

.chip-image img {
  display: block;
  width: 122px;
  height: 48px;
  pointer-events: none;
}

.chip.active {
  background: #212121;
  color: var(--white);
  border-color: #212121;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-600);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkbox.checked {
  background: #212121;
  border-color: #212121;
  color: var(--white);
  font-size: 12px;
}

.checkbox-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.divider {
  height: 4px;
  background: var(--gray-200);
  margin: 16px 0;
}

.card {
  background: var(--gray-100);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 20px;
}

.card-header {
  font-size: 10px;
  color: var(--gray-400);
}

.card-title {
  font-size: 16px;
  margin: 4px 0;
}

.card-subtitle {
  font-size: 10px;
  color: var(--gray-400);
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.btn {
  height: 48px;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: default;
  user-select: none;
}

.btn-image {
  padding: 0;
  border: none;
  background: transparent;
  height: auto;
}

.btn-image img {
  display: block;
  height: 38px;
  width: auto;
}

.visit-lines p {
  margin: 0;
  line-height: 30px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-recovery {
  background: linear-gradient(135deg, #ff9f1a, var(--orange));
  color: var(--white);
  box-shadow: 0 10px 22px rgba(255, 138, 0, 0.24);
}

.btn-outline {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-full {
  width: 100%;
}

.btn-compact {
  height: 38px;
  font-size: 16px;
}

.link-toggle {
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 16px;
  padding: 0;
  cursor: pointer;
}

.specialist-card {
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
  border: 1px solid rgba(58, 134, 255, 0.12);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.specialist-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.specialist-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.specialist-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d7e6ff 0%, #bdd4ff 100%);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  background-size: cover;
  background-position: center;
}

.specialist-avatar.has-image {
  color: transparent;
}

.specialist-main {
  min-width: 0;
  flex: 1;
}

.specialist-name,
.specialist-address,
.specialist-availability-label,
.specialist-availability-value {
  margin: 0;
}

.specialist-name {
  color: var(--black);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.specialist-address {
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}

.specialist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.specialist-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(58, 134, 255, 0.1);
  color: #235bb2;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.specialist-card-bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(58, 134, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.specialist-availability {
  min-width: 0;
}

.specialist-availability-label {
  color: var(--gray-400);
  font-size: 11px;
  line-height: 1.2;
}

.specialist-availability-value {
  color: var(--black);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 4px;
}

.specialist-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
#serviceCategoriesRefresh {
  cursor: pointer;
}

#serviceCategoriesRefresh:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.time-slot {
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--gray-600);
  background: var(--white);
  color: var(--black);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.time-slot.active {
  background: #212121;
  color: var(--white);
  border-color: #212121;
}

.time-slot.disabled {
  background: #dedede;
  color: var(--white);
  border-color: #dedede;
  cursor: not-allowed;
}

.photo {
  height: 240px;
  border-radius: 20px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 14px;
}

.label {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.value {
  font-size: 20px;
  margin-bottom: 12px;
}

.appointment-time-change {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: baseline;
}

.appointment-time-old {
  color: var(--gray-400);
  text-decoration: line-through;
}

.appointment-time-new {
  color: var(--black);
  font-weight: 500;
}

.appointment-date-change {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.appointment-date-old {
  color: var(--gray-400);
  text-decoration: line-through;
}

.appointment-date-new {
  color: var(--black);
  font-weight: 500;
}

.inline-link {
  color: var(--blue);
  font-size: 16px;
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.pill-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--gray-600);
  background: var(--white);
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

.pill.active {
  background: #212121;
  color: var(--white);
  border-color: #212121;
}

.pill.disabled {
  background: #dedede;
  color: var(--white);
  border-color: #dedede;
  cursor: not-allowed;
}

.footer-link {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--blue);
  font-size: 16px;
}

.spacer-8 { margin-top: 8px; }
.spacer-12 { margin-top: 12px; }
.spacer-16 { margin-top: 16px; }
.spacer-20 { margin-top: 20px; }
.spacer-24 { margin-top: 24px; }

.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.align-center {
  text-align: center;
}

.phone-visits .top-bar {
  margin-top: 12px;
}
/* Image-based chips: keep active state without text-style overrides */
.chip.chip-image.active {
  background: #212121;
  border-color: #212121;
  box-shadow: none;
}

.chip.chip-image.active img {
  filter: invert(1);
}

.register-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.register-page .section {
  display: grid;
  gap: 16px;
  padding-inline: 20px;
  padding-top: 18px;
  padding-bottom: 28px;
}

.register-page .section,
.auth-page .section,
.account-page .section,
.appointment-page .section,
.partner-page .section,
.main-page .section,
.legal-page .section,
.success-page .section {
  width: 100%;
  min-width: 0;
}

.auth-page .section,
.account-page .section,
.appointment-page .section {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 28px;
}

.auth-page .section > *,
.account-page .section > *,
.appointment-page .section > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.auth-page .title,
.account-page .title,
.appointment-page .title {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.auth-page form,
.account-page form {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.auth-page .form-input,
.account-page .form-input,
.appointment-page .form-input {
  min-height: 48px;
  border-color: var(--gray-400);
  border-radius: 10px;
  padding: 0 14px;
  gap: 10px;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-page .form-input:focus-within,
.account-page .form-input:focus-within,
.appointment-page .form-input:focus-within {
  border-color: rgba(58, 134, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.12);
}

.auth-page .form-input .input-field,
.account-page .form-input .input-field,
.appointment-page .form-input .input-field {
  font-size: 16px;
  line-height: 1.3;
}

.auth-page .form-input .input-field::placeholder,
.account-page .form-input .input-field::placeholder,
.appointment-page .form-input .input-field::placeholder {
  color: var(--gray-400);
}

.auth-page .form-input,
.auth-page .input,
.auth-page .input-field,
.account-page .form-input,
.account-page .input,
.account-page .input-field,
.appointment-page .form-input,
.appointment-page .input,
.appointment-page .input-field {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-page .btn-primary,
.account-page .btn-primary,
.partner-page .btn-primary,
.register-page .btn-primary {
  min-height: 46px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.account-page .inline-link,
.auth-page .inline-link,
.appointment-page .inline-link {
  font-size: 15px;
}

.register-page .section > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.register-page .title {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.register-form {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

.register-partner-only {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

.register-role-block {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid #e2e7ef;
    border-radius: 22px;
    background:
      radial-gradient(circle at top right, rgba(58, 134, 255, 0.08), transparent 36%),
      linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.register-page .register-toggle .chip {
    min-height: 40px;
    min-width: 0;
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

.register-role-description {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(22, 22, 22, 0.58);
}

.form-field {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

.field-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
  }

.field-label-icon {
  width: 26px;
  height: 26px;
  display: inline-block;
  flex: 0 0 auto;
  opacity: 0.56;
}

.field-label-text {
  min-width: 0;
}

.form-label {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--black);
}

.form-required {
  color: var(--red);
}

.register-page .form-input {
  min-height: 48px;
  border-color: var(--gray-400);
  border-radius: 10px;
  padding: 0 14px;
  gap: 10px;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.register-page .form-input:focus-within {
  border-color: rgba(58, 134, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.12);
}

.register-page .form-input .input-field {
  font-size: 16px;
  line-height: 1.3;
}

.register-page .form-input .input-field::placeholder {
  color: var(--gray-400);
}

.register-page .input-icon {
    width: 16px;
    height: 16px;
    opacity: 0.68;
    flex: 0 0 auto;
  }

.register-page .form-input,
.register-page .input,
.register-page .input-field {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

.register-page .register-role-block,
.register-page .register-service-card,
.register-page .register-specialist-card,
.register-collapsible-panel,
.register-helper-note,
.partner-panel,
.partner-toolbar-panel,
.legal-card,
.success-summary {
  overflow: hidden;
}

.register-page .form-input .input-icon:last-child {
  margin-left: auto;
}

.register-schedule-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.register-schedule-time-field {
  display: grid;
  gap: 6px;
}

.register-schedule-time-label {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  color: rgba(22, 22, 22, 0.56);
  text-transform: uppercase;
}

.register-schedule-time-input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #c9d2de;
  border-radius: 14px;
  background: #fff;
  font-size: 16px;
  line-height: 1.2;
  color: var(--black);
}

.register-schedule-time-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 0;
  margin: 0;
  padding: 0;
}

.register-schedule-time-input::-webkit-datetime-edit {
  padding: 0;
}

.register-schedule-time-input::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}


.register-select,
.register-time-picker {
  position: relative;
}

.register-time-trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.register-time-display {
  flex: 1 1 auto;
  text-align: left;
  font-size: 15px;
  line-height: 1.3;
  color: rgba(22, 22, 22, 0.72);
}

.register-time-picker.has-value .register-time-display {
  color: var(--black);
  font-weight: 500;
}

.register-time-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 12;
  padding: 12px;
  border: 1px solid #e2e7ef;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.register-time-dropdown-title {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.register-time-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.register-time-select {
  display: grid;
  gap: 6px;
}

.register-time-select span {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  color: rgba(22, 22, 22, 0.56);
}

.register-time-select select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--gray-400);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  outline: none;
}

.register-time-select select:focus {
  border-color: rgba(58, 134, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.12);
}

.form-note {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(22, 22, 22, 0.54);
  }

.field-note {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(22, 22, 22, 0.54);
  }

.register-partner-fields {
  display: grid;
  gap: 16px;
}

.register-single-specialist-fields,
.register-multiple-specialists,
.register-specialists-list,
.register-service-list,
.register-specialist-services,
.register-actions-stack {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.register-section-caption {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.42);
}

.register-page .chip-row {
  gap: 10px;
}

.register-page .chip-row .chip {
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.register-page .grid-2 {
  gap: 8px;
}

.register-service-card {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background:
    radial-gradient(circle at top right, rgba(58, 134, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.94) 100%);
  border: 1px solid #e2e7ef;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 16px;
}

.register-specialist-card {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background:
    radial-gradient(circle at top right, rgba(58, 134, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.94) 100%);
  border: 1px solid #e2e7ef;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 16px;
}

.register-collapsible-panel {
  display: grid;
  gap: 12px;
}

.register-panel-body {
  display: grid;
  gap: 12px;
}

.register-panel-body[hidden] {
  display: none !important;
}

.register-helper-note {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(226, 231, 239, 0.95);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 59, 92, 0.07), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(22, 22, 22, 0.62);
}

.register-service-header {
  display: grid;
  gap: 4px;
  padding-bottom: 2px;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.register-specialist-header {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.register-service-title {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--black);
}

.register-specialist-title {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--black);
}

.register-service-note {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(22, 22, 22, 0.52);
  grid-column: 1 / -1;
}

.register-specialist-note {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(22, 22, 22, 0.52);
  grid-column: 1 / -1;
}

.register-card-remove {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.06);
  color: rgba(22, 22, 22, 0.62);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.register-card-remove:hover {
  background: rgba(255, 0, 44, 0.1);
  color: var(--red);
}

.register-card-remove[hidden] {
  display: none;
}

.input-suffix {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: rgba(22, 22, 22, 0.44);
}

.register-page .btn-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

.register-page .btn-outline:hover {
  background: rgba(58, 134, 255, 0.08);
}

.register-actions-stack .btn {
  justify-self: stretch;
}

.register-consent {
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.register-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--red);
  flex: 0 0 auto;
}

.register-consent .muted {
  color: rgba(22, 22, 22, 0.58);
}

.register-submit {
  margin-top: 4px;
}

.partner-page .section {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 28px;
  min-width: 0;
}

.partner-page-title {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.partner-page-intro {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(226, 231, 239, 0.95);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 59, 92, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.partner-page-intro-title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--black);
}

.partner-page-intro-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(22, 22, 22, 0.62);
}

.partner-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #e2e7ef;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(58, 134, 255, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.partner-panel-header-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.partner-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.partner-secondary-action {
  flex: 0 0 auto;
  align-self: flex-start;
  font-weight: 500;
}

.partner-panel-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--black);
}

.partner-toolbar-header {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.partner-toolbar-title {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--black);
}

.partner-panel-note {
  max-width: none;
  color: rgba(22, 22, 22, 0.56);
}

.partner-panel-actions {
  display: grid;
}

.partner-page-status {
  min-height: 20px;
  font-size: 13px;
  line-height: 1.4;
}

.partner-section-list {
  display: grid;
  gap: 12px;
}

.partner-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.partner-specialist-card,
.partner-services-specialist-card,
.partner-service-card,
.partner-schedule-card,
.partner-day-row,
.partner-interval-card {
  overflow: hidden;
}

.partner-specialist-card .register-specialist-header,
.partner-services-specialist-card .register-specialist-header,
.partner-service-card .register-service-header,
.partner-schedule-card .register-service-header {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 6px;
  min-width: 0;
}

.partner-specialist-card .register-specialist-title,
.partner-services-specialist-card .register-specialist-title,
.partner-service-card .register-service-title,
.partner-schedule-card .register-service-title {
  overflow-wrap: anywhere;
}

.partner-specialist-card .register-specialist-note,
.partner-services-specialist-card .register-specialist-note,
.partner-service-card .register-service-note,
.partner-schedule-card .register-service-note {
  max-width: none;
  overflow-wrap: anywhere;
}

.partner-avatar-field {
  gap: 10px;
}

.partner-avatar-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.partner-avatar-preview {
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 22px;
  background: linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%);
  color: rgba(22, 22, 22, 0.46);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.partner-avatar-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.partner-avatar-button {
  width: fit-content;
}

.partner-avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.partner-specialist-card,
.partner-services-specialist-card {
  gap: 14px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 20px;
  border: 1px solid rgba(214, 221, 232, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.94) 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.partner-specialist-header-actions {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.partner-qr-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.partner-qr-trigger svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.partner-qr-page {
  background: #fff;
}

.partner-qr-shell {
  min-height: 100vh;
  padding: 20px 18px 28px;
  background: #fff;
}

.partner-qr-body {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding-top: 48px;
}

.partner-qr-close-btn {
  width: 100%;
  max-width: 320px;
}

.partner-qr-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.partner-qr-hint {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(17, 24, 39, 0.62);
  text-align: center;
}

.partner-qr-frame {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 320px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(226, 231, 239, 0.95);
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.partner-qr-image {
  display: block;
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
}

.partner-qr-state {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(17, 24, 39, 0.68);
  text-align: center;
}

.partner-qr-state-error {
  color: #b42318;
}

.partner-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--black);
}

.partner-flag input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  margin: 0;
}

.partner-schedule-card {
  gap: 14px;
  padding: 14px;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(217, 226, 238, 0.9);
  background: rgba(255, 255, 255, 0.82);
}

.partner-schedule-days {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.partner-day-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.partner-calendar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.partner-day-name,
.partner-calendar-row .form-label {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--black);
}

.partner-calendar-action {
  width: 100%;
  white-space: normal;
}

.partner-date-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding-right: 12px;
  color: var(--black);
  background: var(--white);
  appearance: auto;
  -webkit-appearance: auto;
  color-scheme: light;
}

.partner-date-input::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
}

.partner-interval-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.partner-interval-empty {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(22, 22, 22, 0.04);
  font-size: 12px;
  line-height: 1.4;
  color: rgba(22, 22, 22, 0.54);
}

.partner-interval-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #fff;
}

.partner-interval-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.partner-interval-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  color: rgba(22, 22, 22, 0.74);
}

.partner-interval-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
}

.partner-time-input {
  min-height: 44px;
  min-width: 0;
}

.partner-interval-remove {
  position: static;
  flex: 0 0 auto;
}

.partner-interval-card .form-input {
  width: 100%;
  min-width: 0;
}

.partner-interval-card .input-field {
  min-width: 0;
}

.partner-filter-row {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.06fr) minmax(0, 1.16fr);
  gap: 8px;
}

.partner-filter-row .chip {
  width: 100%;
  min-width: 0;
  padding: 10px 8px;
  font-size: 15px;
  white-space: nowrap;
  padding-right: 10px;
}

.partner-toolbar-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e2e7ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.partner-utility-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(58, 134, 255, 0.18);
  border-radius: 14px;
  background: rgba(58, 134, 255, 0.05);
}

.partner-back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.visit-specialist-filter {
  display: grid;
  gap: 6px;
}

.visit-specialist-select {
  width: 100%;
  min-height: 44px;
  padding-right: 8px;
  background: transparent;
  min-width: 0;
}

.partner-page .form-input .field-input-icon + .input-field,
.partner-page .input .field-input-icon + .input-field {
  min-width: 0;
}

.appointment-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.appointment-month-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.appointment-hero {
  display: grid;
  gap: 14px;
}



.appointment-photo {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  border: 1px solid #e2e7ef;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.appointment-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.appointment-photo.has-image::after {
  opacity: 1;
}

.appointment-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  transition: opacity 0.18s ease;
}

.appointment-photo.has-image .appointment-photo-placeholder {
  opacity: 0;
}

.appointment-photo.is-loading .appointment-photo-placeholder {
  opacity: 0.92;
}

.appointment-photo-initials {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(58, 134, 255, 0.12);
  color: #1f4f9f;
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
}

.appointment-photo-label {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(22, 22, 22, 0.56);
}

.appointment-summary {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding-top: 2px;
}

.appointment-meta {
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.46);
}

.appointment-name,
.appointment-address {
  min-width: 0;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--black);
  word-break: break-word;
}

.appointment-address {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

.appointment-specialization-badge {
  width: fit-content;
  max-width: 100%;
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2457a6;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.appointment-support-card {
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e7ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.appointment-support-title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--black);
}

.appointment-support-text {
  margin-top: 4px;
  line-height: 1.45;
}

.appointment-details {
  display: grid;
  gap: 12px;
}

.appointment-detail-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #e2e7ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.appointment-contact-list {
  display: grid;
  gap: 10px;
}

.appointment-detail-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #eef5ff;
  color: var(--black);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.appointment-contact-link {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.35;
}

.appointment-contact-value {
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.appointment-contact-link.is-concealed .appointment-contact-value {
  filter: blur(5px);
  user-select: none;
}

.appointment-contact-hint {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(22, 22, 22, 0.56);
}

.appointment-about-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(22, 22, 22, 0.82);
  white-space: pre-line;
}

.appointment-about-text.is-collapsed {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.appointment-about-toggle {
  width: fit-content;
  padding: 0;
  border: none;
  background: transparent;
  color: #2457a6;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.appointment-service-field .form-input {
  min-height: 52px;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

.appointment-service-field .input-field {
  padding-top: 0;
  padding-bottom: 0;
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appointment-service-select {
  position: relative;
  max-width: 100%;
}

.appointment-service-select .service-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 16;
  margin-top: 0;
  max-height: 216px;
  padding: 8px;
  border: 1px solid #e2e7ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.appointment-service-select .service-option {
  min-height: 44px;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
}

.appointment-service-select .service-option-title {
  font-size: 14px;
  line-height: 1.35;
}

.appointment-service-select .service-option-meta {
  font-size: 12px;
  line-height: 1.3;
}

.appointment-format-field {
  display: grid;
  gap: 8px;
}

.appointment-format-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-format-row .chip {
  min-height: 40px;
  font-size: 14px;
}

.appointment-format-row .chip.is-disabled,
.appointment-format-row .chip:disabled {
  opacity: 1;
  cursor: default;
}

.appointment-format-field.is-readonly .appointment-format-row {
  opacity: 0.56;
}

.appointment-format-field.is-readonly .appointment-format-row .chip.active {
  background: #b7c0cc;
  border-color: #b7c0cc;
  color: #ffffff;
}

.appointment-format-field.is-readonly .appointment-format-row .chip:not(.active) {
  background: #f3f5f8;
  border-color: #d7dde6;
  color: rgba(22, 22, 22, 0.46);
}

.appointment-format-note {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(22, 22, 22, 0.54);
}
.main-page .section {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 28px;
}

.main-search-input {
  min-height: 50px;
  border-color: #dbe3ef;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.main-section-title {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.main-page #serviceCategories,
.main-page #specialistsList,
.main-page #serviceSpecialties {
  min-width: 0;
}

.main-location-toggle {
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid #e2e7ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.phone-visits #visitsList .card,
#clientLkVisits .card {
  border: 1px solid #e2e7ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.phone-visits .visit-lines,
#clientLkVisits .visit-lines {
  display: grid;
  gap: 4px;
}

.phone-visits .visit-lines p,
#clientLkVisits .visit-lines p {
  margin: 0;
  line-height: 1.4;
}

.phone-visits .visit-lines p:first-child,
#clientLkVisits .visit-lines p:first-child {
  font-size: 13px;
  font-weight: 700;
  color: rgba(22, 22, 22, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.phone-visits .visit-lines p:nth-child(2),
#clientLkVisits .visit-lines p:nth-child(2) {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--black);
}

.phone-visits .visit-lines p:nth-child(3),
#clientLkVisits .visit-lines p:nth-child(3) {
  font-size: 14px;
  color: rgba(22, 22, 22, 0.68);
}

.phone-visits .visit-lines p:nth-child(4),
#clientLkVisits .visit-lines p:nth-child(4) {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
}

.phone-visits .card-actions,
#clientLkVisits .card-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.phone-visits .btn-image,
#clientLkVisits .btn-image {
  min-height: 40px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  height: auto;
}

.phone-visits .btn-image img,
#clientLkVisits .btn-image img {
  display: block;
  height: 40px;
  width: auto;
}

.phone-visits .card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.phone-visits .card-actions .btn-image {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.phone-visits .card-actions .btn-image img {
  width: 100%;
  max-width: 160px;
  height: auto;
}
  height: auto;
}
  border-radius: 12px;
  background: transparent;
  height: auto;
}

.phone-visits .btn-image img,
#clientLkVisits .btn-image img {
  display: block;
  height: 40px;
  width: auto;
}

.legal-page .section,
.success-page .section {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 28px;
}

.legal-card {
  display: grid;
  gap: 14px;
  line-height: 1.55;
}

.legal-card p {
  margin: 0;
  color: rgba(22, 22, 22, 0.74);
}

.success-page .section > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.success-title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--black);
}

.success-summary {
  display: grid;
  gap: 12px;
}

.success-icon-wrap {
  display: flex;
  justify-content: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  display: block;
}

.success-calendar-link {
  justify-content: center;
}

.client-visits-panel {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e7ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.client-visits-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(58, 134, 255, 0.18);
  border-radius: 14px;
  background: rgba(58, 134, 255, 0.05);
}

.client-visits-link-disabled {
  color: rgba(22, 22, 22, 0.48);
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.08);
  cursor: not-allowed;
  pointer-events: none;
}

.client-lk-actions {
  display: grid;
  gap: 12px;
}

#clientLkVisits {
  display: grid;
  gap: 12px;
}

.client-lk-visit-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(58, 134, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.client-lk-visit-period {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(22, 22, 22, 0.68);
  font-weight: 600;
}

.client-lk-visit-body {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.client-lk-visit-service {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--black);
}

.client-lk-visit-specialist {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(22, 22, 22, 0.72);
}

.client-lk-visit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-lk-visit-price,
.client-lk-visit-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.client-lk-visit-price {
  color: var(--black);
  background: rgba(58, 134, 255, 0.08);
}

.client-lk-visit-status {
  color: #0f766e;
  background: rgba(52, 199, 89, 0.12);
}

.client-lk-visit-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 118px) minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  margin-top: 0 !important;
}

.client-lk-visit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 40px;
  height: auto;
  width: 100%;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.client-lk-visit-button img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.client-lk-visit-button-outline {
  background: var(--white);
}

@media (max-width: 420px) {
  .client-lk-visit-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .partner-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .partner-page-intro {
    padding: 15px 16px;
  }

  .partner-specialist-card .register-specialist-header,
  .partner-services-specialist-card .register-specialist-header,
  .partner-service-card .register-service-header,
  .partner-schedule-card .register-service-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .partner-specialist-header-actions {
    justify-content: flex-start;
  }

  .partner-page .grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .partner-avatar-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .partner-page .register-card-remove,
  .partner-page .partner-qr-trigger,
  .partner-calendar-action {
    width: auto;
    max-width: 100%;
  }
}

@media (min-width: 340px) {
  .partner-calendar-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .partner-calendar-action {
    width: auto;
  }

  .partner-interval-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.register-page .btn-primary:disabled {
  opacity: 0.5;
}

.recovery-page .section {
  padding-top: 18px;
}

.appointment-back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.recovery-banner {
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.14), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(255, 138, 0, 0.14);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.recovery-banner-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 8px;
}

.recovery-banner-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 8px;
}

.recovery-banner-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(22, 22, 22, 0.72);
}

.recovery-field-note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(22, 22, 22, 0.56);
}

.recovery-summary {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(22, 22, 22, 0.76);
}

.partner-roster-panel {
  gap: 16px;
}

.partner-roster-add {
  width: 100%;
  justify-content: center;
}

.partner-roster-list {
  display: grid;
  gap: 14px;
}

.partner-specialist-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(214, 221, 232, 0.9);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 252, 0.95) 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.partner-specialist-summary {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.partner-avatar-stack {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.partner-avatar-picker {
  position: relative;
  display: block;
  width: 84px;
  cursor: pointer;
}

.partner-avatar-picker-badge {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.partner-avatar-clear {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(22, 22, 22, 0.56);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
}

.partner-avatar-preview-large {
  width: 84px;
  border-radius: 24px;
}

.partner-specialist-identity {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.partner-specialist-title-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.partner-specialist-name-wrap {
  min-width: 0;
}

.partner-specialist-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-specialist-name {
  min-width: 0;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--black);
  word-break: normal;
  overflow-wrap: break-word;
}

.partner-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  flex: 0 0 auto;
}

.partner-icon-button img {
  width: 16px;
  height: 16px;
  display: block;
}

.partner-specialist-meta {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(22, 22, 22, 0.58);
}

.partner-specialist-summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.partner-flag-inline {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.partner-specialist-editor,
.partner-specialist-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(217, 226, 238, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.partner-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.partner-block-title {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--black);
}

.partner-block-note {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(22, 22, 22, 0.54);
}

.partner-info-editor {
  display: grid;
  gap: 12px;
}

.partner-info-fields {
  display: grid;
  gap: 12px;
}

.partner-info-field {
  gap: 7px;
}

.partner-info-textarea {
  width: 100%;
  min-height: 156px;
  padding: 14px 16px;
  border: 1px solid #d9e2ee;
  border-radius: 16px;
  background: #fff;
  resize: vertical;
  line-height: 1.55;
}

.partner-info-textarea::placeholder {
  color: rgba(22, 22, 22, 0.38);
}

.partner-service-list {
  display: grid;
  gap: 10px;
}

.partner-services-action {
  width: 100%;
  justify-self: stretch;
  justify-content: center;
  text-align: center;
  margin-top: 2px;
}

.partner-service-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(222, 228, 237, 0.96);
  border-radius: 16px;
  background: #fff;
}

.partner-service-item-head {
  display: block;
}

.partner-service-item-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.partner-service-item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.partner-service-item-actions {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  flex: 0 0 auto;
}

.partner-service-remove-wrap {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.partner-service-remove-note {
  font-size: 11px;
  line-height: 1.3;
  color: #b42318;
  text-align: right;
}

.partner-service-edit-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.partner-service-remove-button {
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  padding: 0 10px;
  flex: 0 0 auto;
}

.partner-service-remove-button.is-confirming {
  min-width: 108px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.partner-service-item-title {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--black);
  overflow-wrap: break-word;
}

.partner-service-item-meta {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(22, 22, 22, 0.56);
}

.partner-service-editor {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(217, 226, 238, 0.82);
}

.partner-service-fields-stack {
  display: grid;
  gap: 12px;
}

.partner-service-editor-field,
.partner-service-format-field,
.partner-service-item .form-field {
  gap: 7px;
}

.partner-service-field-label {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--black);
}

.partner-service-format-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.partner-service-format-row .chip {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 4px;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.partner-service-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-service-status-flag {
  width: 100%;
  justify-content: flex-start;
}

.partner-service-editor-actions {
  display: grid;
  gap: 8px;
}

.partner-service-save-button {
  width: 100%;
}

.partner-service-save-status {
  min-height: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(22, 22, 22, 0.58);
}

.partner-calendar-block {
  gap: 14px;
}

.partner-schedule-setup {
  display: grid;
  gap: 12px;
}

.partner-schedule-setup-field {
  gap: 8px;
}

.partner-schedule-type-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.partner-schedule-type-row .chip {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  justify-content: center;
  text-align: center;
  font-size: 13px;
}

.partner-schedule-setup-grid {
  gap: 10px;
}

.partner-schedule-save-button {
  width: 100%;
}

.partner-schedule-save-status {
  min-height: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(22, 22, 22, 0.58);
}

.partner-calendar-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.partner-calendar-current {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #dfe5ed;
  border-radius: 14px;
  background: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--black);
  text-align: center;
  overflow: hidden;
}

.partner-date-input-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.partner-calendar-shift {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--black);
  font-size: 22px;
  line-height: 1;
}

.partner-calendar-action {
  width: 100%;
  justify-self: stretch;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}


.partner-interval-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "state state"
    "fields remove";
  gap: 4px;
  align-items: center;
  padding: 5px 6px;
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #fff;
}

.partner-interval-inline {
  grid-area: fields;
  display: grid;
  grid-template-columns: auto minmax(78px, 1fr) auto minmax(78px, 1fr);
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.partner-interval-label {
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: rgba(22, 22, 22, 0.54);
  text-transform: uppercase;
}

.partner-interval-row .partner-time-input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding-left: 6px;
  padding-right: 2px;
  font-size: 13px;
  text-align: center;
}

.partner-interval-row .partner-time-input::-webkit-datetime-edit {
  padding: 0;
}

.partner-interval-row .partner-time-input::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.partner-interval-row .partner-time-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 0;
  margin: 0;
  padding: 0;
}

.partner-interval-remove {
  grid-area: remove;
  align-self: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  font-size: 15px;
}

.partner-interval-row.is-pending {
  opacity: 0.72;
}

.partner-interval-row.is-pending .partner-time-input {
  cursor: wait;
}

.partner-interval-row.is-error {
  border-color: rgba(180, 35, 24, 0.28);
}

.partner-interval-row .register-card-remove:disabled {
  opacity: 0.46;
  cursor: default;
}

.partner-interval-state {
  grid-area: state;
  font-size: 12px;
  line-height: 1.25;
  color: #b42318;
  padding: 2px 2px 0;
}

.partner-interval-state[hidden] {
  display: none;
}


@media (max-width: 420px) {
  .register-schedule-time-row {
    grid-template-columns: 1fr;
  }

  .partner-roster-add {
    width: 100%;
  }

  .partner-specialist-summary {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
  }

  .partner-avatar-preview-large {
    width: 84px;
  }

  .partner-specialist-title-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .partner-specialist-title-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .partner-block-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-specialist-summary-actions,
  .partner-service-flags {
    align-items: stretch;
  }

  .partner-calendar-toolbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .partner-schedule-type-row {
    grid-template-columns: 1fr;
  }

  .partner-calendar-current,
  .partner-calendar-action {
    grid-column: 1 / -1;
  }

  .partner-interval-inline {
    grid-template-columns: auto minmax(82px, 1fr) auto minmax(82px, 1fr);
  }

  .partner-service-format-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}














.partner-section-actions {
  display: grid;
  gap: 8px;
}

.partner-section-save-status {
  min-height: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(22, 22, 22, 0.58);
}

.partner-interval-row.is-draft {
  border-color: rgba(58, 134, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(58, 134, 255, 0.1);
}











.partner-utility-action-disabled {
  color: rgba(22, 22, 22, 0.42);
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.08);
  pointer-events: none;
}

.partner-utility-action-disabled .checkbox-icon {
  opacity: 0.45;
}

.partner-visit-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(58, 134, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.partner-visit-period {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(22, 22, 22, 0.68);
  font-weight: 700;
}

.partner-visit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.partner-visit-identity {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.partner-visit-client-name {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--black);
  word-break: break-word;
}

.partner-visit-contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.partner-visit-phone {
  color: #2563eb;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
}

.partner-visit-phone:hover,
.partner-visit-phone:focus-visible {
  text-decoration: underline;
}

.partner-visit-message-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(37, 99, 235, 0.88);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
}

.partner-visit-message-link:hover,
.partner-visit-message-link:focus-visible {
  text-decoration: underline;
}

.partner-visit-message-link img {
  width: 16px;
  height: 16px;
}

.partner-visit-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-visit-badge,
.partner-visit-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.partner-visit-badge-mark {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.partner-visit-badge.is-confirmed {
  color: #0f766e;
  background: rgba(52, 199, 89, 0.12);
}

.partner-visit-badge.is-cancelled {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.14);
}

.partner-visit-badge.is-completed {
  color: #475569;
  background: rgba(148, 163, 184, 0.18);
}

.partner-visit-price {
  color: rgba(22, 22, 22, 0.52);
  background: rgba(148, 163, 184, 0.12);
}

.partner-visit-details {
  margin: 0;
  color: rgba(22, 22, 22, 0.56);
  font-size: 13px;
  line-height: 1.45;
}

.partner-visit-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.partner-visit-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.partner-visit-action-button img {
  width: 18px;
  height: 18px;
}

.partner-visit-action-button-secondary {
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.04);
}

.partner-visit-action-button-primary {
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.26);
  background: rgba(37, 99, 235, 0.06);
}

.partner-visit-action-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
