/* My horses: the stable board (owner design, 11 Nov 2026): racing-green header with a gold
   edge over a white board, brass name plates, Entered to run / Not entered yet sections. */
.my-horses-view{background:#e9ece9}
.mh-main{display:block}
.mh-page{max-width:1160px;margin:0 auto;padding:26px 20px 48px;color:#151926;font:16px/1.45 "Source Sans 3",system-ui,sans-serif}
.mh-board{position:relative;border-radius:14px;background:#fff;box-shadow:0 18px 40px rgba(20,25,40,.12),0 0 0 1px #e3e6ee;padding-bottom:4px}
.mh-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;padding:24px 26px 20px;border-radius:14px 14px 0 0;border-bottom:4px solid #e0ac16;color:#fff;background:linear-gradient(135deg,#1a5a42,#0a2c20)}
.mh-crest{display:flex;align-items:center;gap:16px}
.mh-medal{display:grid;place-items:center;flex:none;width:58px;height:58px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f6d36b,#e0ac16 45%,#a87a0c);box-shadow:0 6px 14px rgba(0,0,0,.35),inset 0 0 0 3px rgba(42,29,23,.35)}
.mh-medal svg{width:28px;height:28px;fill:#2a1d17}
.mh-eb{display:block;color:#e0ac16;font:700 .78rem "ITS Condensed","Arial Narrow",sans-serif;letter-spacing:.24em;text-transform:uppercase}
.mh-head h1{margin:2px 0 0;color:#fff;font:700 2.7rem/1 "ITS Condensed","Arial Narrow",sans-serif;letter-spacing:.05em;text-transform:uppercase}
.mh-head p{margin:6px 0 0;color:#cfe3d7;font-size:.95rem}
.mh-tallies{display:flex;gap:10px}
.mh-tally{min-width:96px;padding:10px 14px;border-radius:8px;text-align:center;background:rgba(0,0,0,.18);box-shadow:inset 0 0 0 1px rgba(224,172,22,.35)}
.mh-tally b{display:block;font:700 1.9rem/1 "ITS Condensed","Arial Narrow",sans-serif;background:linear-gradient(180deg,#f6d36b,#e0ac16 55%,#a87a0c);-webkit-background-clip:text;background-clip:text;color:transparent}
.mh-tally span{color:#cfe3d7;font-size:.78rem}
.mh-flash{margin:14px 16px 0;padding:10px 14px;border-radius:8px;background:#eef6f1;color:#124a35;font-weight:600}
.mh-cols,.mh-row{display:grid;grid-template-columns:64px minmax(200px,1.35fr) 1.25fr 1fr 1.25fr 40px;gap:16px;margin:0 16px}
.mh-cols{padding:16px 14px 0;color:#8a6a0c;font:700 .72rem "ITS Condensed","Arial Narrow",sans-serif;letter-spacing:.18em;text-transform:uppercase}
.mh-row{position:relative;align-items:center;padding:14px;border-radius:8px;transition:background .18s}
.mh-row+.mh-row{margin-top:4px}
.mh-row:hover{background:#f6f7f9}
.mh-row.run{background:#f4f5f8}
.mh-row.run::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:2px;background:#e0ac16}
.mh-sect{display:flex;align-items:center;gap:12px;margin:18px 16px 6px;color:#8a6a0c;font:700 .9rem "ITS Condensed","Arial Narrow",sans-serif;letter-spacing:.2em;text-transform:uppercase}
.mh-sect::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,rgba(224,172,22,.5),transparent)}
.mh-sect b{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:rgba(224,172,22,.2);color:#7a5a06;font-size:.8rem;letter-spacing:0}
.mh-silk{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:radial-gradient(circle at 50% 40%,#fff,#e9efe9);box-shadow:0 0 0 2px #e0ac16,0 0 0 5px rgba(224,172,22,.18),0 6px 12px rgba(0,0,0,.18)}
.mh-silk img{width:38px;height:41px;object-fit:contain}
.mh-silk.empty svg{width:26px;height:26px;fill:#b9a15a}
.mh-plate{display:inline-block;max-width:100%;padding:4px 12px 3px;border-radius:4px;color:#2a1d17;font:700 1.12rem/1.05 "ITS Condensed","Arial Narrow",sans-serif;letter-spacing:.05em;text-transform:uppercase;text-decoration:none;background:linear-gradient(180deg,#f6d36b,#e0ac16 55%,#a87a0c);box-shadow:0 3px 8px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.55);overflow-wrap:anywhere}
.mh-plate:hover{color:#000}
.mh-sub{display:block;margin-top:5px;color:#5d6478;font-size:.82rem}
.mh-figs{display:flex;gap:3px;margin-top:6px}
.mh-fig{display:grid;place-items:center;width:20px;height:20px;border-radius:3px;background:#eef0f5;color:#151926;font:700 .78rem "ITS Condensed","Arial Narrow",sans-serif}
.mh-fig.w{background:#e0ac16;color:#2a1d17}.mh-fig.p{background:#e7e9ef;color:#7a5a06}
.mh-eng{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}
.mh-eng:hover .mh-t{text-decoration:underline}
.mh-date{flex:none;width:52px;border-radius:6px;overflow:hidden;text-align:center;background:#fff;color:#2a1d17;box-shadow:0 0 0 1px #e3e6ee,0 4px 10px rgba(0,0,0,.08)}
.mh-date i{display:block;padding:2px 0;background:#e0ac16;font:700 .66rem "ITS Condensed","Arial Narrow",sans-serif;letter-spacing:.14em;text-transform:uppercase;font-style:normal}
.mh-date b{display:block;padding:2px 0 3px;font:700 1.35rem/1 "ITS Condensed","Arial Narrow",sans-serif}
.mh-t{font:700 1.05rem "ITS Condensed","Arial Narrow",sans-serif;letter-spacing:.04em}
.mh-time{color:#8a6a0c;font-size:1.15rem}
.mh-eng small,.mh-last small{display:block;color:#5d6478}
.mh-last small{margin-top:4px}
.mh-nr{display:inline-block;margin-left:8px;padding:1px 7px;border-radius:3px;background:#a4161a;color:#fff;font:700 .7rem "Source Sans 3",sans-serif;vertical-align:2px}
.mh-rest{color:#5d6478;font-size:.9rem}.mh-rest b{color:#151926;font-weight:600}
.mh-res{display:inline-flex;align-items:center;height:22px;padding:0 10px;border-radius:999px;font-size:.76rem;font-weight:800}
.mh-res.w{background:#e0ac16;color:#2a1d17}.mh-res.p{background:#e3f1e8;color:#17663a}.mh-res.u{background:#eef0f5;color:#4a5064}
.mh-edit{position:relative}
.mh-edit summary{list-style:none;cursor:pointer}
.mh-edit summary::-webkit-details-marker{display:none}
.mh-edit summary::marker{content:""}
.mh-note{display:block;position:relative;padding:8px 10px;border-radius:6px;background:#f1f2f5;color:#3b2a22;font-size:.88rem;line-height:1.35;overflow-wrap:anywhere}
.mh-note.text{padding-left:26px}
.mh-note.text::before{content:"\201C";position:absolute;left:8px;top:-2px;color:#e0ac16;font:700 1.6rem Georgia,serif}
.mh-edit summary:hover .mh-note{background:#e9ebf0}
.mh-verdict{display:inline-flex;align-items:center;height:18px;margin-right:6px;padding:0 7px;border-radius:999px;color:#fff;font:800 .66rem/1 "Source Sans 3",sans-serif;vertical-align:1px}
.mh-verdict.back{background:#1f7a3f}.mh-verdict.watch{background:#c2571a}.mh-verdict.avoid{background:#a4161a}
.mh-addnote{color:#8a6a0c;font-size:.86rem;font-weight:700;border-bottom:1px dashed rgba(224,172,22,.6)}
.mh-pop{position:absolute;z-index:30;right:0;top:calc(100% + 6px);width:300px;padding:14px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px #e3e6ee,0 18px 40px rgba(20,25,40,.18);font-size:.9rem}
.mh-title{margin:0 0 8px;color:#5d6478;font:700 .74rem/1.3 "ITS Condensed","Arial Narrow",sans-serif;letter-spacing:.14em;text-transform:uppercase}
.mh-pop textarea{display:block;width:100%;min-height:70px;box-sizing:border-box;padding:8px;border:1px solid #d6d9e1;border-radius:6px;font:inherit;resize:vertical}
.mh-verdicts{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0}
.mh-verdicts b{color:#5d6478;font-size:.8rem}
.mh-choice{position:relative}
.mh-choice input{position:absolute;opacity:0;pointer-events:none}
.mh-choice span{display:inline-block;padding:2px 9px;border:1px solid #d6d9e1;border-radius:999px;font-weight:700;font-size:.8rem;cursor:pointer}
.mh-choice input:focus-visible+span{outline:2px solid #151926;outline-offset:1px}
.mh-choice.back input:checked+span{border-color:#1f7a3f;background:#1f7a3f;color:#fff}
.mh-choice.watch input:checked+span{border-color:#c2571a;background:#c2571a;color:#fff}
.mh-choice.avoid input:checked+span{border-color:#a4161a;background:#a4161a;color:#fff}
.mh-choice.none input:checked+span{border-color:#5d6478;background:#5d6478;color:#fff}
.mh-acts{display:flex;justify-content:space-between;align-items:center}
.mh-save{height:32px;padding:0 16px;border:0;border-radius:4px;background:#a4161a;color:#fff;font-weight:800;cursor:pointer}
.mh-del{border:0;background:none;color:#5d6478;font:600 .82rem "Source Sans 3",sans-serif;cursor:pointer}
.mh-pop small{display:block;margin-top:8px;color:#8a8f9c}
.mh-bell-form{margin:0}
.mh-bell{display:inline-grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#f4f5f8;cursor:pointer}
.mh-bell:hover{background:#eceef3}
.mh-bell svg{width:20px;height:20px;fill:#8a8f9c}
.mh-bell.on svg{fill:#e0ac16}
.mh-bell:focus-visible,.mh-plate:focus-visible,.mh-edit summary:focus-visible{outline:2px solid #151926;outline-offset:2px}
.mh-empty{margin:18px 16px 6px;padding:18px;border-radius:10px;background:#f4f5f8;color:#3b4054}
.mh-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:16px 16px 0;padding:12px 0 18px;border-top:1px solid #e3e6ee;color:#5d6478;font-size:.82rem}
.mh-email{display:flex;align-items:center;gap:10px;margin:0}
.mh-email b{color:#151926}
.mh-email button{height:30px;padding:0 12px;border:1px solid #d6d9e1;border-radius:4px;background:#fff;color:#151926;font:700 .8rem "Source Sans 3",sans-serif;cursor:pointer}
.mh-email button:hover{background:#f4f5f8}
@media (max-width:760px){
  .mh-page{padding:14px 10px 30px}
  .mh-head{padding:20px 16px 16px}
  .mh-head h1{font-size:2rem}
  .mh-tallies{width:100%}.mh-tally{flex:1;min-width:0}
  .mh-cols{display:none}
  .mh-row{grid-template-columns:48px minmax(0,1fr) 36px;gap:8px 12px;align-items:start;margin:0 8px;padding:12px 8px}
  .mh-row>.mh-c{grid-column:2}
  .mh-row>.mh-bell-form{grid-row:1;grid-column:3}
  .mh-silk{width:48px;height:48px}.mh-silk img{width:32px;height:35px}
  .mh-sect{margin:16px 8px 4px}
  .mh-foot{margin:14px 8px 0}
  .mh-pop{position:fixed;left:12px;right:12px;top:auto;bottom:12px;width:auto}
}

/* Phones (owner pick A, 14 Nov 2026): stable rows on white. Three small counts on top, the groups
   Entered to run / Not entered yet, one line per horse (wine date box or "last Nd", name, next race,
   last three runs, Back / Watch / Avoid), tap a line for the next race, last run, note and bell;
   evening emails as one line at the bottom. Wider screens keep the board as it is. */
.mh-m{display:none}
@media (max-width:700px){
  .my-horses-view{background:#f3f4f6}
  .mh-page{padding:12px 12px 28px}
  .mh-board{border-radius:0;background:transparent;box-shadow:none;padding:0}
  .mh-head{display:block;padding:0;border:0;border-radius:0;background:none;color:#14171c}
  .mh-crest{gap:0}
  .mh-medal,.mh-eb{display:none}
  .mh-head h1{color:#14171c;font-size:1.9rem}
  .mh-head p{margin:2px 0 10px;color:#6b7280;font-size:.82rem}
  .mh-tallies{display:flex;gap:8px;width:100%}
  .mh-tally{flex:1;min-width:0;padding:7px 9px;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1px #e5e7eb;text-align:left}
  .mh-tally b{background:none;color:#14171c;-webkit-text-fill-color:currentColor;font:800 1.15rem/1.1 "Source Sans 3",system-ui,sans-serif}
  .mh-tally span{color:#6b7280;font-size:.72rem}
  .mh-flash{margin:10px 0 0}
  .mh-sect{margin:14px 2px 5px;color:#6b7280;font:800 .7rem/1.2 "Source Sans 3",system-ui,sans-serif;letter-spacing:.1em}
  .mh-sect::after{display:none}
  .mh-sect b{margin-left:auto;min-width:0;height:auto;padding:0;background:none;color:#6b7280;font-size:.75rem}
  .mh-row,.mh-row.run{display:block;margin:0;padding:0;border:1px solid #e5e7eb;border-radius:0;background:#fff}
  .mh-row+.mh-row{margin-top:-1px}
  .mh-sect+.mh-row{border-radius:14px 14px 0 0}
  .mh-row:has(+.mh-sect),.mh-row:has(+.mh-foot),.mh-row:last-of-type{border-radius:0 0 14px 14px}
  .mh-sect+.mh-row:has(+.mh-sect),.mh-sect+.mh-row:has(+.mh-foot){border-radius:14px}
  .mh-row.run::before{display:none}
  .mh-row:hover{background:#fff}
  .mh-row>.mh-silk,.mh-row>.mh-c,.mh-row>.mh-bell-form{display:none}
  .mh-m{display:block}
  .mh-m summary{display:flex;align-items:center;gap:10px;padding:10px 12px;list-style:none;cursor:pointer}
  .mh-m summary::-webkit-details-marker{display:none}
  .mh-m summary::marker{content:""}
  .mh-m summary:focus-visible{outline:2px solid #14171c;outline-offset:-2px;border-radius:12px}
  .mh-mdate{flex:none;width:44px;border-radius:8px;overflow:hidden;text-align:center;background:#a4161a;color:#fff}
  .mh-mdate i{display:block;padding:2px 0 0;font:800 .62rem/1.2 "Source Sans 3",system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;font-style:normal;color:#fbd9db}
  .mh-mdate b{display:block;padding:0 0 3px;font:800 1.15rem/1.1 "Source Sans 3",system-ui,sans-serif}
  .mh-mdate.no{background:#f3f4f6;color:#374151}.mh-mdate.no i{color:#6b7280}
  .mh-mn{flex:1;min-width:0}
  .mh-mn b{display:block;color:#14171c;font:800 .95rem/1.25 "Source Sans 3",system-ui,sans-serif;overflow-wrap:anywhere}
  .mh-mn small{display:block;color:#6b7280;font-size:.76rem;line-height:1.3}
  .mh-mr{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
  .mh-m .mh-figs{margin:0}
  .mh-m .mh-fig{width:18px;height:18px;border-radius:4px;font:800 .7rem "Source Sans 3",system-ui,sans-serif}
  .mh-m .mh-fig.w{background:#14171c;color:#fff}.mh-m .mh-fig.p{background:#e5e7eb;color:#14171c}
  .mh-m .mh-verdict{margin:0}
  .mh-mlink{display:inline-block;margin:0 0 6px 66px;color:#a4161a;font-weight:700;font-size:.85rem;text-decoration:none}
  .mh-row:has(>.mh-m[open])>.mh-c:not(.mh-name){display:block;padding:0 12px 8px 66px;font-size:.88rem}
  .mh-row:has(>.mh-m[open])>.mh-bell-form{display:flex;justify-content:flex-end;padding:0 12px 10px}
  .mh-row:has(>.mh-m[open]) .mh-date{display:none}
  .mh-row:has(>.mh-m[open]) .mh-t{font:700 .9rem "Source Sans 3",system-ui,sans-serif;letter-spacing:0}
  .mh-row:has(>.mh-m[open]) .mh-time{color:#14171c;font-size:.9rem}
  .mh-row .mh-res.w{background:#14171c;color:#fff}
  .mh-row .mh-addnote{color:#a4161a;border-bottom-color:rgba(164,22,26,.4)}
  .mh-row .mh-note.text::before{color:#a4161a}
  .mh-bell.on svg{fill:#a4161a}
  .mh-foot{display:block;margin:12px 0 0;padding:0;border:0}
  .mh-foot>span{display:block;margin:8px 2px 0}
  .mh-email{order:-1;justify-content:space-between;padding:10px 12px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;font-size:.9rem}
  .mh-foot{display:flex;flex-direction:column;align-items:stretch}
  .mh-email button{height:34px;border-radius:999px}
  .mh-empty{margin:12px 0 0}
  .mh-pop{bottom:calc(var(--itsh-tabs-h,0px) + 12px);z-index:60}
}
@media (max-width:700px){
  .mh-row:has(>.mh-m[open])>.mh-c:not(.mh-last):has(>.mh-rest){display:none}
  .mh-row:has(>.mh-m[open])>.mh-c:has(>.mh-eng)::before,.mh-row:has(>.mh-m[open])>.mh-last::before{display:block;margin-bottom:2px;color:#6b7280;font:800 .66rem/1.2 "Source Sans 3",system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase}
  .mh-row:has(>.mh-m[open])>.mh-c:has(>.mh-eng)::before{content:"Next race"}
  .mh-row:has(>.mh-m[open])>.mh-last::before{content:"Last run"}
}
