
/* v2.6.0 | SOTA OWNERS' CLUB — walnut / brass / racing green, data first */
:root{--bg:#201812;--blue:#203429;--card:#192e2a;--line:#806548;--white:#f7eddb;--muted:#c0b6a3;--mint:#65f7d0;--gold:#d5b475;--red:#ed958b;color-scheme:dark}
html{background:#211811}
body{color:var(--white);background-color:#211811;background-image:linear-gradient(115deg,#140f0cce,#20181090 45%,#120e0bde),repeating-linear-gradient(96deg,transparent 0 9px,#ab80500a 9px 10px,transparent 11px 28px,#00000018 29px 31px),repeating-linear-gradient(2deg,#332319,#2a1e16 5px,#3b291b 9px,#261910 16px,#342218 25px);background-attachment:fixed}
.top{background:linear-gradient(95deg,#281911f5,#422b1ef4 48%,#251912f5),repeating-linear-gradient(2deg,#39271a,#533726 5px,#382519 12px);border-bottom:2px solid #bd9758;box-shadow:0 8px 35px #08050395}
.brand strong{color:#f8e8cb;letter-spacing:2.4px}.brand small{color:#d5b475}.mark{background:linear-gradient(145deg,#dfc08a,#ae8549 55%,#83613a);color:#24180e;border:1px solid #f6dca4;box-shadow:0 4px 18px #0402018c}
.eyebrow,.tiny{color:#d5b475}.dashboard-heading h1 em,.welcome h1 em{color:#e8c589}
.stats>div,.login-card,.info-block{background:linear-gradient(145deg,#263b30,#192d2b);border:1px solid #806548;box-shadow:0 8px 22px #0004}
.stats strong{color:#65f7d0;text-shadow:0 0 16px #4bf0bb24}
.tabs{background:linear-gradient(110deg,#3c271b,#251b15);border:1px solid #9e7d4e;box-shadow:inset 0 1px #cca76b40}.tabs button{color:#e3d0b4}.tabs button.active{color:#67ffd8;background:linear-gradient(130deg,#245549,#193e39);box-shadow:inset 0 0 0 1px #538c74}
#horsesPage .horse-grid{gap:14px}
#horsesPage .gallery-card{background:linear-gradient(155deg,#243c33,#1b302b 55%,#172b28);border:1px solid #9e8059;box-shadow:0 8px 22px #05040285, inset 0 1px #efd8ae20;border-radius:13px;overflow:hidden}
#horsesPage .gallery-card:hover{border-color:#dec188;box-shadow:0 13px 32px #0009,0 0 0 1px #d3b47b30;transform:translateY(-2px)}
#horsesPage .horse-art{background:radial-gradient(ellipse at 50% 98%,#395747 0%,#213a34 47%,#10221f 90%);border-bottom:3px solid #ac8650}
#horsesPage .horse-art img{object-fit:contain}
#horsesPage .horse-grade{background:linear-gradient(130deg,#5f4225,#b48b4d);border:1px solid #efd39a;color:#fff4d6;box-shadow:0 3px 12px #0008}
#horsesPage .gallery-info{gap:9px;background-image:linear-gradient(150deg,#263b3199,#1427240a)}
#horsesPage .sota-horse-heading{padding:3px 0 6px;align-items:stretch}
#horsesPage .gallery-info h3{color:#fff1d9;font-size:17px;letter-spacing:.1px;line-height:1.2}
#horsesPage .sota-ff-name-badge{background:linear-gradient(150deg,#13564c,#10453f);border:1px solid #d7b778;box-shadow:inset 0 1px #73e9cb40,0 2px 12px #0005;min-height:83px}
#horsesPage .sota-ff-name-badge strong{color:#6dffda;text-shadow:0 0 18px #62ffd62e;font-size:32px}
#horsesPage .sota-ff-name-badge small{color:#d4e8d9}
#horsesPage .horse-meta{color:#e0d1bb;font-size:11px}
#horsesPage .sota-career{background:#2b3b30;border:1px solid #7c6a4a;box-shadow:inset 0 1px #ffffff0a;margin:3px 0;padding:9px 10px;color:#d2b981}
#horsesPage .sota-career strong{color:#d8b979;font-size:10px}
#horsesPage .sota-career span{color:#6df5d4;font-size:19px;font-variant-numeric:tabular-nums}
#horsesPage .sota-career small{display:none}
#horsesPage .sota-snapshot-condition{display:none}
#horsesPage .sota-live-source{display:none}
#horsesPage .gallery-info .pref-chip{background:#2b382d;border:1px solid #846b48;border-radius:7px;padding:4px 6px}
#horsesPage .gallery-info .pref-name{color:#f2dec0}
#horsesPage .gallery-info .pref-number{color:#f0c982}
#horsesPage .gallery-info .pref-stars-fill{color:#efc16d}
#horsesPage .gallery-info .pref-help{display:none}
#horsesPage .sota-ff-grid>*,#horsesPage .sota-ff-small,#horsesPage .breeding-stat{background:#183d36;border-color:#466b59;color:#edf6ef}
#horsesPage .sota-ff-grid b,#horsesPage .sota-ff-small b{color:#69f8d5;text-shadow:0 0 12px #65ffd520;font-variant-numeric:tabular-nums}
#horsesPage .sota-section-title{color:#dabb83;border-color:#8b6c47}
#horsesPage .sota-disclaimer{font-size:10px;color:#a9afa2}
#horsesPage .horse-foot{border-top:1px solid #7d6746;padding-top:10px}
#horsesPage .pfl-profile{color:#dabe8c}
#horsesPage .smallbtn,.outline,.ghost{background:#293a31;border:1px solid #97794d;color:#f5e4c9}
#horsesPage .smallbtn:hover,.outline:hover,.ghost:hover{border-color:#e7bf80;background:#334d40}
.primary,.pfl-live-panel button,.filter-panel-bottom button{background:linear-gradient(130deg,#1b7566,#166151);border:1px solid #81d7be;color:#f5fffb}
.gold{background:linear-gradient(110deg,#e9cd95,#bb9457);border:1px solid #f4deb0;color:#2c2115}
.horse-quick-filters{background:linear-gradient(100deg,#3e291d,#2a2119);border-color:#9b7d53}
.horse-stage-btn{border-color:#8d744e!important;color:#eadac0!important;background:#2b342b!important}
.horse-stage-btn.active{background:#185c4e!important;border-color:#7de4bc!important;color:#baffeb!important}
.pfl-live-panel{background:linear-gradient(125deg,#1c3a32,#182f2b);border:1px solid #937850;box-shadow:0 6px 20px #0004;color:#f3e9d3}
.pfl-live-panel button{background:#1b695b;border-color:#74cbb3}
#horseFilterPanel>summary{background:#3d2c20;border:1px solid #b39460;color:#f1dfbd}
#horseFilterPanel[open]>summary{background:#65452c;box-shadow:0 0 0 2px #d5b47540}
#horseFilterPanel .stable-filter-controls{background:linear-gradient(145deg,#2e271d,#192e29);border:1px solid #ad8b58;box-shadow:0 22px 65px #090503e8}
.filter-section-label{color:#ddbb7f}.filter-panel-top strong{color:#fff0d5}.filter-panel-grid .filter-field{color:#e8d5b6}
.filter-panel-grid .filter-field select,input,textarea,select{background:#1d2d29;border-color:#7d6749;color:#f9eedb}
input:focus,textarea:focus,select:focus{border-color:#65efc8;box-shadow:0 0 0 2px #65efc830}
.filter-panel-bottom{border-top-color:#8b7554}.filter-panel-bottom button{background:#207968;border-color:#75cfb1}
.sota-career,.sota-ff-name-badge,.sota-ff-small{font-variant-numeric:tabular-nums}
.appfoot{border-top-color:#9a7a4d;color:#d2bda0}
@media(prefers-reduced-motion:reduce){#horsesPage .gallery-card{transition:none}#horsesPage .gallery-card:hover{transform:none}}

/* v2.6.1 Owners' Club refinement: deeper smoked walnut and midnight racing green. */
:root{--bg:#120d0a;--blue:#152920;--card:#10241e;--line:#9b7850;--white:#faeed9;--muted:#c6b9a0;--mint:#72ffdf;--gold:#dabc80}
html{background:#120c09}
body{background-color:#120c09;background-image:
 linear-gradient(110deg,#0c0806ed,#140c08b8 45%,#090605ef),
 repeating-linear-gradient(95deg,transparent 0 26px,#7d563414 27px 28px,transparent 29px 62px,#00000020 63px 64px),
 repeating-linear-gradient(1deg,#22160f 0px,#24170f 12px,#2a1a11 24px,#1c110c 43px,#26170e 68px);}
.top{background:linear-gradient(100deg,#1b110cfa,#322015f7 52%,#180f0afa);border-bottom-color:#a5814f}
.tabs,.horse-quick-filters{background:linear-gradient(105deg,#2b1c14,#1b130ff7);border-color:#8d6b43}
#horsesPage .gallery-card{background:linear-gradient(150deg,#1b3328,#10271f 57%,#0d211b);border-color:#a48455;box-shadow:0 11px 30px #000a,inset 0 1px #f1dab21c}
#horsesPage .gallery-card:hover{border-color:#e4c48a;box-shadow:0 16px 42px #000c,0 0 0 1px #cbaa773d}
#horsesPage .horse-art{background:radial-gradient(ellipse at 50% 100%,#294b3b 0%,#142c26 50%,#071b17 96%);border-bottom-color:#bb985f}
#horsesPage .gallery-info{background-image:linear-gradient(155deg,#1d392b55,#10261d13);gap:9px}
#horsesPage .sota-horse-heading{grid-template-columns:minmax(0,1fr) minmax(116px,39%);gap:9px;align-items:stretch;padding-bottom:4px}
#horsesPage .sota-name-column{justify-content:flex-start;gap:6px;min-width:0}
#horsesPage .sota-name-column h3{font-size:16px;line-height:1.16;max-width:100%;overflow-wrap:normal;word-break:normal;hyphens:auto}
#horsesPage .sota-career-inline{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-width:0;margin:1px 0 0;padding:5px 7px;border:1px solid #705b38;border-left:3px solid #d8b777;background:#122e25;border-radius:6px;box-shadow:none}
#horsesPage .sota-career-inline strong{font-size:9px;line-height:1.15;color:#e3c994;letter-spacing:.025em}
#horsesPage .sota-career-inline span{font-size:clamp(14px,1vw,19px);font-weight:850;margin:0;line-height:1.15;color:#72ffdc;white-space:nowrap;font-variant-numeric:tabular-nums}
#horsesPage .sota-name-column .pill{margin-top:2px}
#horsesPage .sota-ff-name-badge{background:linear-gradient(145deg,#104b40,#08382f);border-color:#c9a66c;box-shadow:inset 0 1px #7affd33d,0 3px 15px #0008}
#horsesPage .sota-ff-small,#horsesPage .sota-ff-grid>*{background:#0d392f;border-color:#4c715a}
#horsesPage .sota-ff-grid b,#horsesPage .sota-ff-small b{color:#77ffe0}
#horsesPage .gallery-info .pref-chip{background:#1a3027;border-color:#705b3c}
#horsesPage .sota-disclaimer{color:#bdbaae}
@media(max-width:520px){#horsesPage .sota-horse-heading{grid-template-columns:minmax(0,1fr) minmax(116px,40%)}#horsesPage .sota-career-inline span{font-size:17px}}

/* v2.6.2: clean analytics; muted rose accents and compact condition/financial panels */
/* Grade badge deliberately retains existing PFL-style palette; no statistical color overrides. */
/* Metrics are colored by available peer ranking, never all pink. */
#horsesPage .sota-finance{margin-top:9px;padding:11px;background:#112f29;border:1px solid #786348;border-radius:11px}
#horsesPage .sota-finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:7px}
#horsesPage .sota-finance-grid>div{background:#0b3a30;border-radius:8px;padding:8px 9px;display:flex;flex-direction:column;gap:3px;min-width:0}
#horsesPage .sota-finance-grid small{color:#e3d4bc;font-size:10px}
#horsesPage .sota-finance-grid b{font-size:15px;white-space:normal;overflow-wrap:anywhere;line-height:1.2}
#horsesPage .sota-finance-grid .positive b{color:#70f4ca}
#horsesPage .sota-finance-grid .negative b{color:#ff919f}
#horsesPage .sota-finance-hint,#horsesPage .sota-unavailable{font-size:10px;color:#c8baa7;line-height:1.4;margin:6px 0 0;display:block}
#horsesPage .sota-compact-attrs,#horsesPage .sota-race-top{margin-top:9px;padding:10px;background:#132e28;border:1px solid #68563e;border-radius:10px}
#horsesPage .sota-section-title{font-size:11px;color:#e3c28b;font-weight:800;letter-spacing:.4px}
#horsesPage .sota-section-title small{font-size:10px;color:#bba993;letter-spacing:0;font-weight:500}
#horsesPage .sota-compact-attr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:7px}
#horsesPage .sota-compact-attr-grid>div{padding:6px 7px;background:#193b39;border-radius:7px;display:flex;flex-direction:column;gap:1px}
#horsesPage .sota-compact-attr-grid small{font-size:9px;color:#c4cfcd}
#horsesPage .sota-compact-attr-grid strong{font-size:13px;color:#f2b1d0}
#horsesPage .sota-race-mini{display:grid;grid-template-columns:23px minmax(0,1fr) auto;align-items:center;gap:6px;background:#183a32;padding:7px 5px;margin-top:5px;border-radius:7px;border-left:3px solid #657777}
#horsesPage .sota-race-mini.excellent{border-left-color:#69ddae}#horsesPage .sota-race-mini.good{border-left-color:#72b8df}#horsesPage .sota-race-mini.fair{border-left-color:#d5b66e}#horsesPage .sota-race-mini.poor{border-left-color:#d48498}
#horsesPage .sota-race-mini strong{font-size:10px;color:#f6e6d8;line-height:1.35}#horsesPage .sota-race-mini small{display:block;font-size:9px;color:#a7c3b9;margin-top:2px}
#horsesPage .sota-race-mini>b{font-size:13px;color:#ee9dbb;white-space:nowrap}#horsesPage .sota-race-mini>b small{display:inline}
#horsesPage .sota-race-rank{text-align:center;color:#d9bd84;font-weight:800}
#horsesPage .sota-race-all{margin-top:7px;font-size:11px;color:#ddc6aa}#horsesPage .sota-race-all summary{cursor:pointer}
#horsesPage .sota-pref-inline .pref-stars-fill{color:#e49bbb}
#horsesPage .gallery-card{border-color:#81653d}
.sota-finance-editor{margin-top:10px}

/* v2.6.3 — semantic stats with PFL-style grade badges unaffected */
#horsesPage .sota-ff-small.ff-high b, #horsesPage .sota-ff-name-badge.ff-high strong { color:#65eec0; }
#horsesPage .sota-ff-small.ff-medium b, #horsesPage .sota-ff-name-badge.ff-medium strong { color:#f5cd81; }
#horsesPage .sota-ff-small.ff-low b, #horsesPage .sota-ff-name-badge.ff-low strong { color:#f28f89; }
#horsesPage .sota-ff-small.ff-neutral b, #horsesPage .sota-ff-name-badge.ff-neutral strong { color:#b9e1d8; }
#horsesPage .sota-ff-small.ff-unknown b, #horsesPage .sota-ff-name-badge.ff-unknown strong { color:#a8aba4; text-shadow:none; }
#horsesPage .sota-finance-grid>div:not(.positive):not(.negative) b { color:#e6d8bc; }
#horsesPage .sota-finance-grid .positive b { color:#65eec0; }
#horsesPage .sota-finance-grid .negative b { color:#f28f89; }
#horsesPage .sota-finance-grid .unknown b { color:#a8aba4; }
#horsesPage .sota-race-mini.excellent>b {color:#65eec0;}
#horsesPage .sota-race-mini.good>b {color:#8ccef0;}
#horsesPage .sota-race-mini.fair>b {color:#f5cd81;}
#horsesPage .sota-race-mini.poor>b {color:#f28f89;}
#horsesPage .sota-compact-attr-grid strong {color:#e4d7bd;}
#horsesPage .sota-career-inline .sota-total-starts{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:9px;color:#c8baa4;letter-spacing:.025em}
#horsesPage .sota-career-inline .sota-total-starts b{font-size:13px;color:#f5e8c8;letter-spacing:0}

/* v2.6.4: PFL grade family colors on grade badges AND retired attribute values.
   Screenshot-grounded: S pink/magenta, SS purple; other tier hues are approximate until verified.
   Stats/ROI retain their independent semantic colors. */
:root{--pfl-sss:#ac7fc5;--pfl-ss:#a851bb;--pfl-s:#c5609c;--pfl-a:#6d9ec1;--pfl-b:#76a88a;--pfl-c:#bd9d63;--pfl-d:#b88570;--pfl-u:#93918b;}
#horsesPage .horse-grade.pfl-grade-sss{background:linear-gradient(135deg,#8c58b0,#563b77);border-color:#b38bc4;color:#fff3ff}
#horsesPage .horse-grade.pfl-grade-ss{background:linear-gradient(135deg,#ad4fbb,#642578);border-color:#c47bd1;color:#fff3ff}
#horsesPage .horse-grade.pfl-grade-s{background:linear-gradient(135deg,#bd5796,#722d65);border-color:#d58ab5;color:#ffeff8}
#horsesPage .horse-grade.pfl-grade-a{background:linear-gradient(135deg,#5d8eb4,#315477);border-color:#8bb5cf;color:#f0faff}
#horsesPage .horse-grade.pfl-grade-b{background:linear-gradient(135deg,#629579,#315a45);border-color:#91b99d;color:#f4fff4}
#horsesPage .horse-grade.pfl-grade-c{background:linear-gradient(135deg,#b4975f,#6d5330);border-color:#d5b980;color:#fff9eb}
#horsesPage .horse-grade.pfl-grade-d{background:linear-gradient(135deg,#ae785f,#67443c);border-color:#d09b82;color:#fff7f0}
#horsesPage .horse-grade.pfl-grade-u,#horsesPage .horse-grade.pfl-grade-unknown{background:#525b54;border-color:#7a8378;color:#eee}
#horsesPage .sota-compact-attr-grid strong.pfl-grade-sss,#horsesPage .breeding-stat b.pfl-grade-sss,#horsesPage .breeding-grade strong.pfl-grade-sss{color:var(--pfl-sss)}
#horsesPage .sota-compact-attr-grid strong.pfl-grade-ss,#horsesPage .breeding-stat b.pfl-grade-ss,#horsesPage .breeding-grade strong.pfl-grade-ss{color:var(--pfl-ss)}
#horsesPage .sota-compact-attr-grid strong.pfl-grade-s,#horsesPage .breeding-stat b.pfl-grade-s,#horsesPage .breeding-grade strong.pfl-grade-s{color:var(--pfl-s)}
#horsesPage .sota-compact-attr-grid strong.pfl-grade-a,#horsesPage .breeding-stat b.pfl-grade-a,#horsesPage .breeding-grade strong.pfl-grade-a{color:var(--pfl-a)}
#horsesPage .sota-compact-attr-grid strong.pfl-grade-b,#horsesPage .breeding-stat b.pfl-grade-b,#horsesPage .breeding-grade strong.pfl-grade-b{color:var(--pfl-b)}
#horsesPage .sota-compact-attr-grid strong.pfl-grade-c,#horsesPage .breeding-stat b.pfl-grade-c,#horsesPage .breeding-grade strong.pfl-grade-c{color:var(--pfl-c)}
#horsesPage .sota-compact-attr-grid strong.pfl-grade-d,#horsesPage .breeding-stat b.pfl-grade-d,#horsesPage .breeding-grade strong.pfl-grade-d{color:var(--pfl-d)}
#horsesPage .sota-compact-attr-grid strong.pfl-grade-u,#horsesPage .sota-compact-attr-grid strong.pfl-grade-unknown,#horsesPage .breeding-stat b.pfl-grade-u,#horsesPage .breeding-stat b.pfl-grade-unknown{color:#a4aaa4}

/* v2.6.5: compact per-horse attribute dropdown. Only retired horses render it. */
#horsesPage details.sota-attributes-drop{padding:0;background:#102c25;border:1px solid #705a40;border-radius:9px;overflow:hidden}
#horsesPage details.sota-attributes-drop>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;padding:10px 12px;color:#eac996;font-size:11px;font-weight:800;letter-spacing:.025em}
#horsesPage details.sota-attributes-drop>summary::-webkit-details-marker{display:none}
#horsesPage details.sota-attributes-drop>summary::after{content:'▾';flex:none;font-size:16px;color:#c990b4;line-height:1}
#horsesPage details.sota-attributes-drop[open]>summary::after{content:'▴'}
#horsesPage details.sota-attributes-drop>summary:hover,#horsesPage details.sota-attributes-drop>summary:focus-visible{background:#1b3b31}
#horsesPage details.sota-attributes-drop>summary:focus-visible{outline:2px solid #d3a371;outline-offset:-2px}
#horsesPage details.sota-attributes-drop .sota-drop-hint{font-size:9px;font-weight:500;color:#adbdb4;text-align:right;letter-spacing:0}
#horsesPage details.sota-attributes-drop .sota-compact-attr-grid{margin:0;padding:3px 9px 9px;border-top:1px solid #4b5345}
#horsesPage details.sota-attributes-drop .sota-compact-attr-grid>div{padding:5px 6px}
@media(max-width:520px){#horsesPage details.sota-attributes-drop .sota-drop-hint{display:none}}

/* v2.6.6: visible, compact race recommendations; expanded detail only on demand */
#horsesPage .sota-race-top{margin-top:8px;padding:9px 10px;background:#102f27;border-color:#82694b}
#horsesPage .sota-race-top .sota-section-title{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px}
#horsesPage .sota-race-mini{grid-template-columns:19px minmax(0,1fr) auto;gap:5px;padding:5px 6px;margin-top:4px;background:#173c30;border-radius:6px}
#horsesPage .sota-race-mini strong{font-size:10px;line-height:1.25}
#horsesPage .sota-race-mini small{font-size:9px;margin-top:1px}
#horsesPage .sota-race-mini>b{font-size:12px;color:#cfbd98}
#horsesPage .sota-race-mini.unknown>b{color:#acb8ae}
#horsesPage .sota-race-mini.excellent>b{color:#8cbca5}
#horsesPage .sota-race-mini.good>b{color:#a0bec6}
#horsesPage .sota-race-mini.fair>b{color:#cdb583}
#horsesPage .sota-race-mini.poor>b{color:#c99089}
#horsesPage .sota-race-top .sota-unavailable{margin:6px 0 0;font-size:10px;color:#c0b9a9}
#horsesPage .sota-race-all summary{padding:6px 2px 2px;font-size:10px;color:#d7bf98;list-style-position:inside}
#horsesPage .sota-finance-drop{margin-top:9px;border:1px solid #655540;border-radius:9px;background:#112a24}
#horsesPage .sota-finance-drop>summary{padding:9px 10px;cursor:pointer;color:#d9c297;font-size:11px;font-weight:700;display:flex;justify-content:space-between;align-items:center}
#horsesPage .sota-finance-drop>summary span{font-size:10px;color:#b9ada0;font-weight:500}
#horsesPage .sota-finance-drop .sota-finance{border:0;border-top:1px solid #655540;margin:0;border-radius:0;background:transparent}

/* Owners Club horse intelligence detail — v2.6.7 */
#detailDialog{width:min(940px,calc(100vw - 28px));max-height:94vh;background:#10251e;color:#f3e8d3;border:1px solid #91744d;box-shadow:0 32px 120px #000d}
#detailDialog .dialogform{padding:clamp(16px,2.3vw,27px);background:linear-gradient(140deg,#102b22,#172d25 48%,#14251e)}
#detailDialog .dialoghead{padding-bottom:12px;border-bottom:1px solid #816744}
#detailDialog .dialoghead .tiny{color:#cfa96d}
#detailDialog .dialoghead h2{color:#f4e6cc;font-size:clamp(22px,2.5vw,32px)}
#detailDialog .close{color:#e3c798}
#detailDialog .club-detail-portrait{max-width:100%;margin:16px 0 12px;border:1px solid #69563a;border-radius:14px;overflow:hidden;background:#08241e}
#detailDialog .horse-art.large{height:clamp(190px,25vw,270px);max-height:270px;border:0}
#detailDialog .horse-art.large img{object-fit:contain}
#detailDialog .club-detail-overview{background:linear-gradient(140deg,#163b2e,#102920);border:1px solid #806542;border-radius:14px;padding:16px;display:grid;gap:13px}
#detailDialog .club-detail-head{display:flex;gap:14px;justify-content:space-between;align-items:stretch}
#detailDialog .club-detail-identity{min-width:0;flex:1}
#detailDialog .detail-topline{margin:0 0 10px;align-items:center}
#detailDialog .club-detail-grade{display:inline-grid;place-items:center;font-size:18px;font-weight:950;padding:6px 12px;border-radius:9px;color:#fff;border:1px solid #a783aa;background:#a14ab1}
#detailDialog .club-detail-record{background:#112b24;border-left:3px solid #b99a62;padding:11px 13px;border-radius:9px;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
#detailDialog .club-detail-record span{font-size:11px;letter-spacing:.9px;text-transform:uppercase;color:#d2b27c;font-weight:800}
#detailDialog .club-detail-record strong{font-size:23px;color:#a9dfc5}
#detailDialog .club-detail-record small{font-size:11px;color:#bfcbbf}
#detailDialog .club-detail-adjusted{flex:0 0 195px;background:linear-gradient(145deg,#104f40,#0b3029);border:1px solid #b89a5e;border-radius:12px;box-shadow:0 0 0 1px #9f865134,0 8px 24px #0005;padding:16px 12px;display:grid;place-items:center;gap:5px;text-align:center}
#detailDialog .club-detail-adjusted small{font-weight:900;font-size:11px;letter-spacing:.7px;color:#dbd4bb}
#detailDialog .club-detail-adjusted strong{font-size:39px;line-height:1.15;color:#9ee9c8;font-variant-numeric:tabular-nums}
#detailDialog .club-detail-adjusted span{font-size:10px;color:#bdd1c6}
#detailDialog .club-detail-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#detailDialog .club-detail-metric{background:#10382e;border:1px solid #386250;border-radius:10px;min-width:0;padding:12px;text-align:center;display:grid;gap:5px}
#detailDialog .club-detail-metric small{color:#c7d5c9;font-size:11px}
#detailDialog .club-detail-metric b{font-size:26px;color:#a8dec6;font-variant-numeric:tabular-nums}
#detailDialog .sota-race-top,#detailDialog .sota-finance-drop,#detailDialog .sota-compact-attrs{margin:0}
#detailDialog .club-detail-actions{margin:14px 0}
#detailDialog .club-detail-watch{background:#172e26;border:1px solid #6a583f;border-radius:12px;padding:12px}
#detailDialog .club-detail-watch .tiny{color:#c9a771}
#detailDialog .club-detail-watch .action-row{margin:8px 0 0}
#detailDialog select,#detailDialog input,#detailDialog textarea{background:#10261f;color:#f4eadb;border:1px solid #786344}
#detailDialog .detail-tabs{border-color:#765c3d}
#detailDialog .detail-tabs button{color:#c5b99d}
#detailDialog .detail-tabs button.active{color:#a8ead1;border-color:#77b99b}
#detailDialog .entry,#detailDialog .mini-form{background:#18372d;border-color:#6d5d44}
#detailDialog .muted{color:#b5c3b5}
@media(max-width:530px){#detailDialog .club-detail-head{flex-direction:column}#detailDialog .club-detail-adjusted{flex-basis:auto;min-height:105px}#detailDialog .club-detail-metric b{font-size:21px}}


/* v2.6.8 — grade family palette supplied by the stable owner. Grade colors are
   independent of performance/ROI semantic colors and walnut/brass theme.
   SSS red, SS magenta, S violet, A green. +/- retain their family hue.
   Other unverified tiers retain their existing colors pending PFL references. */
:root {
  --pfl-sss:#d7636e;
  --pfl-ss:#d46aa9;
  --pfl-s:#ac7ae4;
  --pfl-a:#78b98d;
}
#horsesPage .horse-grade.pfl-grade-sss,
#detailDialog .horse-grade.pfl-grade-sss,
#detailDialog .club-detail-grade.pfl-grade-sss {
 background:linear-gradient(135deg,#a82435,#651b2a);border-color:#df7480;color:#fff2f2;
}
#horsesPage .horse-grade.pfl-grade-ss,
#detailDialog .horse-grade.pfl-grade-ss,
#detailDialog .club-detail-grade.pfl-grade-ss {
 background:linear-gradient(135deg,#b83693,#702459);border-color:#dc7bb4;color:#fff3fa;
}
#horsesPage .horse-grade.pfl-grade-s,
#detailDialog .horse-grade.pfl-grade-s,
#detailDialog .club-detail-grade.pfl-grade-s {
 background:linear-gradient(135deg,#853bc2,#522078);border-color:#b17add;color:#f9f0ff;
}
#horsesPage .horse-grade.pfl-grade-a,
#detailDialog .horse-grade.pfl-grade-a,
#detailDialog .club-detail-grade.pfl-grade-a {
 background:linear-gradient(135deg,#318353,#1a5538);border-color:#83bd93;color:#effff1;
}
/* Attribute grade values and breeding partner details use the same family. */
#horsesPage .sota-compact-attr-grid strong.pfl-grade-sss,
#horsesPage .breeding-stat b.pfl-grade-sss,
#horsesPage .breeding-grade strong.pfl-grade-sss,
#detailDialog strong.pfl-grade-sss {color:var(--pfl-sss)}
#horsesPage .sota-compact-attr-grid strong.pfl-grade-ss,
#horsesPage .breeding-stat b.pfl-grade-ss,
#horsesPage .breeding-grade strong.pfl-grade-ss,
#detailDialog strong.pfl-grade-ss {color:var(--pfl-ss)}
#horsesPage .sota-compact-attr-grid strong.pfl-grade-s,
#horsesPage .breeding-stat b.pfl-grade-s,
#horsesPage .breeding-grade strong.pfl-grade-s,
#detailDialog strong.pfl-grade-s {color:var(--pfl-s)}
#horsesPage .sota-compact-attr-grid strong.pfl-grade-a,
#horsesPage .breeding-stat b.pfl-grade-a,
#horsesPage .breeding-grade strong.pfl-grade-a,
#detailDialog strong.pfl-grade-a {color:var(--pfl-a)}

/* v2.6.9 — PFL compact career-start presentation */
#horsesPage .sota-career-inline{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:6px 11px;min-height:0}
#horsesPage .sota-career-inline .sota-starts-record{color:#f3e6ce;font-size:19px;line-height:1.15;font-weight:900;white-space:nowrap;font-variant-numeric:tabular-nums}
#horsesPage .sota-career-inline .sota-starts-record small{font-size:15px;color:#e2d0b6;font-weight:700}
#horsesPage .sota-career-inline .sota-record-label{font-size:10px;letter-spacing:.01em;color:#b3b6ac;text-transform:none}
.club-detail-record>strong{font-variant-numeric:tabular-nums;font-size:23px}
.club-detail-record>strong small{font-size:17px;color:#ded1b8}
/* Richer but darker forest-green login card; gold edges match the clubhouse palette */
.login-card{background:linear-gradient(135deg,#143027 0%,#0d211a 100%)!important;border-color:#786245!important}
.login-card input:not([type=checkbox]){background:#091d17!important;color:#f6ead9!important;border-color:#496353!important}
.login-card .primary{background:linear-gradient(180deg,#1c7966,#155545)!important;color:#f7f0e3!important;border-color:#6caa92!important}

/* v2.7.0 - understated blue/pink sex identification; neutral for unknown */
#horsesPage .horse-meta .sota-sex, .club-detail-identity .sota-sex{font-weight:750;border-radius:5px;padding:2px 6px;display:inline-block}
#horsesPage .horse-meta .sota-sex-male, .club-detail-identity .sota-sex-male{color:#9bc5de;background:#234357;border:1px solid #466d81}
#horsesPage .horse-meta .sota-sex-female, .club-detail-identity .sota-sex-female{color:#e5a4c4;background:#4c3043;border:1px solid #80516c}
#horsesPage .horse-meta .sota-sex-unknown, .club-detail-identity .sota-sex-unknown{color:#babdb5;background:#27342f;border:1px solid #526056}
#horsesPage .sota-career-inline .sota-starts-record small, #horsesPage .sota-career-inline .sota-record-label{display:inline!important}

/* v2.7.1: career starts and W-P-S beneath age/sex and track preferences */
#horsesPage .gallery-info > .sota-career-inline{width:100%;margin:7px 0 8px;max-width:none;box-sizing:border-box;padding:8px 11px;}
#horsesPage .gallery-info > .sota-career-inline .sota-starts-record{font-size:20px;}
#horsesPage .gallery-info > .sota-career-inline .sota-record-label{font-size:11px;}

/* v2.7.2: tighten top of cards; age/sex, track chips and record directly below name, adjacent to FF plaque */
#horsesPage .sota-horse-heading{align-items:start;grid-template-columns:minmax(0,1fr) minmax(105px,38%);gap:8px}
#horsesPage .sota-name-column{display:flex;flex-direction:column;gap:6px;min-width:0}
#horsesPage .sota-name-column .horse-meta{margin:0;min-height:0;font-size:11px;line-height:1.35}
#horsesPage .sota-name-column .sota-pref-inline{margin:0;gap:3px}
#horsesPage .sota-name-column .pref-chip{font-size:10px;padding:3px 5px}
#horsesPage .sota-name-column .pref-rating{font-size:9px}
#horsesPage .sota-name-column .pref-help{display:none}
#horsesPage .sota-name-column .sota-career-inline{margin:1px 0 0;padding:6px 7px;width:100%;box-sizing:border-box}
#horsesPage .sota-career-inline .sota-starts-record{font-size:clamp(13px,1.0vw,18px);white-space:normal}
#horsesPage .sota-career-inline .sota-starts-record small{font-size:clamp(11px,.85vw,15px)}
#horsesPage .sota-name-column h3{margin:0}
#horsesPage .sota-ff-name-badge{min-height:95px}
@media(max-width:520px){#horsesPage .sota-horse-heading{grid-template-columns:minmax(0,1fr) minmax(102px,38%)}}

/* v2.7.3 Owners' Club horse intelligence popup - no artwork or fabricated data */
#detailDialog{width:min(1080px,calc(100vw - 24px));max-height:94vh;border:1px solid #a78959;background:#0d211a;box-shadow:0 25px 100px #000d}
#detailDialog::backdrop{background:rgba(3,9,8,.88);backdrop-filter:blur(4px)}
#detailDialog>.dialogform{padding:clamp(14px,2.4vw,28px);background:linear-gradient(120deg,#102b22 0%,#10271e 65%,#0b221b 100%)}
#detailDialog .dialoghead{position:sticky;top:-28px;z-index:6;background:#102820ed;border-bottom:1px solid #806c49;padding:9px 0 13px;margin-bottom:14px;backdrop-filter:blur(12px)}
#detailDialog .dialoghead h2{font-size:clamp(22px,3vw,33px);font-family:Georgia,serif;color:#f4e5cd}
#detailDialog .dialoghead .tiny{color:#c7a66b}
#detailDialog .close{border:1px solid #816c4b;border-radius:50%;width:39px;height:39px;color:#f1d49f;background:#17372c}
#detailDialog .club-profile-layout{display:grid;grid-template-columns:minmax(245px,.9fr) minmax(0,1.1fr);gap:18px;align-items:stretch}
#detailDialog .club-profile-hero,#detailDialog .club-profile-summary,#detailDialog .club-profile-intel{border:1px solid #987a4e;border-radius:15px;background:linear-gradient(150deg,#102c24,#0b231c);min-width:0}
#detailDialog .club-profile-hero{overflow:hidden;padding:9px;background:linear-gradient(130deg,#1a3027,#092219)}
#detailDialog .club-profile-picture{height:100%;min-height:360px;border:1px solid #8f774d;border-radius:11px;overflow:hidden;background:radial-gradient(ellipse at 50% 90%,#255e52,#08251f 70%)}
#detailDialog .club-profile-picture .horse-art.large{height:100%!important;min-height:360px;max-height:none;margin:0;border-radius:0}
#detailDialog .club-profile-picture img{object-fit:contain!important;width:100%;height:100%;}
#detailDialog .club-profile-summary{padding:clamp(13px,2vw,20px);display:flex;flex-direction:column;gap:13px}
#detailDialog .club-profile-overline{font-size:10px;font-weight:900;letter-spacing:1.5px;color:#cba86f}
#detailDialog .club-profile-name{font-family:Georgia,serif;color:#faead1;font-size:clamp(24px,3.2vw,39px);line-height:1.1;margin:0 0 12px}
#detailDialog .club-profile-chips{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
#detailDialog .club-profile-chips .club-detail-grade{font-size:15px;padding:5px 9px}
#detailDialog .club-profile-preferences{min-width:0}
#detailDialog .club-profile-preferences .pref-chip{border:1px solid #9a8051;background:#273c30;padding:7px 9px;border-radius:8px}
#detailDialog .club-profile-adjusted{display:flex;gap:15px;justify-content:space-between;align-items:center;background:linear-gradient(125deg,#215039,#0d3e33);border:1px solid #c3a26a;border-radius:11px;padding:14px 16px;box-shadow:inset 0 0 0 1px #d9c08a27}
#detailDialog .club-profile-adjusted div{display:grid;gap:6px}
#detailDialog .club-profile-adjusted small{font-size:12px;color:#f0d5a5;font-weight:900;letter-spacing:.8px}
#detailDialog .club-profile-adjusted span{font-size:10px;color:#b2c6b9}
#detailDialog .club-profile-adjusted strong{font-size:clamp(26px,3.8vw,44px);color:#85d3b1;font-variant-numeric:tabular-nums}
#detailDialog .club-profile-snapshot{background:#09271d;border:1px solid #a38a5b;border-radius:11px;padding:14px 15px;margin-top:auto}
#detailDialog .club-profile-snapshot-head{font-weight:900;font-size:12px;color:#d9bb7f;letter-spacing:1px;padding-bottom:10px;border-bottom:1px solid #92795388}
#detailDialog .club-profile-snapshot-values{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-top:11px;align-items:center}
#detailDialog .club-profile-snapshot-values>div{display:grid;gap:3px;min-width:0}
#detailDialog .club-profile-snapshot-values strong{font-size:clamp(20px,2.7vw,32px);color:#f4e5c8;line-height:1.2;font-variant-numeric:tabular-nums}
#detailDialog .club-profile-snapshot-values strong small{font-size:.76em;color:#cce4d7}
#detailDialog .club-profile-snapshot-values small{font-size:10px;color:#cbbd9f;letter-spacing:.6px}
#detailDialog .club-profile-winrate{border-left:1px solid #907b55;padding-left:14px;text-align:center}
#detailDialog .club-profile-winrate strong{color:#dfc187}
#detailDialog .club-profile-intel{margin-top:15px;padding:15px;display:grid;gap:13px}
#detailDialog .club-detail-metric{background:#163e31;border:1px solid #667c5d;padding:14px 8px}
#detailDialog .club-detail-metric b{font-size:clamp(20px,2.5vw,30px)}
#detailDialog .club-profile-team{border:1px solid #766448;border-radius:10px;padding:11px 14px;background:#122e25;margin:10px 0}
#detailDialog .club-profile-team summary{cursor:pointer;color:#e3c58d;font-size:12px;font-weight:800}
#detailDialog .club-profile-team select{min-width:150px}
#detailDialog .detail-tabs{position:sticky;top:50px;background:#102b23;padding-top:8px;z-index:4}
@media(max-width:700px){#detailDialog .club-profile-layout{grid-template-columns:1fr}#detailDialog .club-profile-picture{height:250px;min-height:250px}#detailDialog .club-profile-picture .horse-art.large{height:250px!important;min-height:250px}#detailDialog .club-profile-snapshot-values strong{font-size:23px}#detailDialog .dialoghead{top:-18px}}

/* v2.7.4 — Owners' Club: implemented compact roster from approved visual direction. */
#horsesPage .club-roster-card{border:3px solid #56341d;outline:1px solid #c39a53;outline-offset:-7px;background:#08241c;border-radius:12px;box-shadow:0 12px 29px #000b,inset 0 0 0 1px #241b11;gap:0;min-height:0}
#horsesPage .club-roster-picture{cursor:pointer;background:#0e2b22;border-bottom:2px solid #ae8751;outline-offset:-4px}
#horsesPage .club-roster-picture:focus-visible,#horsesPage .club-roster-name:focus-visible{outline:2px solid #f0cb86}
#horsesPage .club-roster-picture .horse-art{height:clamp(160px,12vw,205px);border-bottom:0;background:radial-gradient(ellipse at 53% 95%,#315a42 0%,#183c2e 54%,#0b221e 100%)}
#horsesPage .club-roster-picture .horse-art img{object-fit:contain;object-position:center bottom;filter:drop-shadow(0 8px 13px #0008)}
#horsesPage .club-roster-card .horse-grade{font-family:Georgia,serif;font-size:20px;font-weight:900;top:10px;left:10px;padding:7px 9px;border-radius:7px;border-width:2px!important;box-shadow:0 4px 10px #0009}
#horsesPage .club-roster-body{padding:11px 11px 9px;gap:7px!important;background:linear-gradient(180deg,#092d23,#061e18);display:flex;flex-direction:column}
#horsesPage .club-roster-name{font:700 clamp(17px,1.22vw,23px)/1.14 Georgia,serif;color:#f9e7c8;cursor:pointer;min-height:38px;overflow-wrap:anywhere;margin:0}
#horsesPage .club-roster-preferences .sota-pref-inline{display:flex;gap:4px;flex-wrap:wrap;margin:0}
#horsesPage .club-roster-preferences .pref-chip{background:#0a291e;border:1px solid #95784e;color:#f4e3c9;padding:5px 7px;border-radius:7px;font-size:10px}
#horsesPage .club-roster-meta{font-size:11px;color:#e3d0b4;display:flex;align-items:center;flex-wrap:wrap;gap:5px}
#horsesPage .club-roster-meta .sota-sex{border-radius:5px;padding:3px 7px;font-weight:800}
#horsesPage .club-roster-adjusted{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #d5b677;background:linear-gradient(105deg,#24513c,#0b3329);border-radius:8px;padding:9px 10px;min-height:51px;box-shadow:inset 0 1px #e0cb8226}
#horsesPage .club-roster-adjusted span{font-size:clamp(10px,.8vw,13px);color:#f0dcab;font-weight:800;line-height:1.15}
#horsesPage .club-roster-adjusted strong{font-size:clamp(23px,1.75vw,31px);font-weight:900;color:#eed5a0;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
#horsesPage .club-roster-snapshot{border:1px solid #a6844d;border-radius:8px;background:#06281e;padding:8px 9px}
#horsesPage .club-roster-record{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}
#horsesPage .club-roster-record>div{min-width:0;display:flex;flex-direction:column;gap:3px}
#horsesPage .club-roster-record small{font-size:9px;letter-spacing:.15px;font-weight:750;color:#d7c095}
#horsesPage .club-roster-record strong{font-size:clamp(16px,1.3vw,22px);color:#f5eada;font-variant-numeric:tabular-nums;white-space:nowrap}
#horsesPage .club-roster-win{border-left:1px solid #796b4b;padding-left:9px;align-items:center}
#horsesPage .club-roster-win strong{color:#d8b878}
#horsesPage .club-roster-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#horsesPage .club-roster-metric{border:1px solid #977c4b;border-radius:7px;background:#05291e;text-align:center;padding:7px 2px;display:flex;flex-direction:column;gap:4px;min-width:0}
#horsesPage .club-roster-metric small{font-size:9px;white-space:normal;line-height:1.2;color:#e7d6ba}
#horsesPage .club-roster-metric strong{font-size:clamp(16px,1.22vw,22px);font-variant-numeric:tabular-nums}
#horsesPage .club-roster-metric.ff-high strong{color:#85bfa2}#horsesPage .club-roster-metric.ff-medium strong{color:#d8b773}#horsesPage .club-roster-metric.ff-low strong{color:#cd887c}#horsesPage .club-roster-metric.ff-unknown strong,#horsesPage .club-roster-metric.ff-neutral strong{color:#d7ded4}
#horsesPage .club-roster-expand{display:flex;flex-direction:column;gap:5px;margin-top:auto}
#horsesPage .club-roster-expand>details{border:1px solid #775b37;border-radius:7px;background:#09261e}
#horsesPage .club-roster-expand>details>summary{cursor:pointer;text-align:center;padding:9px;font-size:11px;font-weight:800;color:#ebd5a5;list-style:none}
#horsesPage .club-roster-expand>details>summary::-webkit-details-marker{display:none}
#horsesPage .club-roster-extra{padding:4px 8px 11px;display:grid;gap:7px}
#horsesPage .club-roster-open{background:linear-gradient(120deg,#183a2e,#102c23);border:1px solid #9e7e4b;color:#efdcbd;padding:8px;border-radius:7px;font-size:11px;font-weight:800;cursor:pointer}
#horsesPage .club-roster-open:hover{background:#24503b}
#detailDialog{border:3px solid #83552d;box-shadow:0 22px 90px #000e,inset 0 0 0 1px #d2ae71}
#detailDialog .club-profile-adjusted{background:linear-gradient(110deg,#35573a,#092f24);border:2px solid #d8b978}
#detailDialog .club-profile-adjusted strong{color:#ebd4a0}
#detailDialog .club-profile-name{font-size:clamp(27px,3.4vw,42px)}
#detailDialog .club-profile-snapshot{border-color:#ccab6d;box-shadow:inset 0 1px #e7be6930}
@media(min-width:1280px){#horsesPage .horse-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){#horsesPage .club-roster-name{font-size:19px}}

/* v2.7.5: Owners' Club layout correction. Portraits and stats never stretch with modal height. */
#detailDialog{width:min(1150px,calc(100vw - 28px));max-height:94vh;overflow:auto;border:4px solid #644024;border-radius:15px;box-shadow:0 20px 95px #000e,inset 0 0 0 1px #d5ae62}
#detailDialog>.dialogform{background:linear-gradient(125deg,#0b211a,#09231b 60%,#081c17)}
#detailDialog .club-profile-layout{display:grid;grid-template-columns:minmax(300px,.95fr) minmax(0,1.05fr);gap:14px;align-items:start}
#detailDialog .club-profile-hero{display:contents}
#detailDialog .club-profile-picture{height:310px!important;min-height:0!important;max-height:310px;align-self:start;background:radial-gradient(ellipse at 50% 90%,#255b48,#0b2921 80%);border:2px solid #b39159;box-shadow:inset 0 0 0 1px #d9bd7540;position:relative}
#detailDialog .club-profile-picture .horse-art.large{height:306px!important;min-height:0!important;max-height:306px!important;margin:0;position:relative}
#detailDialog .club-profile-picture .horse-art.large img{height:100%!important;max-height:100%!important;width:100%!important;object-fit:contain!important;object-position:center bottom!important;display:block;padding:4px 8px 0!important}
#detailDialog .club-profile-summary{padding:14px;gap:12px;border:1px solid #9b7c4e;background:linear-gradient(135deg,#113225,#08271e);min-height:310px}
#detailDialog .club-profile-overline{font-size:11px;letter-spacing:1.4px}
#detailDialog .club-profile-name{font-size:clamp(27px,3vw,40px);line-height:1.08;margin:0 0 8px}
#detailDialog .club-profile-title-row{min-width:0}
#detailDialog .club-profile-preferences .sota-pref-inline{display:flex;gap:5px;flex-wrap:wrap}
#detailDialog .club-profile-preferences .pref-chip{padding:6px 9px;font-size:11px}
#detailDialog .club-profile-adjusted{padding:10px 13px;min-height:77px;border:2px solid #c4a468;box-shadow:inset 0 1px #d9c08a2f,0 5px 18px #0005}
#detailDialog .club-profile-adjusted strong{font-size:clamp(29px,3.2vw,41px)}
#detailDialog .club-profile-snapshot{margin-top:0;padding:10px 12px;background:#08261d}
#detailDialog .club-profile-snapshot-head{padding-bottom:6px}
#detailDialog .club-profile-snapshot-values{margin-top:8px}
#detailDialog .club-profile-snapshot-values strong{font-size:clamp(21px,2.3vw,29px)}
#detailDialog .club-profile-intel{margin-top:12px;padding:12px;display:grid;gap:11px;grid-template-columns:1fr}
#detailDialog .club-detail-metric{padding:11px 7px;min-height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border-color:#9a7c4e;background:#0c3025}
#detailDialog .club-detail-metric small{font-size:11px;color:#e8d7b7}
#detailDialog .club-detail-metric b{font-size:26px}
#detailDialog .club-profile-deep{border:1px solid #8f764c;background:#0b2d22;border-radius:10px;padding:12px}
#detailDialog .club-profile-deep-heading{color:#d8b574;letter-spacing:1px;font-size:12px;font-weight:900;margin-bottom:9px}
#detailDialog .club-profile-deep-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
#detailDialog .club-profile-deep-grid>div{background:#153a2d;border:1px solid #56745a;border-radius:8px;padding:9px 5px;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0}
#detailDialog .club-profile-deep-grid small{color:#dac9a9;font-size:9px;letter-spacing:.2px;text-align:center}
#detailDialog .club-profile-deep-grid b{font-size:20px;color:#e4d19e;font-variant-numeric:tabular-nums}
#detailDialog .club-imported-history .entry{padding:10px 12px;margin:7px 0}
#horsesPage .club-roster-card{border:4px solid #673e21;outline:1px solid #cda85f;outline-offset:-7px;box-shadow:0 9px 25px #000b,inset 0 0 0 1px #b9905627}
#horsesPage .club-roster-picture .horse-art{height:clamp(210px,17vw,285px);background:radial-gradient(ellipse at center 90%,#305849,#17362c 66%,#0b221d)}
#horsesPage .club-roster-picture .horse-art img{object-fit:contain!important;object-position:center bottom;max-width:100%;padding:2px 5px 0;filter:drop-shadow(0 8px 14px #0008)}
#horsesPage .club-roster-body{gap:7px!important;padding:12px 10px 10px;background:linear-gradient(160deg,#0c3024,#061d17)}
#horsesPage .club-roster-name{min-height:0;line-height:1.18;font-size:clamp(19px,1.3vw,24px)}
#horsesPage .club-roster-adjusted{padding:10px 9px;border:2px solid #c5a567;background:linear-gradient(100deg,#1d4a35,#0a3127)}
#horsesPage .club-roster-adjusted strong{color:#edd2a0;font-size:clamp(24px,1.8vw,32px)}
#horsesPage .club-roster-metric{min-height:62px}
#horsesPage .club-roster-expand>details>summary,#horsesPage .club-roster-open{font-size:12px}
@media(max-width:800px){#detailDialog .club-profile-layout{grid-template-columns:1fr}#detailDialog .club-profile-picture{height:265px!important;max-height:265px}#detailDialog .club-profile-picture .horse-art.large{height:261px!important;max-height:261px!important}#detailDialog .club-profile-summary{min-height:0}#detailDialog .club-profile-deep-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1250px){#horsesPage .horse-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}


/* v2.7.6 | Reference-guided premium Owners Club. Real linked PFL artwork and real numbers only. */
:root{--bg:#061d16;--card:#09271d;--line:#ae834d;--white:#f6e8d0;--gold:#e3bd78}
html,body{background:#041710!important;color:#f6ead8}
body{background-image:radial-gradient(ellipse at 50% 10%,#143528 0%,#041710 68%)!important}
.top{background:linear-gradient(110deg,#031a12,#09251b)!important;border-bottom:2px solid #b99051!important}
.brand strong{font-family:Georgia,serif;font-size:clamp(20px,2.2vw,31px)!important;color:#f3d49c!important}
.brand small{font-size:10px;letter-spacing:2px}
.brand .mark{background:transparent!important;border:0!important;box-shadow:none!important;color:#d9b16a!important;font-size:30px}
#appView:has(#horsesPage:not([hidden]))>.dashboard-heading,#appView:has(#horsesPage:not([hidden]))>.stats{display:none!important}
#appView:has(#horsesPage:not([hidden])){padding-top:0}
.tabs{background:#062117!important;border:1px solid #a27d4b!important;border-radius:11px;margin:8px 0 12px}
.tabs button.active{background:#0e3e2c!important;color:#ebd6a1!important}
#horsesPage{display:flex;flex-direction:column;gap:9px!important}
#horsesPage .sota-showcase-hero{order:0;display:flex;align-items:center;justify-content:space-between;min-height:176px;padding:22px 25px;position:relative;overflow:hidden;border:1px solid #a67e4c;border-radius:9px;background:linear-gradient(90deg,#180d09e8 0%,#25170cb3 34%,#15170daa 80%,#100e0af0),url('stable_header.jpg') center center/cover no-repeat;box-shadow:inset 0 0 40px #03070496}
#horsesPage .showcase-title p{font:700 10px sans-serif;color:#d5ad6d;letter-spacing:2px;margin:0 0 9px}
#horsesPage .showcase-title h2{font:700 clamp(35px,4vw,58px)/1 Georgia,serif;margin:0 0 10px;color:#fff1d8;text-shadow:0 2px 8px #0009}
#horsesPage .showcase-title span{font:14px sans-serif;color:#f1dfbd}
#horsesPage .showcase-motto{font:700 11px/1.9 Georgia,serif;color:#dcb46f;text-align:center;letter-spacing:1.2px;border:1px solid #a68251;background:#17140ee0;padding:10px 16px;max-width:190px}
#horsesPage .horse-quick-filters{order:1;margin:0;padding:8px 8px;background:transparent!important;border:0!important;gap:6px!important;justify-content:start;overflow-x:auto}
#horsesPage .horse-stage-btn{background:#08281e!important;color:#ebdcc3!important;border:1px solid #a28051!important;padding:9px 12px!important;border-radius:22px!important}
#horsesPage .horse-stage-btn.active{background:linear-gradient(130deg,#13785e,#07523d)!important;border-color:#75c3a1!important;box-shadow:0 3px 16px #46b28c25!important}
#horsesPage .toolbar{order:2;display:flex!important;align-items:center!important;justify-content:space-between;padding:1px 0 0!important;margin:0!important}
#horsesPage .toolbar>div:first-child{display:none!important}
#horsesPage .toolbar .tools{display:flex;align-items:center;gap:10px;width:100%!important;flex-wrap:wrap}
#horsesPage #horseSearch{order:0;flex:1 1 360px;min-width:200px!important;background:#071f18!important;border:1px solid #92784e!important;color:#f1e6d1!important;border-radius:11px;padding:12px 16px!important}
#horsesPage #horseFilterPanel{order:1;background:#0b2c20!important;border:1px solid #ac854d!important;border-radius:10px!important}
#horsesPage .tools .upload-action{order:2;font-size:11px!important;min-height:37px;border-color:#94764a!important;background:#08251b!important;color:#dbbf8c!important}
#horsesPage #newHorseBtn{display:none!important}
#horsesPage .pfl-live-panel{order:3;margin:0!important;padding:8px 14px!important;font-size:12px;max-height:150px;overflow:auto;border:1px solid #526b4e!important;background:#092b21!important}
#horsesPage .horse-filter-result{order:4;margin:0!important;font-size:12px;color:#cfc0a0}
#horsesPage #rosterImportHelp{display:none!important}
#horsesPage #horseList{order:5;margin:0!important;gap:12px!important}
#horsesPage #portraitStatus{order:6}
#horsesPage .club-roster-card{border:5px solid #61391b!important;outline:1px solid #d4aa60!important;outline-offset:-7px!important;border-radius:10px!important;background:#05251a!important;box-shadow:0 7px 23px #000b,inset 0 0 0 2px #bb8a4a!important;overflow:hidden}
#horsesPage .club-roster-picture{border-bottom:2px solid #dbac63!important}
#horsesPage .club-roster-picture .horse-art{height:clamp(195px,16vw,276px)!important;background:radial-gradient(circle at 28% 16%,#a9a87542 0%,transparent 25%),radial-gradient(circle at 82% 23%,#ddba7852 0%,transparent 18%),radial-gradient(ellipse at 50% 80%,#45674b,#102b21 75%)!important}
#horsesPage .club-roster-picture .horse-art img{height:100%;width:100%;object-fit:contain!important;object-position:center bottom;filter:drop-shadow(0 8px 12px #000b) contrast(1.08) saturate(1.03)!important}
#horsesPage .club-roster-card .horse-grade{clip-path:polygon(10% 0,90% 0,100% 12%,100% 76%,50% 100%,0 76%,0 12%);border-radius:0!important;padding:11px 9px 15px!important;min-width:57px;min-height:71px;display:flex;align-items:center;justify-content:center;font-size:22px!important;box-shadow:none!important;filter:drop-shadow(0 3px 6px #000d)}
#horsesPage .club-roster-card .horse-grade.pfl-grade-s,#detailDialog .pfl-grade-s{background:linear-gradient(145deg,#8a36bc,#512186)!important;color:#fff2f9!important}
#horsesPage .club-roster-card .horse-grade.pfl-grade-ss,#detailDialog .pfl-grade-ss{background:linear-gradient(145deg,#ef2c9d,#9c1f6c)!important;color:#fff2f8!important}
#horsesPage .club-roster-card .horse-grade.pfl-grade-sss,#detailDialog .pfl-grade-sss{background:linear-gradient(145deg,#dc3641,#7e131b)!important;color:#fff2f4!important}
#horsesPage .club-roster-card .horse-grade.pfl-grade-a,#detailDialog .pfl-grade-a{background:linear-gradient(145deg,#228f59,#115333)!important;color:#ecfff3!important}
#horsesPage .club-roster-body{gap:6px!important;padding:9px 10px 11px!important;background:linear-gradient(180deg,#043324,#022419)!important}
#horsesPage .club-roster-name{font:700 clamp(17px,1.35vw,23px)/1.12 Georgia,serif!important;color:#fae9ca!important;min-height:0!important}
#horsesPage .club-roster-name::before{content:'♞';color:#f1c77e;font-size:21px;margin-right:6px}
#horsesPage .club-roster-preferences .sota-pref-inline{display:flex!important;flex-wrap:nowrap;gap:4px}
#horsesPage .club-roster-preferences .pref-chip{flex:1;min-width:0;text-align:center;padding:6px 3px!important;border:1px solid #c29253!important;border-radius:7px!important;background:#052318!important;font-weight:750;font-size:clamp(9px,.75vw,11px)!important}
#horsesPage .club-roster-meta{font-size:11px!important;margin:2px 0 1px;min-height:23px}
#horsesPage .club-roster-adjusted{border:2px solid #d9b979!important;border-radius:8px!important;padding:6px 9px!important;min-height:42px!important;background:linear-gradient(100deg,#174831,#08261d)!important}
#horsesPage .club-roster-adjusted span{color:#ecd19b!important;font-size:clamp(9px,.72vw,12px)!important}
#horsesPage .club-roster-adjusted strong{color:#ffdfa2!important;font-size:clamp(23px,1.65vw,30px)!important}
#horsesPage .club-roster-snapshot{padding:5px 8px!important;background:#04251a!important;border-color:#b98b4e!important}
#horsesPage .club-roster-record strong{font-size:clamp(16px,1.24vw,21px)!important}
#horsesPage .club-roster-record small{font-size:9px!important}
#horsesPage .club-roster-metrics{gap:5px!important}
#horsesPage .club-roster-metric{padding:6px 3px!important;min-height:52px!important;background:#06261b!important;border-color:#af8a52!important}
#horsesPage .club-roster-metric strong{font-size:clamp(17px,1.3vw,23px)!important}
#horsesPage .club-roster-expand>details>summary{border-color:#9b7847!important;padding:8px!important}
#horsesPage .club-roster-expand>details{border-color:#98754b!important}
#horsesPage .club-roster-open{font-size:10px!important;padding:6px!important}
#detailDialog{border:5px solid #613a1c!important;border-radius:14px!important;outline:1px solid #c7a15a;outline-offset:-8px;box-shadow:0 18px 95px #000e!important}
#detailDialog .club-profile-layout{gap:12px!important;grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr)!important}
#detailDialog .club-profile-picture{height:340px!important;max-height:340px!important;background:radial-gradient(circle at 15% 18%,#b9a26744,transparent 28%),linear-gradient(140deg,#284a37,#0d2920)!important}
#detailDialog .club-profile-picture .horse-art.large{height:334px!important;max-height:334px!important}
#detailDialog .club-profile-summary{min-height:0!important;gap:8px!important;padding:11px!important}
#detailDialog .club-profile-adjusted{min-height:58px!important;padding:7px 12px!important}
#detailDialog .club-profile-adjusted strong{font-size:32px!important}
#detailDialog .club-detail-metric{min-height:68px!important;padding:7px 5px!important}
#detailDialog .club-detail-metric b{font-size:22px!important}
#horseDialog,#newHorseBtn,#editHorseBtn{display:none!important}
@media(max-width:1150px){#horsesPage .horse-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){#horsesPage .horse-grid{grid-template-columns:1fr!important}#horsesPage .sota-showcase-hero{min-height:135px;padding:12px}#horsesPage .showcase-motto{display:none}#detailDialog .club-profile-layout{grid-template-columns:1fr!important}}
@media(min-width:1151px){#horsesPage .horse-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

#horsesPage[hidden]{display:none!important}

/* ===================================================================
   SOTA STABLES v2.7.7 — screenshot-matched Owners' Club interface
   Purely presentational: do not infer horse stats or replace PFL portraits.
   =================================================================== */
:root{--bg:#031b14;--card:#04271c;--blue:#0c2b22;--line:#9e7340;--white:#f5e9d4;--muted:#c7bca5;--gold:#e0b772;--mint:#83c9aa}
body{background:radial-gradient(ellipse at 50% -10%,#0e3f2e 0%,#031b14 52%,#02110d 100%)!important;color:#f5e8d2}
body .layout{max-width:none;margin:0 auto;padding:0 clamp(15px,2.35vw,43px) 20px}
body .top{display:flex;align-items:center;justify-content:space-between;gap:clamp(8px,1.6vw,28px);min-height:76px;background:linear-gradient(90deg,#041d16,#022016 60%,#041911)!important;border-bottom:2px solid #b08646!important;padding:10px clamp(15px,2.8vw,48px);box-shadow:0 8px 28px #0007}
body .brand{flex:0 0 auto;white-space:nowrap;gap:9px}
body .brand .mark{font-family:Georgia,serif;font-size:47px!important;line-height:1;color:#e0b466!important;width:62px;height:52px;padding:0;transform:scaleX(-1)}
body .brand strong{font-family:Georgia,'Times New Roman',serif;font-size:clamp(19px,2vw,32px)!important;line-height:1.03!important;letter-spacing:1px!important;color:#f6d798!important;font-weight:700}
body .brand small{margin-top:5px!important;letter-spacing:2.5px!important;color:#d6af6b!important;font-size:clamp(7px,.68vw,10px)!important}
body .top .tabs{display:none;min-width:0;flex:1 1 auto;align-items:center;justify-content:center;gap:1px;padding:0;margin:0!important;background:transparent!important;border:0!important;overflow-x:auto;border-radius:0!important;scrollbar-width:thin}
body:has(#appView:not([hidden])) .top .tabs{display:flex}
body .top .tabs button{flex:0 0 auto;min-width:0;display:flex;gap:8px;align-items:center;justify-content:center;padding:13px clamp(8px,1.1vw,20px);font-weight:750;font-size:clamp(10px,.8vw,13px);border:1px solid transparent;border-radius:9px;background:transparent;color:#f0dfbf;white-space:nowrap}
body .top .tabs button.active{border:1px solid #ad834a;background:#0c3527!important;color:#f8e4b0!important;box-shadow:inset 0 0 0 1px #d4b16c17}
body .top .tabs button:hover{background:#1a3e2b;color:#ffe6aa}
body .top .account-bar{flex:0 0 auto;gap:8px}
body .top #netStatus{font-size:10px;max-width:105px;opacity:.75}
body .top #logoutBtn{padding:7px 9px;border-color:#8b734f;color:#eed7b2;white-space:nowrap}
#appView:has(#horsesPage:not([hidden]))>.dashboard-heading,#appView:has(#horsesPage:not([hidden]))>.stats{display:none!important}
#horsesPage{display:flex;flex-direction:column;gap:0!important}
#horsesPage .sota-showcase-hero{order:0;display:flex;align-items:center;justify-content:space-between;min-height:166px!important;padding:21px clamp(20px,3vw,54px)!important;margin:0 calc(-1 * clamp(15px,2.35vw,43px)) 0;border:0!important;border-bottom:2px solid #a77e45!important;border-radius:0!important;background:linear-gradient(90deg,#160d09d8 0%,#20150d7a 26%,#071b1390 100%),url('stable_header.jpg') center 47%/cover no-repeat!important;box-shadow:inset 0 12px 28px #0007!important}
#horsesPage .showcase-title h2{font-family:Georgia,serif;font-size:clamp(40px,4.4vw,65px)!important;font-weight:700!important;letter-spacing:-1.7px;line-height:1;margin:0 0 10px!important;color:#fff1db!important;text-shadow:0 4px 12px #000b}
#horsesPage .showcase-title span{color:#f6e5ce;font-size:clamp(12px,.95vw,16px)!important}
#horsesPage .showcase-motto{letter-spacing:1.8px;font-size:clamp(9px,.8vw,12px);font-family:Georgia,serif;border:2px ridge #a27c46;background:linear-gradient(130deg,#29170bee,#0c1009ef)!important;outline:1px solid #d2a45a;outline-offset:-7px;line-height:1.8;padding:12px 19px!important;text-align:center;max-width:188px}
#horsesPage .horse-quick-filters{order:1;display:flex;gap:9px!important;padding:13px 0 8px!important;overflow-x:auto;margin:0!important;flex-wrap:nowrap;align-items:center;background:none!important;border:0!important;scrollbar-width:thin}
#horsesPage .quick-filter-label{display:none!important}
#horsesPage .horse-stage-btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:12px;justify-content:center;padding:11px 15px!important;min-height:43px;border:1px solid #9b7640!important;border-radius:999px!important;background:linear-gradient(180deg,#0c3324,#062419)!important;color:#f8e5c1!important;box-shadow:inset 0 1px #ffffff11,0 3px 9px #0003!important;font-size:clamp(10px,.8vw,13px);font-weight:750}
#horsesPage .horse-stage-btn.active{background:linear-gradient(135deg,#0e755d,#054336)!important;box-shadow:0 1px 15px #169f7d38!important;border-color:#6be1c6!important;color:white!important}
#horsesPage .horse-stage-btn [data-stage-count]{background:#041e19!important;padding:3px 8px;border-radius:16px;font-size:12px;color:#f9f3eb;min-width:30px;text-align:center}
#horsesPage .toolbar{order:2;margin:0!important;padding:0 0 11px!important;min-height:55px;overflow:visible}
#horsesPage .toolbar>div:first-child{display:none!important}
#horsesPage .toolbar .tools{display:flex;align-items:center;gap:10px;width:100%;flex-wrap:nowrap!important;justify-content:space-between}
#horsesPage #horseSearch{order:0;flex:1 1 350px;max-width:none!important;min-width:140px!important;border:1px solid #637961!important;padding:12px 16px!important;border-radius:10px!important;background:#061e17!important;color:#f3e7d6!important;height:44px}
#horsesPage #horseSearch::placeholder{color:#c3c6b9;opacity:1}
#horsesPage #horseFilterPanel{order:1;flex:0 0 auto;min-height:44px;max-height:44px;border:1px solid #ad8648!important;border-radius:9px!important;background:linear-gradient(180deg,#103325,#08261c)!important;white-space:nowrap;z-index:100}
#horsesPage #horseFilterPanel>summary{font-size:12px!important;line-height:1.4;padding:12px 15px!important;color:#f6dfbc!important}
#horsesPage #horseFilterPanel .stable-filter-controls{white-space:normal;background:#0a2a21!important;border:1px solid #ad864d!important;max-height:75vh;overflow-y:auto;box-shadow:0 18px 40px #000b}
#horsesPage .filter-panel-top strong,#horsesPage .filter-section-label{color:#ecc88b!important}
#horsesPage .stable-filter-controls label{color:#e9dcc2!important}
#horsesPage .stable-filter-controls select{background:#071d16!important;border-color:#7f6e51!important;color:#f9ecd5!important}
#horsesPage .club-showing-count{order:2;flex:0 0 auto;color:#f0e3d4;font-size:11px;white-space:nowrap;padding-left:5px}
#horsesPage .club-view-toggle{order:3;flex:0 0 auto;display:flex;border:1px solid #a58346;border-radius:12px;overflow:hidden;background:#082419}
#horsesPage .club-view-toggle button{width:41px;height:42px;padding:5px;background:transparent;border:0;border-left:1px solid #705b3d;color:#d8b672;font-size:20px}
#horsesPage .club-view-toggle button:first-child{border-left:0}
#horsesPage .club-view-toggle button.active{background:#16513c;color:#f8e3b4}
#horsesPage .horse-filter-result{order:4;display:none!important}
#horsesPage .pfl-live-panel{order:7;display:block;position:relative;margin:13px 0 0!important;padding:0!important;background:#09271c!important;border:1px solid #796743!important;border-radius:9px!important;max-height:none!important;overflow:visible!important}
#horsesPage .pfl-live-panel summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;color:#efd2a0;font-size:12px;font-weight:800}
#horsesPage .pfl-live-panel summary::-webkit-details-marker{display:none}
#horsesPage .pfl-live-panel summary small{font-weight:500;color:#9edbc8;font-size:11px;margin-left:8px}
#horsesPage .sota-sync-inner{padding:4px 14px 14px;border-top:1px solid #5d684f;display:grid;gap:10px}
#horsesPage .sota-sync-inner button,#horsesPage .sota-sync-inner .upload-action{padding:9px 12px;min-height:38px;font-size:11px!important;background:#0b3b2d;color:#ecd6b0;border:1px solid #897047;border-radius:9px}
#horsesPage .sota-sync-inner .upload-action{display:inline-flex!important;max-width:max-content;align-items:center}
#horsesPage .sota-sync-inner div{margin-top:3px}
#horsesPage .horse-grid{order:5;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch;gap:12px!important;margin:0 0 4px!important}
#horsesPage .club-roster-card{border:4px ridge #684020!important;outline:1px solid #c69552!important;outline-offset:-6px!important;background:linear-gradient(130deg,#37200c,#100e08)!important;box-shadow:0 3px 0 #372109,0 9px 25px #000a,inset 0 0 0 1px #d0a46869!important;border-radius:10px!important;overflow:hidden;min-height:0!important;gap:0!important;display:flex;flex-direction:column;transition:transform .15s ease,box-shadow .15s}
#horsesPage .club-roster-card:hover{transform:translateY(-2px);box-shadow:0 14px 35px #000c,inset 0 0 0 1px #e3b26a85!important}
#horsesPage .club-roster-picture{position:relative;height:clamp(165px,12vw,213px)!important;min-height:0!important;overflow:hidden;border-radius:8px 8px 0 0;border:1px solid #c4a568!important;border-bottom:2px solid #cca165!important;margin:7px 7px 0;background:#18352a!important}
#horsesPage .club-roster-picture .horse-art{height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden;background:radial-gradient(circle at 27% 20%,#d5d39738,transparent 30%),linear-gradient(180deg,#6b764f22,#2340263c),url('paddock_bokeh.jpg') center center/cover no-repeat!important;position:relative}
#horsesPage .club-roster-picture .horse-art::before{content:'';position:absolute;inset:0;background:linear-gradient(transparent 48%,#3a392626 51%,transparent 53%,transparent 66%,#372b2052 67%,transparent 69%);z-index:0;pointer-events:none}
#horsesPage .club-roster-picture .horse-art img{position:absolute;z-index:1;left:0;top:0;width:100%!important;height:140%!important;max-height:none!important;object-fit:contain!important;object-position:center top!important;padding:0!important;transform:translateY(4%) scale(1.16)!important;filter:contrast(1.08) saturate(1.05) drop-shadow(0 8px 10px #0008)!important}
#horsesPage .club-roster-picture .horse-grade{z-index:3;position:absolute;top:8px;left:8px;min-width:58px!important;min-height:71px!important;display:flex;flex-direction:column;gap:0;align-items:center;justify-content:center;padding:6px 9px 14px!important;font-family:Georgia,serif!important;font-size:clamp(19px,1.6vw,27px)!important;color:white;line-height:1.1;clip-path:polygon(50% 0,94% 10%,96% 70%,50% 100%,4% 70%,6% 10%)!important;border:0!important;border-radius:0!important;filter:drop-shadow(0 2px 3px #000a);text-shadow:0 2px 3px #0007}
#horsesPage .club-roster-picture .horse-grade::before{content:'♛';color:#f3ce77;display:block;font-size:12px;line-height:1.4}
#horsesPage .club-roster-picture .horse-grade.pfl-grade-s{background:linear-gradient(130deg,#a638cd,#4b0a89)!important}
#horsesPage .club-roster-picture .horse-grade.pfl-grade-ss{background:linear-gradient(130deg,#fa2ca6,#a70a72)!important}
#horsesPage .club-roster-picture .horse-grade.pfl-grade-sss{background:linear-gradient(130deg,#e43c42,#8e101b)!important}
#horsesPage .club-roster-picture .horse-grade.pfl-grade-a{background:linear-gradient(130deg,#22a967,#075c3b)!important}
#horsesPage .club-roster-watch{position:absolute;z-index:5;top:9px;right:9px;width:31px;height:31px;padding:0;display:grid;place-items:center;border:1px solid #c1a36f;border-radius:50%;background:#0b201aba;color:#e9c781;font-size:20px;line-height:1}
#horsesPage .club-roster-watch:hover{background:#1f503f}
#horsesPage .club-roster-body{background:linear-gradient(180deg,#062e22 0%,#032118 60%,#021b14 100%)!important;padding:7px 9px 9px!important;gap:5px!important;display:flex!important;flex-direction:column;flex:1;border-left:1px solid #aa834b;border-right:1px solid #aa834b;border-bottom:1px solid #ae854f}
#horsesPage .club-roster-name{color:#fff0d6!important;font:700 clamp(17px,1.38vw,24px)/1.11 Georgia,'Times New Roman',serif!important;letter-spacing:-.4px;min-height:0!important;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 1px!important}
#horsesPage .club-roster-name::before{content:'♞';color:#f2c87a;font-size:clamp(17px,1.55vw,24px);margin-right:7px}
#horsesPage .club-roster-preferences .sota-pref-inline{display:flex!important;flex-wrap:nowrap!important;gap:4px;min-width:0;margin:0!important}
#horsesPage .club-roster-preferences .pref-chip{flex:1 1 0;min-width:0;text-align:center;background:#052519!important;border:1px solid #987444!important;border-radius:7px!important;padding:5px 2px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f5e2c5!important;font-size:clamp(9px,.72vw,12px)!important;font-weight:750}
#horsesPage .club-roster-meta{display:flex;flex-wrap:nowrap;gap:6px;align-items:center;font-size:clamp(10px,.78vw,12px)!important;margin:0!important;min-height:24px;color:#eadac0!important}
#horsesPage .club-age-dot{margin:0 1px}
#horsesPage .club-roster-meta .sota-sex{font-size:clamp(9px,.78vw,11px)!important;padding:3px 10px;border-radius:9px!important;line-height:1.3}
#horsesPage .club-roster-meta .sota-sex-male{background:#0b3864!important;border:1px solid #3483c1!important;color:#e0edff!important}
#horsesPage .club-roster-meta .sota-sex-female{background:#632045!important;border:1px solid #bc3981!important;color:#ffe2f4!important}
#horsesPage .club-roster-adjusted{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:0!important;padding:6px 8px!important;border:2px solid #ccb071!important;border-radius:8px!important;background:linear-gradient(100deg,#123e2d,#031a14)!important;min-height:41px!important;max-height:47px!important;box-shadow:inset 0 1px #dbd18b33}
#horsesPage .club-roster-adjusted span{color:#eed4a8!important;font-size:clamp(10px,.78vw,12px)!important;font-weight:750;white-space:nowrap}
#horsesPage .club-roster-adjusted strong{color:#f6e1b1!important;font:900 clamp(19px,1.65vw,30px)/1 Georgia,serif!important;font-variant-numeric:tabular-nums;white-space:nowrap}
#horsesPage .club-roster-snapshot{display:flex;align-items:center;gap:11px;margin:0!important;padding:5px 9px!important;background:#05251b!important;border:1px solid #af8b52!important;border-radius:8px!important;min-height:48px!important}
#horsesPage .club-stat-horse{font-family:Georgia,serif;color:#f2c978;font-size:24px;line-height:1;flex:none}
#horsesPage .club-roster-record{display:flex;flex-direction:column;gap:1px;min-width:0}
#horsesPage .club-roster-record small{font-size:clamp(9px,.68vw,11px)!important;color:#e6d2aa!important;letter-spacing:0;white-space:nowrap}
#horsesPage .club-roster-record strong{font:800 clamp(17px,1.4vw,24px)/1.04 system-ui,-apple-system,sans-serif!important;color:#f5f2e9!important;white-space:nowrap;font-variant-numeric:tabular-nums}
#horsesPage .club-roster-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px!important}
#horsesPage .club-roster-metric{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;padding:6px 3px!important;min-height:52px!important;background:#031f16!important;border:1px solid #a98249!important;border-radius:8px!important;text-align:left;min-width:0}
#horsesPage .club-metric-icon{font-size:clamp(16px,1.4vw,22px);color:#efca7d;line-height:1;flex:0 0 auto}
#horsesPage .club-roster-metric>div{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
#horsesPage .club-roster-metric small{font-size:clamp(8px,.61vw,10px)!important;color:#eee0c6!important;white-space:nowrap!important;line-height:1.05}
#horsesPage .club-roster-metric strong{font:800 clamp(15px,1.2vw,20px)/1.12 system-ui!important;color:#f5eee2!important;white-space:nowrap}
#horsesPage .club-roster-metric.ff-high strong{color:#97cbb0!important}#horsesPage .club-roster-metric.ff-medium strong{color:#efd7a0!important}#horsesPage .club-roster-metric.ff-low strong{color:#d58b83!important}#horsesPage .club-roster-metric.ff-unknown strong{color:#cbc8bc!important}
#horsesPage .club-roster-expand{margin-top:auto;display:block!important}
#horsesPage .club-roster-open{display:flex;width:100%;align-items:center;justify-content:center;gap:12px;padding:7px 8px!important;min-height:35px;border:1px solid #ac8750!important;border-radius:8px!important;color:#f7dfa9!important;background:#04261b!important;font-size:clamp(10px,.75vw,12px)!important;font-weight:800}
#horsesPage .club-roster-open:hover{background:#165038!important;color:#fff8e7!important}
#horsesPage .club-roster-open span{font-size:18px;line-height:1}
#horsesPage .horse-grid.club-list-mode{grid-template-columns:1fr!important;gap:12px!important}
#horsesPage .horse-grid.club-list-mode .club-roster-card{display:grid;grid-template-columns:minmax(170px,270px) minmax(0,1fr)}
#horsesPage .horse-grid.club-list-mode .club-roster-picture{height:100%!important;min-height:220px;margin:7px 0 7px 7px;border-bottom:1px solid #cca165}
#horsesPage .horse-grid.club-list-mode .club-roster-picture .horse-art{height:100%!important}
#horsesPage .horse-grid.club-list-mode .club-roster-body{padding:10px!important}
#horsesPage .portraitStatus{order:8}
#horsesPage #portraitStatus{order:8;display:none!important}
#horsesPage .club-foot-brand{display:flex;align-items:center;gap:8px}
body .appfoot{border-top:2px solid #987045!important;background:#061e17!important;margin:16px calc(-1 * clamp(15px,2.35vw,43px)) -20px;padding:13px clamp(19px,3vw,48px);min-height:72px;display:flex;align-items:center;justify-content:space-between}
body .club-foot-brand>span{font-size:35px;color:#e6bd74;transform:scaleX(-1)}
body .club-foot-brand strong{display:block;font:700 23px/1.12 Georgia,serif;color:#f0d9a6}
body .club-foot-brand small{display:block;font-size:8px;letter-spacing:2.5px;color:#d2a86b;margin-top:4px}
body .club-foot-right{text-align:right;font:700 10px/1.8 Georgia,serif;color:#c39b61;letter-spacing:2px}
/* Pop-up inherits approved style. Head-to-head hero with compact actual stats. */
#detailDialog{width:min(1140px,calc(100vw - 20px))!important;max-height:94vh!important;overflow:auto;background:linear-gradient(120deg,#05261c,#031a14)!important;border:7px ridge #79502a!important;outline:1px solid #e0be7d;outline-offset:-11px;box-shadow:0 18px 70px #000e!important;border-radius:13px!important}
#detailDialog::backdrop{background:#000d;backdrop-filter:blur(2px)}
#detailDialog .dialogform{padding:clamp(12px,1.6vw,22px)!important}
#detailDialog .dialoghead{align-items:center;padding:0 0 8px!important;margin:0 0 10px;border-bottom:1px solid #8f754b}
#detailDialog .dialoghead .tiny{color:#e3bc81!important;letter-spacing:2px;font-size:11px}
#detailDialog .dialoghead h2{display:none!important}
#detailDialog .dialoghead .close{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;border:1px solid #c7aa73;background:#132f23;color:#f8da9f;padding:0;font-size:26px;flex:none}
#detailDialog .club-profile-layout{display:grid!important;grid-template-columns:minmax(275px,.92fr) minmax(0,1.08fr)!important;gap:13px!important;align-items:start!important}
#detailDialog .club-profile-hero{display:contents!important}
#detailDialog .club-profile-picture{height:392px!important;max-height:392px!important;min-height:0!important;border:2px solid #c6a36b!important;border-radius:11px!important;overflow:hidden;position:relative;background:linear-gradient(#33543b55,#082519a0),url('paddock_bokeh.jpg') center/cover no-repeat!important}
#detailDialog .club-profile-picture .horse-art.large{height:388px!important;max-height:388px!important;min-height:0!important;margin:0!important;border-radius:0!important;background:transparent!important}
#detailDialog .club-profile-picture .horse-art.large img{width:100%!important;height:140%!important;max-height:none!important;object-fit:contain!important;object-position:center top!important;transform:translateY(6%) scale(1.06);filter:contrast(1.05) drop-shadow(0 12px 16px #000a);padding:0!important}
#detailDialog .club-profile-picture .horse-grade{border-radius:10px!important;background:#77309a}
#detailDialog .club-profile-summary{display:flex;flex-direction:column;gap:9px!important;padding:11px 12px!important;min-height:392px!important;background:linear-gradient(145deg,#0b3525,#032018)!important;border:1px solid #b18c53!important;border-radius:11px}
#detailDialog .club-profile-overline{color:#ddb97c;letter-spacing:1.7px;font-weight:850;font-size:10px}
#detailDialog .club-profile-name{font:700 clamp(28px,3vw,44px)/1.12 Georgia,serif!important;color:#fff0d9;margin:0 0 8px!important}
#detailDialog .club-profile-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#detailDialog .club-profile-chips .pill{border-color:#988056;color:#f3e7d3;background:#224235}
#detailDialog .club-profile-chips .sota-sex-male{border-color:#3881bb;background:#19436a;color:#deecff}
#detailDialog .club-profile-chips .sota-sex-female{border-color:#c15492;background:#622246;color:#ffe4f2}
#detailDialog .club-profile-preferences .sota-pref-inline{display:flex;gap:5px;flex-wrap:wrap}
#detailDialog .club-profile-preferences .pref-chip{padding:6px 9px;border:1px solid #9f874e;background:#09281c;color:#f3e6d2;border-radius:7px}
#detailDialog .club-profile-adjusted{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 12px!important;min-height:72px!important;border:2px solid #c3a16a!important;background:linear-gradient(105deg,#234a31,#0b281e)!important;border-radius:9px}
#detailDialog .club-profile-adjusted small{font:800 clamp(11px,1.2vw,16px) Georgia,serif;color:#f2dfb9;letter-spacing:.5px}
#detailDialog .club-profile-adjusted strong{color:#ffe0a0!important;font:900 clamp(28px,3.1vw,43px)/1 system-ui!important}
#detailDialog .club-profile-snapshot{padding:9px 12px!important;margin:0!important;background:#092b20!important;border:1px solid #b29458!important;border-radius:9px}
#detailDialog .club-profile-snapshot-head{font:800 11px Georgia,serif;color:#ebc77f;padding:0 0 5px;border-bottom:1px solid #8e7246}
#detailDialog .club-profile-snapshot-values{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:5px}
#detailDialog .club-profile-snapshot-values strong{font:900 clamp(19px,2vw,29px)/1.08 system-ui;color:#fff0da}
#detailDialog .club-profile-snapshot-values small{display:block;margin-top:3px;color:#d5bf99;font-size:9px}
#detailDialog .club-profile-winrate{min-width:95px;padding-left:10px;border-left:1px solid #9a8054}
#detailDialog .club-profile-winrate strong{color:#f4d69b}
#detailDialog .club-detail-metrics-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0!important}
#detailDialog .club-detail-metric{min-height:63px!important;padding:7px 4px!important;border:1px solid #ae8854!important;background:#08261a!important;border-radius:9px!important;text-align:center}
#detailDialog .club-detail-metric small{font-size:9px;color:#f0dfc5}
#detailDialog .club-detail-metric b{font:850 clamp(18px,1.7vw,25px)/1.1 system-ui!important;color:#ead9b8}
#detailDialog .club-detail-metric.ff-high b{color:#99cbb0!important}#detailDialog .club-detail-metric.ff-low b{color:#d58b83!important}
#detailDialog .club-profile-intel{margin:12px 0 0!important;padding:11px!important;border:1px solid #b08d55!important;box-shadow:none;border-radius:11px!important;background:#082a20!important;display:grid;grid-template-columns:1fr 1fr;gap:10px}
#detailDialog .club-profile-intel .club-profile-deep{grid-column:1/-1}
#detailDialog .club-profile-intel .sota-race-top,#detailDialog .club-profile-intel .sota-compact-attrs{margin:0;background:#0b3328;border:1px solid #827046}
#detailDialog .club-profile-intel .sota-finance{margin:0}
#detailDialog .club-profile-intel>.sota-race-top,#detailDialog .club-profile-intel>.sota-compact-attrs{grid-column:1}
#detailDialog .club-profile-intel>.sota-finance{grid-column:2}
#detailDialog .club-profile-deep-grid b{color:#f6dfac!important}
#detailDialog .detail-tabs{border-color:#7a6144}
#detailDialog .detail-tabs button.active{color:#f2cf8d;border-color:#d5ae62}
#detailDialog .detail-section,#detailDialog .entry,#detailDialog .mini-form{background:#0d3024;border:1px solid #735e41;border-radius:10px;color:#f5e6cb}
body .login-card,body .insight-card,body .plan-card,body .member-card,body .empty{background:linear-gradient(135deg,#143629,#08261e);border-color:#8d744e;color:#f0e4d0}
body .plan-card p,body .member-card p,body .hint,body .muted{color:#c9bea9}
@media(max-width:1550px){
 body .top .tabs button{padding-inline:9px}
 body .brand strong{font-size:23px!important}
 #horsesPage .club-roster-name{font-size:clamp(17px,1.3vw,21px)!important}
 #horsesPage .club-roster-picture{height:clamp(152px,12.4vw,190px)!important}
}
@media(max-width:1150px){
 body .top{flex-wrap:wrap}
 body .top .tabs{order:3;flex-basis:100%;justify-content:flex-start}
 #horsesPage .horse-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #horsesPage .club-roster-picture{height:240px!important}
 #horsesPage .toolbar .tools{flex-wrap:wrap!important}
 #horsesPage #horseSearch{flex-basis:65%}
 #horsesPage .club-showing-count{margin-left:auto}
}
@media(max-width:700px){
 body .layout{padding-inline:13px}
 body .top{padding:9px 12px;gap:7px}
 body .top .tabs{gap:0}
 body .top .tabs button{padding:8px 11px;font-size:11px}
 body .brand .mark{width:37px;height:37px;font-size:36px!important}
 body .brand strong{font-size:17px!important}
 body .brand small{font-size:7px!important;letter-spacing:1px!important}
 body .top #netStatus{display:none}
 #horsesPage .sota-showcase-hero{margin-inline:-13px;min-height:130px!important;padding:13px 17px!important}
 #horsesPage .showcase-title h2{font-size:38px!important}
 #horsesPage .showcase-motto{display:none}
 #horsesPage .horse-grid{grid-template-columns:1fr!important}
 #horsesPage .club-roster-picture{height:255px!important}
 #horsesPage .toolbar .tools{flex-wrap:wrap!important}
 #horsesPage .club-showing-count{order:3;margin:0;font-size:10px}
 #horsesPage .club-view-toggle{order:2;margin-left:auto}
 #horsesPage #horseFilterPanel{order:1}
 #horsesPage #horseSearch{order:0;flex:1 1 100%}
 #horsesPage .horse-grid.club-list-mode .club-roster-card{display:flex;flex-direction:column}
 #horsesPage .horse-grid.club-list-mode .club-roster-picture{height:200px!important;margin:7px 7px 0}
 #detailDialog .club-profile-layout{grid-template-columns:1fr!important}
 #detailDialog .club-profile-picture{height:260px!important;max-height:260px!important}
 #detailDialog .club-profile-picture .horse-art.large{height:255px!important;max-height:255px!important}
 #detailDialog .club-profile-summary{min-height:0!important}
 #detailDialog .club-profile-intel{grid-template-columns:1fr}
 #detailDialog .club-profile-intel>.sota-race-top,#detailDialog .club-profile-intel>.sota-finance{grid-column:1}
 body .appfoot{margin-inline:-13px}
}
/* Use the approved gold horse-head artwork for navigation and card icons. */
body .brand .mark{font-size:0!important;transform:none!important;display:block;width:67px;height:57px;background:url('sota_horse_logo.png') center/contain no-repeat!important}
body .club-foot-brand>span{display:inline-block;font-size:0!important;transform:none!important;width:44px;height:43px;background:url('sota_horse_logo.png') center/contain no-repeat}
#horsesPage .club-roster-name::before{content:''!important;display:inline-block;vertical-align:-4px;width:24px;height:24px;margin-right:6px;background:url('sota_horse_logo.png') center/contain no-repeat}
#horsesPage .club-stat-horse{font-size:0!important;display:inline-block;width:27px;height:31px;background:url('sota_horse_logo.png') center/contain no-repeat}
@media(max-width:700px){body .brand .mark{width:39px;height:40px}}
/* Global continuity: preserve the same gold-on-forest Owners' Club palette on other pages. */
#claimersPage,#racefitPage,#watchPage,#plansPage,#teamPage{padding:18px 0 10px}
#claimersPage .horse-card,#racefitPage .horse-card,#watchPage .horse-card,#plansPage .plan-card,#teamPage .member-card,
#claimersPage .claim-row,#claimersPage .claim-list>*,#racefitPage .insight-card,#racefitPage .insight-stats>div{
 background:linear-gradient(140deg,#123529,#08231b)!important;border-color:#8e754c!important;color:#f2e5ce!important;box-shadow:0 5px 19px #0004;
}
#claimersPage input,#claimersPage select,#racefitPage input,#racefitPage select,#watchPage input,#plansPage input,#plansPage select,#teamPage input,
#claimersPage .claim-filterbar,#racefitPage .scan-callout{background:#0b2a20!important;border-color:#8b734a!important;color:#f2e4cd!important}
#racefitPage .insight-stats strong,#teamPage .member-card strong{color:#f2d29a!important}
#claimersPage h2,#racefitPage h2,#watchPage h2,#plansPage h2,#teamPage h2{font-family:Georgia,serif;color:#fff0d4}
#detailDialog .entry,#claimDetailDialog .entry,#detailDialog .mini-form,#claimDetailDialog .mini-form{background:#0e3226!important;border-color:#89754e!important}

/* ===============================================================
   v2.7.8: faithful racing-condition graphics and photo treatment
   No demo figures or mockup portrait replacements.
   =============================================================== */
#horsesPage .club-roster-preferences .sota-track-trio,
#detailDialog .club-profile-preferences .sota-track-trio{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important;width:100%;align-items:center}
#horsesPage .club-roster-preferences .sota-track-chip,
#detailDialog .club-profile-preferences .sota-track-chip{
 display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
 min-width:0;min-height:30px;white-space:nowrap!important;overflow:hidden;
 padding:4px 5px!important;font-size:clamp(10px,.78vw,13px)!important;font-weight:760!important;
 border:1px solid #b18a4f!important;border-radius:7px!important;background:linear-gradient(180deg,#08291d,#031d16)!important;
 color:#f3e6ce!important;box-shadow:inset 0 1px #ffffff17,0 2px 5px #0004
}
#horsesPage .sota-track-chip .pref-name,#detailDialog .sota-track-chip .pref-name{
 flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:inherit!important
}
#horsesPage .sota-track-chip .track-icon,#detailDialog .sota-track-chip .track-icon{
 flex:none;display:block;width:clamp(16px,1.25vw,23px);height:clamp(16px,1.25vw,23px);color:#eee8da;
 filter:drop-shadow(0 1px 1px #0007)
}
#horsesPage .sota-track-chip.sota-track-surface:has(.pref-name),#detailDialog .sota-track-chip.sota-track-surface{border-color:#a1884e!important}
#horsesPage .sota-track-chip.sota-track-surface:has(.track-icon) .track-icon,
#detailDialog .sota-track-chip.sota-track-surface:has(.track-icon) .track-icon{color:#78c85f}
#horsesPage .sota-track-chip.sota-track-going .track-icon,
#detailDialog .sota-track-chip.sota-track-going .track-icon{color:#f1c875}
#horsesPage .sota-track-chip.track-missing .track-icon,#detailDialog .sota-track-chip.track-missing .track-icon{color:#6f7d72}
#horsesPage .club-roster-picture .horse-art{
 background:linear-gradient(180deg,#24281308 48%,#031d1350 100%),url('paddock_bokeh.jpg') center center/cover no-repeat!important
}
#horsesPage .club-roster-picture .horse-art::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0b21101c 0%,transparent 38%,#0c291542 100%);z-index:0;pointer-events:none}
#horsesPage .club-roster-picture .horse-art img{filter:brightness(1.07) contrast(1.1) saturate(1.04) drop-shadow(0 11px 13px #0009)!important}
#horsesPage .club-roster-picture .horse-grade{box-shadow:inset 0 0 0 2px #f1cd7e,inset 0 0 0 5px #2a123c80!important;outline:2px solid #f2c66a;outline-offset:-5px;
 filter:drop-shadow(0 4px 3px #0009)!important;text-shadow:0 2px 2px #000a}
#horsesPage .club-roster-picture .horse-grade::before{content:'♛';font-size:14px;color:#ffda8c}
#horsesPage .club-roster-name{letter-spacing:-.15px!important}
#horsesPage .club-roster-adjusted .stat-chart-icon{font-family:Arial,sans-serif;font-size:16px;letter-spacing:-3px;color:#f3cc80;padding-right:8px}
#horsesPage .club-roster-open{transition:background .18s,border-color .18s}
#horsesPage .club-roster-open:hover{background:#124330!important;border-color:#ebc27d!important}
#horsesPage .club-roster-picture:focus-visible,
#horsesPage .club-roster-name:focus-visible,
#horsesPage .club-roster-open:focus-visible{outline:3px solid #7be0c1!important;outline-offset:2px}
@media(max-width:430px){#horsesPage .sota-track-chip .track-icon{width:19px;height:19px}#horsesPage .club-roster-preferences .sota-track-chip{font-size:12px!important;padding:6px 3px!important}}

#horsesPage .sota-track-chip.sota-track-choice-dirt .track-icon,#detailDialog .sota-track-chip.sota-track-choice-dirt .track-icon{color:#c99a65!important}
#horsesPage .sota-track-chip.sota-track-choice-turf .track-icon,#detailDialog .sota-track-chip.sota-track-choice-turf .track-icon{color:#78d26a!important}
#horsesPage .sota-track-chip.sota-track-choice-soft .track-icon,#detailDialog .sota-track-chip.sota-track-choice-soft .track-icon{color:#e4c99b!important}
#horsesPage .sota-track-chip.sota-track-choice-left .track-icon,#horsesPage .sota-track-chip.sota-track-choice-right .track-icon{color:#f2f0e5!important}

/* v2.7.8: truly integrated top navbar, preserving all existing sections. */
body .top{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:clamp(12px,2.1vw,30px)!important}
body .top .brand{flex:0 0 auto}
body .top .tabs{flex:1 1 auto!important;min-width:0!important;justify-content:center!important;border:0!important;box-shadow:none!important;gap:2px!important}
body .top .tabs button{min-width:0;flex:0 0 auto;padding-inline:clamp(8px,.88vw,16px)!important}
body .top .account-bar{flex:0 0 auto}
#horsesPage .sota-sync-inner .upload-action{display:inline-flex;cursor:pointer}
@media(max-width:1150px){body .top .tabs{order:3;flex-basis:100%!important;justify-content:flex-start!important}}
@media(max-width:700px){body .top .tabs button{padding:8px 11px!important}}

/* Horse Intelligence must fill its popup width, not leave an empty right column. */
#detailDialog .club-profile-layout > .club-profile-intel,
#detailDialog .club-profile-layout > .club-detail-actions,
#detailDialog .club-profile-layout > .club-profile-team,
#detailDialog .club-profile-layout > .detail-tabs,
#detailDialog .club-profile-layout > .detail-section{
 grid-column:1/-1!important;
}
#detailDialog .club-profile-intel{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-top:0!important}
#detailDialog .club-profile-intel > .club-profile-deep{grid-column:1!important;align-self:stretch}
#detailDialog .club-profile-intel > .sota-race-top{grid-column:2!important;align-self:stretch}
#detailDialog .club-profile-intel > .sota-finance-drop,
#detailDialog .club-profile-intel > .sota-compact-attrs{grid-column:1/-1!important}
#detailDialog .club-detail-actions{display:flex!important;align-items:center;gap:9px;margin:0!important}
#detailDialog .club-profile-team{margin:0!important;max-width:none!important}
#detailDialog .detail-tabs{display:flex!important;gap:12px;margin:0!important}
#detailDialog .detail-section{margin:0!important}
@media(max-width:800px){#detailDialog .club-profile-intel{grid-template-columns:1fr!important}#detailDialog .club-profile-intel > .club-profile-deep,#detailDialog .club-profile-intel > .sota-race-top{grid-column:1!important}}


/* v2.7.9 — approved club design refinements: numbers stay live, graphics do not encode invented statistics. */
#horsesPage .club-roster-card{cursor:pointer;position:relative;isolation:isolate;border:5px ridge #815024!important;box-shadow:0 0 0 1px #ca9f5d,0 6px 26px #000b,inset 0 0 0 1px #d4aa6488!important}
#horsesPage .club-roster-card:hover,#horsesPage .club-roster-card:focus-visible{outline:2px solid #f1d492!important;outline-offset:2px!important;transform:translateY(-3px)}
#horsesPage .club-roster-card :is(.club-roster-picture,.club-roster-body){cursor:pointer}
#horsesPage .club-roster-card .club-roster-picture{height:clamp(182px,13.8vw,238px)!important;border-radius:9px 9px 0 0}
#horsesPage .club-roster-card .horse-art img.pfl-portrait{height:145%!important;transform:translateY(3%) scale(1.13)!important;filter:contrast(1.1) saturate(1.06) drop-shadow(0 7px 10px #0008)!important}
#horsesPage .club-roster-card .horse-art img.artistic-twin{height:100%!important;object-fit:cover!important;object-position:center 25%!important;transform:none!important;filter:contrast(1.04) saturate(1.05)!important}
#detailDialog .club-profile-picture img.artistic-twin{height:100%!important;object-fit:cover!important;transform:none!important}
#horsesPage .club-roster-body{padding:8px 9px 10px!important;gap:6px!important}
#horsesPage .club-roster-name{font-size:clamp(18px,1.42vw,24px)!important}
#horsesPage .club-roster-adjusted{min-height:49px!important;max-height:none!important;background:linear-gradient(110deg,#28523a,#103227 48%,#071e18)!important;box-shadow:inset 0 2px 0 #f4d88b55,0 1px 10px #dcb66b19!important;border-color:#e0bf80!important;padding:6px 9px!important;gap:8px}
#horsesPage .club-roster-adjusted>span{display:flex;align-items:center;gap:7px;min-width:0;white-space:normal!important}
#horsesPage .club-roster-adjusted .stat-chart-icon{width:45px;min-width:45px;display:inline-flex!important;align-items:center;justify-content:center}
#horsesPage .club-roster-adjusted .sota-ff-visual{width:42px;height:36px;filter:drop-shadow(0 0 3px #eac47444)}
#horsesPage .club-roster-adjusted .club-adjusted-label{font-size:clamp(10px,.77vw,12px)!important;line-height:1.2;white-space:normal!important}
#horsesPage .club-roster-adjusted strong{flex:0 0 auto;color:#ffe6b3!important;font-size:clamp(23px,1.85vw,33px)!important}
#horsesPage .club-roster-metric{min-height:60px!important;gap:5px!important;padding:6px 4px!important;background:linear-gradient(160deg,#082f21,#031a14)!important}
#horsesPage .club-roster-metric>div{gap:3px}
#horsesPage .club-metric-icon{width:25px;min-width:25px;display:grid;place-items:center}
#horsesPage .club-metric-icon .sota-ff-mini{height:28px;width:26px;display:block}
#horsesPage .club-roster-metric small{font-size:clamp(8px,.67vw,11px)!important}
#horsesPage .club-roster-metric strong{font-size:clamp(16px,1.3vw,22px)!important}
#horsesPage .club-roster-snapshot{min-height:55px!important;border:1px solid #bd9353!important}
#horsesPage .club-roster-record small{color:#d9c49c!important}
#horsesPage .club-roster-record strong{font-size:clamp(19px,1.6vw,26px)!important}
#horsesPage .club-roster-open{min-height:39px!important;font-size:12px!important;letter-spacing:.3px}
#horsesPage .club-roster-picture .horse-grade::before{content:'♛'!important;font-size:15px}
#horsesPage .club-roster-picture .horse-grade{min-width:65px!important;min-height:78px!important;box-shadow:inset 0 0 0 1px #f8d77a!important}
#horsesPage .club-photo-tools{display:flex;align-items:center;gap:10px;justify-content:flex-end;width:100%;font-size:11px;color:#cfc0a4;line-height:1.2}
#horsesPage .club-photo-tools label{display:flex;align-items:center;gap:7px;cursor:pointer}
#horsesPage .club-photo-tools input{accent-color:#c29c5e}
#horsesPage .club-photo-tools small{color:#a99d87}
@media(max-width:1450px){#horsesPage .club-roster-adjusted .stat-chart-icon{min-width:32px;width:32px}#horsesPage .club-roster-adjusted .sota-ff-visual{width:30px}#horsesPage .club-roster-metric{gap:2px!important}#horsesPage .club-metric-icon{width:21px;min-width:21px}#horsesPage .club-metric-icon .sota-ff-mini{width:21px}}
@media(max-width:1100px){#horsesPage .club-roster-picture{height:230px!important}}
@media(max-width:680px){#horsesPage .club-roster-adjusted{gap:6px}#horsesPage .club-roster-adjusted .stat-chart-icon{width:42px;min-width:42px}#horsesPage .club-roster-metric{min-height:60px!important}#horsesPage .club-roster-picture{height:220px!important}}


/* v2.8.0 — keep the approved walnut / gold design and the realistic horse twin.
   The decorative graphics are presentation only, never invented data. */
#horsesPage .club-roster-card{background:linear-gradient(155deg,#2f1b0d 0%,#543219 12%,#321d0d 100%)!important;transition:transform .16s ease,box-shadow .16s ease}
#horsesPage .club-roster-card .club-roster-body{background:linear-gradient(160deg,#043326,#00261c 52%,#031d17 100%)!important}
#horsesPage .club-roster-picture{border:1px solid #e4bd6a!important;box-shadow:inset 0 0 0 2px #806039!important}
#horsesPage .club-roster-picture .horse-art img.artistic-twin{object-fit:cover!important;object-position:center 30%!important}
#horsesPage .club-roster-picture .horse-art img.pfl-portrait{object-fit:contain!important}
#horsesPage .club-roster-name{color:#fff1d4!important;text-shadow:0 2px 2px #000a!important}
#horsesPage .club-roster-record strong{font-variant-numeric:tabular-nums!important}
#horsesPage .club-roster-picture .horse-grade{border:2px solid #ffdc8c!important}
#horsesPage .club-roster-adjusted .sota-ff-visual{filter:drop-shadow(0 1px 4px #e6bc6a55)!important}
#horsesPage .club-roster-metric .sota-ff-mini{filter:drop-shadow(0 1px 2px #0006)!important}
#horsesPage .club-roster-metric strong{font-variant-numeric:tabular-nums!important}
#horsesPage .club-roster-card:focus-visible{outline:3px solid #ffe1a0!important;outline-offset:3px!important}
#horsesPage .club-roster-picture:after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px #f6ce7680;pointer-events:none}
#horsesPage .club-roster-card .club-roster-preferences .sota-track-chip{min-height:29px!important}
#horsesPage .club-roster-snapshot{min-height:60px!important}
@media(prefers-reduced-motion:reduce){#horsesPage .club-roster-card{transition:none!important}#horsesPage .club-roster-card:hover{transform:none!important}}

/* v2.8.1: local PFL bulk import progress within the existing premium panel */
.pfl-bulk-status{margin-top:10px;display:grid;gap:7px;color:#e9d5af;font-size:12px}
.pfl-bulk-status progress{width:100%;height:10px;accent-color:#bea06a;background:#0c241e;border:1px solid #8f7046;border-radius:8px;overflow:hidden}
.pfl-bulk-status pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:190px;overflow-y:auto;background:#09251b;color:#d8d3bd;border:1px solid #927a54;border-radius:8px;padding:12px;font-family:ui-monospace,Consolas,monospace;font-size:11px}
.pfl-live-panel #pflSyncAll{background:linear-gradient(125deg,#125b49,#25715a);border-color:#b9a06b;color:#fff2d9;box-shadow:0 2px 7px #001b14}

/* v2.8.4: preserve the detailed approved artwork in each curated horse profile. */
#horsesPage .club-roster-card .club-roster-picture .horse-art img.artistic-twin{
  width:100%!important;height:100%!important;left:0!important;top:0!important;
  max-height:100%!important;object-fit:cover!important;object-position:center 22%!important;
  transform:none!important;padding:0!important;filter:contrast(1.04) saturate(1.05)!important;
}
#detailDialog .club-profile-picture .horse-art.large img.artistic-twin{
  width:100%!important;height:100%!important;max-height:100%!important;
  object-fit:cover!important;object-position:center 22%!important;
  transform:none!important;padding:0!important;filter:contrast(1.03) saturate(1.04)!important;
}

/* v2.8.6: Imported-race evidence — preserves the approved Owners' Club cards. */
#detailDialog .club-profile-intel > .sota-form-v286{grid-column:1/-1;}
#detailDialog .sota-race-v286,#detailDialog .sota-form-v286{background:#09291f;border:1px solid #927449;border-radius:11px;padding:13px;color:#f0e5d0;min-width:0}
#detailDialog .sota-race-v286 .sota-section-title,#detailDialog .sota-form-v286 .sota-section-title{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px;color:#f0cf91;font-size:13px;font-weight:800;letter-spacing:.35px}
#detailDialog .sota-race-v286 .sota-section-title small,#detailDialog .sota-form-v286 .sota-section-title small{color:#b0c5b6;font-size:11px;letter-spacing:0;font-weight:500}
#detailDialog .sota-race-v286 .sota-race-mini{display:grid;grid-template-columns:23px minmax(0,1fr) auto;align-items:center;gap:8px;background:#12392c;border:1px solid #446e58;border-radius:9px;margin-top:7px;padding:10px 8px;min-width:0}
#detailDialog .sota-race-v286 .sota-race-mini .sota-race-rank{width:21px;height:21px;border-radius:50%;display:grid;place-items:center;color:#153327;background:#d3b16f;font-weight:900;font-size:12px}
#detailDialog .sota-race-v286 .sota-race-mini strong{color:#f6e5c4;font-size:12px;line-height:1.25}
#detailDialog .sota-race-v286 .sota-race-mini small{display:block;font-size:11px;font-weight:400;color:#b4c5b7;margin-top:4px}
#detailDialog .sota-race-v286 .sota-race-mini>b{white-space:nowrap;color:#f0d99f;font-size:17px;font-variant-numeric:tabular-nums}
#detailDialog .sota-race-v286 .sota-race-mini>b small{color:#b3c8b8;font-size:9px}
#detailDialog .sota-race-v286 .sota-race-mini.unknown{border-color:#4b5d50}
#detailDialog .sota-race-v286 .sota-race-mini.excellent{border-color:#6e987d}
#detailDialog .sota-race-v286 .sota-race-mini.good{border-color:#789090}
#detailDialog .sota-race-v286 .sota-race-mini.fair{border-color:#9b8654}
#detailDialog .sota-distance-evidence{margin-top:14px;border-top:1px solid #6d6043;padding-top:10px;display:flex;flex-wrap:wrap;gap:7px}
#detailDialog .sota-distance-chip{border:1px solid #70664b;border-radius:7px;padding:7px 9px;display:flex;flex-direction:column;gap:4px;background:#17382d}
#detailDialog .sota-distance-chip strong{font-size:11px;color:#efdcba}
#detailDialog .sota-distance-chip small{font-size:10px;color:#b7c9ba}
#detailDialog .sota-race-label{font-size:10px;letter-spacing:.8px;color:#d7b574;font-weight:800;align-self:center;flex-basis:100%}
#detailDialog .sota-race-v286 .sota-method-note,#detailDialog .sota-distance-empty{color:#b6c7ba;font-size:11px;line-height:1.45;margin:10px 0 0}
#detailDialog .sota-race-all summary{cursor:pointer;color:#e9cb8c;padding:10px 0 3px;font-size:12px}
#detailDialog .sota-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:11px}
#detailDialog .sota-form-grid>div{display:flex;flex-direction:column;gap:7px;background:#153a2d;border:1px solid #706448;border-radius:9px;padding:10px 9px;min-width:0}
#detailDialog .sota-form-grid small{font-size:10px;color:#cbb88e;letter-spacing:.4px}
#detailDialog .sota-form-grid strong{font-size:23px;color:#ecd7ad;line-height:1.1;font-variant-numeric:tabular-nums}
#detailDialog .sota-form-grid .form-up{color:#81c7a1}
#detailDialog .sota-form-grid .form-down{color:#dfa391}
#detailDialog .sota-form-grid span{font-size:10px;color:#b9c7b6}
#detailDialog .sota-form-method summary{cursor:pointer;font-size:11px;color:#e3c18a;padding:12px 0 5px}
#detailDialog .sota-form-method p{font-size:11px;line-height:1.5;color:#c1ceb9;margin:6px 0}
#detailDialog .sota-observed-money{border-top:1px solid #63563d;padding:10px 0 3px;margin-top:9px;color:#f2d6ab}
#detailDialog .sota-observed-money>strong{display:block;font-size:11px;margin-bottom:8px}
#detailDialog .sota-observed-money>div{display:flex;flex-wrap:wrap;gap:8px}
#detailDialog .sota-observed-money>div span{background:#153b2d;border:1px solid #736448;border-radius:7px;padding:6px 8px;font-size:12px}
#detailDialog .sota-observed-money>div small,#detailDialog .sota-observed-money>small{color:#bcc7b9;font-size:10px}
@media(max-width:680px){#detailDialog .sota-form-grid{grid-template-columns:1fr}#detailDialog .sota-race-v286 .sota-race-mini{grid-template-columns:20px minmax(0,1fr) auto}#detailDialog .sota-race-v286 .sota-race-mini>b{font-size:15px}}

/* v3.0.4 — rolling two-year racing evidence: readable desktop and mobile layout */
#racefitPage .sota-two-year-summary{
 grid-column:1/-1;display:grid;gap:8px;padding:18px 20px;
 border:1px solid #a17b49;border-radius:14px;
 background:linear-gradient(125deg,#164231,#071e18);
 color:#f5e5c6;box-shadow:0 12px 28px #0003;
}
#racefitPage .sota-two-year-summary>strong{font-size:18px;letter-spacing:.2px}
#racefitPage .sota-two-year-summary>span{font-size:13px;color:#e3be7c;font-weight:700}
#racefitPage .sota-two-year-summary>small{font-size:11px;line-height:1.6;color:#c5d0be}
#racefitPage .sota-two-year-sort{display:flex;gap:10px;align-items:center;flex-wrap:wrap;
 font-size:12px;color:#f5e4c4;font-weight:750;margin:4px 0 0}
#racefitPage .sota-two-year-sort select{width:min(100%,290px);padding:9px 12px;
 border:1px solid #9e794b;background:#0d3024;color:#f5e4c4}
#racefitPage .insight-card .sota-history-warning{
 display:block;margin:10px 0;color:#e8be76;font-size:11px}
#racefitPage .insight-card .insight-stats{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#racefitPage .insight-card .insight-stats>div{min-width:0}
#racefitPage .insight-card .insight-stats strong{overflow-wrap:anywhere}
@media(max-width:480px){
 #racefitPage .insight-card .insight-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 #racefitPage .sota-two-year-summary{padding:15px}
 #racefitPage .sota-two-year-sort select{width:100%}
}

/* v3.0.4 — expandable evidence windows, understated Owners' Club finish. */
#racefitPage .sota-history-explore{
 margin:12px 0 9px;border:1px solid #796e4e;border-radius:10px;
 background:linear-gradient(160deg,#0a2d22,#061e19);padding:10px 12px;color:#f0e0c2
}
#racefitPage .sota-history-explore>summary{cursor:pointer;list-style-position:inside;
 font-weight:750;font-size:12px;color:#e4bd7b;outline-offset:4px}
#racefitPage .sota-history-explore[open]>summary{margin-bottom:12px}
#racefitPage .sota-history-window-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:7px;margin:0 0 13px}
#racefitPage .sota-history-window{min-width:0;display:flex;flex-direction:column;gap:4px;
 padding:8px;border:1px solid #516a55;border-radius:7px;background:#0e3728}
#racefitPage .sota-history-window b{font-size:11px;color:#dfcdab}
#racefitPage .sota-history-window strong{font-size:16px;color:#f3d18d}
#racefitPage .sota-history-window small{font-size:10px;line-height:1.5;color:#c2cbbf}
#racefitPage .sota-history-explore> b{font-size:12px}
#racefitPage .sota-history-explore ol{margin:6px 0 3px;padding-left:17px}
#racefitPage .sota-history-explore li{margin:0 0 8px;line-height:1.55;font-size:11px;color:#d2cfbd}
#racefitPage .sota-history-explore li b{color:#efdfbf}
@media(max-width:420px){
 #racefitPage .sota-history-window-grid{grid-template-columns:minmax(0,1fr)}
}

/* Dedicated local-only viewer entry: visible whether cloud login is active. */
.top .account-bar .sota-local-hq-link{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;
 color:#f4dbab;background:#133b2c;text-decoration:none;font-weight:800;
 border:1px solid #ac8e5e;border-radius:8px;padding:8px 11px;
 font-size:11px;white-space:nowrap
}
.top .account-bar .sota-local-hq-link:hover{background:#1e543b}
#authView .privacy a{color:#f0c880;text-decoration:underline;font-weight:800}
@media(max-width:720px){.top .account-bar .sota-local-hq-link{font-size:10px;padding:7px}}
