/* Stable Tracker V9.2 — presentation-only refinements. */
/* The four existing profile categories are kept inside one collapsed menu. */
#screen .v92-profile-choice{margin:0 0 17px;min-width:0;position:relative}
#screen .v92-profile-choice>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;min-height:48px;padding:11px 14px;border:1px solid var(--line,#ded6d9);border-radius:13px;background:var(--panel,#fff);color:var(--ink);box-sizing:border-box}
#screen .v92-profile-choice>summary::-webkit-details-marker{display:none}
#screen .v92-profile-choice>summary strong{font-size:14px;font-weight:750}
#screen .v92-current-section{min-width:0;margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#screen .v92-menu-arrow{font-size:20px;line-height:1;transition:transform .15s}
#screen .v92-profile-choice[open] .v92-menu-arrow{transform:rotate(180deg)}
#screen .v92-profile-choice #v204-profile-menu.v204-profile-menu{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;position:static!important;top:auto!important;margin:6px 0 0!important;padding:8px!important;overflow:visible!important;box-sizing:border-box}
#screen .v92-profile-choice #v204-profile-menu .v204-category-button{min-height:42px!important;font-size:12px!important;line-height:1.25!important}
@media(max-width:650px){#screen .v92-profile-choice>summary{gap:8px;padding:9px 10px}#screen .v92-current-section{font-size:11px}#screen .v92-profile-choice #v204-profile-menu.v204-profile-menu{grid-template-columns:1fr!important}}
/* Stable Tracker’s existing daily window and absences: full independent Valedale view. */
.vd92-five-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px}
.vd92-five-tabs>.btn{min-width:0!important;min-height:44px;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.vd92-weekly-page>.vd92-planner-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.vd92-planner-top h2{margin:0;font-size:clamp(17px,2vw,21px)}.vd92-planner-top span{font-size:12px;color:var(--muted);flex:0 0 auto}
.vd92-weekly-page{min-width:0}.vd92-weekly-page .vd-day-window{margin-bottom:22px}
@media(max-width:820px){.vd92-five-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:520px){.vd92-five-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}.vd92-five-tabs .btn:last-child{grid-column:1/-1}}
/* Races / circuits: same disclosure style as goals and care. */
.st92-courses{margin:10px 0}.st92-course-actions{display:flex;align-items:stretch;gap:9px;flex-wrap:wrap}
.st92-course-actions .btn{min-height:44px;flex:1 1 160px;margin:0;min-width:0;white-space:normal}
.st92-section-note{margin:12px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.st92-nearest{padding:9px!important;background:transparent!important;box-shadow:none!important;border:0!important}
.st92-nearest .st-training-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px}
.st92-nearest .st-training-filters>.field{min-width:0}
.st92-nearest .st-training-nearest-list{display:grid;gap:7px}
.st92-nearest .st-training-nearest-row{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.85fr) 18px;align-items:center;gap:8px;width:100%;min-width:0;padding:11px 13px;min-height:60px;background:var(--panel,#fff);border:1px solid var(--line,#ddd);border-radius:11px;text-align:left;color:var(--ink)}
.st92-nearest .st92-nearest-item:first-child .st-training-nearest-row{border-color:var(--wine,#753f53);background:var(--wine-faint,#faf5f8)}
.st92-nearest .st-training-nearest-row:hover{border-color:var(--wine,#753f53)}
.st92-horse-label{min-width:0;display:grid;gap:3px}.st92-horse-label strong{font-size:14px;overflow-wrap:anywhere}.st92-horse-label small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.st92-nearest .st259-nearest-values{max-width:100%!important;min-width:0;text-align:right}.st92-nearest .st259-nearest-values strong{font-size:13px}.st92-nearest .st259-nearest-values small{font-size:11px}.st92-nearest-arrow{color:var(--muted);font-size:19px;justify-self:end}
@media(max-width:540px){.st92-nearest .st-training-filters{grid-template-columns:1fr 1fr}.st92-nearest .st-training-nearest-row{padding:9px;gap:6px}.st92-nearest .st259-nearest-values strong{font-size:12px}}
/* A single, balanced toolbar on desktop and a two-row group on small screens. */
#screen .st-collection-actions-row{display:flex!important;flex-direction:row;align-items:stretch;flex-wrap:nowrap;gap:9px;margin-bottom:18px}
#screen .st-collection-actions-row>.btn{min-width:0;min-height:44px;white-space:normal;padding:9px 13px;box-sizing:border-box}
#screen .st-collection-actions-row>.st-add-horse{flex:0 0 44px;width:44px;padding:0}
#screen .st-collection-actions-row>.st257-bulk-open{margin:0;flex:0 1 auto}
@media(max-width:700px){#screen .st-collection-actions-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:7px}#screen .st-collection-actions-row>.st257-bulk-open{grid-column:1/-1;width:100%}#screen .st-collection-actions-row>.btn{font-size:12px;padding:7px}}

.st92-nearest-item{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:7px;align-items:center;min-width:0}
.st92-open-profile{display:grid;place-items:center;min-width:42px;width:42px;height:44px;border-radius:11px;background:var(--panel,#fff);color:var(--wine,#753f53);border:1px solid var(--line,#ddd);cursor:pointer;font-size:19px}
.st92-open-profile:hover,.st92-open-profile:focus-visible{border-color:var(--wine,#753f53);background:var(--wine-faint,#f8edf0)}
