/* HMS inherits the Hatky typography and neutral visual system. */
.hms-mode main {
  max-width: 1480px;
}
.hms-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink);
  font-weight: bold;
  margin-bottom: 16px;
}
.hms-eyebrow span {
  letter-spacing: 0;
  font-weight: normal;
  margin-left: 14px;
  color: var(--muted);
}
.hms-heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hms-today-heading {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.hms-today-heading h2 {
  font-size: 22px;
  text-transform: capitalize;
}
.hms-today-heading p {
  font-size: 13px;
}
.hms-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 4px 0 32px;
}
.hms-stats > div {
  background: var(--soft);
  padding: 22px 26px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hms-stats strong {
  font-size: 32px;
  font-weight: 500;
}
.hms-stats span {
  font-size: 14px;
  color: var(--muted);
}
.hms-today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}
.hms-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.hms-section-title h2 {
  font-size: 21px;
  margin: 0;
}
.hms-section-title a {
  font-size: 14px;
}
.hms-event-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.hms-event-tabs button {
  border: 1px solid var(--line);
  border-radius: 25px;
  background: white;
  padding: 10px 14px;
  font-size: 13px;
  min-height: 44px;
}
.hms-event-tabs button[aria-selected='true'] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.hms-event-tabs span {
  margin-left: 6px;
}
.hms-booking-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
}
.hms-booking-card:hover {
  border-color: var(--ds-control-border);
}
.hms-booking-top,
.hms-booking-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hms-booking-top strong {
  font-size: 17px;
  color: var(--ink);
}
.hms-booking-bottom strong {
  text-align: right;
  color: var(--ink);
}
.hms-booking-bottom small {
  display: block;
  font-weight: normal;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.hms-tag {
  display: inline-block;
  font-size: 11px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 20px;
  background: var(--soft);
  color: var(--muted);
  white-space: nowrap;
}
.hms-tag.confirmed {
  background: var(--ds-status-booked-bg);
  color: var(--ds-status-booked-ink);
}
.hms-tag.pending {
  background: var(--ds-status-held-bg);
  color: var(--ds-status-held-ink);
}
.hms-unit-summary {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 10px;
  display: grid;
  gap: 5px;
}
.hms-unit-summary span {
  font-size: 12px;
  color: var(--muted);
}
.hms-units-panel {
  align-self: start;
}
.hms-units-panel .meta {
  margin-top: 20px;
}
.hms-empty {
  padding: 42px 24px;
  background: var(--soft);
  border-radius: 16px;
  text-align: center;
}
.hms-empty p {
  font-size: 14px;
}
.hms-booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hms-booking-grid > .hms-empty {
  grid-column: 1/-1;
}
.hms-booking-grid .hms-booking-card {
  margin: 0;
}
.hms-calendar-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.hms-view-switch {
  display: flex;
  background: var(--soft);
  padding: 4px;
  border-radius: 30px;
  gap: 4px;
}
.hms-view-switch a {
  padding: 10px 18px;
  font-size: 14px;
  white-space: nowrap;
  border-radius: 25px;
}
.hms-view-switch a.active {
  background: white;
  box-shadow: var(--ds-overlay-shadow);
}
.hms-unit-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-weight: normal;
}
.hms-unit-filter select {
  max-width: 350px;
}
.hms-calendar-panel {
  overflow: hidden;
  padding: 24px;
}
.hms-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.hms-calendar-header h2 {
  margin: 0;
  font-size: 22px;
  text-transform: capitalize;
}
.hms-calendar-header > div {
  display: flex;
  gap: 8px;
}
.hms-calendar-header a {
  font-size: 13px;
  min-width: 44px;
  padding: 8px 12px;
  min-height: 44px;
}
.hms-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.hms-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.hms-weekday {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0;
}
.hms-day {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  text-align: left;
  padding: 12px;
  min-height: 95px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
  width: 100%;
  overflow: hidden;
}
.hms-day:hover {
  border-color: var(--ds-control-border);
}
.hms-day-number {
  font-size: 15px;
  font-weight: bold;
}
.hms-day-label {
  font-size: 11px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.hms-day.booked {
  background: var(--ds-status-booked-bg);
  border-color: var(--ds-status-booked-line);
}
.hms-day.pending {
  background: var(--ds-status-held-bg);
  border-style: dashed;
}
.hms-day.blocked {
  background: repeating-linear-gradient(
    135deg,
    var(--ds-soft),
    var(--ds-soft) 6px,
    var(--ds-line) 6px,
    var(--ds-line) 7px
  );
}
.hms-day.is-today {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.hms-calendar-hint {
  font-size: 12px;
  margin: 20px 0 0;
}
.hms-timeline-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 100%;
}
.hms-timeline {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 970px;
  table-layout: fixed;
}
.hms-timeline th,
.hms-timeline td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
}
.hms-timeline th {
  font-weight: normal;
}
.hms-timeline thead th {
  background: var(--soft);
  height: 68px;
  font-size: 13px;
}
.hms-timeline th:first-child {
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
  width: 190px;
  box-shadow: var(--ds-overlay-shadow);
}
.hms-timeline thead th:first-child {
  background: var(--soft);
  z-index: 2;
}
.hms-timeline th span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.hms-timeline th strong {
  display: block;
  font-size: 13px;
}
.hms-timeline .hms-day {
  min-height: 82px;
}
.hms-timeline tbody tr:last-child th,
.hms-timeline tbody tr:last-child td {
  border-bottom: 0;
}
.hms-period {
  margin-top: 32px;
}
.hms-dialog {
  width: min(650px, calc(100vw - 24px));
  max-height: 92dvh;
  overflow: auto;
  padding: 26px;
}
.hms-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.hms-dialog-head h2 {
  font-size: 23px;
  margin: 0;
}
.hms-dialog-head button {
  font-size: 28px;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
}
.hms-form {
  display: grid;
  gap: 16px;
}
.hms-form label {
  font-weight: normal;
  font-size: 13px;
  margin: 0;
}
.hms-form label input,
.hms-form label select,
.hms-form label textarea {
  margin-top: 7px;
}
.hms-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.hms-form p {
  margin: 0;
}
.hms-form fieldset,
.hms-payments {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 14px;
  margin: 0;
  min-width: 0;
}
.hms-form legend,
.hms-payments legend {
  font-size: 14px;
  padding: 0 6px;
  font-weight: bold;
}
.hms-form details summary,
.hms-dialog details summary {
  font-size: 14px;
  cursor: pointer;
  min-height: 35px;
}
.hms-form [hidden] {
  display: none;
}
.hms-form input,
.hms-form select {
  min-width: 0;
}
.hms-night-row {
  display: flex !important;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.hms-night-row input {
  max-width: 145px;
}
.hms-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--soft);
  padding: 14px;
  border-radius: 10px;
}
.hms-total strong {
  font-size: 22px;
  font-weight: 500;
}
.hms-error,
#hms-form-error,
#hms-detail-error,
#hms-block-error,
#hms-unit-error,
#hms-action-error {
  color: var(--ds-danger);
  font-size: 13px;
}
.hms-ok {
  color: var(--ds-accent);
  font-size: 13px;
}
.hms-detail-unit {
  margin: 20px 0 10px;
}
.hms-detail-money {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: var(--soft);
  padding: 18px;
  border-radius: 12px;
  margin: 20px 0;
}
.hms-detail-money span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.hms-detail-money strong {
  font-size: 19px;
  font-weight: 500;
}
.hms-detail-actions {
  margin: 20px 0;
  display: flex;
  gap: 10px;
}
.hms-payments {
  margin: 22px 0;
}
.hms-payments p {
  font-size: 13px;
}
.hms-payments small {
  font-size: 11px;
  color: var(--muted);
}
.hms-quick-actions {
  display: grid;
  gap: 12px;
}
.hms-guest-card p {
  overflow-wrap: anywhere;
}
.hms-guest-card h3 {
  overflow-wrap: anywhere;
}
#hms-guest-list {
  margin-top: 24px;
}
@media (max-width: 800px) {
  .hms-heading-actions {
    margin-top: 20px;
  }
  .hms-today-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hms-stats {
    gap: 8px;
    margin-bottom: 24px;
  }
  .hms-stats > div {
    padding: 16px 12px;
  }
  .hms-stats strong {
    font-size: 26px;
  }
  .hms-stats span {
    font-size: 11px;
  }
  .hms-booking-grid {
    grid-template-columns: 1fr;
  }
  .hms-calendar-tools {
    display: block;
  }
  .hms-unit-filter {
    display: block;
    margin-top: 16px;
  }
  .hms-unit-filter select {
    max-width: none;
    margin-top: 6px;
  }
  .hms-calendar-tools > p {
    margin-top: 12px;
  }
  .hms-calendar-panel {
    padding: 14px;
  }
  .hms-calendar-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .hms-calendar-header > div {
    width: 100%;
    justify-content: space-between;
  }
  .hms-calendar-header h2 {
    font-size: 21px;
  }
  .hms-month {
    gap: 4px;
  }
  .hms-month .hms-day {
    min-height: 66px;
    padding: 7px 3px;
    text-align: center;
    gap: 9px;
  }
  .hms-month .hms-day-number {
    font-size: 13px;
  }
  .hms-month .hms-day-label {
    font-size: 9px;
  }
  .hms-legend {
    gap: 10px;
    font-size: 11px;
  }
  .hms-timeline {
    min-width: 920px;
  }
  .hms-timeline th:first-child {
    width: 135px;
  }
  .hms-timeline-scroll {
    margin: 0 -2px;
  }
  .hms-dialog {
    padding: 20px;
  }
  .hms-dialog-head h2 {
    font-size: 21px;
  }
  .hms-detail-money {
    padding: 12px;
    gap: 8px;
  }
  .hms-detail-money strong {
    font-size: 16px;
  }
  .hms-booking-top {
    align-items: flex-start;
  }
  .hms-booking-top strong {
    font-size: 16px;
  }
  .hms-tag {
    font-size: 10px;
  }
  .hms-calendar-hint {
    font-size: 11px;
  }
  .hms-event-tabs {
    gap: 6px;
  }
  .hms-event-tabs button {
    font-size: 12px;
    padding: 9px 12px;
  }
}

