:root {
  --green-900: #1a4d2e;
  --green-800: #24633b;
  --green-700: #347b4a;
  --green-500: #4caf50;
  --green-100: #e8f4e9;
  --cream: #f5f1e8;
  --paper: #fff;
  --ink: #1c2921;
  --muted: #758078;
  --line: #e8ece8;
  --red: #d65b50;
  --amber: #d89c31;
  --blue: #5086b8;
  --shadow: 0 10px 32px rgba(32, 63, 42, .07);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: #fbfcfa; font-family: "DM Sans", sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4, .brand { font-family: "Manrope", sans-serif; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(76, 175, 80, .55); outline-offset: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 21px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green-900); color: #fff; box-shadow: 0 7px 16px rgba(26, 77, 46, .14); }
.button-primary:hover { background: var(--green-800); box-shadow: 0 9px 22px rgba(26, 77, 46, .22); }
.button-outline { border-color: #dce5dc; background: #fff; color: var(--green-900); }
.button-outline:hover { background: #f5f9f4; }
.button-light { background: #fff; color: var(--green-900); }
.button-small { min-height: 42px; padding: 0 16px; font-size: 13px; }
.button-full { width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green-700); font-size: 11px; font-weight: 800; letter-spacing: .11em; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px var(--green-100); }

/* Landing page */
.landing-page { background: #fff; }
.site-header { height: 76px; max-width: 1220px; margin: auto; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green-900); font-size: 20px; font-weight: 800; letter-spacing: -.06em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 11px 11px 11px 4px; background: var(--green-900); color: #fff; font-size: 18px; letter-spacing: 0; }
.brand-light { color: var(--green-500); }
.landing-nav { display: flex; align-items: center; gap: 28px; color: #526057; font-size: 13px; font-weight: 600; }
.landing-nav > a:not(.button):hover, .footer-links a:hover { color: var(--green-700); }
.menu-toggle { display: none; border: 0; background: none; color: var(--green-900); font-size: 24px; }
.landing-hero { position: relative; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; min-height: 570px; max-width: 1220px; margin: 0 auto; padding: 66px 30px 72px; overflow: hidden; }
.landing-hero::before { content: ""; position: absolute; z-index: 0; width: 490px; height: 490px; right: 3%; top: 4%; border-radius: 50%; background: radial-gradient(circle, #eff7ee 0, #f8faf5 68%, transparent 69%); }
.hero-copy { position: relative; z-index: 1; max-width: 550px; }
.hero-copy h1 { margin: 21px 0 18px; color: var(--green-900); font-size: clamp(48px, 6vw, 76px); line-height: 1.04; letter-spacing: -.065em; }
.hero-copy h1 span { color: var(--green-500); }
.hero-copy > p { max-width: 485px; margin-bottom: 27px; color: #66746a; font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.play-icon { font-size: 11px; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 34px; height: 34px; display: grid; place-items: center; margin-left: -5px; border: 2px solid #fff; border-radius: 50%; background: #f2f4e8; font-size: 16px; }
.avatar-stack span:first-child { margin-left: 0; }
.hero-proof p { margin: 0; color: var(--muted); font-size: 12px; }
.hero-proof strong { color: var(--ink); }
.hero-visual { position: relative; z-index: 1; min-height: 430px; display: grid; place-items: center; }
.visual-orbit { position: absolute; border: 1px solid rgba(76, 175, 80, .13); border-radius: 50%; }
.orbit-one { width: 440px; height: 440px; }
.orbit-two { width: 365px; height: 365px; }
.visual-card { position: relative; z-index: 1; width: min(390px, 82%); border: 1px solid #edf0eb; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(25, 65, 36, .12); }
.visual-main { padding: 23px 24px 18px; }
.visual-card-head { display: flex; justify-content: space-between; align-items: center; }
.visual-card-head div { display: grid; gap: 4px; }
.mini-label { color: #8a968e; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.visual-card-head strong { font-family: "Manrope", sans-serif; font-size: 13px; }
.live-dot { padding: 5px 8px; border-radius: 20px; background: #edf7ee; color: #38844b; font-size: 9px; font-weight: 700; }
.live-dot::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 5px 1px 0; border-radius: 50%; background: var(--green-500); }
.visual-total { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 14px; }
.visual-total strong { color: var(--green-900); font-family: "Manrope", sans-serif; font-size: 39px; line-height: 1; }
.visual-total span { color: #8b948e; font-size: 10px; }
.positive { color: var(--green-700); font-weight: 700; }
.visual-bars { height: 112px; display: flex; align-items: end; gap: 12px; padding: 8px 4px 0; border-bottom: 1px solid #edf0eb; background: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, #f1f3f0 36px); }
.visual-bars span { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #7dca7d, #3c9250); opacity: .9; }
.visual-chart-labels { display: flex; justify-content: space-between; padding: 7px 0 0; color: #99a19b; font-size: 8px; }
.visual-species { display: flex; justify-content: space-between; gap: 8px; padding-top: 20px; color: #6a756d; font-size: 9px; }
.visual-species span { display: flex; align-items: center; gap: 4px; }
.visual-species b { color: var(--ink); }
.species-dot { width: 7px; height: 7px; border-radius: 50%; }
.cattle { background: #367f4d; }.sheep { background: #7cb77e; }.goat { background: #e4b458; }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #eef0ea; border-radius: 12px; background: #fff; box-shadow: 0 12px 34px rgba(30, 60, 36, .12); }
.float-card > span:nth-child(2) { display: grid; gap: 1px; }
.float-card strong { font-size: 10px; }.float-card small { color: #8d978f; font-size: 9px; }
.float-alert { top: 76px; right: -3px; }.float-birth { bottom: 64px; left: -9px; }
.alert-icon, .birth-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #fff3df; color: #d4912e; font-size: 16px; }
.birth-icon { background: #eef7ec; color: var(--green-700); }.float-card .arrow { color: #a7b0a7; }
.visual-caption { position: absolute; bottom: 11px; right: 21%; color: #98a49a; font-size: 11px; }
.trust-strip { min-height: 75px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 6vw, 72px); padding: 16px 24px; border-top: 1px solid #f0f2ed; border-bottom: 1px solid #f0f2ed; color: #58665c; font-size: 12px; font-weight: 600; }
.trust-strip > span:first-child { color: #a3aca4; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.section { max-width: 1160px; margin: 0 auto; padding: 100px 30px; }
.section-heading { max-width: 650px; margin: 0 auto 43px; text-align: center; }
.section-heading h2, .audience-copy h2, .cta-section h2 { margin: 13px 0; color: var(--green-900); font-size: clamp(30px, 4vw, 43px); letter-spacing: -.05em; line-height: 1.16; }
.section-heading > p { max-width: 530px; margin: 0 auto; color: #738077; font-size: 14px; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 205px; padding: 25px; border: 1px solid #edf0eb; border-radius: 14px; background: #fff; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 12px; font-size: 21px; font-weight: 700; }
.icon-green { background: #e8f5e9; color: #367f4d; }.icon-red { background: #fff0ed; color: #d76257; }.icon-purple { background: #f0ecfb; color: #8164bc; }.icon-yellow { background: #fff5dc; color: #d39b27; }.icon-blue { background: #e8f2fb; color: #4e86b4; }.icon-orange { background: #fff0e2; color: #d28636; }
.feature-card h3 { margin-bottom: 8px; color: #26392c; font-size: 15px; letter-spacing: -.02em; }
.feature-card p { margin-bottom: 0; color: #78847b; font-size: 12px; line-height: 1.7; }
.audience-section { background: #f5f8f2; }
.audience-inner { max-width: 1100px; margin: auto; padding: 78px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.audience-copy > p { max-width: 425px; margin-bottom: 23px; color: #758078; font-size: 14px; line-height: 1.8; }
.text-link { color: var(--green-700); font-size: 13px; font-weight: 700; }.text-link span { padding-left: 5px; }
.audience-cards { display: grid; gap: 12px; }
.audience-cards article { display: flex; align-items: center; gap: 17px; padding: 17px 19px; border: 1px solid #e8eee6; border-radius: 13px; background: #fff; }
.audience-emoji { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 13px; background: #f5f4e9; font-size: 25px; }
.audience-cards h3 { margin: 0 0 4px; font-size: 14px; }.audience-cards p { margin: 0; color: #79837b; font-size: 11px; }
.pricing-section { padding-top: 95px; padding-bottom: 90px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 930px; margin: 0 auto; align-items: stretch; }
.price-card { position: relative; padding: 27px 24px 24px; border: 1px solid #e8ece6; border-radius: 15px; background: #fff; }
.price-featured { border: 2px solid var(--green-700); box-shadow: 0 12px 32px rgba(32, 85, 46, .1); }
.popular-label { position: absolute; top: -12px; right: 18px; padding: 5px 9px; border-radius: 20px; background: var(--green-700); color: white; font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.price-name { color: var(--green-700); font-size: 12px; font-weight: 800; }
.price-card h3 { min-height: 46px; margin: 12px 0 7px; color: var(--green-900); font-size: 27px; letter-spacing: -.04em; }
.price-card h3 small { font-family: "DM Sans", sans-serif; color: #768178; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.price-card > p { min-height: 42px; margin-bottom: 15px; color: #7b867d; font-size: 11px; }
.price-card ul { min-height: 105px; margin: 0 0 17px; padding: 0; list-style: none; color: #59665c; font-size: 11px; }
.price-card li { margin: 10px 0; }.price-card li::before { content: "✓"; padding-right: 8px; color: var(--green-500); font-weight: 800; }
.price-card .button { min-height: 43px; font-size: 11px; }
.pricing-note { margin: 22px 0 0; color: #929b93; text-align: center; font-size: 10px; }
.cta-section { position: relative; display: flex; align-items: center; justify-content: space-between; max-width: 1160px; min-height: 300px; margin: 0 auto 72px; padding: 52px 7%; overflow: hidden; border-radius: 20px; background: var(--green-900); color: #fff; }
.cta-section .eyebrow { color: #acd8ae; }.cta-section h2 { margin: 12px 0; color: #fff; }.cta-section p { margin-bottom: 18px; color: #d0dfd2; font-size: 13px; }
.cta-section .button { min-height: 43px; font-size: 12px; }
.cta-decoration { position: absolute; right: 9%; top: -85px; color: rgba(255,255,255,.07); font-family: "Manrope", sans-serif; font-size: 360px; font-weight: 800; line-height: 1; pointer-events: none; }
.site-footer { max-width: 1160px; margin: auto; padding: 0 30px 26px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px 20px; border-top: 1px solid #edf0eb; }
.site-footer .brand { margin-top: 23px; }.site-footer > p { justify-self: end; margin: 23px 0 0; color: #859087; font-size: 11px; }
.footer-links { grid-column: 1 / -1; display: flex; gap: 22px; color: #6d786f; font-size: 11px; }
.site-footer > small { grid-column: 1 / -1; color: #9aa39b; font-size: 10px; }

/* App shell */
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px 17px; border-right: 1px solid #edf0eb; background: #fff; }
.sidebar .brand { padding: 0 10px 26px; }
.nav-caption { padding: 0 12px; margin: 12px 0 8px; color: #9ba59d; font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.side-nav { display: grid; gap: 3px; }
.side-link { min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 9px; color: #66736a; font-size: 12px; font-weight: 600; transition: background .15s, color .15s; }
.side-link:hover { background: #f5f8f4; color: var(--green-900); }
.side-link.active { background: #eaf4ea; color: var(--green-900); font-weight: 700; }
.side-icon { width: 19px; color: #839087; text-align: center; font-size: 15px; }.side-link.active .side-icon { color: var(--green-700); }
.sidebar-bottom { margin-top: auto; }
.sidebar-help { padding: 14px; border-radius: 12px; background: #f5f8f3; }
.sidebar-help strong { display: block; margin-bottom: 4px; color: var(--green-900); font-size: 11px; }
.sidebar-help p { margin: 0 0 8px; color: #7d887f; font-size: 10px; }
.sidebar-help a { color: var(--green-700); font-size: 10px; font-weight: 700; }
.app-main { min-width: 0; }
.topbar { position: sticky; z-index: 10; top: 0; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 34px; border-bottom: 1px solid #edf0eb; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.crumb { color: #99a39b; font-size: 11px; }.crumb strong { color: #435147; font-weight: 600; }
.global-search { width: min(290px, 28vw); position: relative; }
.global-search::before { content: "⌕"; position: absolute; top: 7px; left: 12px; color: #87948b; font-size: 20px; }
.global-search input { width: 100%; height: 38px; padding: 0 13px 0 36px; border: 1px solid #edf0eb; border-radius: 9px; background: #f8faf7; color: var(--ink); font-size: 11px; outline: none; }
.global-search input:focus { border-color: #b6d2b8; background: #fff; }
.topbar-right { display: flex; align-items: center; gap: 19px; }
.farm-select { display: flex; flex-direction: column; gap: 2px; padding-left: 15px; border-left: 1px solid #edf0eb; }
.farm-select small { color: #9aa39c; font-size: 9px; }.farm-select strong { color: #445148; font-size: 11px; }
.notification-button { position: relative; width: 35px; height: 35px; border: 1px solid #edf0eb; border-radius: 10px; background: #fff; color: #647168; font-size: 16px; }
.notification-button i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: #e66c5f; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; text-align: left; }
.profile-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e8f3e8; color: var(--green-900); font-family: "Manrope", sans-serif; font-size: 11px; font-weight: 800; }
.profile-copy { display: grid; gap: 1px; }.profile-copy strong { color: #334138; font-size: 10px; }.profile-copy small { color: #8c978e; font-size: 9px; }
.page-content { max-width: 1450px; margin: 0 auto; padding: 30px 34px 50px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-heading h1 { margin: 0 0 4px; color: #25362b; font-size: 24px; letter-spacing: -.045em; }
.page-heading p { margin: 0; color: #89938b; font-size: 11px; }
.heading-actions { display: flex; gap: 9px; align-items: center; }
.app-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; background: var(--green-900); color: #fff; font-size: 11px; font-weight: 700; transition: background .2s, transform .2s; }
.app-button:hover { background: var(--green-800); transform: translateY(-1px); }
.app-button.secondary { border-color: #e4e9e3; background: #fff; color: #536157; }.app-button.secondary:hover { background: #f6f9f5; }
.app-button.danger { background: #fff3f1; color: #bd5046; border-color: #f1d8d5; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 17px; }
.kpi-card { min-height: 122px; padding: 17px 18px; border: 1px solid #edf0eb; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(32,63,42,.025); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: #79857c; font-size: 10px; font-weight: 600; }
.kpi-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #eef6ee; color: var(--green-700); font-size: 14px; }
.kpi-icon.amber { background: #fff6e6; color: #d39427; }.kpi-icon.red { background: #fff0ee; color: #d45e53; }.kpi-icon.blue { background: #edf4fb; color: #5783b0; }
.kpi-value { margin: 12px 0 1px; color: #25372b; font-family: "Manrope", sans-serif; font-size: 25px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; }
.kpi-note { color: #9aa39b; font-size: 9px; }.kpi-note .up { color: #4f9b5b; font-weight: 700; }
.dashboard-charts { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-bottom: 17px; }
.panel { min-width: 0; padding: 19px; border: 1px solid #edf0eb; border-radius: 12px; background: #fff; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0 0 3px; color: #334238; font-size: 13px; letter-spacing: -.02em; }
.panel-heading p { margin: 0; color: #9aa39b; font-size: 9px; }
.period-select, .filter-select, .filter-input { min-height: 34px; padding: 0 10px; border: 1px solid #e9ede8; border-radius: 7px; background: #fff; color: #5e6a61; font-size: 10px; }
.chart-canvas { width: 100%; height: 220px; display: block; }
.species-chart-area { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 25px; }
.donut-chart { width: 155px; height: 155px; position: relative; flex: 0 0 155px; }
.donut-chart canvas { width: 100%; height: 100%; }
.donut-center { position: absolute; inset: 0; display: grid; align-content: center; justify-content: center; text-align: center; pointer-events: none; }
.donut-center strong { color: #2b3c30; font-family: "Manrope", sans-serif; font-size: 24px; line-height: 1.1; }.donut-center small { color: #8c978e; font-size: 9px; }
.legend { display: grid; gap: 12px; }.legend-row { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; min-width: 105px; color: #79847c; font-size: 10px; }.legend-row i { width: 8px; height: 8px; border-radius: 3px; }.legend-row strong { color: #39483d; font-size: 10px; }
.dashboard-bottom { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(250px,.9fr); gap: 14px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { padding: 10px 11px; border-bottom: 1px solid #edf0eb; color: #9aa39b; font-size: 9px; font-weight: 700; }
.data-table td { padding: 12px 11px; border-bottom: 1px solid #f0f2ef; color: #526057; font-size: 10px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: #3a4b3e; font-weight: 700; }
.event-kind { display: inline-flex; align-items: center; gap: 6px; }.event-kind i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }.event-kind.health i { background: #e7a543; }.event-kind.birth i { background: #8d6ac1; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 20px; background: #eaf5eb; color: #43864c; font-size: 9px; font-weight: 700; }.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.warning { background: #fff5e3; color: #c28a28; }.status-pill.danger { background: #fff0ee; color: #c85449; }.status-pill.neutral { background: #f0f2f0; color: #69756c; }
.alert-list { display: grid; gap: 9px; }.alert-card { display: flex; gap: 10px; padding: 11px; border: 1px solid #f2e8d5; border-radius: 9px; background: #fffcf5; }.alert-card.red-alert { border-color: #f2dfdd; background: #fff9f8; }
.alert-symbol { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: #fff0d4; color: #cf9229; font-size: 14px; }.red-alert .alert-symbol { background: #ffebE8; color: #cc6257; }
.alert-copy { min-width: 0; flex: 1; }.alert-copy strong { display: block; margin: 1px 0 3px; color: #49564b; font-size: 10px; }.alert-copy p { margin: 0; color: #89938b; font-size: 9px; }.alert-date { color: #b38844; font-size: 8px; font-weight: 700; white-space: nowrap; }

/* Data pages */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 18px; }
.filter-search { position: relative; flex: 1 1 210px; max-width: 330px; }.filter-search span { position: absolute; top: 8px; left: 11px; color: #8b968d; font-size: 14px; }.filter-search input { width: 100%; }
.filter-input { min-height: 38px; padding-left: 32px; }
.filter-select { min-height: 38px; min-width: 135px; }
.results-count { margin-left: auto; color: #929c93; font-size: 10px; }
.animal-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.animal-card { overflow: hidden; border: 1px solid #e9ede7; border-radius: 13px; background: #fff; transition: transform .2s, box-shadow .2s; }
.animal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.animal-art { position: relative; height: 138px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg,#e7f2e5,#f5f3e8); }
.animal-art::before, .animal-art::after { content: ""; position: absolute; width: 150px; height: 150px; border: 1px solid rgba(37,94,50,.09); border-radius: 50%; }
.animal-art::after { width: 105px; height: 105px; }
.animal-art .animal-emoji { z-index: 1; font-size: 62px; filter: drop-shadow(0 6px 6px rgba(42,72,42,.14)); }
.animal-art.sheep-art { background: linear-gradient(135deg,#eaf1f5,#f6f2e8); }.animal-art.goat-art { background: linear-gradient(135deg,#f3eee1,#edf2e8); }
.animal-id { position: absolute; z-index: 2; top: 11px; left: 11px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.7); border-radius: 6px; background: rgba(255,255,255,.88); color: #516154; font-size: 9px; font-weight: 800; }
.animal-card .status-pill { position: absolute; z-index: 2; top: 11px; right: 10px; }
.animal-info { padding: 14px; }.animal-info h3 { margin: 0 0 3px; color: #344438; font-size: 13px; }.animal-meta { margin: 0; color: #929c93; font-size: 10px; }
.animal-details { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0; padding: 10px 0; border-top: 1px solid #f0f2ef; border-bottom: 1px solid #f0f2ef; color: #77837a; font-size: 9px; }.animal-details strong { display: block; margin-bottom: 3px; color: #4c5a50; font-size: 10px; }
.animal-card .app-button { width: 100%; min-height: 35px; }
.empty-state { padding: 45px 20px; border: 1px dashed #dfe6de; border-radius: 12px; color: #879188; text-align: center; font-size: 12px; }.empty-state strong { display: block; margin-bottom: 5px; color: #536157; font-size: 14px; }
.herd-grid, .shepherd-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.herd-card, .shepherd-card { padding: 18px; border: 1px solid #e9ede7; border-radius: 12px; background: #fff; }
.herd-top { display: flex; align-items: flex-start; justify-content: space-between; }.herd-icon { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 12px; background: #edf5ec; font-size: 20px; }.herd-count { color: var(--green-700); font-family: "Manrope", sans-serif; font-size: 22px; font-weight: 800; }.herd-count small { display: block; color: #9aa39b; font-family: "DM Sans",sans-serif; font-size: 9px; font-weight: 500; text-align: right; }
.herd-card h3, .shepherd-card h3 { margin: 14px 0 3px; color: #35453a; font-size: 14px; }.herd-card > p, .shepherd-card > p { margin: 0; color: #939c94; font-size: 10px; }
.herd-meta { display: grid; gap: 9px; margin: 16px 0; padding: 12px 0; border-top: 1px solid #f0f2ef; border-bottom: 1px solid #f0f2ef; }.herd-meta span { display: flex; justify-content: space-between; gap: 10px; color: #929c94; font-size: 10px; }.herd-meta strong { color: #58655b; font-weight: 600; text-align: right; }
.herd-card .app-button, .shepherd-card .app-button { width: 100%; }
.shepherd-card { text-align: center; }.shepherd-avatar { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto; border: 4px solid #f1f6ef; border-radius: 50%; background: #e8f2e6; color: var(--green-900); font-family: "Manrope",sans-serif; font-size: 17px; font-weight: 800; }.shepherd-card h3 { margin-top: 10px; }.shepherd-card .shepherd-phone { display: inline-block; margin-top: 5px; color: var(--green-700); font-size: 10px; font-weight: 600; }.shepherd-card .herd-meta { text-align: left; }
.animal-profile { display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.8fr); gap: 16px; align-items: start; }
.profile-card { overflow: hidden; border: 1px solid #e9ede7; border-radius: 13px; background: #fff; }
.profile-art { height: 205px; display: grid; place-items: center; background: linear-gradient(135deg,#e7f2e5,#f5f2e7); font-size: 89px; }
.profile-body { padding: 18px; }.profile-title-row { display: flex; align-items: start; justify-content: space-between; gap: 8px; }.profile-title-row h2 { margin: 0 0 3px; color: #304034; font-size: 18px; }.profile-title-row p { margin: 0; color: #8b968d; font-size: 10px; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; margin-top: 19px; padding-top: 17px; border-top: 1px solid #edf0eb; }.profile-field small { display: block; margin-bottom: 3px; color: #9aa39b; font-size: 9px; }.profile-field strong { display: block; color: #4c5a50; font-size: 10px; }
.qr-box { display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 11px; border: 1px dashed #dce5dc; border-radius: 9px; background: #fbfcfa; }.fake-qr { width: 45px; height: 45px; flex: 0 0 auto; background-color: #fff; background-image: linear-gradient(90deg,#26362b 18%,transparent 18%,transparent 37%,#26362b 37%,#26362b 55%,transparent 55%,transparent 72%,#26362b 72%),linear-gradient(#26362b 18%,transparent 18%,transparent 37%,#26362b 37%,#26362b 55%,transparent 55%,transparent 72%,#26362b 72%); background-size: 13px 13px; border: 4px solid #fff; box-shadow: 0 0 0 1px #e2e8e1; }.qr-box strong { display: block; color: #526057; font-size: 10px; }.qr-box small { color: #99a29a; font-size: 9px; }
.record-panel { min-width: 0; overflow: hidden; border: 1px solid #e9ede7; border-radius: 13px; background: #fff; }
.tabs { display: flex; gap: 20px; padding: 0 18px; border-bottom: 1px solid #edf0eb; overflow-x: auto; }.tab-button { min-height: 48px; flex: 0 0 auto; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #879188; font-size: 10px; font-weight: 600; }.tab-button.active { border-bottom-color: var(--green-700); color: var(--green-900); }
.history-list { padding: 5px 19px 15px; }.history-item { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 11px; padding: 15px 0; border-bottom: 1px solid #f0f2ef; }.history-item:last-child { border-bottom: 0; }.history-marker { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: #eff6ed; color: var(--green-700); font-size: 13px; }.history-marker.health { background: #fff5e5; color: #c58b2e; }.history-marker.birth { background: #f3edfb; color: #8262b8; }.history-item h3 { margin: 1px 0 4px; color: #3c4b40; font-size: 11px; }.history-item p { margin: 0 0 5px; color: #7f8a81; font-size: 10px; }.history-item small { color: #a0a9a1; font-size: 9px; }.history-date { color: #87938a; font-size: 9px; white-space: nowrap; }.history-photo { width: 28px; height: 28px; display: inline-grid; place-items: center; margin-left: 5px; border-radius: 6px; background: #eef5eb; font-size: 13px; vertical-align: middle; }
.record-empty { padding: 45px 15px; color: #929c94; text-align: center; font-size: 11px; }
.finance-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-bottom: 16px; }.finance-total { padding: 18px; border: 1px solid #e9ede7; border-radius: 12px; background: #fff; }.finance-total small { display: block; margin-bottom: 10px; color: #879188; font-size: 10px; }.finance-total strong { display: block; color: #334438; font-family: "Manrope",sans-serif; font-size: 21px; letter-spacing: -.04em; }.finance-total.profit { background: #f0f7ef; border-color: #deeddd; }.finance-total.profit strong { color: var(--green-800); }.finance-total.expense strong { color: #c15d52; }
.finance-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.finance-panel { min-width: 0; padding: 18px; border: 1px solid #e9ede7; border-radius: 12px; background: #fff; }.finance-panel h2 { margin: 0; color: #39483d; font-size: 13px; }.finance-panel .panel-heading { align-items: center; }
.amount-cell { font-weight: 700; }.amount-cell.income { color: #4a9554 !important; }.amount-cell.expense { color: #c65e53 !important; }
.report-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.form-field { display: grid; gap: 5px; }.form-field.full { grid-column: 1 / -1; }.form-field label { color: #6f7a71; font-size: 10px; font-weight: 600; }.form-field input,.form-field select,.form-field textarea { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #e3e9e2; border-radius: 8px; background: #fff; color: #39473d; font-size: 11px; }.form-field textarea { min-height: 80px; resize: vertical; }.form-field input:focus,.form-field select:focus,.form-field textarea:focus { outline: 2px solid rgba(76,175,80,.2); border-color: #8db991; }.report-form .app-button { justify-self: start; }
.reports-list { display: grid; gap: 10px; }.report-card { padding: 14px; border: 1px solid #edf0eb; border-radius: 10px; background: #fff; }.report-card-head { display: flex; justify-content: space-between; gap: 10px; }.report-card-head strong { color: #465449; font-size: 11px; }.report-card-head small { color: #9aa39b; font-size: 9px; }.report-stats { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0 7px; }.report-stats span { padding: 5px 7px; border-radius: 6px; background: #f4f7f3; color: #718075; font-size: 9px; }.report-card p { margin: 0; color: #808b82; font-size: 10px; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 15px; background: rgba(20,37,25,.45); backdrop-filter: blur(3px); }.modal { width: min(540px,100%); max-height: min(90vh,760px); overflow: auto; padding: 23px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 22px 70px rgba(0,0,0,.2); }.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }.modal-header h2 { margin: 0 0 3px; color: #2f4034; font-size: 18px; }.modal-header p { margin: 0; color: #929b93; font-size: 10px; }.modal-close { width: 31px; height: 31px; border: 0; border-radius: 8px; background: #f4f6f3; color: #6b776e; font-size: 18px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }.modal-error { min-height: 17px; margin: 8px 0 0; color: #bd5046; font-size: 10px; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(380px,calc(100vw - 32px)); padding: 13px 17px; border-radius: 10px; background: #243a2a; color: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.2); font-size: 12px; animation: toast-in .25s ease-out; }.toast.error { background: #a63e36; }
.mobile-bottom-nav { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1050px) {
  .app-layout { grid-template-columns: 215px minmax(0,1fr); }.sidebar { padding-right: 12px; padding-left: 12px; }.topbar { padding: 0 22px; }.page-content { padding-right: 22px; padding-left: 22px; }.kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.animal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.herd-grid,.shepherd-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .site-header { height: 67px; padding: 0 19px; }.menu-toggle { display: block; }.landing-nav { position: absolute; z-index: 20; top: 59px; left: 12px; right: 12px; display: none; align-items: stretch; gap: 0; padding: 12px; border: 1px solid #edf0eb; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.landing-nav.open { display: grid; }.landing-nav > a:not(.button) { padding: 11px; }.landing-nav .button { margin-top: 6px; }
  .landing-hero { grid-template-columns: 1fr; padding: 47px 22px 35px; }.hero-copy { max-width: 100%; }.hero-copy h1 { font-size: clamp(46px, 13vw, 68px); }.hero-copy > p { font-size: 14px; }.hero-visual { min-height: 385px; margin: 14px 0 0; }.visual-card { width: min(390px,82%); }.visual-caption { right: 17%; bottom: -1px; }.float-alert { right: -1px; top: 48px; }.float-birth { left: -1px; bottom: 44px; }
  .trust-strip { justify-content: flex-start; gap: 18px; overflow-x: auto; white-space: nowrap; font-size: 10px; }.trust-strip > span:first-child { display: none; }
  .section { padding: 68px 20px; }.feature-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }.feature-card { min-height: 190px; padding: 17px; }.feature-card h3 { font-size: 13px; }.feature-card p { font-size: 11px; }.feature-icon { width: 38px; height: 38px; margin-bottom: 15px; }
  .audience-inner { grid-template-columns: 1fr; gap: 30px; padding: 62px 21px; }.audience-copy h2 { font-size: 34px; }.pricing-grid { grid-template-columns: 1fr; max-width: 410px; gap: 19px; }.price-card { padding: 23px; }.price-card > p,.price-card ul { min-height: 0; }.cta-section { min-height: 270px; margin: 0 15px 53px; padding: 36px 25px; }.cta-decoration { right: -4%; top: 10px; font-size: 230px; }.site-footer { padding-right: 20px; padding-left: 20px; }
  .app-layout { display: block; padding-bottom: 69px; }.sidebar { display: none; }.topbar { height: 61px; padding: 0 14px; }.crumb { display: none; }.global-search { width: min(200px,43vw); }.global-search input { height: 35px; }.topbar-right { gap: 10px; }.farm-select { display: none; }.profile-copy { display: none; }.profile-avatar { width: 31px; height: 31px; }.notification-button { width: 32px; height: 32px; }.page-content { padding: 22px 14px 29px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }.page-heading h1 { font-size: 21px; }.page-heading p { max-width: 240px; line-height: 1.5; }.page-heading .heading-actions .app-button { min-height: 35px; padding: 0 10px; font-size: 10px; }.heading-actions .hide-mobile { display: none; }
  .kpi-grid { gap: 9px; }.kpi-card { min-height: 105px; padding: 13px; }.kpi-top { font-size: 9px; }.kpi-icon { width: 26px; height: 26px; }.kpi-value { margin-top: 10px; font-size: 22px; }.dashboard-charts,.dashboard-bottom { grid-template-columns: 1fr; gap: 10px; }.panel { padding: 15px; }.chart-canvas { height: 190px; }.species-chart-area { min-height: 175px; gap: 20px; }.donut-chart { width: 132px; height: 132px; flex-basis: 132px; }.legend { gap: 10px; }.data-table th,.data-table td { padding: 10px 8px; }
  .mobile-bottom-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; padding: 6px 4px max(6px,env(safe-area-inset-bottom)); border-top: 1px solid #e9ede8; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }.mobile-bottom-nav a { min-width: 56px; display: grid; justify-items: center; gap: 2px; padding: 2px 4px; color: #849087; font-size: 8px; font-weight: 600; }.mobile-bottom-nav a span { font-size: 17px; line-height: 1.2; }.mobile-bottom-nav a.active { color: var(--green-800); }
  .filter-row { gap: 7px; }.filter-search { max-width: none; flex-basis: 100%; }.filter-select { min-width: 0; flex: 1 1 30%; font-size: 9px; }.results-count { flex-basis: 100%; text-align: right; }.animal-grid { gap: 9px; }.animal-art { height: 105px; }.animal-art .animal-emoji { font-size: 51px; }.animal-info { padding: 11px; }.animal-info h3 { font-size: 11px; }.animal-meta { font-size: 9px; }.animal-details { font-size: 8px; }.animal-details strong { font-size: 9px; }.animal-card .app-button { min-height: 32px; padding: 0 5px; font-size: 9px; }.animal-id { top: 7px; left: 7px; padding: 4px 5px; font-size: 8px; }.animal-card .status-pill { top: 7px; right: 6px; padding: 3px 5px; font-size: 7px; }
  .herd-grid,.shepherd-grid { grid-template-columns: 1fr; }.finance-summary { grid-template-columns: 1fr; gap: 8px; }.finance-total { padding: 13px 15px; }.finance-total small { margin-bottom: 4px; }.finance-total strong { font-size: 19px; }.finance-columns { grid-template-columns: 1fr; }.animal-profile { grid-template-columns: 1fr; }.profile-card { display: grid; grid-template-columns: 115px minmax(0,1fr); }.profile-art { height: 100%; min-height: 210px; font-size: 60px; }.profile-body { padding: 13px; }.profile-title-row { display: block; }.profile-title-row .status-pill { margin-top: 7px; }.profile-title-row h2 { font-size: 15px; }.profile-fields { gap: 9px 6px; margin-top: 11px; padding-top: 10px; }.profile-field small { font-size: 8px; }.profile-field strong { font-size: 9px; }.qr-box { gap: 7px; margin-top: 10px; padding: 7px; }.fake-qr { width: 34px; height: 34px; }.qr-box strong { font-size: 8px; }.qr-box small { font-size: 7px; }.tabs { gap: 15px; padding: 0 13px; }.tab-button { min-height: 43px; font-size: 9px; }.history-list { padding: 4px 13px 10px; }.history-item { grid-template-columns: 29px minmax(0,1fr) auto; gap: 8px; }.history-marker { width: 28px; height: 28px; }.history-item h3 { font-size: 10px; }.history-item p { font-size: 9px; }.history-date { font-size: 8px; }
  .modal { padding: 18px; }.report-form { gap: 9px; }.form-field label { font-size: 9px; }.form-field input,.form-field select,.form-field textarea { font-size: 10px; }
}
@media (max-width: 380px) {
  .animal-grid { grid-template-columns: 1fr; }.animal-art { height: 135px; }.animal-art .animal-emoji { font-size: 60px; }.feature-grid { grid-template-columns: 1fr; }.feature-card { min-height: auto; }.hero-actions .button { padding: 0 14px; font-size: 12px; }.float-card { padding: 9px; }.float-alert { right: -2px; }.float-birth { left: -2px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Login and app navigation */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, #f5f1e8, #f7faf5 58%, #e8f4e9); }
.login-card { width: min(440px, 100%); padding: 34px; border: 1px solid #e8ece8; border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgba(32,63,42,.1); }
.login-brand { margin-bottom: 28px; }
.login-card .eyebrow { margin-bottom: 9px; }
.login-card h1 { margin: 0 0 5px; color: var(--green-900); font-size: 30px; letter-spacing: -.05em; }
.login-intro { margin-bottom: 23px; color: var(--muted); font-size: 13px; }
.login-card form { display: grid; gap: 14px; }
.login-card .form-field label { font-size: 12px; }
.login-card .form-field input, .login-card .form-field select { min-height: 46px; font-size: 14px; }
.login-error { min-height: 18px; margin: -4px 0 0; color: #bd5046; font-size: 12px; }
.login-submit { width: 100%; min-height: 48px; font-size: 14px; }
.demo-credentials { display: grid; gap: 5px; margin-top: 21px; padding: 13px; border-radius: 10px; background: #f5f8f3; color: #647168; font-size: 10px; }
.demo-credentials strong { margin-bottom: 2px; color: var(--green-900); font-size: 11px; }
.sidebar-toggle, .sidebar-scrim { display: none; }
.logout-button { width: 100%; margin-top: 10px; }
.heading-actions { flex-wrap: wrap; }

@media (max-width: 760px) {
  .app-layout { display: block; }
  .sidebar { position: fixed; z-index: 41; top: 0; bottom: 0; left: 0; display: flex; width: min(285px, 86vw); height: 100vh; height: 100dvh; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 12px 0 35px rgba(20,37,25,.12); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 40; inset: 0; display: block; visibility: hidden; border: 0; background: rgba(20,37,25,.38); opacity: 0; transition: opacity .2s, visibility .2s; }
  .sidebar-scrim.open { visibility: visible; opacity: 1; }
  .sidebar-toggle { width: 42px; height: 42px; flex: 0 0 auto; display: inline-grid; place-items: center; border: 1px solid #e5ebe4; border-radius: 9px; background: #fff; color: var(--green-900); font-size: 20px; }
  .sidebar-toggle, .notification-button { min-width: 44px; min-height: 44px; }
  .topbar { height: 64px; gap: 8px; padding: 0 12px; }
  .topbar-left { min-width: 0; gap: 8px; }
  .crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .global-search { display: none; }
  .topbar-right { gap: 8px; }
  .farm-select { display: none; }
  .profile-copy { display: none; }
  .page-content { padding: 20px 13px 92px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .heading-actions { width: 100%; }
  .heading-actions .app-button { flex: 1 1 145px; min-height: 44px; padding: 8px 10px; text-align: center; }
  .app-button { min-height: 44px; padding: 0 13px; font-size: 12px; }
  .animal-card .app-button { min-height: 44px; padding: 0 10px; font-size: 12px; }
  .tab-button { min-height: 44px; }
  .mobile-bottom-nav a { min-height: 44px; flex: 1; }
  .data-table { min-width: 540px; }
  .report-form .app-button { min-height: 44px; }
}

@media (max-width: 380px) {
  .login-page { padding: 14px; }
  .login-card { padding: 23px 19px; }
  .topbar { padding-right: 9px; padding-left: 9px; }
  .topbar-right { gap: 5px; }
  .page-content { padding-right: 11px; padding-left: 11px; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-art { min-height: 125px; }
  .heading-actions { display: grid; grid-template-columns: 1fr; }
  .heading-actions .app-button { width: 100%; }
  .history-item { grid-template-columns: 28px minmax(0,1fr); }
  .history-date { grid-column: 2; }
}

@media print {
  body { background: #fff; color: #111; }
  .sidebar, .sidebar-toggle, .sidebar-scrim, .topbar, .mobile-bottom-nav, .page-heading, #modal-root, #toast-root { display: none !important; }
  .app-layout { display: block; min-height: 0; }
  .page-content { max-width: none; padding: 0; }
  .animal-profile { grid-template-columns: minmax(230px, .75fr) minmax(0, 1.8fr); gap: 12px; }
  .profile-card, .record-panel { break-inside: avoid; box-shadow: none; }
  .tabs { display: none; }
  #record-content { display: block; }
  .history-item { break-inside: avoid; }
  .profile-art { height: 120px; }
  .qr-box { display: none; }
}
