/* Dashboard v1.0 layout from the owner-supplied HTML reference.
   All colors and semantic variants are sourced from the shared DS theme. */
.overview-shell {
  font: 14px/1.5 var(--ds-font);
  color: var(--ds-ink);
  background: var(--ds-canvas);
  min-height: 100vh;
  font-synthesis: none;
}
.overview-shell * {
  box-sizing: border-box;
  min-width: 0;
}
.overview-shell button,
.overview-shell a {
  font-family: inherit;
}
.overview-shell :focus-visible,
.overview-mobile-nav :focus-visible {
  outline: 3px solid var(--ds-focus);
  outline-offset: 3px;
}
body.hms-mode:has(.overview-shell) #app {
  padding: 0;
  margin: 0;
  max-width: none;
}
body.hms-mode:has(.overview-shell) {
  background: var(--ds-dashboard-page);
  padding-bottom: 0;
}
.overview-wrap {
  max-width: 1192px;
  margin: auto;
}
.overview-appbar {
  background: var(--ds-paper);
  border-bottom: 1px solid var(--ds-line);
}
.overview-topline {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}
.overview-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
}
.overview-shell .ds-icon {
  flex-shrink: 0;
  display: block;
}
.overview-body {
  padding: 32px 0 64px;
}
.overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 21px;
}
.overview-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ds-dashboard-secondary);
  margin: 0 0 8px;
}
.overview-heading h1,
.calendar-page-heading h1,
.booking-heading h1,
.guest-heading h1 {
  margin: 0;
  font: 700 var(--ds-text-2xl) / 1.15 var(--ds-font);
  letter-spacing: -0.03em;
}
.overview-heading h1 {
  margin-bottom: var(--ds-space-2);
}
.overview-context {
  font-size: 14px;
  color: var(--ds-muted);
  margin: 0;
  overflow-wrap: anywhere;
}
/* «Нове бронювання» and «Додати хатинку»: the DS primary button, the same shape and height as on «Календар» and
   «Бронювання» (Vadym 04.12.2026). The colours stay for the empty-state link, which has no data-variant. */
.overview-shell .overview-primary {
  background: var(--ds-action);
  border-color: var(--ds-action);
  color: var(--ds-paper);
  text-decoration: none;
}
/* «Бронювання» and a request sit in .request-shell, whose buttons are 13 px and 45 px high; «Нове бронювання» keeps
   the DS size there too, in the list heading on a phone and in the header row on desktop. */