.hms-owner-entry {
  margin-bottom: 18px;
}
.hms-owner-entry a {
  font-size: 14px;
}
.hms-dialog .hms-detail-unit {
  overflow-wrap: anywhere;
}

.hms-calendar-header h2,
.hms-today-heading h2 {
  text-transform: none;
}
.hms-calendar-header h2::first-letter,
.hms-today-heading h2::first-letter {
  text-transform: uppercase;
}
.hms-mode > header,
.hms-mode > footer,
.hms-mode > .demo {
  display: none;
}
.hms-settings {
  display: grid;
  gap: 20px;
  max-width: 760px;
}
.hms-settings .panel {
  padding: 24px;
}
.hms-settings label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.hms-settings input[type='checkbox'] {
  width: auto;
  min-width: 20px;
  height: 20px;
}
.hms-access {
  margin-bottom: 20px;
  padding: 18px;
}
.hms-mode main {
  padding-bottom: 40px;
}
@media (max-width: 640px) {
  .hms-mode main {
    padding: 16px 16px 165px;
  }
  .hms-settings .panel {
    padding: 18px;
  }
}
body.hms-mode main {
  max-width: 1200px;
  margin: auto;
  padding: 28px 24px 60px;
}
.hms-auth {
  max-width: 520px;
  margin: 40px auto;
}
.hms-auth > .panel {
  padding: 28px;
}
.hms-auth-brand {
  display: block;
  text-decoration: none;
  color: inherit;
  font-size: 24px;
  margin-bottom: 28px;
}
.hms-auth h1 {
  font-size: 30px;
}
.hms-auth .hms-form {
  margin: 24px 0;
}
.hms-auth input {
  min-width: 0;
}
.hms-settings #hms-account-name {
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  body.hms-mode main {
    padding: 16px 16px 165px;
  }
  .hms-auth {
    margin: 12px auto;
  }
  .hms-auth > .panel {
    padding: 20px;
  }
  .hms-auth h1 {
    font-size: 26px;
  }
}
.hms-link-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.hms-link-row > strong {
  display: block;
  margin-bottom: 12px;
}
.hms-link-row input {
  font-size: 12px;
  margin-bottom: 12px;
}
.hms-link-row button,
.hms-link-row a {
  margin: 4px 4px 4px 0;
}
.hms-settings form[data-review] {
  margin-top: 20px;
}
.hms-settings form[data-review] label:first-child {
  display: block;
}
.hms-migration-summary {
  margin: 16px 0;
  padding: 18px;
  background: var(--soft);
  border-radius: 12px;
}
.hms-migration-summary p:last-child {
  margin-bottom: 0;
}
#hms-migrate,
#hms-abort-migration {
  margin: 10px 8px 0 0;
}
.hms-day.unknown {
  background: var(--ds-canvas);
  border-style: dashed;
  color: var(--ds-muted);
}
.hms-day.unknown .hms-day-label {
  font-size: 9px;
}
.hms-calendar-tools + .hms-access {
  margin-bottom: 20px;
}
/* Keep proposal actions readable on small screens and within a scrolling dialog. */
.hms-dialog [hidden] {
  display: none !important;
}
#request-proposal:not(:empty) {
  margin: 20px 0;
  padding: 18px;
  background: var(--soft);
  border-radius: 16px;
}
#request-proposal > button,
#request-proposal > input {
  width: 100%;
  margin-bottom: 10px;
}
#request-proposal input {
  min-width: 0;
}
#request-proposal p {
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .hms-today-layout .hms-section-title {
    flex-wrap: wrap;
  }
  .hms-booking-top {
    flex-wrap: wrap;
  }
  .hms-booking-top .hms-tag {
    white-space: normal;
  }
}
.property-editor {
  max-width: 900px;
  margin: 24px auto;
}
.property-steps {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 24px;
}
.property-steps button {
  white-space: nowrap;
  flex-shrink: 0;
}
.property-steps [aria-current] {
  background: var(--ink);
  color: white;
}
.property-editor fieldset {
  border: 0;
  min-width: 0;
}
.property-editor details {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.property-editor summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 12px;
}
.property-editor [data-child] {
  display: block;
}
.property-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.property-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.property-checks input {
  width: 20px;
  min-height: 20px;
}
.property-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.property-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}
.property-gallery button {
  width: 100%;
  margin-top: 5px;
}
.property-preview-photo {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}
.property-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.property-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.property-list a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.property-description {
  white-space: pre-wrap;
}
.property-editor input,
.property-editor textarea,
.property-editor select {
  max-width: 100%;
  min-width: 0;
}
.property-editor [hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  .property-editor {
    margin: 20px 0;
  }
  .property-editor .panel {
    padding: 18px;
  }
  .property-checks {
    grid-template-columns: 1fr;
  }
  .property-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .property-actions button,
  .property-actions a {
    width: 100%;
  }
}
/* Public adding flow: dimensions and controls follow Hatky.ua /add-listing. */
body.property-adding-flow main {
  max-width: 1100px;
  padding: 24px 5% 64px;
}
.property-flow-brand {
  font-size: 25px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: -0.8px;
}
.property-flow-brand small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 5px;
}
.property-adding-flow .public-flow-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
}
.property-public-flow {
  max-width: 760px;
  margin: auto;
}
.property-public-flow h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 24px;
}
.property-public-flow p {
  color: var(--muted);
}
.property-public-flow .wizard-status {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.property-progress {
  appearance: none;
  display: block;
  border: 0;
  height: 3px;
  width: 100%;
  background: var(--ds-soft);
  margin: 0 0 32px;
}
.property-progress::-webkit-progress-bar {
  background: var(--ds-soft);
}
.property-progress::-webkit-progress-value {
  background: var(--ink);
}
.property-progress::-moz-progress-bar {
  background: var(--ink);
}
.property-fields {
  display: grid;
  gap: 24px;
  min-height: 360px;
  align-content: start;
}
.property-fields label {
  margin: 0;
}
.property-fields label input,
.property-fields label select,
.property-fields label textarea {
  margin-top: 8px;
  padding: 12px;
}
.property-fields > .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.property-public-flow .wizard-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ds-line);
  margin: 48px 0 16px;
  padding-top: 20px;
}
.property-public-flow .wizard-footer .ds-button[data-variant='primary'] {
  margin-left: auto;
}
.property-public-flow #property-error {
  color: var(--ds-danger);
  margin: 18px 0 0;
}
.property-public-flow .upload-zone {
  border: 1px dashed var(--ds-control-border);
  border-radius: 14px;
  padding: 24px;
}
.property-public-flow .property-gallery > div {
  min-width: 0;
  border: 1px solid var(--ds-line);
  border-radius: 12px;
  padding: 10px;
}
.property-public-flow .property-gallery img {
  height: 120px;
  border-radius: 8px;
}
.property-public-flow .property-gallery button {
  width: auto;
  font-size: 12px;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  padding: 5px;
  margin: 3px;
}
.property-public-flow .amenity-group h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
.property-public-flow .amenity-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.property-public-flow .amenity-options label {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--ds-line);
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 400;
  height: 100%;
}
.property-public-flow .amenity-options input {
  width: auto;
  margin: 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.property-public-flow .amenity-choice {
  min-width: 0;
}
.property-public-flow .amenity-choice select {
  font-size: 13px;
  margin-top: 8px;
}
.property-public-flow .amenity-choice:has(input:not(:checked)) select {
  display: none;
}
.property-public-flow .amenity-choice:has(input:checked) label {
  height: auto;
}
.property-public-flow details.amenity-more {
  padding: 0;
  border: 0;
  margin: 12px 0 0;
}
.property-public-flow .amenity-more summary {
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  margin: 10px 0 16px;
  cursor: pointer;
}
.property-public-flow [data-child] {
  border: 1px solid var(--ds-line);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
}
.property-public-flow [data-child] > label,
.property-public-flow [data-child] > .form-grid,
.property-public-flow [data-child] > .amenity-group {
  margin-top: 18px;
}
.property-public-flow [data-child] > summary {
  font-size: 20px;
  font-weight: 700;
}
.property-public-flow .property-fields > * {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 600px) {
  body.property-adding-flow main {
    padding: 18px 5% 64px;
  }
  .property-adding-flow .public-flow-top {
    margin-bottom: 24px;
    font-size: 14px;
    gap: 12px;
  }
  .property-adding-flow .public-flow-top button {
    padding: 10px 14px;
    font-size: 14px;
  }
  .property-public-flow h1 {
    font-size: 27px;
  }
  .property-public-flow .wizard-status {
    font-size: 12px;
    flex-direction: column;
    gap: 4px;
  }
  .property-fields {
    min-height: 300px;
  }
  .property-fields > .form-grid,
  .property-public-flow .amenity-options {
    grid-template-columns: 1fr;
  }
  .property-public-flow .wizard-footer button,
  .property-public-flow .wizard-footer a {
    width: auto;
    padding: 10px 12px;
    font-size: 14px;
  }
  .property-public-flow [data-child] {
    padding: 14px;
  }
}
.property-public-flow .property-preview-photo {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
}
.property-public-flow .property-preview-unit {
  background: var(--soft);
  border: 0;
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  margin: 12px 0;
}
.property-public-flow .property-preview-unit p:last-child {
  margin-bottom: 0;
}
.property-public-flow .unit-steps {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 18px 0;
}
.property-public-flow .unit-steps button {
  white-space: nowrap;
  font-size: 13px;
  padding: 8px 12px;
  flex-shrink: 0;
}
.property-public-flow .unit-steps [aria-current] {
  background: var(--ink);
  color: white;
}
.property-public-flow [data-unit-panel] {
  display: grid;
  gap: 18px;
}
.property-public-flow [data-unit-panel] > .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .property-public-flow [data-unit-panel] > .form-grid {
    grid-template-columns: 1fr;
  }
}

