.ai-history {
  --history-line: #454941;
  --history-accent: #eabd8d;
  background: #141816;
  color: #f4efe5;
  border-block: 1px solid var(--history-line);
  padding-block: clamp(36px, 5vw, 72px);
  scroll-margin-block-start: 16px;
}
.ai-history-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: clamp(20px, 2.4vw, 35px); }
.ai-history-head h2 { margin: 0; font: 600 clamp(1.35rem, 2.4vw, 2.3rem)/1.3 var(--serif); letter-spacing: -.03em; }
.ai-history-head > span { font-size: .78rem; color: #c7c9be; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ai-history-rails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4.5vw, 72px); }
.ai-history ol { list-style: none; margin: 0; padding: 0; }
.ai-history li { position: relative; padding-left: 18px; border-left: 1px solid var(--history-line); }
.ai-history li::before { content: ""; position: absolute; left: -4px; top: 25px; width: 7px; height: 7px; border-radius: 50%; background: var(--history-accent); }
.ai-history li:last-child { border-color: transparent; }
.ai-history li:last-child::after { content: ""; position: absolute; left: -1px; top: 0; height: 25px; border-left: 1px solid var(--history-line); }
.ai-history details { border-top: 1px solid var(--history-line); }
.ai-history summary {
  display: grid; grid-template-columns: 4.15rem minmax(0, 1fr) .55rem; align-items: baseline;
  gap: 12px; min-height: 54px; padding: 12px 4px 12px 0; cursor: pointer; list-style: none;
}
.ai-history summary::-webkit-details-marker { display: none; }
.ai-history summary::after {
  content: ""; align-self: center; width: 6px; height: 6px; border: solid #c7c9be; border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.ai-history details[open] summary::after { transform: rotate(225deg); }
.ai-history time { color: var(--history-accent); font: 420 clamp(1.2rem, 2vw, 1.65rem)/1.1 Georgia, serif; font-variant-numeric: lining-nums tabular-nums; }
.ai-history summary span { font-size: clamp(.85rem, 1.1vw, 1rem); line-height: 1.5; font-weight: 550; }
.ai-history summary:is(:hover, :focus-visible) span { text-decoration: underline; text-underline-offset: .2em; }
.ai-history-note { padding: 0 12px 12px 4.9rem; }
.ai-history-note p { margin: 0; font-size: .84rem; line-height: 1.8; color: #d5d8ce; }
.ai-history-note a { min-height: 40px; display: inline-flex; align-items: center; gap: 5px; color: var(--history-accent); font-size: .77rem; text-decoration: underline; text-underline-offset: .22em; }
.ai-history-note a svg { width: 13px; min-width: 13px; }
@media (max-width: 800px) {
  .ai-history-rails { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ai-history ol:first-child li:last-child { border-color: var(--history-line); }
  .ai-history ol:first-child li:last-child::after { display: none; }
}
@media (max-width: 450px) {
  .ai-history-head { gap: 8px; }
  .ai-history-head > span { font-size: .7rem; }
  .ai-history li { padding-left: 13px; }
  .ai-history summary { grid-template-columns: 3rem minmax(0, 1fr) .5rem; gap: 8px; }
  .ai-history-note { padding-left: 0; }
}
