.tl-eb {
  --eb-bg: #11191e;
  --eb-deep: #080c0f;
  --eb-ink: #e8edf0;
  --eb-muted: #87959e;
  --eb-accent: #42d990;
  --eb-gold: #f0b544;
  color: var(--eb-ink);
  font-family: "Satoshi", "Inter", system-ui, sans-serif;
  margin: 0 0 clamp(28px, 5vw, 44px);
}

.tl-eb[data-tone="mixed"] {
  --eb-accent: #f0b544;
}

.tl-eb[data-tone="warning"] {
  --eb-accent: #ff6b5e;
}

.tl-eb-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 20px;
  color: var(--eb-ink);
  background: #0d1418;
  border: 1px solid rgba(240, 181, 68, 0.28);
  border-left: 3px solid var(--eb-gold);
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transition: border-color 160ms ease, background 160ms ease,
    transform 160ms ease;
}

.tl-eb-trigger:hover {
  background: #111b20;
  border-color: rgba(240, 181, 68, 0.55);
  transform: translateY(-1px);
}

.tl-eb-trigger:focus-visible,
.tl-eb-close:focus-visible,
.tl-eb-deep-link:focus-visible {
  outline: 2px solid var(--eb-gold);
  outline-offset: 3px;
}

.tl-eb-trigger-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.tl-eb-trigger-label,
.tl-eb-trigger-time,
.tl-eb-kicker,
.tl-eb-meta,
.tl-eb-label,
.tl-eb-ledger > h3,
.tl-eb-finding-label,
.tl-eb-limitation > span,
.tl-eb-position > span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tl-eb-trigger-label {
  color: var(--eb-gold);
  font-size: 11px;
  font-weight: 700;
}

.tl-eb-trigger-preview {
  min-width: 0;
  overflow: hidden;
  color: rgba(232, 237, 240, 0.8);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-eb-trigger-time {
  color: var(--eb-muted);
  font-size: 9px;
  white-space: nowrap;
}

.tl-eb-trigger-arrow {
  color: var(--eb-accent);
  font-family: "Space Grotesk", "Satoshi", sans-serif;
  font-size: 21px;
  line-height: 1;
}

.tl-eb-backdrop[hidden] {
  display: none !important;
}

.tl-eb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 5vh 24px;
  background: rgba(2, 5, 7, 0.82);
  backdrop-filter: blur(12px) saturate(80%);
  -webkit-backdrop-filter: blur(12px) saturate(80%);
  animation: tl-eb-backdrop-in 160ms ease both;
}

html.tl-eb-open,
body.tl-eb-open {
  overflow: hidden !important;
}

.tl-eb-sheet {
  position: relative;
  width: min(1080px, 100%);
  max-height: 88vh;
  max-height: 88dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--eb-ink);
  background: var(--eb-bg);
  border: 1px solid rgba(135, 149, 158, 0.28);
  border-top-color: var(--eb-accent);
  border-radius: 4px;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.64);
  animation: tl-eb-sheet-in 180ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.tl-eb-trace {
  position: absolute;
  inset: 0 0 auto;
  height: 28px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.7;
}

.tl-eb-trace svg {
  width: 100%;
  height: 100%;
}

