#rb-app-home .rbc-heading { margin-bottom: 18px; }
#rb-app-home .rbc-heading h2 { margin-bottom: 4px; }
#rb-app-home :is(#rh-person-rates-title,#rh-preview-booking-title,#rbc-title):focus { outline: none; }
#rb-app-home .rbc-muted { margin: 0; color: var(--muted); font-size: .875rem; }
#rb-app-home .rbc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .82fr); align-items: start; gap: 16px; }
#rb-app-home .rbc-card { min-width: 0; margin: 0; padding: clamp(14px, 3vw, 22px); border: 1px solid var(--line); background: var(--card); }
#rb-app-home .rbc-card legend { padding-inline: 4px; color: var(--accent); font-weight: 700; }
#rb-app-home .rbc-card h3 { margin: 0 0 8px; font: 700 1rem/1.35 Manrope, sans-serif; }
#rb-app-home #rbc-order-info-hint { margin-top: 6px; }
#rb-app-home .rbc-field-label { display: block; margin: 16px 0 6px; font-weight: 700; }
#rb-app-home .rbc-zone { display: flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 6px; }
#rb-app-home .rbc-zone input { width: 1.125rem; min-height: 0; height: 1.125rem; margin: 0; padding: 0; flex: 0 0 auto; accent-color: var(--accent); }
#rb-app-home :is(.rbc-contact-fields,.rbc-customer,.rbc-company) { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
#rb-app-home :is(.rbc-contact-fields,.rbc-customer) label { display: block; margin-bottom: 6px; font-weight: 700; }
#rb-app-home .rbc-contact-fields label { margin-top: 12px; }
#rb-app-home .rbc-contact-fields input + p { margin-top: 5px; }
#rb-app-home .rbc-order-link { align-self: center; color: var(--accent); padding: 6px 0; }
#rb-app-home .rbc-requisites-upload { display: grid; gap: 8px; padding: 12px; margin-bottom: 14px; background: var(--bg3); border: 1px solid var(--line); }
#rb-app-home .rbc-requisites-upload:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#rb-app-home .rbc-requisites-upload[data-drag-over] { border-color: var(--accent); }
#rb-app-home .rbc-file-picker { position: relative; width: fit-content; }
#rb-app-home .rbc-file-picker input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
#rb-app-home .rbc-file-picker label { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--input-line); border-radius: 8px; background: var(--bg2); color: var(--accent); font-weight: 700; cursor: pointer; }
#rb-app-home .rbc-file-picker input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
#rb-app-home .rbc-file-picker label:hover { border-color: var(--accent); }
#rb-app-home .rbc-file-picker input:disabled + label { cursor: default; opacity: .6; }
#rb-app-home .rbc-file-chosen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
#rb-app-home .rbc-file-chosen span { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
#rb-app-home .rbc-file-chosen button { color: var(--muted); }
#rb-app-home .rbc-requisites-upload .rbc-error { margin: 0; }
#rb-app-home .rbc-requisites-upload .rbc-upload-status:empty { margin-bottom: -8px; }
#rb-app-home .rbc-requisites-progress { margin: 0; padding: 7px 10px; border-inline-start: 2px solid var(--accent); font-size: .875rem; line-height: 1.5; }
#rb-app-home #rbc-requisites-login { justify-self: start; }
#rb-app-home .rbc-requisites-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
#rb-app-home .rbc-requisites-fields label { display: grid; align-content: end; gap: 5px; min-width: 0; font-size: .875rem; }
#rb-app-home .rbc-requisites-fields .rbc-wide { grid-column: 1 / -1; }
#rb-app-home :is(.rbc-requisites-fields textarea,#rbc-order-info-input) {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 11px;
  border: 1px solid var(--input-line); border-radius: 8px;
  background: var(--bg2); color: var(--text); font: inherit; line-height: 1.5;
  overflow-wrap: anywhere; resize: vertical;
}
#rb-app-home .rbc-requisites-fields textarea { field-sizing: content; }
#rb-app-home :is(.rbc-requisites-fields textarea,#rbc-order-info-input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#rb-app-home .rbc-summary { margin-top: .72rem; border-top: 3px solid var(--accent); }
#rb-app-home .rbc-card dl { display: grid; gap: 8px; margin: 14px 0; }
#rb-app-home .rbc-card dl div { display: flex; justify-content: space-between; align-items: baseline; column-gap: 10px; margin: 0; }
#rb-app-home .rbc-card dd { min-width: 0; margin: 0; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
#rb-app-home .rbc-summary .rbc-total-row { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
#rb-app-home .rbc-summary .rbc-total-row dd { font-size: 1.375rem; }
#rb-app-home .rbc-summary .rbc-primary { width: 100%; margin-bottom: 7px; }
#rb-app-home .rbc-booking-consent {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 9px;
  margin-bottom: 12px; font-size: .875rem; line-height: 1.5;
}
#rb-app-home .rbc-booking-consent input {
  width: 1.125rem; min-height: 0; height: 1.125rem; margin: 2px 0 0; padding: 0; accent-color: var(--accent);
}
#rb-app-home .rbc-booking-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
#rb-app-home .rbc-submit-hint {
  margin: 0 0 10px; padding: 8px 10px; border-inline-start: 2px solid var(--accent);
  background: var(--bg3); color: var(--text); font-size: .875rem; overflow-wrap: anywhere;
}
#rb-app-home .rbc-submit-hint p { margin: 0; font-weight: 700; }
#rb-app-home .rbc-submit-hint ul { margin: 2px 0 0; padding-inline-start: 17px; }
#rb-app-home .rbc-submit-hint :is(p, ul):empty { display: none; }
#rb-app-home .rbc-submit-hint li + li { margin-block-start: 2px; }
#rb-app-home .rbc-submit-hint button {
  min-height: 26px; max-width: 100%; padding: 2px 0; border: 0; border-radius: 2px;
  background: none; color: var(--accent); font: inherit; text-align: start;
  white-space: normal; text-decoration: underline; text-underline-offset: 2px;
}
#rb-app-home .rbc-submit-hint button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#rb-app-home .rbc-tariff-options { display: grid; gap: 12px; margin-bottom: 18px; }
#rb-app-home .rbc-tariff-options :is(label, fieldset) { min-width: 0; }
#rb-app-home .rbc-price-lines { list-style: none; padding: 0; margin: 10px 0; font-size: .875rem; }
#rb-app-home .rbc-price-lines li { display: flex; justify-content: space-between; gap: 10px; margin-block: 5px; }
#rb-app-home .rbc-price-lines li strong { white-space: nowrap; }
#rb-app-home #rbc-quote-status { margin-block: 10px; }
#rb-app-home #rbc-request-panel { display: grid; justify-items: start; gap: 6px; margin-block: 12px; }
#rb-app-home #rbc-request-offer { white-space: pre-wrap; overflow-wrap: anywhere; }
#rb-app-home .rbc-request-details { margin-block: 8px; padding-inline-start: 20px; font-size: .875rem; }
#rb-app-home .rbc-order { max-width: 620px; }
#rb-app-home #rbc-order-info-row { display: grid; gap: 4px; }
#rb-app-home #rbc-order-info { text-align: start; white-space: pre-wrap; }
#rb-app-home .rbc-order-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; }
#rb-app-home .rbc-order-heading h3 { margin: 0; }
#rb-app-home .rbc-status { margin: 0; color: var(--accent); font-weight: 700; }
#rb-app-home .rbc-status[data-order-status="awaiting_payment"] { color: #ffdb8f; }
#rb-app-home .rbc-status[data-order-status="expired"] { color: var(--busy-text); }
#rb-app-home .rbc-order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-block: 12px; }
#rb-app-home .rbc-order-actions > .rbc-order-link { display: inline-flex; align-items: center; min-height: 44px; }
#rb-app-home .rbc-error { margin: 8px 0 0; color: var(--busy-text); font-size: .875rem; }
#rb-app-home .rbc-calendar-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px; margin-bottom: 7px; text-align: center; }
#rb-app-home .rbc-calendar-nav button { min-width: 44px; padding-inline: 5px; font-size: 1.25rem; text-align: center; }
#rb-app-home .rbc-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
#rb-app-home .rbc-calendar-grid span { align-self: center; color: var(--muted); font-size: .875rem; }
#rb-app-home .rbc-calendar-grid button { padding-inline: 0; text-align: center; background: var(--bg3); }
#rb-app-home .rbc-calendar-nav button:disabled, #rb-app-home .rbc-calendar-grid button:disabled { cursor: default; opacity: .48; }
#rb-app-home :is(.rbc-calendar-nav,.rbc-calendar-grid) button:disabled:hover { border-color: var(--line); }
#rb-app-home .rbc-calendar-grid button[data-unavailable], #rb-app-home .rbc-calendar-grid button[data-unavailable]:hover { opacity: 1; color: var(--busy-text); background: var(--busy-bg); border-color: var(--busy-border); }
#rb-app-home .rbc-calendar-grid button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 800; }
#rb-app-home .rbc-calendar-legend { display: flex; align-items: baseline; gap: 7px; margin: 8px 0; color: var(--muted); font-size: .875rem; }
#rb-app-home .rbc-calendar-legend::before { content: ""; width: 10px; height: 10px; flex: 0 0 auto; border-radius: 3px; border: 1px solid var(--busy-border); background: var(--busy-bg); }
#rb-app-home .rbc-tariff-fields { display: grid; gap: 12px; margin-bottom: 16px; }
#rb-app-home .rbc-tariff-field { display: grid; gap: 5px; min-width: 0; }
#rb-app-home .rbc-tariff-group { display: grid; gap: 6px; }
#rb-app-home .rbc-tariff-travel-note { margin: 0; }
#rb-app-home .rbc-tariff-conditions summary { color: var(--accent); cursor: pointer; }
#rb-app-home .rbc-tariff-conditions p { margin: 6px 0 0; white-space: pre-line; }
#rb-app-home #rbc-date-title { margin: 14px 0 7px; }
#rb-app-home #rbc-visits-count { display: block; margin-top: 5px; width: 100%; }

