/* THE LOT — shared interface. Loaded after the original feature styles. */
:root {
  --room:#0b1118; --panel:#121622; --line:#282e3f; --ink:#edeff4;
  --mute:#a4aac7; --lamp:#ed788f; --lamp2:#c54f67; --lamp3:#27314f;
  --off:#1f2435; --up:#ed788f; --dn:#f4a0a8;
  --display:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --body:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --site-header:56px; --site-radius:14px;
}
html { font-size:16px; scroll-padding-top:80px; -webkit-text-size-adjust:100%; }
body { background:var(--room); font:400 1rem/1.55 var(--body); color:var(--ink); padding-top:calc(var(--site-header) + env(safe-area-inset-top,0px)); }
*,*::before,*::after { box-sizing:border-box; }
.wrap { max-width:1160px; padding:0 24px 48px; }
.wrap > header { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:90px; padding:20px 0; }
.wrap > header .mark { font:850 27px/1 var(--display); letter-spacing:-.065em; }
.lot-kicker { margin-top:7px; font-size:10px; font-weight:700; letter-spacing:.16em; color:var(--mute); }
#view { min-width:0; width:100%; }
#view > * { min-width:0; max-width:100%; }
#view h1,.title { font-size:clamp(30px,4vw,44px); line-height:1.13; font-weight:800; letter-spacing:-.045em; text-wrap:balance; }
h2 { font:750 20px/1.25 var(--display); letter-spacing:-.025em; }
h3 { line-height:1.35; }
p { overflow-wrap:break-word; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { touch-action:manipulation; }
button:disabled { cursor:not-allowed; }
:focus-visible { outline:2px solid var(--lamp); outline-offset:4px; }
.sub,.empty { font-size:14px; line-height:1.6; color:var(--mute); }
.title { margin:12px 0; }
.back { font-size:14px; padding:10px 0; color:var(--mute); }
.sec { font-size:clamp(23px,3vw,30px); line-height:1.2; margin:32px 0 16px; color:var(--ink); font-weight:750; letter-spacing:-.035em; }
.wrap > footer { max-width:78ch; margin-top:32px; padding-top:18px; border-top:1px solid var(--line); color:var(--mute); font-size:12px; line-height:1.6; }

/* One compact, persistent set of controls for the whole archive. */
.lot-scope { padding:17px 18px; margin:0 0 25px; background:#111522; border:1px solid #2a3144; border-radius:var(--site-radius); }
.lot-scope-top { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:5px 16px; margin-bottom:14px; }
.lot-scope-top h2,.lot-scope-top strong { font-size:14px; line-height:1.4; letter-spacing:0; font-weight:700; color:var(--ink); margin:0; }
.lot-scope-date { color:var(--mute); font-size:12px; font-variant-numeric:tabular-nums; }
.lot-scope-controls { display:grid; grid-template-columns:minmax(230px,1.4fr) minmax(165px,.9fr) minmax(190px,1fr); align-items:end; gap:13px 18px; }
.lot-scope-group { margin:0; padding:0; border:0; min-width:0; }
.lot-scope-group legend { display:block; padding:0; margin:0 0 7px; font-size:12px; line-height:1.4; font-weight:600; color:var(--mute); }
.lot-segment { display:flex; width:100%; min-width:0; padding:3px; gap:3px; background:#090d19; border:1px solid #2c3346; border-radius:10px; }
.lot-segment button { min-width:0; flex:1; appearance:none; border:0; border-radius:7px; padding:9px 9px; min-height:40px; background:transparent; color:#b5bad2; cursor:pointer; font:650 14px/1.2 var(--body); text-align:center; white-space:normal; }
.lot-segment button[aria-pressed=true] { background:var(--lamp); color:#0b1125; box-shadow:none; }
.lot-segment button:not([aria-pressed=true]):not(:disabled):hover { color:var(--ink); background:#202637; }
.lot-segment button:disabled { opacity:.45; }
.lot-scope-meta { display:block; margin:12px 0 0; color:var(--mute); font-size:12px; line-height:1.5; }
.lot-scope-meta > span { display:block; margin-top:4px; }
.lot-focus-label { display:flex; align-items:center; min-height:40px; padding:9px 12px; color:var(--ink); font-size:14px; font-weight:650; }
.lot-scope-notice { border-left:3px solid var(--lamp); padding:10px 14px; background:var(--panel); color:var(--mute); font-size:14px; }
.lot-journal-invite { margin-top:20px; }
[data-lot-stat] { cursor:pointer; }
[data-lot-stat]:hover { border-color:var(--lamp); }
.lot-scope-connect { display:inline; color:var(--lamp); text-underline-offset:3px; font-size:12px; font-weight:650; }
.lot-scope-connect:hover { text-decoration:underline; }
.lot-scope [hidden] { display:none!important; }

/* Content heroes are vertical blocks; only the application masthead is a row. */
#view .ins-hero,#view .lot-hero,#view .rb-hero,#view .mv-brand,#view .mv-head,
#view .ob-head,#view .ex-hero,#view .fr-hero,#view .journal .j-head,#view .lg-intro {
  display:block; width:100%; min-width:0; max-width:100%; padding:2px 0 21px;
  margin:0 0 18px; border:0; border-bottom:1px solid var(--line); border-radius:0;
  background:none; box-shadow:none; overflow:visible; text-align:left;
}
#view .ins-hero > *,#view .lot-hero > *,#view .rb-hero > *,#view .mv-head > *,
#view .ob-head > *,#view .fr-hero > *,#view .journal .j-head > * { min-width:0; max-width:100%; }
#view .ins-hero h1,#view .lot-hero h1,#view .rb-hero h1,#view .mv-brand strong,
#view .mv-head h1,#view .ob-head > strong,#view .ex-hero h1,#view .fr-hero h1,
#view .journal .j-head h1,#view .lg-intro h1 { font:800 clamp(30px,4vw,44px)/1.13 var(--display); letter-spacing:-.045em; margin:7px 0 10px; text-wrap:balance; }
#view .ins-hero h1 em,#view .lot-hero h1 em,#view .rb-hero h1 em,#view .ex-hero h1 em,
#view .fr-hero h1 em,#view .lg-intro h1 em,#view .mv-brand strong span,#view .ob-head > strong span { color:var(--lamp); font-style:normal; }
#view .ins-hero > p,#view .lot-hero > p,#view .rb-hero > p,#view .mv-brand > p,
#view .mv-head > p,#view .ob-head > p,#view .ex-hero p,#view .fr-hero > p,
#view .journal .j-head > p,#view .lg-intro > p { color:var(--mute); font:400 15px/1.6 var(--body); max-width:72ch; margin:0 0 12px; }
.ins-eyebrow,.lot-eyebrow,.rb-hero .lot-eyebrow,.mv-eyebrow,.mv-brand > span,.ob-head > span,
.ex-eyebrow,.fr-eyebrow,.lg-eyebrow,.journal .j-eyebrow,.lot-account-eyebrow { color:var(--lamp); font:650 11px/1.4 var(--body); letter-spacing:.1em; text-transform:uppercase; }
.mv-brand::before { display:none; }
.ex-hero-layout { display:block; }
.lot-hero-chips,.rb-tags,.fr-hero-chips { margin-top:16px; gap:7px; }
.lot-hero-chips span,.rb-tags span,.fr-hero-chips span { background:#131827; border:1px solid #2c334a; color:#ebb1bd; font-size:12px; font-weight:500; padding:5px 10px; border-radius:7px; }
#view .ob-card-head,#view .ex-card-header,#view .lot-section-head,#view .fr-section-head { display:block; width:100%; margin-bottom:14px; padding:0; }
.lot-account-top { align-items:flex-start; flex-wrap:wrap; }
.lot-account-top h1 { font-size:clamp(30px,4vw,44px); }

/* Quiet surfaces, consistent type, and predictable spacing on every route. */
.panel,.ins-panel,.mv-panel,.ob-card,.ex-card,.fr-card,.lg-block,.journal .j-card,
.journal .j-editor,.journal .j-share,.journal .j-info,.lot-account-panel {
  background:var(--panel); border:1px solid var(--line); border-radius:var(--site-radius);
  box-shadow:none; padding:20px; min-width:0;
}
.panel.flat { padding:0; background:transparent; border:0; }
.grid,.ins-grid,.lot-card-grid,.rb-grid,.mv-grid,.ob-grid,.ex-grid,.fr-panels,.journal .j-cards { gap:16px; }
.panel h2,.ins-panel h2,.mv-panel h2,.ob-card h2,.ex-card h2,.rb-panel h2,
.lot-section-head h2,.fr-card h3,.lg-block h3 { font:750 19px/1.3 var(--display); letter-spacing:-.025em; color:var(--ink); }
.ins-panel-head { gap:10px; margin-bottom:18px; }
.ins-panel-head p,.lot-section-head p,.ob-card-head p,.ex-card-header p,
.fr-card-sub,.mv-panel .sub,.rb-explainer { font-size:14px; line-height:1.6; color:var(--mute); }
.ins-panel h3,.ob-card h3,.ex-card h3,.rb-split h3,.lg-block h4 { font-size:14px; line-height:1.4; font-weight:700; color:#c9cdde; letter-spacing:0; }
.ins-hint { color:var(--mute); font-size:12px; font-weight:500; }
.ins-foot,.ins-muted,.lot-footnote,.ex-mini-note,.ex-footer,.ob-foot,.ob-muted,.ob-caveat,
.mv-note,.mv-foot,.mv-empty-state p,.lg-caption,.lg-smallprint,.lg-footer,.journal .j-muted,
.lot-account-quiet { font-size:12px; line-height:1.65; color:var(--mute); }
.ob-shell { --ob-cyan:#e1889a; --ob-lime:var(--lamp); --ob-edge:var(--line); --ob-card:var(--panel); --ob-deep:var(--room); color:var(--ink); }
.fr-app { --fr-a:var(--lamp); --fr-b:#949fd8; }
.ob-caveat,.ob-foot,.mv-note,.mv-reference,.mv-empty-state,.journal .j-empty,.journal .j-notice { background:#151a29; border-color:#32384c; color:#c5c9dc; }
.mv-reference b,.mv-note b { color:var(--lamp); }
.mv-callout { background:#26191e; color:#ee8ea2; border-color:#cb576e; }

/* Statistics read as numbers first and explanations second. */
.ins-dashboard { --ins-panel:var(--panel); --ins-border:var(--line); --ins-text:var(--ink); --ins-muted:var(--mute); --ins-lime:var(--lamp); --ins-blue:#838fc7; }
.tiles,.ins-kpis,.rb-stats-grid,.lot-stats-grid,.mv-metrics,.ob-metrics,.ex-kpis { gap:10px; margin:16px 0 24px; }
.ins-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }
.tiles { grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); }
.tiles > div,.tiles a.ex-tile,.ins-card,.lot-stat,.rb-stat,.mv-metric,.ob-metric,.ex-kpi,
.fr-stat,.lg-metric,.journal .j-metric,.lot-tiles > div {
  background:#141827; border:1px solid #2a3042; border-radius:12px; min-width:0; box-shadow:none;
  padding:16px; text-align:left;
}
.tiles > div:first-child { padding:16px; }
.ins-card { min-height:133px; gap:8px; transition:border-color .15s ease,background .15s ease; }
.ins-card:hover,.ins-card:focus-visible { transform:none; background:#191e2f; border-color:#636d9f; }
.ins-card-label { font-size:14px; line-height:1.35; font-weight:600; letter-spacing:0; color:#babed4; }
.ins-card-label span { display:none; }
.ins-card strong,.tiles b,.tiles a.ex-tile b,.lot-stat b,.rb-stat b,.mv-metric b,.ob-metric b,
.ex-kpi strong,.fr-stat strong,.lg-metric strong,.journal .j-metric strong {
  color:var(--ink); font:750 clamp(25px,3vw,34px)/1.15 var(--display); letter-spacing:-.035em; font-variant-numeric:tabular-nums;
}
.ins-card small,.tiles span,.tiles a.ex-tile span,.lot-stat span,.rb-stat span,.mv-metric > span,
.ob-metric small,.ex-kpi small,.fr-stat small,.lg-metric span,.journal .j-metric span {
  color:#a4aac7; font:500 12px/1.4 var(--body); letter-spacing:0; text-transform:none;
}
.ins-card small,.lot-stat small,.rb-stat small,.mv-metric small,.ob-metric span,.ex-kpi span,.fr-stat span { font-size:12px; line-height:1.4; color:var(--mute); }
.ex-kpi { min-height:126px; }
.ex-kpi i { display:none; }
.fr-stat { align-items:flex-start; }
.fr-stat strong { margin:4px 0; }
.lot-stat b { white-space:normal; overflow-wrap:anywhere; }
.lot-tiles b { color:var(--ink); }

/* Lists and exact-value tables retain their own horizontal scroll viewport. */
.row,.lot-row,.rb-row,.mv-row,.ob-line,.fr-metric-row { border-color:var(--line); padding-block:12px; }
.row b,.lot-row strong,.rb-row a,.rb-row strong,.mv-row a,.mv-row b,.ob-line strong,
.ob-line a,.ex-venue-row b,.ex-song-row b,.fr-metric-title { font-size:14px; line-height:1.45; color:var(--ink); font-weight:600; }
.row small,.lot-row small,.rb-row small,.mv-row small,.ob-line small,.ex-venue-row em { font-size:12px; line-height:1.5; color:var(--mute); }
.lot-row b,.rb-row > b,.mv-row > strong,.ob-line > b { color:var(--lamp); font-size:13px; }
.tbl,.lot-table-scroll,.rb-table-wrap,.mv-table-wrap,.ex-table-scroll,.ins-table-scroll,.lg-table-scroll { max-width:100%; min-width:0; overscroll-behavior-inline:contain; scrollbar-width:thin; }
.tbl table,.lot-table,.rb-table,.mv-table,.ex-table-scroll table,.ins-table,.lg-table { font-size:13px; }
.lot-table th,.rb-table th,.mv-table th,.ex-table-scroll th,.ins-table th { background:#191f31; color:#b8bdd4; font-size:12px; font-weight:650; letter-spacing:0; text-transform:none; }
.lot-table td,.rb-table td,.mv-table td,.ex-table-scroll td,.ins-table td { border-color:var(--line); color:var(--ink); }
.lot-table td:first-child { background:#141929; }
.lot-table th:first-child { background:#191f31; }
.mv-table td a,.mv-table td button,.rb-table td a,.ex-table-scroll a { color:var(--lamp); }
.tr { gap:12px; padding-block:11px; }
.tags { font-size:12px; }

/* Inputs remain at 16px to prevent focus zoom on iPhone. */
input[type=search],input[type=text],input[type=password],input[type=email],input[type=date],select,textarea,
.journal .j-bar input,.journal .j-bar select,.journal input[type=date],.journal input[type=text],
.journal select,.journal textarea,.lg-block input,.lg-block select,.lg-block textarea,
.ex-filter-grid select,.ex-two-select select,.ex-ledger-head select,.ob-controls select,.ob-card select,
.lot-account-fields input:not([type=checkbox]),.lot-account-fields textarea,.lot-account-fields select {
  min-height:46px; background:#0c111e; color:var(--ink); border:1px solid #3c445c;
  border-radius:10px; font-size:16px; padding:11px 12px; min-width:0;
}
label,.journal label,.lot-account-fields label,.ex-filter-grid label,.ex-two-select label { font-size:14px; color:#b9bdd4; }
select { padding-right:32px; }
.btn,.chip,.lg-button,.journal .j-btn,.journal .j-pill,.lot-account-btn {
  font-size:14px; line-height:1.35; font-weight:650; min-height:44px; padding:10px 14px;
  border:1px solid #394058; border-radius:10px; color:var(--ink); background:#1a2032;
}
.btn.go,.chip[aria-pressed=true],.lg-button.primary,.journal .j-btn.primary,.lot-account-btn.primary {
  background:var(--lamp); border-color:var(--lamp); color:#0c1227; box-shadow:none;
}
.btn.go:hover,.lg-button.primary:hover,.journal .j-btn.primary:hover { background:#f596a9; }
.journal input:focus,.journal select:focus,.journal textarea:focus { border-color:var(--lamp); outline-color:var(--lamp); }
.ins-link,.ins-link-btn { min-height:42px; padding:9px 13px; color:var(--lamp); background:#181d2e; border-color:#343c56; font-size:14px; }

/* Navigation and section tabs share the same visual grammar. */
nav.lot-nav[aria-label="Main"] { top:0; bottom:auto; background:#101420f5; backdrop-filter:blur(18px); border-bottom:1px solid #2a3043; box-shadow:none; overflow:visible!important; }
nav.lot-nav .lot-nav-toggle { min-height:var(--site-header); padding:12px max(20px,calc((100vw - 1112px)/2)); }
nav.lot-nav .lot-nav-symbol { font-size:23px; width:25px; color:var(--lamp); }
nav.lot-nav .lot-nav-current { font-size:14px; font-weight:650; letter-spacing:.01em; }
nav.lot-nav .lot-nav-panel { background:#111624; border-color:var(--line); padding:20px max(20px,calc((100vw - 1112px)/2)); gap:24px; }
nav.lot-nav .lot-nav-section h2 { font:650 11px/1.4 var(--body); letter-spacing:.1em; color:#9ba1c1; }
nav.lot-nav[aria-label="Main"] .lot-nav-section a { padding:11px 13px!important; min-height:44px; font:550 14px/1.5 var(--body)!important; color:#d2d5e4; border:0; }
nav.lot-nav[aria-label="Main"] .lot-nav-section a[aria-current=page] { background:#1c2236; color:var(--lamp); box-shadow:none; }
.lot-nav-backdrop { background:#0008; backdrop-filter:blur(3px); }
.jump,.lot-jump,.rb-jump,.lg-tabs { position:sticky; top:calc(var(--site-header) + env(safe-area-inset-top,0px)); bottom:auto; padding:10px 0; background:var(--room); border:0; box-shadow:none; max-width:100%; margin-bottom:18px; }
nav.lot-jump,nav.rb-jump { left:auto; right:auto; justify-content:flex-start; z-index:15; flex-direction:row; width:100%; }
.jump button,.lot-jump a,.rb-jump a,.mv-tabs button,.mv-switches button,.ob-tabs > button,.lg-tabs > .lg-button {
  border:1px solid #333a4e; background:#171c2b; border-radius:9px; color:#b7bcd3;
  font:600 14px/1.35 var(--body); min-height:42px; padding:10px 13px; box-shadow:none;
}
.mv-tabs button[aria-pressed=true],.mv-switches button[aria-pressed=true],.ob-tabs > button[aria-pressed=true],.lg-tabs > .lg-button.selected {
  background:#222a3f; border-color:#5e6899; color:#faadbc; box-shadow:none;
}

/* Chart chrome; preserve data colors where they convey a second series. */
.ins-years { gap:7px; }
.ins-year { min-width:29px; flex-basis:29px; }
.ins-year-label { font-size:11px; }
.ins-y-band { background:#4e5e8e; }
.ins-y-mine { background:var(--lamp); }
.ins-chart-legend { font-size:13px; }
.ins-month { background:#171c2c; border-color:#30364a; border-radius:9px; padding:12px; }
.ins-month span:first-child { font-size:13px; }
.ins-month b { font-size:23px; font-weight:700; }
.ins-weekday b,.ins-weekday small { font-size:12px; }
.ins-weekday i { background:#bd6e7e; }
.ins-era { background:#161b2c; border-color:#2d354b; min-height:52px; font-size:13px; }
.ins-bar-row { min-height:42px; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 38px; }
.ins-bar-label { font-size:14px; }
.ins-bar-row b { font-size:13px; }
.ins-bar-track { height:6px; background:#2a3146; }
.ins-bar-track i { background:#ca6c7f; }
.ins-ranking-grid .ins-panel { background:transparent; border:0; border-radius:0; padding:0; }
.ins-ranking-grid { gap:28px; }
.ins-luck-row { min-height:46px; font-size:14px; border-color:var(--line); padding:9px 2px; }
.ins-luck-row b { font-size:13px; }
.ins-ring-card { background:#14192a; border-color:#293044; border-radius:10px; padding:15px 10px; }
.ins-ring { width:min(128px,100%); }
.ins-ring::before { background:#14192a; inset:10px; }
.ins-ring-card strong { font-size:14px; font-weight:600; }
.ins-ring-card small { font-size:12px; }
.ins-ring b { font-size:24px; font-weight:750; }
.bars > i > u,.h u,.lot-bar-track i { background:#ca6c7f; }
.ex-filter { background:#111624; border-color:#31384c; }
.ex-filter-grid select { padding-right:28px; }
.ex-map-ranking h3 { color:var(--lamp); }
.ex-song-row { padding-block:11px; }
.ex-rank { font-size:14px; min-height:43px; }
.ex-rank .ex-place-num { font-size:12px; }
.ex-venue-row { min-height:62px; }
.ex-venue-row small { font-size:12px; }
.ex-mini-note,.ex-annotation { font-size:12px; }
.ex-filter-chips button { font-size:12px; }

/* Games, journals and account screens use the same surfaces. */
.lg-mode,.lg-night-grid > div,.lg-match-night,.lg-records > div,.lg-salary-kpis > div,.lg-rules > div {
  background:#151a2b; border-color:#31374b; border-radius:12px;
}
.lg-mode b { font-size:21px; }
.lg-mode > span:nth-child(3),.lg-rules span { font-size:14px; line-height:1.5; color:var(--mute); }
.lg-label,.lg-mode-eyebrow,.lg-date,.lg-scoreline b,.lg-salary-kpis strong,.lg-rules b,.lg-market-price { color:var(--lamp); }
.lg-label,.lg-mode-eyebrow { font-size:12px; letter-spacing:.05em; }
.lg-market-title b { font-size:14px; line-height:1.45; }
.lg-market-title small,.lg-salary-kpis small,.lg-salary-status,.lg-show-row,.lg-market-header { font-size:12px; }
.journal .j-date,.journal .j-label { color:var(--lamp); font-size:12px; }
.journal .j-card p { font-size:15px; }
.journal .j-preview-venue,.journal .j-info,.journal .j-vchoice { background:#151a2b; border-color:#31374b; }
.journal .j-vchoice:has(input:checked) { background:#1b2134; border-color:#bc6173; }
.journal .j-vchoice input { accent-color:var(--lamp); }
.journal .j-card .j-actions { border-color:var(--line); }
.journal .j-notice strong { color:var(--lamp); }
.lot-account-btn.primary { color:#0c1227; }

/* Detail sheet: readable dates, an accessible close action, and scoped scrolling. */
.ins-modal { background:#121727; border-color:#3e465f; border-radius:16px; }
.ins-modal header { display:flex; padding:22px 24px 14px; align-items:flex-start; gap:16px; }
.ins-modal header > div { min-width:0; }
.ins-modal h2 { font-size:clamp(23px,3.5vw,30px); line-height:1.25; letter-spacing:-.03em; }
.ins-modal header p { font-size:14px; line-height:1.55; }
.ins-modal-close { min-height:44px; min-width:44px; background:#21283e; border-color:#3d465e; }
.ins-modal-tools { padding:6px 24px 16px; align-items:flex-end; }
.ins-modal-tools label { font-size:12px; }
.ins-modal-tools input { background:#0e1322; font-size:16px; min-height:46px; }
.ins-result-link { font-size:14px; padding:13px 9px; gap:14px; }
.ins-result-count { font-size:12px; }
.ins-tooltip { font-size:13px; font-weight:500; padding:12px 14px; line-height:1.5; max-width:min(330px,calc(100vw - 24px)); }

@media(max-width:900px) {
  .lot-scope-controls { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); }
  .lot-scope-group:first-child { grid-column:1/-1; }
  .ins-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .wrap { padding:0 16px 36px; }
  .wrap > header { min-height:78px; padding:17px 0; }
  .wrap > header .mark { font-size:26px; }
  .lot-kicker { font-size:9px; margin-top:6px; }
  #view h1,.title { font-size:32px; }
  #view .ins-hero,#view .lot-hero,#view .rb-hero,#view .mv-brand,#view .mv-head,
  #view .ob-head,#view .ex-hero,#view .fr-hero,#view .journal .j-head,#view .lg-intro { padding:0 0 18px; margin-bottom:18px; }
  #view .ins-hero h1,#view .lot-hero h1,#view .rb-hero h1,#view .mv-brand strong,
  #view .mv-head h1,#view .ob-head > strong,#view .ex-hero h1,#view .fr-hero h1,
  #view .journal .j-head h1,#view .lg-intro h1 { font-size:32px; line-height:1.16; }
  .lot-scope { padding:14px; margin-bottom:24px; }
  .lot-scope-top { margin-bottom:12px; }
  .lot-scope-controls { gap:12px; }
  .lot-segment button { padding:9px 7px; }
  .lot-scope-group:nth-child(2) .lot-segment button { padding-inline:4px; white-space:nowrap; }
  .panel,.ins-panel,.mv-panel,.ob-card,.ex-card,.fr-card,.lg-block,.journal .j-card,
  .journal .j-editor,.journal .j-share,.journal .j-info,.lot-account-panel { padding:17px; }
  .grid,.ins-grid,.lot-card-grid,.rb-grid,.mv-grid,.ob-grid,.ex-grid,.fr-panels { gap:14px; }
  .ins-kpis,.ex-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ins-card { padding:15px; min-height:137px; }
  .ins-card strong { font-size:29px; }
  .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tiles > div,.tiles > div:first-child,.tiles a.ex-tile { padding:14px; }
  .tiles b,.tiles a.ex-tile b { font-size:29px; }
  .lot-stat,.rb-stat,.mv-metric,.ob-metric,.ex-kpi,.fr-stat,.lg-metric,.journal .j-metric { padding:14px; }
  .ins-grid,.ins-ranking-grid,.ins-luck-grid { grid-template-columns:minmax(0,1fr); }
  .ins-ranking-grid,.ins-luck-grid { gap:24px; }
  .ins-panel-head { flex-wrap:wrap; }
  .ins-panel-head > div { min-width:0; flex:1 1 220px; }
  .ins-hint { white-space:normal; }
  .ins-month-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
  .ins-month { padding:12px 10px; }
  .ins-ring b { font-size:22px; }
  .ins-bar-row { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 34px; gap:8px; }
  .ins-era { grid-template-columns:30px minmax(0,1fr) minmax(0,.7fr) 56px; gap:6px; padding:11px 9px; font-size:12px; }
  .ins-modal { width:100%; height:100dvh; max-height:100dvh; border:0; border-radius:0; }
  .ins-modal header { padding:18px 16px 12px; }
  .ins-modal-tools { padding:8px 16px 14px; flex-wrap:wrap; gap:8px; }
  .ins-modal-tools label { flex:1 1 100%; }
  .ins-modal-tools input { max-width:none; }
  .ins-result-count { padding:0; }
  .ins-result-link { display:grid; grid-template-columns:minmax(0,1fr) 16px; gap:3px 12px; }
  .ins-result-link b { grid-column:1; }
  .ins-result-link span:nth-child(2) { grid-column:1; font-size:13px; color:var(--mute); }
  .ins-result-link span:last-child { grid-column:2; grid-row:1/3; }
  nav.lot-nav .lot-nav-panel { grid-template-columns:1fr; padding:16px; gap:15px; max-height:calc(85dvh - var(--site-header)); }
  nav.lot-nav .lot-nav-toggle { padding:12px 16px; }
  .ex-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .ex-kpi { min-height:125px; }
  .ex-compare-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ex-focus { grid-template-columns:minmax(0,1fr); }
  .lot-account-top h1 { font-size:32px; }
  .lg-mode-grid { grid-template-columns:minmax(0,1fr); }
  .lg-mode { min-height:145px; padding:17px; }
}
@media(max-width:370px) {
  .wrap { padding-inline:12px; }
  .lot-scope { padding:12px; }
  .lot-scope-controls { grid-template-columns:minmax(0,1fr); gap:12px; }
  .lot-scope-group:first-child { grid-column:auto; }
  .ins-card { padding:13px; }
  .ins-card-label { font-size:13px; }
  .ins-ring { width:105px; }
  .ins-ring b { font-size:19px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
}

/* Compact filters keep the selected view visible while giving content room. */
.lot-page-path { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:-8px 0 9px; min-height:40px; }
.lot-return-link,.lot-return-home { display:inline-flex; align-items:center; min-height:40px; gap:5px; color:#a9aeca; font-size:13px; font-weight:550; text-decoration:none; }
.lot-return-link svg { transform:rotate(180deg); flex:none; width:16px; height:16px; }
.lot-return-link:hover,.lot-return-home:hover { color:var(--lamp); }
.lot-scope-disclosure { min-width:0; }
.lot-scope-summary { display:none; }
.lot-scope-summary::-webkit-details-marker { display:none; }
.lot-scope-summary::marker { content:''; }
.lot-scope-body { min-width:0; }
.lot-scope-summary-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.lot-scope-summary-heading > strong { color:#c9cdde; font-size:13px; line-height:1.4; font-weight:600; }
.lot-scope-toggle-label { display:inline-flex; align-items:center; justify-content:flex-end; gap:7px; min-height:44px; color:var(--lamp); font-size:13px; font-weight:650; }
.lot-scope-toggle-label svg { transform:rotate(90deg); transition:transform .15s ease; }
.lot-scope-disclosure[open] .lot-scope-toggle-label svg { transform:rotate(-90deg); }
.lot-scope-selection { display:flex; flex-wrap:wrap; align-items:center; gap:5px; min-width:0; }
.lot-filter-chip { display:inline-flex; align-items:center; min-height:25px; padding:3px 8px; color:#e6c8ce; background:#1b2133; border:1px solid #30374d; border-radius:6px; font-size:12px; font-weight:550; line-height:1.35; }
.lot-scope-compact-meta { display:block; margin-top:8px; color:#9ba2c2; font-size:12px; line-height:1.5; }
[data-lot-detail] { position:relative; cursor:pointer; transition:background .15s,border-color .15s; }
[data-lot-detail]:hover { background:#181d2c; border-color:#576385; }
[data-lot-detail]:focus-visible { outline:2px solid var(--lamp); outline-offset:3px; }
.lot-stat[data-lot-detail]::after,.rb-stat[data-lot-detail]::after,.mv-metric[data-lot-detail]::after,.ob-metric[data-lot-detail]::after { content:'View details'; display:block; color:#c18692; font-size:11px; line-height:1.4; font-weight:550; margin-top:9px; }
.rb-year-button { display:inline-flex; align-items:center; min-height:32px; padding:2px 0; border:0; border-radius:3px; background:transparent; color:var(--lamp); font-family:inherit; font-size:inherit; font-weight:650; line-height:inherit; text-decoration:underline; text-decoration-color:#475375; text-underline-offset:4px; cursor:pointer; }
.rb-year-button:hover { background:transparent; color:#fcb3c1; text-decoration-color:currentColor; }
@media(max-width:700px) {
  .lot-page-path { margin-top:-5px; margin-bottom:7px; }
  .lot-scope { padding:6px 14px 13px; margin-bottom:21px; }
  .lot-scope-summary { display:block; list-style:none; cursor:pointer; border-radius:8px; outline-offset:5px; }
  .lot-scope-disclosure[open] .lot-scope-body { padding-top:16px; margin-top:14px; border-top:1px solid #2e3548; }
  .lot-scope-body .lot-scope-top > strong { display:none; }
  .lot-scope-body .lot-scope-top { margin-bottom:15px; }
  .lot-scope-body .lot-scope-date { line-height:1.5; font-size:12px; }
  .lot-scope-body .lot-scope-meta { font-size:12px; }
  .lot-scope-group:nth-child(3) .lot-segment button { padding-inline:5px; white-space:nowrap; }
}

/* Nested statistics: grouped counts lead to matching performances and shows. */
.ins-detail-back { display:inline-flex; align-items:center; gap:6px; border:1px solid #394057; border-radius:8px; background:#1d2338; color:#e5abb6; min-height:40px; padding:8px 12px; margin-bottom:13px; font:600 13px/1.4 var(--body); cursor:pointer; }
.ins-detail-back:hover { background:#272d41; border-color:#606a9d; }
.ins-modal .ins-detail-summary { margin-top:11px; padding:9px 11px; border-radius:8px; background:#191f2f; color:#e8adb9; font:600 13px/1.5 var(--body); }
.ins-modal-tools { display:flex; flex-wrap:wrap; gap:11px; align-items:flex-end; }
.ins-modal-tools > label { flex:1 1 250px; min-width:0; }
.ins-modal-tools .ins-sort-label { flex:0 1 180px; min-width:150px; }
.ins-detail-sort { display:block; width:100%; margin-top:5px; min-height:46px; padding:10px 30px 10px 11px; background:#0e1322; border:1px solid #3f4862; border-radius:9px; color:var(--ink); font-size:16px; }
.ins-detail-export,.ins-detail-more { display:inline-flex; justify-content:center; align-items:center; gap:6px; min-height:44px; padding:10px 13px; border:1px solid #3e4761; border-radius:9px; background:#1b2134; color:#f3adbb; font:600 13px/1.4 var(--body); cursor:pointer; }
.ins-detail-export:hover,.ins-detail-more:hover { border-color:#b8717f; background:#232b44; }
.ins-detail-export:disabled,.ins-detail-more:disabled { opacity:.5; cursor:not-allowed; }
.ins-detail-more[hidden] { display:none; }
.ins-group-row { display:flex; align-items:center; justify-content:space-between; gap:20px; width:100%; min-height:71px; padding:13px 12px; border:0; border-bottom:1px solid #2e3549; border-radius:6px; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.ins-group-row:hover { background:#1b2239; }
.ins-group-row.ins-fact-row { cursor:default; border-radius:0; }
.ins-group-row.ins-fact-row:hover { background:transparent; }
.ins-detail-method { margin-top:10px; border:1px solid #32394d; border-radius:8px; padding:0 10px; }
.ins-detail-method > summary { padding:10px 0; cursor:pointer; color:#e0aab5; font-size:12px; font-weight:600; }
.ins-modal .ins-detail-method > p { max-height:150px; overflow-y:auto; padding:0 3px 12px 0; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.mv-row > strong[data-lot-detail] { display:inline-flex; align-items:center; justify-content:flex-end; min-width:44px; min-height:44px; padding:8px; border-radius:8px; }

/* v16 — consistent, readable chart and table detail controls. */
.lot-table-detail,.ob-line > b[data-lot-detail],.ob-rotation-row > b[data-lot-detail],.ob-rotation-row > small[data-lot-detail],.ex-table-detail { display:inline-flex; align-items:center; justify-content:flex-end; gap:5px; min-width:44px; min-height:44px; padding:8px; border:0; border-radius:8px; background:transparent; color:var(--lamp); font:inherit; font-weight:650; line-height:1.3; text-align:right; vertical-align:middle; }
.lot-table-detail i,.lot-bar-detail i,.ex-table-detail i { font-size:.8em; font-style:normal; opacity:.7; }
.h.lot-hbar { padding:0; }
.h.lot-hbar > a,.h.lot-hbar > span:first-child { min-height:44px; display:flex; align-items:center; }
.h .lot-bar-detail { grid-column:2 / -1; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; min-width:0; min-height:44px; padding:6px; border:0; border-radius:8px; background:transparent; color:var(--lamp); font:inherit; text-align:right; }
.h .lot-bar-detail .lot-hbar-track { display:block; height:9px; border-radius:3px; background:var(--off); }
.lot-heat-scroll,.lot-map-scroll { max-width:100%; overflow-x:auto; padding:4px 2px 8px; scrollbar-width:thin; }
.lot-heat-scroll .heat { min-width:366px; gap:4px; }
.lot-heat-scroll .hc { min-height:24px; aspect-ratio:auto; }
.lot-map-scroll .tmap { min-width:366px; gap:4px; }
.lot-map-scroll .tm { min-height:28px; display:flex; align-items:center; justify-content:center; }
.lot-matrix-details .hc { width:100%; min-height:28px; }
.lot-matrix-details .mxn { min-height:28px; display:flex; align-items:center; }
.sv g[data-lot-detail]:focus-visible { outline:none; }
.sv g[data-lot-detail]:focus-visible .hit { fill:var(--lamp); fill-opacity:.18; stroke:var(--lamp); stroke-width:1; vector-effect:non-scaling-stroke; }
.sv g[data-lot-detail]:hover .hit { fill:var(--lamp); fill-opacity:.08; }
.ex-discovery-svg [data-lot-detail] { fill:var(--lamp); stroke:var(--bg); stroke-width:2; vector-effect:non-scaling-stroke; }
.ex-discovery-svg [data-lot-detail]:focus-visible { outline:none; stroke:var(--ink); stroke-width:4; }
.ex-discovery-svg .ex-point-hit { fill:transparent; stroke:transparent; }
.ex-discovery-svg [data-lot-detail]:focus-visible .ex-point-hit { fill:var(--lamp); fill-opacity:.12; stroke:var(--lamp); }
.ex-rare-item .ex-table-detail { flex:none; }
.ex-compare-strip > [data-lot-detail] { border-radius:10px; }
@media (max-width:700px) {
  .lot-table-detail,.ex-table-detail { padding:8px 6px; }
  .h.lot-hbar { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 38px; }
}

/* v17 — an exact point selector for charts that are too dense to tap easily. */
.lot-chart-picker { min-width:0; margin:0 0 12px; padding:12px; border:1px solid #2d3345; border-radius:12px; background:#101523; }
.lot-chart-picker > label { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:8px; color:#c9cdde; font-size:12px; font-weight:650; }
.lot-chart-picker > label small { color:#8a92b8; font-size:11px; font-weight:500; white-space:nowrap; }
.lot-chart-picker-controls { display:flex; align-items:stretch; gap:8px; min-width:0; }
.lot-chart-picker-controls select { flex:1 1 0; width:0; min-width:0; min-height:44px; padding:10px 30px 10px 11px; background:#0d111f; border:1px solid #373e54; border-radius:8px; color:var(--ink); font:inherit; font-size:14px; text-overflow:ellipsis; }
.lot-chart-picker-controls button { flex:none; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:10px 12px; border:1px solid #3e4760; border-radius:8px; background:#1b2134; color:#faa6b7; font-size:13px; font-weight:650; white-space:nowrap; }
.lot-chart-picker-controls button:hover { background:#242c43; border-color:#b96e7d; }
.lot-chart-picker-controls :focus-visible { outline:2px solid var(--lamp); outline-offset:3px; }
@media (max-width:700px) {
  .lot-chart-picker { padding:10px; }
  .lot-chart-picker-controls { flex-wrap:wrap; }
  .lot-chart-picker-controls select { flex-basis:100%; width:100%; }
  .lot-chart-picker-controls button { width:100%; }
}
.ins-group-main { flex:1; min-width:0; }
.ins-group-main > strong { display:block; color:#e3e6f0; font-size:15px; font-weight:650; line-height:1.4; overflow-wrap:anywhere; }
.ins-group-main > small { display:block; margin-top:5px; color:#a0a6c4; font-size:12px; line-height:1.45; }
.ins-group-count { flex:none; max-width:35%; text-align:right; }
.ins-group-count > b { display:block; font:750 22px/1.1 var(--display); color:#e996a6; font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
.ins-group-count > small { display:block; margin-top:5px; color:#9ba1c1; font-size:11px; line-height:1.3; }
.ins-modal-results .ins-show-row { display:grid; grid-template-columns:100px minmax(0,1fr) auto; align-items:start; gap:13px; padding:15px 10px; border-color:#2e3549; }
.ins-modal-results .ins-show-row .ins-show-date { color:#d9ddea; font-size:13px; line-height:1.5; font-weight:650; white-space:normal; grid-column:auto; grid-row:auto; }
.ins-modal-results .ins-show-row .ins-show-main { display:block; min-width:0; grid-column:auto; grid-row:auto; color:#dcdfea; font-size:14px; line-height:1.5; }
.ins-show-main > b,.ins-show-main > strong { display:block; white-space:normal; font-weight:600; overflow-wrap:anywhere; }
.ins-show-main > small { display:block; color:#a1a7c6; font-size:12px; line-height:1.5; margin-top:3px; }
.ins-show-main .ins-show-highlights { display:block; margin-top:7px; color:#dda6b1; font-size:12px; line-height:1.65; white-space:normal; overflow-wrap:anywhere; }
.ins-modal-results .ins-show-row .ins-show-side { display:flex; flex-direction:column; align-items:flex-end; gap:7px; min-width:0; max-width:130px; grid-column:auto; grid-row:auto; }
.ins-attended-badge { display:inline-flex; align-items:center; padding:3px 7px; color:#e9b2bd; background:#242c43; border:1px solid #414963; border-radius:5px; font-size:11px; font-weight:600; line-height:1.35; white-space:nowrap; }
.ins-show-row .ins-show-side .ins-match-count { color:#989fc0; font-size:12px; line-height:1.4; text-align:right; white-space:normal; }
.ins-modal .ins-detail-footer { max-width:none; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:0; padding:14px 22px; border-top:1px solid #2e3549; background:#13192a; }
.ins-detail-status { flex:1 1 160px; margin:0; color:#a8aeca; font-size:12px; line-height:1.55; }
.ins-detail-footer .ins-detail-more { margin-left:auto; }

/* Friend comparisons expose each fan's number as its own touch target. */
.fr-metric-header,.fr-metric-row { grid-template-columns:minmax(100px,1.6fr) 58px minmax(30px,.8fr) 58px 44px; gap:7px; }
.fr-metric-header { padding:5px 3px 11px; color:#a7adc9; border-color:#373e54; font:600 11px/1.4 var(--body); letter-spacing:.02em; }
.fr-metric-header > span:nth-child(2),.fr-metric-header > span:nth-child(4) { overflow-wrap:anywhere; text-align:center; text-transform:none; }
.fr-metric-header > span:nth-child(2) { color:#e18fa0; }
.fr-metric-header > span:nth-child(4) { color:#9ba5d6; }
.fr-metric-row { padding:7px 3px; cursor:default; border-color:#2b3246; background:transparent; }
.fr-metric-row:hover { background:#141a2b; }
.fr-metric-row button.fr-metric-title,.fr-profile-count,.fr-compare-open { display:flex; align-items:center; justify-content:center; min-height:44px; min-width:0; border:0; border-radius:7px; padding:5px 2px; background:transparent; color:#ddbbc2; cursor:pointer; }
.fr-metric-row button.fr-metric-title { flex-direction:column; align-items:flex-start; justify-content:center; text-align:left; color:#e0e3ec; font:600 14px/1.35 var(--body); }
.fr-metric-row .fr-metric-title small { display:block; margin-top:4px; font-size:12px; line-height:1.4; color:#9ea5c4; font-weight:400; }
.fr-profile-count { font:700 17px/1.2 var(--display); font-variant-numeric:tabular-nums; letter-spacing:-.035em; }
.fr-profile-count > strong { font:inherit; color:inherit; text-align:center; }
.fr-profile-count:nth-child(2) { color:#e18fa0; }
.fr-profile-count:nth-child(4) { color:#9ba5d6; }
.fr-compare-open { min-width:44px; color:#b0b5ce; font-size:19px; }
.fr-metric-row button.fr-metric-title:hover,.fr-profile-count:hover,.fr-compare-open:hover { background:#242a3d; color:#c7d1f5; }
.fr-metric-row button:focus-visible { outline:2px solid var(--lamp); outline-offset:2px; background:#202637; }
.fr-dual i { background:#d27789; }
.fr-dual i:nth-child(2) { background:#848fc9; }
@media(max-width:640px) {
  .fr-metric-header,.fr-metric-row { grid-template-columns:minmax(90px,1fr) 52px 52px 44px; gap:5px; }
  .fr-metric-header > span:nth-child(3),.fr-metric-row .fr-center-bar { display:none; }
  .fr-metric-row button.fr-metric-title { font-size:14px; }
  .fr-metric-row .fr-metric-title small { font-size:11px; }
  .fr-profile-count { font-size:16px; }
}
@media(max-width:700px) {
  .ins-modal-tools > label { flex:1 1 100%; }
  .ins-modal-tools .ins-sort-label { flex:1 1 160px; min-width:0; }
  .ins-detail-export { flex:0 0 auto; min-height:46px; }
  .ins-modal-results { padding:6px 10px 16px; }
  .ins-group-row { gap:13px; padding:14px 7px; min-height:75px; }
  .ins-group-main > strong { font-size:14px; }
  .ins-group-count > b { font-size:21px; }
  .ins-modal-results .ins-show-row { grid-template-columns:minmax(0,1fr) auto; column-gap:10px; row-gap:5px; padding:14px 7px; }
  .ins-modal-results .ins-show-row .ins-show-date { grid-column:1; grid-row:1; font-size:13px; }
  .ins-modal-results .ins-show-row .ins-show-main { grid-column:1/-1; grid-row:2; }
  .ins-modal-results .ins-show-row .ins-show-side { grid-column:2; grid-row:1; flex-direction:row; flex-wrap:wrap; justify-content:flex-end; align-items:center; max-width:180px; }
  .ins-show-main .ins-show-highlights { font-size:12px; }
  .ins-modal .ins-detail-footer { padding:13px 16px max(13px,env(safe-area-inset-bottom,0px)); gap:9px; }
  .ins-detail-status { flex-basis:100%; }
  .ins-detail-footer .ins-detail-more { margin-left:0; width:100%; }
}

.ins-row-end{display:none}.ins-result-link span:nth-child(2){min-width:0}.ob-head>strong>span{margin-left:.18em}
@media(max-width:700px){#showY{min-width:130px}.ins-result-link span:nth-child(2){grid-column:1/-1;grid-row:2}.ins-result-link{grid-template-columns:minmax(0,1fr)}}

/* v17 — one compact section picker for long pages. */
.lot-page-sections {
  position:sticky; top:calc(var(--site-header) + env(safe-area-inset-top,0px)); z-index:16;
  display:flex; align-items:center; gap:8px; width:100%; min-width:0;
  padding:10px 0; margin:0 0 20px; background:var(--room);
  border-bottom:1px solid var(--line);
}
.lot-page-section-label { flex:none; margin:0 8px 0 0; color:var(--mute); font-size:12px; font-weight:650; }
.lot-page-sections select {
  flex:1 1 240px; min-width:0; max-width:460px; width:100%; min-height:44px;
  margin:0; padding:10px 30px 10px 12px; border:1px solid #383f56; border-radius:9px;
  background:#141929; color:var(--ink); font:600 14px/1.3 var(--body);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.lot-page-sections button {
  flex:0 0 auto; min-height:44px; min-width:44px; margin:0; padding:9px 12px;
  border:1px solid #383f56; border-radius:9px; background:#141929;
  color:var(--ink); font:650 13px/1.3 var(--body); cursor:pointer;
}
.lot-page-sections .lot-page-go { border-color:#3f4862; background:#1b2235; color:#c8d2f5; }
.lot-page-sections .lot-page-filters { color:var(--lamp); }
.lot-page-sections button:hover { border-color:#d07688; background:#23293b; }
.lot-page-sections select:focus-visible,.lot-page-sections button:focus-visible { outline:2px solid var(--lamp); outline-offset:3px; }
.lot-sections-replaced { display:none!important; }
.lot-page-anchor { scroll-margin-top:calc(var(--site-header) + env(safe-area-inset-top,0px) + 90px); }
.lot-page-anchor:focus { outline:none; }
.lot-page-anchor:focus-visible { outline:2px solid var(--lamp); outline-offset:6px; border-radius:3px; }
@media (max-width:700px) {
  .lot-page-sections { gap:7px; padding:8px 0; margin-bottom:18px; }
  .lot-page-section-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .lot-page-sections select { flex-basis:0; max-width:none; font-size:16px; padding-left:10px; }
  .lot-page-sections button { padding-inline:10px; }
}

/* v17 — compact local filters with visible applied constraints. */
.ex-filter { padding:14px 16px; }
.ex-filter-disclosure { min-width:0; }
.ex-filter-summary { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:52px; list-style:none; cursor:pointer; border-radius:8px; }
.ex-filter-summary::-webkit-details-marker { display:none; }
.ex-filter-summary::marker { content:''; }
.ex-filter-summary-copy { display:block; min-width:0; }
.ex-filter-summary-copy > strong { display:block; color:var(--ink); font-size:16px; font-weight:700; line-height:1.4; }
.ex-filter-overview { display:flex; flex-wrap:wrap; align-items:center; gap:3px 12px; margin-top:5px; color:var(--mute); font-size:12px; line-height:1.5; }
.ex-filter-overview > span:first-child { color:var(--lamp); font-weight:650; }
.ex-filter-chevron { flex:none; color:var(--lamp); transition:transform .15s ease; }
.ex-filter-disclosure[open] .ex-filter-chevron { transform:rotate(180deg); }
.ex-filter-summary:focus-visible { outline:2px solid var(--lamp); outline-offset:4px; }
.ex-filter-body { padding-top:15px; margin-top:12px; border-top:1px solid var(--line); }
.ex-filter-help { margin:0 0 15px; color:var(--mute); font-size:13px; line-height:1.55; }
.ex-filter-grid select { min-height:44px; }
.ex-filter .ex-search { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.ex-filter .ex-search input { min-width:0; width:100%; }
.ex-filter .ex-search button { min-height:44px; }
.ex-filter-applied { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }
.ex-filter-applied-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ex-filter-applied-heading > span { color:var(--mute); font-size:12px; font-weight:600; }
.ex-filter-reset { flex:none; min-height:44px; padding:7px 11px; border:1px solid #32394d; border-radius:9px; background:transparent; color:var(--lamp); font:inherit; font-size:12px; font-weight:650; }
.ex-filter .ex-filter-chips { margin-top:5px; gap:7px; }
.ex-filter .ex-filter-chips button { display:inline-flex; align-items:center; gap:7px; min-height:44px; max-width:100%; padding:8px 11px; border-radius:9px; white-space:normal; overflow-wrap:anywhere; text-align:left; line-height:1.4; font-family:inherit; }
.ex-filter .ex-filter-chips button > span { flex:none; font-size:17px; color:#c8959f; }
.ex-filter-context { margin:9px 0 0; color:var(--mute); font-size:12px; line-height:1.5; }
@media (max-width:700px) {
  .ex-filter { padding:12px 14px; }
  .ex-filter-summary { min-height:56px; }
  .ex-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 10px; }
  .ex-filter-grid label { gap:6px; }
  .ex-filter-grid select { font-size:16px; }
  .ex-filter .ex-search input { font-size:16px; }
}
@media (prefers-reduced-motion:reduce) {
  .ex-filter-chevron { transition:none; }
}

@media(max-width:700px) { .lot-chart-picker-controls select { font-size:16px; } }

/* v18 — shared table reading and overflow cues. Keep existing column layouts. */
.tbl,.lot-table-scroll,.rb-table-wrap,.mv-table-wrap,
.ex-table-scroll,.ins-table-scroll,.lg-table-scroll,.fr-table-scroll {
  max-width:100%; min-width:0; overscroll-behavior-inline:contain;
  scrollbar-width:thin; scrollbar-color:#576385 #141929;
}
.tbl table,.lot-table,.rb-table,.mv-table,
.ex-table-scroll table,.ins-table,.lg-table,.fr-table {
  font-family:var(--body,system-ui,sans-serif); font-size:14px; line-height:1.45;
  font-variant-numeric:tabular-nums;
}
.tbl th,.lot-table th,.rb-table th,.mv-table th,
.ex-table-scroll th,.ins-table th,.lg-table th,.fr-table th {
  padding-block:12px; background:#191e30; color:#c3c7db;
  border-color:#32394e; font-size:14px; line-height:1.4;
  font-weight:650; letter-spacing:0; text-transform:none; vertical-align:bottom;
}
.tbl td,.lot-table td,.rb-table td,.mv-table td,
.ex-table-scroll td,.ins-table td,.lg-table td,.fr-table td {
  padding-block:12px; border-color:#2b3245;
  line-height:1.45; vertical-align:middle;
}
.lot-table th:first-child { background:#191e30; }
.lot-table td:first-child { background:#141929; }
.lot-table-region { scroll-padding-inline:10px; }
.lot-table-region:focus-visible {
  outline:2px solid var(--lamp,#ed788f); outline-offset:3px;
}
.lot-table-hint {
  display:flex; align-items:center; gap:8px; width:fit-content; max-width:100%;
  margin:0 0 9px; color:#adb2cc; font-size:13px; font-weight:550; line-height:1.45;
}
.lot-table-hint::before {
  content:'\2194'; flex:none; color:var(--lamp,#ed788f); font-size:19px; line-height:1;
}
.lot-table-empty {
  margin:10px 0 0; padding:15px 16px; background:#14192a;
  border:1px solid #2e3549; border-radius:10px; color:#b4b9d1;
  font-size:14px; line-height:1.6;
}
/* Empty bodies get one message outside the scroller; authored placeholders stay. */
.lot-table-region.lot-table-no-rows { display:none; }
.lot-table-region.lot-table-no-data table {
  min-width:0!important; width:100%!important; max-width:100%!important;
}
.lot-table-region.lot-table-no-data thead { display:none; }
.lot-table-region.lot-table-no-data td,
.lot-table-region.lot-table-no-data th {
  white-space:normal; overflow-wrap:anywhere; text-align:left;
}
.lot-table-region.lot-table-no-data td:first-child,
.lot-table-region.lot-table-no-data th:first-child {
  position:static; min-width:0; max-width:none;
}
@media (max-width:700px) {
  .lot-table-hint { margin-bottom:8px; }
  .lot-table-empty { padding:14px; }
}

/* v18 Songs and Shows: scoped styles for the catalogue lists. */
.lot-catalog { min-width:0; }
.lot-catalog-heading { margin:0 0 20px; }
.lot-catalog-heading h1 { margin:0 0 8px; font:750 clamp(30px,4.5vw,40px)/1.15 var(--display); letter-spacing:-.04em; }
.lot-catalog-heading p { margin:0; max-width:64ch; color:var(--mute); font-size:14px; line-height:1.6; }
.lot-catalog-controls { padding:17px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.lot-catalog-controls label { display:grid; gap:7px; min-width:0; }
.lot-catalog-controls label > span,.lot-catalog-filter legend { color:#c4c8db; font-size:14px; font-weight:650; line-height:1.3; }
.lot-catalog-controls input,.lot-catalog-controls select { width:100%; min-width:0; min-height:46px; font-size:16px; }
.lot-catalog-search small { color:var(--mute); font-size:14px; font-weight:400; line-height:1.45; }
.lot-catalog-options { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); align-items:end; gap:15px; margin-top:15px; }
.lot-catalog-filter { margin:0; padding:0; min-width:0; border:0; }
.lot-catalog-filter legend { margin:0 0 7px; padding:0; }
.lot-catalog-filter > div { display:flex; align-items:stretch; gap:6px; }
.lot-catalog-filter .chip { flex:1; min-width:0; min-height:46px; padding:9px 8px; font-size:14px; white-space:nowrap; }
.lot-catalog-sort-note { margin:12px 0 0; color:var(--mute); font-size:14px; line-height:1.5; }
.lot-catalog-show-options { grid-template-columns:minmax(125px,200px) minmax(0,1fr); }
.lot-catalog-show-options > p { margin:0; align-self:center; color:var(--mute); font-size:14px; line-height:1.5; }
.lot-catalog-results-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:14px 0 4px; }
#catalogStatus { flex:1; min-width:0; margin:0; color:#c7cbdd; font-size:14px; line-height:1.5; scroll-margin-top:calc(var(--site-header,64px) + 18px); }
.lot-catalog-reset { flex:none; min-height:44px; padding:9px 0 9px 9px; border:0; background:transparent; color:var(--lamp); cursor:pointer; font:600 14px/1.35 var(--body); text-decoration:underline; text-underline-offset:3px; }
.lot-catalog-list { min-width:0; border-top:1px solid var(--line); }
.lot-catalog-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:18px; min-width:0; min-height:76px; padding:15px 0; text-decoration:none; color:var(--ink); scroll-margin-top:calc(var(--site-header,64px) + 18px); }
.lot-song-row { border-bottom:1px solid var(--line); }
.lot-catalog-main { display:block; min-width:0; }
.lot-catalog-main strong { display:block; color:var(--ink); font-size:16px; line-height:1.4; font-weight:650; overflow-wrap:anywhere; }
.lot-catalog-meta { display:block; margin-top:4px; color:var(--mute); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.lot-catalog-row:hover .lot-catalog-main strong { color:var(--lamp); }
.lot-catalog-row:focus-visible { border-radius:6px; }
.lot-catalog-value { display:block; min-width:64px; max-width:100px; text-align:right; font-variant-numeric:tabular-nums; }
.lot-catalog-value b { display:block; color:var(--lamp); font-size:19px; line-height:1.25; font-weight:700; }
.lot-catalog-value small { display:block; margin-top:3px; color:var(--mute); font-size:14px; line-height:1.35; overflow-wrap:normal; }
.lot-show-row { display:grid; grid-template-columns:minmax(0,1fr) 44px; align-items:center; gap:16px; min-width:0; border-bottom:1px solid var(--line); }
.lot-show-row > .lot-catalog-row { grid-template-columns:120px minmax(0,1fr); gap:18px; }
.lot-show-date { color:#b8bcd3; font-size:14px; font-weight:550; line-height:1.4; font-variant-numeric:tabular-nums; }
.lot-catalog-attendance { width:44px; height:44px; min-width:44px; min-height:44px; scroll-margin-top:calc(var(--site-header,64px) + 18px); }
.lot-catalog-more { padding:10px 0 2px; text-align:center; }
.lot-catalog-more .btn { min-height:46px; }
.lot-catalog-more p { margin:8px 0 0; color:var(--mute); font-size:14px; line-height:1.5; }
.lot-catalog-empty { margin:20px 0; padding:25px 23px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.lot-catalog-empty-mark { display:block; width:34px; height:34px; margin-bottom:14px; border:1px solid #384056; border-radius:50%; color:var(--lamp); text-align:center; font-size:22px; line-height:29px; }
.lot-catalog-empty h2 { margin:0 0 10px; max-width:30ch; color:var(--ink); font:700 22px/1.25 var(--display); letter-spacing:-.025em; overflow-wrap:anywhere; }
.lot-catalog-empty p { margin:0; max-width:68ch; color:var(--mute); font-size:14px; line-height:1.65; }
.lot-catalog-empty-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:20px; }
.lot-catalog-empty-actions .btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; text-align:center; }
@media(max-width:700px) {
  .lot-catalog-heading { margin-bottom:17px; }
  .lot-catalog-controls { padding:14px; }
  .lot-catalog-options { gap:11px; }
  .lot-catalog-options:not(.lot-catalog-show-options) { grid-template-columns:minmax(0,1fr); gap:12px; }
  .lot-catalog-options:not(.lot-catalog-show-options) > label { grid-template-columns:64px minmax(0,1fr); align-items:center; gap:10px; }
  .lot-catalog-filter .chip { padding-inline:6px; }
  .lot-catalog-show-options { grid-template-columns:minmax(0,1fr); gap:12px; }
  .lot-catalog-show-options > label { grid-template-columns:64px minmax(0,1fr); align-items:center; gap:10px; }
  .lot-show-row { gap:13px; }
  .lot-show-row > .lot-catalog-row { grid-template-columns:minmax(0,1fr); gap:5px; }
  .lot-catalog-row { gap:12px; padding-block:14px; }
  .lot-catalog-value { min-width:59px; max-width:85px; }
  .lot-catalog-empty { padding:21px 18px; }
}
@media(max-width:360px) {
  .lot-catalog-options { grid-template-columns:minmax(0,1fr); gap:12px; }
  .lot-catalog-show-options { grid-template-columns:minmax(0,1fr); gap:8px; }
  .lot-catalog-results-head { gap:9px; }
  .lot-catalog-reset { max-width:92px; padding-left:5px; }
  .lot-catalog-value { min-width:51px; max-width:72px; }
}
