/* LIGHTHOUSE — the Package Rail + setup/edit modals. Every rule is prefixed
   .lh- so nothing leaks. Tokens match Mission Control (.mc-*). */
.lh-rail{display:flex;flex-direction:column;min-height:0;height:100%;font-family:"Segoe UI",system-ui,Arial,sans-serif;color:#22303f;font-size:13px}
.lh-sec{padding:12px 14px 6px;font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#64748b;font-weight:800;flex:0 0 auto}
.lh-loading,.lh-log-empty{padding:12px 14px;color:#94a3b8;font-size:12.5px}
.lh-err{margin:6px 14px;padding:8px 10px;border-radius:9px;background:#fde8e8;border:1px solid #fca5a5;color:#7b1e1e;font-size:12.5px;display:flex;gap:8px;align-items:flex-start}
.lh-err button{margin-left:auto;border:0;background:transparent;color:#7b1e1e;font-size:15px;cursor:pointer;line-height:1}
.lh-empty{margin:4px 14px;padding:14px;border:1px dashed #cbd5e1;border-radius:12px;background:#fbfcfe;text-align:center}
.lh-empty.lh-empty-quiet{border:0;background:transparent;padding:0;margin:0;text-align:left}
.lh-empty p{margin:0 0 10px;color:#5b6678}
.lh-empty small{display:block;margin-top:8px;color:#94a3b8;font-size:11.5px}
.lh-btn{border:1px solid #dbe3ee;background:#fff;border-radius:9px;padding:7px 11px;font-weight:750;font-size:12.5px;cursor:pointer;color:#22303f;font-family:inherit}
.lh-btn:disabled{cursor:not-allowed;opacity:.85}
.lh-btn.lh-primary{background:#2563eb;border-color:#2563eb;color:#fff}
.lh-btn.lh-quiet{background:transparent}
.lh-btn.lh-fax{background:#17233b;border-color:#17233b;color:#fff}
.lh-btn.lh-fax:disabled{background:#cbd5e1;border-color:#cbd5e1;color:#475569}
.lh-mini{border:1px solid #dbe3ee;background:#fff;border-radius:7px;padding:3px 8px;font-size:11px;font-weight:750;cursor:pointer;color:#22303f;white-space:nowrap;font-family:inherit}
.lh-mini.lh-becker{border-color:#c7d7fe;background:#e8f0fe;color:#1e40af}
.lh-mini.danger{border-color:#f3b9b9;color:#b91c1c}
.lh-mini:disabled{opacity:.4;cursor:not-allowed}
/* TEMPLATE EDITOR (2026-08-23) */
.lh-tpl-items{display:flex;flex-direction:column;gap:6px}
.lh-tpl-item-row{display:grid;grid-template-columns:auto auto 1fr auto auto;gap:6px;align-items:center}
.lh-tpl-item-row input[type=text]{font:inherit;font-size:12.5px;border:1px solid #dbe3ee;border-radius:8px;padding:6px 9px;background:#fff;color:#22303f}
.lh-tpl-item-row select{font:inherit;font-size:12px;border:1px solid #dbe3ee;border-radius:8px;padding:6px 7px;background:#fff;color:#22303f}
.lh-link{border:0;background:transparent;padding:0;font:inherit;font-size:inherit;color:#2563eb;cursor:pointer;text-decoration:underline}
.lh-link.danger{color:#b91c1c}
.lh-link:disabled{color:#94a3b8;cursor:not-allowed;text-decoration:none}
/* the package */
.lh-pkg{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;border-top:1px solid #e5eaf0}
.lh-head{padding:10px 14px 8px;border-bottom:1px solid #e5eaf0;background:#fbfcfe;flex:0 0 auto}
.lh-t{display:flex;align-items:center;gap:8px;font-weight:800;font-size:13px}
.lh-beacon{width:10px;height:10px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 3px #e2e8f0;flex:0 0 auto}
.lh-beacon.amber{background:#f59e0b;box-shadow:0 0 0 3px #fde68a}
.lh-beacon.red{background:#dc2626;box-shadow:0 0 0 3px #fecaca}
.lh-beacon.green{background:#16a34a;box-shadow:0 0 0 3px #bbf7d0}
.lh-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lh-count{margin-left:auto;font-size:11.5px;font-weight:800;padding:2px 8px;border-radius:999px;background:#eef2f7;color:#334155;white-space:nowrap}
.lh-count.red{background:#7b1e1e;color:#fff}
.lh-sub{font-size:12px;color:#5b6678;margin-top:3px}
.lh-sub b{color:#22303f}
.lh-door{margin:8px 10px 0;padding:8px 10px;border-radius:9px;background:#fff7ed;border:1px solid #fdba74;color:#9a3412;font-size:12px;display:flex;gap:8px;align-items:flex-start;flex:0 0 auto}
.lh-door b{white-space:nowrap}
.lh-door span{flex:1}
.lh-door.red{background:#fde8e8;border-color:#fca5a5;color:#7b1e1e}
.lh-door.done{background:#eef2f7;border-color:#e5eaf0;color:#64748b}
.lh-items{list-style:none;margin:0;padding:6px 8px;overflow:auto;flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.lh-items li{display:grid;grid-template-columns:18px 1fr auto;gap:8px;align-items:start;padding:7px 6px;border-bottom:1px dashed #e5eaf0;font-size:12.5px}
.lh-items li:last-child{border-bottom:0}
.lh-items li.optional b{font-weight:650;color:#475569}
.lh-box{width:16px;height:16px;border-radius:5px;border:2px solid #94a3b8;margin-top:1px;display:grid;place-items:center;font-size:11px;font-weight:900;color:#fff;background:#fff;padding:0;cursor:pointer;line-height:1}
.lh-box:disabled{cursor:default}
.lh-box.done{background:#334155;border-color:#334155}
.lh-box.becker{border-color:#2563eb}
.lh-box.becker.done{background:#2563eb;border-color:#2563eb}
.lh-box.waived{background:#94a3b8;border-color:#94a3b8}
.lh-box.miss{border-color:#dc2626}
.lh-box.sugg{border-color:#f59e0b;background:#fff7ed}
.lh-items b{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lh-items .lh-m{color:#5b6678;font-size:11.5px;display:block}
.lh-who{font-size:10.5px;font-weight:800;padding:2px 7px;border-radius:999px;white-space:nowrap;letter-spacing:.03em;background:#eef2f7;color:#334155}
.lh-who.becker{background:#e8f0fe;color:#1e40af}
.lh-who.patient{background:#f3e8ff;color:#6b21a8}
.lh-who.outside{background:#ecfeff;color:#155e75}
.lh-who.watch{background:#fff4e0;color:#b45309}
.lh-dest{padding:8px 12px 10px;border-top:1px solid #e5eaf0;background:#fbfcfe;display:grid;gap:6px;flex:0 0 auto}
.lh-gate{font-size:12px;color:#5b6678;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.lh-gate b{color:#22303f}
.lh-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.lh-row .lh-btn{padding:6px 10px;font-size:12px}
.lh-why{font-size:11.5px;color:#5b6678}
.lh-busy{font-size:11.5px;color:#2563eb}
.lh-foot{font-size:11px;color:#94a3b8;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.lh-id{font-family:ui-monospace,Consolas,monospace;font-size:10.5px}
/* the log (right column) */
.lh-said{list-style:none;margin:0 0 0 6px;padding:0;border-left:2px solid #dbe3ee}
.lh-said li{position:relative;padding:0 0 12px 16px;font-size:12.5px}
.lh-said li::before{content:"";position:absolute;left:-7px;top:4px;width:10px;height:10px;border-radius:50%;background:#94a3b8;border:2px solid #fff}
.lh-said li.red::before{background:#dc2626}.lh-said li.ok::before{background:#334155}
.lh-said .lh-to{display:block;font-size:10.5px;font-weight:800;color:#64748b;letter-spacing:.04em;margin-bottom:1px}
/* modals (setup / edit) */
.lh-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.42);display:flex;align-items:center;justify-content:center;padding:16px;z-index:1300}
.lh-modal{width:min(940px,100%);max-height:calc(100vh - 32px);background:#fff;border-radius:16px;box-shadow:0 30px 80px rgba(2,6,23,.45);display:grid;grid-template-rows:auto auto 1fr auto auto;overflow:hidden;font-family:"Segoe UI",system-ui,Arial,sans-serif;color:#22303f;font-size:13.5px}
.lh-modal.small{width:min(620px,100%);grid-template-rows:auto 1fr auto}
.lh-mhead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 22px;border-bottom:1px solid #dbe3ee;background:#fbfcfe}
.lh-mhead h1{margin:0;font-size:17px}
.lh-line{color:#5b6678;font-size:12.5px;margin-top:2px}
.lh-x{border:1px solid #dbe3ee;background:#fff;border-radius:9px;width:34px;height:34px;font-size:18px;cursor:pointer;line-height:1;flex:0 0 auto}
.lh-tpl{display:flex;gap:8px;padding:10px 22px;border-bottom:1px solid #dbe3ee;background:#fbfcfe;align-items:center;font-size:12.5px;color:#5b6678;flex-wrap:wrap}
.lh-pill{font:inherit;font-weight:800;font-size:12px;border:1px solid #dbe3ee;border-radius:999px;padding:5px 12px;background:#fff;color:#22303f;cursor:pointer}
.lh-pill.on{background:#17233b;color:#fff;border-color:#17233b}
form.lh-setup{display:grid;grid-template-columns:1fr 1fr;gap:12px 26px;padding:14px 22px;overflow:auto;min-height:0}
form.lh-setup.one{grid-template-columns:1fr}
.lh-q{display:grid;gap:5px;min-width:0}
.lh-q label{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#64748b}
.lh-q label small{font-weight:600;text-transform:none;letter-spacing:0;color:#94a3b8;margin-left:6px}
.lh-q input[type=text],.lh-q input[type=date],.lh-q select,.lh-q textarea{font:inherit;font-size:13px;border:1px solid #dbe3ee;border-radius:9px;padding:7px 10px;background:#fff;color:#22303f;width:100%;min-width:0}
.lh-hint{font-size:11.5px;color:#5b6678}
.lh-hint b{color:#22303f}
.lh-row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lh-picks{display:flex;gap:6px;flex-wrap:wrap}
.lh-picks button,.lh-picks label{font:inherit;font-size:12px;font-weight:700;border:1px solid #dbe3ee;border-radius:999px;padding:4px 10px;background:#fff;color:#22303f;cursor:pointer;display:inline-flex;gap:6px;align-items:center;letter-spacing:0;text-transform:none}
.lh-picks .on{background:#e8f0fe;border-color:#c7d7fe;color:#1e40af}
.lh-picks button:disabled{opacity:.5;cursor:not-allowed}
.lh-picks input{accent-color:#2563eb;margin:0}
.lh-yesno{display:flex;gap:6px;flex-wrap:wrap}
.lh-yesno button{font:inherit;font-size:12.5px;font-weight:750;border:1px solid #dbe3ee;border-radius:9px;padding:7px 12px;background:#fff;cursor:pointer;color:#22303f}
.lh-yesno button.on{background:#e8f0fe;border-color:#c7d7fe;color:#1e40af}
.lh-yesno button.on.no{background:#fff7ed;border-color:#fdba74;color:#9a3412}
.lh-checks{display:grid;gap:5px}
.lh-checks label{text-transform:none;letter-spacing:0;font-weight:600;color:#22303f;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;font-size:12.5px;padding:5px 8px;border:1px solid #dbe3ee;border-radius:8px;background:#fff}
.lh-checks input{accent-color:#2563eb}
.lh-typeahead{position:relative}
.lh-drop{position:absolute;left:0;right:0;top:100%;margin-top:4px;background:#fff;border:1px solid #dbe3ee;border-radius:9px;box-shadow:0 12px 30px rgba(2,6,23,.15);z-index:2;font-size:12.5px;max-height:240px;overflow:auto}
.lh-drop div{padding:7px 10px;border-bottom:1px solid #dbe3ee;cursor:pointer}
.lh-drop div:hover{background:#f5f8ff}
.lh-drop div:last-child{border-bottom:0}
.lh-drop b{display:block}
.lh-drop small{color:#5b6678}
.lh-mfoot{display:flex;gap:8px;align-items:center;padding:12px 22px;border-top:1px solid #dbe3ee;background:#fbfcfe}
.lh-mfoot .lh-btn{white-space:nowrap}
.lh-spacer{flex:1}
.lh-sum{font-size:12.5px;color:#5b6678}
.lh-sum b{color:#22303f}
@media (max-width:760px){form.lh-setup{grid-template-columns:1fr}}

/* dashboard ladder lines (step 5) */
[data-lh-alerts]{display:block}
.lh-alert{display:grid;grid-template-columns:auto 1fr auto;gap:8px 10px;align-items:start;padding:9px 12px;border-radius:10px;font-size:12.5px;margin:0 0 8px;font-family:"Segoe UI",system-ui,Arial,sans-serif}
.lh-alert .b{width:9px;height:9px;border-radius:50%;margin-top:5px;background:#94a3b8}
.lh-alert.quiet{background:#f8fafc;border:1px solid #dbe3ee;color:#5b6678}
.lh-alert.red{background:#7b1e1e;color:#fff;border:1px solid #7b1e1e}
.lh-alert.red .b{background:#fff}
.lh-alert .t b{color:inherit}
.lh-alert .acts{white-space:nowrap;font-size:11.5px}
.lh-alert .acts .lh-link{color:inherit;font-weight:800}
.lh-callsheet{grid-column:1 / -1;background:#fff5f5;color:#17233b;border:1px solid #fca5a5;border-radius:9px;padding:8px 12px}
.lh-callsheet h4{margin:0 0 6px;font-size:11.5px;color:#7b1e1e;letter-spacing:.06em;text-transform:uppercase}
.lh-callsheet ol{margin:0;padding-left:18px}
.lh-callsheet li{margin-bottom:4px}
.lh-callsheet li.called{color:#5b6678}
.lh-callsheet .num{font-weight:800}
.lh-callsheet .lh-link{color:#2563eb}
.lh-callsheet .lh-row{margin-top:6px}

/* QUIET MODE (David's final pick) */
.lh-quiet-ok{margin:6px 14px 4px;padding:10px 12px;border-radius:10px;background:#f8fafc;border:1px solid #e5eaf0;color:#334155;font-weight:700;font-size:13px}
.lh-empty .lh-link{display:block;margin:6px 14px 10px;text-align:left;font-size:12px}
.lh-pkg-quiet{border-top:0}
.lh-quiet-line{display:flex;align-items:center;gap:10px;margin:6px 14px;padding:10px 12px;border-radius:10px;border:1px solid #e5eaf0;background:#f8fafc;color:#22303f;font-size:13px}
.lh-quiet-line.wait{background:#fbfcfe}
.lh-quiet-line.ok{color:#334155}
.lh-quiet-line span{flex:1}

/* filed documents on a rail item — the global PDF icon, scaled down (never up) */
.lh-docs{display:inline-flex;gap:4px;vertical-align:middle;margin-left:6px}
.lh-docs .pvt3-pdf{display:inline-block;line-height:0}
.lh-doc-name{font-size:10px;color:#475569;margin-left:6px}
.lh-doc-missing{font-size:10px;color:#b45309;margin-left:6px}
