.lh-chess-table-box { display: flex; flex-direction: column; position: relative; }
.lh-chess-header-wrap { position: sticky; top: 0; z-index: 30; overflow: hidden; background: var(--surface); border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
.lh-chess-body-wrap { overflow-x: auto; overflow-y: visible; user-select: none; position: relative; }
.lh-fixed-table { border-collapse: collapse; font-size: 12px; line-height: 16px; border: 0; table-layout: fixed; }
.lh-fixed-table th, .lh-fixed-table td { height: 37px; padding: 2px 4px; text-align: left; border: 0; border-bottom: 1px solid rgba(15, 23, 42, 0.055); border-right: 1px solid rgba(15, 23, 42, 0.042); vertical-align: middle; transition: background-color 180ms ease, color 180ms ease; }
.lh-col-apt { width: 224px; } .lh-col-day { width: var(--col-w, 80px); }
.lh-today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #ef4444; left: calc(224px + var(--today-col, 0) * var(--col-w, 80px)); z-index: 18; pointer-events: none; }
.lh-today-badge { display: inline-block; background: #ef4444; color: #fff; font-size: 7.5px; font-weight: 700; padding: 1px 4px; border-radius: 3px; text-transform: uppercase; line-height: 10px; }
.lh-month-th { height: 24px !important; padding: 0 !important; overflow: hidden; position: relative; background: var(--surface) !important; border-bottom: 1px solid rgba(15, 23, 42, 0.06); border-right: 1px solid rgba(15, 23, 42, 0.08); }
.lh-month-ruler-track { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.lh-month-line { position: absolute; left: 3px; right: 3px; height: 1px; background: rgba(148, 163, 184, 0.35); top: calc(50% - 0.5px); }
.lh-month-tick { position: absolute; width: 1px; height: 4px; background: rgba(100, 116, 139, 0.55); top: calc(50% - 2px); }
.lh-month-tick.is-left { left: 3px; } .lh-month-tick.is-right { right: 3px; }
.lh-month-label { position: relative; z-index: 2; display: inline-block; white-space: nowrap; font-size: 10.5px; font-weight: 600; color: var(--secondary-text); letter-spacing: 0.05em; text-transform: uppercase; padding: 0 8px; background: var(--surface); pointer-events: none; }
.lh-day-th { height: 28px !important; padding: 1px 2px !important; text-align: center !important; background: var(--surface); width: var(--col-w, 80px); cursor: pointer; user-select: none; }
.lh-day-th:hover { background: #f1f5f9; }
.lh-day-th.is-today { background: #fef2f2 !important; box-shadow: inset 0 -2px 0 #ef4444; }
.lh-day-th.is-weekend, .lh-day-th.is-weekend .lh-day-num, .lh-day-th.is-weekend .lh-day-weekday { color: #dc2626 !important; }
.lh-day-weekday { display: block; font-size: 8.5px; font-weight: 600; text-transform: uppercase; line-height: 9px; color: var(--secondary-text); }
.lh-day-num { display: block; font-size: 10.5px; font-weight: 600; line-height: 12px; }
th.lh-apt-sticky-col[rowspan="2"], td.lh-apt-sticky-col { position: sticky; left: 0; background: var(--surface); width: 224px; min-width: 224px; max-width: 224px; }
th.lh-apt-sticky-col[rowspan="2"] { z-index: 45; padding: 0 10px !important; }
td.lh-apt-sticky-col { z-index: 32; cursor: pointer; padding: 3px 8px 3px 10px !important; }
.lh-apt-cell-inner { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; }
.lh-apt-cell-text { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-apt-cell-text strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 600; color: var(--text); }
.lh-apt-info-btn { width: 22px; height: 22px; border-radius: 6px; border: 0; background: transparent; color: var(--secondary-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0.55; flex-shrink: 0; }
td.lh-apt-sticky-col:hover .lh-apt-info-btn { opacity: 1; background: var(--field); color: var(--text); }
.lh-cell-free { background: var(--surface); cursor: pointer; text-align: center !important; font-variant-numeric: tabular-nums; white-space: nowrap; color: #64748b; font-weight: 500; font-size: 10.5px; }
.lh-cell-free.is-weekend-col { background: rgba(248, 250, 252, 0.72); }
.lh-chess-table-box.is-smart-focus .lh-cell-free.is-base-rate { color: rgba(148, 163, 184, 0.38); font-weight: 400; font-size: 10px; }
.lh-cell-free:hover { color: var(--text) !important; background: var(--hover) !important; font-weight: 600 !important; }
.lh-cell-closed { background: var(--semantic-err-bg); color: var(--semantic-err); cursor: pointer; text-align: center !important; font-variant-numeric: tabular-nums; font-size: 10.5px; }
.lh-cell-booked-td { background: var(--surface); padding: 4px 1px !important; cursor: pointer; vertical-align: middle; }
.lh-booking-pill { height: 26px; margin: 0 2px; padding: 0 8px; border-radius: 6px; background: #e0e7ff; color: #1e1b4b; font-weight: 600; font-size: 11px; display: flex; align-items: center; justify-content: space-between; gap: 6px; white-space: nowrap; overflow: hidden; border: 0 !important; }
.lh-booking-pill > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.lh-booking-pill.is-maint { background: #fef3c7; color: #92400e; }
.lh-booking-pill.is-pill-highlighted:not(.is-maint) { background: #c7d2fe !important; color: #1e1b4b !important; }
.lh-booking-pill.is-pill-selected:not(.is-maint) { background: #4f46e5 !important; color: #ffffff !important; }
.lh-pill-meta { font-size: 10px; font-weight: 600; opacity: 0.78; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.lh-cross-row td:not(.lh-apt-sticky-col), .lh-cross-col, .lh-cross-row td.lh-apt-sticky-col { background: #f1f5f9 !important; color: var(--text) !important; }
.lh-cross-active { background: #e2e8f0 !important; color: var(--text) !important; font-weight: 600 !important; }
.is-axis-selected { background: #18181b !important; color: #ffffff !important; }
.is-axis-selected strong, .is-axis-selected .lh-muted, .is-axis-selected .lh-day-weekday, .is-axis-selected .lh-day-num, .is-axis-selected .lh-apt-info-btn { color: #ffffff !important; opacity: 1 !important; }
.is-matrix-selected { background: rgba(219, 234, 254, 0.65) !important; color: #1e3a8a !important; }
.is-range-selected { background: #dbeafe !important; color: #1e3a8a !important; box-shadow: inset 0 0 0 1.5px #3b82f6 !important; }
.is-panning, .is-panning * { cursor: grabbing !important; user-select: none !important; }
.is-panning .lh-chess-body-wrap table { pointer-events: none !important; }
@keyframes lhDockIn { from { opacity: 0; transform: translate(-50%, 10px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.lh-selection-dock { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 0); z-index: 140; background: rgba(28, 28, 30, 0.92); backdrop-filter: blur(22px); color: #fff; padding: 8px 12px 8px 18px; border-radius: 999px; display: flex; align-items: center; gap: 10px; white-space: nowrap; animation: lhDockIn 180ms var(--ease-apple); }
.lh-selection-dock-meta { font-size: 13px; font-weight: 500; padding-right: 6px; display: flex; align-items: center; gap: 8px; }
.lh-tt-box { display: flex; flex-direction: column; gap: 4px; padding: 2px 0; }
.lh-tt-row { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: #fff; white-space: nowrap; }
@keyframes lhMenuPop { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: translateY(0); } }
.lh-ctx-menu { position: fixed; z-index: 620; min-width: 176px; width: max-content; max-width: 264px; background: var(--surface); border: 0 !important; border-radius: 12px; padding: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); display: flex; flex-direction: column; gap: 1px; }
.lh-ctx-header { padding: 6px 10px 5px; font-size: 11.5px; line-height: 15px; font-weight: 500; color: var(--secondary-text); border-bottom: 1px solid var(--divider); margin-bottom: 2px; display: flex; flex-direction: column; gap: 2px; }
.lh-ctx-header strong { color: var(--text); font-size: 12.5px; font-weight: 600; }
.lh-ctx-item { border: 0; background: transparent; color: var(--text); font-size: 13px; padding: 7px 10px; border-radius: 8px; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; white-space: nowrap; }
.lh-ctx-item-left { display: inline-flex; align-items: center; gap: 8px; }
.lh-ctx-item-ico { color: var(--text); display: inline-flex; opacity: 0.82; }
.lh-ctx-item:hover { background: var(--field); }
.lh-ctx-item.is-danger, .lh-ctx-item.is-danger .lh-ctx-item-ico { color: var(--semantic-err); opacity: 1; }
.lh-ctx-item.is-danger:hover { background: var(--semantic-err-bg); }
.lh-kanban-board { display: grid; grid-template-columns: repeat(4, minmax(255px, 1fr)); gap: 12px; overflow-x: auto; padding: 2px 0; }
.lh-kanban-col { background: var(--surface); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 400px; }
.lh-kanban-col.is-drop-target { background: rgba(0, 122, 255, 0.08); outline: 1.5px dashed var(--primary); }
.lh-ticket-card { background: var(--canvas); border-radius: 14px; padding: 12px 14px; cursor: grab; display: flex; flex-direction: column; gap: 8px; transition: background-color 120ms ease; }
.lh-ticket-card.is-dragging { opacity: 0.45; cursor: grabbing; }
.lh-ticket-card:hover { background: var(--hover); }
.lh-ticket-card.is-problem { border-left: 3.5px solid var(--semantic-err); }
.lh-chat-stream { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.lh-chat-msg { padding: 10px 12px; border-radius: 14px; background: var(--canvas); display: flex; flex-direction: column; gap: 4px; }
.lh-meter-track { width: 100%; height: 6px; background: var(--field); border-radius: 999px; overflow: hidden; }
.lh-meter-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width 200ms var(--ease-apple); }
.lh-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.34); backdrop-filter: blur(10px); display: flex !important; align-items: center; justify-content: center; z-index: 200; opacity: 1; visibility: visible; transition: opacity 190ms var(--ease-apple), visibility 190ms var(--ease-apple); }
.lh-modal.is-hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.lh-modal.lh-modal-layer-2 { z-index: 260; background: rgba(15, 23, 42, 0.28); }
.lh-modal-card { background: var(--surface); border: 0 !important; border-radius: var(--radius-modal); width: min(680px, 94vw); max-height: 90dvh; overflow: hidden; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; transition: transform 200ms var(--ease-apple), opacity 180ms ease; }
.lh-modal.is-hidden .lh-modal-card { transform: scale(0.96) translateY(8px); opacity: 0; }
.lh-modal-card.is-passport-modal { padding: 0 !important; width: min(760px, 95vw); border-radius: 22px; overflow: hidden !important; background: var(--surface); }
.lh-modal-card.is-passport-modal .lh-modal-header { display: none !important; }
.lh-modal-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-shrink: 0; padding-bottom: 2px; border: 0 !important; }
.lh-modal-title { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.lh-modal-body { display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; max-height: calc(90dvh - 76px); overflow-y: auto; padding-right: 2px; }
.lh-modal-card.is-passport-modal .lh-modal-body { max-height: 90dvh; padding-right: 0; gap: 0; overflow-y: auto; }
.lh-confirm-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 6px; flex-wrap: wrap; }
.lh-hero-slider { padding: 18px 22px 4px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); flex-shrink: 0; }
.lh-passport-top-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lh-passport-top-titles { min-width: 0; flex: 1; }
.lh-passport-main-title { font-size: 20px; line-height: 25px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }

/* Адаптивная Bento-галерея Паспорта квартиры с жёсткой фиксацией строк грида */
.lh-bento-gallery { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 268px; min-height: 268px; max-height: 268px; gap: 8px; border-radius: 16px; overflow: hidden; user-select: none; }
.lh-bento-gallery.is-count-2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.lh-bento-gallery.is-count-3plus { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.lh-bento-main-frame, .lh-bento-side-frame { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; background: var(--field); overflow: hidden; border-radius: 12px; cursor: pointer; }
.lh-bento-side-col { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.lh-bento-side-col.is-single-side { grid-template-rows: minmax(0, 1fr); }
.lh-bento-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: 100% !important; object-fit: cover !important; object-position: center center !important; display: block; transition: filter 160ms ease; }
.lh-bento-main-frame:hover .lh-bento-img, .lh-bento-side-frame:hover .lh-bento-img { filter: brightness(0.92); }
.lh-bento-all-btn { position: absolute; left: 12px; bottom: 12px; z-index: 6; height: 32px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(29, 29, 31, 0.78); backdrop-filter: blur(12px); color: #ffffff; font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: background-color 120ms ease; }
.lh-bento-all-btn:hover { background: rgba(29, 29, 31, 0.94); }
.lh-bento-more-overlay { position: absolute; inset: 0; z-index: 5; background: rgba(15, 23, 42, 0.58); backdrop-filter: blur(4px); color: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background-color 140ms ease; }
.lh-bento-side-frame:hover .lh-bento-more-overlay { background: rgba(15, 23, 42, 0.68); }
.lh-bento-more-overlay strong { font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.lh-bento-more-overlay span { font-size: 12px; font-weight: 500; opacity: 0.9; }

/* Полноэкранный инспектор фотографий с нижней лентой миниатюр */
.lh-doc-lightbox-stage { position: relative; }
.lh-gallery-lb-titles { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lh-gallery-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: #1d1d1f; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 120ms ease; }
.lh-gallery-nav-btn:hover { background: #ffffff; }
.lh-gallery-nav-btn.is-prev { left: 22px; } .lh-gallery-nav-btn.is-next { right: 22px; }
.lh-gallery-filmstrip { padding: 10px 22px 16px; background: rgba(15, 23, 42, 0.65); display: flex; align-items: center; justify-content: center; gap: 8px; overflow-x: auto; flex-shrink: 0; }
.lh-gallery-thumb { position: relative; width: 68px; height: 50px; border-radius: 9px; border: 0; padding: 0; overflow: hidden; background: #1d1d1f; cursor: pointer; opacity: 0.52; flex-shrink: 0; transition: opacity 140ms ease; }
.lh-gallery-thumb:hover { opacity: 0.85; }
.lh-gallery-thumb.is-active { opacity: 1; outline: 2px solid #ffffff; outline-offset: 1px; }
.lh-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lh-gallery-thumb span { position: absolute; right: 4px; bottom: 3px; font-size: 10px; font-weight: 600; color: #ffffff; background: rgba(0, 0, 0, 0.62); padding: 0 4px; border-radius: 4px; line-height: 14px; }

.lh-passport-content { padding: 14px 22px 22px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.lh-passport-nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; }
.lh-bento-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lh-bento-stat { background: var(--canvas); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.lh-bento-stat strong { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-collapsible-wrap { display: flex; flex-direction: column; gap: 8px; }
.lh-collapsible-box { background: var(--canvas); border: 0; padding: 12px 14px; border-radius: 12px; overflow: hidden; }
.lh-collapsible-desc { font-size: 13.5px; line-height: 20px; color: var(--text); white-space: pre-wrap; word-break: break-word; max-height: 150px; overflow: hidden; transition: max-height 300ms var(--ease-apple); }
.lh-collapsible-desc.is-collapsed { -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%); }
.lh-tooltip { position: fixed; background: rgba(28, 28, 30, 0.94); backdrop-filter: blur(14px); color: #ffffff; padding: 6px 11px; border-radius: 9px; font-size: 12px; line-height: 16px; pointer-events: none; z-index: 980; max-width: 320px; }
.lh-toast-stack { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 6px; z-index: 960; }
.lh-toast { background: rgba(28, 28, 30, 0.92); backdrop-filter: blur(16px); color: #ffffff; padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; animation: lhMenuPop 160ms var(--ease-apple); }
