/* V9.7 · Neutral card backgrounds across the ten themes (FR / EN, desktop / tablet / mobile).
   Buttons, illustrations, progression bars, iconography and success/error signifiers are intentionally unchanged. */
#screen :is(.panel,.metric-card,.v10-panel,.v10-award,.v19-widget,.v19-badge-row,
 .v19-featured,.v205-tile,.v205-metrics>div,.v206-reward-card,.v206-reward-row,
 .v18-memory-card,.v18-wish-card,.v20-project,.v20-feed-post,.v20-calendar,
 .v8-today-category,.v8-shortcut-widget,.v93-today-group,.st93-uniform-widget,
 .sr-hero,.sr-next,.sr-stats>article,.sr96-metrics>article,
 .st258-race-card,.st258-course-row,.st258-admin-row,.st2513-records,
 .st2513-record-course,.st2513-record-leaders>li,.st92-nearest .st96-nearest-card,
 .vd-section,.vd-recipe,.vd-craft-target,.vd-craft-status,.vd-craft-success,
 .vd-needs-bonus-note,.vd-absence-compact,.vd-craft-builder-head>span,
 .vd-recipe-state,.vd-day-schedule,.vd-needs-recipes>article,.vd-needs-stock>article,
 .v215-fold,.v20-day,.v20-event,.v20-result,.v18-wish-note,
 .v205-history-row,.v174-badge,.v183-badge-detail,.v191-birthdays){
  background:var(--panel,#fff)!important;
  background-image:none!important;
  border-color:var(--line,#e3dce0)!important;
  color:var(--ink,#272126);
}
/* Keep the skin of text buttons and badges controlled by their own states, not card rules. */
#screen :is(.sr-hero,.sr-next,.vd-craft-status,.vd-craft-success,.vd-needs-bonus-note){
  border:1px solid var(--line,#e3dce0)!important;
}
#screen .v19-widget :is(.v19-widget-body,.v19-widget-inner){background:transparent;}
#screen .v20-day.chosen{border-color:var(--wine,#753f53)!important;outline:1px solid var(--wine,#753f53);}
#screen :is(.st258-course-row,.st2513-record-course).selected{border-color:var(--wine,#753f53)!important;}
/* Prevent nested lists from trapping scrolling or blocking the bottom of inline admin forms. */
#st95-course-workspace,#st95-course-workspace #st93-inline-catalog,
#st95-course-workspace #st258-dialog.st93-inline-dialog,
#st95-course-workspace #st258-dialog.st93-inline-dialog>.st-dialog-scroll,
#st95-course-workspace #st258-dialog.st93-inline-dialog .modal-body,
#st95-course-workspace #st258-dialog.st93-inline-dialog #st258-dialog-content{
  height:auto!important;max-height:none!important;min-height:0!important;
  overflow-y:visible!important;overflow-x:visible!important;
  overscroll-behavior:auto!important;touch-action:auto!important;
}
#st95-course-workspace .st258-course-list,
#st95-course-workspace .st258-admin-list,
#st95-course-workspace .st2513-record-scroll{
  max-height:min(460px,60dvh)!important;overflow-y:auto!important;
  overflow-x:hidden!important;overscroll-behavior-y:auto!important;
  -webkit-overflow-scrolling:touch;
}
#st95-course-workspace :is(.st258-course-list,.st258-admin-list,.st2513-record-scroll):focus-visible{
  outline:2px solid var(--wine,#753f53);outline-offset:2px;
}
#st95-course-workspace :is(.st258-admin-form,.st258-actions,.st258-race-card){
  min-width:0;max-width:100%;overflow:visible;
}
@media(max-width:680px){#st95-course-workspace :is(.st258-course-list,.st258-admin-list,.st2513-record-scroll){max-height:46dvh!important}}
