/* Estimates & guidance tab (public/lib/estimates.js). Compact, tabular, uses the shared tokens. */
.es-tab{display:flex;flex-direction:column;gap:16px}
.es-tab .es-stats{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.es-tab .es-stats .d{font-size:11px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.es-v{all:unset;cursor:pointer;font-variant-numeric:tabular-nums;border-radius:3px;text-decoration:underline dotted var(--faint);text-underline-offset:3px}
.es-v:hover{color:var(--accent);text-decoration-color:var(--accent)}
.es-v:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.es-stats .es-v.v{display:block;font-size:16px;font-weight:600;margin-top:2px}
.es-strong{font-weight:600}
.es-sm{font-size:11px}
.es-n{font-size:11px;margin-left:6px}
.es-prov-chip{font-size:11px;color:var(--faint);white-space:nowrap}
.es-tab table.t td,.es-tab table.t th{padding:6px 9px}
.es-tab table.t{font-size:12.5px}
.es-tab .nowrap{white-space:nowrap}
.es-range{min-width:150px}
.es-range-top{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.es-track{position:relative;height:4px;border-radius:2px;background:var(--sunk);margin:4px 0 2px}
.es-track i{position:absolute;top:-2px;width:8px;height:8px;border-radius:50%;background:var(--accent)}
.es-range-lh{display:flex;justify-content:space-between;font-size:10.5px;color:var(--faint)}
.es-key{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-top:6px}
.es-key i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:4px;vertical-align:-1px}
.es-empty{font-size:12.5px;color:var(--muted);background:var(--sunk);border-radius:8px;padding:12px 14px;line-height:1.45}
.es-firm{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;max-width:200px}
.es-firm span{overflow:hidden;text-overflow:ellipsis}
.es-logo{display:inline-block;flex:none;border-radius:4px;object-fit:contain;background:#fff;box-shadow:0 0 0 1px var(--line);vertical-align:middle}
.es-logo.mono{display:inline-grid;place-items:center;background:var(--sunk);color:var(--muted);font-weight:700;box-shadow:0 0 0 1px var(--line);line-height:1}
.es-firm>span{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.es-fn{font-weight:500;overflow:hidden;text-overflow:ellipsis}
.es-an{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.es-act-wrap{max-height:640px;overflow:auto}
.es-act-wrap thead th{position:sticky;top:0;background:var(--surface);z-index:1}
.es-rt{white-space:nowrap}
.es-kind{display:inline-block;font-size:11px;font-weight:600;padding:1px 6px;border-radius:4px;background:var(--sunk);color:var(--muted);white-space:nowrap}
.es-kind.k-upgrade{background:var(--up-soft);color:var(--up)}
.es-kind.k-downgrade{background:var(--down-soft);color:var(--down)}
.es-kind.k-initiate{background:var(--accent-soft);color:var(--accent)}
.es-kind.k-drop{background:var(--warn-soft);color:var(--warn)}
.es-mv{font-size:11px}
.es-act tbody tr:hover td{background:var(--sunk)}
.es-kv{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;padding-top:6px;padding-bottom:6px}
.es-kv>div{display:flex;gap:6px;align-items:baseline}
.es-rbar{display:flex;height:14px;border-radius:7px;overflow:hidden;gap:1px}
.es-rseg{border:0;padding:0;color:#fff;font-size:10px;font-weight:700;cursor:pointer;min-width:6px}
.es-sv ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:7px;font-size:13px;line-height:1.45}
.es-sv .chip{height:19px;font-size:10.5px;margin-left:3px}
.es-sv-h{margin:0 0 8px;font-weight:600;font-size:13px}
.es-gtl{display:flex;flex-direction:column;gap:8px;max-height:520px;overflow:auto}
.es-gi{border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:var(--surface)}
.es-gi.wd{opacity:.75}
.es-gi-h{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12.5px}
.es-gi-h .chip{height:18px;font-size:10.5px}
.es-quote{all:unset;display:block;cursor:pointer;margin-top:5px;font-size:12.5px;line-height:1.45;color:var(--ink);font-family:"Instrument Serif",Georgia,serif;font-size:14px}
.es-quote:hover{background:#fff6b3}
.es-cred{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--line)}
.es-cred>div{padding:10px 16px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.es-cred .l{font-size:11.5px;color:var(--muted)} .es-cred .v{font-size:16px;font-weight:600} .es-cred .d{font-size:11px;color:var(--faint)}
.es-foot{font-size:11.5px;color:var(--faint);padding:2px 4px 8px;line-height:1.5}
.es-prov{line-height:1.5}
.es-prov .es-caveat{margin-top:4px;color:var(--muted)}
.es-rec-wrap{margin-top:12px}
table.es-rec th{text-transform:none;letter-spacing:0;font-size:12px;color:var(--muted);width:42%;vertical-align:top;white-space:normal}
table.es-rec td{font-size:12.5px;word-break:break-word}
table.es-rec tr.es-hit td,table.es-rec tr.es-hit th{background:#ffe766;color:#1b1b1b}
.es-raw{margin-top:12px;font-size:12px}
.es-raw pre{max-height:320px;overflow:auto;background:var(--sunk);padding:10px;border-radius:8px;font-size:11px}
@media (max-width:860px){
  .es-tab .grid.g64,.es-tab .grid.g2{grid-template-columns:minmax(0,1fr)}
  .es-cred{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