.request-shell .ds-button.booking-create,
.request-shell .ds-button.overview-header-new {
  min-height: var(--ds-control-md);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.92fr);
  /* The last row takes what the right column adds (calendar and guest links), so «Найближчі події» stays right
     under «Потребують уваги». */
  grid-template-areas: 'kpi kpi' 'attention preview' 'events preview' '. preview';
  grid-template-rows: auto auto auto 1fr;
  gap: 20px 22px;
  align-items: start;
}
.overview-attention {
  grid-area: attention;
}
.overview-events {
  grid-area: events;
}
.overview-preview {
  grid-area: preview;
  align-self: start;
}
.overview-section {
  background: var(--ds-paper);
  border: 1px solid var(--ds-line);
  border-radius: 17px;
  box-shadow: var(--ds-dashboard-shadow);
  padding: 23px 24px;
}
.overview-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 19px;
}
.overview-section-title h2 {
  font: 700 19px/1.25 var(--ds-font);
  letter-spacing: -0.55px;
  margin: 0;
}
.overview-caption {
  font-size: 12px;
  color: var(--ds-dashboard-secondary);
  margin: 6px 0 0;
}
.overview-count {
  background: var(--ds-dashboard-pill);
  color: var(--ds-dashboard-pill-ink);
  font-weight: 650;
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.overview-header-link {
  color: var(--ds-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.overview-kpi {
  grid-area: kpi;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.overview-kpi .ds-card {
  max-width: none;
  min-height: 119px;
  background: var(--ds-paper);
  border: 1px solid var(--ds-line);
  border-radius: 15px;
  padding: 19px 21px;
  box-shadow: var(--ds-dashboard-shadow);
  margin: 0;
}
.overview-kpi .ds-card-head {
  align-items: center;
  gap: 6px;
}
.overview-kpi .ds-card-head h3 {
  font: 400 13px/1.5 var(--ds-font);
  color: var(--ds-muted);
  margin: 0;
}
.overview-kpi .ds-card-head .ds-icon {
  width: 17px;
  height: 17px;
  color: var(--ds-dashboard-brand-muted);
}
.overview-kpi .ds-card-description:empty {
  display: none;
}
.overview-kpi-value {
  display: block;
  font-size: 35px;
  font-weight: 650;
  letter-spacing: -1.4px;
  line-height: 1;
  margin: 13px 0 0;
  font-variant-numeric: tabular-nums;
}
.overview-tasks,
.overview-event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.overview-tasks li + li,
.overview-event-list li + li {
  border-top: 1px solid var(--ds-line);
}
.overview-task {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  min-height: 89px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.overview-task-icon {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--ds-dashboard-task);
  color: var(--ds-dashboard-task-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.overview-task-icon.amber {
  background: var(--ds-dashboard-task-amber);
  color: var(--ds-dashboard-task-amber-ink);
}
.overview-task-text {
  flex: 1;
  min-width: 0;
}
.overview-task-text strong {
  display: block;
  font-size: 14px;
  font-weight: 690;
  margin-bottom: 5px;
}
.overview-task-text > span {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ds-muted);
  overflow-wrap: anywhere;
}
.overview-task-arrow {
  color: var(--ds-dashboard-arrow);
  flex-shrink: 0;
}
.overview-task .ds-icon,
.overview-event .ds-icon {
  width: 19px;
  height: 19px;
}
.overview-card-footer {
  border-top: 1px solid var(--ds-line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.overview-view-link {
  font-size: 13px;
  color: var(--ds-action);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.overview-view-link .ds-icon {
  width: 15px;
  height: 15px;
}
.overview-card-footer .overview-caption {
  margin: 0;
}
.overview-calm {
  padding: 17px 0;
  margin: 0;
  line-height: 1.7;
}
.overview-calm span {
  font-size: 12px;
  color: var(--ds-muted);
}
.overview-event {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
}
.overview-event-marker {
  width: 4px;
  height: 38px;
  border-radius: 4px;
  background: var(--ds-dashboard-arrival);
  flex-shrink: 0;
}
.overview-event-marker.out {
  background: var(--ds-dashboard-departure);
}
.overview-event-text {
  flex: 1;
}
.overview-event strong {
  display: block;
  font-size: 14px;
  font-weight: 660;
  margin-bottom: 5px;
}
.overview-event small {
  display: block;
  color: var(--ds-muted);
  font-size: 12px;
}
.overview-preview .overview-section-title {
  margin-bottom: 20px;
}
.overview-calendar-head,
.overview-unit {
  display: grid;
  grid-template-columns: 86px repeat(7, minmax(0, 1fr));
  gap: 5px;
  align-items: center;
}
.overview-calendar-head {
  text-align: center;
  font-size: 11px;
  color: var(--ds-muted);
  line-height: 1.45;
  font-weight: 550;
  padding-bottom: 6px;
}
.overview-unit {
  margin-top: 5px;
}
.overview-unit h3 {
  font: 620 12px/1.3 var(--ds-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
  margin: 0;
}
.overview-week {
  grid-column: 2/-1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.overview-day {
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-dashboard-free);
  color: var(--ds-muted);
  border: 1px solid var(--ds-dashboard-free-line);
  text-decoration: none;
}
.overview-day .ds-icon {
  width: 16px;
  height: 16px;
}
.overview-day[data-state='confirmed'] {
  background: var(--ds-dashboard-booked);
  border-color: var(--ds-dashboard-booked-line);
  color: var(--ds-dashboard-booked-ink);
}
.overview-day[data-state='held'] {
  background: var(--ds-dashboard-held);
  border-color: var(--ds-dashboard-held-line);
  color: var(--ds-dashboard-held-ink);
}
.overview-day[data-state='blocked'] {
  background: var(--ds-dashboard-blocked);
  border-color: var(--ds-dashboard-blocked-line);
}
.overview-day[data-state='unknown'] {
  border-style: dashed;
}
.overview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.overview-legend li {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--ds-muted);
}
.overview-legend li:before {
  content: '';
  height: 10px;
  width: 10px;
  border-radius: 3px;
  border: 1px solid var(--ds-line);
  background: var(--ds-dashboard-free);
}
.overview-legend [data-state='confirmed']:before {
  background: var(--ds-dashboard-booked);
}
.overview-legend [data-state='held']:before {
  background: var(--ds-dashboard-held);
}
.overview-legend [data-state='blocked']:before {
  background: var(--ds-dashboard-blocked);
}
.overview-legend [data-state='unknown']:before {
  border-style: dashed;
}
.overview-calendar-link {
  background: var(--ds-dashboard-link);
  padding: 14px 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ds-action);
  font-size: 13px;
  font-weight: 650;
}
.overview-calendar-note {
  font-size: 11px;
  color: var(--ds-dashboard-secondary);
  margin: 9px 0 0;
}
.overview-empty {
  max-width: none;
  padding: 54px 30px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}
.overview-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-action-soft);
  color: var(--ds-action);
  width: 74px;
  height: 74px;
  border-radius: 22px;
}
.overview-empty h2 {
  font: 700 25px/1.25 var(--ds-font);
  letter-spacing: -0.6px;
  margin: 0;
}
.overview-empty p {
  max-width: 430px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ds-muted);
  margin: 0;
}
.overview-loading {
  max-width: 1192px;
  padding: 32px 18px;
  margin: auto;
}
.overview-mobile-nav {
  display: none;
}
@media (max-width: 1245px) {
  .overview-wrap {
    margin-left: 27px;
    margin-right: 27px;
  }
}
@media (max-width: 760px) {
  .overview-wrap {
    margin-left: 0;
    margin-right: 0;
  }
  .overview-topline {
    height: 67px;
    padding: 0 19px;
  }
  .overview-toolbar {
    gap: 16px;
  }
  .overview-body {
    padding: 25px 18px 100px;
  }
  .overview-heading {
    display: block;
    margin-bottom: 15px;
  }
  .overview-eyebrow {
    margin-bottom: 7px;
  }
  .overview-heading #hms-new {
    width: 100%;
    margin-top: 19px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'attention' 'kpi' 'events' 'preview';
    grid-template-rows: none;
    gap: 15px;
  }
  .overview-kpi {
    gap: 8px;
  }
  .overview-kpi .ds-card {
    min-height: 91px;
    padding: 14px 11px;
    border-radius: 12px;
  }
  .overview-kpi .ds-card-head {
    align-items: flex-start;
    min-height: 27px;
  }
  .overview-kpi .ds-card-head h3 {
    font-size: 11px;
  }
  .overview-kpi .ds-card-head .ds-icon {
    display: none;
  }
  .overview-kpi-value {
    font-size: 29px;
    margin-top: 4px;
  }
  .overview-section {
    padding: 19px 17px;
    border-radius: 15px;
  }
  .overview-section-title {
    margin-bottom: 12px;
  }
  .overview-section-title h2 {
    font-size: 18px;
  }
  .overview-task {
    padding: 14px 0;
    min-height: 91px;
    gap: 11px;
  }
  .overview-task-icon {
    width: 39px;
    height: 39px;
    border-radius: 11px;
  }
  .overview-task-text strong {
    font-size: 13px;
  }
  .overview-task-text > span {
    font-size: 11px;
  }
  .overview-calendar-head,
  .overview-unit {
    grid-template-columns: 69px repeat(7, minmax(0, 1fr));
    gap: 3px;
  }
  .overview-calendar-head {
    font-size: 9px;
  }
  .overview-unit h3 {
    font-size: 10px;
  }
  .overview-week {
    gap: 3px;
  }
  .overview-day {
    height: 35px;
    border-radius: 7px;
  }
  .overview-day .ds-icon {
    width: 13px;
    height: 13px;
  }
  .overview-legend {
    gap: 10px;
    margin: 16px 0;
  }
  .overview-legend li {
    font-size: 10px;
  }
  .overview-calendar-link {
    padding: 13px;
  }
  .overview-preview .overview-section-title {
    margin-bottom: 17px;
  }
  .overview-calendar-note {
    margin-top: 14px;
  }
  .overview-empty {
    padding: 40px 18px;
  }
  .overview-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: var(--ds-paper);
    border-top: 1px solid var(--ds-line);
    padding: 11px 9px calc(15px + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--ds-dashboard-shadow);
    font: 530 10px/1.4 var(--ds-font);
    color: var(--ds-dashboard-secondary);
  }
  .overview-mobile-nav > a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    min-height: 44px;
    text-align: center;
    color: var(--ds-dashboard-secondary);
    cursor: pointer;
    list-style: none;
  }
  .overview-mobile-nav [aria-current='page'] {
    color: var(--ds-action);
    font-weight: 750;
  }
  .overview-mobile-nav .ds-icon {
    width: 20px;
    height: 20px;
  }
  body.hms-mode {
    padding-bottom: 90px;
  }
}
/* The reference uses normal text metrics; prevent legacy HMS 1.5 leading leaking in. */
.overview-shell {
  font: 16px/normal var(--ds-font);
}
.overview-section-title h2,
.overview-kpi .ds-card-head h3 {
  line-height: normal;
}
.overview-shell .hms-dialog {
  font: 16px/1.5 var(--ds-font);
}
/* Layout variant for comparison (29.10.2026): the overview sections become one framed surface split by hairline dividers (Moodboards/HMS, W-power) instead of separate cards. Enabled by html.hms-layout-lines (?layout=lines). */
.hms-layout-lines .overview-grid {
  gap: 1px;
  align-items: stretch;
  background: var(--ds-divider);
  border: 1px solid var(--ds-divider);
  border-radius: var(--ds-radius-panel);
  overflow: hidden;
}
.hms-layout-lines .overview-section {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--ds-paper);
  align-self: stretch;
}
.hms-layout-lines .overview-kpi {
  gap: 1px;
  background: var(--ds-divider);
}
.hms-layout-lines .overview-kpi .ds-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--ds-paper);
}
@media (max-width: 760px) {
  .hms-layout-lines .overview-grid {
    gap: 1px;
    border-inline: 0;
    border-radius: 0;
  }
}
/* Layout variant for comparison (29.10.2026): hairlines divide only the page regions (heading band, KPI band, the two columns) as in Moodboards/HMS W-power; sections stay cards with more air around them. Enabled by html.hms-layout-frame (?layout=frame). */
.hms-layout-frame .overview-heading {
  margin-bottom: 0;
  padding-bottom: var(--ds-space-8);
  border-bottom: 1px solid var(--ds-divider);
}
.hms-layout-frame .overview-grid {
  position: relative;
  gap: 0;
  align-items: start;
}
.hms-layout-frame .overview-kpi {
  padding: var(--ds-space-8) 0;
  border-bottom: 1px solid var(--ds-divider);
  gap: var(--ds-space-5);
}
.hms-layout-frame .overview-attention {
  margin: var(--ds-space-8) var(--ds-space-8) var(--ds-space-6) 0;
}
.hms-layout-frame .overview-events {
  margin: 0 var(--ds-space-8) 0 0;
}
.hms-layout-frame .overview-preview {
  margin: var(--ds-space-8) 0 0 var(--ds-space-8);
}
.hms-layout-frame .overview-grid::after {
  content: '';
  grid-area: 2/2/4/3;
  justify-self: start;
  align-self: stretch;
  width: 0;
  border-left: 1px solid var(--ds-divider);
  pointer-events: none;
}
@media (max-width: 760px) {
  .hms-layout-frame .overview-heading {
    padding-bottom: var(--ds-space-6);
  }
  .hms-layout-frame .overview-grid {
    gap: var(--ds-space-5);
  }
  .hms-layout-frame .overview-kpi {
    padding: 0;
    border-bottom: 0;
  }
  .hms-layout-frame .overview-attention {
    margin: var(--ds-space-6) 0 0;
  }
  .hms-layout-frame .overview-events,
  .hms-layout-frame .overview-preview {
    margin: 0;
  }
  .hms-layout-frame .overview-grid::after {
    display: none;
  }
}

