/* Hermes ledger: self-contained inside the TradeLens Intel page. */
.hld {
  --hld-page: #0e1418;
  --hld-card: #151d22;
  --hld-card-2: #11181c;
  --hld-well: #1b2429;
  --hld-ink: #e9eef1;
  --hld-ink-2: #b8c3ca;
  --hld-ink-3: #91a0a9;
  --hld-line: rgba(233, 238, 241, .14);
  --hld-line-soft: rgba(233, 238, 241, .08);
  --hld-accent: #f0b45d;
  --hld-accent-wash: rgba(240, 180, 93, .13);
  --hld-bull: #4dd9ae;
  --hld-bull-wash: rgba(77, 217, 174, .13);
  --hld-bear: #ff806c;
  --hld-bear-wash: rgba(255, 128, 108, .13);
  --hld-flat: #aebcc5;
  --hld-flat-wash: rgba(174, 188, 197, .13);
  --hld-track: #27343b;
  --hld-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 32px -20px rgba(0, 0, 0, .8);
  color: var(--hld-ink);
  background: var(--hld-page);
  border: 1px solid var(--hld-line);
  border-radius: 15px;
  padding: clamp(16px, 2.5vw, 30px);
  margin-block: 18px 32px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font: 400 14px/1.52 Inter, "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color-scheme: dark;
  overflow: clip;
  isolation: isolate;
}
.hld, .hld * { box-sizing: border-box; }
.hld :where(h1, h2, h3, p, ul, ol) { margin-top: 0; }
.hld :where(h1, h2, h3) { color: var(--hld-ink); text-wrap: balance; }
.hld :where(p, li) { overflow-wrap: anywhere; }
.hld :where(a) { color: #a7d5f6; text-decoration-color: rgba(167, 213, 246, .45); text-underline-offset: 3px; }
.hld :where(a:hover) { color: #d0ebff; text-decoration-color: currentColor; }
.hld :where(button, select) { font: inherit; }
.hld :where(button, a, select, summary):focus-visible { outline: 2px solid var(--hld-accent); outline-offset: 3px; }
.hld [hidden] { display: none !important; }

.hld-mast {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--hld-line);
}
.hld-kicker, .hld-label {
  color: var(--hld-accent);
  font: 700 11px/1.2 "Arial Narrow", Inter, system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hld-title {
  margin: 5px 0 3px;
  font: 700 clamp(27px, 3vw, 38px)/1.03 "Arial Narrow", Inter, system-ui, sans-serif;
  letter-spacing: -.025em;
}
.hld-subtitle { margin: 0; color: var(--hld-ink-2); max-width: 68ch; }
.hld-meta { color: var(--hld-ink-3); font-size: 12px; }
.hld-mono, .hld-call-score, .hld-metric-value, .hld-factor-value {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.hld-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hld-controls select, .hld-select {
  max-width: 100%;
  min-height: 36px;
  border: 1px solid var(--hld-line);
  border-radius: 6px;
  background: var(--hld-card);
  padding: 7px 10px;
  color: var(--hld-ink);
  cursor: pointer;
}
.hld-tabs {
  display: flex;
  gap: 5px;
  max-width: 100%;
  margin: 15px 0 18px;
  padding: 3px;
  border: 1px solid var(--hld-line);
  border-radius: 8px;
  background: var(--hld-card-2);
  overflow-x: auto;
  scrollbar-width: thin;
}
.hld-tab {
  flex: 0 0 auto;
  min-height: 35px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--hld-ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.hld-tab:hover { background: var(--hld-well); color: var(--hld-ink); }
.hld-tab.is-active, .hld-tab[aria-selected="true"] {
  color: var(--hld-ink);
  background: var(--hld-well);
  border-color: var(--hld-line);
  box-shadow: inset 0 -2px 0 var(--hld-accent);
}

.hld-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: stretch; }
.hld-call, .hld-card {
  min-width: 0;
  border: 1px solid var(--hld-line);
  border-radius: 11px;
  background: var(--hld-card);
  box-shadow: var(--hld-shadow);
}
.hld-call { --hld-tone: var(--hld-flat); position: relative; overflow: hidden; padding: 18px 20px 17px; }
.hld-call::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--hld-tone); }
.hld-call.is-bull, .hld-call[data-tone="bull"] { --hld-tone: var(--hld-bull); }
.hld-call.is-bear, .hld-call[data-tone="bear"] { --hld-tone: var(--hld-bear); }
.hld-call.is-flat, .hld-call[data-tone="flat"] { --hld-tone: var(--hld-flat); }
.hld-call.is-no-call, .hld-call[data-tone="no-call"] { --hld-tone: var(--hld-accent); }
.hld-call-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hld-call-label { font: 700 21px/1.1 "Arial Narrow", Inter, system-ui, sans-serif; letter-spacing: -.015em; }
.hld-call-label small { display: block; margin-top: 4px; font: 400 12px/1.3 Inter, system-ui, sans-serif; color: var(--hld-ink-3); }
.hld-call-score { color: var(--hld-tone); font-size: clamp(38px, 5vw, 58px); font-weight: 650; line-height: .95; letter-spacing: -.05em; white-space: nowrap; }
.hld-call-copy { margin: 12px 0 0; color: var(--hld-ink-2); font-size: 13px; line-height: 1.55; }
.hld-call-rail { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; margin-top: 17px; }
.hld-call-rail i { display: block; height: 7px; border-radius: 2px; background: var(--hld-track); }
.hld-call-rail i.is-active { background: var(--hld-tone); box-shadow: 0 0 0 1px var(--hld-tone); }
.hld-call-axis { display: flex; justify-content: space-between; margin-top: 5px; color: var(--hld-ink-3); font-size: 10px; }
.hld-call-footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hld-line-soft); }
.hld-card { padding: 17px 19px; }
.hld-card-title { margin: 0 0 9px; font: 700 17px/1.2 "Arial Narrow", Inter, system-ui, sans-serif; letter-spacing: .01em; }
.hld-card p:last-child { margin-bottom: 0; }
.hld-hero > .hld-card { display: flex; flex-direction: column; justify-content: center; background: radial-gradient(110% 130% at 100% 0%, var(--hld-accent-wash), transparent 65%), var(--hld-card); }
.hld-hero-headline { margin: 0 0 7px; font: 700 clamp(18px, 2vw, 25px)/1.14 "Arial Narrow", Inter, system-ui, sans-serif; }
.hld-hero-summary { margin: 0; color: var(--hld-ink-2); font-size: 14px; line-height: 1.55; }

