:root {
  --forest-950: #10291d;
  --forest-900: #173e2a;
  --forest-800: #20563a;
  --forest-700: #2f704d;
  --forest-100: #e5efe6;
  --cream: #f3f5ef;
  --surface: #ffffff;
  --text: #1d2a22;
  --muted: #69756d;
  --line: #dfe6de;
  --yellow: #f4d35e;
  --amber: #d88928;
  --red: #c34f42;
  --blue: #347a96;
  --shadow: 0 12px 30px rgba(20, 52, 35, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 18px; background: white; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 20; display: flex; flex-direction: column; padding: 26px 18px; color: white; background: var(--forest-950); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--forest-950); background: var(--yellow); font-weight: 900; font-size: 22px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 19px; }
.brand small { margin-top: 2px; color: #a9baaf; font-size: 10px; letter-spacing: .04em; }
.main-nav { display: grid; gap: 6px; }
.main-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 11px 13px; border-radius: 11px; color: #c7d4cc; font-size: 14px; font-weight: 600; }
.main-nav a span { width: 22px; text-align: center; color: #8fb59a; font-size: 18px; }
.main-nav a:hover, .main-nav a.active { color: white; background: rgba(255,255,255,.1); }
.main-nav a.active span { color: var(--yellow); }
.sidebar-note { display: flex; gap: 10px; margin-top: auto; padding: 15px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.05); border-radius: 12px; }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 12px; }
.sidebar-note small { margin-top: 4px; color: #a9baaf; font-size: 10px; line-height: 1.4; }
.status-dot { flex: none; width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: #64c67b; box-shadow: 0 0 0 4px rgba(100,198,123,.13); }
.user-avatar { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--forest-950); background: var(--yellow); font-size: 13px; font-weight: 900; }

.member-list, .audit-list { display: grid; gap: 10px; }
.member-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }
.member-row strong, .member-row small { display: block; }
.member-row small { margin-top: 4px; color: var(--muted); }
.member-actions { display: flex; align-items: center; gap: 8px; }
.member-actions select { min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.audit-row { display: grid; grid-template-columns: 120px minmax(150px, .8fr) minmax(180px, 1fr) minmax(180px, 1fr); gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.audit-row:last-child { border-bottom: 0; }
.audit-row time, .audit-row small { color: var(--muted); }

.page-shell { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.farm-switcher small, .farm-switcher strong { display: block; }
.farm-switcher small { margin-bottom: 2px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.farm-switcher strong { font-size: 14px; }
.farm-switcher-form select { max-width: 260px; padding: 3px 25px 3px 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 14px; font-weight: 750; cursor: pointer; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.date-pill { color: var(--muted); font-size: 13px; }
.menu-button { display: none; }
.sidebar-backdrop { display: none; }
.page-content { max-width: 1440px; margin: auto; padding: 24px; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(26px, 3vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: 19px; letter-spacing: -.02em; }
h3 { margin-bottom: 8px; }
.eyebrow { margin-bottom: 5px; color: var(--forest-700); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lead { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.welcome-row, .field-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 750; font-size: 13px; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--forest-800); }
.button-primary:hover { background: var(--forest-900); }
.button-secondary { color: var(--forest-800); border-color: #cbd8cd; background: white; }
.button-ghost { color: var(--muted); background: transparent; }
.button-small { min-height: 36px; padding: 8px 13px; font-size: 12px; }
.icon-button { width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.logout-button { padding: 6px 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.logout-button:hover { color: var(--forest-800); }
.reminder-button:disabled { cursor: not-allowed; opacity: .65; }

.messages { display: grid; gap: 8px; margin-bottom: 20px; }
.message { padding: 13px 16px; border: 1px solid #bed8c2; border-radius: 10px; color: #21532f; background: #e8f5e9; font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 15px rgba(20,52,35,.03); }
.stat-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 20px; font-weight: 800; }
.stat-icon.green { color: var(--forest-700); background: #e5f0e7; }
.stat-icon.amber { color: #9b651d; background: #fff3d6; }
.stat-icon.red { color: #a23f36; background: #fce8e5; }
.stat-icon.blue { color: #266b84; background: #e4f2f6; }
.stat-card small, .stat-card strong, .stat-card span { display: block; }
.stat-card small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.stat-card strong { margin: 3px 0; font-size: 23px; }
.stat-card div > span { color: var(--muted); font-size: 11px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; }
.card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.span-2 { grid-column: auto; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.card-header .eyebrow { margin-bottom: 5px; }
.card-header > a { color: var(--forest-700); font-size: 12px; font-weight: 700; }
.task-list { display: grid; }
.task-row { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid #edf0ec; }
.task-row:first-child { padding-top: 0; border-top: 0; }
.task-row.overdue .task-info strong { color: #a43d34; }
.priority { width: 4px; height: 38px; flex: none; border-radius: 10px; background: #9bab9f; }
.priority-high { background: var(--red); }
.priority-medium { background: var(--amber); }
.priority-low { background: var(--blue); }
.task-date { width: 32px; flex: none; text-align: center; }
.task-date strong, .task-date small { display: block; }
.task-date strong { font-size: 17px; }
.task-date small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.task-info { min-width: 0; flex: 1; }
.task-info strong, .task-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-info strong { font-size: 13px; }
.task-info span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.badge { padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.badge-high { color: #9f382f; background: #fce8e5; }
.badge-medium { color: #976016; background: #fff3d6; }
.badge-low { color: #27667d; background: #e4f2f6; }
.complete-button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #cbd8cd; border-radius: 50%; color: var(--forest-700); background: white; cursor: pointer; }
.complete-button:hover { color: white; background: var(--forest-700); }

.calendar-card { margin-bottom: 18px; overflow: hidden; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; text-align: center; }
.calendar-toolbar .eyebrow { margin-bottom: 3px; }
.calendar-legend { display: flex; justify-content: flex-end; gap: 18px; margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-dot { width: 8px; height: 8px; border-radius: 50%; }
.calendar-dot.task { background: var(--forest-700); }
.calendar-dot.treatment { background: var(--blue); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(105px, 1fr)); overflow-x: auto; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.calendar-weekday { padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); background: #f6f8f4; text-align: center; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.calendar-day { min-height: 116px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.calendar-day > time { width: 25px; height: 25px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 50%; font-size: 11px; font-weight: 800; }
.calendar-day.outside-month { background: #fafbf9; color: #a8afa9; }
.calendar-day.today > time { color: white; background: var(--forest-800); }
.calendar-events { display: grid; gap: 4px; }
.calendar-event { min-width: 0; display: block; padding: 5px 6px; border-left: 3px solid var(--forest-700); border-radius: 5px; background: var(--forest-100); }
.calendar-event.treatment { border-left-color: var(--blue); background: #eaf4f7; }
.calendar-event.done { opacity: .78; }
.calendar-event strong, .calendar-event span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event strong { font-size: 9px; }
.calendar-event span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.schedule-card { margin-bottom: 18px; }
.schedule-count { color: var(--muted); font-size: 10px; font-weight: 800; }
.schedule-list { display: grid; }
.schedule-row { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-top: 1px solid #edf0ec; }
.schedule-row:first-child { padding-top: 0; border-top: 0; }
.schedule-row.past { opacity: .68; }
.schedule-date { width: 58px; flex: none; text-align: center; }
.schedule-date strong, .schedule-date span { display: block; }
.schedule-date strong { font-size: 18px; }
.schedule-date span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.schedule-type { min-width: 65px; padding: 5px 8px; border-radius: 99px; text-align: center; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.schedule-type.task { color: var(--forest-800); background: var(--forest-100); }
.schedule-type.treatment { color: #266b84; background: #e4f2f6; }
.schedule-info { min-width: 0; flex: 1; }
.schedule-info strong, .schedule-info span { display: block; }
.schedule-info strong { font-size: 12px; }
.schedule-info span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.schedule-info a { color: var(--forest-700); font-weight: 800; }

.weather-placeholder { padding: 20px 4px; text-align: center; }
.weather-placeholder > span { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 50%; color: var(--blue); background: #edf6f8; font-size: 30px; }
.weather-placeholder strong { display: block; font-size: 14px; }
.weather-placeholder p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.integration-label, .beta-label { display: inline-block; padding: 5px 8px; border-radius: 6px; color: var(--muted); background: #eef1ed; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.timeline { display: grid; }
.timeline-item { position: relative; display: flex; gap: 12px; padding: 0 0 18px; }
.timeline-item::before { content: ""; position: absolute; top: 10px; bottom: -2px; left: 4px; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-item > span { position: relative; z-index: 1; width: 9px; height: 9px; flex: none; margin-top: 4px; border: 2px solid white; border-radius: 50%; background: var(--forest-700); box-shadow: 0 0 0 2px #bad2bf; }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item strong { font-size: 12px; }
.timeline-item small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.field-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.field-card:hover { transform: translateY(-2px); box-shadow: 0 18px 35px rgba(20,52,35,.12); }
.field-map, .field-visual { position: relative; overflow: hidden; min-height: 150px; background: #d8e4d2; }
.field-map::before, .field-visual::before, .field-art::before { content: ""; position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(35deg, transparent 45%, rgba(255,255,255,.7) 46%, transparent 48%), linear-gradient(145deg, transparent 45%, rgba(35,88,55,.15) 46%, transparent 48%); background-size: 44px 44px, 55px 55px; }
.field-shape { position: absolute; inset: 25px 25%; border: 3px solid rgba(255,255,255,.85); border-radius: 42% 22% 38% 25%; background: rgba(58,126,73,.45); transform: rotate(-8deg); box-shadow: 0 8px 25px rgba(26,75,42,.2); }
.area-pill { position: absolute; right: 13px; bottom: 13px; padding: 6px 9px; border-radius: 8px; color: white; background: rgba(16,41,29,.8); font-size: 11px; font-weight: 800; }
.field-card-body { padding: 18px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-card-body h2 { font-size: 17px; }
.field-card-body > p { margin: 7px 0 15px; color: var(--muted); font-size: 12px; }
.status-label { display: inline-flex; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; }
.status-label.status-ok { color: #28673c; background: #e6f2e8; }
.status-label.status-attention { color: #8b5b19; background: #fff2d5; }
.status-label.status-urgent { color: #9e3a32; background: #fbe6e3; }
.mini-data { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.mini-data div { border-left: 1px solid var(--line); padding-left: 10px; }
.mini-data div:first-child { border: 0; padding-left: 0; }
.mini-data dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.mini-data dd { margin: 4px 0 0; font-size: 11px; font-weight: 700; }
.field-tile { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #ebefea; border-radius: 12px; }
.field-tile:hover { background: #f7f9f6; }
.field-art { position: relative; overflow: hidden; width: 58px; height: 48px; flex: none; border-radius: 8px; background: #d9e6d4; }
.field-art span { position: absolute; z-index: 1; right: 5px; bottom: 4px; color: white; font-size: 8px; font-weight: 800; text-shadow: 0 1px 3px #000; }
.field-tile > div:nth-child(2) { min-width: 0; flex: 1; }
.field-tile strong, .field-tile div > span { display: block; }
.field-tile strong { font-size: 12px; }
.field-tile div > span { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.field-task-count { color: var(--muted); font-size: 9px; }
.status-urgent.field-map, .status-urgent.field-visual, .field-art.status-urgent { background: #ead5cc; }
.status-attention.field-map, .status-attention.field-visual, .field-art.status-attention { background: #e9dfbd; }

.empty-hero { display: flex; align-items: center; gap: 28px; padding: 42px; border: 1px dashed #bdcbbd; border-radius: 20px; background: rgba(255,255,255,.65); }
.empty-hero.full-width { grid-column: 1 / -1; }
.empty-hero p { max-width: 620px; color: var(--muted); line-height: 1.6; }
.empty-illustration { width: 100px; height: 100px; flex: none; display: grid; place-items: center; border-radius: 30px; color: var(--forest-700); background: var(--forest-100); font-size: 45px; }
.empty-inline { display: grid; gap: 3px; padding: 16px; color: var(--muted); text-align: center; font-size: 12px; }
.creation-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.creation-option { display: flex; align-items: center; gap: 16px; padding: 20px; }
.creation-option > span { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--forest-800); background: var(--forest-100); font-size: 23px; font-weight: 800; }
.creation-option strong, .creation-option small { display: block; }
.creation-option small { margin-top: 5px; color: var(--muted); line-height: 1.5; }

.budget-card { margin: 18px 0; }
.budget-header { align-items: end; }
.season-form { display: flex; align-items: end; gap: 8px; }
.season-form label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.season-form input { width: 92px; min-height: 39px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.budget-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; margin: 16px 0; border: 1px solid var(--line); border-radius: 13px; background: #fafcf9; }
.budget-summary > div { padding: 16px; border-left: 1px solid var(--line); }
.budget-summary > div:first-child { border-left: 0; }
.budget-summary small, .budget-summary strong { display: block; }
.budget-summary small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.budget-summary strong { margin-top: 6px; font-size: 17px; }
.budget-positive { color: #287044; }
.budget-negative { color: var(--red); }
.budget-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.budget-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.budget-section-heading h3 { margin: 0; font-size: 14px; }
.budget-section-heading a { color: var(--forest-700); font-size: 10px; font-weight: 800; }
.budget-list { margin-top: 9px; border-top: 1px solid var(--line); }
.budget-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.budget-list strong, .budget-list small { display: block; }
.budget-list small, .budget-list p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.budget-list b { flex: none; font-size: 11px; }
.farm-budget-summary { margin: 0 0 18px; background: white; box-shadow: var(--shadow); }
.budget-table-wrap { overflow-x: auto; }
.budget-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.budget-table th, .budget-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.budget-table th:first-child, .budget-table td:first-child { text-align: left; }
.budget-table th { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.budget-table td:first-child strong, .budget-table td:first-child small { display: block; }
.budget-table td:first-child small { margin-top: 4px; color: var(--muted); }

.back-link { display: inline-flex; margin-bottom: 20px; color: var(--forest-700); font-size: 12px; font-weight: 700; }
.field-overview { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 18px; margin-bottom: 18px; }
.field-visual { min-height: 205px; border-radius: var(--radius); }
.field-shape.large { inset: 35px 27%; }
.field-visual > div { position: absolute; z-index: 2; right: 16px; bottom: 16px; padding: 10px 13px; border-radius: 10px; color: white; background: rgba(16,41,29,.83); }
.field-visual small, .field-visual strong { display: block; }
.field-visual small { font-size: 9px; text-transform: uppercase; }
.field-visual strong { margin-top: 2px; font-size: 18px; }
.field-data dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; }
.field-data dl div { padding: 15px; border-bottom: 1px solid var(--line); }
.field-data dl div:nth-last-child(-n+3) { border-bottom: 0; }
.field-data dt { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.field-data dd { margin: 6px 0 0; font-size: 13px; font-weight: 750; }
.notice { padding: 13px 15px; border-radius: 10px; font-size: 11px; line-height: 1.55; }
.notice.warning { color: #70501e; border: 1px solid #edd7a7; background: #fff8e7; }
.notice.info { color: #285c6d; border: 1px solid #c7e0e7; background: #edf7f9; }
.notice.error { color: #8f3932; border: 1px solid #edc7c4; background: #fceedc; }
.recommendations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.recommendation { display: flex; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafcf9; }
.score-ring { --color: var(--forest-700); width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--color) calc(var(--score) * 1%), #e4e9e3 0); }
.score-ring::before { content: ""; grid-area: 1/1; width: 40px; height: 40px; border-radius: 50%; background: white; }
.score-ring strong { position: relative; grid-area: 1/1; font-size: 10px; }
.recommendation h3 { font-size: 13px; }
.reason { display: block; margin-top: 4px; font-size: 9px; line-height: 1.35; }
.reason.positive { color: #327044; }
.reason.caution { color: #8a6027; }
.missing-data { margin: 14px 0 0; color: var(--muted); font-size: 10px; }
.notes-text { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; white-space: pre-line; }
.field-weather-card { margin: 18px 0; }
.weather-header form { flex: none; }
.weather-notice { margin-bottom: 18px; }
.weather-source-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: #fafcf9; }
.weather-source-strip > div { min-width: 0; padding: 13px; border-left: 1px solid var(--line); }
.weather-source-strip > div:first-child { border-left: 0; }
.weather-source-strip small, .weather-source-strip strong, .weather-source-strip span { display: block; }
.weather-source-strip small { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.weather-source-strip strong { margin-top: 5px; overflow-wrap: anywhere; font-size: 12px; }
.weather-source-strip span { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.weather-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 11px; }
.weather-section-heading h3 { margin: 0; font-size: 15px; }
.weather-section-heading span { color: var(--muted); font-size: 10px; }
.operational-days { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); gap: 9px; overflow-x: auto; padding-bottom: 5px; }
.weather-day { min-width: 140px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafcf9; }
.weather-day > strong, .temperature-range { display: block; }
.weather-day > strong { font-size: 11px; }
.temperature-range { margin: 6px 0 10px; color: var(--forest-800); font-size: 17px; font-weight: 850; }
.weather-day dl { display: grid; gap: 6px; margin: 0; }
.weather-day dl div { display: flex; justify-content: space-between; gap: 8px; }
.weather-day dt { color: var(--muted); font-size: 8px; }
.weather-day dd { margin: 0; text-align: right; font-size: 8px; font-weight: 750; }
.weather-uncertainty { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.weather-empty { display: flex; align-items: center; gap: 14px; min-height: 120px; padding: 18px; border: 1px dashed #c9d6ca; border-radius: 12px; background: #fafcf9; }
.weather-empty > span { color: var(--forest-700); font-size: 34px; }
.weather-empty strong { font-size: 13px; }
.weather-empty p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.ensemble-heading { margin-top: 28px; }
.ensemble-weeks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ensemble-week { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fafcf9; }
.ensemble-week header { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ensemble-week header strong { font-size: 11px; }
.ensemble-week header small { color: var(--muted); font-size: 8px; }
.ensemble-metrics { display: grid; gap: 8px; padding: 11px 0; }
.ensemble-metrics div { display: flex; justify-content: space-between; gap: 12px; }
.ensemble-metrics span { color: var(--muted); font-size: 9px; }
.ensemble-metrics strong { text-align: right; font-size: 9px; }
.weather-risks { display: grid; gap: 5px; }
.weather-risk { display: flex; justify-content: space-between; gap: 10px; padding: 7px 9px; border-radius: 8px; font-size: 8px; }
.weather-risk strong { font-size: 9px; }
.weather-risk span { text-align: right; }
.weather-risk.risk-low { color: #285c6d; background: #e8f3f6; }
.weather-risk.risk-medium { color: #76531f; background: #fff2d7; }
.weather-risk.risk-high { color: #8f3932; background: #f9e4e2; }
.weather-no-risk { margin: 0; color: var(--muted); font-size: 9px; }
.weather-attribution { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.55; }

.form-layout { max-width: 980px; margin: 0 auto; }
.form-intro { margin-bottom: 25px; }
.form-intro-action { margin-top: 12px; }
.source-parcel-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; margin: -8px 0 18px; padding: 15px 17px; border: 1px solid #c7dbc9; border-radius: 14px; background: linear-gradient(135deg, #f8fcf7, #edf6ec); box-shadow: 0 8px 22px rgba(23,62,42,.06); }
.source-parcel-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: white; background: var(--forest-700); font-size: 20px; }
.source-parcel-banner .eyebrow { margin-bottom: 2px; }
.source-parcel-banner strong, .source-parcel-banner small { display: block; }
.source-parcel-banner strong { font-size: 14px; }
.source-parcel-banner small { margin-top: 3px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.source-parcel-ready { padding: 6px 9px; border-radius: 99px; color: #28673c; background: #dceede; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.source-parcel-area { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; }
.source-parcel-area div { display: flex; gap: 4px; }
.source-parcel-area dt, .source-parcel-area dd { margin: 0; font-size: 9px; }
.source-parcel-area dt { color: var(--muted); }
.source-parcel-area dd { font-weight: 850; }
.form-card { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; }
.form-field label span { color: var(--red); }
.form-field input:not([type="checkbox"]), .form-field select, .form-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cad4ca; border-radius: 9px; outline: none; color: var(--text); background: white; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(47,112,77,.12); }
.form-field input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--forest-700); }
.form-field .checkbox-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid #cad4ca; border-radius: 9px; background: #f8faf7; }
.form-field .checkbox-list > div label { display: flex; align-items: center; gap: 9px; min-height: 28px; margin: 0; font-weight: 650; }
.form-field > small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.inline-link { color: var(--forest-700); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.field-error { display: block; margin-top: 5px; color: var(--red); font-size: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.boundary-editor { display: grid; gap: 11px; }
.boundary-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.button-danger { border-color: #e5b9b4; color: #9f382f; background: #fff8f7; }
.button-danger:hover { color: white; background: var(--red); }
.boundary-map { position: relative; width: 100%; height: 420px; overflow: hidden; border: 1px solid #cad4ca; border-radius: 12px; background: #e8ede7; }
.boundary-map.tiles-unavailable::after { content: "Podkład mapy jest chwilowo niedostępny. Granicę nadal można rysować i edytować."; position: absolute; z-index: 1000; left: 50%; bottom: 12px; width: min(440px, calc(100% - 24px)); padding: 9px 12px; border: 1px solid #e0ba76; border-radius: 8px; color: #6d4917; background: rgba(255,247,224,.95); box-shadow: 0 4px 14px rgba(20,52,35,.12); text-align: center; font-size: 10px; font-weight: 700; transform: translateX(-50%); pointer-events: none; }
.boundary-map:focus-within { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(47,112,77,.12); }
.boundary-map-view { height: 380px; }
.field-boundary-card { margin-bottom: 18px; }
.field-boundary-history { margin-bottom: 18px; }
.boundary-history-list { display: grid; }
.boundary-history-row { display: flex; align-items: flex-start; gap: 13px; padding: 13px 0; border-top: 1px solid #edf0ec; }
.boundary-history-row:first-child { padding-top: 0; border-top: 0; }
.boundary-version { min-width: 34px; padding: 5px 7px; border-radius: 7px; color: var(--forest-700); background: var(--forest-100); text-align: center; font-size: 10px; font-weight: 900; }
.boundary-history-row > div { min-width: 0; }
.boundary-history-row strong, .boundary-history-row small { display: block; }
.boundary-history-row strong { font-size: 12px; }
.boundary-history-row small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.boundary-history-row p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.parcel-summary-card { margin-bottom: 18px; }
.parcel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.parcel-list { display: grid; }
.parcel-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #edf0ec; }
.parcel-row:first-child { padding-top: 0; border-top: 0; }
.parcel-row strong, .parcel-row span { display: block; }
.parcel-row span, .parcel-row small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.parcel-data { display: grid; gap: 10px; margin: 0; }
.parcel-data div { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr); gap: 12px; }
.parcel-data dt { color: var(--muted); font-size: 10px; }
.parcel-data dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 700; }
.parcel-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 10px; }
.parcel-fields strong { margin-right: 3px; }
.parcel-fields a { padding: 5px 8px; border-radius: 99px; color: var(--forest-700); background: var(--forest-100); font-weight: 800; }
.parcel-fields span { color: var(--muted); }
.boundary-status { min-height: 18px; margin: 0; color: var(--forest-700); font-size: 11px; font-weight: 700; }
.boundary-status.error { color: var(--red); }
.boundary-map-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.boundary-json-details { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf7; }
.boundary-json-details summary { color: var(--forest-700); cursor: pointer; font-size: 11px; font-weight: 800; }
.boundary-json-editor { display: grid; justify-items: start; gap: 9px; margin-top: 10px; }
.boundary-json-editor textarea { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 11px; line-height: 1.5; }
.boundary-vertex-icon { width: 14px; height: 14px; border: 2px solid white; border-radius: 50%; background: var(--yellow); box-shadow: 0 1px 5px rgba(16,41,29,.45); }
.boundary-map .leaflet-container { font-family: inherit; }
.parcel-map-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .7fr); gap: 18px; align-items: start; margin-bottom: 20px; }
.address-map-search { margin-bottom: 18px; padding: clamp(20px, 3vw, 30px); overflow: hidden; border-color: #d8e2d7; background: linear-gradient(145deg, #ffffff 0%, #fbfdf9 100%); }
.address-search-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.address-search-heading h2 { margin: 0; }
.address-search-heading > span { max-width: 390px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.address-search-form { display: grid; gap: 10px; }
.address-search-control { display: grid; grid-template-columns: minmax(130px, .55fr) minmax(190px, .9fr) minmax(230px, 1.2fr) auto; align-items: stretch; overflow: hidden; border: 1px solid #cbd8ca; border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(23,62,42,.07); transition: border-color .15s, box-shadow .15s; }
.address-search-control:focus-within { border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(47,112,77,.1), 0 12px 28px rgba(23,62,42,.1); }
.address-search-field { position: relative; display: grid; align-content: center; min-width: 0; padding: 11px 16px 10px; border-right: 1px solid #e4eae2; }
.address-search-field label { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; color: #526158; font-size: 9px; font-weight: 850; letter-spacing: .025em; line-height: 1.2; text-transform: uppercase; }
.address-search-field label small { color: #8b978f; font-size: 8px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.address-field-icon { display: inline-grid; width: 16px; height: 16px; place-items: center; color: var(--forest-700); font-size: 13px; line-height: 1; }
.address-search-field input { width: 100%; min-width: 0; height: 28px; padding: 2px 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 14px; font-weight: 700; }
.address-search-field input::placeholder { color: #a0aaa3; font-weight: 500; opacity: 1; }
.address-search-field .field-error { margin: 3px 0 0; }
.address-search-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 170px; margin: 7px; padding: 0 20px; border: 0; border-radius: 11px; color: white; background: var(--forest-700); box-shadow: 0 5px 13px rgba(47,112,77,.2); cursor: pointer; font-size: 11px; font-weight: 850; transition: background .15s, transform .15s, box-shadow .15s; }
.address-search-submit:hover { background: var(--forest-800); box-shadow: 0 7px 17px rgba(47,112,77,.25); transform: translateY(-1px); }
.address-search-submit:focus-visible { outline: 3px solid rgba(47,112,77,.22); outline-offset: 2px; }
.address-search-submit-icon { font-size: 19px; font-weight: 400; line-height: 1; }
.address-search-tip { display: flex; align-items: center; gap: 7px; margin: 0 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.address-search-tip span { color: #64a875; font-size: 7px; }
.address-search-error { margin: 0 4px; }
.address-map-results { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 15px; }
.address-map-result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #f8faf7; cursor: pointer; text-align: left; }
.address-map-result:hover, .address-map-result.selected { border-color: var(--forest-700); background: var(--forest-100); }
.address-map-result strong, .address-map-result small { display: block; }
.address-map-result strong { font-size: 11px; }
.address-map-result small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.address-result-pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--forest-700); font-size: 17px; }
.address-result-action { color: var(--forest-700); font-size: 10px; font-weight: 800; }
.parcel-map-card { min-width: 0; padding: 18px; }
.parcel-map-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.parcel-map-toolbar h2 { margin: 0; }
.parcel-map-toolbar > span { color: var(--muted); font-size: 10px; font-weight: 750; }
.parcel-selection-map { width: 100%; height: min(68vh, 680px); min-height: 520px; overflow: hidden; border: 1px solid #bfcbbf; border-radius: 12px; background: #dfe5dc; }
.parcel-selection-map .leaflet-control-layers { max-width: 270px; font-size: 10px; }
.parcel-selection-map .leaflet-control-layers-expanded { padding: 9px 11px; }
.parcel-map-help { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.parcel-map-help span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #dce5da; border-radius: 99px; color: var(--muted); background: #f7faf6; font-size: 9px; }
.parcel-map-help strong { color: var(--forest-700); font-size: 8px; letter-spacing: .04em; }
.parcel-map-result { position: sticky; top: 78px; padding: 20px; }
.parcel-map-result-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.parcel-map-result-heading h3 { margin: 0; font-size: 25px; }
.parcel-map-result-heading > span { color: var(--muted); font-size: 10px; }
.parcel-map-data { margin-top: 15px; }
.parcel-map-soil { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.parcel-map-soil > strong { display: block; margin-bottom: 9px; font-size: 11px; }
.parcel-soil-list { display: grid; gap: 7px; }
.parcel-soil-list > div { display: grid; grid-template-columns: 55px 1fr; gap: 9px; padding: 9px 10px; border-radius: 8px; background: #f5f8f3; }
.parcel-soil-list strong { font-size: 10px; }
.parcel-soil-list span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.parcel-map-empty-data { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.parcel-map-lab-note { margin-top: 16px; }
.parcel-map-result .candidate-confirm-form { display: grid; gap: 13px; }
.parcel-map-result .candidate-confirm-form .button { width: 100%; }
.parcel-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.parcel-card-actions .button { justify-content: center; }
.parcel-area-exhausted { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 10px 14px; border: 1px solid #e6d4b3; border-radius: 10px; color: #815b21; background: #fff8e9; font-size: 11px; font-weight: 800; }
.delete-confirm-layout { max-width: 680px; margin: 0 auto; }
.delete-confirm-card { margin-top: 16px; padding: clamp(24px, 5vw, 42px); text-align: center; }
.delete-confirm-icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 16px; border-radius: 50%; color: white; background: var(--red); font-size: 25px; font-weight: 900; }
.delete-confirm-card .lead { max-width: 540px; margin: 12px auto 0; line-height: 1.65; }
.delete-linked-objects { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf7; text-align: left; }
.delete-linked-objects ul { margin: 8px 0 0; padding-left: 20px; }
.delete-confirm-actions { display: flex; justify-content: center; gap: 9px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.parcel-selection-list-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.parcel-selection-list-heading h3 { margin: 0; font-size: 28px; }
.parcel-selection-clear { padding: 6px 8px; border: 0; color: #8e5149; background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }
.parcel-selection-list { display: grid; gap: 9px; max-height: 48vh; margin-top: 12px; overflow: auto; padding-right: 3px; }
.parcel-selection-item { padding: 12px; border: 1px solid #dfe7dc; border-radius: 11px; background: #f9fbf8; }
.parcel-selection-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.parcel-selection-item-heading > div { display: flex; align-items: baseline; gap: 6px; }
.parcel-selection-item-heading span { color: var(--muted); font-size: 9px; }
.parcel-selection-item-heading strong { font-size: 17px; }
.parcel-selection-item-heading button { display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 50%; color: #8e5149; background: #f7e9e7; cursor: pointer; font-size: 17px; line-height: 1; }
.parcel-selection-item > small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.parcel-selection-item dl { display: grid; gap: 5px; margin: 10px 0 0; }
.parcel-selection-item dl div { display: flex; justify-content: space-between; gap: 10px; }
.parcel-selection-item dt, .parcel-selection-item dd { margin: 0; font-size: 9px; }
.parcel-selection-item dt { color: var(--muted); }
.parcel-selection-item dd { overflow-wrap: anywhere; text-align: right; font-weight: 750; }
.parcel-selection-warning { margin: 8px 0 0; color: #8b5b19; font-size: 8px; line-height: 1.4; }
.parcel-selection-confirm { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.parcel-map-placeholder { display: flex; align-items: center; gap: 14px; min-height: 180px; }
.parcel-map-placeholder > span { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; color: var(--forest-700); background: var(--forest-100); font-size: 22px; font-weight: 900; }
.parcel-map-placeholder strong { font-size: 13px; }
.parcel-map-placeholder p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.lookup-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; max-width: none; }
.lookup-panel-single { grid-template-columns: 1fr; }
.lookup-section { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.lookup-section h2, .lookup-section h3 { margin: 0; }
.search-box { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.lookup-section .search-box { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.search-box label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 800; }
.search-box > div { display: flex; gap: 8px; }
.search-box input { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #cad4ca; border-radius: 9px; }
.search-results { display: grid; gap: 8px; }
.search-results a { display: grid; gap: 4px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.search-results a span { color: var(--muted); font-size: 11px; }
.address-results { display: grid; gap: 9px; }
.address-result { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf7; }
.address-result strong, .address-result span { display: block; }
.address-result span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.address-result .button { flex: none; }
.address-result-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.weather-point-confirmation { position: relative; }
.weather-point-confirmation summary { list-style: none; cursor: pointer; }
.weather-point-confirmation summary::-webkit-details-marker { display: none; }
.weather-point-confirmation[open] > form { display: grid; gap: 11px; }
.weather-point-confirmation > form { position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); width: min(360px, 78vw); padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.weather-point-confirmation label:not(.confirmation-check) { display: grid; gap: 6px; font-size: 10px; font-weight: 800; }
.weather-point-confirmation select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #cad4ca; border-radius: 8px; background: white; }
.candidate-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 18px; align-items: start; }
.candidate-data { margin-top: 18px; }
.candidate-confirm-form { margin-top: 18px; }
.confirmation-check { display: flex; align-items: flex-start; gap: 9px; color: var(--text); font-size: 11px; font-weight: 750; line-height: 1.5; }
.confirmation-check input { width: 18px; height: 18px; flex: none; margin-top: 0; accent-color: var(--forest-700); }
.candidate-map-card { min-width: 0; }
.nearby-parcels-card { max-width: 980px; margin-top: 18px; }
.nearby-parcels-list { display: grid; }
.nearby-parcel-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.nearby-parcel-row:first-child { border-top: 0; }
.nearby-parcel-row strong, .nearby-parcel-row span, .nearby-parcel-row small { display: block; }
.nearby-parcel-row span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.nearby-parcel-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.nearby-parcel-row .button { flex: none; }

.auth-page { min-height: 100vh; background: #eef2eb; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .9fr) minmax(440px, 1.1fr); }
.auth-brand-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 45px; padding: clamp(35px, 7vw, 90px); color: white; background: var(--forest-950); }
.auth-brand { display: flex; align-items: center; gap: 13px; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 21px; }
.auth-brand small { margin-top: 2px; color: #abc0b1; font-size: 10px; }
.auth-brand-panel h1 { max-width: 620px; margin-bottom: 20px; font-size: clamp(37px, 5vw, 65px); line-height: 1.03; }
.auth-brand-panel p:not(.eyebrow) { max-width: 540px; color: #c5d2c9; line-height: 1.7; }
.auth-brand-panel > small { color: #91a99a; }
.eyebrow.light { color: var(--yellow); }
.auth-content { display: grid; place-items: center; padding: 30px; }
.auth-card { width: min(100%, 430px); padding: 36px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 24px 60px rgba(16,41,29,.12); }
.auth-card.wide { width: min(100%, 520px); }
.auth-card h2 { font-size: 27px; }
.auth-lead { margin: 10px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.auth-form { display: grid; gap: 17px; }
.auth-form .notice { margin-bottom: 3px; }
.full-button { width: 100%; margin-top: 4px; }
.auth-help { margin: 20px 0 0; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.5; }
.auth-logout { margin-top: 16px; text-align: center; }
.auth-logout button { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }

@media (min-width: 1120px) {
  .content-grid > .span-2 { grid-column: 1; }
}

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recommendations { grid-template-columns: 1fr; }
  .candidate-layout { grid-template-columns: 1fr; }
  .weather-source-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-source-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .weather-source-strip > div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-105%); transition: transform .2s ease; box-shadow: 12px 0 35px rgba(0,0,0,.25); }
  .menu-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 15; background: rgba(10,25,17,.45); }
  .menu-open .sidebar-backdrop { display: block; }
  .page-shell { min-width: 0; }
  .topbar { height: 58px; padding: 0 14px; }
  .menu-button { display: block; margin-right: 5px; }
  .farm-switcher { margin-right: auto; }
  .date-pill { display: none; }
  .reminder-button { max-width: 112px; line-height: 1.1; }
  .topbar .button { padding: 8px 10px; font-size: 10px; }
  .page-content { padding: 16px 15px 90px; }
  .welcome-row, .field-heading { display: grid; align-items: start; }
  .welcome-row .quick-actions, .field-heading .quick-actions { width: 100%; }
  .quick-actions .button { flex: 1; }
  .stats-grid, .content-grid, .field-overview { grid-template-columns: 1fr; }
  .field-grid, .field-grid.compact { grid-template-columns: 1fr; }
  .creation-choice, .budget-columns { grid-template-columns: 1fr; }
  .budget-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .budget-summary > div { border-top: 1px solid var(--line); }
  .budget-summary > div:nth-child(1), .budget-summary > div:nth-child(2) { border-top: 0; }
  .budget-summary > div:nth-child(odd) { border-left: 0; }
  .season-form { flex-wrap: wrap; }
  .span-2 { grid-column: 1; }
  .task-row { gap: 8px; }
  .task-row .badge { display: none; }
  .field-data dl { grid-template-columns: repeat(2, 1fr); }
  .field-data dl div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .field-data dl div:nth-last-child(-n+2) { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field .checkbox-list, .parcel-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: 1; }
  .form-card { padding: 20px; }
  .boundary-map { height: 340px; }
  .boundary-toolbar .button { flex: 1 1 145px; }
  .empty-hero { align-items: flex-start; padding: 25px; }
  .empty-illustration { width: 64px; height: 64px; border-radius: 20px; font-size: 30px; }
  .search-box > div { display: grid; }
  .address-result { display: grid; }
  .address-result .button { width: 100%; }
  .address-result-actions { display: grid; }
  .weather-point-confirmation > form { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .nearby-parcel-row { display: grid; }
  .nearby-parcel-row .button { width: 100%; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 230px; padding: 28px; }
  .auth-brand-panel > div:nth-child(2) p:not(.eyebrow), .auth-brand-panel > small { display: none; }
  .auth-brand-panel h1 { margin: 0; font-size: 31px; }
  .auth-content { align-items: start; margin-top: -28px; padding: 15px; }
  .auth-card { padding: 27px 22px; }
  .weather-header { display: grid; }
  .weather-header form, .weather-header .button { width: 100%; }
  .weather-source-strip, .ensemble-weeks { grid-template-columns: 1fr; }
  .parcel-map-workspace, .lookup-panel { grid-template-columns: 1fr; }
  .address-search-heading { display: grid; }
  .address-search-control { grid-template-columns: minmax(120px, .65fr) minmax(180px, 1fr); }
  .address-search-locality { border-right: 0; }
  .address-search-street { border-top: 1px solid #e4eae2; }
  .address-search-submit { min-height: 52px; }
  .parcel-map-result { position: static; }
  .parcel-selection-map { height: 58vh; min-height: 430px; }
  .weather-source-strip > div { border-top: 1px solid var(--line); border-left: 0; }
  .weather-source-strip > div:first-child { border-top: 0; }
  .member-row { grid-template-columns: 1fr; align-items: stretch; }
  .member-actions { display: grid; grid-template-columns: 1fr auto; }
  .audit-row { grid-template-columns: 1fr; gap: 4px; }
  .calendar-heading { gap: 14px; }
  .calendar-card { padding: 14px; }
  .calendar-toolbar .button { min-width: 42px; padding: 7px 9px; font-size: 0; }
  .calendar-toolbar .button:first-child::after { content: "←"; font-size: 14px; }
  .calendar-toolbar .button:last-child::after { content: "→"; font-size: 14px; }
  .calendar-grid { grid-template-columns: repeat(7, minmax(92px, 1fr)); }
  .calendar-day { min-height: 104px; }
  .schedule-row { align-items: flex-start; flex-wrap: wrap; }
  .schedule-info { min-width: 160px; }
}

@media (max-width: 430px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { display: block; padding: 14px; }
  .stat-icon { width: 34px; height: 34px; margin-bottom: 10px; }
  .stat-card strong { font-size: 19px; }
  .empty-hero { display: grid; }
  .parcel-map-card, .parcel-map-result { padding: 14px; }
  .parcel-map-toolbar { display: grid; align-items: start; }
  .parcel-selection-map { height: 55vh; min-height: 360px; }
  .parcel-selection-map .leaflet-control-layers { max-width: 210px; }
  .address-map-search { padding: 18px 14px; }
  .address-search-control { grid-template-columns: 1fr; border-radius: 14px; }
  .address-search-field { min-height: 67px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid #e4eae2; }
  .address-search-street { border-top: 0; }
  .address-search-submit { min-height: 48px; margin: 8px; }
  .source-parcel-banner { grid-template-columns: auto minmax(0, 1fr); }
  .source-parcel-ready { grid-column: 1 / -1; justify-self: start; }
  .parcel-card-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
