:root {
  --ink: #1f2b27;
  --muted: #66736d;
  --forest: #20382f;
  --forest-2: #2d4b40;
  --sage: #dfe8e2;
  --sage-2: #edf2ee;
  --paper: #f7f5ef;
  --white: #fffdfa;
  --line: #d9ddd8;
  --copper: #a9693f;
  --copper-soft: #f1e2d6;
  --gold: #a88d52;
  --gold-soft: #eee8d8;
  --red: #a04c43;
  --red-soft: #f4e1de;
  --shadow: 0 18px 45px rgba(25, 45, 37, .08);
  --radius: 18px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.site-shell { min-height: 100vh; }

.topbar { min-height: 78px; padding: 10px clamp(20px, 5vw, 70px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(32,56,47,.1); background: rgba(247,245,239,.93); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-emblem { display:block; width:46px; height:46px; object-fit:contain; flex:0 0 auto; }
.brand-copy { display:grid; gap:1px; line-height:1.05; }
.brand-copy strong { font-family:var(--serif); font-size:17px; letter-spacing:.01em; color:var(--forest); white-space:nowrap; }
.brand-copy small { color:var(--muted); text-transform:uppercase; letter-spacing:.16em; font-size:9px; font-weight:750; white-space:nowrap; }
.top-actions { display: flex; gap: 8px; align-items: center; }

.button, .icon-button, .round-add { border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; transition: .18s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 720; }
.button { min-height: 42px; padding: 0 15px; font-size: 13px; text-decoration: none; }
.button:hover, .icon-button:hover, .round-add:hover { transform: translateY(-1px); }
.button-primary { background: var(--forest); color: white; box-shadow: 0 8px 20px rgba(32,56,47,.13); }
.button-primary:hover { background: var(--forest-2); }
.button-secondary { background: var(--white); border-color: var(--line); }
.button-secondary:hover, .button-ghost:hover { border-color: #bdc6c0; background: #fff; }
.button-ghost { border-color: rgba(32,56,47,.12); }
.button-light { background: white; color: var(--forest); }
.button-small { min-height: 34px; font-size: 12px; padding: 0 12px; }
.icon-button { width: 42px; height: 42px; border-color: rgba(32,56,47,.12); }
.icon-button svg, .button svg, .round-add svg { width: 16px; height: 16px; }

main { width: min(1440px, 100%); margin: 0 auto; }
.hero { position: relative; min-height: 320px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; padding: 64px clamp(22px, 5vw, 72px) 52px; overflow: hidden; }
.hero:before { content: ''; position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(223,232,226,.7), transparent 70%); right: -190px; top: -270px; pointer-events: none; }
.hero-copy { max-width: 760px; position: relative; z-index: 1; }
.eyebrow { color: var(--copper); text-transform: uppercase; letter-spacing: .19em; font-size: 10px; line-height: 1.4; font-weight: 820; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(44px, 6vw, 74px); line-height: .98; margin-top: 11px; color: var(--forest); }
.hero-copy > p { color: #53625c; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; max-width: 690px; margin: 20px 0 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 11px 22px; color: var(--muted); font-size: 12px; font-weight: 650; }
.trust-row span { display: inline-flex; gap: 6px; align-items: center; }
.trust-row svg { width: 14px; height: 14px; color: var(--forest); }
.hero-art { position: relative; z-index: 1; display: grid; place-items: center; min-height: 280px; }
.hero-brand-panel { width:min(100%, 390px); min-height:280px; display:grid; place-items:center; align-content:center; position:relative; overflow:hidden; padding:30px 42px 24px; border:1px solid rgba(32,56,47,.11); border-radius:30px; background:rgba(255,253,250,.78); box-shadow:0 22px 55px rgba(32,56,47,.08); backdrop-filter:blur(8px); }
.hero-brand-panel:before, .hero-brand-panel:after { content:''; position:absolute; border:1px solid rgba(32,56,47,.08); border-radius:50%; pointer-events:none; }
.hero-brand-panel:before { width:260px; height:260px; right:-150px; top:-154px; }
.hero-brand-panel:after { width:165px; height:165px; left:-105px; bottom:-105px; }
.hero-brand-glow { position:absolute; width:310px; height:310px; border-radius:50%; background:radial-gradient(circle, rgba(223,232,226,.86) 0%, rgba(223,232,226,.28) 46%, rgba(223,232,226,0) 72%); top:-64px; right:-52px; }
.hero-official-logo { position:relative; z-index:1; width:min(100%, 255px); height:auto; display:block; opacity:.92; }
.hero-brand-caption { position:relative; z-index:1; margin-top:10px; padding-top:13px; width:100%; border-top:1px solid rgba(32,56,47,.12); color:var(--forest); text-align:center; font-family:var(--serif); font-size:15px; letter-spacing:.01em; }


.onboarding { padding: 0 clamp(22px, 5vw, 72px) 72px; }
.onboarding-card { background: var(--forest); color: #fff; border-radius: 24px; padding: clamp(30px, 5vw, 56px); text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.onboarding-card:after { content:''; position:absolute; width:220px; height:220px; border:1px solid rgba(255,255,255,.12); border-radius:50%; right:-70px; bottom:-100px; }
.onboarding-card .eyebrow { color: #d6bd8a; }
.onboarding-art { width: 62px; height: 62px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.09); }
.onboarding-art svg { width: 28px; height: 28px; }
.onboarding h2 { font-size: clamp(34px, 4vw, 48px); margin: 10px 0 12px; }
.onboarding-card > p { max-width: 660px; margin: 0 auto; color: rgba(255,255,255,.76); line-height: 1.65; }
.onboarding-actions { display: flex; justify-content: center; gap: 10px; margin: 25px 0 18px; }
.onboarding .button-primary { background: white; color: var(--forest); }
.onboarding .button-secondary { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #fff; }
.onboarding .fine-print { font-size: 11px; max-width: 760px; }
.starter-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 12px; }
.starter-grid > div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; grid-template-columns: 16px 1fr; column-gap: 10px; align-items: start; }
.starter-grid strong { font-family: var(--serif); font-size: 16px; }
.starter-grid small { grid-column: 2; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.category-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-top: 5px; background: var(--forest); }

.tracker { padding: 0 clamp(22px, 5vw, 72px) 76px; }
.demo-banner { background: var(--copper-soft); border: 1px solid #dfc2ad; border-radius: 12px; padding: 11px 13px 11px 16px; display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 14px; font-size: 13px; }
.horsebar { background: var(--forest); border-radius: 17px; padding: 12px 13px 12px 18px; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); }
.horse-switcher-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.horse-switcher-label { color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .17em; font-size: 9px; font-weight: 800; margin-right: 6px; }
.horse-switcher { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.horse-switcher::-webkit-scrollbar { display: none; }
.horse-tab { border: 0; color: rgba(255,255,255,.68); background: transparent; border-radius: 9px; padding: 10px 13px; cursor: pointer; font-weight: 720; white-space: nowrap; }
.horse-tab.active { background: #fff; color: var(--forest); }
.round-add { width: 36px; height: 36px; flex: 0 0 auto; color: #fff; border-color: rgba(255,255,255,.18); }
.horsebar-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.horsebar .button-secondary { background: rgba(255,255,255,.07); color: white; border-color: rgba(255,255,255,.15); }
.horsebar .button-primary { background: white; color: var(--forest); }

.dashboard-heading { display:flex; justify-content:space-between; align-items:end; gap:24px; margin:36px 0 18px; }
.dashboard-heading h2 { font-size: clamp(30px, 3vw, 42px); margin-top: 5px; color: var(--forest); }
.privacy-note { color: var(--muted); font-size: 11px; display: flex; gap: 6px; align-items: center; }
.privacy-note svg { width: 13px; height: 13px; }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 12px; }
.metric { background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: 19px 20px; position: relative; overflow: hidden; min-height: 116px; }
.metric:after { content:''; position:absolute; width:76px; height:76px; border-radius:50%; right:-31px; top:-30px; background: var(--sage-2); }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.metric-value { font-family: var(--serif); font-size: 35px; color: var(--forest); margin: 9px 0 4px; line-height: 1; }
.metric-note { color: var(--muted); font-size: 11px; }
.metric.alert .metric-value { color: var(--red); }
.metric.alert:after { background: var(--red-soft); }

.main-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 12px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(30,47,40,.025); }
.schedule-panel { padding: 24px; min-height: 620px; }
.side-stack { display: grid; align-content: start; gap: 12px; }
.month-panel, .quick-panel, .history-panel { padding: 23px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-head.compact { align-items: start; }
.panel h3 { color: var(--forest); font-size: 25px; margin-top: 4px; }
.view-toggle { display: flex; background: var(--sage-2); border-radius: 9px; padding: 3px; }
.view-toggle button { border: 0; background: transparent; border-radius: 7px; padding: 7px 9px; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; display: flex; gap: 5px; align-items: center; }
.view-toggle button svg { width: 13px; height: 13px; }
.view-toggle button.active { background: white; color: var(--forest); box-shadow: 0 1px 4px rgba(32,56,47,.08); }
.filterbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.searchbox { position: relative; flex: 1; max-width: 360px; }
.searchbox svg { position:absolute; width:15px; height:15px; left:12px; top:50%; transform:translateY(-50%); color:#7e8a84; pointer-events:none; }
.searchbox input { width:100%; min-height:38px; border:1px solid var(--line); border-radius:9px; padding:0 12px 0 35px; background:#fbfbf8; outline:none; font-size:12px; }
.searchbox input:focus { border-color:#91a69a; box-shadow:0 0 0 3px rgba(65,98,83,.08); }
.filterchips { display:flex; gap:5px; overflow-x:auto; }
.filterchips button { border:1px solid var(--line); background:white; border-radius:20px; padding:7px 10px; font-size:10px; font-weight:750; color:var(--muted); cursor:pointer; white-space:nowrap; }
.filterchips button.active { background:var(--forest); color:#fff; border-color:var(--forest); }

.schedule-list { display:grid; gap:0; }
.care-row { display:grid; grid-template-columns: 8px minmax(0,1fr) auto auto; gap:16px; align-items:center; padding:17px 4px; border-bottom:1px solid #e9ece8; }
.care-row:last-child { border-bottom:0; }
.care-accent { width:8px; height:42px; border-radius:5px; background:var(--forest); }
.care-main { min-width:0; }
.care-title-line { display:flex; align-items:center; gap:8px; min-width:0; }
.care-title { font-weight:780; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.care-category { color:var(--muted); font-size:10px; margin-top:5px; display:flex; gap:7px; flex-wrap:wrap; }
.care-category b { color:#87938d; font-weight:500; }
.status-pill { padding:4px 7px; border-radius:12px; font-size:9px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; white-space:nowrap; }
.status-overdue { background:var(--red-soft); color:var(--red); }
.status-soon { background:var(--gold-soft); color:#7f682e; }
.status-today { background:var(--copper-soft); color:var(--copper); }
.status-upcoming { background:var(--sage-2); color:#557166; }
.status-inactive { background:#eee; color:#777; }
.care-date { text-align:right; min-width:88px; }
.care-date strong { display:block; font-family:var(--serif); color:var(--forest); font-size:16px; font-weight:500; }
.care-date small { color:var(--muted); font-size:10px; }
.row-actions { display:flex; gap:5px; }
.row-actions button { width:34px; height:34px; border:1px solid var(--line); background:white; border-radius:9px; display:grid; place-items:center; cursor:pointer; color:#66736d; }
.row-actions button:hover { background:var(--sage-2); color:var(--forest); }
.row-actions button.complete { width:auto; padding:0 10px; background:var(--forest); color:white; border-color:var(--forest); font-size:10px; font-weight:800; }
.row-actions svg { width:14px; height:14px; }
.empty-list { text-align:center; padding:48px 20px; color:var(--muted); }
.empty-list .empty-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:50%; background:var(--sage-2); color:var(--forest); margin:0 auto 12px; }
.empty-list .empty-icon svg { width:22px; height:22px; }
.empty-list strong { display:block; color:var(--ink); margin-bottom:5px; }
.empty-list p { font-size:12px; margin:0 auto 14px; max-width:340px; line-height:1.5; }

.timeline-view { padding-top: 16px; }
.timeline-row { display:grid; grid-template-columns:150px minmax(0,1fr) 84px; gap:13px; align-items:center; margin:14px 0; }
.timeline-label { min-width:0; }
.timeline-label strong { display:block; font-size:12px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.timeline-label small { color:var(--muted); font-size:9px; }
.timeline-track { height:8px; border-radius:10px; background:#edf0ed; position:relative; overflow:hidden; }
.timeline-fill { position:absolute; left:0; top:0; bottom:0; min-width:4px; border-radius:10px; }
.timeline-marker { position:absolute; top:50%; width:10px; height:10px; border-radius:50%; background:white; border:2px solid var(--forest); transform:translate(-50%,-50%); }
.timeline-date { text-align:right; color:var(--muted); font-size:10px; }
.timeline-axis { display:grid; grid-template-columns:150px minmax(0,1fr) 84px; gap:13px; color:#9aa39e; font-size:9px; }
.timeline-axis > div:nth-child(2) { display:flex; justify-content:space-between; }

.care-ring { width:72px; height:72px; border-radius:50%; background:conic-gradient(var(--forest) 0deg, var(--sage-2) 0deg); display:grid; place-items:center; align-content:center; position:relative; }
.care-ring:after { content:''; position:absolute; inset:9px; background:var(--white); border-radius:50%; }
.care-ring span, .care-ring small { position:relative; z-index:1; }
.care-ring span { font:500 22px/1 var(--serif); color:var(--forest); }
.care-ring small { font-size:8px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; margin-top:2px; }
.care-load-bars { display:grid; gap:11px; border-top:1px solid var(--line); padding-top:16px; }
.load-row { display:grid; grid-template-columns:90px minmax(0,1fr) 20px; gap:9px; align-items:center; }
.load-row label { font-size:10px; color:var(--muted); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.load-track { height:6px; background:#edf0ed; border-radius:8px; overflow:hidden; }
.load-fill { height:100%; border-radius:8px; min-width:2px; }
.load-row b { font-size:10px; text-align:right; color:var(--forest); }
.upcoming-dates { margin-top:17px; border-top:1px solid var(--line); padding-top:10px; }
.upcoming-date { display:grid; grid-template-columns:48px minmax(0,1fr); gap:10px; padding:9px 0; }
.date-box { text-align:center; border-right:1px solid var(--line); padding-right:9px; }
.date-box b { display:block; font:500 20px/1 var(--serif); color:var(--forest); }
.date-box small { text-transform:uppercase; letter-spacing:.09em; font-size:8px; color:var(--muted); }
.upcoming-date strong { display:block; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.upcoming-date p { margin:4px 0 0; color:var(--muted); font-size:9px; }
.no-upcoming { color:var(--muted); font-size:11px; line-height:1.5; padding:10px 0 3px; }

.quick-panel h3 { margin-bottom:12px; }
.quick-actions { display:grid; }
.quick-actions > button, .data-actions > button { border:0; border-top:1px solid var(--line); background:transparent; padding:13px 1px; display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; text-align:left; gap:9px; cursor:pointer; }
.quick-actions > button:first-child { border-top:0; }
.quick-actions > button > svg, .data-actions > button > svg { width:18px; height:18px; color:var(--forest); }
.quick-actions strong, .data-actions strong { display:block; font-size:11px; }
.quick-actions small, .data-actions small { display:block; color:var(--muted); font-size:9px; margin-top:2px; line-height:1.35; }
.quick-actions i { font-style:normal; color:#909b95; }
.quick-actions button:hover strong, .data-actions button:hover strong { color:var(--copper); }

.history-panel { margin-top:12px; }
.history-tools select { border:1px solid var(--line); border-radius:9px; padding:8px 10px; background:white; color:var(--ink); font-size:11px; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:720px; }
th { text-align:left; color:#8a948f; font-size:9px; text-transform:uppercase; letter-spacing:.12em; padding:10px 10px; border-bottom:1px solid var(--line); }
td { padding:13px 10px; border-bottom:1px solid #ebeeeb; font-size:11px; vertical-align:top; }
td strong { font-size:12px; }
td small { color:var(--muted); display:block; margin-top:3px; line-height:1.4; }
.table-status { display:inline-flex; align-items:center; gap:5px; color:#527062; font-weight:700; }
.table-status svg { width:13px; height:13px; }
.history-empty { text-align:center; padding:38px; color:var(--muted); font-size:12px; }

.education-strip { margin-top:12px; background:var(--sage); border-radius:var(--radius); padding:30px clamp(24px,4vw,44px); display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.education-strip h3 { font-size:30px; color:var(--forest); margin-top:6px; max-width:520px; }
.education-strip p { margin:0; color:#53625c; line-height:1.7; font-size:13px; }

footer { border-top:1px solid rgba(32,56,47,.1); padding:28px clamp(22px, 5vw, 72px); display:flex; justify-content:space-between; gap:20px; color:var(--muted); font-size:11px; }
footer > div { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.footer-brand { flex-wrap:nowrap; }
.footer-brand > img { width:28px; height:28px; object-fit:contain; flex:0 0 auto; opacity:.82; }
.footer-brand > span { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
footer strong { font-family:var(--serif); color:var(--forest); font-size:14px; }
footer a { text-decoration:none; margin-left:12px; }
footer a:hover { color:var(--forest); }

.modal-backdrop { position:fixed; inset:0; z-index:90; background:rgba(17,29,24,.52); backdrop-filter:blur(4px); }
dialog.modal { width:min(640px,calc(100vw - 28px)); max-height:min(86vh,900px); overflow:auto; border:0; border-radius:20px; padding:0; box-shadow:0 28px 80px rgba(15,30,23,.28); z-index:100; background:var(--white); }
dialog.modal::backdrop { background:transparent; }
dialog.modal-wide { width:min(760px,calc(100vw - 28px)); }
.modal form { padding:26px; }
.modal-head { display:flex; justify-content:space-between; align-items:start; gap:18px; margin-bottom:22px; }
.modal-head h2 { color:var(--forest); font-size:32px; margin-top:4px; }
.modal-close { border:1px solid var(--line); background:white; width:34px; height:34px; border-radius:50%; font-size:21px; line-height:1; cursor:pointer; color:var(--muted); }
.modal-intro { color:var(--muted); font-size:12px; line-height:1.6; margin:-7px 0 18px; }
label { display:grid; gap:7px; }
label > span { font-size:10px; font-weight:780; color:#56655f; }
input, select, textarea { width:100%; border:1px solid var(--line); border-radius:9px; background:#fbfbf8; padding:10px 11px; outline:none; color:var(--ink); }
input, select { min-height:42px; }
textarea { resize:vertical; min-height:80px; }
input:focus, select:focus, textarea:focus { border-color:#91a69a; box-shadow:0 0 0 3px rgba(65,98,83,.08); background:white; }
.form-grid { display:grid; gap:15px; margin-bottom:15px; }
.form-grid.two { grid-template-columns:1fr 1fr; }
.form-grid .full { grid-column:1/-1; }
.inline-fields { display:grid; grid-template-columns:90px 1fr; gap:7px; }
.money-input { position:relative; }
.money-input b { position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:12px; color:var(--muted); }
.money-input input { padding-left:26px; }
.check-row { grid-template-columns:18px 1fr; align-items:start; gap:10px; margin-top:16px; padding:13px; background:var(--sage-2); border-radius:10px; }
.check-row input { width:16px; height:16px; min-height:0; margin-top:2px; accent-color:var(--forest); }
.check-row span { display:block; font-weight:400; }
.check-row strong { display:block; color:var(--ink); font-size:11px; }
.check-row small { display:block; color:var(--muted); font-size:9px; line-height:1.4; margin-top:2px; }
.modal-actions { display:flex; align-items:center; gap:8px; margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.spacer { flex:1; }
.danger { color:var(--red); }
.selected-care { background:var(--forest); color:white; border-radius:12px; padding:14px 15px; margin-bottom:16px; }
.selected-care .selected-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.selected-care strong { display:block; font-family:var(--serif); font-size:18px; font-weight:500; }
.selected-care small { color:rgba(255,255,255,.65); font-size:10px; display:block; margin-top:3px; }
.selected-care .status-pill { background:rgba(255,255,255,.12); color:white; }
.data-actions { display:grid; border:1px solid var(--line); border-radius:12px; padding:0 14px; }
.data-actions > button:first-child { border-top:0; }
.data-foot { display:grid; grid-template-columns:20px 1fr; gap:8px; background:var(--sage-2); border-radius:10px; padding:13px; margin-top:16px; color:var(--muted); }
.data-foot svg { width:17px; height:17px; color:var(--forest); }
.data-foot p { margin:0; font-size:9px; line-height:1.5; }
.toast { position:fixed; z-index:120; left:50%; bottom:24px; transform:translate(-50%,20px); background:var(--ink); color:white; padding:11px 15px; border-radius:10px; box-shadow:0 12px 30px rgba(0,0,0,.2); opacity:0; pointer-events:none; transition:.2s ease; font-size:11px; max-width:min(440px,calc(100vw - 30px)); text-align:center; }
.toast.show { opacity:1; transform:translate(-50%,0); }

.cat-farrier, .accent-farrier, .fill-farrier { background:#8b6750 !important; }
.cat-vet, .accent-vet, .fill-vet { background:#436d5d !important; }
.cat-dental, .accent-dental, .fill-dental { background:#9f7e3d !important; }
.cat-vaccine, .accent-vaccine, .fill-vaccine { background:#6f728f !important; }
.cat-feed, .accent-feed, .fill-feed { background:#748c58 !important; }
.cat-testing, .accent-testing, .fill-testing { background:#557b86 !important; }
.cat-bodywork, .accent-bodywork, .fill-bodywork { background:#9a6675 !important; }
.cat-tack, .accent-tack, .fill-tack { background:#a46b3f !important; }
.cat-grooming, .accent-grooming, .fill-grooming { background:#86907e !important; }
.cat-other, .accent-other, .fill-other { background:#68746f !important; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr .45fr; }
  .main-grid { grid-template-columns:1fr; }
  .side-stack { grid-template-columns:1fr 1fr; }
  .metrics { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 760px) {
  .desktop-only { display:none !important; }
  .topbar { min-height:72px; height:auto; padding:10px 16px; }
  .brand-emblem { width:39px; height:39px; }
  .brand-copy strong { font-size:15px; }
  .brand-copy small { display:none; }
  .top-actions .button-ghost { padding:0 10px; font-size:0; }
  .top-actions .button-ghost svg { width:17px; height:17px; }
  .hero { grid-template-columns:1fr; padding:44px 20px 34px; min-height:0; }
  .hero-art { display:none; }
  h1 { font-size:49px; }
  .trust-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .onboarding, .tracker { padding-left:16px; padding-right:16px; }
  .starter-grid { grid-template-columns:1fr 1fr; }
  .horsebar { display:grid; }
  .horse-switcher-label { display:none; }
  .horsebar-actions { display:grid; grid-template-columns:1fr 1fr; }
  .dashboard-heading { align-items:start; }
  .privacy-note { display:none; }
  .metrics { grid-template-columns:1fr 1fr; }
  .metric { padding:16px; min-height:108px; }
  .metric-value { font-size:30px; }
  .schedule-panel, .month-panel, .quick-panel, .history-panel { padding:17px; }
  .panel-head { align-items:start; }
  .schedule-panel .panel-head { display:grid; }
  .filterbar { display:grid; }
  .searchbox { max-width:none; }
  .filterchips { width:100%; }
  .care-row { grid-template-columns:6px minmax(0,1fr) auto; gap:10px; }
  .care-date { grid-column:2; text-align:left; display:flex; gap:6px; align-items:baseline; min-width:0; }
  .care-date strong { font-size:13px; }
  .row-actions { grid-column:3; grid-row:1 / span 2; }
  .row-actions button.edit-row { display:none; }
  .side-stack { grid-template-columns:1fr; }
  .education-strip { grid-template-columns:1fr; gap:16px; padding:25px; }
  footer { display:grid; }
  footer a { margin-left:0; margin-right:8px; }
  .form-grid.two { grid-template-columns:1fr; }
  .modal form { padding:20px; }
  .modal-actions { flex-wrap:wrap; }
  .modal-actions .spacer { display:none; }
  .modal-actions .button { flex:1; }
  .modal-actions .danger { flex-basis:100%; }
  .timeline-row, .timeline-axis { grid-template-columns:105px minmax(0,1fr) 62px; gap:8px; }
  .demo-banner { align-items:flex-start; }
}

@media (max-width: 520px) {
  .brand { gap:7px; }
  .brand-emblem { width:36px; height:36px; }
  .brand-copy strong { font-size:14px; }
}

@media (max-width: 470px) {
  .starter-grid { grid-template-columns:1fr; }
  .metrics { grid-template-columns:1fr 1fr; gap:8px; }
  .metric { min-height:100px; }
  .metric-note { display:none; }
  .onboarding-actions { display:grid; }
  .trust-row { grid-template-columns:1fr; }
  .horsebar-actions .button { font-size:11px; padding:0 10px; }
  .demo-banner { display:grid; }
}

@media print {
  body { background:#fff; }
  .topbar, .hero, .horsebar-actions, .round-add, .demo-banner, .filterbar, .view-toggle, .quick-panel, .education-strip, footer, .row-actions, .privacy-note { display:none !important; }
  .tracker { padding:18px; }
  .horsebar { background:#fff; color:#000; border:1px solid #bbb; box-shadow:none; }
  .horse-switcher-label, .horse-tab { color:#000; }
  .horse-tab { display:none; }
  .horse-tab.active { display:block; border:0; padding:0; font-family:var(--serif); font-size:20px; }
  .dashboard-heading { margin:24px 0 14px; }
  .metrics { grid-template-columns:repeat(4,1fr); }
  .panel { box-shadow:none; break-inside:avoid; }
  .main-grid { grid-template-columns:1fr; }
  .side-stack { grid-template-columns:1fr; }
  .month-panel { display:none; }
  .schedule-panel { min-height:0; }
  .history-panel { margin-top:12px; }
  .care-row { break-inside:avoid; }
}