/* Navigation v1 (31.10.2026): one header row on the content grid — logo, four sections, actions.
   The sections, «Меню» button and phone tab bar come from design-system/components/app-shell.js. */
.overview-appbar {
  position: sticky;
  top: 0;
  z-index: 15;
}
.overview-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--ds-space-10);
  height: 72px;
  padding: 0;
}
.overview-logo {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  color: var(--ds-ink);
}
.overview-logo img {
  display: block;
  width: auto;
  height: 30px;
}
.overview-toolbar {
  gap: var(--ds-space-3);
}
.overview-header-new {
  margin-right: var(--ds-space-2);
  text-decoration: none;
}
.overview-header-new[hidden] {
  display: none;
}
/* Desktop: «Нове бронювання» lives in the header, not in each heading. */
@media (min-width: 761px) {
  .overview-heading #hms-new {
    display: none;
  }
}
@media (max-width: 1080px) and (min-width: 761px) {
  .overview-topline {
    gap: var(--ds-space-6);
  }
  .overview-header-new {
    width: var(--ds-control-md);
    padding: 0;
  }
  .overview-header-new span,
  .overview-menu .ds-menu-pill-label {
    display: none;
  }
  .overview-menu .ds-menu-pill {
    gap: var(--ds-space-2);
    padding-left: var(--ds-space-3);
  }
}
.overview-mobile-nav[data-app-tabbar] {
  display: none;
}
@media (max-width: 760px) {
  .overview-topline {
    grid-template-columns: auto 1fr;
    height: 64px;
    padding: 0 var(--ds-space-5);
  }
  .overview-logo img {
    height: 26px;
  }
  .overview-toolbar {
    justify-self: end;
  }
  .overview-nav,
  .overview-header-new,
  .overview-menu {
    display: none;
  }
  .overview-mobile-nav[data-app-tabbar] {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: var(--ds-dashboard-shadow);
  }
}

