/* Linda Rice Racing — member accounts and the owner portal (loaded only on those pages; builds on site.css) */
:root {
  --act-gallop: #1a73c7;
  --act-breeze: #f2b93b;
  --act-jog: #177a7a;
  --act-walk: #4d7a31;
  --act-rest: #d9dde3;
  --act-race: #c8372a;
}
.muted { color: var(--muted); }
.ok-text { color: #1d6b34; font-weight: 600; }
.warn-text { color: #8a5a00; font-weight: 600; }
.page-member main { background: var(--grain), var(--ivory); }
.page-member input[type="password"], .page-member select {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .85rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.page-member input[type="password"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.field-help { margin: 0; font-size: .82rem; color: var(--muted); }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }

/* ---------- Sign in / sign up ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 220px); display: grid; place-items: start center; padding: clamp(2rem, 6vw, 4.5rem) var(--gutter); background:
  radial-gradient(ellipse at 15% -10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 55%), var(--brushed), var(--walnut); }
.auth-card { width: min(440px, 100%); background: var(--white); border-radius: 10px; border-top: 4px solid var(--gold); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); }
.auth-wide .auth-card { width: min(640px, 100%); }
.auth-mark { display: block; width: 64px; height: 64px; margin: 0 auto .8rem; }
.auth-card > .eyebrow { display: flex; justify-content: center; margin-bottom: .3rem; }
.auth-title { text-align: center; font-size: clamp(1.9rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.auth-note { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.auth-card > .auth-note:first-of-type { text-align: center; }
.auth-form { display: grid; gap: 1rem; }
.auth-form .btn { margin-top: .25rem; min-height: 50px; }
.auth-alt { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line-strong); display: grid; gap: .6rem; font-size: .92rem; }
.auth-alt p { margin: 0; }
.auth-alt-title { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.auth-choice { display: flex; flex-direction: column; gap: .1rem; padding: .75rem .95rem; border: 1px solid var(--line-strong); border-left: 4px solid var(--gold); border-radius: var(--radius-lg); text-decoration: none; color: var(--navy); transition: border-color .2s, background .2s; }
.auth-choice b { font-weight: 600; }
.auth-choice span { font-size: .82rem; color: var(--blue); }
.auth-choice:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 6%, #fff); }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.auth-switch a { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); text-decoration: none; color: var(--navy); }
.auth-switch a small { color: var(--muted); font-size: .78rem; }
.auth-switch a.is-on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 9%, #fff); box-shadow: inset 0 -3px 0 var(--gold); }
.auth-owner { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.1rem 1.1rem; margin: 0; display: grid; gap: 1rem; background: var(--paper); min-width: 0; }
.auth-owner legend { padding: 0 .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .18rem; accent-color: var(--blue); flex: none; }
@media (max-width: 520px) { .auth-switch { grid-template-columns: 1fr; } }

/* ---------- Account bar ---------- */
.preview-bar { background: #fff3d6; color: #5c3d00; font-size: .88rem; border-bottom: 1px solid #f0d48a; }
.preview-bar .container { display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: .55rem; }
.preview-bar a { color: #5c3d00; font-weight: 600; }
.account-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.account-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; min-height: 48px; }
.account-bar nav { display: flex; gap: 1.5rem; }
.account-bar nav a { position: relative; padding: .85rem 0; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.account-bar nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
.account-bar nav a:hover { color: var(--blue); }
.account-who { display: flex; align-items: center; gap: .9rem; font-size: .86rem; color: var(--muted); }
.account-who form { margin: 0; }
.account-who button, .link-quiet { background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- Activity chips and day squares ---------- */
.act { display: inline-flex; align-items: center; gap: .6rem; }
.act-dot, .day { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 5px; font-size: .78rem; font-weight: 700; line-height: 1; color: #fff; background: var(--act-gallop); flex: none; }
.act-text { display: flex; flex-direction: column; line-height: 1.2; }
.act-text b { font-weight: 600; color: var(--navy); }
.act-text small { font-size: .82rem; color: var(--muted); }
.act-big .act-dot { width: 2.5rem; height: 2.5rem; font-size: 1.05rem; border-radius: 7px; }
.act-big .act-text b { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; line-height: 1.05; }
.act-big .act-text small { font-size: .9rem; color: var(--ink); }
.act-gallop .act-dot, .day-gallop { background: var(--act-gallop); }
.act-breeze .act-dot, .day-breeze { background: var(--act-breeze); color: #2b2109; }
.act-jog .act-dot, .day-jog { background: var(--act-jog); }
.act-walk .act-dot, .day-walk { background: var(--act-walk); }
.act-rest .act-dot, .day-rest { background: var(--act-rest); color: #3b4048; }
.act-race .act-dot, .day-race { background: var(--act-race); }
.day-none { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.day-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; }
.day-strip .day { width: auto; height: auto; aspect-ratio: 1; position: relative; font-size: .7rem; border-radius: 4px; }
.day-strip .day-num { display: none; }
.day-strip .day.is-today { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--navy); }
.day-strip .day-none.is-today { box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 0 2px var(--white), 0 0 0 4px var(--navy); }
.act-legend, .act-counts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--muted); }
.act-legend li, .act-counts li { display: inline-flex; align-items: center; gap: .4rem; }
.act-legend .day, .act-counts .day { width: .85rem; height: .85rem; border-radius: 3px; }

/* ---------- Owner dashboard ---------- */
.stable-head { background: radial-gradient(ellipse at 90% -30%, color-mix(in srgb, var(--blue) 45%, transparent), transparent 60%), var(--brushed), var(--walnut); color: #fff; padding-block: clamp(1.6rem, 4vw, 2.6rem); border-bottom: 3px solid var(--gold); }
.stable-head-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1.5rem 3rem; align-items: center; }
.stable-head .page-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); margin: 0; }
.stable-head .page-title em { color: color-mix(in srgb, var(--gold) 70%, #fff); }
.stable-note { margin: .8rem 0 0; padding-left: .9rem; border-left: 2px solid var(--gold); color: rgba(255, 255, 255, .86); font-size: .95rem; max-width: 46ch; }
.stable-tiles { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.stable-tiles div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg); padding: .8rem .95rem; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.stable-tiles dt { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.stable-tiles dd { margin: 0; font-family: var(--font-heading); font-size: 1.65rem; font-weight: 600; line-height: 1.1; color: #fff; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.stable-tiles span { font-size: .78rem; color: rgba(255, 255, 255, .72); overflow-wrap: anywhere; }
.stable-head-slim .stable-head-inner { grid-template-columns: 1fr; }
@media (max-width: 1000px) { .stable-head-inner { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .stable-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stable-body { padding-top: clamp(1.25rem, 3vw, 2rem); }
.portal-alert { background: #fff3d6; border-left: 4px solid #d99a12; color: #5c3d00; padding: .7rem 1rem; border-radius: var(--radius); font-size: .9rem; margin: 0 0 1rem; }
.stable-tools { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stable-filter input { width: min(260px, 100%); padding: .55rem .9rem; border-radius: 99px; }
.horse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.25rem; align-items: start; }
.horse-card { background: var(--white); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.horse-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.horse-card.runs-today { border-color: var(--act-race); box-shadow: 0 0 0 1px var(--act-race), var(--shadow-sm); }
.horse-photo { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--walnut); overflow: hidden; }
.horse-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.horse-photo-empty { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(ellipse at 80% 0%, color-mix(in srgb, var(--blue) 45%, transparent), transparent 60%), var(--brushed), var(--walnut); }
.horse-photo-empty img { width: 72px; height: 72px; object-fit: contain; opacity: .9; }
.horse-where { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem; border-radius: 99px; background: var(--navy); color: #fff; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.horse-where::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #5fd08a; }
.horse-where.where-training-center::before { background: var(--act-breeze); }
.horse-where.where-farm::before { background: #b9c0c9; }
.horse-photo .horse-where { position: absolute; left: .7rem; bottom: .7rem; background: rgba(20, 22, 26, .82); backdrop-filter: blur(4px); }
.horse-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .7rem; }
.horse-name { font-size: 1.75rem; margin: 0; line-height: 1.05; }
.horse-name a { color: var(--navy); text-decoration: none; }
.horse-name a:hover { color: var(--blue); }
.horse-line { margin: -.45rem 0 0; font-size: .86rem; color: var(--muted); }
.horse-today { display: flex; flex-direction: column; gap: .45rem; padding: .8rem .9rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-lg); }
.horse-today-label { font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.horse-today-text { margin: 0; font-size: .9rem; color: var(--muted); }
.horse-facts { margin: 0; display: grid; gap: .5rem; }
.horse-facts div { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .6rem; align-items: baseline; font-size: .88rem; }
.horse-facts dt { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.horse-facts dd { margin: 0; color: var(--ink); }
.horse-facts .pp-btn { margin: .35rem 0 0; display: inline-flex; }
.horse-facts .fact-next dd b { color: var(--act-race); }
.horse-body > .text-link { align-self: flex-start; margin-top: .1rem; }
.portal-foot-note { margin: 1.5rem 0 0; font-size: .82rem; color: var(--muted); max-width: 90ch; }
[hidden] { display: none !important; }

/* ---------- Horse page ---------- */
.horse-hero { background: radial-gradient(ellipse at 90% -30%, color-mix(in srgb, var(--blue) 45%, transparent), transparent 60%), var(--brushed), var(--walnut); color: #fff; border-bottom: 3px solid var(--gold); }
.horse-hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.horse-hero .page-title { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 .3rem; }
.crumb { margin: 0 0 .6rem; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.crumb a { color: color-mix(in srgb, var(--gold) 70%, #fff); text-decoration: none; }
.crumb a:hover { color: #fff; }
.horse-hero-line { margin: 0 0 .9rem; color: rgba(255, 255, 255, .84); font-family: var(--font-heading); font-style: italic; font-size: 1.2rem; }
.horse-tags { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.horse-tags li { padding: .28rem .7rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .28); font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.horse-tags .horse-where { border-color: transparent; background: rgba(255, 255, 255, .14); }
.horse-tags .tag-share { background: var(--gold); border-color: var(--gold); color: #fff; }
.horse-hero-today { display: inline-flex; flex-direction: column; gap: .45rem; padding: .85rem 1.1rem; background: var(--white); border-radius: var(--radius-lg); border-left: 4px solid var(--gold); min-width: min(100%, 300px); }
.horse-hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 6px solid #fff; box-shadow: var(--shadow-md); }
@media (max-width: 860px) { .horse-hero-inner { grid-template-columns: 1fr; } .horse-hero-photo { max-width: 460px; } }
.horse-cols { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 960px) { .horse-cols { grid-template-columns: 1fr; } }
.horse-main, .horse-side { display: grid; gap: 1.25rem; min-width: 0; }
.panel { background: var(--white); border: 1px solid var(--line-strong); border-radius: 8px; padding: 1.15rem 1.25rem 1.25rem; box-shadow: var(--shadow-sm); min-width: 0; }
.panel + .panel, .settings-grid form + form, .settings-grid .panel + form, .settings-grid form + .panel { margin-top: 1.25rem; }
.horse-main > .panel + .panel, .horse-side > .panel + .panel { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.panel-title { font-size: 1.5rem; margin: 0 0 .8rem; }
.panel-head .panel-title { margin: 0; }
.panel-title small { font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: .5rem; }
.panel-note { margin: .8rem 0 0; font-size: .78rem; color: var(--muted); }
.panel-next { border-top: 3px solid var(--act-race); }
.panel-quiet { background: var(--paper); }
.panel .field + .field, .panel .field + .btn, .panel .field + button { margin-top: .9rem; }
.panel form .field:first-of-type { margin-top: 0; }
.next-race { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: center; }
.next-race-when { display: flex; flex-direction: column; padding: .75rem 1rem; background: var(--brushed), var(--walnut); color: #fff; border-radius: var(--radius-lg); text-align: center; min-width: 8.5rem; }
.next-race-when b { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.next-race-when span { font-size: .78rem; color: rgba(255, 255, 255, .78); }
.next-race-what p { margin: 0 0 .3rem; }
.next-race-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.3rem; margin-top: .6rem !important; }
@media (max-width: 520px) { .next-race { grid-template-columns: 1fr; } }
.cal { display: grid; }
.cal-row { display: grid; grid-template-columns: 6.2rem 1.7rem minmax(0, 1fr); gap: .8rem; align-items: center; padding: .5rem .5rem; border-bottom: 1px solid var(--line); }
.cal-row:last-child { border-bottom: 0; }
.cal-row.is-today { background: color-mix(in srgb, var(--gold) 7%, #fff); border-radius: var(--radius); }
.cal-date { display: flex; gap: .45rem; align-items: baseline; font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-date b { color: var(--navy); font-weight: 600; min-width: 2.3rem; }
.cal-what { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; }
.cal-what b { font-weight: 600; color: var(--navy); }
.cal-what small { font-size: .86rem; color: var(--muted); }
.cal-breeze { background: color-mix(in srgb, var(--act-breeze) 13%, #fff); }
.cal-race { background: color-mix(in srgb, var(--act-race) 8%, #fff); }
.cal-none .cal-what small { color: color-mix(in srgb, var(--muted) 70%, #fff); }
.record-row { margin: 0 0 .8rem; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.record-row div { padding: .65rem .3rem; border-right: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: .15rem; }
.record-row div:last-child { border-right: 0; }
.record-row div:nth-child(2) { background: color-mix(in srgb, var(--act-breeze) 16%, #fff); }
.record-row dt { font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.record-row dd { margin: 0; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; line-height: 1; color: var(--navy); font-variant-numeric: lining-nums; }
.record-earn { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; color: var(--muted); }
.record-earn b { font-family: var(--font-heading); font-size: 1.5rem; color: var(--navy); font-variant-numeric: lining-nums; }
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.work-list li:last-child { border-bottom: 0; }
.work-date { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.work-main { display: flex; flex-direction: column; line-height: 1.25; }
.work-main b { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.work-main small { font-size: .78rem; color: var(--muted); }
.work-rank { font-size: .74rem; font-weight: 600; padding: .15rem .5rem; border-radius: 99px; background: color-mix(in srgb, var(--navy) 8%, #fff); color: var(--navy); font-variant-numeric: tabular-nums; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.photo-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* ---------- Member home ---------- */
.status-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line-strong); border-left: 4px solid var(--gold); border-radius: 8px; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.status-card h2 { font-size: 1.5rem; margin: 0 0 .3rem; }
.status-card p { margin: 0 0 .6rem; color: var(--muted); }
.status-card p:last-child { margin-bottom: 0; }
.status-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: color-mix(in srgb, var(--gold) 14%, #fff); color: var(--blue); font-size: 1.2rem; flex: none; }
.status-pending { border-left-color: #d99a12; }
.status-pending .status-icon { background: #fff3d6; }
.status-hint { font-size: .86rem; }
.follow-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.follow-form input { width: min(260px, 100%); padding: .6rem .9rem; }
.follow-form .btn { padding: .7rem 1.1rem; }
.watch-list, .starter-list { list-style: none; margin: 0; padding: 0; }
.watch-list li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: .5rem 1.25rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.watch-list li:last-child, .starter-list li:last-child { border-bottom: 0; }
.watch-name { display: flex; flex-direction: column; gap: .2rem; }
.watch-name b { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.watch-next { font-size: .86rem; }
.watch-next .race-pill { display: inline-block; margin: 0 .3rem 0 0; }
.watch-facts { display: flex; flex-direction: column; gap: .2rem; font-size: .84rem; color: var(--muted); }
.watch-actions, .starter-actions { display: flex; align-items: center; gap: .8rem; justify-content: flex-end; flex-wrap: wrap; }
.watch-actions form, .starter-actions form { margin: 0; }
.starter-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.starter-when { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.starter-when b { color: var(--navy); font-size: .9rem; }
.starter-what { display: flex; flex-direction: column; line-height: 1.25; }
.starter-what b { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.starter-what small { font-size: .82rem; color: var(--muted); }
.btn-follow { background: none; border: 1px solid var(--line-strong); border-radius: 99px; padding: .38rem .8rem; font: inherit; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); cursor: pointer; }
.btn-follow:hover { border-color: var(--blue); color: var(--blue); }
.following { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #1d6b34; }
@media (max-width: 720px) { .watch-list li { grid-template-columns: 1fr; } .watch-actions { justify-content: flex-start; } .starter-list li { grid-template-columns: 5.2rem minmax(0, 1fr); } .starter-actions { grid-column: 2; justify-content: flex-start; } }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-foot { margin: 1rem 0 0; font-size: .86rem; }

/* ---------- Owner Portal landing page ---------- */
.portal-hero { background: radial-gradient(ellipse at 85% -20%, color-mix(in srgb, var(--blue) 50%, transparent), transparent 60%), var(--brushed), var(--walnut); color: #fff; border-bottom: 3px solid var(--gold); overflow: hidden; }
.portal-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.portal-hero .page-title { color: #fff; font-size: clamp(2.5rem, 5.5vw, 4rem); }
.portal-hero .page-title em { color: color-mix(in srgb, var(--gold) 70%, #fff); }
.portal-hero .page-intro { color: rgba(255, 255, 255, .86); font-size: 1.08rem; max-width: 52ch; }
.portal-demo { display: grid; place-items: center; }
.portal-demo-card { width: min(360px, 100%); background: var(--white); color: var(--ink); border-radius: 10px; padding: 1.2rem 1.3rem 1.3rem; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); border-top: 4px solid var(--gold); display: grid; gap: .7rem; transform: rotate(1.5deg); }
.portal-demo-top { margin: 0; display: flex; justify-content: space-between; font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.portal-demo-name { margin: 0; font-family: var(--font-heading); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--navy); }
.portal-demo-line { margin: -.4rem 0 0; font-size: .84rem; color: var(--muted); }
.portal-demo-foot { margin: 0; padding-top: .7rem; border-top: 1px dashed var(--line-strong); font-size: .84rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.portal-demo-foot span { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .portal-hero-inner { grid-template-columns: 1fr; } .portal-demo-card { transform: none; } }
.portal-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; }
.portal-feature { background: var(--white); border: 1px solid var(--line-strong); border-top: 3px solid var(--gold); border-radius: 8px; padding: 1.3rem 1.3rem 1.2rem; box-shadow: var(--shadow-sm); }
.portal-feature-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 8px; background: var(--navy); margin-bottom: .9rem; }
.portal-feature-icon svg { width: 1.4rem; height: 1.4rem; fill: color-mix(in srgb, var(--gold) 65%, #fff); }
.portal-feature h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.portal-feature p { margin: 0; color: var(--muted); font-size: .93rem; }
.portal-steps-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: start; }
@media (max-width: 860px) { .portal-steps-wrap { grid-template-columns: 1fr; } }
.portal-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; }
.portal-steps li { counter-increment: step; position: relative; padding: 1rem 1.1rem 1rem 4rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.portal-steps li::before { content: counter(step); position: absolute; left: 1rem; top: .85rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gold); color: #fff; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; }
.portal-steps b { color: var(--navy); }
.portal-side { background: var(--brushed), var(--walnut); color: #fff; border-radius: 8px; padding: 1.5rem; border-top: 3px solid var(--gold); display: grid; gap: .9rem; }
.portal-side h3 { color: #fff; font-size: 1.6rem; margin: 0; }
.portal-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; font-size: .93rem; color: rgba(255, 255, 255, .88); }
.portal-side li { padding-left: 1.5rem; position: relative; }
.portal-side li::before { content: "✓"; position: absolute; left: 0; color: color-mix(in srgb, var(--gold) 65%, #fff); font-weight: 700; }
.portal-side .btn-primary { background: #fff; color: var(--walnut); }
.portal-side .btn-primary:hover { background: var(--gold); color: #fff; }
.portal-side-alt { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .78); text-align: center; }
.portal-side-alt a { color: #fff; }
.portal-fan { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 3rem; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line-strong); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2rem); }
.portal-fan .section-title { margin-bottom: .3rem; }
@media (prefers-reduced-motion: reduce) { .horse-card:hover { transform: none; } }
@media (max-width: 1500px) { .horse-main .results-table .hide-md { display: none; } }
.horse-main .results-table th, .horse-main .results-table td { white-space: normal; }
.horse-photo:has(.horse-photo-empty) { aspect-ratio: 16 / 5; }
.horse-photo:has(.horse-photo-empty) .horse-photo-empty img { width: 54px; height: 54px; }
