/* Stable Tracker V2.4.11 — accessible, opt-in app palettes. The classic palette is unchanged. */
.st-color-picker{display:grid;gap:9px;margin:12px 0 18px;padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--panel);min-width:0}
.st-color-picker strong{font-size:15px}
.st-color-picker p{margin:0 0 4px}
.st-color-picker label{font-size:13px;font-weight:700;color:var(--ink)}
.st-color-picker select{display:block;width:100%;min-height:44px;max-width:100%;font-size:16px}
.st-color-picker small{color:var(--muted);line-height:1.6}
.st-accent-sample{display:flex;align-items:stretch;gap:12px;flex-wrap:wrap}
.st-accent-sample input[type="color"]{width:65px;height:46px;padding:4px;border:1px solid var(--line);background:var(--panel);border-radius:10px;cursor:pointer;flex:none}
.st-accent-demo{display:inline-flex;align-items:center;justify-content:center;background:var(--st-accent,var(--wine));border-radius:10px;padding:9px 20px;font-size:13px;min-height:46px;color:white;font-weight:750}
/* Palette mode must not rely only on colour: selected tabs keep borders and shape. */
html[data-st-palette="custom"]:not([data-ui-theme="dark"]),
html[data-st-palette="custom"]:not([data-ui-theme="dark"]) body,
html[data-st-palette="custom"]:not([data-ui-theme="dark"]) .main-layout,
html[data-st-palette="custom"]:not([data-ui-theme="dark"]) .app-shell{background:var(--st-accent-bg)}
html[data-st-palette="custom"] :is(.btn-primary,.st-add-horse,.v202-selected,.v205-menu button[aria-pressed="true"],.v2010-theme-shortcut button[aria-pressed="true"],.st-community-tabs .v202-selected){background:var(--st-accent);border-color:var(--st-accent);color:#fff}
html[data-st-palette="custom"] :is(.v2010-header-brand,.page-title + .muted strong){color:var(--st-accent-link)}
html[data-st-palette="custom"] :is(.btn-outline,.v183-more-link,.v205-current-section,.st-search-options summary,.st-collection-search>summary){color:var(--st-accent-link);border-color:var(--st-accent-ring)}
html[data-st-palette="custom"] .v2010-theme-shortcut{border-color:var(--st-accent-ring)}
html[data-st-palette="custom"] .hero{background:linear-gradient(125deg,var(--st-accent),var(--wine-dark));color:#fff}
html[data-st-palette="custom"] :is(.hero-progress>div,.v10-progress>div,.v04-progress>div,.v14-track>div,.v205-progress>div,.v206-reward-progress>div,.v20-progress>div,.progress>div){background:var(--st-accent)}
html[data-st-palette="custom"] :is(button,input,textarea,select):focus-visible{outline:3px solid var(--st-accent-ring);outline-offset:2px}
html[data-st-palette="custom"] input[type="checkbox"],html[data-st-palette="custom"] input[type="radio"]{accent-color:var(--st-accent)}
html[data-st-palette="custom"][data-ui-theme="dark"],
html[data-st-palette="custom"][data-ui-theme="dark"] body,
html[data-st-palette="custom"][data-ui-theme="dark"] .main-layout,
html[data-st-palette="custom"][data-ui-theme="dark"] .app-shell{background:var(--st-accent-darkbg)}
html[data-st-palette="custom"][data-ui-theme="dark"] :is(.btn-primary,.hero-action,.v2010-theme-shortcut button[aria-pressed="true"],.v205-menu button[aria-pressed="true"],.v202-selected){background:var(--st-accent)!important;color:#fff!important;border-color:var(--st-accent)!important}
html[data-st-palette="custom"][data-ui-theme="dark"] :is(.v2010-header-brand,.btn-outline,.v183-more-link,.v205-current-section){color:var(--st-accent-link)!important}
html[data-st-palette="custom"][data-ui-theme="dark"] :is(.hero-progress>div,.v10-progress>div,.v04-progress>div,.v14-track>div,.v205-progress>div,.v206-reward-progress>div,.v20-progress>div){background:var(--st-accent-link)}

/* V2.4.12: subtle gradient behind horse information; preserve contrast of inner cards. */
.detail-modal .detail-body,.v04-edit-modal .modal-body{background:var(--st-horse-gradient,linear-gradient(#fff,#fff));}
html[data-ui-theme="dark"] .detail-modal .detail-body,html[data-ui-theme="dark"] .v04-edit-modal .modal-body{background:var(--st-horse-gradient,linear-gradient(#fff,#fff));color:#30272d;}
.st-horse-gradient-picker{display:grid;gap:12px;margin:12px 0 18px;padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--panel);}
.st-horse-gradient-picker p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.st-horse-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.st-horse-colors label{display:grid;gap:8px;min-width:0;font-weight:650;font-size:13px}
.st-horse-colors input[type="color"]{width:100%;height:45px;cursor:pointer}
.st-horse-gradient-preview{border:1px solid var(--line);border-radius:14px;min-height:76px;padding:24px 15px;text-align:center;font-weight:700;background:var(--st-horse-gradient);color:#30272d}
.st-horse-gradient-picker .btn{justify-self:start}

/* V2.4.13 — personal gradient on decorative tinted surfaces only.
   Keep functional inputs, semantic statuses and solid action buttons legible. */
html[data-st-horse-colors="custom"] :is(
 .v174-calendar>div,
 .v174-today,
 .metric-icon,
 .horse-avatar,
 .v10-award,
 .v174-badge,
 .v18-mini-metric,
 .v10-profile-preview,
 .v207-story,
 .v183-badge-detail,
 .v183-preview-grid>div,
 .v205-tile,
 .v18-wish-summary,
 .v18-empty-wishes
){background:var(--st-horse-gradient)!important;}
/* Decorative gradients stay distinct from interactive primary buttons and status indicators. */
html[data-st-horse-colors="custom"] :is(.v174-calendar>div,.v183-badge-detail,.v183-preview-grid>div){border-color:color-mix(in srgb,var(--st-horse-a) 20%,#dfd4d8);}
/* Flatten nested panels in Profile > Identity & appearance. */
#v10-profile-form [data-v204-panel="appearance"] :is(.v209-mode-setting,.st-color-picker,.st-horse-gradient-picker){
 background:transparent!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;margin:0!important;padding:17px 0!important;
}
#v10-profile-form [data-v204-panel="appearance"] :is(.st-color-picker,.st-horse-gradient-picker){border-top:1px solid var(--line)!important;}
#v10-profile-form [data-v204-panel="appearance"] .st-horse-gradient-preview{border:1px solid var(--line);}
#v10-profile-form [data-v204-panel="appearance"] .st-horse-gradient-picker .btn{max-width:100%;white-space:normal;}


/* V2.4.14 — propagate appearance choices across decorative surfaces and navigation.
   Accent = active controls and branded emphasis. Horse gradient = tinted cards and soft surfaces. */
html[data-st-palette="custom"] :is(
 .desktop-nav .nav-link:hover,
 .desktop-nav .nav-link.active,
 .v208-nav-link:hover,
 .v208-nav-link.active,
 .v208-nav-panel .v2010-settings-link:hover,
 .st-game-destinations a:hover,
 .st-game-destinations a:focus-visible,
 #st-game-menu[open]>summary,
 .v208-topbar .v171-profile-shortcut.v208-profile-button,
 .v208-topbar .v208-menu-trigger
){background:var(--st-accent-bg)!important;border-color:var(--st-accent-ring)!important;color:var(--st-accent-link)!important;}
html[data-st-palette="custom"] :is(.v208-topbar .v208-profile-button:hover,.v208-topbar .v208-profile-button.active,.v208-menu-trigger:hover,.v208-menu-trigger[aria-expanded=true]){background:var(--st-accent-subtle)!important;border-color:var(--st-accent-ring)!important;color:var(--st-accent-link)!important;}
html[data-st-palette="custom"] :is(.v208-nav-link>span,.desktop-nav .nav-link.active,.desktop-nav .nav-link:hover,.v20-sc-big,.v205-metrics strong,.v16-banner h2,.v16-quick-levels strong,.v16-xp-counters strong,.v174-calendar time,.v174-badge h3,.v10-rank,.v10-award-score,.v191-birthdays .v191-birthday-btn>span,.v2014-submenu-label,.v20-cross,.v205-menu button,.v205-tile,.v205-goal span,.v205-history-row time,.v20-feed-icon,.v20-version){color:var(--st-accent-link)!important;}
html[data-st-palette="custom"] :is(.v208-nav-panel,.st-game-destinations,.v205-menu,.v20-version,.v2010-theme-shortcut){border-color:var(--st-accent-ring)!important;}

html[data-st-horse-colors="custom"] :is(
 .metric-icon,
 .horse-avatar,
 .v10-award,
 .v10-award-emoji,
 .v10-bonus-chip,
 .v16-banner,
 .v16-quick-progress,
 .v16-xp-counters>div,
 .v18-wish-thumb,
 .v18-wish-note,
 .v18-empty-wishes,
 .v18-empty-icon,
 .v20-version,
 .v20-cross,
 .v20-feed-icon,
 .v20-day.chosen,
 .v174-calendar>div,
 .v174-today,
 .v174-badge:not(.earned),
 .v183-badge-detail,
 .v183-preview-grid>div,
 .v205-metrics>div,
 .v205-stable-date,
 .v207-story
){background:var(--st-horse-surface-soft)!important;border-color:var(--st-horse-border)!important;}
html[data-st-horse-colors="custom"] :is(.v16-banner,.v20-version,.v174-today,.v183-badge-detail,.v183-preview-grid>div,.v207-story){background:var(--st-horse-surface)!important;}
html[data-st-horse-colors="custom"] :is(.v205-menu,.v2014-submenu>summary:hover,.v2014-submenu[open]>summary,.v191-birthdays .v191-birthday-btn:hover){background:var(--st-horse-surface-soft)!important;}
html[data-st-horse-colors="custom"] :is(.v10-award,.v16-quick-progress,.v205-metrics>div,.v205-stable-date,.v20-day.chosen){box-shadow:none;}
html[data-st-horse-colors="custom"] :is(.v205-tile:not(.is-earned):not(.is-locked),.v174-calendar>div,.v183-badge-detail,.v183-preview-grid>div,.v10-award,.v16-xp-counters>div,.v205-metrics>div,.v205-stable-date){border-color:var(--st-horse-border)!important;}
html[data-st-horse-colors="custom"] .v205-tile:not(.is-earned):not(.is-locked){background:var(--st-horse-surface-soft)!important;color:var(--ink)!important;}
html[data-st-horse-colors="custom"] :is(.metric-icon,.horse-avatar,.v10-award-emoji,.v18-empty-icon,.v20-feed-icon,.v20-cross){color:var(--st-accent-link)!important;}
html[data-st-horse-colors="custom"] :is(.v10-bonus-chip,.v20-version,.v16-xp-counters strong,.v205-metrics strong){background:var(--st-horse-surface-flat)!important;}
html[data-st-horse-colors="custom"] :is(.tag,.v18-wish-badges .tag,.v174-profile-tags .tag,.v20-pending .tag){background:var(--st-horse-surface-flat-soft)!important;border-color:var(--st-horse-border)!important;color:var(--ink)!important;}
html[data-st-horse-colors="custom"] .v16-quick-presets button:active{background:var(--st-horse-surface-soft)!important;}

/* V2.4.15 — unified card styling and a separate app-customization panel. */
.st-customization-shortcut{margin:14px 0 4px}
.st-customization-shortcut .btn{white-space:normal;max-width:100%;text-align:center}
#v10-profile-form [data-v204-panel="customize"]{display:block;min-width:0}
#v10-profile-form [data-v204-panel="customize"][hidden]{display:none!important}
#v10-profile-form [data-v204-panel="customize"] :is(.st-color-picker,.st-horse-gradient-picker,.st-surface-picker){border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;margin:0;padding:18px 0;min-width:0}
#v10-profile-form [data-v204-panel="customize"]>p{margin-bottom:20px}
.st-surface-picker{display:grid;gap:14px}
.st-surface-picker h4{margin:0;font-size:16px;color:var(--ink)}
.st-surface-picker p{margin:0;color:var(--muted);line-height:1.6}
.st-surface-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.st-surface-controls>label{display:grid;gap:9px;align-content:start;min-width:0;font-weight:700;font-size:13px}
.st-surface-field{display:flex;align-items:center;gap:8px;min-height:25px;font-weight:500;line-height:1.3;font-size:12px}
.st-surface-field input{width:17px;height:17px;min-width:17px;accent-color:var(--st-accent,var(--wine))}
.st-surface-controls input[type="color"]{width:100%;min-width:0;height:47px;padding:5px;border:1px solid var(--line);border-radius:11px;cursor:pointer;background:var(--panel)}
.st-surface-preview{padding:17px;border-radius:13px;min-height:84px;background:var(--st-card-custom-fill,var(--st-horse-surface-soft,#fff));border:2px solid var(--st-card-custom-border,var(--st-horse-border,#eae6e1));color:var(--st-card-custom-ink,#262329);display:grid;gap:7px}
.st-surface-preview strong{font-size:15px}
.st-surface-preview span{font-size:12px;line-height:1.5}
.st-surface-picker>.btn{justify-self:start;white-space:normal;max-width:100%}
@media(max-width:480px){.st-surface-controls{grid-template-columns:1fr}.st-surface-controls>label{gap:7px}}
/* Exact white stays white; only text and outline adapt for accessibility. */
html[data-st-accent-white="true"][data-ui-theme="light"] :is(.btn-primary,.st-add-horse,.v202-selected,.v205-menu button[aria-pressed="true"],.v2010-theme-shortcut button[aria-pressed="true"],.st-community-tabs .v202-selected){background:#ffffff!important;color:#202020!important;border:1px solid #777!important;}
html[data-st-accent-white="true"][data-ui-theme="light"] :is(.v208-nav-panel,.v208-menu-trigger,.v208-profile-button,.st-game-destinations){background:#ffffff!important;color:#202020!important;}
html[data-st-accent-white="true"][data-ui-theme="light"] :is(.v2010-header-brand,.v208-nav-link.active){color:#202020!important}

/* The closest-achievements widget previously retained the default burgundy / browser blue. */
html:is([data-st-palette="custom"],[data-st-horse-colors="custom"]) #v19-dashboard [data-v19-widget="badges"] :is(.v19-badge-row,.v19-badge-symbol,.v19-badge-info strong){color:var(--st-accent-link)!important}
html:is([data-st-palette="custom"],[data-st-horse-colors="custom"]) #v19-dashboard [data-v19-widget="badges"] .v19-bar>i{background:var(--st-accent)!important}
html:is([data-st-palette="custom"],[data-st-horse-colors="custom"]) #v19-dashboard [data-v19-widget="badges"] .v19-bar{background:var(--st-accent-subtle)!important}
html[data-st-horse-colors="custom"] #v19-dashboard [data-v19-widget="badges"] .v19-badge-row{background:var(--st-horse-surface-soft)!important;border-color:var(--st-horse-border)!important}
html[data-st-horse-colors="custom"] #v19-dashboard [data-v19-widget="badges"] .v19-badge-row:hover{background:var(--st-horse-surface)!important}

/* Card fill and border can be set independently. Do not recolour status and warning boxes. */
html[data-st-card-fill="custom"] :is(
 .panel,.metric-card,.v10-panel,.v204-category,.v19-widget,.v19-badge-row,
 .v10-award,.v16-xp-counters>div,.v174-calendar>div,.v174-badge:not(.earned),
 .v183-preview-grid>div,.v183-badge-detail,.v205-metrics>div,.v205-tile:not(.is-locked):not(.is-earned),
 .v18-wish-card,.v18-wish-note,.v20-day.chosen,.v205-stable-date,.v174-profile-extra
){background:var(--st-card-custom-fill)!important;}
html[data-st-card-border="custom"] :is(
 .panel,.metric-card,.v10-panel,.v204-category,.v19-widget,.v19-badge-row,
 .v10-award,.v16-xp-counters>div,.v174-calendar>div,.v174-badge:not(.earned),
 .v183-preview-grid>div,.v183-badge-detail,.v205-metrics>div,.v205-tile:not(.is-locked):not(.is-earned),
 .v18-wish-card,.v18-wish-note,.v20-day.chosen,.v205-stable-date,.v174-profile-extra
){border-color:var(--st-card-custom-border)!important;}
/* Contrast remains stable for dark mode when a very pale custom card background is used. */
html[data-st-card-fill="custom"][data-ui-theme="dark"] :is(.panel,.metric-card,.v10-panel,.v204-category,.v19-widget,.v19-badge-row,.v10-award,.v174-calendar>div,.v183-preview-grid>div,.v183-badge-detail,.v205-metrics>div,.v205-tile:not(.is-locked):not(.is-earned)){--ink:#29262a;--muted:#726b73;color:var(--ink)}
/* A saved custom fill may be applied to app cards, but never to the customized colour-preview swatches. */
html[data-st-accent-white="true"][data-ui-theme="light"] .st-accent-demo{background:#fff!important;color:#202020!important;border:1px solid #777}
html[data-st-accent-white="true"][data-ui-theme="light"] .hero{background:linear-gradient(125deg,#fff,#fff)!important;color:#202020!important;border:1px solid #777}
html[data-st-accent-white="true"][data-ui-theme="light"] .hero :is(.hero-eyebrow,.hero-metric-label,.hero-metric small,p){color:#343434!important}
html[data-st-accent-white="true"][data-ui-theme="light"] .hero-progress{background:#e6e6e6!important}
html[data-st-accent-white="true"][data-ui-theme="light"] .hero-action{border:1px solid #777;color:#202020}


/* V2.4.16 — exact black is black, including the horse gradient and optional card fill.
   Dark surfaces adopt readable text without changing light information cards or semantic status colours. */
html[data-st-horse-dark="true"] :is(.detail-modal .detail-body,.v04-edit-modal .modal-body){
 --ink:#ffffff;--muted:#d1d1d1;--line:#686868;
 color:var(--st-horse-foreground,#fff)!important;
}
html[data-st-horse-dark="true"] :is(.detail-modal .detail-body,.v04-edit-modal .modal-body) :is(.detail-topline,.detail-topline .eyebrow,.eyebrow,.detail-name,.detail-progress-head,.detail-footnote){color:#ffffff!important;}
html[data-st-horse-dark="true"] :is(.detail-modal .detail-body,.v04-edit-modal .modal-body) .detail-progress-head span{color:#d1d1d1;}
html[data-st-horse-dark="true"] .detail-modal :is(.detail-info-card span,.detail-track span){color:#787078;}
/* Information panels remain light for clarity: the pure black surrounds them. */
html[data-st-horse-dark="true"] .detail-modal :is(.detail-info-card,.detail-track){--ink:#29262a;--muted:#726b73;--line:#e6dfe3;background:#fff;color:#29262a;border-color:#bdbdbd;}
html[data-st-horse-dark="true"] .detail-modal :is(.detail-info-card,.detail-track) strong{color:#29262a;}
html[data-st-horse-dark="true"] .detail-modal .detail-track.completed strong{color:#587965;}
html[data-st-horse-dark="true"] .detail-modal .detail-divider{background:#686868;}
html[data-st-horse-dark="true"] .v04-edit-modal .modal-body :is(.field,.field>span,.field>label,.field-hint,.v04-photo-help){color:#eeeeee!important;}
html[data-st-horse-dark="true"] .v04-edit-modal .modal-body :is(input,select,textarea){--ink:#29262a;--muted:#726b73;color:#29262a;background:#fff;}
html[data-st-horse-dark="true"] .st-horse-gradient-preview{color:#fff;}
/* Keep informational text on decorative dark cards legible. */
html[data-st-horse-dark="true"] :is(.v10-award,.v16-banner,.v16-quick-progress,.v174-calendar>div,.v183-badge-detail,.v183-preview-grid>div,.v205-metrics>div,.v207-story){color:#fff;--ink:#fff;--muted:#d1d1d1;}
html[data-st-horse-dark="true"] :is(.v10-award,.v16-banner,.v16-quick-progress,.v174-calendar>div,.v183-badge-detail,.v183-preview-grid>div,.v205-metrics>div,.v207-story) :is(h2,h3,p,small,span,strong){color:inherit;}
/* Cards whose inner content is explicitly white keep dark text on those white surfaces. */
html[data-st-horse-dark="true"] .v16-quick-progress .v16-xp-counters>div{background:#ffffff!important;color:#29262a;--ink:#29262a;--muted:#726b73;}
html[data-st-horse-dark="true"] .v16-quick-progress .v16-xp-counters>div :is(strong,small){color:var(--ink);}
/* If the user picks black as an independent card fill, honour it instead of forcing a grey.
   The local ink variables restore readable white labels on those cards. */
html[data-st-card-dark="true"][data-st-card-fill="custom"] :is(.panel,.metric-card,.v10-panel,.v204-category,.v19-widget,.v19-badge-row,.v10-award,.v16-xp-counters>div,.v174-calendar>div,.v174-badge:not(.earned),.v183-preview-grid>div,.v183-badge-detail,.v205-metrics>div,.v205-tile:not(.is-locked):not(.is-earned),.v18-wish-card,.v18-wish-note,.v20-day.chosen,.v205-stable-date,.v174-profile-extra){--ink:#fff!important;--muted:#d1d1d1!important;--line:#646464!important;color:#fff!important;}
html[data-st-card-dark="true"] :is(.panel,.metric-card,.v10-panel,.v204-category,.v19-widget,.v19-badge-row,.v10-award,.v16-xp-counters>div,.v174-calendar>div,.v174-badge:not(.earned),.v183-preview-grid>div,.v183-badge-detail,.v205-metrics>div,.v205-tile:not(.is-locked):not(.is-earned),.v18-wish-card,.v18-wish-note,.v20-day.chosen,.v205-stable-date,.v174-profile-extra) :is(h2,h3,small,p){color:inherit;}
html[data-st-card-dark="true"] :is(.v19-widget .v19-badge-info strong,.v19-widget .v19-badge-info small,.v19-widget .v19-widget-head h2,.v19-widget .v19-badge-info,.metric-number,.metric-label,.v10-award h3,.v10-award p,.v10-award-score,.v183-preview-grid>div strong,.v183-preview-grid>div small,.v183-badge-detail strong,.v183-badge-detail small){color:#ffffff!important;}
html[data-st-card-dark="true"] .st-surface-preview{color:#ffffff!important;}
/* Some interactive fields inside a black card need a readable contrast of their own. */
html[data-st-card-dark="true"] :is(.panel,.v10-panel,.v204-category,.v19-widget,.v18-wish-card) :is(input,select,textarea){--ink:#29262a;color:#29262a;background:#fff;}
/* Secondary labels on true-black cards are softer than primary text. */
html[data-st-card-dark="true"] :is(.panel,.metric-card,.v10-panel,.v204-category,.v19-widget,.v19-badge-row,.v10-award,.v174-calendar>div,.v183-preview-grid>div,.v183-badge-detail,.v205-metrics>div,.v18-wish-card,.v174-profile-extra) .muted{color:#d1d1d1!important;}
/* Widget rows keep readable neutral text when the chosen decorative surface is truly dark. */
html:is([data-st-card-dark="true"],[data-st-horse-dark="true"]) #v19-dashboard [data-v19-widget="badges"] .v19-badge-row{border-color:var(--line,#646464)!important;}
html:is([data-st-card-dark="true"],[data-st-horse-dark="true"]) #v19-dashboard [data-v19-widget="badges"] :is(.v19-badge-row,.v19-badge-symbol,.v19-badge-info,.v19-badge-info strong){color:#ffffff!important;}
html:is([data-st-card-dark="true"],[data-st-horse-dark="true"]) #v19-dashboard [data-v19-widget="badges"] :is(.v19-badge-info small,.v191-badge-scope){color:#d1d1d1!important;}
html:is([data-st-card-dark="true"],[data-st-horse-dark="true"]) #v19-dashboard [data-v19-widget="badges"] .v19-bar{background:color-mix(in srgb,#ffffff 18%,transparent)!important;}
html:is([data-st-card-dark="true"],[data-st-horse-dark="true"]) #v19-dashboard [data-v19-widget="badges"] .v19-bar>i{background:#ffffff!important;}


/* V2.4.19: explicit destructive action, deliberately independent of personal palette. */
.st-account-delete-section{margin-top:24px;border-color:#b96e73!important;}
.st-account-delete-section h3{color:#a33a44!important;}
.st-account-delete-section p{line-height:1.65;}
.st-account-delete-section .v04-danger,.st-account-delete-dialog .v04-danger{background:#932d38!important;color:white!important;border:1px solid #932d38!important;font-weight:750;}
.st-account-delete-section .v04-danger:hover,.st-account-delete-dialog .v04-danger:hover{background:#76202d!important;}
.st-account-delete-dialog{width:min(540px,calc(100% - 24px));max-height:calc(100dvh - 45px);overflow:auto;border:1px solid #dac7ca;border-radius:18px;padding:0;background:#ffffff;color:#29262a;}
.st-account-delete-dialog::backdrop{background:rgba(15,13,20,.72);}
.st-account-delete-dialog .modal-body{padding:24px;display:grid;gap:12px;overflow:visible;}
.st-account-delete-dialog h2{font-family:Georgia,serif;color:#6c2530;font-size:clamp(22px,5vw,30px);line-height:1.2;margin:0;}
.st-account-delete-dialog p{margin:0;color:#4d4347;line-height:1.6;}
.st-account-delete-form{display:grid;gap:13px;min-width:0;}
.st-account-delete-form>label:not(.st-account-delete-check){display:grid;gap:7px;color:#30292c;font-weight:650;}
.st-account-delete-form input[type="email"],.st-account-delete-form input[name="confirmation"]{display:block;width:100%;min-width:0;min-height:44px;padding:10px;border-radius:11px;border:1px solid #bcaeb3;background:white;color:#29262a;font:inherit;box-sizing:border-box;}
.st-account-delete-check{display:flex;gap:10px;align-items:flex-start;color:#312b2e;font-weight:600;line-height:1.5;}
.st-account-delete-check input{width:19px;height:19px;flex:none;accent-color:#9f3742;margin-top:3px;}
#st-account-delete-feedback{color:#9d2736;font-weight:650;font-size:13px;}
.st-account-delete-actions{display:flex;gap:10px;flex-wrap:wrap;}
.st-account-delete-actions>.btn{flex:1;min-width:min(160px,100%);white-space:normal;}
.st-account-delete-actions>button:disabled{opacity:.45;cursor:not-allowed;}


/* V2.4.21 — To-do list: keep both target controls aligned even when one label wraps. */
#v20-project-form .v20-inline{align-items:flex-end;}


/* V2.4.22 — monochrome adaptive interface text.
   Foregrounds are computed from actual customized surfaces; statuses keep their own colours.
   The scope is intentionally UI text, not SVG icons, progress fills or photographs. */
html[data-st-auto-contrast="true"]{
 --st-contrast-ui:var(--st-page-ink,#000000);
 --st-contrast-card:var(--st-page-ink,#000000);
 --st-contrast-horse:var(--st-horse-gradient-ink,#000000);
}
/* A chosen solid fill overrides the decorative gradient; choose its own text colour. */
html[data-st-card-fill="custom"]{--st-contrast-card:var(--st-card-custom-ink);}
html[data-st-card-fill="auto"][data-st-horse-colors="custom"]{--st-contrast-soft:var(--st-horse-soft-ink);}
html[data-st-card-fill="custom"]{--st-contrast-soft:var(--st-card-custom-ink);}
html[data-st-card-fill="auto"]{--st-contrast-soft:var(--st-page-ink);}
/* Context variables follow cards, including dark cards inside light pages and vice versa. */
html[data-st-auto-contrast="true"] :is(.screen,.modal,.v208-topbar,.sidebar,.v208-nav-panel,.v10-profile-grid){--st-zone-fg:var(--st-page-ink);color:var(--st-page-ink);}
html[data-st-auto-contrast="true"] #screen :is(
 .panel,.metric-card,.v10-panel,.v204-category,.v19-widget,
 .v19-edit-panel,
 .v18-wish-card,.v18-memory-card,.v174-profile-extra
){--st-zone-fg:var(--st-contrast-card);color:var(--st-zone-fg)!important;}
/* Fixed cards keep the current light/dark palette even inside custom outer frames. */
html[data-st-auto-contrast="true"] #screen :is(.v182-profile-facts>div,.v10-objective,.v19-widget-editor){--st-zone-fg:var(--st-page-ink);color:var(--st-zone-fg)!important;}
html[data-st-auto-contrast="true"] #screen :is(
 .v19-badge-row,.v10-award,.v205-tile:not(.is-locked):not(.is-earned),
 .v18-wish-note,.v205-metrics>div,.v205-stable-date,
 .v174-calendar>div,.v174-badge:not(.earned),.v183-badge-detail,
 .v183-preview-grid>div,.v16-xp-counters>div
){--st-zone-fg:var(--st-contrast-soft);color:var(--st-zone-fg)!important;}
/* Custom decorative surfaces without an independent fill may be very dark. */
html[data-st-auto-contrast="true"][data-st-horse-colors="custom"][data-st-card-fill="auto"] #screen :is(
 .v16-banner,.v16-quick-progress,.v174-today,.v207-story,.v10-profile-preview,
 .v183-badge-detail,.v183-preview-grid>div,.v20-version
){--st-zone-fg:var(--st-horse-surface-ink);color:var(--st-zone-fg)!important;}
html[data-st-auto-contrast="true"] :is(.detail-modal .detail-body,.v04-edit-modal .modal-body){--st-zone-fg:var(--st-horse-gradient-ink);color:var(--st-zone-fg)!important;}
/* Truly white info tiles keep black text even inside an otherwise black horse profile. */
html[data-st-auto-contrast="true"] .detail-modal :is(.detail-info-card,.detail-track){--st-zone-fg:var(--st-page-ink);color:var(--st-zone-fg)!important;}
html[data-st-auto-contrast="true"][data-st-horse-dark="true"] .detail-modal :is(.detail-info-card,.detail-track){--st-zone-fg:#000000;color:#000000!important;}
html[data-st-auto-contrast="true"] .detail-modal :is(.detail-info-card,.detail-track) :is(span,strong,small){color:var(--st-zone-fg)!important;}
/* The preview itself uses the same foreground decision as the actual card. */
html[data-st-auto-contrast="true"] .v04-edit-modal .modal-body :is(label,.field,.field>span,.field>label,.field-hint,.v04-photo-help){color:var(--st-zone-fg)!important;}
html[data-st-auto-contrast="true"] .st-horse-gradient-preview{--st-zone-fg:var(--st-horse-gradient-ink);color:var(--st-zone-fg)!important;}
html[data-st-auto-contrast="true"] .st-surface-preview{--st-zone-fg:var(--st-card-custom-ink);color:var(--st-zone-fg)!important;}
/* Text elements inherit from their *nearest* surface, not an obsolete burgundy / muted constant.
   Preserve semantic error/success/warning labels, selection placeholders, and customized badges. */
html[data-st-auto-contrast="true"] #screen :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,time,label,legend,dt,dd,li,summary,a):not(.tag):not(.v04-danger):not(.v10-status):not([role="status"]):not(.v04-badge-private):not(.v10-rank):not(.status-dot):not(.v174-award-state):not(.v174-birthday-status):not(.v05-preview-error):not([class*="-error"]):not([class*="-success"]):not([class*="-warning"]){color:var(--st-zone-fg,var(--st-page-ink))!important;}
/* Controls are their own surfaces; a black page must never make text in white inputs white. */
html[data-st-auto-contrast="true"] :where(#screen,.modal) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),textarea,select){color:var(--st-control-ink)!important;}
html[data-st-auto-contrast="true"] :where(#screen,.modal) :is(input,textarea)::placeholder{color:var(--st-control-ink)!important;opacity:1!important;font-style:italic;}
html[data-st-auto-contrast="true"][data-st-horse-dark="true"] .v04-edit-modal .modal-body :is(input,textarea,select){background:#ffffff!important;color:#000000!important;}
html[data-st-auto-contrast="true"] :where(#screen,.modal) :is(.btn-primary,.hero-action,.v202-selected,.v205-menu button[aria-pressed="true"],.v2010-theme-shortcut button[aria-pressed="true"]){color:var(--st-action-ink)!important;}
html[data-st-auto-contrast="true"] #screen :is(.btn-primary,.hero-action,.v202-selected,.v205-menu button[aria-pressed="true"]) :is(span,strong,small){color:var(--st-action-ink)!important;}
/* Outline controls are neutral, matching the contrasting text colour of their own light/dark fill. */
html[data-st-auto-contrast="true"] :where(#screen,.modal) :is(.btn-outline,.btn-ghost,.v04-row,.v208-menu-trigger){color:var(--st-control-ink)!important;}
html[data-st-auto-contrast="true"] #screen :is(.btn-outline,.btn-ghost) :is(span,strong,small){color:var(--st-control-ink)!important;}
/* Filled profile banners and gallery covers are independent dark/light surfaces. */
html[data-st-auto-contrast="true"] #screen :is(.v174-profile-banner,.v19-featured-photo,.v18-showcase-cream,.v18-showcase-rose,.v18-showcase-sage,.v18-showcase-wine){--st-zone-fg:#ffffff;}
html[data-st-auto-contrast="true"] #screen :is(.v18-showcase-cream,.v18-showcase-rose,.v18-showcase-sage,.v18-showcase-wine){--st-zone-fg:#000000;}
/* Semantic colours remain meaningful: destructive action, success, alert, validation. */
html[data-st-auto-contrast="true"] :where(#screen,.modal) :is(.tag.good,.tag.magic,.tag.missing,[data-type="err"],[data-error="true"],.v05-preview-error,.v04-danger,.st-account-delete-section h3,.st-account-delete-dialog h2){color:var(--st-semantic-ink,currentColor);}
/* The achievement progress, scopes and helper lines use the same ink as their row. */
html[data-st-auto-contrast="true"] #v19-dashboard [data-v19-widget="badges"] :is(.v19-badge-info strong,.v19-badge-info small,.v191-badge-scope,.v19-badge-symbol){color:var(--st-zone-fg)!important;}
/* Under a mixed black/white gradient, a neutral backplate protects the text while the user-picked colours stay exact. */
html[data-st-auto-contrast="true"][data-st-horse-mixed="true"] #screen [data-v19-widget="badges"] .v19-badge-row .v19-badge-info{background:var(--st-horse-text-plate);color:var(--st-horse-gradient-ink);border-radius:9px;padding:7px;}
html[data-st-auto-contrast="true"][data-st-horse-mixed="true"] .detail-modal .detail-body :is(.detail-topline,.detail-name,.detail-progress-head,.detail-footnote){background:var(--st-horse-text-plate);color:var(--st-horse-gradient-ink)!important;border-radius:7px;}

/* Monochrome navigation and headings on the uncustomized app chrome. */
html[data-st-auto-contrast="true"] :is(.v208-topbar,.sidebar,.v208-nav-panel,.desktop-nav,.bottom-nav,.v2010-header-brand){--st-zone-fg:var(--st-page-ink);color:var(--st-page-ink)!important;}
html[data-st-auto-contrast="true"] :is(.v208-topbar,.sidebar,.v208-nav-panel,.desktop-nav,.bottom-nav) :is(.v2010-header-brand,.v208-nav-link,.nav-link,.bottom-tab,.v2010-menu-label,.st-game-link,.v208-menu-trigger){color:var(--st-page-ink)!important;}
html[data-st-auto-contrast="true"] #screen :is(.v19-badge-row,.v19-widget,.v10-award,.metric-card) .v19-badge-symbol{color:var(--st-zone-fg)!important;}
html[data-st-auto-contrast="true"][data-st-horse-mixed="true"] #screen [data-v19-widget="badges"] .v19-badge-row .v19-badge-symbol{background:var(--st-horse-text-plate);color:var(--st-horse-gradient-ink)!important;padding:7px;border-radius:8px;}

/* Independent gradients and previews always keep their text readable. */
html[data-st-auto-contrast="true"] #screen .hero{--st-zone-fg:var(--st-action-ink);color:var(--st-zone-fg)!important;}
html[data-st-auto-contrast="true"] #screen .st-accent-demo{--st-zone-fg:var(--st-action-ink);color:var(--st-zone-fg)!important;}
html[data-st-auto-contrast="true"] #screen .v182-profile-facts>div :is(span,strong,small){color:var(--st-page-ink)!important;}

/* Text inside modal content also honours the local surface, not inherited burgundy. */
html[data-st-auto-contrast="true"] .modal:not(.st-account-delete-dialog) :is(h1,h2,h3,h4,h5,h6,p,small,span,strong,time,label,legend,summary):not(.tag):not([role="status"]):not([class*="error"]):not([class*="warning"]):not(.v04-danger){color:var(--st-zone-fg,var(--st-page-ink))!important;}
html[data-st-auto-contrast="true"] .modal :is(.btn-primary,.hero-action) :is(span,strong,small){color:var(--st-action-ink)!important;}
html[data-st-auto-contrast="true"] .modal :is(.btn-outline,.btn-ghost) :is(span,strong,small){color:var(--st-control-ink)!important;}
html[data-st-auto-contrast="true"] .v16-quick-progress{--st-zone-fg:var(--st-horse-surface-ink);color:var(--st-zone-fg)!important;}
html[data-st-auto-contrast="true"][data-st-horse-dark="true"] .v16-quick-progress .v16-xp-counters>div{--st-zone-fg:#000000!important;color:#000000!important;}
html[data-st-auto-contrast="true"][data-st-horse-dark="true"] .v16-quick-progress .v16-xp-counters>div :is(span,small,strong){color:#000000!important;}
/* Mixed black/white gradients need a readable monochrome label in their preview. */
html[data-st-auto-contrast="true"][data-st-horse-mixed="true"] .st-horse-gradient-preview>span{display:inline-block;background:var(--st-horse-text-plate);color:var(--st-horse-gradient-ink)!important;border-radius:8px;padding:8px 12px;}
html[data-st-auto-contrast="true"][data-st-horse-mixed="true"] :is(.v16-banner,.v207-story) :is(h2,h3,p,small){background:var(--st-horse-text-plate);color:var(--st-horse-gradient-ink)!important;border-radius:6px;padding:3px 5px;}

/* V2.4.23 — Dashboard widgets must use the user's chosen surface colours,
   including the nested statistics tiles, photo frame and editing helpers.
   Solid card fill has priority; otherwise use the decorative gradient or accent.
   No custom choices -> existing classic appearance. */
#v19-dashboard .v19-featured-photo.has-photo .v19-photo-placeholder{display:none!important;}
#v19-dashboard .v19-featured-photo.has-photo>img{display:block;min-width:0;min-height:0;width:100%;height:100%;max-height:300px;object-fit:contain;}

/* Accent-only customization: do not leave old pink tiles behind. */
html[data-st-palette="custom"][data-st-card-fill="auto"][data-st-horse-colors="default"] #v19-dashboard :is(.v19-stat-grid>div,.v19-featured-photo,.v19-widget-editor){
 background:var(--st-accent-subtle)!important;
 --st-zone-fg:#000000;
 color:var(--st-zone-fg)!important;
}
html[data-st-palette="custom"][data-st-card-fill="auto"][data-st-horse-colors="default"][data-ui-theme="dark"] #v19-dashboard :is(.v19-stat-grid>div,.v19-featured-photo,.v19-widget-editor){
 background:var(--st-accent-darkbg)!important;
 --st-zone-fg:#ffffff;
 color:var(--st-zone-fg)!important;
}
/* Decorative gradient, without a separately selected solid card fill. */
html[data-st-horse-colors="custom"][data-st-card-fill="auto"] #v19-dashboard :is(.v19-stat-grid>div,.v19-featured-photo,.v19-widget-editor){
 background:var(--st-horse-surface-soft)!important;
 --st-zone-fg:var(--st-horse-soft-ink);
 color:var(--st-zone-fg)!important;
}
/* Explicit solid card fill always wins over any previous theme. */
html[data-st-card-fill="custom"] #v19-dashboard :is(.v19-stat-grid>div,.v19-featured-photo,.v19-widget-editor){
 background:var(--st-card-custom-fill)!important;
 --st-zone-fg:var(--st-card-custom-ink);
 color:var(--st-zone-fg)!important;
}
/* Nested tile borders respect the independent outline preference. */
html[data-st-card-border="custom"] #v19-dashboard :is(.v19-stat-grid>div,.v19-featured-photo,.v19-widget-editor){
 box-shadow:inset 0 0 0 1px var(--st-card-custom-border)!important;
}
html[data-st-card-border="auto"][data-st-horse-colors="custom"] #v19-dashboard :is(.v19-stat-grid>div,.v19-featured-photo,.v19-widget-editor){
 box-shadow:inset 0 0 0 1px var(--st-horse-border)!important;
}
/* All text on nested colored cards follows their own contrasting foreground. */
html[data-st-auto-contrast="true"] #v19-dashboard :is(.v19-stat-grid>div,.v19-widget-editor) :is(strong,span,small,p){color:var(--st-zone-fg)!important;}
/* A dark/bright two-colour gradient cannot use one universal text colour.
   A small opaque text plate guarantees readability without changing either chosen hue. */
html[data-st-horse-mixed="true"][data-st-card-fill="auto"] #v19-dashboard .v19-stat-grid>div :is(strong,small){
 color:var(--st-horse-gradient-ink)!important;
 background:var(--st-horse-text-plate);
 padding:2px 6px;
 border-radius:6px;
 align-self:flex-start;
}
/* Prevent a reintroduced fallback thumbnail overlay while the real photo is loaded. */
#v19-dashboard .v19-featured-photo.has-photo .v19-photo-placeholder{display:none!important;}


/* V2.4.24: three compact, fixed (existing fixed-menus.js) profile tabs. */
#v204-profile-menu.v204-profile-menu{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;padding:8px!important;overflow:visible!important}
#v204-profile-menu .v204-category-button{display:flex;justify-content:center;align-items:center;min-width:0;min-height:44px;padding:8px 5px;font-size:clamp(11px,2.7vw,13px);text-align:center;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
#v204-profile-menu .v204-category-button .st-icon{width:16px;height:16px;flex:none}
@media(max-width:350px){#v204-profile-menu.v204-profile-menu{grid-template-columns:repeat(2,minmax(0,1fr))!important}#v204-profile-menu .v204-category-button:last-child{grid-column:1/-1}}
/* Independent appearance screen, with a dedicated Save action and profile return. */
.st-app-custom-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.st-app-custom-heading .page-title{margin-bottom:8px}.st-app-custom-heading .page-subtitle{margin:0;max-width:690px}
.st-app-custom-heading>.btn{min-height:44px}
.st-app-custom-form{display:grid;gap:17px;max-width:900px;min-width:0;margin:0 auto}
.st-app-custom-form>.v10-panel,.st-app-custom-form>.v204-category{margin:0!important;min-width:0}
.st-app-custom-form>.st-app-mode-panel{padding:20px}
.st-app-custom-form .v209-mode-setting{display:grid;gap:10px;margin:0}
.st-app-custom-form .v209-mode-setting p{margin:0}
.st-app-custom-form .st-color-picker,.st-app-custom-form .st-horse-gradient-picker{background:transparent!important;border:0!important;padding:16px 0!important;margin:0!important}
.st-app-custom-form .st-color-picker,.st-app-custom-form .st-horse-gradient-picker{border-bottom:1px solid var(--line)!important}
.st-app-custom-actions{display:flex;flex-wrap:wrap;gap:10px}.st-app-custom-actions>.btn{min-height:44px;flex:1 1 200px;justify-content:center}
@media(max-width:650px){.st-app-custom-heading{display:grid;gap:12px}.st-app-custom-heading>.btn{width:100%;justify-content:center}.st-app-custom-form>.st-app-mode-panel,.st-app-custom-form>.st-customization-panel{padding:16px}}
/* Reclaim the empty columns after removing duplicated anniversary/memory recaps. */
#screen .v182-public-layout,#screen .v204-profile-layout{grid-template-columns:minmax(0,1fr);max-width:1050px}
/* Independent public-profile identity theme: softly tint cards as sage, rose, night or burgundy. */
.v174-profile-themed[data-theme="wine"]{--st-profile-accent:#753f53}
.v174-profile-themed[data-theme="rose"]{--st-profile-accent:#a45e77}
.v174-profile-themed[data-theme="sage"]{--st-profile-accent:#526d61}
.v174-profile-themed[data-theme="night"]{--st-profile-accent:#4f5873}
.v182-public-card.v174-profile-themed .v182-profile-facts>div{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 11%,var(--panel,#fff))!important;
 border-color:color-mix(in srgb,var(--st-profile-accent,#753f53) 30%,var(--panel,#fff))!important;
 color:var(--ink,#29262a)!important}
.v182-public-card.v174-profile-themed .v182-profile-facts>div :is(small,strong,span){color:var(--ink,#29262a)!important}
.v182-public-card.v174-profile-themed .v182-public-badges .tag{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 11%,var(--panel,#fff))!important;
 border-color:color-mix(in srgb,var(--st-profile-accent,#753f53) 28%,var(--panel,#fff))!important;
 color:var(--ink,#29262a)!important}
html[data-ui-theme="dark"] .v182-public-card.v174-profile-themed .v182-profile-facts>div{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 25%,var(--panel,#2b2530))!important}

/* V2.4.26 — featured-horse link is part of the PUBLIC PROFILE THEME,
   not the separate app accent. Previous .v183-featured-btn used permanent pink. */
.v182-public-card.v174-profile-themed .v182-profile-facts .v183-featured-btn{
 width:100%;min-width:0;
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 16%,var(--panel,#fff))!important;
 border-color:color-mix(in srgb,var(--st-profile-accent,#753f53) 36%,var(--panel,#fff))!important;
 color:#000!important;--st-zone-fg:#000;
}
.v182-public-card.v174-profile-themed .v182-profile-facts .v183-featured-btn:hover{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 23%,var(--panel,#fff))!important;
}
.v182-public-card.v174-profile-themed .v182-profile-facts .v183-featured-btn:focus-visible{
 outline:3px solid var(--st-profile-accent,#753f53);outline-offset:2px;
}
html[data-ui-theme="dark"] .v182-public-card.v174-profile-themed .v182-profile-facts .v183-featured-btn{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 38%,var(--panel,#27212c))!important;
 border-color:color-mix(in srgb,var(--st-profile-accent,#753f53) 68%,var(--panel,#27212c))!important;
 color:#fff!important;--st-zone-fg:#fff;
}
html[data-ui-theme="dark"] .v182-public-card.v174-profile-themed .v182-profile-facts .v183-featured-btn:hover{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 53%,var(--panel,#27212c))!important;
}

/* V2.4.25 — richer home previews. Neutral overlays preserve user-selected card fills
   and inherit the automatic black/white contrast from the surrounding widget. */
#v19-dashboard .v19-home-list{display:grid;gap:10px;min-width:0}
#v19-dashboard :is(.v19-wish-preview,.v19-task-preview,.v19-challenge-preview){
 display:grid;min-width:0;gap:7px;padding:12px;border:1px solid color-mix(in srgb,currentColor 19%,transparent);
 border-radius:13px;background:color-mix(in srgb,currentColor 4%,transparent);
 color:inherit;overflow-wrap:anywhere;
}
#v19-dashboard .v19-wish-preview{grid-template-columns:74px minmax(0,1fr);align-items:center;gap:12px;}
#v19-dashboard .v19-wish-portrait{width:74px;height:74px;overflow:hidden;border-radius:10px;
 border:1px solid color-mix(in srgb,currentColor 12%,transparent);
 background:color-mix(in srgb,currentColor 6%,transparent);display:grid;place-items:center;}
#v19-dashboard .v19-wish-portrait img{display:block;width:100%;height:100%;object-fit:contain;}
#v19-dashboard .v19-preview-copy{min-width:0;display:flex;flex-direction:column;gap:5px;}
#v19-dashboard .v19-preview-copy strong{font-size:14px;line-height:1.25;}
#v19-dashboard :is(.v19-preview-copy small,.v19-task-preview small,.v19-challenge-preview small){display:block;font-size:11px;line-height:1.4;}
#v19-dashboard .v19-preview-meta{font-size:11px;font-weight:750;line-height:1.35;}
#v19-dashboard .v19-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0;}
#v19-dashboard .v19-preview-head strong{font-size:13px;min-width:0;overflow-wrap:anywhere;}
#v19-dashboard .v19-preview-head>span{flex:none;font-size:12px;font-weight:750;}
#v19-dashboard .v19-mini-progress{height:7px;border-radius:99px;overflow:hidden;
 background:color-mix(in srgb,currentColor 19%,transparent);}
#v19-dashboard .v19-mini-progress>i{height:100%;display:block;border-radius:inherit;background:currentColor;}
#v19-dashboard .v20-home-widget{display:grid;gap:12px;min-width:0}
#v19-dashboard .v20-home-widget>.btn{justify-self:stretch;}
@media(max-width:430px){#v19-dashboard .v19-wish-preview{grid-template-columns:58px minmax(0,1fr);gap:9px;padding:10px}#v19-dashboard .v19-wish-portrait{width:58px;height:64px}}

/* A compact visible legend is always present below the agenda, including when
   the custom colour picker is closed. Swatches use the same validated values. */
.v210-calendar-legend{display:flex;align-items:center;flex-wrap:wrap;gap:9px 18px;
 margin:-3px 0 14px;padding:12px 16px;border:1px solid var(--st-card-custom-border,var(--line,#e1d7df));
 border-radius:13px;background:var(--st-card-custom-fill,var(--panel,#fff));
 color:var(--st-zone-fg,var(--st-page-ink,currentColor));font-size:12px;line-height:1.4;}
.v210-calendar-legend>strong{font-size:12px;}
.v210-legend-item{display:inline-flex;align-items:center;gap:7px;min-width:0;}
.v210-legend-item i{display:inline-block;width:12px;height:12px;flex:none;border-radius:50%;
 background:var(--v210-legend-color);border:1px solid rgba(0,0,0,.22);
 box-shadow:0 0 0 2px color-mix(in srgb,var(--v210-legend-color) 12%,transparent);}
html[data-st-auto-contrast="true"] #screen .v210-calendar-legend{--st-zone-fg:var(--st-contrast-card,var(--st-page-ink));color:var(--st-zone-fg)!important;}
@media(max-width:520px){.v210-calendar-legend{gap:10px 14px;padding:12px}}


/* V2.4.29 — Profile editing tabs follow the public profile's own theme
   (wine/rose/sage/night), not the separate app accent or old hard-coded pink.
   Keep contrast and selection visible in both light and dark mode. */
#screen .v204-profile-layout.v174-profile-themed[data-theme] #v204-profile-menu.v204-profile-menu{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 5%,var(--panel,#ffffff))!important;
 border-color:color-mix(in srgb,var(--st-profile-accent,#753f53) 38%,var(--panel,#ffffff))!important;
}
#screen .v204-profile-layout.v174-profile-themed[data-theme] #v204-profile-menu .v204-category-button{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 8%,var(--panel,#ffffff))!important;
 border-color:color-mix(in srgb,var(--st-profile-accent,#753f53) 36%,var(--panel,#ffffff))!important;
 color:#000000!important;
 --st-zone-fg:#000000;
 transition:background-color .16s ease,border-color .16s ease;
}
#screen .v204-profile-layout.v174-profile-themed[data-theme] #v204-profile-menu .v204-category-button[aria-pressed="true"]{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 22%,var(--panel,#ffffff))!important;
 border-color:var(--st-profile-accent,#753f53)!important;
 color:#000000!important;
 --st-zone-fg:#000000;
 box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--st-profile-accent,#753f53) 30%,transparent);
}
#screen .v204-profile-layout.v174-profile-themed[data-theme] #v204-profile-menu .v204-category-button:hover{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 17%,var(--panel,#ffffff))!important;
}
#screen .v204-profile-layout.v174-profile-themed[data-theme] #v204-profile-menu .v204-category-button:focus-visible{
 outline:3px solid var(--st-profile-accent,#753f53)!important;
 outline-offset:2px;
}
#screen .v204-profile-layout.v174-profile-themed[data-theme] #v204-profile-menu .v204-category-button svg{
 color:inherit!important;stroke:currentColor!important;
}
html[data-ui-theme="dark"] #screen .v204-profile-layout.v174-profile-themed[data-theme] #v204-profile-menu.v204-profile-menu{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 18%,var(--panel,#27212c))!important;
 border-color:color-mix(in srgb,var(--st-profile-accent,#753f53) 62%,var(--panel,#27212c))!important;
}
html[data-ui-theme="dark"] #screen .v204-profile-layout.v174-profile-themed[data-theme] #v204-profile-menu .v204-category-button{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 23%,var(--panel,#27212c))!important;
 border-color:color-mix(in srgb,var(--st-profile-accent,#753f53) 60%,var(--panel,#27212c))!important;
 color:#ffffff!important;
 --st-zone-fg:#ffffff;
}
html[data-ui-theme="dark"] #screen .v204-profile-layout.v174-profile-themed[data-theme] #v204-profile-menu .v204-category-button[aria-pressed="true"]{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 54%,var(--panel,#27212c))!important;
 border-color:color-mix(in srgb,var(--st-profile-accent,#753f53) 88%,#ffffff)!important;
 color:#ffffff!important;
 --st-zone-fg:#ffffff;
}
html[data-ui-theme="dark"] #screen .v204-profile-layout.v174-profile-themed[data-theme] #v204-profile-menu .v204-category-button:hover{
 background:color-mix(in srgb,var(--st-profile-accent,#753f53) 43%,var(--panel,#27212c))!important;
}

/* V2.4.30 — horse details own their two-colour gradient independently from
   the solid app-card fills. A saved card fill must never flatten a horse sheet.
   Keep the previous monochrome contrast and light inner information tiles. */
html .detail-modal #detail-content>.detail-body,
html .detail-modal .detail-body,
html .v04-edit-modal .modal-body,
html[data-ui-theme="dark"] .detail-modal #detail-content>.detail-body,
html[data-ui-theme="dark"] .v04-edit-modal .modal-body{
 background-image:var(--st-horse-gradient,linear-gradient(145deg,#fff,#fff))!important;
 background-color:transparent!important;
 background-repeat:no-repeat!important;
}
/* The preview shows exactly the same colour gradient as the actual horse sheet. */
html .st-horse-gradient-preview{
 background-image:var(--st-horse-gradient,linear-gradient(145deg,#fff,#fff))!important;
 background-color:transparent!important;
}


/* V2.4.31 — Home challenges use the same theme as the other dashboard
   previews. Older challenge rows inherited text colour for their progress
   fill, leaving a grey card and a black bar whatever the chosen palette. */
#v19-dashboard [data-v19-widget="challenges"] .v19-challenge-preview{
  --st-zone-fg:var(--st-contrast-card,var(--st-page-ink,#000000));
  color:var(--st-zone-fg)!important;
  background:color-mix(in srgb,var(--st-zone-fg) 4%,transparent);
  border-color:color-mix(in srgb,var(--st-zone-fg) 20%,transparent);
}
/* Text always uses the preview's own surface, not an inherited burgundy. */
html[data-st-auto-contrast="true"] #v19-dashboard [data-v19-widget="challenges"] .v19-challenge-preview :is(.v19-preview-head strong,.v19-preview-head>span,small){
  color:var(--st-zone-fg)!important;
}
html[data-st-palette="custom"][data-st-card-fill="auto"][data-st-horse-colors="default"] #v19-dashboard [data-v19-widget="challenges"] .v19-challenge-preview{
  --st-zone-fg:#000000;
  background:var(--st-accent-subtle)!important;
  border-color:var(--st-accent-ring)!important;
}
html[data-st-palette="custom"][data-st-card-fill="auto"][data-st-horse-colors="default"][data-ui-theme="dark"] #v19-dashboard [data-v19-widget="challenges"] .v19-challenge-preview{
  --st-zone-fg:#ffffff;
  background:var(--st-accent-darkbg)!important;
}
/* Two-colour decorative backgrounds win when no independent solid fill is set. */
html[data-st-horse-colors="custom"][data-st-card-fill="auto"] #v19-dashboard [data-v19-widget="challenges"] .v19-challenge-preview{
  --st-zone-fg:var(--st-horse-soft-ink);
  background:var(--st-horse-surface-soft)!important;
  border-color:var(--st-horse-border)!important;
}
/* Exact independently selected fill and outline remain exact. */
html[data-st-card-fill="custom"] #v19-dashboard [data-v19-widget="challenges"] .v19-challenge-preview{
  --st-zone-fg:var(--st-card-custom-ink);
  background:var(--st-card-custom-fill)!important;
}
html[data-st-card-border="custom"] #v19-dashboard [data-v19-widget="challenges"] .v19-challenge-preview{
  border-color:var(--st-card-custom-border)!important;
}
/* The bar itself follows the app accent instead of inheriting black/white text. */
#v19-dashboard [data-v19-widget="challenges"] .v19-challenge-preview .v19-mini-progress{
  background:color-mix(in srgb,var(--st-zone-fg) 16%,transparent)!important;
}
#v19-dashboard [data-v19-widget="challenges"] .v19-challenge-preview .v19-mini-progress>i{
  background:var(--st-accent-link,var(--wine,#753f53))!important;
}
/* A very light custom card inside dark mode still needs a dark progress bar. */
html[data-st-card-fill="custom"][data-ui-theme="dark"][data-st-card-dark="false"] #v19-dashboard [data-v19-widget="challenges"] .v19-mini-progress>i{
  background:var(--st-accent,var(--wine,#753f53))!important;
}
html[data-st-accent-white="true"][data-st-card-fill="custom"][data-st-card-dark="false"] #v19-dashboard [data-v19-widget="challenges"] .v19-mini-progress>i{
  background:#000000!important;
}
/* For pure black inner cards, lift the selected accent for contrast. */
html[data-st-card-fill="custom"][data-st-card-dark="true"] #v19-dashboard [data-v19-widget="challenges"] .v19-mini-progress>i,
html[data-st-card-fill="auto"][data-st-horse-dark="true"][data-st-horse-colors="custom"] #v19-dashboard [data-v19-widget="challenges"] .v19-mini-progress>i{
  background:color-mix(in srgb,var(--st-accent-real,#753f53) 35%,#ffffff)!important;
}
/* Mixed pure-black/pure-white gradients: neutral text plate only where needed. */
html[data-st-horse-mixed="true"][data-st-card-fill="auto"][data-st-horse-colors="custom"] #v19-dashboard [data-v19-widget="challenges"] .v19-challenge-preview :is(.v19-preview-head,small){
  background:var(--st-horse-text-plate);color:var(--st-horse-gradient-ink)!important;
  border-radius:7px;padding:3px 6px;
}
html[data-st-horse-mixed="true"][data-st-card-fill="auto"][data-st-horse-colors="custom"] #v19-dashboard [data-v19-widget="challenges"] .v19-challenge-preview :is(.v19-preview-head strong,.v19-preview-head>span,small){
  color:var(--st-horse-gradient-ink)!important;
}

/* V2.4.32 — consistent calendar cells, compact horse search and 16:9 showcases. */
.v20-month-grid{grid-auto-rows:clamp(52px,6.8vw,83px);align-items:stretch}
.v20-month-grid>.v20-day{position:relative;min-width:0;min-height:0!important;height:100%;box-sizing:border-box;overflow:hidden}
.v20-month-grid>.v20-blank{height:100%;min-height:0}
.v20-month-grid .v210-calendar-dots{margin:auto 0 0;align-self:flex-start;max-height:20px;overflow:hidden}
.v210-mini-month{grid-auto-rows:30px!important}
.v210-mini-month>.v20-day,.v210-mini-month>.v20-blank{height:100%!important;min-height:0!important}
.v210-week-grid{grid-auto-rows:80px}
.v210-week-grid>.v20-day{min-height:0;height:100%;overflow:hidden}
@media(max-width:580px){.v20-month-grid{grid-auto-rows:52px;gap:4px}.v20-month-grid>.v20-day{padding:5px;border-radius:8px}.v20-month-grid .v210-calendar-dots{gap:2px}.v210-mini-month{grid-auto-rows:26px!important}}
.st2432-search-filters{display:flex;align-self:center;align-items:center;flex-wrap:wrap;gap:6px 13px;grid-column:1/-1;width:100%;font-size:13px}
.st2432-search-filters label{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--ink)}
.st2432-search-filters input{width:17px;height:17px;accent-color:var(--st-accent,var(--wine));margin:0}
.v17-showcase-card .v17-share-grid,.v18-layout-album .v17-share-grid,.v18-layout-wide .v17-share-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),240px))!important;grid-auto-rows:auto;align-items:start;justify-content:start;gap:13px}
.v17-showcase-card .v17-share-horse{min-width:0;width:100%;max-width:240px;height:auto!important}
.v17-showcase-card .v17-share-horse img,.v17-showcase-card .v17-photo-fallback,.v18-layout-wide .v17-share-horse img,.v18-layout-album .v17-share-horse img{display:block;width:100%;height:auto!important;aspect-ratio:16/9!important;object-fit:cover;max-width:100%;}
.v17-showcase-card .v17-photo-fallback{display:grid;place-items:center}
@media(max-width:560px){.v17-showcase-card .v17-share-grid,.v18-layout-album .v17-share-grid,.v18-layout-wide .v17-share-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v17-showcase-card .v17-share-horse{max-width:none}}
@media(max-width:350px){.v17-showcase-card .v17-share-grid,.v18-layout-album .v17-share-grid,.v18-layout-wide .v17-share-grid{grid-template-columns:minmax(0,1fr)!important}.v17-showcase-card .v17-share-horse{max-width:240px}}
.st2432-showcase-crop{display:flex;align-items:flex-start;gap:10px;margin:13px 0;color:var(--ink);font-size:13px}.st2432-showcase-crop input{width:19px;height:19px;flex:none;accent-color:var(--st-accent,var(--wine))}
.st2432-crop-dialog{border:1px solid var(--line,#ccc);background:var(--panel,#fff);color:var(--ink,#171717);border-radius:18px;width:min(96vw,780px);max-height:95dvh;overflow:auto;z-index:100200;padding:0;box-shadow:0 24px 65px #0005}
.st2432-crop-dialog::backdrop{background:rgba(0,0,0,.75)}
.st2432-crop-inner{padding:clamp(16px,4vw,26px);display:grid;gap:13px}
.st2432-crop-inner h2{font-size:clamp(19px,3vw,24px);margin:0;color:var(--ink,#171717)}
.st2432-crop-preview{max-width:100%;border-radius:12px;overflow:hidden;background:#ddd;touch-action:none}
.st2432-crop-preview canvas{width:100%;height:auto;display:block;touch-action:none;cursor:grab}
.st2432-crop-inner label{display:flex;align-items:center;gap:12px;color:var(--ink,#171717)}
.st2432-crop-inner input[type="range"]{width:100%;accent-color:var(--st-accent,var(--wine))}
.st2432-crop-inner p{font-size:13px;margin:0;color:var(--muted,#666)}
.st2432-crop-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
@media(max-width:480px){.st2432-crop-actions button{flex:1 1 auto;padding:11px 8px;font-size:13px}}

/* V2.4.33 — Wishlist name-ideas notebook, synced in the private snapshot. */
.st-wishlist-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0 23px;padding:6px;border:1px solid var(--line,#ddd);border-radius:16px;background:var(--panel,#fff)}
.st-wishlist-tabs button{font:700 13px system-ui,sans-serif;line-height:1.3;min-height:44px;padding:10px 8px;border-radius:11px;border:1px solid transparent;background:transparent;color:var(--ink,#26242a);cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.st-wishlist-tabs button[aria-pressed="true"]{background:var(--st-accent,var(--wine,#753f53));color:#fff;border-color:var(--st-accent,var(--wine,#753f53))}
html[data-st-accent-white="true"] .st-wishlist-tabs button[aria-pressed="true"]{background:#fff!important;color:#202020!important;border-color:#777!important}
.st-wishlist-tabs button:focus-visible,.st-name-actions button:focus-visible{outline:3px solid var(--st-accent-ring,#b9a1b0);outline-offset:2px}
.st-name-form-panel{max-width:100%;margin:18px 0 22px}
.st-name-form{display:grid;gap:13px;margin-top:15px}
.st-name-form>label,.st-name-search{display:grid;gap:7px;font-size:13px;font-weight:650;color:var(--ink,#30272d)}
.st-name-form input,.st-name-form textarea,.st-name-search input{width:100%;min-width:0;padding:12px;min-height:44px;border:1px solid var(--line,#ddd);border-radius:11px;background:var(--panel,#fff);color:var(--ink,#30272d);font:inherit;line-height:1.4}
.st-name-form textarea{resize:vertical;min-height:74px}
.st-name-form-actions{display:flex;flex-wrap:wrap;gap:9px}
.st-name-list{margin-top:24px}
.st-name-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.st-name-list-head h2{margin:0}
.st-name-faves{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink,#30272d);cursor:pointer}
.st-name-faves input{width:18px;height:18px;accent-color:var(--st-accent,var(--wine,#753f53))}
.st-name-search{margin:12px 0 16px}
.st-name-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.st-name-card{display:flex;flex-direction:column;gap:12px;justify-content:space-between;min-width:0;padding:17px;background:var(--st-horse-surface-soft,var(--panel,#fff));border:1px solid var(--st-horse-border,var(--line,#ddd));border-radius:14px;color:var(--ink,#30272d)}
.st-name-card[hidden],.st-name-empty[hidden]{display:none!important}
.st-name-card-text strong{display:block;font-size:19px;line-height:1.4;overflow-wrap:anywhere;color:inherit}
.st-name-card-text p{margin:8px 0 0;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;color:inherit}
.st-name-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.st-name-actions .btn{padding:8px 11px;min-height:38px;font-size:12px;white-space:normal}
.st-name-favorite{font-size:21px!important;line-height:1!important;min-width:42px;min-height:40px!important}
.st-name-favorite[aria-pressed="true"]{font-weight:800}
html[data-st-card-fill="custom"] .st-name-card{background:var(--st-card-custom-fill)!important}
html[data-st-card-border="custom"] .st-name-card{border-color:var(--st-card-custom-border)!important}
html[data-st-card-fill="custom"] .st-name-card{color:var(--st-card-custom-ink,#30272d)}
html[data-st-card-dark="true"] .st-name-card{--ink:#fff;--muted:#dfdfdf}
html[data-st-horse-dark="true"]:not([data-st-card-fill="custom"]) .st-name-card{color:#fff;--ink:#fff;--muted:#dfdfdf}
html[data-ui-theme="dark"] .st-name-form :is(input,textarea),html[data-ui-theme="dark"] .st-name-search input{background:#27212c;color:#fff;border-color:#605462}
@media(max-width:720px){.st-name-cards{grid-template-columns:1fr}.st-wishlist-tabs{gap:4px}.st-wishlist-tabs button{font-size:12px}.st-name-card{padding:14px}}

/* V2.4.34 — Name notebook, assigned status and collection-name matches. */
.st-name-assigned-field{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;font-size:13px;font-weight:600;cursor:pointer}
.st-name-assigned-field input{width:18px!important;min-height:18px!important;height:18px;flex:0 0 18px;accent-color:var(--st-accent,#753f53)}
.st-name-statuses{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:7px}
.st-name-assigned-tag{display:inline-flex;border:1px solid var(--st-accent-ring,#a98996);color:var(--ink,#30272d);background:var(--st-accent-bg,#f5e9ee);border-radius:999px;padding:3px 9px;font-size:11px;font-weight:750}
.st-name-collection-warning{display:inline-flex;border:1px solid var(--st-accent-ring,#a98996);border-radius:9px;padding:5px 9px;background:var(--st-accent-subtle,#f9f1f5);color:var(--ink,#30272d);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.st-name-match-feedback:empty,.st-name-statuses:empty{display:none}
.st-name-match-feedback{margin:0;min-height:0}
html[data-ui-theme="dark"] .st-name-assigned-tag,html[data-ui-theme="dark"] .st-name-collection-warning{color:#fff;background:var(--st-accent-darkbg,#332b30)}
html[data-st-card-dark="true"] .st-name-card .st-name-assigned-tag,html[data-st-card-dark="true"] .st-name-card .st-name-collection-warning{color:#fff;background:#292929;border-color:#727272}
html[data-st-card-fill="custom"]:not([data-st-card-dark="true"]) .st-name-card .st-name-assigned-tag,html[data-st-card-fill="custom"]:not([data-st-card-dark="true"]) .st-name-card .st-name-collection-warning{color:#151515}
.st-name-assigned-button[aria-pressed="true"]{border-color:var(--st-accent-ring,#a98996)}
.st-post-photo-help{margin:4px 0 6px}


/* V2.4.35: A single desktop search row (text + checkboxes + stable + status); responsive below desktop. */
.st-collection-search.v04-toolbar{
 display:grid;grid-template-columns:minmax(165px,1.35fr) minmax(170px,.9fr) minmax(145px,.9fr) minmax(165px,1fr);
 align-items:end;column-gap:12px;row-gap:8px;
}
.st-collection-search.v04-toolbar>.field{min-width:0;grid-column:auto}
.st-collection-search.v04-toolbar>.st2432-search-filters{
 grid-column:auto;align-self:end;min-width:0;min-height:44px;
 width:auto;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:8px;
}
.st-collection-search.v04-toolbar>.st2432-search-filters label{
 flex:0 0 auto;white-space:nowrap;gap:4px;font-size:12px;
}
.st-collection-search.v04-toolbar>.st2432-search-filters input{
 flex:0 0 16px;width:16px!important;height:16px!important;min-height:0!important;padding:0!important;
}
.st-collection-search.v04-toolbar .field.wide{grid-column:auto}
@media(max-width:980px){
 .st-collection-search.v04-toolbar{grid-template-columns:minmax(0,1.5fr) minmax(185px,1fr);}
 .st-collection-search.v04-toolbar>.field:first-child{grid-column:1!important}
 .st-collection-search.v04-toolbar>.st2432-search-filters{grid-column:2}
}
@media(max-width:600px){
 .st-collection-search.v04-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .st-collection-search.v04-toolbar>.field:first-child{grid-column:1/-1!important}
 .st-collection-search.v04-toolbar>.st2432-search-filters{grid-column:1/-1;min-height:24px;gap:16px;justify-content:flex-start;padding:0 2px}
 .st-collection-search.v04-toolbar>.field:nth-last-child(-n+2){grid-column:auto}
}

/* V2.4.36 — real profile avatars in the friends-only community feed. */
.v20-feed-author img.v236-feed-avatar{object-fit:cover;object-position:center;flex:0 0 43px;min-width:43px;min-height:43px;max-width:43px;max-height:43px;overflow:hidden;border-radius:50%;padding:0;}
.v20-feed-author>div{min-width:0;overflow-wrap:anywhere;}


/* V2.4.37 — Name notebook: 3 compact columns on desktop, 2 on phone, only Edit/Delete per card. */
.st-name-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.st-name-card{min-width:0;padding:14px;gap:11px}
.st-name-card-text{min-width:0}
.st-name-card-text strong{font-size:clamp(15px,1.4vw,18px);line-height:1.3}
.st-name-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%}
.st-name-actions .btn{width:100%;min-width:0;min-height:35px;padding:7px 5px;font-size:clamp(11px,1vw,13px);line-height:1.2;overflow-wrap:anywhere}
.st-name-edit-flags{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin:2px 0 4px}
.st-name-edit-flag{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:600;line-height:1.4;color:var(--ink,#30272d)}
.st-name-edit-flag input{width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;accent-color:var(--st-accent,var(--wine,#753f53))}
.st-name-favorite-tag{display:inline-flex;border:1px solid var(--st-accent-ring,#a98996);border-radius:999px;padding:3px 9px;font-size:11px;font-weight:750;color:inherit;background:var(--st-accent-bg,#f5e9ee)}
@media(max-width:720px){
 .st-name-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .st-name-card{padding:10px;gap:8px}
 .st-name-card-text strong{font-size:15px}
 .st-name-card-text p{font-size:11px}
 .st-name-actions{gap:4px}
 .st-name-actions .btn{padding:7px 3px;min-height:34px;font-size:clamp(10px,2.55vw,12px)}
 .st-name-statuses{gap:4px}
 .st-name-assigned-tag,.st-name-favorite-tag{font-size:10px;padding:3px 6px}
 .st-name-collection-warning{font-size:10px;padding:4px 6px}
}
@media(max-width:360px){
 .st-name-cards{gap:7px}
 .st-name-card{padding:8px}
 .st-name-actions .btn{font-size:10px;letter-spacing:-.1px}
}

/* V2.5.1 — Recherche rapide dans le journal d’entraînement. */
.v251-session-horse-field{min-width:0;display:grid;gap:7px}
.v251-session-horse-field .field{min-width:0}
.v251-session-horse-field input[type="search"],.v251-session-horse-field select{width:100%;min-width:0;box-sizing:border-box}
.v251-session-horse-count{display:block;min-height:1em;color:var(--muted);font-size:11px;line-height:1.4}

/* Narrow input focus in long horse lists. */
.v251-session-horse-field input[type="search"]:focus{outline:2px solid var(--st-accent,var(--wine));outline-offset:1px}
@media(max-width:520px){.v05-session-modal .v04-form-grid:first-of-type{grid-template-columns:minmax(0,1fr)}.v251-session-horse-field{width:100%}}

/* V2.5.2 — Single-search horse picker (no second native dropdown). */
.v05-session-modal .v251-session-horse-field{position:relative;gap:0;min-width:0}
.v05-session-modal .v252-session-hidden{display:none!important}
.v05-session-modal .v251-session-horse-count{min-height:0;font-size:12px;line-height:1.3;margin-top:5px}
.v05-session-modal .v251-session-horse-count:empty{display:none}
.v252-session-results{position:absolute;top:calc(100% + 3px);left:0;right:0;z-index:150;max-height:min(34vh,230px);overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--st-accent-ring,var(--line,#d7ccd1));border-radius:14px;background:var(--panel,#fff);box-shadow:0 10px 25px rgba(0,0,0,.16);padding:4px;scrollbar-width:thin}
.v252-session-results[hidden]{display:none!important}
.v252-session-option{display:flex;width:100%;box-sizing:border-box;align-items:center;justify-content:space-between;gap:10px;border:0;border-radius:10px;background:transparent;color:var(--ink,#27242b);padding:11px 12px;text-align:left;cursor:pointer;font-size:16px;line-height:1.35;min-height:44px}
.v252-session-option span{min-width:0;overflow-wrap:anywhere;font-weight:650}
.v252-session-option small{color:var(--muted,#777);font-size:12px;white-space:nowrap}
.v252-session-option:hover,.v252-session-option:focus-visible,.v252-session-option.is-active{background:var(--st-accent-bg,rgba(100,70,70,.10));outline:2px solid transparent}
.v252-session-no-results{font-size:14px;line-height:1.45;padding:10px 12px;margin:0;color:var(--muted,#777)}
/* Safari automatically zooms focused form inputs below 16px; keep iPhone text >=16px rather than disabling pinch zoom. */
@media(max-width:800px){.v05-session-modal input,.v05-session-modal textarea,.v05-session-modal select{font-size:16px!important}}

/* V2.5.4 — Target-filtered, searchable horse picker for chain training. */
.v17-chain-add.v254-chain-add{display:grid;grid-template-columns:minmax(135px,190px) minmax(210px,1fr) auto;align-items:start;gap:12px}
.v254-chain-add>label,.v254-chain-picker{min-width:0;width:100%}
.v254-chain-picker{position:relative;display:grid;gap:0}
.v254-chain-picker>label{display:grid;gap:5px;font-size:.82rem;font-weight:600;min-width:0}
.v254-chain-picker input[type="search"]{box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:8px 10px;border-radius:10px;border:1px solid var(--line,#d9d2c8);background:var(--surface,#fff);color:var(--ink,inherit);font-size:16px}
.v254-chain-picker input[type="search"]:focus{outline:2px solid var(--st-accent,var(--wine,#753f53));outline-offset:1px}
.v254-chain-count{display:block;min-height:18px;font-size:12px;line-height:1.45;color:var(--muted,#777);margin-top:5px}
.v254-chain-results{position:absolute;z-index:160;top:calc(100% - 15px);left:0;right:0;max-height:min(36vh,245px);overflow-y:auto;overscroll-behavior:contain;padding:4px;border:1px solid var(--st-accent-ring,var(--line,#d9d2c8));border-radius:12px;background:var(--panel,#fff);box-shadow:0 10px 25px rgba(0,0,0,.16)}
.v254-chain-results[hidden]{display:none!important}
.v254-chain-option{display:flex;box-sizing:border-box;width:100%;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--ink,#27242b);text-align:left;cursor:pointer;font-size:16px;line-height:1.3}
.v254-chain-option span{min-width:0;overflow-wrap:anywhere;font-weight:650}
.v254-chain-option small{font-size:12px;max-width:48%;text-align:right;color:var(--muted,#777)}
.v254-chain-option:hover,.v254-chain-option:focus-visible{background:var(--st-accent-bg,rgba(100,70,70,.10))}
.v254-chain-empty{font-size:14px;line-height:1.4;padding:8px 10px;margin:0;color:var(--muted,#777)}
.v254-chain-submit{white-space:normal;min-height:42px;margin-top:19px}
@media(max-width:640px){.v17-chain-add.v254-chain-add{grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);gap:8px}.v254-chain-submit{grid-column:1/-1;width:100%;margin-top:0}.v254-chain-add>label{width:auto}.v254-chain-add select{font-size:16px!important}.v254-chain-results{left:-15%;right:0}.v254-chain-count{font-size:11px}}
@media(max-width:365px){.v17-chain-add.v254-chain-add{grid-template-columns:minmax(0,1fr);gap:7px}.v254-chain-results{left:0}.v254-chain-submit{grid-column:1}}

/* V2.5.5 — Stable filter for the level-first chain-training selector. */
.v17-chain-add.v254-chain-add.v255-chain-add{grid-template-columns:minmax(120px,170px) minmax(170px,225px) minmax(200px,1fr) auto}
.v255-chain-add>label{min-width:0;width:100%;box-sizing:border-box}
.v255-chain-add select{box-sizing:border-box;max-width:100%;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:641px) and (max-width:920px){.v17-chain-add.v254-chain-add.v255-chain-add{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.v255-chain-add .v254-chain-picker{grid-column:1/-1}.v255-chain-add .v254-chain-submit{grid-column:1/-1;margin-top:0}}
@media(max-width:640px){.v17-chain-add.v254-chain-add.v255-chain-add{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:9px}.v255-chain-add .v254-chain-picker{grid-column:1/-1}.v255-chain-add .v254-chain-submit{grid-column:1/-1}.v255-chain-add select{font-size:16px!important}.v255-chain-add .v254-chain-results{left:0;right:0;top:calc(100% - 10px)}}
@media(max-width:365px){.v17-chain-add.v254-chain-add.v255-chain-add{grid-template-columns:minmax(0,1fr)}.v255-chain-add .v254-chain-picker,.v255-chain-add .v254-chain-submit{grid-column:1}}
