.project-history { color:var(--paper,#eee8f4); font:14px/1.6 var(--mono,monospace); min-width:0; }
.project-history h2 { font:32px/1.2 var(--brand,monospace); margin:0 0 16px; }
.project-history h3 { font-size:18px; margin:22px 0 10px; }
.project-history p { max-width:82ch; }
.project-history .ph-controls { display:flex; flex-wrap:wrap; gap:16px; align-items:center; margin:24px 0; }
.project-history .ph-tabs { display:flex; flex-wrap:wrap; gap:6px; }
.project-history button,.project-history select { font:inherit; color:inherit; background:#171020; border:1px solid #5e4b73; padding:9px 13px; cursor:pointer; min-height:42px; }
.project-history button[aria-selected=true] { background:#342047; border-color:#bf99ff; }
.project-history button:focus-visible,.project-history select:focus-visible,.project-history .ph-scroll:focus-visible { outline:2px solid #ff6370; outline-offset:3px; }
.project-history .ph-language { display:flex; gap:4px; margin-left:auto; }
.project-history .ph-scroll { width:100%; overflow-x:auto; overscroll-behavior-inline:contain; border:1px solid #42334f; }
.project-history table { width:100%; border-collapse:collapse; min-width:700px; font-size:14px; line-height:1.55; }
.project-history th,.project-history td { text-align:left; vertical-align:top; padding:14px 16px; border-bottom:1px solid #42334f; }
.project-history thead th { background:#21152d; font-weight:500; white-space:nowrap; }
.project-history tbody th { font-weight:500; min-width:110px; }
.project-history td { color:var(--paper-2,#cebedc); }
.project-history small { display:block; font-size:12px; color:var(--muted,#b09abd); line-height:1.5; margin-top:6px; }
.project-history ul { margin:8px 0; padding-left:18px; }
.project-history li+li { margin-top:6px; }
.project-history pre { font:12px/1.5 var(--mono,monospace); white-space:pre-wrap; overflow-wrap:anywhere; min-width:140px; max-width:440px; max-height:260px; overflow:auto; margin:0; }
.project-history code { overflow-wrap:anywhere; }
.project-history .ph-change { margin:16px 0; padding:14px 0; border-top:1px solid #59416c; }
.project-history summary { cursor:pointer; font-size:16px; color:var(--paper,#eee8f4); padding:8px 0; }
.project-history details details { margin:8px 0; }
.project-history .ph-image-pair { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; margin-top:18px; }
.project-history figure { margin:0; min-width:0; }
.project-history figure img { display:block; width:100%; height:auto; background:#100b18; border:1px solid #44314f; }
.project-history figcaption { font-size:16px; margin-bottom:10px; }
.project-history .ph-missing { color:var(--muted,#b09abd); padding:20px 0; }
.project-history .ph-more { display:inline-block; margin:18px 0; font-size:16px; color:#c1a3ff; }
@media(max-width:760px){ .project-history .ph-image-pair { grid-template-columns:minmax(0,1fr); }.project-history h2 { font-size:27px; }.project-history .ph-controls { gap:10px; }.project-history .ph-language { margin-left:0; }.project-history table { min-width:680px; }.project-history .ph-tabs { width:100%; } }
.project-history .ph-image-open { display:inline-block; font-size:13px; margin-top:5px; color:#c1a3ff; }
#project-history { scroll-margin-top:100px; }
.project-history .ph-shortcuts { display:flex; flex-wrap:wrap; gap:10px 22px; margin:14px 0 24px; }
.project-history .ph-shortcuts a { color:#c1a3ff; font-size:14px; }
.project-history .ph-compact-pair { margin-bottom:24px; }
.project-history { padding:24px 20px; background:rgba(14,10,21,.97); border:1px solid #42334f; }
@media(max-width:760px){ .project-history { padding:18px 12px; } }
.project-history .ph-balance-controls { margin:16px 0 24px; }
.project-history .ph-balance-controls[hidden] { display:none; }
.project-history .ph-balance-controls label { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.project-history .ph-cohort { width:min(100%,560px); max-width:100%; min-width:0; }
.project-history .ph-baseline { border-left:3px solid #a77bff; padding-left:14px; margin:22px 0; }
