/* schwimmtrainer.at V0.15.10.50.85 – contextual chevrons for native details.
 * Dark surfaces: deep-blue control with cyan arrow. Light panels: pale control and deep-teal arrow.
 * All controls retain native details open/close semantics; no JS or database changes.
 */
:root {
  --st-chevron-adaptive-bg: #082d48;
  --st-chevron-adaptive-border: rgba(116,217,255,.38);
  --st-chevron-adaptive-bg-hover: #104365;
  --st-chevron-adaptive-border-hover: #66d5f5;
  --st-chevron-adaptive-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 7 6 6 6-6' fill='none' stroke='%2399ecff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* Document default is navy. Opt light presentation surfaces into the light chevron variant.
 * These selectors match the actual backgrounds used on the front and account/performance views. */
html body details:is(
  .athletics-battery-card,
  .athletics-balance-card,
  .athletics-subinfo,
  .athletics-model-info,
  .swim-mobility-protocol,
  .dashboard-meet-item,
  .swim-group-accordion,
  .battery-picker-section,
  .performance-analysis-accordion,
  .benchmark-compact-set,
  .performance-details,
  .performance-fieldset,
  .diagnostic-recent-card,
  .anthro-metric-card,
  .report-subselection,
  .reference-explainer-compact details,
  .test-session-picker-group,
  .check-card,
  .athletics-test-card,
  .battery-card,
  .planner-start-row,
  .planner-selected-summary,
  .battery-picker-item,
  .group-performance-toggle
),
html body .reference-explainer-compact details,
html body .report-panel details,
html body .performance-panel > .performance-details {
  --st-chevron-adaptive-bg: #eaf6f8;
  --st-chevron-adaptive-border: #bee0e7;
  --st-chevron-adaptive-bg-hover: #daf2f6;
  --st-chevron-adaptive-border-hover: #79bac8;
  --st-chevron-adaptive-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 7 6 6 6-6' fill='none' stroke='%23087f93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* Explicit dark overrides for navy subpanels inside white PerformanceLab workspaces. */
html body details:is(.benchmark-monitor-details,.bm-set-details,.personal-plan-details,.group-target-admin-details),
html body .performance-panel .benchmark-monitor-details,
html body .performance-panel .benchmark-monitor-details .bm-set-details,
html body .personal-plan-details .group-target-admin-details {
  --st-chevron-adaptive-bg: #082d48;
  --st-chevron-adaptive-border: rgba(116,217,255,.38);
  --st-chevron-adaptive-bg-hover: #104365;
  --st-chevron-adaptive-border-hover: #66d5f5;
  --st-chevron-adaptive-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 7 6 6 6-6' fill='none' stroke='%2399ecff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* Explicit per-container overrides for future two-tone front/backend components. */
html body details[data-st-chevron-theme="light"],
html body [data-st-chevron-surface="light"] details:not([data-st-chevron-theme="dark"]) {
  --st-chevron-adaptive-bg: #eaf6f8;
  --st-chevron-adaptive-border: #bee0e7;
  --st-chevron-adaptive-bg-hover: #daf2f6;
  --st-chevron-adaptive-border-hover: #79bac8;
  --st-chevron-adaptive-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 7 6 6 6-6' fill='none' stroke='%23087f93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html body details[data-st-chevron-theme="dark"],
html body [data-st-chevron-surface="dark"] details:not([data-st-chevron-theme="light"]) {
  --st-chevron-adaptive-bg: #082d48;
  --st-chevron-adaptive-border: rgba(116,217,255,.38);
  --st-chevron-adaptive-bg-hover: #104365;
  --st-chevron-adaptive-border-hover: #66d5f5;
  --st-chevron-adaptive-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 7 6 6 6-6' fill='none' stroke='%2399ecff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* Individual PerformanceLab active-reference switcher: the old text-arrow
 * would otherwise duplicate the globally rendered chevron. Preserve the label. */
html body .swim-reference-details > summary > span[aria-hidden="true"] { display:none!important; }

/* Use existing global single-chevron geometry/animation, changing only the optical treatment.
 * Keep its opt-out mechanism intact (e.g. delete confirmations and custom organigram summary). */
html body details:not([data-st-chevron-disabled]) > summary::after {
  background-color:var(--st-chevron-adaptive-bg)!important;
  border-color:var(--st-chevron-adaptive-border)!important;
  background-image:var(--st-chevron-adaptive-arrow)!important;
}
html body details:not([data-st-chevron-disabled]) > summary:is(:hover,:focus-visible)::after {
  background-color:var(--st-chevron-adaptive-bg-hover)!important;
  border-color:var(--st-chevron-adaptive-border-hover)!important;
}
@media (prefers-reduced-motion: reduce) {
  html body details:not([data-st-chevron-disabled]) > summary::after { transition: none!important; }
}