.property-list .property-list-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.property-list-card h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.property-list-card p {
  margin: 0;
}
.property-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.property-publish-option {
  display: flex !important;
  align-items: start;
  gap: 12px;
}
.property-publish-option input {
  width: auto !important;
  flex: none;
  margin-top: 5px;
}
@media (max-width: 700px) {
  .property-list .property-list-card {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }
  .property-card-actions {
    justify-content: flex-start;
  }
  .property-card-actions > a,
  .property-card-actions > button {
    flex: 1 1 45%;
    text-align: center;
  }
}

/* AUD-10 paid services use the existing form typography and spacing. */
.paid-service {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  font-weight: 400;
  margin: 12px 0;
}
.paid-service input {
  width: auto;
  flex: none;
  margin: 4px 0 0;
}
.paid-service small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.price-breakdown {
  overflow-wrap: anywhere;
}
.price-breakdown h3 {
  font-size: 18px;
}

/* AUD-12: guest content wraps without changing the HMS visual language. */
.review-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-section {
  min-width: 0;
}
.review-section article {
  margin: 12px 0;
}
.hms-auth textarea {
  max-width: 100%;
  box-sizing: border-box;
}
.hms-auth [data-link] input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.reviews-owner {
  max-width: 960px;
}

/* Legacy screens on the design system (31.10.2026): settings, sign-in and the older dialogs now use
   ds-button / ds-input / ds-select / ds-checkbox; these rules only fit their layout to the DS look. */
