/* DESIGN-DIRECTION-05A. Opt-in event routes only; existing controllers own state. */
html[data-tgl-design="04"] body[data-tgl-events] {
  --tgl-workspace-bg:var(--dd-top);--tgl-workspace-surface:var(--dd-surface);
  --tgl-workspace-deep:var(--dd-deep);--tgl-workspace-steel:var(--dd-raised);
  --tgl-workspace-muted:var(--dd-muted);--tgl-workspace-line:var(--dd-line);--tgl-workspace-edge:var(--dd-line);
  --ev-blue:#24394f;--ev-teal:#29484e;--ev-lavender:#343f56;--ev-row:#254763;--ev-alt:#536078;
  --ev-success:#b8e6d5;--ev-warning:#ffe1a3;--ev-error:#ffb2c5;
}
html[data-tgl-design="04"][data-tgl-theme="light"] body[data-tgl-events] {
  --ev-blue:#bccbdd;--ev-teal:#b5d2cc;--ev-lavender:#cbc9df;--ev-row:#f5f8fc;--ev-alt:#c6d8e9;
  --ev-success:#19513e;--ev-warning:#684600;--ev-error:#8c2340;
}
html[data-tgl-design="04"] body[data-tgl-events]>header,
html[data-tgl-design="04"] body[data-tgl-events]>.tgl-primary-nav {background:#101322!important;color:#f5f7fb;--tgl-workspace-deep:#101322;--tgl-workspace-muted:#d4dfeb}
html[data-tgl-design="04"] body[data-tgl-events]>header a,
html[data-tgl-design="04"] body[data-tgl-events]>.tgl-primary-nav a {color:#f5f7fb!important}
html[data-tgl-design="04"] body[data-tgl-events] main {color:var(--dd-ink)}
html[data-tgl-design="04"] body[data-tgl-events] main :is(h1,h2,h3,h4,label,legend,summary,strong,time,a) {color:var(--dd-ink)}
html[data-tgl-design="04"] body[data-tgl-events] main :is(p,small,.note,.muted,.event-category,.event-time,.event-source,.event-place,.event-categories,.event-range,.event-state,.event-date span,.event-date small) {color:var(--dd-muted)}
html[data-tgl-design="04"] body[data-tgl-events] main a:is(:hover,:visited,:focus-visible) {color:var(--dd-ink);text-decoration-color:currentColor}
html[data-tgl-design="04"] body[data-tgl-events] main :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {background:var(--dd-field)!important;color:var(--dd-ink)!important;border-color:var(--dd-line)!important;min-width:0;max-width:100%;color-scheme:inherit}
html[data-tgl-design="04"] body[data-tgl-events] main :is(input,textarea)::placeholder {color:var(--dd-muted);opacity:1}
html[data-tgl-design="04"] body[data-tgl-events] main :is(button,.button,.calendar-button,.restore-button,.tgl-action) {color:var(--dd-ink);background:var(--dd-raised);border-color:var(--dd-line)}
html[data-tgl-design="04"] body[data-tgl-events] main :is(button,.button,.tgl-action):hover {color:var(--dd-ink);background:var(--dd-deep)}
html[data-tgl-design="04"] body[data-tgl-events] main :is(.tgl-action--prominent,#create,#raceForm button[type=submit]) {background:var(--dd-pink)!important;color:#fff!important;border-color:transparent}
html[data-tgl-design="04"] body[data-tgl-events] main :is(.tgl-action--prominent,#create,#raceForm button[type=submit]):hover {background:#c9006e!important;color:#fff!important}
html[data-tgl-design="04"] body[data-tgl-events] main :is(button[aria-pressed=true],.is-selected) {background:var(--dd-deep);color:var(--dd-ink);box-shadow:inset 0 -3px var(--dd-pink)}
html[data-tgl-design="04"] body[data-tgl-events] main :is(.status-entered,.status-completed,.packed-message) {color:var(--ev-success)}
html[data-tgl-design="04"] body[data-tgl-events] main :is(.status-dnf,.status-dns,.location-flag,.event-status) {color:var(--ev-warning)}
html[data-tgl-design="04"] body[data-tgl-events] main :is(.danger,.tgl-action--destructive,.status-cancelled,[role=alert],[aria-invalid=true]) {color:var(--ev-error)}
html[data-tgl-design="04"] body[data-tgl-events] main :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible {outline:3px solid var(--dd-focus)!important;outline-offset:3px;box-shadow:0 0 0 6px var(--dd-pink)!important}
html[data-tgl-design="04"] body[data-tgl-events] :is(dialog,.sessioninner) {background:var(--dd-surface);color:var(--dd-ink);border-color:var(--dd-line)}
html[data-tgl-design="04"] body[data-tgl-events] :is(dialog,.sessioninner) :is(p,h2,label,strong) {color:var(--dd-ink)}
/* Preserve mobile geometry; only theme colours change below the desktop breakpoint. */
@media(min-width:821px) {
  html[data-tgl-design="04"] body[data-tgl-events]>main {max-width:1320px!important;padding:44px 56px 36px;margin-inline:auto}
  html[data-tgl-design="04"] body[data-tgl-events] main h1 {font-size:clamp(44px,4.5vw,64px);line-height:1.06;letter-spacing:-.05em;margin:10px 0 20px}
  html[data-tgl-design="04"] body[data-tgl-events] main h2 {font-size:27px;line-height:1.2}
  html[data-tgl-design="04"] body[data-tgl-events] main :is(.card,.event-editor,.finder-filters,.overview,.season-progress,.data-panel,.manual-event,.support-disclosure) {padding:24px;border:1px solid var(--dd-line);border-radius:20px;background:var(--ev-blue)}
  html[data-tgl-design="04"] body[data-tgl-events] main :is(.tasks-card,.checklist-summary,.warm-schedule) {background:var(--ev-teal)}
  html[data-tgl-design="04"] body[data-tgl-events] main :is(.bike-event,.data-panel,.step-editor) {background:var(--ev-lavender)}
  html[data-tgl-design="04"] body[data-tgl-events] .calendar-layout {grid-template-columns:minmax(0,1fr) 300px;gap:24px}
  html[data-tgl-design="04"] body[data-tgl-events] :is(.race,.event-card) {background:var(--ev-row);border:1px solid var(--dd-line);border-radius:16px;padding:20px;margin-bottom:12px;min-width:0}
  html[data-tgl-design="04"] body[data-tgl-events] :is(.race,.event-card):nth-of-type(even) {background:var(--ev-alt)}
  html[data-tgl-design="04"] body[data-tgl-events] :is(.race,.event-card):hover {border-color:var(--dd-muted)}
  html[data-tgl-design="04"] body[data-tgl-events] .race.selected-event {outline:2px solid var(--dd-pink);outline-offset:2px}
  html[data-tgl-design="04"] body[data-tgl-events] .race .event-date {background:var(--dd-deep);border-radius:12px;padding:10px;align-self:start}
  html[data-tgl-design="04"] body[data-tgl-events] .event-date strong {font-size:36px;line-height:1.05}
  html[data-tgl-design="04"] body[data-tgl-events] .race h3 .event-title-link {font-size:22px;line-height:1.25;background:transparent;border:0;padding:0;min-height:0;text-align:left}
  html[data-tgl-design="04"] body[data-tgl-events] .finder-layout {grid-template-columns:280px minmax(0,1fr);gap:24px}
  html[data-tgl-design="04"] body[data-tgl-events] .finder-filters {padding:22px}
  html[data-tgl-design="04"] body[data-tgl-events] .event-card {grid-template-columns:100px minmax(0,1fr);gap:16px}
  html[data-tgl-design="04"] body[data-tgl-events] .card-link {grid-column:2;justify-self:start;min-height:44px;background:transparent;border:0;padding:0}
  html[data-tgl-design="04"] body[data-tgl-events] .event-copy h3 {font-size:22px;line-height:1.25}
  html[data-tgl-design="04"] body[data-tgl-events] .layout {gap:24px}
  html[data-tgl-design="04"] body[data-tgl-events] :is(.tgl-about,.related) {border-radius:16px;background:var(--dd-surface);padding:22px;margin-top:24px}
  html[data-tgl-design="04"] body[data-tgl-events] .event-actions {align-items:center;gap:12px}
  html[data-tgl-design="04"] body[data-tgl-events] .season-sidebar {gap:20px}
}
@media(min-width:821px) and (max-width:1150px) {
  html[data-tgl-design="04"] body[data-tgl-events]>main {padding-inline:32px}
  html[data-tgl-design="04"] body[data-tgl-events] .calendar-layout {grid-template-columns:minmax(0,1fr) 260px;gap:20px}
  html[data-tgl-design="04"] body[data-tgl-events] .finder-layout {grid-template-columns:240px minmax(0,1fr);gap:20px}
}
html[data-tgl-design="04"][data-tgl-theme="light"] body[data-tgl-events] main :is(.status-entered,.status-completed,.packed-message) {background:#e0f0e7;border-color:#608875}
html[data-tgl-design="04"][data-tgl-theme="light"] body[data-tgl-events] main :is(.status-dnf,.status-dns) {background:#faedcf;border-color:#9b8049}
html[data-tgl-design="04"] body[data-tgl-events] main .status-pill {color:var(--dd-ink)}
html[data-tgl-design="04"] body[data-tgl-events] main .season-marker {color:var(--dd-ink)!important}
@media(min-width:821px) {
  html[data-tgl-design="04"] body[data-tgl-events] .race {grid-template-columns:76px minmax(0,1fr) 138px;gap:18px}
  html[data-tgl-design="04"] body[data-tgl-events] .race .event-date {border-right:0;width:76px}
  html[data-tgl-design="04"] body[data-tgl-events] .event-date strong {white-space:nowrap}
  html[data-tgl-design="04"] body[data-tgl-events] .season-head {flex-wrap:wrap;align-items:center}
  html[data-tgl-design="04"] body[data-tgl-events] .season-head h2 {font-size:24px}
  html[data-tgl-design="04"] body[data-tgl-events] .season-head select {width:104px;flex:none}
}
html[data-tgl-design="04"] body[data-tgl-events] main a.button.secondary {color:var(--dd-ink)!important}
html[data-tgl-design="04"] body[data-tgl-events] main :is(.badge,#count,.event-context .event-category) {color:var(--dd-ink)}
html[data-tgl-design="04"][data-tgl-theme="light"] body[data-tgl-events] main .tgl-sync-conflict {background:#eaf0f6;color:var(--dd-ink)}
html[data-tgl-design="04"] body[data-tgl-events] .session {background:#101827;color:#f5f7fb}
html[data-tgl-design="04"] body[data-tgl-events] .sessioninner {background:#142437;color:#f5f7fb}
html[data-tgl-design="04"] body[data-tgl-events] .sessioninner :is(p,h2,label,strong) {color:#f5f7fb}
@media(min-width:1200px) {
  html[data-tgl-design="04"] body[data-tgl-events] .event-card {grid-template-columns:100px minmax(0,1fr) auto}
  html[data-tgl-design="04"] body[data-tgl-events] .card-link {grid-column:3;grid-row:1;align-self:center;justify-self:end}
}
/* 05C: alternate actual visible records, including after filtering/re-rendering.
   Selection keeps its outline and does not replace the approved A/B surface. */
html[data-tgl-design="04"] body[data-tgl-events] :is(#events,#event-list,#closing-list) :is(.race,.event-card)[data-tgl-event-surface=A] {background:var(--ev-row)!important}
html[data-tgl-design="04"] body[data-tgl-events] :is(#events,#event-list,#closing-list) :is(.race,.event-card)[data-tgl-event-surface=B] {background:var(--ev-alt)!important}
html[data-tgl-design="04"][data-tgl-theme="dark"] body[data-tgl-events] :is(.race,.event-card) {--dd-muted:#f0f5fb}
html[data-tgl-design="04"] body[data-tgl-events] :is(.race,.event-card) .badge {background:var(--dd-deep);color:var(--dd-ink)}
html[data-tgl-design="04"] body[data-tgl-events] main .season-progress {background:var(--ev-teal)}
html[data-tgl-design="04"] body[data-tgl-events] #overview {background:var(--ev-lavender)}
html[data-tgl-design="04"] body[data-tgl-events] main .finder-filters {background:var(--ev-teal)}

/* EVENTS-UX-01CD-01: reconcile the approved hybrid within Finder only.
   Match the actual late-loaded completion sheet, without changing shared pages. */
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace{--ev-row:#254763;--ev-alt:#34495f;--finder-panel:#1b3043;--finder-secondary:#30465c;--finder-secondary-line:#8298ab;--finder-label-bg:#493f25;--finder-label-ink:#ffe1a3;--finder-label-line:#8d7951;--finder-saved-bg:#19313f;--finder-saved-ink:#c6f1eb;--finder-saved-line:#7ba7a6}
html[data-tgl-design="04"][data-tgl-theme="light"] body[data-tgl-events].tgl-finder-workspace{--ev-row:#f1f6fb;--ev-alt:#e0e9f3;--finder-panel:#eaf0f6;--finder-secondary:#fff;--finder-secondary-line:#6b8196;--finder-label-bg:#fff0cf;--finder-label-ink:#624200;--finder-label-line:#9c8047;--finder-saved-bg:#e0f0e9;--finder-saved-ink:#174f40;--finder-saved-line:#658e7e}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-card{grid-template-columns:72px minmax(0,1fr);gap:12px 16px;border:1px solid var(--dd-line);border-radius:12px;padding:18px;margin:0 0 12px;background:var(--ev-row)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-card:nth-of-type(even){background:var(--ev-alt)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-card .event-date{border-radius:0;border-left:3px solid var(--dd-pink);padding:0 0 0 10px;background:transparent;line-height:1.3}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-day{display:block;font-size:27px;line-height:1.05;font-weight:700;color:var(--dd-ink)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main :is(.event-month,.event-end-date,.event-time){display:block;font-size:12px;font-weight:400;line-height:1.4;color:var(--dd-muted)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-time{margin-top:7px}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-copy h3{font-size:20px;line-height:1.25;margin:0 0 6px;letter-spacing:-.015em}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-copy p{font-size:13px;line-height:1.4;margin:3px 0;color:var(--dd-muted)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-information-grid{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 154px;grid-template-areas:'entry riders actions' 'provider riders actions';gap:8px 18px;border-top:1px solid var(--dd-line);padding-top:12px;min-width:0;align-items:start}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-information-grid>*{min-width:0;margin:0}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .entry-information{grid-area:entry}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .rider-information{grid-area:riders}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-provider{grid-area:provider;font-size:12px;line-height:1.4;color:var(--dd-muted)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-information-grid h4{font:600 11px/1.4 Arial,sans-serif;letter-spacing:.055em;text-transform:uppercase;color:var(--dd-muted);margin:0 0 7px}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-meta{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:0}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-day-range{font-size:19px;white-space:nowrap}
/* One geometry for all status/date facts; evidence alone selects the colour. */
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-meta .entry-fact{display:inline-flex;align-items:center;min-height:24px;max-width:100%;padding:3px 7px;border:1px solid var(--dd-line);border-radius:4px;background:var(--dd-deep);color:var(--dd-muted);font:400 12px/1.4 Arial,sans-serif;letter-spacing:normal;white-space:normal;overflow-wrap:anywhere;text-decoration:none;box-shadow:none}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-meta .entry-fact[data-tone=caution]{background:var(--finder-label-bg);color:var(--finder-label-ink);border-color:var(--finder-label-line)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-meta .entry-fact[data-tone=positive]{background:#20463f;color:#c5eadd;border-color:#669789}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-meta .entry-fact[data-tone=negative]{background:#462c39;color:#ffcad7;border-color:#9a6a7c}
html[data-tgl-design="04"][data-tgl-theme="light"] body[data-tgl-events].tgl-finder-workspace main .event-meta .entry-fact[data-tone=positive]{background:#e0f0e9;color:#174f40;border-color:#658e7e}
html[data-tgl-design="04"][data-tgl-theme="light"] body[data-tgl-events].tgl-finder-workspace main .event-meta .entry-fact[data-tone=negative]{background:#f8e4eb;color:#80233d;border-color:#ab7285}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .rider-labels{display:flex;flex-wrap:wrap;gap:5px;align-items:baseline}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main :is(.rider-label,.filter-chip[data-tone=rider]){display:inline-block;padding:3px 7px;border:1px solid #638f94;border-radius:4px;background:#1b3e45;color:#c6f1eb;font:400 12px/1.4 Arial,sans-serif;max-width:100%;overflow-wrap:anywhere}
html[data-tgl-design="04"][data-tgl-theme="light"] body[data-tgl-events].tgl-finder-workspace main :is(.rider-label,.filter-chip[data-tone=rider]){color:#194e50;background:#e0f0ed;border-color:#88aaa6}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .rider-labels a{display:inline-flex;align-items:center;min-height:24px;font-size:12px;line-height:1.4}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .rider-evidence{font-size:12px;line-height:1.4;margin:6px 0 0;color:var(--dd-muted)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .rider-unconfirmed{display:inline-block;padding:3px 7px;margin:0;border:1px solid var(--finder-label-line);border-radius:4px;background:var(--finder-label-bg);color:var(--finder-label-ink)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .card-actions{grid-area:actions;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(44px,auto) minmax(44px,auto) minmax(28px,auto);gap:6px;align-self:start;align-items:start}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .card-actions :is(a.button,button){grid-column:auto;grid-row:auto;align-self:stretch;justify-self:stretch;display:inline-flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:44px;max-width:100%;padding:9px 10px;margin:0;border:1px solid transparent;border-radius:7px;font:600 13px/1.35 Arial,sans-serif;text-align:center;white-space:normal;text-decoration:none;box-shadow:none}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .card-actions button.quick-add{background:var(--finder-secondary);border-color:var(--finder-secondary-line);color:var(--dd-ink);opacity:1}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .card-actions button.quick-add:hover:not(:disabled){background:var(--dd-field);border-color:var(--dd-ink)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .card-actions button.quick-add:focus-visible{outline:3px solid var(--dd-focus)!important;outline-offset:3px;box-shadow:0 0 0 6px var(--dd-pink)!important}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .card-actions:is([data-save-state=device-saved],[data-save-state=account-saved]) button.quick-add{background:var(--finder-saved-bg);color:var(--finder-saved-ink);border-color:var(--finder-saved-line)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .card-actions:is([data-save-state=device-saved],[data-save-state=account-saved]) button.quick-add:before{content:'✓';font-weight:700}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .card-actions:is([data-save-state=saving],[data-save-state=paused],[data-save-state=unavailable]) button.quick-add{background:var(--dd-deep);color:var(--dd-muted);border-color:var(--dd-line)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .card-actions[data-save-state=retry] button.quick-add{border-color:var(--finder-label-line)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .quick-save-feedback{grid-column:1/-1;font-size:12px;line-height:1.4;margin:0;color:var(--dd-muted)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .card-actions[data-save-state=retry] .quick-save-feedback{color:var(--finder-label-ink)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .location-flag{display:block;font-size:12px;line-height:1.4;margin-top:5px}
/* One padded filter boundary, with the summary inside the native disclosure. */
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .finder-filters{padding:0;border:1px solid var(--dd-line);border-radius:12px;background:var(--finder-panel);overflow:visible}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .advanced-filters{padding:0;border:0;border-radius:12px;background:transparent}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .advanced-filters>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;min-height:48px;padding:16px;margin:0;border:0;border-radius:12px;background:transparent;list-style:none;box-shadow:none;font-size:16px}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .advanced-filters>summary:after{grid-column:2;grid-row:1;align-self:center}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .advanced-filters .filter-summary{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;margin:0;font:400 12px/1.4 Arial,sans-serif;overflow:visible;max-width:100%;-webkit-line-clamp:unset}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .advanced-filters[open] .filter-summary{display:none}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-chip{display:inline-block;padding:3px 7px;border:1px solid var(--dd-line);border-radius:4px;max-width:100%;white-space:normal;overflow-wrap:anywhere;background:var(--dd-raised);color:var(--dd-muted)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-chip[data-tone=entry]{background:var(--finder-label-bg);color:var(--finder-label-ink);border-color:var(--finder-label-line)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .advanced-filters>.filters{display:block;padding:0 16px;margin:0;max-width:none;border:0}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-group{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;padding:16px 0;margin:0;border:0;border-top:1px solid var(--dd-line)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-group:first-child{border-top:0;padding-top:0}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-group legend{padding:0 7px 0 0;font:600 11px/1.4 Arial,sans-serif;letter-spacing:.055em;text-transform:uppercase;color:var(--dd-muted)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-group>*{min-width:0}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-group label{font-size:13px;line-height:1.4;margin-bottom:6px}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-group :is(input,select){min-height:44px;font-size:14px;padding:9px 10px}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-help{font-size:12px;line-height:1.4;margin:6px 0 0}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-dates input{padding-inline:5px;font-size:13px}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main #quick-filters{margin:0;gap:6px}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main :is(#quick-filters,.profile-shortcuts) button{min-height:44px;padding:8px 7px;font-size:12px;font-weight:400;background:var(--dd-raised);color:var(--dd-ink);border:1px solid var(--dd-line);border-radius:6px;box-shadow:none}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main :is(#quick-filters,.profile-shortcuts) button[aria-pressed=true]{background:var(--dd-field);border-color:var(--dd-pink);box-shadow:inset 0 -2px var(--dd-pink);font-weight:600}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-group .profile-shortcuts{padding:0;margin:0;border:0;gap:6px}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .advanced-filters>.filter-footer{display:grid;gap:4px;padding:0 16px 16px;margin:0;max-width:none;border:0}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-footer .filter-actions{position:static;margin:0;padding:0;background:transparent}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-footer #show-results{width:100%;min-height:44px;font-size:13px;padding:10px;border-radius:6px;box-shadow:none}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-footer #clear-filters{min-height:44px;font-size:12px;font-weight:400;text-decoration:underline;background:transparent;border:0;color:var(--dd-muted)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .advanced-filters>#filter-feedback{margin:0 16px 10px;padding:0;max-width:none;font-size:12px;line-height:1.4}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .date-range-results{margin:0 0 16px}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .date-range-results h3{font-size:20px;margin:0 0 8px}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .date-range-results p{margin:0 0 10px}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main #date-range-error{margin:0;font-size:12px;line-height:1.4;border-color:var(--finder-label-line)}
html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main #show-results:disabled{opacity:1;background:var(--dd-raised);color:var(--dd-muted);border-color:var(--dd-line)}
@media(max-width:1100px){
 html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-information-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:'entry' 'riders' 'provider' 'actions';gap:10px}
 html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .card-actions{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(44px,auto) minmax(28px,auto)}
}
@media(max-width:760px){
 html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-card{grid-template-columns:minmax(0,1fr);gap:10px;padding:14px}
 html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-card .event-date{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
 html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-date time{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
 html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-date :is(.event-day,.event-month,.event-end-date,.event-time){display:inline;font-size:13px;line-height:1.4;margin:0}
 html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-date .event-day{font-weight:700}
 html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-copy h3{font-size:19px}
 html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .event-information-grid{padding-top:10px}
 html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-group :is(input,select){font-size:16px}
 html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .filter-dates input{font-size:16px;padding-inline:7px}
}

html[data-tgl-design="04"] body[data-tgl-events].tgl-finder-workspace main .advanced-filters>summary:focus-visible{outline-offset:-4px!important}
