.jacob-history-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  display: grid;
  gap: 18px;
  color: var(--silver);
  overflow: hidden;
}

.jacob-history-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 16px;
  align-items: end;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, .76), rgba(15, 23, 42, .88)),
    radial-gradient(circle at 86% 18%, rgba(34, 197, 94, .18), transparent 32%);
}

.jacob-history-kicker,
.jacob-history-hero p,
.jacob-history-event span,
.jacob-history-event small,
.jacob-history-facts dt,
.jacob-history-files {
  overflow-wrap: anywhere;
}

.jacob-history-kicker {
  margin: 0 0 8px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.jacob-history-hero h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.jacob-history-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.jacob-history-status {
  justify-self: stretch;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 8px;
  background: rgba(2, 6, 23, .46);
}

.jacob-history-status span {
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.jacob-history-status strong {
  color: #bbf7d0;
  font-size: 13px;
}

.jacob-history-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(145px, .7fr));
  gap: 10px;
  align-items: end;
}

.jacob-history-controls label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.jacob-history-controls input,
.jacob-history-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(15, 23, 42, .72);
  outline: none;
}

.jacob-history-controls input:focus,
.jacob-history-controls select:focus {
  border-color: rgba(103, 232, 249, .72);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
}

.jacob-history-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 16px;
  align-items: start;
}

.jacob-history-events {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.jacob-history-event {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 8px;
  background: rgba(15, 23, 42, .54);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.jacob-history-event.selected {
  border-color: rgba(34, 197, 94, .58);
  background: rgba(6, 78, 59, .26);
}

.jacob-history-event:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, .48);
}

.jacob-history-event button {
  width: 100%;
  min-height: 96px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.jacob-history-event span {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.jacob-history-event strong {
  color: var(--white);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.jacob-history-event small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.jacob-history-detail {
  position: sticky;
  top: 18px;
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 8px;
  background: rgba(2, 6, 23, .58);
}

.jacob-history-detail h3 {
  margin: 0;
  color: var(--white);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.jacob-history-detail p {
  margin: 0;
  color: var(--silver);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.jacob-history-facts {
  margin: 0;
  display: grid;
  gap: 8px;
}

.jacob-history-facts div {
  min-width: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.jacob-history-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.jacob-history-facts dd {
  margin: 0;
  color: var(--white);
  overflow-wrap: anywhere;
}

.jacob-history-summary {
  display: grid;
  gap: 8px;
}

.jacob-history-summary h4 {
  margin: 4px 0 0;
  color: #bbf7d0;
  font-size: 13px;
  letter-spacing: 0;
}

.jacob-history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jacob-history-tags span {
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 8px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, .1);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.jacob-history-files {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.jacob-history-empty {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(15, 23, 42, .42);
}

@media (max-width: 1180px) {
  .jacob-history-shell {
    padding: 18px;
  }

  .jacob-history-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .jacob-history-detail {
    position: static;
  }
}

@media (max-width: 780px) {
  .jacob-history-shell {
    padding: 14px;
  }

  .jacob-history-hero,
  .jacob-history-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .jacob-history-hero h2 {
    font-size: 32px;
  }

  .jacob-history-status {
    min-height: 76px;
  }

  .jacob-history-event button {
    min-height: 88px;
    padding: 14px;
  }

  .jacob-history-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
