/* Раздел «Клининг» и «Осмотры и залоги»: стабильная шапка, плавная рулетка дат (0fr <-> 1fr) и раздельные тумблеры Хоуми */
.lh-erp-clean-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px; border-bottom: 1px solid var(--divider); background: var(--surface); flex-shrink: 0; flex-wrap: nowrap; }
.lh-erp-top-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lh-erp-date-context { display: flex; flex-direction: column; justify-content: center; gap: 1px; height: 36px; min-width: 146px; flex-shrink: 0; transition: opacity 150ms ease; }
.lh-erp-date-context.is-fading { opacity: 0.35; }
.lh-erp-date-context strong { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text); white-space: nowrap; }
.lh-erp-date-context span { font-size: 11.5px; line-height: 14px; color: var(--secondary-text); white-space: nowrap; }

.lh-erp-balls-collapse { display: grid; grid-template-columns: 1fr; opacity: 1; overflow: hidden; transition: grid-template-columns 260ms var(--ease-apple), opacity 180ms ease, margin 260ms var(--ease-apple); }
.lh-erp-balls-collapse.is-collapsed { grid-template-columns: 0fr; opacity: 0; margin-left: -10px; pointer-events: none; }
.lh-erp-balls-inner { min-width: 0; overflow: hidden; display: flex; align-items: center; }

.lh-erp-phase-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 14px; margin-bottom: 8px; background: var(--canvas); border-radius: 12px; flex-shrink: 0; }
.lh-erp-phase-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.lh-erp-color-legend { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--secondary-text); }
.lh-legend-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lh-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.lh-legend-dot.is-white { background: #ffffff; border: 1.5px solid #1d1d1f; }
.lh-legend-dot.is-blue { background: var(--primary); }
.lh-legend-dot.is-urgent { background: var(--semantic-err); }
.lh-legend-dot.is-warn { background: var(--semantic-warn); }
.lh-legend-dot.is-free { background: var(--semantic-ok); }

.lh-shift-table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 4px; }
.lh-shift-row { cursor: pointer; }
.lh-shift-live-timer { font-size: 12px; font-weight: 600; color: var(--semantic-ok); font-variant-numeric: tabular-nums; }

