@charset "UTF-8";

:root {
  --paper: #f6f7f2;
  --surface: #ffffff;
  --ink: #23372c;
  --muted: #56675c;
  --forest: #193f2f;
  --forest-deep: #133426;
  --green: #32694c;
  --lime: #d6eb9b;
  --lime-bright: #def5a1;
  --line: #e5e9e1;
  --soft-green: #edf3e8;
  --amber: #926b27;
  --soft-amber: #fcf6e7;
  --red: #a45145;
  --soft-red: #fbf0ec;
  --radius: 18px;
  --shadow: 0 3px 16px rgb(25 63 47 / 3%);
  --font: "Manrope", "Avenir Next", sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  --sidebar-width: 230px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 450 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
svg { vertical-align: middle; }
button svg { pointer-events: none; }
button:disabled { opacity: .48; cursor: not-allowed; }
::selection { background: var(--lime); color: var(--forest); }
:focus-visible { outline: 3px solid #7c9e46; outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #7c9e46; outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; border-radius: 8px; background: var(--lime); color: var(--forest); font-weight: 700; }
.skip-link:focus { top: 16px; }

/* The persistent frame. */
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 34px 20px 22px; color: #eef2e9; background: var(--forest); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: inherit; text-decoration: none; font-size: 31px; font-weight: 800; line-height: 1; letter-spacing: 1.1px; }
.sidebar .brand { margin: 0 18px 58px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 36px; color: var(--lime); }
.brand-mark .icon { width: 29px; height: 33px; stroke-width: 1.55; }
.brand-dot { color: var(--lime); }
.workspace-label { padding: 0 16px; margin-bottom: 15px; color: #9cb2a2; font-size: 9px; font-weight: 650; letter-spacing: 1.8px; }
.sidebar-nav { display: grid; gap: 7px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 9px; color: #bed0c2; background: transparent; text-align: left; font-size: 13px; font-weight: 550; transition: color .16s ease, background .16s ease; }
.nav-item:hover { color: white; background: rgb(255 255 255 / 6%); }
.nav-item.active, .nav-item[aria-current="page"] { color: var(--forest-deep); background: var(--lime); font-weight: 750; }
.nav-item .icon { width: 19px; height: 19px; }
.nav-active-dot { display: none; width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: currentColor; }
.nav-item.active .nav-active-dot, .nav-item[aria-current="page"] .nav-active-dot { display: block; }
.sidebar-bottom { margin-top: auto; padding-top: 44px; }
.sidebar-note { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 16px 13px; background: rgb(255 255 255 / 5%); border: 1px solid rgb(221 239 208 / 10%); border-radius: 10px; font-size: 10px; font-weight: 650; }
.status-light { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgb(214 235 155 / 10%); }
.sidebar-note p { margin: 2px 0 0; color: #a8bdad; font-size: 10px; font-weight: 400; line-height: 1.8; }
.sidebar-signoff { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 25px; color: #91ac99; font-size: 10px; }
.sidebar-signoff .icon { width: 14px; height: 17px; }
.app-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 75%); }
.breadcrumb { display: flex; align-items: center; gap: 14px; color: var(--muted); white-space: nowrap; font-size: 11px; }
.breadcrumb .icon { width: 12px; height: 12px; color: #a4afa6; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.global-search { display: flex; align-items: center; gap: 9px; width: 294px; min-height: 42px; color: #8a978c; }
.global-search .icon { width: 16px; height: 16px; }
.global-search input { width: 100%; min-width: 0; border: none; background: transparent; font-size: 11px; box-shadow: none; padding: 11px 0; }
.global-search input::placeholder { color: #8b958c; }
.search-key { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border: 3px solid white; border-radius: 50%; background: #e7ecdb; box-shadow: 0 0 0 1px var(--line); color: #536449; font-size: 10px; font-weight: 750; }
.topbar .export-button { min-width: 36px; width: 44px; height: 44px; border: 0; background: transparent; }
.topbar .export-button .icon { width: 18px; height: 18px; }
.mobile-brand, .mobile-menu, .mobile-bottom-nav, .mobile-only { display: none; }
#main { max-width: 1510px; min-height: calc(100vh - 145px); margin: 0 auto; padding: 35px 42px 35px; outline: none; }
.app-footer { max-width: 1510px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 42px 24px; color: #56684c; font-size: 9px; }
.app-footer > span:last-child { display: flex; align-items: center; gap: 9px; }
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: #aab5a9; }

/* Typography and reusable layout. */
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; }
h1 { margin-bottom: 9px; font-size: 30px; letter-spacing: -1px; }
h2 { margin-bottom: 12px; font-size: 19px; letter-spacing: -.5px; }
h3 { margin-bottom: 10px; font-size: 15px; letter-spacing: -.2px; }
h4 { margin-bottom: 8px; font-size: 13px; }
p { margin-bottom: 16px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading h1 { margin-bottom: 7px; font-size: 29px; letter-spacing: -.9px; }
.page-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.page-heading > div:first-child { min-width: 0; }
.eyebrow { margin-bottom: 12px; color: #56684c; font-size: 9px; font-weight: 750; line-height: 1.5; letter-spacing: 1.8px; text-transform: uppercase; }
.muted { color: var(--muted); }
.small, small { font-size: 11px; }
.serif { font-family: var(--serif); font-weight: 400; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 29px 0 15px; }
.section-heading h2 { margin: 0; font-size: 17px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.section-heading .btn { min-height: 44px; font-size: 11px; }
.grid-2, .grid-3, .grid-4, .product-grid, .dashboard-grid { display: grid; gap: 19px; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.dashboard-grid { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); align-items: start; }
.product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .product-grid > *, .dashboard-grid > * { min-width: 0; }
.stack { display: grid; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

/* Controls have a quiet default and a very clear primary action. */
.btn, .btn-icon { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 11px 17px; color: var(--ink); background: white; font-size: 11px; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.btn:hover, .btn-icon:hover { transform: translateY(-1px); }
.btn:active, .btn-icon:active { transform: translateY(0); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { color: #fff; background: var(--forest); border-color: var(--forest); }
.btn-primary:hover { background: #2a563f; border-color: #2a563f; box-shadow: 0 3px 10px rgb(25 63 47 / 12%); }
.btn-secondary { color: var(--ink); background: var(--surface); border-color: #dfe5da; }
.btn-secondary:hover { background: #f6f8f1; border-color: #bdcbb6; }
.btn-lime { color: var(--forest-deep); background: var(--lime); }
.btn-lime:hover { background: var(--lime-bright); }
.btn-ghost { color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--soft-green); }
.btn-small { padding: 9px 12px; min-height: 44px; font-size: 10px; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-color: var(--line); flex-shrink: 0; }
.link-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0; border: 0; color: var(--green); background: transparent; font-size: 11px; font-weight: 750; text-decoration: none; }
.link-button .icon { width: 14px; height: 14px; }
.badge, .chip, .group-chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: fit-content; padding: 4px 8px; border: 1px solid transparent; border-radius: 5px; color: #5f7160; background: #f0f3ec; font-size: 9px; font-weight: 650; line-height: 1.6; }
.badge-green { color: #477344; background: #edf4e3; }
.badge-amber { color: #966c27; background: #faf1dc; }
.badge-red { color: var(--red); background: var(--soft-red); }
.badge-outline { background: transparent; border-color: #dbe3d4; }
.group-chip { min-width: 36px; padding: 4px 8px; color: var(--forest); background: #e7eddc; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.group-chip.frac { color: #5e6483; background: #ececf5; }
.group-chip.irac { color: #946e35; background: #f7f0e1; }
.group-list { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }

/* Overview. */
.card, .stat-card, .product-card, .knowledge-card, .field-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card { padding: 23px; }
.card > :last-child { margin-bottom: 0; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-header h2, .card-header h3 { margin: 0; }
.card-header h2 { font-size: 15px; }
.card-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.card-link { color: var(--green); font-size: 11px; font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.stat-card { position: relative; padding: 19px 20px 18px; }
.stat-card .icon-circle { width: 35px; height: 35px; margin-bottom: 16px; border-radius: 10px; }
.stat-card .icon-circle .icon { width: 18px; height: 18px; }
.stat-card .metric-label { margin-bottom: 8px; }
.stat-card .metric-value { margin: 8px 0 3px; }
.stat-card .badge { position: absolute; top: 21px; right: 18px; }
.stat-card p { margin-bottom: 0; }
.metric-value { color: var(--ink); font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.metric-value small { margin-left: 3px; color: var(--muted); font-size: 13px; font-weight: 450; letter-spacing: 0; }
.metric-label { color: var(--muted); font-size: 11px; }
.metric-note { margin-top: 7px; color: #8b978b; font-size: 10px; }
.icon-circle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: #52774c; background: var(--soft-green); flex-shrink: 0; }
.icon-circle.amber { color: #a1833f; background: #faf3e3; }
.icon-circle.blue { color: #5b7f88; background: #edf4f4; }
.hero { position: relative; min-height: 252px; margin-bottom: 22px; padding: 31px 34px; overflow: hidden; border: 1px solid #224c35; border-radius: 19px; color: #f2f5e8; background: #204b35; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 74% 100%, rgb(100 133 68 / 22%), transparent 55%); }
.hero-copy { position: relative; z-index: 2; width: 64%; max-width: 550px; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 17px; color: #bfd193; font-size: 8px; letter-spacing: 1.6px; }
.hero .eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.hero h2, .hero h1 { margin-bottom: 12px; color: #f4f5e9; font-family: var(--serif); font-weight: 400; font-size: clamp(29px,2.8vw,42px); letter-spacing: -.7px; line-height: 1.13; }
.hero h2 em, .hero h1 em { color: var(--lime); font-weight: 400; }
.hero p { max-width: 400px; margin-bottom: 21px; color: #b9cdb9; font-size: 11px; line-height: 1.75; }
.hero .btn { min-height: 44px; color: var(--forest-deep); background: var(--lime); border-color: var(--lime); padding: 10px 15px; font-size: 10px; }
.hero .btn:hover { background: #e2f6b2; }
.hero .btn-secondary { margin-left: 8px; color: #d6e4cf; border-color: #53704e; background: transparent; }
.hero-art { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 44%; opacity: .9; overflow: hidden; pointer-events: none; }
.hero-art::before { content: ""; position: absolute; width: 480px; height: 570px; right: -305px; bottom: -395px; border: 1px solid rgb(211 235 170 / 36%); border-radius: 40%; box-shadow: 0 0 0 18px #204b35, 0 0 0 19px rgb(211 235 170 / 30%), 0 0 0 37px #204b35, 0 0 0 38px rgb(211 235 170 / 27%), 0 0 0 56px #204b35, 0 0 0 57px rgb(211 235 170 / 25%), 0 0 0 75px #204b35, 0 0 0 76px rgb(211 235 170 / 23%), 0 0 0 94px #204b35, 0 0 0 95px rgb(211 235 170 / 22%), 0 0 0 113px #204b35, 0 0 0 114px rgb(211 235 170 / 20%), 0 0 0 132px #204b35, 0 0 0 133px rgb(211 235 170 / 17%), 0 0 0 151px #204b35, 0 0 0 152px rgb(211 235 170 / 14%), 0 0 0 170px #204b35, 0 0 0 171px rgb(211 235 170 / 10%); transform: rotate(-29deg); }
.hero-art::after { content: ""; position: absolute; top: 40px; right: 60px; width: 83px; height: 83px; border: 1px solid rgb(210 235 160 / 24%); border-radius: 50%; background: rgb(214 235 155 / 6%); box-shadow: 0 0 0 13px rgb(214 235 155 / 3%); }
.hero-art svg { position: relative; z-index: 2; width: 100%; height: 100%; }
.weather-strip { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; padding: 19px 0; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.weather-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 0 12px; border-right: 1px solid var(--line); text-align: center; }
.weather-item:last-child { border-right: 0; }
.weather-item .icon { width: 19px; height: 19px; margin-bottom: 2px; color: #7b8f67; }
.weather-item strong { font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.weather-item small, .weather-item span { color: var(--muted); font-size: 9px; }
.weather-item strong span { font-size: 10px; font-weight: 500; }
.weather-item .badge { color: #477344; }
.source-note { margin: 14px 0 0; color: #7b877a; font-size: 10px; line-height: 1.7; }
.source-note a { color: #638258; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; margin-bottom: 20px; border: 1px solid #dde6d3; border-radius: 10px; color: #586b4e; background: #eff4e8; font-size: 11px; line-height: 1.75; }
.alert .icon { width: 19px; height: 19px; margin-top: 1px; }
.alert p { margin: 0; }
.alert strong { font-weight: 750; }
.alert-amber { color: #85662f; background: var(--soft-amber); border-color: #ecdfbe; }
.alert-red { color: var(--red); background: var(--soft-red); border-color: #efdad2; }
.alert-green { color: #4d714b; background: #edf4e5; border-color: #d9e5ca; }

/* Search, filters, and products. */
.search-box { position: relative; display: flex; align-items: center; gap: 11px; min-height: 50px; padding: 0 17px; border: 1px solid #dfe6d8; border-radius: 10px; background: white; }
.search-box:focus-within { border-color: #92ac76; box-shadow: 0 0 0 3px rgb(152 180 112 / 12%); }
.search-box > .icon { color: #899680; width: 19px; height: 19px; }
.search-box input { flex: 1; min-width: 0; padding: 13px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 13px; }
.search-box input:focus-visible { outline: 0; }
.search-box .btn-icon { width: 44px; height: 44px; min-height: 44px; border: 0; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 15px 0 22px; }
.filter-row select { width: auto; min-width: 130px; max-width: 260px; min-height: 44px; padding-top: 9px; padding-bottom: 9px; font-size: 11px; }
.filter-row .btn { min-height: 44px; }
.filter-row .group-list { margin-left: auto; }
.results-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 20px 0 13px; color: var(--muted); font-size: 11px; }
.results-meta strong { color: var(--ink); }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.product-card { display: flex; flex-direction: column; padding: 21px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.product-card:hover { border-color: #b7cba8; box-shadow: 0 7px 22px rgb(25 63 47 / 6%); transform: translateY(-2px); }
.product-card h3 { margin-top: 13px; margin-bottom: 7px; font-size: 16px; }
.product-card .card-header { margin-bottom: 0; }
.product-card .card-header h3 { margin-top: 0; }
.product-card p { margin: 0 0 13px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.product-card .group-list { margin: 4px 0 15px; }
.product-card .btn { width: 100%; margin-top: auto; }
.product-card .source-note { margin-top: 12px; font-size: 9px; }
.product-type { color: #8c987f; font-size: 9px; text-transform: uppercase; letter-spacing: 1.1px; }
.product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 12px 0 17px; color: var(--muted); font-size: 10px; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 15px; margin-top: auto; border-top: 1px solid var(--line); }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 27px 0 9px; }
.pagination .btn { min-width: 44px; }

/* Tables retain a deliberate, comfortable density. */
.table-wrap { position: relative; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: 12px; background: white; }
.card .table-wrap { border: 0; border-radius: 0; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
.data-table th { padding: 13px 17px; color: #8a9585; background: #f9faf6; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 750; line-height: 1.5; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 15px 17px; border-bottom: 1px solid #edf0e9; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfdf9; }
.data-table td strong { display: block; font-size: 11px; font-weight: 700; }
.data-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.data-table td .btn { min-height: 44px; padding: 8px 12px; font-size: 10px; }
.data-table .group-list { flex-wrap: nowrap; }
.data-table .group-chip { font-size: 9px; }
.data-table .numeric { font-variant-numeric: tabular-nums; text-align: right; }

/* Plot cards, charts, and monitoring. */
.field-card { overflow: hidden; }
.field-card > :not(.field-map) { margin-left: 19px; margin-right: 19px; }
.field-card > :last-child { margin-bottom: 19px; }
.field-card h3 { margin-top: 18px; }
.field-card p { color: var(--muted); font-size: 11px; }
.field-map { position: relative; height: 127px; overflow: hidden; background-color: #e8edda; background-image: repeating-linear-gradient(121deg, transparent 0 18px, rgb(133 158 108 / 9%) 18px 20px), linear-gradient(28deg, transparent 52%, #d4dfbf 52% 73%, transparent 73%); border-bottom: 1px solid #e0e7d4; }
.field-map::before { content: ""; position: absolute; inset: 23px 23% 19px 19%; border: 2px solid #83a15e; background: rgb(195 215 156 / 62%); border-radius: 10% 25% 17% 12%; transform: rotate(-13deg) skew(-9deg); box-shadow: inset 0 0 0 4px rgb(255 255 255 / 18%); }
.field-map::after { content: ""; position: absolute; width: 7px; height: 7px; top: 49%; left: 48%; border: 2px solid white; border-radius: 50%; background: #557e3c; box-shadow: 0 0 0 5px rgb(255 255 255 / 25%); }
.field-map .badge { position: absolute; z-index: 1; top: 12px; left: 12px; background: rgb(255 255 255 / 88%); }
.field-card:nth-child(2n) .field-map { background-color: #e9e8d7; }
.field-card:nth-child(2n) .field-map::before { transform: rotate(17deg) skew(7deg); border-radius: 18% 8% 11% 26%; }
.field-card:nth-child(3n) .field-map::before { inset: 28px 18% 20px 26%; transform: rotate(-5deg) skew(-14deg); }
.progress-bar { height: 5px; border-radius: 10px; background: #edf1e7; overflow: hidden; }
.progress-bar > span, .progress-bar > div { display: block; height: 100%; border-radius: inherit; background: #9fbc71; }
.progress-bar.amber > span { background: #d7bc6f; }
.mini-chart { display: flex; align-items: flex-end; gap: 7px; height: 100px; padding: 14px 0 0; }
.chart-bar { position: relative; display: flex; flex: 1; justify-content: center; align-items: flex-end; min-width: 6px; height: var(--height, 50%); border-radius: 4px 4px 0 0; background: #d6e4c0; }
.chart-bar.active { background: #6c9451; }
.chart-bar span { position: absolute; bottom: -22px; color: var(--muted); font-size: 8px; }
.chart-bar small { position: absolute; top: -20px; color: #708766; font-size: 8px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 17px; color: var(--muted); font-size: 9px; }

/* Rotation and field history. */
.rotation-path { display: flex; align-items: stretch; gap: 13px; margin: 21px 0; }
.rotation-path > :not(.icon) { flex: 1; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.rotation-path > .icon { align-self: center; color: #a3b591; }
.rotation-path h3 { margin: 10px 0 7px; }
.rotation-path p { margin: 0; font-size: 11px; color: var(--muted); }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.comparison > div { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf7; }
.comparison h3 { font-size: 13px; }
.timeline { padding: 0; margin: 0; list-style: none; }
.timeline-item { position: relative; padding: 0 0 24px 25px; border-left: 1px solid #dfe7d7; margin-left: 5px; }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: #86a566; box-shadow: 0 0 0 1px #dce6d2; }
.timeline-item h3, .timeline-item strong { font-size: 12px; }
.timeline-item h3 { margin: 5px 0; }
.timeline-item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.timeline-item time { color: #899483; font-size: 9px; }
.timeline-item .badge { float: right; }

/* Form layouts and knowledge content. */
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid #dce3d6; border-radius: 8px; padding: 11px 13px; color: var(--ink); background: #fff; font-size: 12px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9aa291; }
select { padding-right: 32px; }
textarea { min-height: 105px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 19px; height: 19px; min-height: 19px; margin: 0 7px 0 0; accent-color: var(--forest); vertical-align: middle; }
input[type="range"] { padding: 0; accent-color: var(--green); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field label, label.form-field { color: #5c6e56; font-size: 11px; font-weight: 650; }
.form-field small { color: var(--muted); font-size: 10px; font-weight: 400; }
.form-field.full, .form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.form-error { color: var(--red); font-size: 11px; }
.tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; margin-bottom: 24px; overflow-x: auto; border: 1px solid #e1e6d9; border-radius: 9px; background: #eaf0e2; }
.tab { min-height: 44px; border: 0; border-radius: 6px; padding: 9px 16px; color: #4e613f; background: transparent; font-size: 11px; font-weight: 650; white-space: nowrap; }
.tab.active, .tab[aria-selected="true"] { color: var(--forest); background: white; box-shadow: 0 1px 4px rgb(26 62 43 / 8%); }
.tab:hover:not(.active) { color: var(--ink); background: rgb(255 255 255 / 45%); }
.knowledge-card { padding: 24px; }
.knowledge-card .eyebrow { margin-top: 17px; margin-bottom: 10px; }
.knowledge-card h3 { margin-bottom: 10px; font-size: 17px; line-height: 1.4; }
.knowledge-card p { color: var(--muted); font-size: 12px; line-height: 1.85; }
.knowledge-card a { font-size: 11px; }
.knowledge-card .icon-circle { width: 39px; height: 39px; }
.knowledge-card ul, .knowledge-card ol { padding-left: 18px; color: #6d7e65; font-size: 12px; }
.knowledge-card li + li { margin-top: 7px; }
.prose { max-width: 760px; font-size: 13px; line-height: 1.85; }
.prose h2 { margin: 27px 0 12px; }
.prose h3 { margin-top: 21px; }
.prose p, .prose li { color: #657660; }
.empty-state { padding: 52px 26px; border: 1px dashed #d5e0cb; border-radius: 15px; background: #f9fbf4; text-align: center; }
.empty-state .icon-circle { width: 54px; height: 54px; margin-bottom: 19px; border-radius: 16px; }
.empty-state h3 { font-size: 17px; }
.empty-state p { max-width: 390px; margin: 0 auto 19px; color: var(--muted); font-size: 12px; }
.detail-list { display: grid; grid-template-columns: minmax(100px,.4fr) 1fr; gap: 0 20px; margin: 0; font-size: 12px; }
.detail-list dt, .detail-list dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.detail-list dt:last-of-type, .detail-list dd:last-of-type { border-bottom: 0; }

/* Dialog and feedback. */
.modal { width: min(720px,calc(100% - 40px)); max-height: min(88dvh,900px); padding: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 24px 100px rgb(12 41 26 / 20%); }
.modal::backdrop { background: rgb(12 32 23 / 43%); backdrop-filter: blur(4px); }
.modal-content { padding: 31px; }
.modal-content > :last-child { margin-bottom: 0; }
.modal-content h2 { padding-right: 40px; font-size: 24px; }
.modal-content .close-button, .modal-content > .btn-icon:first-child { float: right; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.modal-header h2 { margin: 0; padding: 0; }
.modal-header p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 100; bottom: 26px; left: calc(50% + var(--sidebar-width) / 2); max-width: min(540px,calc(100vw - 40px)); padding: 13px 22px; border: 1px solid #43654b; border-radius: 10px; color: #f1f5eb; background: var(--forest); box-shadow: 0 6px 28px rgb(19 52 38 / 18%); opacity: 0; transform: translate(-50%,15px); pointer-events: none; font-size: 12px; transition: opacity .2s ease, transform .2s ease; }
.toast.show, .toast.visible, .toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.toast:empty { display: none; }
.loading-state { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 65vh; gap: 17px; color: var(--muted); font-size: 12px; }
.loading-state p { margin: 0; }
.loading-leaf { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #dfe8d1; border-radius: 20px; background: #edf4e1; color: #70934e; }
.loading-leaf .icon { width: 31px; height: 31px; }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* Live application views. */
.btn > svg, .card-link > svg, .badge > svg, .search-box > svg { flex-shrink: 0; }
.btn > svg { width: 17px; height: 17px; }
.btn-icon > svg { width: 18px; height: 18px; }
.page-heading .eyebrow { margin: 0 0 11px; color: #56684c; font-size: 8px; font-weight: 750; letter-spacing: 1.5px; }
.page-heading h1 { text-wrap: balance; }
.section-heading .eyebrow, .card-header .eyebrow { margin: 0 0 7px; color: #56684c; font-size: 8px; font-weight: 750; letter-spacing: 1.4px; }
.section-heading h3 { margin: 0; }
.card-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 0; border: 0; background: transparent; text-align: left; line-height: 1.5; }
.card-link:hover { color: #235a34; text-decoration: none; }
.card-link:hover > svg { transform: translateX(3px); }
.card-link > svg { transition: transform .16s ease; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 5px; border-radius: 6px; color: #728465; background: #eaf0e2; font-size: 10px; vertical-align: 2px; letter-spacing: 0; }
#main > .card + .card, #main > .grid-3 + .card, #main > .dashboard-grid + .card { margin-top: 24px; }
.stats-grid + .dashboard-grid { margin-top: 23px; }
.stats-grid .metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 17px; font-size: 10px; }
.stats-grid .metric-label > svg { width: 16px; height: 16px; color: #879a72; }
.stats-grid .metric-value { display: block; margin: 0 0 8px; font-size: 28px; font-weight: 650; }
.stats-grid .metric-value small { font-size: 13px; font-weight: 450; }
.stats-grid .stat-card > .muted { display: block; color: #8b9784; font-size: 9px; }
.hero-badge { margin-bottom: 19px; padding: 5px 9px; border: 1px solid rgb(202 226 158 / 22%); border-radius: 5px; color: #c5dba0; background: rgb(208 233 164 / 6%); font-size: 8px; font-weight: 550; }
.hero-badge > svg { width: 13px; height: 13px; }
.hero-caption { position: absolute; z-index: 2; bottom: 21px; right: 27px; color: #9db287; font-size: 7px; letter-spacing: 1.2px; text-transform: uppercase; }
.hero .btn-lime { border-color: var(--lime); background: var(--lime); color: var(--forest-deep); }
.hero-copy > h2 { margin-bottom: 15px; }
.dashboard-grid:has(.weather-card) { align-items: stretch; }
.weather-card .card-header { align-items: center; margin-bottom: 16px; }
.weather-card .card-header h2 { display: flex; align-items: center; gap: 6px; font-size: 17px; }
.weather-card .card-header h2 > svg { width: 16px; height: 16px; color: #81966a; }
.weather-card > select { height: 40px; min-height: 40px; padding: 9px 12px; color: #56684c; background: #f9fbf5; border-color: #e4eadb; font-size: 10px; }
.weather-summary { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin: 23px 0 22px; }
.weather-temperature { display: flex; align-items: center; gap: 12px; }
.weather-temperature > svg { width: 41px; height: 41px; color: #cbb465; }
.weather-temperature > strong { font-size: 42px; font-weight: 500; line-height: 1.1; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.weather-temperature > strong > span { color: #56684c; font-size: 24px; font-weight: 450; vertical-align: 9px; letter-spacing: -1px; }
.weather-summary > div:last-child { text-align: right; }
.weather-summary .badge { font-size: 8px; }
.weather-summary p { margin: 6px 0 0; color: #56684c; font-size: 9px; }
#weather-panel .weather-strip { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 14px 0; margin-bottom: 15px; border-radius: 9px; background: #fafbf7; }
#weather-panel .weather-item { gap: 4px; padding: 0 8px; }
#weather-panel .weather-item > svg { width: 17px; height: 17px; margin-bottom: 3px; color: #819365; }
#weather-panel .weather-item strong { font-size: 16px; }
#weather-panel .weather-item strong small { color: #56684c; font-size: 9px; font-weight: 450; }
#weather-panel .weather-item > span { font-size: 8px; }
#weather-panel .mini-chart { position: relative; display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 11px; height: 112px; padding: 0 4px; margin: 2px 0 5px; }
.chart-column { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; min-width: 0; }
.chart-column > span { color: #56684c; font-size: 9px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-column > small { color: #56684c; font-size: 8px; }
.chart-bar-track { display: flex; align-items: flex-end; justify-content: center; width: 100%; max-width: 35px; height: 68px; border-radius: 5px; background: #f4f6ee; overflow: hidden; }
.chart-column .chart-bar { flex: 0 0 100%; width: 100%; height: 50%; min-height: 6px; border-radius: 5px 5px 0 0; background: #bbce98; }
.chart-column:first-child .chart-bar { background: #6f9251; }
.chart-column .chart-bar.bar-amber { background: #d6bd82; }
.weather-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 7px; }
.weather-footer .source-note { margin: 0; font-size: 9px; }
.weather-footer .card-link { font-size: 9px; }
#weather-panel > .source-note { margin-top: 4px; font-size: 8px; line-height: 1.8; }
.weather-table { max-height: 450px; margin-top: 25px; }
.weather-table th { position: sticky; z-index: 1; top: 0; }
.weather-table td:first-child { white-space: nowrap; }
.empty-state.compact { padding: 28px 20px; border-radius: 10px; color: #56684c; font-size: 11px; line-height: 1.8; }
.empty-state.compact > svg { margin-bottom: 15px; color: #b0bf8b; }
.empty-state.compact > p:last-child { margin-bottom: 0; }
.weather-card .empty-state.compact { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 19px; }
.rotation-teaser { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; overflow: hidden; background: #f0f4e7; border-color: #dfe8d2; }
.rotation-teaser::after { content: ""; position: absolute; z-index: 0; top: -73px; right: -82px; width: 180px; height: 180px; border: 1px solid #dce5cc; border-radius: 50%; box-shadow: 0 0 0 17px #f0f4e7, 0 0 0 18px #e0e8d4, 0 0 0 35px #f0f4e7, 0 0 0 36px #e4ebda; pointer-events: none; }
.rotation-teaser > * { position: relative; z-index: 1; }
.rotation-teaser > .eyebrow { margin-bottom: 19px; font-size: 7px; }
.rotation-teaser h2 { margin-bottom: 17px; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.15; letter-spacing: -.7px; }
.rotation-teaser > .muted { max-width: 275px; font-size: 11px; line-height: 1.9; }
.rotation-teaser > .btn { width: 100%; margin-top: auto; border-color: #cedcbf; background: #f7f9f0; }
.rotation-teaser .rotation-path { display: flex; flex-direction: row; align-items: center; width: 100%; gap: 9px; margin: 13px 0 0; }
.rotation-teaser .rotation-path > .group-chip { flex: 0 0 auto; padding: 9px 11px; border: 1px solid #cedbbe; border-radius: 7px; background: #e5edda; color: #496332; font-size: 11px; white-space: nowrap; }
.rotation-teaser .rotation-path > svg { width: 17px; height: 17px; flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: #8a682e; }
.rotation-teaser .path-line { flex: 1; min-width: 9px; height: 1px; padding: 0; border: 0; border-top: 1px dashed #b6c79e; border-radius: 0; background: none; }
.rotation-teaser > .source-note { margin: 11px 0 24px; font-size: 9px; }
.field-map { height: 135px; }
.field-map > svg { display: block; width: 100%; height: 100%; }
.field-map:has(svg)::before, .field-map:has(svg)::after { display: none; }
.field-map-1 > svg { filter: hue-rotate(-10deg) saturate(.8); }
.field-map-2 > svg { filter: hue-rotate(13deg) saturate(.75); }
.map-caption { position: absolute; bottom: 9px; left: 11px; padding: 3px 6px; border-radius: 4px; color: #688059; background: rgb(251 253 245 / 87%); font-size: 7px; letter-spacing: .2px; }
.field-card > .field-card-body { margin: 0; padding: 18px 19px 13px; }
.field-card-body .card-header { align-items: center; margin-bottom: 5px; gap: 8px; }
.field-card-body .card-header h3 { margin: 0; font-size: 14px; }
.field-card-body .badge { font-size: 8px; }
.field-card-body .crop-name { margin: 0 0 16px; color: #56684c; font-size: 10px; }
.field-meta { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 13px 0; margin-bottom: 5px; border-top: 1px solid #eaf0e2; border-bottom: 1px solid #eaf0e2; color: #56684c; font-size: 9px; }
.field-meta strong { color: #60764e; font-size: 10px; font-weight: 650; }
.field-card-body .card-link { justify-content: space-between; width: 100%; font-size: 10px; }
.field-detail { margin-top: 24px; }
.field-detail > select { max-width: 380px; }
.monitoring-stats { gap: 0; margin: 22px 0 23px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf7; }
.monitoring-stats > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.monitoring-stats > div:last-child { border: 0; }
.monitoring-stats .metric-label { display: block; margin-bottom: 7px; color: #87957b; font-size: 9px; }
.monitoring-stats h3 { margin: 0; font-size: 13px; font-weight: 650; line-height: 1.6; }
.search-card { padding: 23px; }
.search-card .search-box { border-color: #dbe5cd; background: #fcfdf9; }
.search-box kbd { padding: 1px 6px; border: 1px solid #e0e6d7; border-radius: 4px; color: #a2ad95; font-family: var(--font); font-size: 10px; }
.search-card .filter-row { flex-wrap: nowrap; margin: 14px 0; gap: 10px; }
.search-card .filter-row select { flex: 1; width: 25%; min-width: 0; max-width: none; font-size: 10px; }
.search-card .filter-row > input { flex: 1.2; min-width: 0; width: 25%; font-size: 10px; }
.search-card .filter-row .btn { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; font-size: 10px; }
.search-card .source-note { margin: 0; font-size: 9px; }
.product-name { display: block; min-height: 44px; max-width: 100%; padding: 6px 0; border: 0; color: #345236; background: transparent; font-size: 12px; font-weight: 750; line-height: 1.5; text-align: left; }
.product-name:hover { color: #1b6034; text-decoration: underline; text-underline-offset: 4px; }
.table-subtitle { max-width: 390px; margin-top: -2px; color: #86927c; font-size: 9px; line-height: 1.65; }
.data-table td:has(.product-name) { padding-top: 8px; padding-bottom: 15px; }
.data-table td:has(.product-name) + td { min-width: 90px; }
.data-table td > .group-list { flex-wrap: wrap; }
.data-table .btn-icon { min-width: 44px; width: 44px; height: 44px; padding: 0; background: #fcfdf9; border-color: #e6ecdf; }
.data-table th:last-child, .data-table td:last-child:has(> .btn-icon) { text-align: right; }
.pagination { gap: 18px; }
.pagination > span { color: #56684c; font-size: 10px; font-variant-numeric: tabular-nums; }
.pagination .btn { font-size: 10px; }
.card > select + .table-wrap { margin-top: 22px; }
.card > .form-field, form > .form-field { margin: 19px 0; }
form > .form-grid { margin-bottom: 19px; }
.card > select + .form-field { margin-top: 22px; }
.form-field + .form-grid { margin-top: 19px; }
.comparison { display: block; padding: 19px; margin: 19px 0; border: 1px solid #e0e7d7; border-radius: 11px; background: #f7faf1; }
.comparison > div { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.comparison > .eyebrow { display: block; margin: 0 0 8px; color: #56684c; font-size: 8px; }
.comparison > h3 { margin: 9px 0 12px; font-size: 15px; }
.comparison > p { margin: 12px 0 0; color: #56684c; font-size: 11px; line-height: 1.8; }
.comparison > .source-note { font-size: 10px; }
.comparison > .btn { margin-top: 17px; }
.comparison > .badge { font-size: 9px; }
.comparison.result-overlap { background: #fcf8ed; border-color: #eadfbe; }
.comparison.result-different { background: #f1f6e9; border-color: #dce8cc; }
.comparison.result-unknown, .comparison.result-incomparable { background: #f7f7f3; border-color: #e3e5db; }
.rotation-candidates > .muted { font-size: 12px; }
.rotation-candidates .product-grid { margin-top: 22px; }
.rotation-candidates .product-card { box-shadow: none; background: #fbfcf8; }
.rotation-candidates .product-card .card-link { margin-top: auto; }
.timeline + .source-note { margin-top: 23px; margin-bottom: 19px; }
.knowledge-card > .eyebrow { display: block; margin-top: 0; font-size: 8px; }
.knowledge-card > h2 { margin-top: 11px; margin-bottom: 14px; font-family: var(--serif); font-size: 29px; font-weight: 400; letter-spacing: -.4px; }
.knowledge-card > p:last-child { margin-bottom: 0; }
.card-header:has(.tabs) { align-items: center; }
.card-header > .tabs { margin-bottom: 0; }
.innovation { display: flex; flex-direction: column; }
.innovation > .eyebrow { margin-bottom: 12px; }
.innovation > .badge { margin-bottom: 16px; font-size: 8px; }
.innovation > h3 { margin-bottom: 12px; font-size: 16px; }
.innovation > p { font-size: 11px; }
.innovation > a { display: flex; align-items: center; min-height: 44px; margin-top: auto; font-size: 10px; }
.source-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-top: 20px; }
.source-grid .btn { justify-content: flex-start; min-height: 54px; padding: 12px 16px; font-size: 11px; text-align: left; background: #fafcf6; }
.source-grid .btn > svg { color: #83986a; }
.detail-product > .group-list { margin-bottom: 14px; }
.detail-product > .muted { font-size: 11px; line-height: 1.8; }
.detail-product > .detail-list { margin: 0 0 23px; }
.detail-product > h3 { margin-top: 26px; margin-bottom: 15px; font-size: 15px; }
.detail-product > .form-actions { justify-content: flex-start; }
.uses-list { display: grid; gap: 12px; }
.use-row { padding: 16px 18px; border: 1px solid #e3eada; border-left: 3px solid #b4c991; border-radius: 8px; background: #fbfcf7; }
.use-row > strong { display: block; margin-bottom: 6px; color: #597342; font-size: 12px; }
.use-row > p { margin: 0 0 7px; color: #7a886d; font-size: 11px; line-height: 1.8; }
.use-row > p:last-child { margin: 10px 0 0; font-size: 9px; }
.form-error:empty { display: none; }
.form-error:not(:empty) { margin: 17px 0 0; padding: 11px 14px; border-radius: 7px; background: var(--soft-red); }

@media (min-width: 1680px) {
  :root { --sidebar-width: 250px; }
  #main { padding-top: 43px; }
  .hero { min-height: 285px; padding: 37px 40px; }
  .hero h2, .hero h1 { font-size: 46px; }
  .hero p { font-size: 12px; }
}
@media (max-width: 1200px) {
  :root { --sidebar-width: 210px; }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .sidebar .brand { margin-left: 16px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  #main { padding-left: 28px; padding-right: 28px; }
  .app-footer { padding-left: 28px; padding-right: 28px; }
  .global-search { width: 240px; }
  .topbar-actions { gap: 10px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-4 { gap: 12px; }
  .stat-card { padding: 17px; }
  .stat-card .badge { right: 13px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
  .hero-copy { width: 70%; }
  .hero-art { width: 39%; }
  .card { padding: 20px; }
  .data-table td, .data-table th { padding-left: 13px; padding-right: 13px; }
}
@media (max-width: 1000px) and (min-width: 901px) {
  .global-search { width: 180px; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  :root { --sidebar-width: 0px; }
  .sidebar, .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  .app-shell { margin-left: 0; }
  .topbar { position: relative; z-index: 40; height: 73px; padding: 0 25px; gap: 16px; }
  .mobile-brand { display: inline-flex; gap: 7px; font-size: 26px; color: var(--forest); }
  .mobile-brand .brand-mark { width: 26px; height: 29px; color: var(--green); }
  .mobile-brand .brand-mark .icon { width: 25px; height: 28px; }
  .mobile-brand .brand-dot { color: #83a85b; }
  .global-search { width: min(34vw,290px); }
  .avatar { width: 32px; height: 32px; }
  .mobile-menu { position: relative; display: block; }
  .mobile-menu summary { list-style: none; border: 0; background: transparent; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary { color: var(--green); background: var(--soft-green); }
  .mobile-menu-panel { position: absolute; top: calc(100% + 15px); right: -3px; width: 250px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 13px 40px rgb(25 63 47 / 15%); }
  .mobile-menu-panel .eyebrow { display: block; padding: 6px 10px; margin-bottom: 7px; font-size: 8px; }
  .mobile-menu-panel button { display: flex; align-items: center; gap: 12px; min-height: 46px; width: 100%; padding: 10px; border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: 12px; }
  .mobile-menu-panel button.active, .mobile-menu-panel button[aria-current="page"] { background: var(--soft-green); color: var(--green); }
  .mobile-menu-panel button:hover { background: var(--soft-green); }
  .mobile-menu-panel .icon { width: 18px; height: 18px; }
  .mobile-demo-note { display: block; margin: 11px 10px 1px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
  .mobile-bottom-nav { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); min-height: 68px; padding: 7px 12px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid #e2e8d9; background: rgb(255 255 255 / 96%); backdrop-filter: blur(12px); }
  .mobile-bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 50px; padding: 5px 3px; border: 0; border-radius: 9px; color: #56684c; background: transparent; font-size: 9px; font-weight: 600; }
  .mobile-bottom-nav button .icon { width: 19px; height: 19px; }
  .mobile-bottom-nav button.active, .mobile-bottom-nav button[aria-current="page"] { color: var(--forest); background: #eff5e5; font-weight: 750; }
  #main { padding: 29px 25px 24px; min-height: calc(100dvh - 190px); }
  .app-footer { padding: 12px 25px calc(90px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(83px + env(safe-area-inset-bottom)); left: 50%; }
  .hero h2, .hero h1 { font-size: 36px; }
  .hero-copy { width: 64%; }
  .hero-art { width: 43%; }
  .grid-4 { gap: 13px; }
  .stat-card { padding: 17px 16px; }
  .stat-card .badge { position: static; margin-bottom: 8px; }
  .stat-card .icon-circle { margin-bottom: 13px; }
  .stat-card .metric-value { font-size: 25px; }
}
@media (max-width: 700px) {
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .page-heading h1 { font-size: 27px; }
  .page-heading { gap: 12px; }
  .page-heading > .btn { padding: 10px 12px; font-size: 10px; white-space: nowrap; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card { padding: 19px; }
  .stat-card .badge { position: absolute; top: 21px; right: 17px; }
  .stat-card .icon-circle { margin-bottom: 13px; }
  .hero { min-height: 265px; padding: 28px; }
  .hero-copy { width: 77%; }
  .hero h2, .hero h1 { font-size: 35px; }
  .hero-art { opacity: .65; width: 45%; }
  .hero-art::after { right: 35px; width: 62px; height: 62px; }
  .weather-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .weather-item:nth-child(5) { grid-column: 1 / -1; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
  .weather-item:nth-child(4) { border-right: 0; }
  .global-search { width: 180px; }
  .search-key, .topbar .export-button { display: none; }
  .topbar-actions { gap: 6px; }
  .comparison { gap: 13px; }
  .filter-row select { min-width: 120px; max-width: 100%; flex: 1; }
  .filter-row .group-list { margin-left: 0; }
  .modal-content { padding: 25px; }
  .app-footer { font-size: 8px; }
  .stats-grid .metric-value { font-size: 26px; }
  .stats-grid .metric-label { font-size: 10px; }
  .rotation-teaser h2 { font-size: 34px; }
  .rotation-teaser > .muted { max-width: 440px; }
  .rotation-teaser .rotation-path { max-width: 320px; }
  .rotation-teaser > .btn { width: auto; }
  .weather-card > select { font-size: 12px; min-height: 44px; }
  .weather-summary { margin: 25px 0; }
  .weather-temperature > strong { font-size: 44px; }
  .weather-temperature > svg { width: 43px; height: 43px; }
  #weather-panel .mini-chart { gap: 14px; }
  .field-meta { gap: 6px; }
  .search-card .filter-row { flex-wrap: wrap; }
  .search-card .filter-row select { flex: 1 1 40%; width: calc(50% - 5px); font-size: 12px; }
  .search-card .filter-row > input { flex: 1 1 50%; font-size: 12px; }
  .monitoring-stats { grid-template-columns: 1fr; }
  .monitoring-stats > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .monitoring-stats .metric-label { margin: 0; }
  .monitoring-stats h3 { font-size: 12px; text-align: right; }
}
@media (max-width: 520px) {
  .topbar { height: 68px; padding: 0 19px; }
  .mobile-brand { font-size: 25px; }
  .global-search { display: none; }
  .avatar { width: 31px; height: 31px; font-size: 9px; }
  .topbar-actions { gap: 10px; }
  .mobile-menu .btn-icon { width: 36px; min-width: 44px; }
  #main { padding: 26px 19px 20px; }
  .page-heading { align-items: flex-start; margin-bottom: 23px; }
  .page-heading h1 { font-size: 25px; letter-spacing: -.8px; }
  .page-heading p { font-size: 11px; line-height: 1.7; }
  .page-heading > .btn { min-height: 44px; padding: 9px 10px; font-size: 9px; }
  .page-heading > .btn .icon { width: 14px; height: 14px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .hero { min-height: 285px; margin-bottom: 17px; padding: 27px 23px; border-radius: 16px; }
  .hero-copy { width: 91%; }
  .hero .eyebrow { margin-bottom: 18px; font-size: 7px; }
  .hero h2, .hero h1 { max-width: 290px; margin-bottom: 13px; font-size: 33px; line-height: 1.12; }
  .hero p { max-width: 245px; font-size: 10px; line-height: 1.8; margin-bottom: 22px; }
  .hero .btn { min-height: 44px; padding: 10px 12px; font-size: 9px; }
  .hero .btn-secondary { margin-left: 5px; }
  .hero-art { width: 60%; opacity: .38; }
  .hero-art::after { right: 12px; top: 22px; width: 52px; height: 52px; }
  .hero-art::before { right: -365px; bottom: -405px; }
  .grid-2, .grid-3, .product-grid, .form-grid, .comparison { grid-template-columns: 1fr; }
  .grid-4 { gap: 11px; }
  .card { padding: 20px; border-radius: 14px; }
  .stat-card { padding: 16px; border-radius: 13px; }
  .stat-card .icon-circle { width: 32px; height: 32px; margin-bottom: 13px; }
  .stat-card .icon-circle .icon { width: 16px; height: 16px; }
  .stat-card .badge { top: 19px; right: 13px; padding: 2px 5px; font-size: 7px; }
  .stat-card .metric-value { font-size: 25px; }
  .stat-card .metric-label { font-size: 10px; }
  .stat-card .metric-note { font-size: 9px; }
  .section-heading { margin-top: 25px; margin-bottom: 13px; }
  .section-heading h2 { font-size: 16px; }
  .section-heading .btn { padding: 8px 10px; font-size: 9px; }
  .section-heading .card-link, .section-heading a { font-size: 10px; }
  .weather-strip { padding: 15px 0; margin-bottom: 17px; border-radius: 12px; }
  .weather-item { padding: 0 7px; }
  .weather-item strong { font-size: 15px; }
  .weather-item small, .weather-item span { font-size: 8px; }
  .weather-item .icon { width: 17px; height: 17px; }
  .weather-item strong span { font-size: 8px; }
  .search-box { min-height: 49px; padding: 0 13px; }
  .search-box input { font-size: 12px; }
  input, select, textarea { font-size: 16px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
  .form-field label { font-size: 11px; }
  .form-grid { gap: 16px; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1; }
  .filter-row { gap: 8px; }
  .filter-row select { min-width: calc(50% - 8px); width: calc(50% - 8px); font-size: 12px; }
  .results-meta { align-items: flex-start; font-size: 10px; }
  .product-card { padding: 20px; border-radius: 14px; }
  .product-card h3 { font-size: 18px; }
  .product-card .btn { min-height: 44px; }
  .data-table { min-width: 490px; }
  .data-table th { font-size: 8px; }
  .data-table td { padding-top: 15px; padding-bottom: 15px; }
  .rotation-path { flex-direction: column; gap: 11px; }
  .rotation-path > .icon { transform: rotate(90deg); }
  .rotation-path > :not(.icon) { padding: 18px; }
  .comparison > div { padding: 18px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 9px 12px; font-size: 10px; }
  .knowledge-card { padding: 22px; }
  .alert { padding: 14px; font-size: 10px; gap: 9px; }
  .source-note { font-size: 9px; }
  .detail-list { grid-template-columns: minmax(85px,.4fr) 1fr; gap: 0 12px; font-size: 11px; }
  .modal { width: calc(100% - 24px); max-height: 90dvh; border-radius: 17px; }
  .modal-content { padding: 23px 19px; }
  .modal-content h2 { font-size: 22px; }
  .app-footer { flex-direction: column; align-items: flex-start; gap: 5px; padding: 10px 19px calc(88px + env(safe-area-inset-bottom)); }
  .toast { width: calc(100% - 32px); max-width: 420px; padding: 13px 16px; font-size: 11px; }
  .page-heading .eyebrow { margin-bottom: 9px; font-size: 7px; }
  .hero-badge { margin-bottom: 18px; font-size: 7px; }
  .hero-caption { right: 20px; bottom: 13px; color: #9ab387; font-size: 6px; letter-spacing: .9px; }
  .hero-copy > h2 { margin-bottom: 13px; }
  .stats-grid .metric-label { min-height: 21px; margin-bottom: 13px; font-size: 9px; gap: 5px; }
  .stats-grid .metric-label > svg { width: 14px; height: 14px; }
  .stats-grid .metric-value { margin-bottom: 7px; font-size: 25px; }
  .stats-grid .stat-card > .muted { font-size: 8px; }
  .stats-grid + .dashboard-grid { margin-top: 18px; }
  .weather-summary { gap: 10px; }
  .weather-temperature { gap: 9px; }
  .weather-temperature > strong { font-size: 38px; letter-spacing: -1.8px; }
  .weather-temperature > strong > span { font-size: 20px; vertical-align: 9px; }
  .weather-temperature > svg { width: 33px; height: 33px; }
  .weather-summary .badge { font-size: 7px; }
  .weather-summary p { font-size: 8px; }
  #weather-panel .mini-chart { gap: 10px; }
  #weather-panel .weather-item { padding-left: 6px; padding-right: 6px; }
  #weather-panel .weather-item strong { font-size: 14px; }
  #weather-panel .weather-item strong small { font-size: 8px; }
  .weather-footer .card-link { font-size: 9px; }
  .rotation-teaser { padding: 24px; }
  .rotation-teaser h2 { font-size: 33px; }
  .rotation-teaser > .btn { width: 100%; }
  .field-map { height: 145px; }
  .field-card-body .card-header h3 { font-size: 16px; }
  .field-card-body .crop-name { font-size: 11px; }
  .field-meta { font-size: 10px; }
  .field-meta strong { font-size: 11px; }
  .field-card-body .card-link { font-size: 11px; }
  .field-card > .field-card-body { padding: 19px 20px 13px; }
  .field-detail .section-heading { align-items: flex-start; }
  .field-detail .section-heading h3 { font-size: 13px; line-height: 1.5; }
  .field-detail .section-heading .btn { flex: 0 0 auto; }
  .source-grid { grid-template-columns: 1fr; }
  .source-grid .btn { font-size: 10px; }
  .search-card { padding: 18px; }
  .search-card .filter-row > input { font-size: 16px; }
  .search-card .filter-row select { font-size: 16px; }
  .search-card .filter-row .btn { font-size: 10px; }
  .search-card .source-note { font-size: 8px; }
  .search-card .search-box input { font-size: 16px; }
  .search-card .search-box kbd { display: none; }
  .pagination { gap: 12px; }
  .pagination > span { font-size: 9px; }
  .pagination .btn { padding-left: 12px; padding-right: 12px; font-size: 9px; }
  .card-header:has(.tabs) { align-items: flex-start; flex-direction: column; }
  .card-header > .tabs { width: 100%; }
  .knowledge-card > h2 { font-size: 30px; }
  .section-heading > .badge { max-width: 130px; font-size: 7px; text-align: center; }
  .comparison { padding: 17px; }
  .comparison > .group-list { padding: 0; }
  .detail-product .form-actions { flex-direction: column; }
  .detail-product .form-actions > .btn { width: 100%; }
}
@media (max-width: 370px) {
  #main { padding-left: 15px; padding-right: 15px; }
  .topbar { padding-left: 16px; padding-right: 13px; }
  .page-heading h1 { font-size: 23px; }
  .hero { padding-left: 20px; padding-right: 18px; }
  .hero h2, .hero h1 { font-size: 30px; }
  .hero-copy { width: 100%; }
  .hero .btn { padding-left: 10px; padding-right: 10px; }
  .stat-card { padding: 15px 13px; }
  .stat-card .badge { right: 10px; }
  .mobile-bottom-nav { padding-left: 7px; padding-right: 7px; }
  .mobile-bottom-nav button { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover, .btn-icon:hover, .product-card:hover { transform: none; }
}
@media print {
  .sidebar, .topbar, .mobile-bottom-nav, .app-footer, .btn, .btn-icon, .toast, .mobile-menu { display: none !important; }
  body { background: white; font-size: 11px; }
  .app-shell { margin-left: 0; }
  #main { max-width: none; padding: 0; }
  .card, .stat-card, .product-card, .field-card, .knowledge-card { box-shadow: none; break-inside: avoid; }
  .hero { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

.chart-bar.bar-unknown { background: #a5aaa3; }

/* Research workspace: readable field notes rather than a second dashboard. */
.source-note { color: #5d6c5e; }
.source-note a { color: #3e663a; }
.stats-grid .stat-card > .muted { color: #596d52; }
.hero::before { background: none; }
.hero-art::after { display: none; }
.hero-caption { color: #c0d4ae; }
.knowledge-tabs { display:flex; gap:26px; border-bottom:1px solid var(--line); margin:0 0 30px; overflow:auto; }
.knowledge-tabs button { min-height:48px; border:0; border-bottom:3px solid transparent; padding:12px 0; white-space:nowrap; color:var(--muted); background:transparent; font-size:13px; font-weight:650; }
.knowledge-tabs button.active { color:var(--forest); border-bottom-color:var(--forest); }
.guide-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:34px; margin:0 0 38px; }
.guide-nav { align-self:start; position:sticky; top:24px; }
.guide-choice { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:48px; padding:12px 14px; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--ink); text-align:left; font-size:13px; }
.guide-choice span:first-child::first-letter { text-transform:uppercase; }
.guide-choice.active { background:#e8eedf; color:#254d31; font-weight:750; border-radius:5px; border-bottom-color:transparent; }
.guide-choice span:last-child { color:#57704b; }
.guide-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.guide-heading h2 { font-family:var(--serif); font-size:34px; font-weight:400; margin:5px 0 8px; }
.guide-heading h2::first-letter { text-transform:uppercase; }
.guide-intro { max-width:680px; margin:6px 0 25px; font-size:14px; color:var(--muted); line-height:1.8; }
.guide-problem { border-top:1px solid #cbd5c4; }
.guide-problem:last-child { border-bottom:1px solid #cbd5c4; }
.guide-problem > summary { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:21px 0; list-style:none; cursor:pointer; }
.guide-problem > summary::-webkit-details-marker { display:none; }
.guide-problem > summary .eyebrow { display:block; font-size:9px; margin-bottom:6px; }
.guide-problem > summary strong { font-size:17px; font-weight:650; line-height:1.5; }
.guide-toggle { font-size:24px; font-weight:400; transition:transform .15s; }
.guide-problem[open] .guide-toggle { transform:rotate(45deg); }
.guide-problem-body { padding:0 0 26px; }
.guide-columns { display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.guide-content h3 { font-size:13px; line-height:1.6; margin:0 0 7px; }
.guide-content p, .guide-content li, .guide-label { font-size:13px; line-height:1.85; }
.guide-columns p { margin:0 0 20px; color:#4e6053; }
.guide-nonchemical { padding:17px 20px; background:#edf1e7; border-left:3px solid #758e5b; }
.guide-nonchemical ul { margin:7px 0 0; padding-left:18px; }
.guide-rotation { margin:18px 0 0; }
.guide-examples > .section-heading { margin-bottom:0; }
.guide-examples > .source-note { margin:9px 0 24px; }
.guide-product { padding:25px 0; border-bottom:1px solid #d6dfd0; }
.guide-product:first-of-type { border-top:1px solid #d6dfd0; }
.guide-product-heading { display:flex; align-items:start; justify-content:space-between; gap:15px; }
.guide-product-heading h3 { font-size:20px; margin:0; }
.guide-product-heading .source-note { margin:2px 0 0; font-size:11px; }
.guide-use { margin:17px 0; }
.guide-label { display:grid; grid-template-columns:155px minmax(0,1fr); gap:12px 20px; margin:18px 0; }
.guide-label dt { color:var(--muted); }
.guide-label dd { margin:0; }
.guide-restrictions { background:#f0f2e9; border-radius:5px; padding:13px 17px; }
.guide-restrictions > h4 { font-size:13px; font-weight:650; margin:0; }
.guide-document-dates { margin:16px 0 0; }
.guide-restrictions ul { padding-left:18px; }
.guide-source-actions { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; margin:20px 0 0; font-size:12px; }
.guide-source-actions > a { padding:10px 0; }
.guide-sources { margin:28px 0; }
.guide-sources ol { padding-left:20px; }
.guide-sources li { margin-bottom:9px; overflow-wrap:anywhere; }
.guide-content .eyebrow { font-size:9px; }
.guide-nav > .source-note { font-size:11px; }
.search-box:focus-within { outline:2px solid #4d6e37; outline-offset:4px; }
@media (max-width:1100px) {
  .guide-layout { grid-template-columns:155px minmax(0,1fr); gap:22px; }
  .guide-heading { align-items:start; flex-direction:column; gap:8px; }
  .guide-columns { grid-template-columns:1fr; gap:0; }
}
@media (max-width:700px) {
  .guide-layout { grid-template-columns:1fr; gap:22px; }
  .guide-nav { display:flex; flex-wrap:wrap; gap:7px; position:static; }
  .guide-nav > .eyebrow { width:100%; }
  .guide-nav > .source-note { display:none; }
  .guide-choice { width:auto; min-height:44px; border:1px solid #cdd7c4; border-radius:5px; padding:10px 12px; font-size:12px; }
  .guide-choice span:last-child { display:none; }
  .guide-heading h2 { font-size:33px; }
  .guide-content p, .guide-content li, .guide-label { font-size:14px; }
  .guide-label { grid-template-columns:1fr; gap:4px; }
  .guide-label dd { margin-bottom:11px; }
  .guide-product-heading { flex-direction:column; gap:12px; }
  .knowledge-tabs { gap:21px; margin-bottom:22px; }
  .knowledge-tabs button { font-size:12px; }
  .hero { min-height:250px; }
  .hero p { font-size:12px; max-width:280px; }
  .hero .btn { font-size:12px; }
  .hero-caption { display:none; }
  .source-note, .search-card .source-note, #weather-panel > .source-note { font-size:11px; }
  .stats-grid .stat-card > .muted { font-size:10px; }
}
.table-subtitle { color:#586a50; font-size:12px; }
.data-table th { color:#52664a; font-size:10px; }
.monitoring-stats .metric-label { color:#586a50; font-size:11px; }
.guide-source-actions a, .guide-sources a { color:#315b38; text-underline-offset:3px; }
@media (prefers-reduced-motion:reduce) { .guide-toggle { transition:none; } }

.page-heading .eyebrow, .section-heading .eyebrow, .card-header .eyebrow { font-size:10px; }
.app-footer { font-size:11px; }

@media(max-width:900px){input,select,textarea,#field-select,.search-card .filter-row select,.search-card .filter-row > input{font-size:16px;}}