@media (max-width: 768px) {
  #rb-app-home .rbc-layout { grid-template-columns: minmax(0, 1fr); }
  #rb-app-home .rbc-summary { margin-top: 0; }
}

@media (max-width: 420px) {
  #rb-app-home .rbc-requisites-fields { grid-template-columns: minmax(0, 1fr); }
}

#rb-app-home .rh-route::before {
  --rh-icon-tile: color-mix(in srgb, var(--accent) 12%, var(--bg));
  --rh-icon-line: linear-gradient(currentColor, currentColor);
  content: "";
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--rh-icon-tile);
  color: var(--accent);
}
#rb-app-home .rh-route[data-route="prices"]::before {
  content: "₽";
  content: "₽" / "";
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}
#rb-app-home .rh-route[data-route="date"]::before {
  background:
    var(--rh-icon-line) center 12px / 20px 2px no-repeat,
    var(--rh-icon-line) center 27px / 20px 2px no-repeat,
    var(--rh-icon-line) 10px 12px / 2px 17px no-repeat,
    var(--rh-icon-line) 28px 12px / 2px 17px no-repeat,
    var(--rh-icon-line) center 17px / 18px 2px no-repeat,
    var(--rh-icon-line) 14px 9px / 2px 7px no-repeat,
    var(--rh-icon-line) 24px 9px / 2px 7px no-repeat,
    radial-gradient(circle, currentColor 1.2px, transparent 1.7px) 14px 21px / 4px 4px no-repeat,
    radial-gradient(circle, currentColor 1.2px, transparent 1.7px) 18px 21px / 4px 4px no-repeat,
    radial-gradient(circle, currentColor 1.2px, transparent 1.7px) 22px 21px / 4px 4px no-repeat var(--rh-icon-tile);
}
#rb-app-home .rh-route[data-route="specialists"]::before {
  background:
    radial-gradient(circle, transparent 3px, currentColor 3.4px 4.8px, transparent 5.2px) center 7px / 12px 12px no-repeat,
    radial-gradient(ellipse at center bottom, transparent 56%, currentColor 61% 77%, transparent 82%) center 20px / 24px 11px no-repeat,
    var(--rh-icon-line) center 29px / 18px 2px no-repeat var(--rh-icon-tile);
}
@media (max-width: 768px) {
  #rb-app-home .rh-route { grid-template-columns: 40px minmax(0, 1fr); gap: 3px 12px; }
  #rb-app-home .rh-route::before { grid-row: 1 / span 2; align-self: center; }
}
