/* Cabin page, tab «Синхронізація» (calendar sync over iCal). Layout only: components come from the design system. */
.sync-panel {
  display: grid;
  /* The cabin page lays its blocks out in columns; this panel takes the full row. */
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ds-space-5);
  padding: var(--ds-space-5);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-paper);
}
.sync-panel > .ds-alert {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.sync-head {
  display: grid;
  gap: var(--ds-space-2);
}
.sync-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2);
  margin: 0;
  font-size: var(--ds-text-lg);
}
.sync-lead,
.sync-loading {
  margin: 0;
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
.sync-panel h3 {
  margin: 0;
  font-size: var(--ds-text-sm);
}
.sync-offer {
  display: grid;
  justify-items: start;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
  border-radius: var(--ds-radius-control);
  background: var(--ds-soft);
  font-size: var(--ds-text-sm);
}
.sync-offer p {
  margin: 0;
}
.sync-feed,
.sync-channels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ds-space-2);
}
.sync-feed-row {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
}
.sync-feed-field {
  flex: 1;
  min-width: 0;
  text-overflow: ellipsis;
}
.sync-feed .ds-help,
.sync-form .ds-help {
  margin: 0;
}
.sync-quiet {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ds-ink);
  font: inherit;
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  text-decoration: underline;
  text-underline-offset: var(--ds-space-1);
  cursor: pointer;
}
.sync-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-3) var(--ds-space-4);
  margin-top: var(--ds-space-1);
}
.sync-form .sync-quiet {
  justify-self: start;
}
.sync-form {
  display: grid;
  gap: var(--ds-space-3);
}
.sync-form [hidden] {
  display: none;
}
.sync-sheet-text {
  margin: 0;
  font-size: var(--ds-text-sm);
}
.sync-form-error {
  margin: 0;
  color: var(--ds-danger);
  font-size: var(--ds-text-sm);
}
/* The problem counter on the tab. */
.f07-tabs .ds-button .ds-badge {
  margin-left: var(--ds-space-1);
}
@media (max-width: 700px) {
  .sync-panel {
    padding: var(--ds-space-4);
  }
  .sync-feed-row {
    flex-wrap: wrap;
  }
  .sync-feed-field {
    flex-basis: 100%;
  }
  .sync-feed-copy,
  .sync-add {
    width: 100%;
    min-height: var(--ds-touch-target);
  }
}
/* Four tabs on a phone: each takes the width of its label, so the longest one and its counter fit. */
@media (max-width: 760px) {
  .f07-tabs:has([data-tab='sync']) .ds-button {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: var(--ds-space-1);
    font-size: var(--ds-text-xs);
  }
}
/* The same overlap on the booking's own page. */
.request-sync-clash {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: var(--ds-space-4);
}
