.ifr-dialog.ifr-finder {
    --ef-ink: #191c27; --ef-muted: #56616b; --ef-line: #d9dedc;
    --ef-gold: #ffdd6d; --ef-paper: #f7f7f3;
    box-sizing: border-box; position: fixed; inset: 0; width: min(1080px, calc(100vw - 64px));
    max-width: none; max-height: min(860px, calc(100dvh - 64px)); margin: auto; padding: 0;
    border: 0; border-radius: 6px; color: var(--ef-ink); background: #fff; overflow: hidden;
}
.ifr-dialog.ifr-finder[open] { display: flex; flex-direction: column; }
.ifr-finder *, .ifr-finder *::before, .ifr-finder *::after { box-sizing: border-box; }
.ifr-finder [hidden] { display: none !important; }
.ifr-finder button, .ifr-finder select { font: inherit; cursor: pointer; }
.ifr-finder button { color: inherit; }
.ifr-finder :is(button,select,input,a):focus-visible { outline: 3px solid #2274a1; outline-offset: 2px; }
.ifr-finder .ef-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none;
    padding: 17px 26px; color: #fff; background: var(--ef-ink); border-bottom: 3px solid var(--ef-gold);
}
.ifr-finder .ef-header h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -.04em; color: inherit; }
.ifr-finder .ef-close {
    display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0;
    color: #fff; border: 1px solid #69707a; border-radius: 3px; background: transparent;
}
.ifr-finder .ef-close:hover { color: var(--ef-ink); background: var(--ef-gold); }
.ef-close svg { width: 20px; height: 20px; }
.ef-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 22px 26px 26px; }
.ef-tools, .ef-bar, .ef-switch, .ef-match-toggle, .ef-month-nav, .ef-actions { display: flex; align-items: center; }
.ef-tools { gap: 12px; justify-content: space-between; }
.ef-switch { gap: 3px; padding: 3px; background: #e9ece7; border-radius: 4px; }
.ef-switch button, .ef-filter-toggle {
    min-height: 36px; padding: 4px 20px; border: 0; border-radius: 3px; line-height: 1.2; background: transparent;
}
.ef-switch button[aria-pressed="true"] { color: #fff; background: var(--ef-ink); font-weight: 800; }
.ef-filter-toggle { display: none; }
.ef-reset, .ef-download { border: 0; padding: 4px 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.ef-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 18px 0 22px; }
.ef-filters label { display: grid; gap: 5px; font-size: 13px; font-weight: 750; color: var(--ef-muted); }
.ifr-finder .ef-filters select {
    width: 100%; min-height: 42px; padding: 6px 9px; border: 1px solid #b6bdb9; border-radius: 3px;
    font-size: 15px; font-weight: 600; color: var(--ef-ink); background-color: #fff;
}
.ef-columns { display: grid; grid-template-columns: minmax(0,1.33fr) minmax(0,1fr); align-items: start; gap: 26px; border-top: 1px solid var(--ef-line); padding-top: 18px; }
.ef-columns.ef-no-side { grid-template-columns: minmax(0,1fr); }
.ef-browser, .ef-side { min-width: 0; }
.ef-bar { min-height: 38px; flex-wrap: wrap; gap: 8px 12px; }
.ef-bar h3 { margin: 0 auto 0 0; font-size: 20px; line-height: 1.2; }
.ef-match-toggle { gap: 6px; font-size: 13px; cursor: pointer; }
.ef-match-toggle input { margin: 0; width: 16px; height: 16px; accent-color: var(--ef-ink); }
.ef-month-nav { gap: 4px; }
.ef-month-nav button { width: 32px; height: 34px; border: 1px solid var(--ef-line); border-radius: 3px; background: #fff; font-size: 22px; line-height: 1; }
.ef-month-nav button:disabled { opacity: .35; cursor: default; }
.ef-group-title { margin: 18px 0 6px; font-size: 13px; line-height: 1.35; font-weight: 800; color: var(--ef-muted); }
.ifr-finder .ef-row {
    width: 100%; min-height: 62px; display: grid; grid-template-columns: 58px minmax(0,1fr) 18px; gap: 12px;
    align-items: center; text-align: left; padding: 7px 12px 7px 7px; background: #fff;
    border: 1px solid var(--ef-line); border-left: 3px solid var(--ef-line); border-radius: 3px;
}
.ef-row + .ef-row { margin-top: 5px; }
.ef-row:is([aria-pressed="true"],[aria-expanded="true"]) { background: #fff9e3; border-left-color: #d0a000; }
.ef-row:hover, .ef-day:hover { background: var(--ef-paper); }
.ef-date-tile { display: grid; place-content: center; justify-items: center; align-self: stretch; line-height: 1; color: var(--ef-ink); background: #f0f2ee; border-radius: 2px; }
.ef-date-tile strong { font-size: 20px; letter-spacing: -.045em; }
.ef-date-tile small { margin-top: 2px; font-size: 11px; font-weight: 700; }
.ef-date-text { font-size: 12px; font-weight: 750; }
.ef-row-copy { display: grid; gap: 2px; }
.ef-row-copy strong { font-size: 16px; line-height: 1.3; }
.ef-row-copy small, .ef-empty-day { color: var(--ef-muted); font-size: 13px; line-height: 1.4; }
.ef-row-arrow { font-size: 18px; text-align: right; }
.ef-side { position: sticky; top: 0; }
.ef-month-guide { padding: 18px 20px; border: 1px solid var(--ef-line); border-radius: 4px; background: var(--ef-paper); }
.ef-month-guide h4 { margin: 0 0 8px; font-size: 18px; }
.ef-month-guide p { margin: 0; font-size: 14px; color: var(--ef-muted); }
.ef-detail { margin: 0; overflow: hidden; border: 1px solid var(--ef-line); border-radius: 4px; background: var(--ef-paper); }
.ef-photo { display: block; width: 100%; aspect-ratio: 2.85; object-fit: cover; }
.ef-detail-body { padding: 17px 20px 19px; }
.ef-detail .ef-category { color: var(--ef-muted); font-size: 13px; font-weight: 750; }
.ef-detail .ef-event-name { margin: 3px 0 13px; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.035em; line-height: 1.15; }
.ef-facts { margin: 0; }
.ef-facts > div { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 12px; border-top: 1px solid var(--ef-line); padding: 7px 0; }
.ef-facts dt, .ef-facts dd { font-size: 14px; line-height: 1.4; }
.ef-facts dt { color: var(--ef-muted); }
.ef-facts dd { margin: 0; font-weight: 650; }
.ef-actions { gap: 12px 18px; flex-wrap: wrap; margin-top: 16px; }
.ef-primary { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; background: var(--ef-gold); color: var(--ef-ink); border-radius: 2px; text-decoration: none; font-weight: 800; }
.ef-primary:hover { background: #f2cc4c; }
.ef-page-link { padding: 3px 0; color: var(--ef-ink); border: 0; background: none; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.ef-detail-body > .ef-download { margin-top: 10px; font-size: 13px; }
.ef-game-date { color: var(--ef-muted); font-size: 14px; }
.ef-games { margin: 10px 0 14px; padding: 0; list-style: none; }
.ef-games li { display: grid; justify-items: start; gap: 2px; margin: 0; border-top: 1px solid var(--ef-line); padding: 9px 0; }
.ef-games li small { color: var(--ef-muted); font-size: 13px; }
.ef-games li button { font-size: 13px; }
.ef-month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; margin-top: 12px; }
.ef-weekday { padding-bottom: 4px; font-size: 12px; color: var(--ef-muted); text-align: center; }
.ifr-finder .ef-day { min-width: 0; min-height: 48px; padding: 4px; align-content: start; display: grid; text-align: left; border: 1px solid var(--ef-line); border-radius: 2px; background: #fff; font-size: 13px; }
.ef-day small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; line-height: 1.25; }
.ifr-finder .ef-has-event { background: #fff1bc; font-weight: 800; }
.ifr-finder .ef-day[aria-current="date"] { border-color: #696d71; }
.ifr-finder .ef-day[aria-pressed="true"] { color: #fff; border-color: var(--ef-ink); background: var(--ef-ink); }
.ef-empty { padding: 18px 0 8px; }
@media (max-width: 760px) {
    .ifr-dialog.ifr-finder { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
    .ifr-finder .ef-header { padding: max(12px,env(safe-area-inset-top)) 18px 12px; }
    .ef-scroll { flex: 1; padding: 14px 16px max(24px,env(safe-area-inset-bottom)); }
    .ef-tools { flex-wrap: wrap; gap: 8px; }
    .ef-filter-toggle { display: block; border: 1px solid var(--ef-line); margin-left: auto; padding-inline: 12px; }
    .ef-reset { font-size: 13px; }
    .ef-filters { display: none; margin: 13px 0 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .ef-filters-open .ef-filters { display: grid; }
    .ifr-finder .ef-filters select { font-size: 16px; }
    .ef-columns { display: block; margin-top: 14px; padding-top: 11px; }
    .ef-bar h3 { font-size: 18px; }
    .ef-match-toggle { min-height: 36px; }
    .ef-month-nav button { width: 36px; height: 38px; }
    .ef-row + .ef-detail { margin-top: 4px; }
    .ef-detail { margin-bottom: 8px; }
    .ef-photo { aspect-ratio: 3; }
    .ef-detail-body { padding: 14px; }
    .ef-month-grid { gap: 2px; }
    .ifr-finder .ef-day { position: relative; min-height: 40px; font-size: 14px; place-content: center; }
    .ef-day small { display: none; }
    .ef-has-event::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; bottom: 3px; left: calc(50% - 2px); }
}
