:root {
  --ink: #1b2928;
  --muted: #62716f;
  --line: #dfe6e4;
  --surface: #fff;
  --wash: #f5f8f7;
  --deep: #112b2a;
  --accent: #126c60;
  --accent-2: #dfb139;
  --danger: #b13e31;
  --nodata: #8b9490;
  --none: #70ad85;
  --low: #e4c75f;
  --moderate: #db8740;
  --high: #bf3d35;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f3f6f5; color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea, summary, label { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: 0.55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #75b9ad;
  outline-offset: 3px;
}
a { color: var(--accent); text-underline-offset: 3px; }
input[type="checkbox"], input[type="radio"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.025em; }
h1 { font-size: 1.45rem; font-weight: 680; line-height: 1.25; margin: 0; }
h2 { font-size: 1.65rem; font-weight: 650; line-height: 1.25; margin-bottom: 8px; }
h3 { font-size: 1rem; font-weight: 650; line-height: 1.4; margin-bottom: 8px; }
.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  line-height: 1.4;
  margin: 0 0 5px;
  text-transform: uppercase;
}

/* A compact header that stays in the normal page flow. */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  min-height: 88px;
  padding: 16px max(24px, calc((100vw - 1400px) / 2));
}
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #f0f4f2;
  border-radius: 10px;
}
.tab {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 550;
  min-height: 40px;
  padding: 0 22px;
}
.tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px #17211f14;
}
.master-link {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #526360;
  font-size: 0.875rem;
  font-weight: 550;
  min-height: 44px;
  padding: 0 14px;
}
.master-link:hover, .secondary-button:hover { background: #eef4f1; }
main { max-width: 1448px; padding: 28px 24px 40px; margin: 0 auto; }
.view { display: none; }
.view.is-active { display: block; }
.map-layout, .form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 20px;
}
.map-shell, .form-shell, .detail-panel, .admin-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 5px #17211f03;
  min-width: 0;
}
.map-shell { padding: 22px; }
.form-shell, .admin-shell { padding: 28px; }
.map-head, .admin-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}
.map-head p, .side-note p, .empty-state p, .section-head > p:last-child {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9375rem;
  font-weight: 400;
  margin-bottom: 0;
}
.map-head p { max-width: 48ch; }
.map-head h2 { font-size: 1.5rem; }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin: 0 0 8px; }
.primary-button, .secondary-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.primary-button { background: var(--accent); border: 1px solid var(--accent); color: #fff; padding: 10px 18px; }
.primary-button:hover { background: #0c584e; border-color: #0c584e; }
.secondary-button { background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 8px 14px; }
.text-button { background: transparent; border: 0; color: var(--accent); padding: 0 6px; }

/* Controls use one type scale and one spacing rhythm throughout the app. */
label, fieldset { color: #344743; font-size: 0.875rem; font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { color: var(--ink); font-size: 0.9375rem; font-weight: 650; margin-bottom: 12px; padding: 0; }
select, input[type="text"], input[type="date"], input[type="number"],
input[type="email"], input[type="password"], input[type="search"], textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #ced9d4;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}
select:hover, textarea:hover, input:not([type="checkbox"]):not([type="radio"]):hover { border-color: #97ada5; }
textarea { resize: vertical; }
textarea::placeholder, input::placeholder { color: #7b8986; opacity: 1; }
.optional-label { color: var(--muted); font-size: 0.8125rem; font-weight: 400; margin-left: 5px; }
.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 14px 16px;
  align-items: end;
  margin: 22px 0 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.disease-filter { min-width: 0; max-width: 100%; }
.check-row { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
#mapTitle, #diseaseMessage, .detail-meta, .admin-meta { overflow-wrap: anywhere; }

/* Keep map controls contained within the map's stacking context. */
.map-stage { background: #eaf0ed; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; position: relative; }
#reportMap { display: block; isolation: isolate; height: min(65vh, 620px); min-height: 400px; width: 100%; }
#reportMap.leaflet-container { background: #e5eeea; color: var(--ink); font-family: inherit; }
.leaflet-control-zoom a { color: var(--ink); }
.leaflet-tooltip { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 3px 12px #14282412; color: var(--ink); font-weight: 550; }
.zoom-note {
  background: #fffffff2;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #52635f;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 400;
  left: 58px;
  max-width: 355px;
  padding: 8px 10px;
  position: absolute;
  top: 12px;
  z-index: 500;
}
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px; background: #fff; border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: 6px; color: #52635f; font-size: 0.8125rem; font-weight: 500; }
.swatch { display: inline-block; height: 10px; width: 10px; border: 1px solid #00000014; border-radius: 3px; }
.nodata { background: var(--nodata); }
.none { background: var(--none); }
.low { background: var(--low); }
.moderate { background: var(--moderate); }
.high { background: var(--high); }
.detail-panel { padding: 20px; overflow-wrap: anywhere; }
.detail-action-button { grid-column: 2; grid-row: 2; min-height: 30px; border: 1px solid var(--line); border-radius: 5px; padding: 4px 8px; background: #fff; color: var(--accent); font-size: 0.875rem; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.detail-action-button:hover { background: var(--wash); border-color: #97ada5; }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.metric-row div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.metric-row strong { display: block; font-size: 1.85rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.04em; margin-bottom: 5px; }
.metric-row span, .detail-meta, .admin-meta { color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.empty-state { border: 1px dashed #ccd9d2; background: #fafcfb; border-radius: 8px; padding: 20px; }
.county-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; margin-bottom: 16px; }
.county-title h3 { grid-column: 1; grid-row: 1; margin: 0; }
.county-title > .detail-meta { grid-column: 1; grid-row: 2; margin: 0; }
.county-title > .pressure-badge { grid-column: 2; grid-row: 1; justify-content: center; }
.pressure-badge, .status-badge { display: inline-flex; align-items: center; border-radius: 6px; color: #fff; font-size: 0.75rem; font-weight: 600; line-height: 1.4; padding: 5px 9px; }
.pressure-badge[data-level="nodata"], .pressure-badge[data-level="none"] { color: var(--ink); }
.status-badge { background: #65736f; }
.status-badge.flagged { background: #995a14; }
.status-badge.rejected { background: #8f342b; }
.breakdown { display: grid; gap: 10px; margin: 20px 0; }
.breakdown-row { display: grid; align-items: center; gap: 10px; grid-template-columns: 80px 1fr 24px; font-size: 0.875rem; }
.bar-track { background: #edf2ef; border-radius: 9px; height: 6px; overflow: hidden; }
.bar-fill { display: block; border-radius: inherit; height: 100%; }
.load-status { background: var(--wash); border: 1px solid var(--line); border-radius: 8px; color: #3c4c49; font-size: 0.875rem; margin: 0 0 14px; padding: 12px; }
.load-status.is-error { background: #fff4f2; border-color: #efc4c0; color: #9a3128; }
.recent-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.report-snippet { border: 1px solid var(--line); border-radius: 8px; padding: 16px; min-width: 0; overflow-wrap: anywhere; }
.report-snippet > strong { display: block; margin-bottom: 6px; }
.report-snippet > .detail-meta { display: block; }
.report-snippet p { color: #52635f; font-size: 0.9375rem; line-height: 1.6; margin-bottom: 8px; }

/* The reporting form has a clear reading order, with compact field groups. */
.form-layout { max-width: 1080px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
form { display: grid; gap: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
.form-grid > label { grid-column: span 2; }
.form-grid .year-field, .form-grid .date-field { grid-column: span 3; }
.form-grid .date-field legend { font-size: 0.875rem; font-weight: 500; color: #344743; margin: 0; }
.month-day-fields { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px; }
.month-day-fields input:disabled { background: var(--wash); }
.pressure-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pressure-options label { display: flex; align-items: center; gap: 10px; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.pressure-options label:has(input:checked) { background: #f0f8f4; border-color: #98bcaf; color: #174e42; }
.disease-observations { border-top: 1px solid var(--line); padding-top: 22px; }
.disease-observations legend { float: left; width: 100%; margin-bottom: 6px; }
.disease-observations p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; font-weight: 400; margin: 0 0 16px; }
.no-disease-option { display: flex; align-items: center; gap: 12px; background: #f7f9f8; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 16px; cursor: pointer; }
.no-disease-option strong { font-size: 0.9375rem; font-weight: 600; }
.no-disease-option small { display: block; color: var(--muted); font-size: 0.875rem; line-height: 1.5; font-weight: 400; margin-top: 2px; }
.no-disease-option:has(input:checked) { background: #edf7f2; border-color: #88b4a3; }
.disease-table { border-collapse: collapse; table-layout: fixed; width: 100%; }
.disease-table th, .disease-table td { border-bottom: 1px solid var(--line); padding: 14px 0; text-align: left; }
.disease-table th:first-child { width: 36%; padding-right: 16px; }
.disease-table thead th { color: var(--muted); font-size: 0.8125rem; font-weight: 500; padding-top: 0; padding-bottom: 10px; }
.disease-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.9375rem; font-weight: 550; overflow-wrap: anywhere; cursor: pointer; }
.disease-pressure { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.25rem), 1fr)); gap: 2px; padding: 3px; border: 1px solid #e5ebe8; background: #f3f6f4; border-radius: 8px; }
.disease-pressure label { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 5px; font-size: 0.875rem; font-weight: 500; min-height: 40px; cursor: pointer; }
.disease-pressure input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.disease-pressure label:has(input:checked) { background: var(--accent); color: #fff; box-shadow: 0 1px 2px #174a3620; }
.disease-pressure label:has(input:focus-visible) { outline: 3px solid #75b9ad; outline-offset: 2px; }
.disease-pressure label:has(input:disabled):not(:has(input:checked)) { color: #84918b; cursor: default; }
.disease-pressure label:has(input:disabled):has(input:checked) { background: #e0ede6; color: #285747; box-shadow: none; cursor: default; }
.disease-table .is-included .disease-check { color: #174e42; }
.pressure-guide { color: var(--muted); font-size: 0.875rem; font-weight: 400; margin-top: 12px; }
.pressure-guide summary { width: fit-content; cursor: pointer; padding: 8px 0; color: var(--accent); font-weight: 500; }
.pressure-guide dl { background: var(--wash); border-radius: 8px; padding: 14px; margin: 8px 0 0; }
.pressure-guide dl > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 4px 0; }
.pressure-guide dt { color: var(--ink); font-weight: 550; }
.pressure-guide dd { margin: 0; }
.robot-field { display: none; }
.submit-area { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; }
.turnstile-box { min-height: 65px; max-width: 100%; }
#formMessage { grid-column: 1 / -1; color: var(--accent); font-size: 0.875rem; font-weight: 500; margin: 0; }
#formMessage:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.side-note { padding: 10px 0; }
.side-note h3 { font-size: 0.9375rem; }
.side-note p { font-size: 0.875rem; }
.side-note h3:not(:first-child) { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }

/* Admin tools follow the same spacing and control styles. */
.admin-shell { max-width: 1280px; margin: 0 auto; }
.master-unlock { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; align-items: end; gap: 16px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.master-unlock p, .master-unlock small, .tool-panel p { color: var(--muted); font-weight: 400; font-size: 0.875rem; line-height: 1.6; margin: 0; }
.master-unlock p, .master-unlock small { grid-column: 1 / -1; }
#masterMessage { color: var(--danger); }
#masterMessage:empty { display: none; }
.disease-panel { margin-top: 24px; }
.add-disease-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.add-disease-form label { flex: 1 1 220px; min-width: 0; }
.disease-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.disease-list li { background: var(--wash); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 0.875rem; overflow-wrap: anywhere; }
.master-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr); gap: 16px; margin-top: 16px; }
.tool-panel { border: 1px solid var(--line); border-radius: 9px; min-width: 0; padding: 20px; }
.tool-panel .import-hint { margin-top: 12px; }
.upload-box { display: flex; flex-direction: column; gap: 8px; background: #f8faf9; border: 1px dashed #bdcec5; border-radius: 8px; padding: 16px; margin: 16px 0; cursor: pointer; }
.upload-box input { max-width: 100%; font-size: 0.875rem; }
.upload-box small { color: var(--muted); font-weight: 400; }
.upload-box > span { display: none; }
.tool-message { color: var(--accent); font-size: 0.875rem; margin: 12px 0 0; }
.tool-message:empty { display: none; }
.records-section { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.records-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.records-heading h3 { margin: 0; overflow-wrap: anywhere; }
.admin-toolbar { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(120px, 1fr)); gap: 16px; }
.admin-toolbar label { min-width: 0; }
#recordCount { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.records-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0; }
.records-controls label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 0.875rem; white-space: nowrap; }
.records-controls select { width: 76px; }
.table-scroll { overflow: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; }
#adminList { max-height: 620px; }
#adminList thead th { position: sticky; top: 0; z-index: 1; }
.table-hint { display: none; }
.records-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.875rem; }
.records-table th { background: #f3f6f5; color: var(--muted); font-weight: 600; white-space: nowrap; }
.records-table th, .records-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.records-table tr:last-child td { border-bottom: 0; }
.records-table tbody tr:hover { background: #f8faf9; }
.records-table td { overflow-wrap: anywhere; }
.records-table td:first-child { min-width: 190px; }
.records-table td:nth-child(2) { min-width: 110px; }
.records-table td:nth-child(3) { min-width: 110px; }
.cell-meta { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 4px; }
.pressure-tag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pressure-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--none); }
.pressure-tag[data-level="low"]::before { background: var(--low); }
.pressure-tag[data-level="moderate"]::before { background: var(--moderate); }
.pressure-tag[data-level="high"]::before { background: var(--high); }
.record-details { min-width: 62px; }
.record-details[open] { min-width: 190px; max-width: 260px; }
.record-details summary { cursor: pointer; color: var(--accent); padding: 3px 0; min-height: 32px; }
.record-details p { margin: 10px 0 0; line-height: 1.5; }
.records-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 20px; font-size: 0.875rem; }
.import-review { margin-top: 20px; padding: 20px; background: #f8faf9; border: 1px solid var(--line); border-radius: 9px; }
.import-review > p { line-height: 1.6; margin: 8px 0; overflow-wrap: anywhere; }
.import-issues > p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; margin: 16px 0 12px; }
.import-issues .table-scroll { max-height: 320px; background: white; }
.issue-table th { position: sticky; top: 0; }
.issue-table td:first-child { min-width: 70px; }
.issue-table td:nth-child(2) { min-width: 170px; max-width: 280px; }
.issue-table td:nth-child(3) { min-width: 250px; }
.admin-item-head, .admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.admin-actions { justify-content: flex-start; margin-top: 16px; }
.admin-actions button { min-height: 40px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; }
.admin-actions .approve { background: #eaf5ef; color: #126244; }
.admin-actions .flag { background: #fff6e2; color: #87570b; }
.admin-actions .reject { background: #fbeceb; color: #9a3128; }
.admin-edit { display: grid; gap: 12px; grid-template-columns: minmax(180px, 0.6fr) minmax(220px, 1fr); margin-top: 16px; }

@media (max-width: 1100px) {
  .form-layout { grid-template-columns: minmax(0, 740px); justify-content: center; }
  .side-note { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; padding: 0 4px; }
  .side-note h3:nth-of-type(2) { grid-column: 2; grid-row: 1; border: 0; padding: 0; margin: 0; }
  .side-note p { grid-row: 2; }
}
@media (max-width: 960px) {
  .map-layout { grid-template-columns: 1fr; }
  .detail-panel { align-self: stretch; }
  .disease-table th:first-child { width: 36%; }
}
@media (max-width: 680px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; padding: 18px 16px 14px; }
  .topbar > div { grid-column: 1 / -1; }
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.5rem; }
  .topbar .eyebrow { font-size: 0.75rem; letter-spacing: 0.06em; }
  .tabs { min-width: 0; }
  .tab { flex: 1; min-height: 40px; padding: 0 10px; }
  .master-link { min-height: 44px; padding: 0 12px; }
  main { padding: 16px 12px 28px; }
  .map-layout, .form-layout { gap: 20px; }
  .map-shell, .form-shell, .admin-shell, .detail-panel { border-radius: 10px; padding: 20px 16px; }
  .map-head { flex-direction: column; gap: 16px; }
  .map-head .primary-button { align-self: flex-start; }
  .map-head p { font-size: 0.875rem; }
  .filters { margin: 20px 0 16px; gap: 12px; grid-template-columns: minmax(0, 1fr) 104px; padding: 16px 0; }
  .map-shell { padding: 18px 14px; }
  #reportMap { min-height: 330px; }
  .zoom-note { right: 10px; max-width: none; }
  .legend { gap: 8px 14px; }
  .form-grid { gap: 16px 12px; }
  .form-grid > label { grid-column: span 3; }
  .form-grid .county-field { grid-column: 1 / -1; }
  .form-grid .year-field { grid-column: span 2; }
  .form-grid .date-field { grid-column: span 4; }
  .section-head { margin-bottom: 24px; }
  .form-section legend { font-size: 1rem; }
  .disease-table thead { display: none; }
  .disease-table tr, .disease-table th, .disease-table td { display: block; width: 100%; }
  .disease-table th:first-child { width: 100%; padding: 12px 0 6px; border-bottom: 0; }
  .disease-table td { padding: 0 0 14px; }
  .disease-pressure label { min-height: 44px; }
  .no-disease-option { padding: 12px; margin-bottom: 6px; }
  .submit-area { grid-template-columns: 1fr; gap: 16px; }
  #submitButton { width: 100%; }
  .turnstile-box { overflow: visible; }
  .side-note { display: block; padding: 0 8px; }
  .side-note h3:nth-of-type(2) { margin-top: 20px; }
  .master-grid, .admin-edit, .master-unlock { grid-template-columns: 1fr; }
  .master-unlock { gap: 18px; }
  .tool-panel { padding: 16px; }
  .add-disease-form > button { width: 100%; }
  .admin-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .admin-toolbar > label:first-child, .admin-toolbar > label:last-child { grid-column: 1 / -1; }
  .records-table th, .records-table td { padding: 12px; }
  .table-hint { display: block; margin: 8px 0 0; font-size: 0.8125rem; color: var(--muted); }
  .record-details summary { min-height: 44px; padding: 8px 0; }
  .records-pagination { gap: 12px; justify-content: space-between; }
  .records-pagination button { padding: 10px 12px; }
  .import-review { padding: 16px; }
}

@media (max-width: 359px) {
  .disease-pressure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid > label { grid-column: 1 / -1; }
}
