/* Раздельные интерфейсы Досье Клиента, Read-First Паспорт брони и S3-проводник */
.lh-modal-card.is-confirm-dialog { width: min(410px, 92vw) !important; padding: 20px 22px !important; gap: 12px !important; }
.lh-modal-card.is-wide-dossier { width: min(840px, 95vw) !important; padding: 0 !important; border-radius: 22px; overflow: hidden !important; background: var(--surface); }
.lh-modal-card.is-wide-dossier > .lh-modal-header { display: none !important; }
.lh-modal-card.is-wide-dossier > .lh-modal-body { max-height: 90dvh; padding: 0 !important; gap: 0 !important; overflow-y: auto; overflow-x: hidden !important; }
.lh-confirm-text { font-size: 14px; line-height: 20px; color: var(--text); margin: 0; }
.lh-modal-body.is-compact-modal { overflow: visible !important; max-height: none !important; }
.lh-dossier-shell { display: flex; flex-direction: column; width: 100%; overflow-x: hidden; background: var(--surface); }
.lh-dossier-header { padding: 20px 24px 16px; background: var(--surface); border-bottom: 1px solid var(--divider); display: flex; flex-direction: column; gap: 14px; }
.lh-dossier-header.is-cleaner-header { background: var(--canvas); }
.lh-dossier-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: nowrap; }
.lh-dossier-identity { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.lh-dossier-avatar-mono, .lh-dossier-avatar-img { width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.lh-dossier-avatar-mono { background: #1d1d1f; color: #ffffff; font-size: 17px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; user-select: none; }
.lh-dossier-title-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.lh-dossier-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lh-dossier-name-row h2 { font-size: 20px; line-height: 24px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; margin: 0; }
.lh-dossier-chips, .lh-dossier-top-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lh-contact-chip, .lh-pencil-btn { height: 28px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--field); color: var(--text); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.lh-pencil-btn { height: 30px; background: var(--surface); }
.lh-contact-chip:hover, .lh-pencil-btn:hover, .lh-stay-booking-card:hover, .lh-doc-scan-card:hover { background: var(--hover); }
.lh-dossier-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lh-dossier-metric { background: var(--surface); border-radius: 12px; padding: 11px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lh-dossier-m-lbl { font-size: 12px; color: var(--secondary-text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-dossier-m-val { font-size: 18px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.lh-dossier-m-sub { font-size: 11.5px; color: var(--secondary-text); }
.lh-dossier-body { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); }
.lh-guest-dossier-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px; align-items: start; }
.lh-dossier-form-section, .lh-stay-cards-stack, .lh-visual-tiles-stack { display: flex; flex-direction: column; gap: 10px; }
.lh-dossier-sec-title { font-size: 14px; font-weight: 600; color: var(--text); }
.lh-grid-3-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.lh-dossier-footer { padding-top: 12px; border-top: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lh-read-card, .lh-booking-passport-hero, .lh-doc-vault-panel { background: var(--canvas); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.lh-booking-hero-top, .lh-booking-hero-timeline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lh-read-notes-text { font-size: 13.5px; line-height: 19px; color: var(--text); white-space: pre-wrap; word-break: break-word; background: var(--surface); padding: 10px 13px; border-radius: 11px; }
.lh-booking-files-grid { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lh-booking-file-pill { height: 32px; max-width: 100%; padding: 0 6px 0 11px; border-radius: 9px; background: var(--surface); display: inline-flex; align-items: center; gap: 6px; }
.lh-booking-file-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--text); cursor: pointer; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-stay-booking-card { background: var(--canvas); border-radius: 16px; padding: 12px 16px; display: grid; grid-template-columns: minmax(190px, 1.25fr) auto auto; align-items: center; gap: 14px; cursor: pointer; }
.lh-apt-mini-tile { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.lh-apt-mini-thumb { width: 68px; height: 51px; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; background: var(--field); flex-shrink: 0; }
.lh-apt-mini-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lh-apt-mini-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-apt-mini-addr { font-size: 12.5px; color: var(--secondary-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-stay-dates-flow { display: inline-flex; flex-direction: column; gap: 7px; flex-shrink: 0; background: var(--surface); padding: 8px 14px 7px; border-radius: 12px; }
.lh-stay-dates-row { display: inline-flex; align-items: center; gap: 12px; }
.lh-stay-progress-track { width: 100%; height: 3.5px; border-radius: 999px; background: var(--field); overflow: hidden; }
.lh-stay-progress-fill { height: 100%; width: 0%; background: #1d1d1f; border-radius: 999px; transition: width 320ms linear; }
.lh-stay-date-box { display: flex; flex-direction: column; gap: 1px; font-size: 13px; white-space: nowrap; }
.lh-stay-date-box strong { font-weight: 600; color: var(--text); } .lh-stay-date-box span { font-size: 11.5px; color: var(--secondary-text); }
.lh-stay-arrow-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 4px; color: var(--secondary-text); }
.lh-stay-nights-pill { font-size: 11px; font-weight: 600; background: var(--field); color: var(--text); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.lh-stay-arrow-line { display: inline-flex; color: var(--text); }
.lh-stay-right-summary { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.lh-stay-price { font-size: 15px; font-weight: 600; color: var(--text); }
.lh-doc-scan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.lh-doc-scan-card { background: var(--surface); border-radius: 12px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.lh-doc-scan-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--field); }
.lh-doc-scan-bar { padding: 6px 10px; font-size: 12px; font-weight: 500; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.lh-doc-empty-box { grid-column: 1 / -1; min-height: 84px; border-radius: 12px; background: var(--surface); color: var(--secondary-text); font-size: 12.5px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.lh-doc-lightbox { position: fixed; inset: 0; z-index: 995; background: rgba(15, 23, 42, 0.88); backdrop-filter: blur(14px); display: flex; flex-direction: column; }
.lh-doc-lightbox-bar { padding: 14px 22px; background: rgba(255, 255, 255, 0.96); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lh-doc-lightbox-stage { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lh-doc-lightbox-img { max-width: 92vw; max-height: 82dvh; border-radius: 12px; object-fit: contain; cursor: zoom-in; transition: transform 180ms var(--ease-apple); }
.lh-doc-lightbox-img.is-zoomed { transform: scale(1.75); cursor: zoom-out; }
.lh-visual-setting-tile { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; background: var(--surface); border-radius: 18px; padding: 16px 20px; }
.lh-tile-svg-box { width: 112px; height: 92px; border-radius: 14px; background: var(--canvas); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.lh-tile-svg-box svg { width: 78px; height: 78px; display: block; }
.lh-tile-content { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lh-dropdown-scroll, .lh-ctx-scroll { max-height: 224px; overflow-y: auto; padding-right: 2px; display: flex; flex-direction: column; gap: 1px; width: 100%; }
.lh-ctx-menu { overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
.lh-ctx-item.has-submenu { position: relative; }
.lh-ctx-submenu { position: absolute; top: -4px; left: 100%; margin-left: 4px; width: 248px; z-index: 960; background: var(--surface); border: 0; border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14); opacity: 0; visibility: hidden; pointer-events: none; }
.lh-ctx-submenu::before { content: ""; position: absolute; top: 0; bottom: 0; left: -6px; width: 6px; background: transparent; }
.lh-ctx-item.has-submenu.is-sub-open { background: var(--field); }
.lh-ctx-item.has-submenu.is-sub-open > .lh-ctx-submenu { opacity: 1; visibility: visible; pointer-events: auto; }
.lh-ctx-fmt-row { display: flex; align-items: center; gap: 4px; padding: 4px 6px 6px; border-bottom: 1px solid var(--divider); margin-bottom: 2px; }
.lh-ctx-emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 2px; max-height: 204px; overflow-y: auto; width: 100%; }
.lh-ctx-emoji-btn { height: 34px; width: 100%; border: 0; border-radius: 8px; background: transparent; font-size: 19px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lh-ctx-emoji-btn:hover { background: var(--field); }
.lh-ctx-emoji-btn.is-prem-cell canvas { width: 24px; height: 24px; display: block; pointer-events: none; }
.lh-prem-empty-note { padding: 10px 8px; text-align: center; }
.lh-prem-caption-hint { margin-top: 4px; padding: 5px 8px; border-radius: 7px; background: #1d1d1f; color: #ffffff; font-size: 11.5px; font-weight: 500; text-align: center; pointer-events: none; }
.lh-prem-detail-popover { position: fixed; z-index: 990; width: 248px; background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; gap: 8px; }
.lh-prem-detail-head { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--divider); }
.lh-cms-var-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; margin: 0 2px; border-radius: 999px; background: rgba(0, 122, 255, 0.12); color: #0066d6; font-size: 13px; font-weight: 500; line-height: 19px; user-select: all; cursor: pointer; white-space: nowrap; }
.lh-cms-var-chip .material-symbols-outlined { font-size: 14px; }
.lh-inline-prem-emoji { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: 0 1px; vertical-align: text-bottom; user-select: all; cursor: pointer; position: relative; }
.lh-inline-prem-emoji canvas { width: 20px; height: 20px; display: block; pointer-events: none; }
.lh-cms-kb-builder { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--divider); }
.lh-cms-btn-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: var(--canvas); border-radius: 12px; }
.lh-cms-btn-row.is-drop-row { background: rgba(0, 122, 255, 0.1); }
.lh-cms-row-grip { cursor: grab; color: var(--secondary-text); display: inline-flex; }
.lh-cms-row-buttons { flex: 1; display: flex; align-items: center; gap: 6px; min-height: 34px; }
.lh-cms-kb-chip { flex: 1; min-width: 80px; height: 34px; padding: 0 12px; border-radius: 9px; border: 0; background: #ffffff; color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.lh-cms-kb-chip.is-style-primary { background: #007aff; color: #ffffff; }
.lh-cms-kb-chip.is-style-success { background: #34c759; color: #ffffff; }
.lh-cms-kb-chip.is-style-danger { background: #ff3b30; color: #ffffff; }
.lh-btn-modal-preview-box { background: var(--canvas); border-radius: 12px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lh-btn-color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lh-color-swatch-pill { height: 36px; border: 0; border-radius: 10px; background: var(--field); color: var(--text); font-size: 13px; font-weight: 500; padding: 0 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.lh-color-swatch-pill.is-active { background: var(--surface); outline: 2px solid var(--primary); outline-offset: -2px; font-weight: 600; }
.lh-swatch-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.lh-swatch-dot.is-default { background: #8e8e93; } .lh-swatch-dot.is-primary { background: #007aff; } .lh-swatch-dot.is-success { background: #34c759; } .lh-swatch-dot.is-danger { background: #ff3b30; }
.lh-btn-input-with-picker { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.lh-wizard-steps { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--divider); }
.lh-wizard-step { flex: 1; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--canvas); color: var(--secondary-text); font-size: 12px; font-weight: 500; }
.lh-wizard-step.is-active { background: var(--primary-soft); color: var(--primary); }
.lh-wizard-step.is-done { background: var(--semantic-ok-bg); color: var(--semantic-ok); }
.lh-wizard-num { width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, 0.07); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.lh-wizard-step.is-active .lh-wizard-num { background: var(--primary); color: #ffffff; }
.lh-agent-cms-diff-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 272px)); gap: 14px; padding: 10px 4px; }
.lh-diff-phone-card { border-radius: 26px; border: 4px solid #1c1c1e; background: #9ec28e; padding: 10px; min-height: 240px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.lh-diff-phone-card.is-empty-phone { background: #f2f3f7; border-color: rgba(255, 59, 48, 0.45); align-items: center; justify-content: center; text-align: center; color: var(--semantic-err); }
.lh-diff-cross-ico { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 59, 48, 0.14); color: #ff3b30; font-size: 26px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.lh-diff-head-pill { align-self: center; background: rgba(255, 255, 255, 0.85); color: #1c1c1e; font-size: 11px; font-weight: 500; padding: 2px 10px; border-radius: 999px; }
.lh-bot-pink-avatar { width: 40px; height: 40px; border-radius: 50%; background: #1d1d1f; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; object-fit: cover; flex-shrink: 0; }
.lh-bot-pink-avatar.is-sm { width: 36px; height: 36px; font-size: 13px; }
.lh-bc-history-card { padding: 10px 12px; border-radius: 14px; background: var(--canvas); cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.lh-bc-history-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lh-bc-thumb { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.lh-meter-fill.is-rollback-red { background: #ff3b30 !important; }
.lh-s3-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 248px 1fr; gap: 16px; overflow: hidden; }
.lh-s3-sidebar { padding: var(--sidebar-padding); display: flex; flex-direction: column; gap: 4px; background: var(--surface); border-radius: var(--radius-sidebar); }
.lh-s3-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 10px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.lh-s3-main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.lh-s3-toolbar-pill { position: relative; height: 48px; border-radius: 14px; border: 0 !important; background: var(--surface); overflow: hidden; flex-shrink: 0; }
.lh-s3-pill-layer { position: absolute; inset: 0; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; transition: transform 220ms var(--ease-apple), opacity 180ms ease; }
.lh-s3-pill-group { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.lh-s3-toolbar-pill .lh-dropdown, .lh-s3-toolbar-pill .lh-stepper, .lh-s3-toolbar-pill .lh-input { width: auto !important; flex-shrink: 0; }
.lh-s3-toolbar-pill .lh-dropdown-trigger, .lh-s3-toolbar-pill .lh-input { height: 32px; font-size: 13px; border-radius: 9px; background: var(--field); border: 0 !important; }
.lh-s3-toolbar-pill input[type="number"].lh-input { width: 54px !important; padding: 0 6px; }
.lh-s3-pill-layer.is-contextual { transform: translateY(100%); opacity: 0; pointer-events: none; background: var(--primary-soft); }
.lh-s3-toolbar-pill.has-selection .lh-s3-pill-layer.is-normal { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.lh-s3-toolbar-pill.has-selection .lh-s3-pill-layer.is-contextual { transform: translateY(0); opacity: 1; pointer-events: auto; }
.lh-s3-files-stage { flex: 1; min-height: 0; overflow-y: auto; position: relative; user-select: none; padding: 2px; display: flex; flex-direction: column; }
.lh-s3-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; flex: 1; }
.lh-s3-file-card { border-radius: 14px; border: 0; background: var(--surface); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.lh-s3-file-card.is-selected { background: rgba(0, 122, 255, 0.09); outline: 2px solid #007aff; outline-offset: -2px; }
.lh-s3-file-preview { width: 100%; height: 120px; object-fit: cover; background: #18181b; display: flex; align-items: center; justify-content: center; }
.lh-s3-lasso-box { position: fixed; z-index: 300; border: 1.5px solid #007aff; background: rgba(0, 122, 255, 0.14); border-radius: 4px; pointer-events: none; }
.lh-prem-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.lh-prem-emoji-tile { background: var(--surface); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.lh-prem-emoji-canvas-box { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.lh-attached-note-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 122, 255, 0.12); color: var(--primary); font-size: 12.5px; font-weight: 500; margin-bottom: 4px; width: fit-content; }
.lh-bot-steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.lh-bot-step-card { padding: 10px 12px; border-radius: 12px; background: var(--canvas); font-size: 12.5px; font-weight: 500; color: var(--secondary-text); display: flex; align-items: center; gap: 8px; }
.lh-bot-step-card.is-active { background: rgba(0, 122, 255, 0.12); color: var(--primary); }
.lh-bot-step-card.is-done { background: rgba(52, 199, 89, 0.14); color: #1b6b2b; }