.lh-node-live-status { display: inline-flex; align-items: center; gap: 6px; background: transparent !important; border: 0 !important; padding: 0; font-size: 12.5px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.lh-node-live-status.is-waiting-black { color: var(--text); }
.lh-node-live-status.is-active-green { color: var(--text); }
.lh-node-live-status.is-active-green .lh-gspinner.is-green-spinner { color: var(--semantic-ok) !important; }
.lh-node-live-status.is-done-green { color: var(--text); }
.lh-node-live-status.is-done-green .material-symbols-outlined { color: var(--semantic-ok) !important; }
.lh-gspinner.is-green-spinner { color: var(--semantic-ok) !important; }
.lh-ctx-item.is-disabled-note { cursor: default; pointer-events: none; opacity: 0.72; }

/* Осмотры и залоги: ровные отступы и два раздельных тумблера Хоуми */
.lh-inspections-stack { display: flex; flex-direction: column; gap: 16px; padding-bottom: 12px; }
.lh-homie-control-strip { background: var(--canvas); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 14px; align-items: center; }
.lh-homie-switch-card { background: var(--surface); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lh-homie-switch-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lh-homie-switch-meta strong { font-size: 13.5px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }

.lh-homie-work-stream { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.lh-homie-stream-pair { display: flex; flex-direction: column; gap: 8px; }
.lh-homie-incoming-tile { background: var(--canvas); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: background-color 100ms ease; }
.lh-homie-incoming-tile:hover { background: var(--hover); }
.lh-homie-working-tile { background: var(--canvas); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--text); }
.lh-agent-verdict-line-tile { background: transparent !important; border: 0; border-left: 2.5px solid var(--text); padding: 4px 0 4px 14px; margin-left: 6px; display: flex; flex-direction: column; gap: 4px; }
.lh-homie-outcome-tag { font-size: 12.5px; color: var(--text); padding-top: 2px; }
.lh-verdict-agent-banner { background: var(--canvas); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.lh-verdict-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.lh-verdict-summary-tile { background: var(--canvas); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: background-color 100ms ease; }
.lh-verdict-summary-tile:hover { background: var(--hover); }
.lh-cand-metrics-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 4px; }
.lh-cand-metric-chip { background: var(--surface); border-radius: 8px; padding: 3px 9px; font-size: 11.5px; color: var(--secondary-text); }
.lh-cand-metric-chip strong { color: var(--text); font-weight: 600; }

.lh-date-balls-chain { display: inline-flex; align-items: center; gap: 0; background: var(--canvas); padding: 3px 6px; border-radius: var(--radius-pill); height: 36px; flex-shrink: 0; }
.lh-date-ball-link { width: 10px; height: 2px; background: var(--divider); flex-shrink: 0; }
.lh-date-ball { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font-family: inherit; flex-shrink: 0; position: relative; transition: background-color 110ms ease; }
.lh-date-ball-num { font-size: 11px; line-height: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lh-date-ball-wd { font-size: 8px; line-height: 8px; font-weight: 600; opacity: 0.8; }
.lh-date-ball[data-day-offset="0"] { background: var(--surface); color: var(--text); }
.lh-date-ball[data-day-offset="1"] { background: var(--primary-soft); color: var(--semantic-info); }
.lh-date-ball[data-day-offset="2"], .lh-date-ball[data-day-offset="3"], .lh-date-ball[data-day-offset="4"], .lh-date-ball[data-day-offset="5"] { background: transparent; color: var(--secondary-text); }
.lh-date-ball:hover { background: var(--hover); color: var(--text); }
.lh-date-ball.is-selected { background: var(--accent-primary) !important; color: var(--surface) !important; z-index: 2; }

.lh-homie-chip, .lh-homie-managed-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; line-height: 1; }
.lh-homie-mini-orb { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: visible; }
.lh-homie-mini-orb .lh-mascot-thought-cloud, .lh-homie-mini-orb .lh-mascot-zzz { display: none !important; }
.lh-btn-primary .lh-homie-mini-orb svg { filter: invert(1); }
.is-homie-locked { opacity: 0.52 !important; filter: grayscale(1); cursor: not-allowed !important; user-select: none; }
.is-homie-locked * { pointer-events: none !important; }

@keyframes lhPossibleReplenishPulse { 0%, 100% { background-color: #ffffff; color: #86868b; } 50% { background-color: #e6e7ee; color: #1d1d1f; } }
.lh-graph-pulsing-placeholder { min-height: 64px; border-radius: 14px; padding: 14px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 500; animation: lhPossibleReplenishPulse 2.4s ease-in-out infinite; }
@keyframes lhCardDoubleBlackPulse { 0%, 50%, 100% { outline: 0 solid transparent; } 25%, 75% { outline: 2px solid #1d1d1f; } }

.lh-erp-graph-stage { flex: 1; min-height: 0; height: 100%; display: flex; flex-direction: column; padding: 8px 14px 12px; overflow: hidden; background: var(--surface); }
.lh-erp-graph-viewport { position: relative; flex: 1; min-height: 0; height: 100%; border-radius: 16px; background-color: var(--canvas); border: 1px solid var(--divider); overflow: hidden; cursor: grab; user-select: none; }
.lh-erp-graph-viewport:active { cursor: grabbing; }
.lh-erp-graph-board { position: relative; width: 100%; min-width: 960px; min-height: 100%; padding: 20px 32px 96px; display: grid; grid-template-columns: 416px 400px; justify-content: space-between; gap: 130px; transform-origin: 0 0; will-change: transform; }
.lh-erp-graph-board.is-camera-focusing { transition: transform 360ms var(--ease-apple); }
.lh-erp-graph-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; overflow: visible; }
.lh-erp-graph-col { position: relative; z-index: 5; display: flex; flex-direction: column; gap: 10px; }
.lh-graph-col-head { background: var(--surface); border: 1px solid var(--divider); padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lh-graph-apt-node, .lh-graph-cleaner-node { position: relative; background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; padding: 12px 15px; display: flex; flex-direction: column; gap: 7px; }
.lh-graph-apt-node.is-focus-highlighted { animation: lhCardDoubleBlackPulse 1.85s var(--ease-apple) forwards; z-index: 15; }
.lh-graph-apt-title-row { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.lh-graph-time-chip { background: var(--field); color: var(--text); font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 7px; font-variant-numeric: tabular-nums; flex-shrink: 0; white-space: nowrap; }
.lh-graph-apt-node.is-urgent-node { background: #fff8f8; } .lh-graph-apt-node.is-early-node { background: #f2fdf5; }
.lh-graph-cleaner-node.is-drop-target { outline: 2px dashed var(--text); background: var(--canvas); } .lh-graph-cleaner-node.is-conflict-node { background: #fff5f5; }
.lh-erp-floating-dock { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; background: var(--surface); border: 1px solid var(--divider); padding: 5px 8px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px; }
.lh-erp-zoom-pill { position: absolute; right: 16px; bottom: 16px; z-index: 30; background: var(--surface); border: 1px solid var(--divider); padding: 5px 6px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 4px; }
.lh-dock-countdown-pill, .lh-dock-locked-pill { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lh-turnover-bot.has-out-port-pad { padding-right: 16px; }
.lh-graph-port { width: 16px; height: 16px; border-radius: 50%; background: var(--accent-primary); border: 3px solid var(--surface); cursor: crosshair; display: inline-block; flex-shrink: 0; z-index: 8; }
.lh-graph-port.is-out-port { position: absolute; right: -8px; bottom: 14px; }
.lh-graph-port.is-in-port { position: absolute; left: -8px; top: 24px; }
.lh-graph-slots-list { display: flex; flex-direction: column; gap: 5px; }
.lh-graph-slot-pill { background: var(--canvas); border-radius: 10px; padding: 6px 10px; font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lh-graph-slot-pill.is-conflict { background: var(--semantic-err-bg); color: var(--semantic-err); }
@keyframes lhWireFlowAnim { to { stroke-dashoffset: -28; } }
.lh-graph-wire-bg { fill: none; stroke: #d8d8e0; stroke-width: 4; stroke-linecap: round; }
.lh-graph-wire-flow { fill: none; stroke: var(--accent-primary); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 8 6; animation: lhWireFlowAnim 1.1s linear infinite; }
.lh-graph-wire-grp.is-tight .lh-graph-wire-flow { stroke: var(--semantic-warn); } .lh-graph-wire-grp.is-early .lh-graph-wire-flow { stroke: var(--semantic-ok); } .lh-graph-wire-grp.is-conflict .lh-graph-wire-flow { stroke: var(--semantic-err); }
.lh-wire-end-handle { fill: var(--accent-primary); stroke: var(--surface); stroke-width: 2.5; pointer-events: all; cursor: grab; }
.lh-wire-badge-bg { fill: var(--surface); stroke: var(--divider); stroke-width: 1; }
.lh-wire-badge-txt { font-size: 10.5px; font-weight: 600; fill: var(--text); font-family: inherit; }

.lh-smart-cand-card { background: var(--canvas); border-radius: 14px; padding: 12px 15px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.lh-smart-cand-card:hover { background: var(--hover); }
.lh-smart-cand-card.is-selected { background: var(--selected); }
.lh-smart-candidates-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.lh-turnover-top, .lh-turnover-mid, .lh-turnover-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lh-live-stopwatch-banner { background: var(--accent-primary); color: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lh-live-stopwatch-val { font-size: 20px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lh-sla-math-box { background: var(--canvas); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.lh-guest-tiles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lh-guest-turnover-tile { background: var(--surface); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.lh-guest-turnover-tile:hover { background: var(--hover); }
.lh-guest-tile-lead { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.lh-guest-tile-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-primary); color: var(--surface); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lh-guest-tile-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lh-guest-tile-meta strong { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