.hms-mode .panel {
  border-color: var(--ds-line);
  border-radius: var(--ds-radius-panel);
  padding: var(--ds-space-6);
  background: var(--ds-paper);
}
.hms-mode .panel h2 {
  margin-bottom: var(--ds-space-3);
  font-size: var(--ds-text-lg);
  font-weight: var(--ds-weight-semibold);
}
.hms-mode .panel h3 {
  margin: var(--ds-space-5) 0 var(--ds-space-2);
  font-size: var(--ds-text-md);
  font-weight: var(--ds-weight-semibold);
}
.hms-mode label {
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
}
/* Buttons keep their own width inside legacy forms instead of stretching across the column. */
.hms-form > .ds-button,
.hms-form > button {
  justify-self: start;
}
/* Settings: only checkbox rows sit side by side; a field label stays above its control. */
.hms-settings label {
  display: block;
  margin-bottom: var(--ds-space-4);
}
.hms-settings label:has(> .ds-checkbox) {
  display: flex;
  gap: var(--ds-space-3);
  align-items: flex-start;
  font-weight: var(--ds-weight-regular);
}
.hms-settings .meta {
  font-size: var(--ds-text-sm);
}
/* Calendar: on desktop «Нове бронювання» lives in the header row (navigation v1). */
@media (min-width: 761px) {
  .calendar-page-shell [data-new-booking] {
    display: none;
  }
}
/* Sign-in and registration: warm page, logo, DS card. */
body.hms-mode:has(.hms-auth) {
  background: var(--ds-canvas);
}
.hms-auth-brand img {
  display: block;
  width: auto;
  height: 32px;
}
.hms-auth > .panel h1 {
  font-size: var(--ds-text-2xl);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: -0.5px;
}
.hms-auth .hms-form .ds-button {
  width: 100%;
}
.hms-settings > p:empty {
  display: none;
}
/* The sticky header must not cover a block reached by its #anchor. */
#guest-info {
  scroll-margin-top: calc(72px + var(--ds-space-4));
}

