/* Движок окон macOS Tahoe, сетка 7 дней недели РК, дропзона фото, памятка FAQ и 5-секундный оверлей ошибок */
.lh-modal-card.is-tahoe-window {
  width: min(940px, 96vw) !important; height: min(690px, 90dvh) !important; max-height: 90dvh !important;
  padding: 0 !important; border-radius: 24px !important; background: var(--canvas) !important;
  overflow: hidden !important; display: flex !important; flex-direction: row !important; gap: 0 !important;
}
.lh-modal-card.is-tahoe-window > .lh-modal-header { display: none !important; }
.lh-modal-card.is-tahoe-window > .lh-modal-body {
  flex: 1; width: 100%; height: 100%; max-height: 100% !important;
  padding: 0 !important; gap: 0 !important; overflow: hidden !important;
}

.lh-tahoe-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); width: 100%; height: 100%; min-height: 0; background: var(--canvas); }
.lh-tahoe-sidebar {
  margin: 8px 0 8px 8px; border-radius: 16px; background: var(--surface);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.045), 0 1px 3px rgba(15, 23, 42, 0.028);
  padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden; z-index: 2;
}
.lh-tahoe-sb-head { padding: 4px 8px 8px; border-bottom: 1px solid var(--divider); display: flex; flex-direction: column; gap: 2px; }
.lh-tahoe-sb-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-tahoe-sb-sub { font-size: 11.5px; color: var(--secondary-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lh-tahoe-nav { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; scrollbar-width: none; }
.lh-tahoe-nav::-webkit-scrollbar { display: none; }
.lh-tahoe-grp-lbl { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--secondary-text); padding: 10px 10px 3px; }
.lh-tahoe-grp-lbl:first-child { padding-top: 2px; }

.lh-tahoe-tab-btn {
  width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); font-size: 13px; font-weight: 500; font-family: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; text-align: left; transition: background-color 90ms ease;
}
.lh-tahoe-tab-btn:hover { background: var(--hover); }
.lh-tahoe-tab-btn.is-active { background: #1d1d1f; color: #ffffff; font-weight: 500; }
.lh-tahoe-tab-lead { display: inline-flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.lh-tahoe-tab-lead span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-tahoe-tab-cnt { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: var(--field); color: var(--secondary-text); flex-shrink: 0; }
.lh-tahoe-tab-btn.is-active .lh-tahoe-tab-cnt { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.lh-tahoe-sb-foot { padding-top: 8px; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 6px; }

.lh-tahoe-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; padding: 16px 22px 16px 20px; gap: 12px; overflow: hidden; }
.lh-tahoe-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-shrink: 0; padding-bottom: 4px; }
.lh-tahoe-top-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lh-tahoe-top-titles h3 { font-size: 18px; line-height: 22px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.lh-tahoe-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 4px; display: flex; flex-direction: column; gap: 18px; }
.lh-tahoe-footer { padding-top: 10px; border-top: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.lh-tahoe-group { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--divider); }
.lh-tahoe-group:last-child { border-bottom: 0; padding-bottom: 2px; }
.lh-tahoe-group-head { font-size: 13.5px; font-weight: 600; color: var(--text); padding-bottom: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lh-tahoe-row { display: grid; grid-template-columns: minmax(180px, 1.15fr) minmax(180px, 260px); align-items: center; justify-content: space-between; gap: 16px; padding: 6px 4px; border-radius: 10px; }
.lh-tahoe-row.is-wide-control { grid-template-columns: minmax(150px, 0.85fr) minmax(240px, 1.35fr); }
.lh-tahoe-row-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lh-tahoe-row-title { font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 18px; }
.lh-tahoe-row-sub { font-size: 12px; color: var(--secondary-text); line-height: 16px; }
.lh-tahoe-row-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.lh-tahoe-row-ctrl .lh-input, .lh-tahoe-row-ctrl .lh-select, .lh-tahoe-row-ctrl .lh-textarea-shell, .lh-tahoe-row-ctrl .lh-dropdown-trigger { background: var(--surface); }

/* Индивидуальные карточки 7 дней недели (Пн–Вс) как в RealtyCalendar */
.lh-rc-weekdays-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding-top: 4px; }
.lh-rc-day-card { background: var(--surface); border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.lh-rc-day-card.is-weekend-day { background: rgba(29, 29, 31, 0.045); }
.lh-rc-day-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.lh-rc-day-short { font-size: 13px; font-weight: 600; color: var(--text); }
.lh-rc-day-card.is-weekend-day .lh-rc-day-short { color: #d93025; }
.lh-rc-day-full { font-size: 11px; color: var(--secondary-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-rc-day-card .lh-input { height: 32px; padding: 0 6px; font-size: 13px; font-weight: 600; text-align: center; background: var(--field); }

/* Дропзона загрузки фото квартиры и памятка по гостям */
.lh-rc-photo-dropzone { background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; transition: background-color 100ms ease; }
.lh-rc-photo-dropzone:hover, .lh-rc-photo-dropzone.is-dragover { background: var(--hover); }
.lh-tahoe-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 12px; padding-top: 4px; }
.lh-tahoe-photo-card { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.lh-tahoe-photo-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #e5e5ea; overflow: hidden; cursor: pointer; }
.lh-tahoe-photo-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.lh-tahoe-photo-grid.is-fit-contain .lh-tahoe-photo-img { object-fit: contain; background: #1d1d1f; }
.lh-tahoe-photo-bar { padding: 7px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text); }
.lh-tahoe-inline-split { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 16px; align-items: start; }

.lh-rc-faq-list { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.lh-rc-faq-item { background: var(--surface); border-radius: 12px; padding: 11px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; line-height: 18px; color: var(--secondary-text); }
.lh-rc-faq-item strong { font-size: 13px; font-weight: 600; color: var(--text); }

/* 5-секундный оверлей ошибок реверс-движка справа снизу с кнопкой-иконкой копирования */
.lh-rc-error-toast { width: min(410px, 92vw); background: rgba(29, 29, 31, 0.96); backdrop-filter: blur(18px); color: #ffffff; border-radius: 14px; padding: 12px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lh-rc-error-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.lh-rc-error-title { font-size: 12.5px; font-weight: 600; color: #ff6b6b; display: flex; align-items: center; gap: 6px; }
.lh-rc-error-msg { font-size: 12px; line-height: 16px; color: #e5e5ea; word-break: break-word; max-height: 64px; overflow: hidden; }
.lh-rc-error-copy-btn { width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.14); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background-color 100ms ease; }
.lh-rc-error-copy-btn:hover { background: rgba(255, 255, 255, 0.26); }