/* Pro trial strip on Огляд: calm while the trial runs, amber in its last three days. */
[data-trial-strip] > .ds-plan-promo {
  margin-bottom: var(--ds-space-4);
}
[data-first-steps] > .ds-first-steps {
  margin-bottom: var(--ds-space-4);
}

/* After Ґазда Pro ends (decisions 01.11.2026): grace / lock banner on Огляд and «Мої хатинки»,
   the notice on a cabin card. Alert, badges and buttons come from the design system. */
.unit-lock-banner {
  margin: 0 0 var(--ds-space-4);
}
.unit-lock-card {
  display: grid;
  gap: var(--ds-space-4);
}
.unit-lock-hidden,
.unit-lock-future {
  display: grid;
  gap: var(--ds-space-2);
  padding: var(--ds-space-4) var(--ds-space-5);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-paper);
}
.unit-lock-hidden {
  background: var(--ds-soft);
  color: var(--ds-muted);
}
.unit-lock-hidden h2,
.unit-lock-future h2 {
  margin: 0;
  font-size: var(--ds-text-md);
}
.unit-lock-hidden p,
.unit-lock-future p {
  margin: 0;
  font-size: var(--ds-text-sm);
}
.unit-lock-rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.unit-lock-rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2) var(--ds-space-3);
  padding: var(--ds-space-3) 0;
  border-top: 1px solid var(--ds-line);
  font-size: var(--ds-text-sm);
}
.unit-lock-rows li > :first-child {
  flex: 1 1 auto;
}
.unit-lock-meta {
  color: var(--ds-muted);
}

