:root {
  --ink: #1b1c19;
  --muted: #737973;
  --field: #1b3022;
  --field-soft: #dce9dd;
  --earth: #805533;
  --leather: #d4a373;
  --canvas: #fbf9f4;
  --paper: #fffefa;
  --surface-low: #f5f3ee;
  --surface-high: #eae8e3;
  --line: #c3c8c1;
  --danger-bg: #ffebe7;
  --danger: #a1392b;
  --shadow-ambient: 0 14px 34px rgba(62, 44, 28, .06);
  --glass: rgba(255, 254, 250, .72);
  --glass-strong: rgba(255, 254, 250, .88);
  --glass-line: rgba(255, 255, 255, .78);
  --glass-shadow: 0 18px 42px rgba(44, 57, 43, .09), 0 2px 8px rgba(62, 44, 28, .05);
  --glass-blur: blur(20px) saturate(125%);
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 8% 0%, rgba(220,233,221,.72), transparent 34%), var(--canvas); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: clamp(2rem, 4vw, 3rem); } h2 { font-size: 1.45rem; }
button, input, select { font: inherit; }
button { transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; } button:active { transform: scale(.98); }
a { color: inherit; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 268px; flex: 0 0 268px; padding: 30px 16px; background: var(--glass); border-right: 1px solid var(--glass-line); color: var(--ink); box-shadow: 8px 0 30px rgba(44,57,43,.04); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 30px; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; object-fit: cover; }
.brand strong, .brand small { display: block; } .brand strong { font-size: 14px; letter-spacing: -.01em; } .brand small { margin-top: 3px; color: var(--earth); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; } .soil { color: var(--earth); } .straw { color: var(--leather); }
.sidebar .eyebrow { padding: 0 12px; color: var(--muted); }
.nav { display: grid; gap: 3px; } .nav-link { padding: 11px 12px; border-radius: 8px; color: #51584f; text-decoration: none; font-size: 13px; font-weight: 600; } .nav-link:hover { background: rgba(255,255,255,.48); color: var(--ink); } .nav-link.active { background: rgba(27,48,34,.92); color: var(--canvas); box-shadow: 0 6px 18px rgba(27,48,34,.16); }
.sidebar-foot { margin-top: 30px; padding: 18px 12px 0; border-top: 1px solid rgba(128,85,51,.16); color: var(--muted); font-size: 12px; } .sidebar-foot span { display: block; color: var(--ink); font-weight: 700; } .sidebar-foot button { margin-top: 7px; padding: 0; border: 0; background: transparent; color: var(--earth); cursor: pointer; font-size: 12px; font-weight: 700; }
.main-content { min-width: 0; flex: 1; padding: 58px clamp(20px, 5vw, 76px); }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; max-width: 1180px; margin: 0 auto 34px; } .muted { color: var(--muted); }
.primary-button, .secondary-button { border: 1px solid transparent; border-radius: 10px; padding: 11px 18px; cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .02em; } .primary-button { background: var(--field); color: var(--canvas); box-shadow: 0 8px 20px rgba(27,48,34,.15); } .primary-button:hover { background: #284832; } .secondary-button { background: rgba(255,255,255,.52); color: var(--field); border-color: var(--glass-line); box-shadow: 0 5px 16px rgba(44,57,43,.05); }
.hero-card { display: flex; align-items: stretch; justify-content: space-between; gap: 28px; max-width: 1180px; min-height: 220px; margin: 0 auto 18px; padding: 0; overflow: hidden; border-radius: 12px; background: var(--field); color: var(--canvas); box-shadow: var(--shadow-ambient); } .hero-copy { display: flex; flex: 1 1 55%; flex-direction: column; justify-content: center; padding: 38px; } .hero-copy p { max-width: 560px; color: #dce9dd; } .hero-copy h2 { font-size: clamp(2rem, 4vw, 3rem); } .hero-media { flex: 0 1 42%; min-height: 220px; } .hero-media img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: center; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1180px; margin: 0 auto 18px; } .metric-card, .paper-card { border: 1px solid var(--glass-line); border-radius: 16px; background: var(--glass); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); } .metric-card { padding: 20px; } .metric-card.accent { background: rgba(220,233,221,.74); } .metric-icon { color: var(--earth); font-size: 20px; } .metric-card p { margin: 14px 0 4px; color: var(--muted); font-weight: 600; } .metric-card strong { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; } .metric-card small { color: var(--muted); }
.content-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; max-width: 1180px; margin: 0 auto; } .paper-card { padding: 26px; } .card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } .text-link { color: var(--earth); font-size: 13px; font-weight: 700; text-decoration: none; } .date-stamp { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.empty-state { padding: 42px 12px 14px; text-align: center; color: var(--muted); } .empty-state span { display: block; color: var(--earth); font-size: 30px; } .empty-state p { margin: 8px auto 20px; max-width: 330px; } .checklist { display: grid; align-content: start; gap: 15px; } .checklist h2 { margin-bottom: 8px; } .checklist label { display: flex; align-items: center; gap: 10px; color: #51584f; } .checklist input { accent-color: var(--field); }
.auth-card { width: min(100%, 500px); margin: 5vh auto; padding: 36px; border: 1px solid var(--glass-line); border-radius: 20px; background: var(--glass-strong); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); } .auth-card h1 { margin-bottom: 8px; } .form-stack { display: grid; gap: 16px; margin-top: 24px; } .form-stack label { display: grid; gap: 6px; color: #51584f; font-size: 14px; font-weight: 600; } .form-stack input, .form-stack select { width: 100%; border: 1px solid rgba(128,85,51,.18); border-radius: 10px; padding: 12px; background: rgba(245,243,238,.72); color: var(--ink); outline: none; } .form-stack input:focus, .form-stack select:focus { border-color: var(--field); box-shadow: 0 0 0 3px rgba(27,48,34,.14); } .form-error { padding: 10px 12px; border-radius: 8px; background: var(--danger-bg); color: var(--danger); font-weight: 700; } .auth-link { margin: 20px 0 0; color: var(--muted); } .auth-link a { color: var(--earth); font-weight: 700; }
.record-list { display: grid; gap: 10px; margin-top: 18px; } .record-list > div { padding: 14px 0; border-bottom: 1px solid rgba(128,85,51,.14); } .record-list strong, .record-list small { display: block; } .record-list small { margin-top: 4px; color: var(--muted); }
.record-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; } .record-card > div { min-width: 0; } .record-card strong { overflow-wrap: anywhere; } .status-badge { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: var(--field); color: var(--canvas); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; } .status-badge.subtle { background: var(--field-soft); color: var(--field); }
.record-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.danger-button { border: 1px solid rgba(161,57,43,.28); border-radius: 7px; padding: 6px 10px; background: transparent; color: var(--danger); cursor: pointer; font-size: 11px; font-weight: 700; }
.danger-button:hover { background: var(--danger-bg); }
.result-grid { display: grid; gap: 14px; margin-top: 20px; } .result-grid div { padding: 16px; border-radius: 8px; background: var(--field-soft); } .result-grid small, .result-grid strong { display: block; } .result-grid small { color: var(--field); font-weight: 700; } .result-grid strong { margin-top: 4px; font-size: 1.25rem; letter-spacing: -.02em; }
.auth-logo { display: block; width: 92px; height: 92px; margin-bottom: 20px; border-radius: 18px; object-fit: cover; }
.clerk-auth { margin-top: 24px; }
.password-field { position: relative; } .password-field input { padding-right: 82px; } .password-toggle { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); border: 0; background: transparent; color: var(--earth); cursor: pointer; font-size: 12px; font-weight: 700; } .password-toggle:active { transform: translateY(-50%); }
.button-loading[hidden] { display: none; } button:disabled { cursor: wait; opacity: .65; }
.flash-stack { max-width: 1180px; margin: 0 auto 18px; } .flash { padding: 12px 16px; border-radius: 8px; font-weight: 700; } .flash.success { background: var(--field-soft); color: var(--field); } .flash.error { background: var(--danger-bg); color: var(--danger); }
.filter-bar { display: flex; gap: 8px; margin: 18px 0; } .filter-bar input, .filter-bar select { min-width: 0; flex: 1; border: 1px solid rgba(128,85,51,.18); border-radius: 10px; padding: 10px; background: rgba(245,243,238,.72); color: var(--ink); } .filter-bar .secondary-button { flex: 0 0 auto; }
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 1180px; margin: 0 auto 18px; } .quick-actions a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--glass-line); border-radius: 12px; background: rgba(255,255,255,.48); color: var(--field); text-decoration: none; font-size: 13px; font-weight: 700; box-shadow: 0 7px 18px rgba(44,57,43,.05); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); } .quick-actions a:hover { background: rgba(220,233,221,.72); } .quick-actions span { font-size: 18px; }
.activity-list { display: grid; gap: 4px; margin-top: 18px; } .activity-list > div { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(128,85,51,.14); } .activity-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--earth); box-shadow: 0 0 0 4px var(--field-soft); } .activity-list strong, .activity-list small { display: block; } .activity-list small { margin-top: 3px; color: var(--muted); }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .farm-map { min-height: 330px; margin-top: 18px; border-radius: 8px; overflow: hidden; background: var(--surface-high); } .map-help { margin: 16px 0 0; font-size: 12px; } .report-link { display: inline-block; margin-top: 18px; text-decoration: none; }
.map-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 18px; max-width: 1180px; margin: 0 auto; } .map-stage { min-width: 0; } .map-stage .farm-map { min-height: 560px; } .map-sidebar { display: grid; align-content: start; gap: 18px; } .file-drop { padding: 16px; border: 1px dashed var(--earth); border-radius: 8px; background: var(--surface-low); } .file-drop input { margin-top: 8px; padding: 0; border: 0; background: transparent; } .file-drop small { color: var(--muted); font-weight: 400; }
.attention-grid { display: grid; gap: 10px; max-width: 1180px; margin: 0 auto 18px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.attention-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border: 1px solid var(--glass-line); border-radius: 14px; background: var(--glass); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.attention-card > div { min-width: 0; } .attention-card strong { display: block; } .attention-card p { margin: 3px 0 0; color: var(--muted); font-size: 13px; } .attention-card.warning { border-left: 4px solid var(--leather); } .attention-card.info { border-left: 4px solid var(--field); } .attention-card.danger { border-left: 4px solid var(--danger); } .attention-dot { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--leather); } .attention-card.info .attention-dot { background: var(--field); } .attention-card.danger .attention-dot { background: var(--danger); }
.property-overview { max-width: 1180px; margin: 0 auto 18px; padding: 24px 26px; } .property-summary-list { display: grid; gap: 2px; } .property-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid rgba(128,85,51,.12); } .property-summary-row strong, .property-summary-row small { display: block; } .property-summary-row small { margin-top: 3px; color: var(--muted); } .property-summary-stats { display: flex; gap: 22px; text-align: right; } .property-summary-stats span { min-width: 62px; } .property-summary-stats strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.editorial-shell { position: relative; overflow: hidden; }
.editorial-shell::before { position: fixed; z-index: -1; inset: 0; background: linear-gradient(115deg, rgba(251,249,244,.92), rgba(251,249,244,.68)), url('/static/images/cattle-pasture.jpeg') center / cover; content: ''; pointer-events: none; }
.main-content { padding-top: 44px; padding-bottom: 72px; }
.topbar h1 { max-width: 720px; text-wrap: balance; } .topbar .muted { max-width: 620px; text-wrap: pretty; }
.hero-card { min-height: 286px; border: 1px solid rgba(255,255,255,.22); border-radius: 24px; box-shadow: 0 24px 56px rgba(27,48,34,.18); } .hero-copy { padding: 46px; } .hero-copy h2 { max-width: 560px; text-wrap: balance; } .hero-media { position: relative; } .hero-media::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,48,34,.22), transparent 42%); content: ''; pointer-events: none; } .hero-media img { min-height: 286px; } .hero-caption { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: #dce9dd; font-size: 12px; font-weight: 700; } .hero-caption-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leather); box-shadow: 0 0 0 5px rgba(212,163,115,.18); }
.metric-card { min-height: 142px; padding: 22px; } .metric-card:hover, .paper-card:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(44,57,43,.13), 0 2px 8px rgba(62,44,28,.05); } .metric-card, .paper-card { transition: transform .2s ease, box-shadow .2s ease; }
.photo-strip { display: grid; grid-template-columns: 1.15fr .9fr .9fr; gap: 12px; max-width: 1180px; margin: 18px auto 0; overflow: hidden; border: 1px solid rgba(255,255,255,.76); border-radius: 20px; background: rgba(27,48,34,.92); box-shadow: var(--glass-shadow); } .photo-strip-copy { display: flex; flex-direction: column; justify-content: center; padding: 30px; color: var(--canvas); } .photo-strip-copy h2 { font-size: 1.7rem; text-wrap: balance; } .photo-strip-copy p:last-child { color: #dce9dd; } .photo-strip img { width: 100%; height: 220px; object-fit: cover; }
.paper-card, .metric-card, .attention-card, .quick-actions a { border-color: rgba(255,255,255,.9); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (max-width: 900px) { .sidebar { width: 230px; flex-basis: 230px; } .metric-grid, .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .map-workspace { grid-template-columns: 1fr; } .map-stage .farm-map { min-height: 430px; } }
@media (max-width: 680px) { .app-shell { display: block; } .sidebar { position: sticky; top: 0; z-index: 5; width: auto; padding: 14px 12px 10px; } .brand { padding: 0 8px 14px; } .sidebar .eyebrow, .sidebar-foot { display: none; } .nav { display: flex; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; } .nav::-webkit-scrollbar { display: none; } .nav-link { flex: 0 0 auto; white-space: nowrap; } .main-content { padding: 28px 16px; } .topbar { display: block; } .primary-button { margin-top: 18px; } .content-grid { grid-template-columns: 1fr; } .filter-bar { flex-wrap: wrap; } .filter-bar input { flex-basis: 100%; } .two-fields { grid-template-columns: 1fr; } .hero-card { display: block; } .hero-copy { padding: 28px 24px; } .hero-media, .hero-media img { min-height: 170px; height: 170px; } }
@media (max-width: 680px) { .attention-card { align-items: flex-start; flex-direction: column; } .property-overview { padding: 20px 18px; } .property-summary-row { align-items: flex-start; flex-direction: column; } .property-summary-stats { width: 100%; justify-content: space-between; gap: 8px; text-align: left; } }
@media (max-width: 680px) { .main-content { padding-top: 28px; } .hero-card { border-radius: 18px; } .hero-copy { padding: 28px 24px; } .photo-strip { grid-template-columns: 1fr 1fr; border-radius: 16px; } .photo-strip-copy { grid-column: 1 / -1; padding: 24px; } .photo-strip img { height: 150px; } }