.hld-chip, .hld-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--hld-line);
  border-radius: 999px;
  background: var(--hld-well);
  color: var(--hld-ink-2);
  font: 650 10px/1.3 Inter, system-ui, sans-serif;
  letter-spacing: .025em;
  white-space: normal;
}
.hld-chip.is-bull, .hld-status.is-bull, .hld .is-bull.hld-tone { color: var(--hld-bull); background: var(--hld-bull-wash); border-color: rgba(77, 217, 174, .28); }
.hld-chip.is-bear, .hld-status.is-bear, .hld .is-bear.hld-tone { color: var(--hld-bear); background: var(--hld-bear-wash); border-color: rgba(255, 128, 108, .28); }
.hld-chip.is-flat, .hld-status.is-flat { color: var(--hld-flat); background: var(--hld-flat-wash); }
.hld-chip.is-no-call, .hld-status.is-no-call, .hld-chip.is-pending, .hld-status.is-pending { color: var(--hld-accent); background: var(--hld-accent-wash); border-color: rgba(240, 180, 93, .28); }

.hld-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hld-section { margin-top: 25px; min-width: 0; }
.hld-section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; margin-bottom: 10px; }
.hld-section-head h2, .hld-section-title { margin: 0; font: 700 clamp(18px, 2vw, 22px)/1.15 "Arial Narrow", Inter, system-ui, sans-serif; }
.hld-section-head > span, .hld-section-hint { color: var(--hld-ink-3); font-size: 12px; }
.hld-section-head .hld-kicker { margin: 0; }
.hld-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--hld-line); border-radius: 10px; background: var(--hld-line); overflow: hidden; }
.hld-metric { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 95px; padding: 13px 15px; background: var(--hld-card); }
.hld-metric-value { color: var(--hld-ink); font-size: clamp(19px, 2.3vw, 29px); font-weight: 650; line-height: 1.15; overflow-wrap: anywhere; }
.hld-metric-value.is-bull { color: var(--hld-bull); }
.hld-metric-value.is-bear { color: var(--hld-bear); }
.hld-metric-label { margin-top: 5px; color: var(--hld-ink-2); font-size: 11px; line-height: 1.35; }
.hld-metric small { margin-top: 3px; color: var(--hld-ink-3); font-size: 10px; }