/* Navigation v2 (16.11.2026): on desktop the design-system sidebar holds every section; the header row
   is phone-only, the page actions float right of the title (moved there by app-shell.js), and the
   content keeps at most 1440 px, centred right of the sidebar. The phone keeps v1. */
.overview-sidebar {
  display: none;
}
@media (min-width: 761px) {
  .overview-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
  .overview-sidebar {
    position: sticky;
    top: 0;
    display: block;
    height: 100vh;
    height: 100dvh;
  }
  .overview-sidebar .ds-app-sidebar {
    height: 100%;
    overflow-y: auto;
  }
  /* The scrolling sidebar clips its children sideways, so the profile menu (220 px) was cut at the
     edge of the collapsed 76 px sidebar (Vadym 21.11.2026). The sidebar is pinned to the viewport's
     top-left at full height, so the same bottom/left offsets work against the viewport. */
  .overview-sidebar .ds-app-sidebar-menu {
    position: fixed;
  }
  .overview-appbar {
    display: none;
  }
  .overview-wrap {
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: var(--ds-space-10);
  }
  /* Pinned to the title row: «Нове бронювання» and the bell (the workspace is in the sidebar), so its
     width is known and title rows keep that room. */
  .overview-shell {
    --hms-actions-width: 248px;
  }
  .overview-body > .overview-toolbar .overview-space {
    display: none;
  }
  .overview-body {
    position: relative;
  }
  .overview-body > .overview-toolbar {
    position: absolute;
    z-index: 2;
    top: var(--ds-space-8);
    right: var(--ds-space-10);
  }
  .overview-body .overview-heading,
  .booking-heading,
  .guest-heading,
  .request-heading,
  .f06-heading,
  .calendar-page-heading,
  .f07-card > .ds-breadcrumb {
    padding-inline-end: calc(var(--hms-actions-width) + var(--ds-space-6));
  }
  /* Property pages add their own top spacing; their title row starts where the pinned actions do. */
  .property-fidelity .overview-shell .overview-body {
    padding-top: var(--ds-space-8);
  }
  .overview-body #hms-content > .f06-heading:first-child {
    margin-top: 0;
  }
  /* A page's own buttons in its title row line up with the pinned actions: both start at the top. */
  .overview-body .overview-heading,
  .overview-body .booking-heading,
  .overview-body .guest-heading,
  .overview-body .request-heading,
  .overview-body .f06-heading,
  .overview-body .calendar-page-heading {
    align-items: flex-start;
  }
  .overview-body > .overview-toolbar .overview-header-new {
    margin-right: 0;
  }
  /* One «Нове бронювання» per page: the pinned actions have it, so the list heading drops its copy
     (its «Додати першу хатинку» for an empty account stays). */
  .booking-list-heading .booking-create[href*='new=1'] {
    display: none;
  }
  /* The «Меню» button is phone-only now: the sidebar has every section and the profile. */
  .overview-body > .overview-toolbar .overview-menu {
    display: none;
  }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .overview-wrap {
    padding-inline: var(--ds-space-6);
  }
  .overview-body > .overview-toolbar {
    right: var(--ds-space-6);
  }
  /* Here «Нове бронювання» is an icon button (rule above), so the actions take two 44 px buttons. */
  .overview-shell {
    --hms-actions-width: 100px;
  }
}
/* The card breadcrumb is the title row: as tall as the actions next to it, so the tabs start below. */
.f07-card > .ds-breadcrumb {
  display: flex;
  align-items: center;
  min-height: var(--ds-control-md);
}
/* The right column of «Огляд»: «Календар» and under it «Посилання для гостей» (prototype overview-guest-links
   v0.1, Vadym 16.11.2026). */