.tl-eb-trace path {
  fill: none;
  stroke: var(--eb-accent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.tl-eb-bar {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  padding: 25px 28px 14px;
  border-bottom: 1px solid rgba(135, 149, 158, 0.18);
  background: rgba(8, 12, 15, 0.44);
}

.tl-eb-kicker {
  color: var(--eb-accent);
  font-size: 10px;
  font-weight: 700;
}

.tl-eb-meta {
  overflow: hidden;
  color: var(--eb-muted);
  font-size: 9px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-eb-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--eb-muted);
  background: none;
  border: 0;
  cursor: pointer;
  font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tl-eb-close span:last-child {
  color: var(--eb-ink);
  font: 300 25px/0.8 "Space Grotesk", sans-serif;
}

.tl-eb-close:hover {
  color: var(--eb-ink);
}

.tl-eb-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  overflow: hidden;
}

.tl-eb-verdict {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: clamp(34px, 5vw, 62px) clamp(28px, 4.5vw, 54px);
  background: var(--eb-deep);
  border-right: 1px solid rgba(135, 149, 158, 0.2);
}

.tl-eb-label,
.tl-eb-ledger > h3 {
  margin: 0 0 22px;
  color: var(--eb-accent);
  font-size: 10px;
  font-weight: 700;
}

.tl-eb-verdict h2 {
  margin: 0;
  max-width: 13ch;
  color: var(--eb-ink);
  font-family: "Space Grotesk", "Satoshi", sans-serif;
  font-size: clamp(32px, 4vw, 49px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.tl-eb-verdict h2:focus {
  outline: none;
}

.tl-eb-summary {
  margin: 24px 0 0;
  color: rgba(232, 237, 240, 0.7);
  font-size: 15px;
  line-height: 1.62;
}

.tl-eb-deep-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--eb-gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.tl-eb-deep-link:hover {
  color: #f5c869;
}

.tl-eb-ledger {
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(34px, 4.5vw, 58px);
  scrollbar-color: rgba(135, 149, 158, 0.35) transparent;
}

.tl-eb-findings {
  border-top: 1px solid rgba(135, 149, 158, 0.22);
}

.tl-eb-finding {
  position: relative;
  padding: 22px 0 21px;
  border-bottom: 1px solid rgba(135, 149, 158, 0.18);
}

.tl-eb-finding::before {
  content: "";
  position: absolute;
  top: 25px;
  left: -16px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--eb-accent);
}

.tl-eb-finding[data-finding-tone="limited"]::before {
  background: var(--eb-gold);
}

.tl-eb-finding[data-finding-tone="adverse"]::before {
  background: #ff6b5e;
}

.tl-eb-finding-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
}

.tl-eb-finding-label {
  color: var(--eb-ink);
  font-size: 10px;
  font-weight: 700;
}

.tl-eb-finding-head strong {
  color: var(--eb-accent);
  font: 600 clamp(24px, 3.2vw, 35px)/1 "Space Grotesk", "Satoshi", sans-serif;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.tl-eb-denominator {
  margin: 7px 0 0 !important;
  color: var(--eb-muted) !important;
  font: 10px/1.45 "JetBrains Mono", ui-monospace, monospace;
}

.tl-eb-finding > p:last-child {
  margin: 10px 0 0;
  max-width: 62ch;
  color: rgba(232, 237, 240, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.tl-eb-limitation {
  margin-top: 24px;
  padding: 17px 18px;
  background: rgba(240, 181, 68, 0.055);
  border-left: 2px solid var(--eb-gold);
}

.tl-eb-limitation > span,
.tl-eb-position > span {
  color: var(--eb-gold);
  font-size: 9px;
  font-weight: 700;
}

.tl-eb-limitation p {
  margin: 8px 0 0;
  color: var(--eb-muted);
  font-size: 12px;
  line-height: 1.55;
}

.tl-eb-position {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 20px 28px 22px;
  background: #0a1013;
  border-top: 1px solid rgba(135, 149, 158, 0.2);
}

.tl-eb-position p {
  margin: 0;
  color: rgba(232, 237, 240, 0.86);
  font-size: 13px;
  line-height: 1.5;
}

.tl-eb-noscript {
  max-height: none;
  margin-top: 18px;
}

@keyframes tl-eb-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tl-eb-sheet-in {
  from { opacity: 0; transform: translateY(12px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 719px) {
  .tl-eb {
    margin-bottom: 28px;
  }

  .tl-eb-trigger {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px 15px 15px 17px;
  }

  .tl-eb-trigger-time {
    display: none;
  }

  .tl-eb-trigger-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .tl-eb-backdrop {
    display: block;
    padding: 0;
  }

  .tl-eb-sheet {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    display: block;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
  }

  .tl-eb-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: calc(18px + env(safe-area-inset-top)) 18px 14px;
    background: rgba(8, 12, 15, 0.96);
    backdrop-filter: blur(12px);
  }

  .tl-eb-meta {
    display: none;
  }

  .tl-eb-grid {
    display: block;
  }

  .tl-eb-verdict {
    min-height: auto;
    padding: 38px 22px 36px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(135, 149, 158, 0.2);
  }

  .tl-eb-verdict h2 {
    max-width: 15ch;
    font-size: clamp(34px, 11vw, 46px);
  }

  .tl-eb-deep-link {
    margin-top: 28px;
    padding-top: 0;
  }

  .tl-eb-ledger {
    overflow: visible;
    padding: 36px 22px;
  }

  .tl-eb-finding::before {
    left: -10px;
  }

  .tl-eb-finding-head {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .tl-eb-finding-head strong {
    font-size: 32px;
  }

  .tl-eb-position {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 22px calc(28px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-eb-trigger,
  .tl-eb-backdrop,
  .tl-eb-sheet {
    animation: none;
    transition: none;
  }
}

@media print {
  .tl-eb-trigger,
  .tl-eb-backdrop {
    display: none !important;
  }

  .tl-eb noscript {
    display: block;
  }
}