.hld-factor-list { display: grid; gap: 11px; }
.hld-factor { display: grid; grid-template-columns: minmax(85px, 145px) minmax(0, 1fr) 40px; align-items: center; gap: 9px; min-width: 0; }
.hld-factor-name { min-width: 0; color: var(--hld-ink-2); font-size: 12px; overflow-wrap: anywhere; }
.hld-factor-name small { display: block; color: var(--hld-ink-3); font-size: 10px; }
.hld-factor-bar { position: relative; min-width: 0; height: 9px; border-radius: 5px; background: var(--hld-track); overflow: hidden; }
.hld-factor-bar::after { content: ""; position: absolute; inset: -1px auto -1px 50%; width: 1px; background: var(--hld-ink-3); opacity: .8; }
.hld-factor-fill { position: absolute; inset: 0 auto 0 50%; width: 0; max-width: 50%; border-radius: 5px; background: var(--hld-bull); }
.hld-factor.is-bear .hld-factor-fill, .hld-factor-fill.is-bear { inset: 0 50% 0 auto; background: var(--hld-bear); }
.hld-factor.is-flat .hld-factor-fill, .hld-factor-fill.is-flat { background: var(--hld-flat); }
.hld-factor-value { text-align: right; color: var(--hld-ink-2); font-size: 12px; white-space: nowrap; }
.hld-factor.is-missing .hld-factor-name, .hld-factor.is-missing .hld-factor-value { color: var(--hld-ink-3); }

.hld-tape { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr)); gap: 1px; border: 1px solid var(--hld-line); border-radius: 10px; background: var(--hld-line); overflow: hidden; }
.hld-tape-item { min-width: 0; padding: 10px 12px; background: var(--hld-card); }
.hld-tape-item strong { display: block; margin: 3px 0; color: var(--hld-ink); font: 650 15px/1.2 "JetBrains Mono", ui-monospace, monospace; overflow-wrap: anywhere; }
.hld-tape-item small { color: var(--hld-ink-3); font-size: 10px; }
.hld-tape-item .is-bull { color: var(--hld-bull); }
.hld-tape-item .is-bear { color: var(--hld-bear); }
.hld-calendar { border: 1px solid var(--hld-line); border-radius: 10px; background: var(--hld-card); overflow: hidden; }
.hld-calendar-row { display: grid; grid-template-columns: minmax(57px, 75px) minmax(0, 1fr) auto; align-items: baseline; gap: 8px 13px; padding: 10px 13px; border-bottom: 1px solid var(--hld-line-soft); }
.hld-calendar-row:last-child { border-bottom: 0; }
.hld-calendar-row time { color: var(--hld-accent); font: 650 11px/1.4 "JetBrains Mono", ui-monospace, monospace; white-space: nowrap; }
.hld-calendar-row strong { color: var(--hld-ink); font-size: 12px; font-weight: 600; }
.hld-calendar-row small { color: var(--hld-ink-3); font-size: 11px; text-align: right; }