.overview-side {
  display: grid;
  grid-area: preview;
  gap: var(--ds-space-5);
  align-self: start;
  min-width: 0;
}
.overview-side > .overview-preview {
  grid-area: auto;
}
.overview-guest-links {
  display: grid;
  gap: var(--ds-space-3);
}
.overview-guest-links[hidden] {
  display: none;
}
.overview-guest-links-icon {
  color: var(--ds-muted);
}
.overview-guest-link-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.overview-guest-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) 0;
  border-top: 1px solid var(--ds-line);
}
.overview-guest-link:first-child {
  padding-top: 0;
  border-top: 0;
}
.overview-guest-link-copy {
  display: grid;
  min-width: 0;
}
.overview-guest-link-url {
  overflow: hidden;
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-guest-link-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--ds-space-3);
}
.overview-guest-link-open {
  color: var(--ds-ink);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
}
.overview-guest-links > .ds-button[data-variant='quiet'] {
  justify-self: start;
}
@media (max-width: 760px) {
  .overview-side {
    gap: var(--ds-space-4);
  }
  .overview-guest-link-open {
    display: none;
  }
}
.f07-card .f07-hero[hidden] {
  display: none;
}

/* A long name: two lines, then «…»; in a narrow block the buttons go under the name (Vadym 16.11.2026: «якщо
   буде довга назва?»). */
.overview-guest-links {
  container-type: inline-size;
}
.overview-guest-link-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}
@container (max-width: 420px) {
  .overview-guest-link {
    flex-wrap: wrap;
  }
  .overview-guest-link-copy {
    flex: 1 1 100%;
  }
  .overview-guest-link-actions {
    width: 100%;
    justify-content: space-between;
  }
}
/* On a phone there is no «Відкрити», so «Скопіювати» stays beside the name. */
@media (max-width: 760px) {
  .overview-guest-link {
    flex-wrap: nowrap;
  }
  .overview-guest-link-copy {
    flex: 1 1 auto;
  }
  .overview-guest-link-actions {
    width: auto;
  }
}

/* After checkout: the review link task carries «Скопіювати посилання» beside the row (16.11.2026). */
.overview-task-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--ds-space-3);
}
.overview-task-row .overview-task {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}
.overview-task-copy {
  flex: none;
}
@media (max-width: 760px) {
  .overview-task-row .overview-task {
    flex-basis: 100%;
    min-height: 0;
    padding-bottom: var(--ds-space-2);
  }
  .overview-task-copy {
    margin: 0 0 var(--ds-space-3) calc(var(--ds-space-10) + var(--ds-space-3));
  }
}