/* Settings v1 (31.10.2026): account-only settings with a section index; cabin data lives in the card. */
.account-settings {
  display: grid;
  grid-template-columns: 200px minmax(0, 720px);
  gap: var(--ds-space-8);
  align-items: start;
}
.account-index {
  position: sticky;
  top: calc(72px + var(--ds-space-6));
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
}
.account-index a {
  padding: var(--ds-space-2) var(--ds-space-3);
  border-radius: var(--ds-radius-control);
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
  text-decoration: none;
}
.account-index a:hover {
  background: var(--ds-soft);
  color: var(--ds-ink);
}
.account-sections {
  display: grid;
  gap: var(--ds-space-4);
}
.account-sections > .panel {
  scroll-margin-top: calc(72px + var(--ds-space-4));
}
.account-sections > p:empty {
  display: none;
}
.account-sections .panel > .ds-button,
.account-sections .panel > a.ds-button {
  margin-top: var(--ds-space-3);
}
.account-facts {
  display: grid;
  gap: var(--ds-space-2);
  margin: 0 0 var(--ds-space-4);
}
.account-facts > div {
  display: flex;
  justify-content: space-between;
  gap: var(--ds-space-4);
  padding-bottom: var(--ds-space-2);
  border-bottom: 1px solid var(--ds-line);
  font-size: var(--ds-text-sm);
}
.account-facts dt {
  color: var(--ds-muted);
}
.account-facts dd {
  margin: 0;
  font-weight: var(--ds-weight-semibold);
  overflow-wrap: anywhere;
}
.account-rows {
  margin: var(--ds-space-3) 0 0;
  padding: 0;
  list-style: none;
}
.account-rows li {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  min-height: var(--ds-control-md);
  border-top: 1px solid var(--ds-line);
}
.account-rows li > span:first-child {
  flex: 1;
}
.account-rows a {
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-badge {
  padding: 2px var(--ds-space-2);
  border-radius: var(--ds-radius-pill);
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  white-space: nowrap;
}
.account-badge[data-tone='success'] {
  background: var(--ds-status-booked-bg);
  color: var(--ds-status-booked-ink);
}
.account-badge[data-tone='warning'] {
  background: var(--ds-status-held-bg);
  color: var(--ds-status-held-ink);
}
.all-cabins-link {
  display: grid;
  gap: var(--ds-space-3);
  margin: var(--ds-space-4) 0;
  padding: var(--ds-space-5);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-paper);
}
.all-cabins-link h2 {
  margin: 0 0 var(--ds-space-1);
  font-size: var(--ds-text-lg);
}
.all-cabins-link .meta {
  margin: 0;
}
.all-cabins-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
}
.all-cabins-row .ds-input {
  flex: 1 1 240px;
}
.all-cabins-link [role='alert']:empty {
  display: none;
}
.f07-discount-list {
  display: grid;
  gap: var(--ds-space-2);
  margin-bottom: var(--ds-space-3);
}
.f07-discount-group {
  display: grid;
  gap: var(--ds-space-3);
  margin: 0 0 var(--ds-space-5);
  padding: 0;
  border: 0;
}
.f07-discount-group legend,
.f07-discount-group h3 {
  margin: 0 0 var(--ds-space-1);
  padding: 0;
  font-size: var(--ds-text-md);
  font-weight: var(--ds-weight-semibold);
}
.f07-discount-row,
.f07-discount-tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--ds-space-3);
  align-items: end;
}
.f07-discount-tier {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.f07-discount-item {
  display: grid;
  gap: var(--ds-space-3);
  margin: 0;
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
}
.f07-discount-item legend {
  padding: 0 var(--ds-space-1);
  font-weight: var(--ds-weight-semibold);
}
.f07-discount-group > .ds-button,
.f07-discount-item > .ds-button {
  justify-self: start;
}
@media (max-width: 760px) {
  .account-settings {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ds-space-4);
  }
  .account-index {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }
  .account-index a {
    flex-shrink: 0;
    background: var(--ds-paper);
    box-shadow: inset 0 0 0 1px var(--ds-line);
  }
}
.all-cabins-link > .ds-button {
  justify-self: start;
}