.hld-evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: 9px; }
.hld-evidence-item { min-width: 0; padding: 12px 13px; border: 1px solid var(--hld-line); border-radius: 9px; background: var(--hld-card); }
.hld-evidence-item h3 { margin: 5px 0; font-size: 13px; line-height: 1.3; }
.hld-evidence-item p { margin: 4px 0; color: var(--hld-ink-2); font-size: 12px; }
.hld-evidence-item small { color: var(--hld-ink-3); font-size: 10px; }
.hld-history { display: grid; gap: 8px; }
.hld-timeline { display: flex; flex-wrap: wrap; gap: 5px; padding: 12px; border: 1px solid var(--hld-line); border-radius: 9px; background: var(--hld-card); }
.hld-timeline-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 43px; min-height: 43px; padding: 4px; border: 1px solid var(--hld-line); border-radius: 6px; background: var(--hld-well); color: var(--hld-flat); }
.hld-timeline-chip.is-bull { color: var(--hld-bull); background: var(--hld-bull-wash); border-color: rgba(77,217,174,.28); }
.hld-timeline-chip.is-bear { color: var(--hld-bear); background: var(--hld-bear-wash); border-color: rgba(255,128,108,.28); }
.hld-timeline-chip.is-no-call { color: var(--hld-accent); background: var(--hld-accent-wash); border-style: dashed; }
.hld-timeline-chip small { font: 600 9px/1.1 "JetBrains Mono", ui-monospace, monospace; }
.hld-timeline-chip strong { font: 700 14px/1.2 "JetBrains Mono", ui-monospace, monospace; }
.hld-history-row { display: grid; grid-template-columns: minmax(83px, 115px) minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; padding: 10px 13px; border: 1px solid var(--hld-line); border-radius: 9px; background: var(--hld-card); }
.hld-history-row time { color: var(--hld-ink-3); font: 600 11px/1.4 "JetBrains Mono", ui-monospace, monospace; }
.hld-history-row strong { font-size: 12px; }
.hld-history-row small { color: var(--hld-ink-3); font-size: 10px; }
.hld-note { padding: 10px 12px; border-left: 3px solid var(--hld-accent); border-radius: 0 6px 6px 0; background: var(--hld-accent-wash); color: var(--hld-ink-2); font-size: 12px; line-height: 1.5; }
.hld-note p:last-child { margin-bottom: 0; }
.hld-empty { padding: 19px; border: 1px dashed var(--hld-line); border-radius: 9px; color: var(--hld-ink-2); text-align: center; font-size: 12px; }
.hld-table-wrap { max-width: 100%; min-width: 0; border: 1px solid var(--hld-line); border-radius: 9px; overflow-x: auto; }
.hld-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--hld-card); font-size: 12px; }
.hld-table th { padding: 9px 11px; border-bottom: 1px solid var(--hld-line); background: var(--hld-card-2); color: var(--hld-ink-3); font: 700 10px/1.3 "Arial Narrow", Inter, system-ui, sans-serif; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.hld-table td { padding: 9px 11px; border-bottom: 1px solid var(--hld-line-soft); color: var(--hld-ink-2); vertical-align: top; }
.hld-table tr:last-child td { border-bottom: 0; }
.hld-table tbody tr:hover { background: var(--hld-card-2); }
.hld details { border: 1px solid var(--hld-line); border-radius: 9px; background: var(--hld-card); }
.hld details > summary { padding: 10px 12px; color: var(--hld-ink); cursor: pointer; font-weight: 600; }
.hld details[open] > summary { border-bottom: 1px solid var(--hld-line-soft); }
.hld details > :not(summary) { margin: 12px; }

@media (max-width: 860px) {
  .hld-hero, .hld-grid { grid-template-columns: minmax(0, 1fr); }
  .hld-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hld { padding: 14px; border-radius: 10px; }
  .hld-mast { align-items: flex-start; }
  .hld-mast > * { min-width: 0; }
  .hld-call, .hld-card { padding: 14px; }
  .hld-call-score { font-size: 38px; }
  .hld-factor { grid-template-columns: minmax(76px, 108px) minmax(0, 1fr) 28px; gap: 6px; }
  .hld-factor-name, .hld-factor-value { font-size: 11px; }
  .hld-metric { padding: 11px; min-height: 82px; }
  .hld-calendar-row { grid-template-columns: 61px minmax(0, 1fr); }
  .hld-calendar-row small { grid-column: 2; text-align: left; }
  .hld-history-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hld-history-row time { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .hld *, .hld *::before, .hld *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
