.ih-archive{max-width:1100px;margin:auto}.ih-archive label{display:block;margin:1rem 0}.ih-archive input{width:min(100%,28rem)}.ih-archive select{margin-left:.5rem}.ih-notice{padding:1rem;border-left:3px solid var(--accent,#e4ae43);background:var(--panel,#222)}.ih-scroll{overflow-x:auto;max-width:100%;margin:1rem 0}.ih-scroll table{border-collapse:collapse;min-width:100%;font-size:.9rem}.ih-scroll th,.ih-scroll td{padding:.65rem;text-align:left;border-bottom:1px solid #7775;white-space:nowrap}.ih-scroll th{font-weight:700}.ih-scroll button{font:inherit;color:inherit}.ih-person{padding:0;border:0;text-decoration:underline;background:none;cursor:pointer}.ih-table{margin-bottom:1.5rem}.ih-matches details{border:1px solid #7775;border-radius:8px;margin:.6rem 0}.ih-matches summary{padding:1rem;cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:.4rem}.ih-matches small{grid-column:1/-1;opacity:.7}.ih-match-detail{padding:0 1rem 1rem}.ih-catalog{padding:.8rem 0;border-bottom:1px solid #7775}.ih-catalog small{display:block;opacity:.7;margin-top:.3rem}.ih-archive button[aria-pressed=true]{outline:2px solid var(--accent,#e4ae43)}@media(max-width:600px){.ih-matches summary{grid-template-columns:1fr}.ih-scroll th,.ih-scroll td{padding:.5rem}.ih-archive select{max-width:100%;margin:.5rem 0}}

.ih-breadcrumb{font-size:.8rem;margin-bottom:1.1rem}.ih-participant-search{font-size:.8rem;font-weight:600}.ih-participant-search input{display:block;margin-top:.45rem;min-height:44px}.ih-person-overview{border:1px solid var(--border,#7773);border-radius:14px;padding:1.1rem 1.2rem;margin:1.3rem 0;background:#ffffff45}.ih-person-heading{display:flex;gap:1rem;align-items:baseline;flex-wrap:wrap;justify-content:space-between;margin-bottom:1rem}.ih-person-heading h2{font-size:1.3rem;margin:0}.ih-person-heading small{font-size:.72rem;color:var(--muted)}.ih-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.8rem}.ih-metric-grid>div{padding:.8rem 1rem;border-radius:9px;background:#ffffff75;border:1px solid var(--border,#7772)}.ih-metric-grid strong{font-size:1.65rem;line-height:1.3;display:block;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.ih-metric-grid span{display:block;font-size:.7rem;color:var(--muted);margin-top:.25rem}.ih-roster{font-size:.82rem;line-height:1.8;color:var(--muted)}.ih-roster strong{color:var(--text)}.ih-match-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1.5rem}.ih-match-heading h2{font-size:1.1rem;margin:0}.ih-match-heading label{font-size:.75rem;margin:0}.ih-match-heading select{min-height:40px}.ih-matches summary{padding:.85rem 1rem}.ih-matches summary>span{font-weight:600;font-size:.88rem}.ih-matches summary>strong{font-size:.8rem;color:var(--accent-text)}.ih-matches summary>small{font-size:.72rem}.ih-source-details{border-top:1px solid var(--border,#7773);margin:1.7rem 0;padding-top:1rem;color:var(--muted);font-size:.8rem}.ih-source-details summary{cursor:pointer;min-height:32px;font-weight:600}.ih-status{display:inline-block;font-size:.75rem;padding:.4rem .65rem;border-radius:7px;background:#f43f9310;color:var(--accent-text)}[data-show-all]{margin-top:.7rem;min-height:42px}@media(max-width:600px){.ih-person-overview{padding:.9rem}.ih-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.ih-metric-grid>div:first-child:nth-last-child(3){grid-column:1/-1}.ih-metric-grid>div{padding:.7rem}.ih-match-heading{gap:.6rem}.ih-matches summary{gap:.4rem}.ih-matches summary>strong{font-size:.78rem}}

.imported-history-view main>header h1{font-size:clamp(1.5rem,4vw,2rem);line-height:1.2}.imported-history-view main>header p{font-size:.8rem;color:var(--muted);line-height:1.5}.ih-person-heading h2{font-size:.85rem;font-weight:650;color:var(--muted)}

/* Match the Rookies archive hierarchy without changing source statistics. */
body.imported-history-view{--muted:#50596a;--border:rgba(23,32,51,.22);background-image:radial-gradient(900px 500px at 50% -120px,#f43f9310,transparent 70%),linear-gradient(180deg,#fff7ed,#f7efe2)}

.ih-scroll{border:1px solid var(--border);border-radius:10px;background:#fffaf3;margin:.8rem 0}
.ih-scroll th{background:#f2e9df;color:#434d5d;font-size:.75rem}.ih-scroll th,.ih-scroll td{border-bottom:1px solid var(--border);padding:.6rem .75rem}
.ih-scroll tbody tr:hover{background:#f43f9306}.ih-scroll .ih-person{color:#a31b52;font-weight:600;text-decoration-color:#a31b5270;text-underline-offset:3px;min-height:36px}
.ih-scroll .ih-person:hover{color:#7f1240;text-decoration-thickness:2px}
.ih-person-overview{background:#fffaf3;margin:1rem 0;padding:1rem}.ih-person-heading{margin-bottom:.75rem}.ih-metric-grid{gap:.6rem}.ih-metric-grid>div{background:#fffdf9;border-color:var(--border)}
.ih-roster{line-height:1.6}.ih-match-heading{margin-top:1.2rem}.ih-matches details{background:#fffaf3;border-color:var(--border)}.ih-matches summary{padding:.75rem 1rem}.ih-matches small{opacity:1;color:var(--muted)}
.ih-matches summary:hover{background:#f43f9306}.ih-archive :is(a,button,summary,input,select):focus-visible{outline:3px solid #a31b52;outline-offset:3px}
@media(max-width:600px){.ih-scroll th,.ih-scroll td{padding:.55rem}.ih-person-overview{padding:.85rem}.ih-matches summary{padding:.75rem}}
/* Shared archive tabs and separate source-backed game/format controls. */


.ih-filters{display:flex;gap:16px;flex-wrap:wrap;align-items:end;margin:16px 0}.ih-filters label{display:grid;gap:6px;max-width:380px;margin:0;font-size:.8rem;font-weight:600}.ih-filters select{margin:0;min-height:44px}.ih-filters select:disabled{opacity:.7}
.ih-table-key{font-size:.75rem;line-height:1.6;margin:.5rem 0 1rem}.ih-scroll th button{border:0;background:transparent;padding:8px 0;min-height:44px;font-weight:700;white-space:nowrap;cursor:pointer;text-align:left}
.ih-main>h2{font-size:1.25rem}.ih-main>p{font-size:.82rem;line-height:1.6}
@media(max-width:600px){.ih-filters{gap:12px}.ih-filters label{flex:1 1 140px;min-width:0}.ih-filters select{width:100%}}
/* The same text/number alignment as native session standings and statistics. */
.ih-data-table{table-layout:auto;font-variant-numeric:tabular-nums lining-nums}
.ih-scroll .ih-data-table :is(th,td){vertical-align:middle;padding:10px 14px}
.ih-scroll .ih-data-table .ih-num{text-align:right;white-space:nowrap;width:1%;min-width:5ch;padding-right:26px}
.ih-scroll .ih-data-table .ih-text{text-align:left;min-width:150px;white-space:normal}
.ih-scroll .ih-data-table th button{display:block;position:relative;width:100%;text-align:inherit;padding:8px 0;line-height:1.3;margin:0;border:0;background:transparent;border-radius:0}
.ih-data-table .ih-sort-arrow{position:absolute;right:-16px;top:50%;transform:translateY(-50%);width:12px;text-align:center}
.ih-scroll .ih-data-table .ih-text button{width:max-content;max-width:100%;text-align:left}
.ih-scroll .ih-data-table .ih-person{padding:4px 0;min-height:36px;border:0;background:transparent;line-height:1.4}
.ih-data-table .ih-source-row td{text-align:left;font-size:.75rem;color:var(--muted);white-space:normal;background:#f2e9df55}
@media(max-width:600px){.ih-scroll .ih-data-table :is(th,td){padding:10px}.ih-scroll .ih-data-table .ih-num{padding-right:23px}.ih-scroll .ih-data-table .ih-text{min-width:145px}}
.ih-scroll .ih-data-table .ih-text{min-width:0}.ih-scroll .ih-data-table .ih-name{min-width:170px}
@media(max-width:600px){.ih-scroll .ih-data-table .ih-name{min-width:145px}}
.ih-source-link{margin:16px 0 0;font-size:.75rem;color:var(--muted)}
@media(max-width:600px){}