/* Profile (31.10.2026): avatar, name, email / phone / password cards. */
.account-profile {
  display: flex;
  align-items: center;
  gap: var(--ds-space-5);
  margin-bottom: var(--ds-space-4);
}
.account-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-2);
}
.account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ds-action-soft);
  color: var(--ds-action);
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-avatar-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-1);
}
.account-name {
  flex: 1;
  min-width: 0;
}
.account-card {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  margin-top: var(--ds-space-3);
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-control);
}
.hms-mode .account-card h3 {
  margin: 0;
}
.account-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-2);
}
.account-value {
  margin: 0;
  font-weight: var(--ds-weight-semibold);
  overflow-wrap: anywhere;
}
.account-card .meta {
  margin: 0;
}
.account-contact-actions,
.account-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2);
}
.account-code-row .ds-input {
  flex: 1 1 160px;
}
.account-code {
  display: grid;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3);
  border-radius: var(--ds-radius-control);
  background: var(--ds-soft);
}
.account-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--ds-text-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.account-card-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.account-save {
  display: flex;
  gap: var(--ds-space-2);
  margin-top: var(--ds-space-3);
}
.account-save[hidden] {
  display: none;
}
.account-logout {
  margin-top: var(--ds-space-4);
  padding-top: var(--ds-space-4);
  border-top: 1px solid var(--ds-line);
}
[data-profile] [role='alert']:empty {
  display: none;
}
.account-password-modal form {
  display: flex;
  flex-direction: column;
}
.account-password-modal .ds-modal-body {
  display: grid;
  gap: var(--ds-space-3);
}
.account-password-modal label {
  display: grid;
  gap: var(--ds-space-1);
}
@media (max-width: 760px) {
  .account-profile {
    flex-direction: column;
    align-items: stretch;
  }
  .account-card-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Choices in the discounts editor keep their own size inside the card editor's form styles. */
.f07-discount-group label.ds-choice,
.f07-discount-item label.ds-choice {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
}
/* Outranks the card editor's «.flow06 input:not(...)» full-width field rule. */
.f07-editor :is(.f07-discount-group, .f07-discount-item) input:is(.ds-radio, .ds-checkbox):not([type='range']) {
  width: var(--ds-space-5);
  min-height: 0;
  margin: 0;
  padding: 0;
}

/* Price as one line per row: what it is on the left, the amount on the right (owner review 02.11.2026). */
.price-breakdown .price-line,
.price-breakdown .price-total {
  display: flex;
  justify-content: space-between;
  gap: var(--ds-space-3);
}
.price-breakdown .price-total {
  margin-top: var(--ds-space-2);
  padding-top: var(--ds-space-2);
  border-top: 1px solid var(--ds-line);
}
.sso-actions {
  display: grid;
  gap: var(--ds-space-2);
  margin-top: var(--ds-space-6);
}
