.rep { --r-ink: #1f2a24; --r-ink-2: #4c5a52; --r-ink-3: #7a877f; --r-line: #e2e6e1; --r-brand: #2f6b4f; --r-brand-2: #dcefe3; --r-code: #f0f2ef; --r-warn: #8a5a00; --r-warn-bg: #fff6df;
  max-width: 860px; margin: 0 auto; padding: 28px 32px 24px; background: #fff; color: var(--r-ink); border: 1px solid var(--r-line); border-radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.5; text-align: left; }
.rep * { box-sizing: border-box; }
.rep-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rep-logo { height: 40px; width: auto; }
.rep-num { color: var(--r-ink-3); font-size: 13px; }
.rep h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; line-height: 1.25; }
.rep h2 { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.rep p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rep-by { color: var(--r-ink-2); font-size: 14px; }
.rep-stats { display: grid; grid-template-columns: 1fr 1fr 1.6fr; margin: 16px 0 12px; border: 1px solid var(--r-line); border-radius: 12px; overflow: hidden; }
.rep-stats > div { padding: 12px 16px; border-right: 1px solid var(--r-line); font-size: 17px; }
.rep-stats > div:last-child { border-right: 0; }
.rep-stats .warn { background: var(--r-warn-bg); color: var(--r-warn); }
.rep-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 12px; }
.rep-box { padding: 12px 16px; border: 1px solid var(--r-line); border-radius: 12px; }
.rep-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 4px 0 10px; color: var(--r-ink-2); font-size: 13px; }
.rep-facts b { color: var(--r-ink); font-weight: 600; }
.rep-note { padding: 9px 14px; border-radius: 10px; background: var(--r-code); color: var(--r-ink-2); font-size: 13px; }
.rep-note b { color: var(--r-ink); }
.rep-field { margin-top: 22px; break-inside: avoid; }
.rep-map { display: block; width: 100%; height: auto; max-height: 420px; margin-bottom: 10px; border-radius: 12px; background: var(--r-code); }
.rep-map .bg { fill: #f3f5f2; }
.rep-map .ndvi { image-rendering: pixelated; }
.rep-map .contour { fill: none; stroke: #1f2a24; stroke-width: 2; stroke-linejoin: round; }
.rep-map .zone { fill: #f5a623; stroke: #fff; stroke-width: 2; }
.rep-map .zone-n { fill: #fff; font-size: 13px; font-weight: 700; }
.rep-map .lbl-bg { fill: rgba(31, 42, 36, .82); }
.rep-map .lbl { fill: #fff; font-size: 13px; font-weight: 600; }
.rep-tbl { overflow-x: auto; }
.rep-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rep-tbl th { text-align: left; font-weight: 400; color: var(--r-ink-3); background: var(--r-code); padding: 7px 10px; white-space: nowrap; }
.rep-tbl td { padding: 8px 10px; border-top: 1px solid var(--r-line); vertical-align: top; }
.rep-box .rep-tbl { margin-top: 8px; }
.rep-small { margin-top: 8px !important; color: var(--r-ink-3); font-size: 12px; }
.rep-entry { padding: 9px 0; border-top: 1px solid var(--r-line); }
.rep-entry .m { color: var(--r-ink-3); font-size: 13px; margin-bottom: 2px; }
.rep-foot { margin-top: 24px !important; padding-top: 12px; border-top: 1px solid var(--r-line); color: var(--r-ink-3); font-size: 12px; }
.rep-view { margin: 0; min-height: 100vh; padding: 20px 16px 32px; background: #f6f7f5; font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.rep-bar { max-width: 860px; margin: 0 auto 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rep-bar .rep-small { margin: 0 0 0 auto !important; }
.rep-btn { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px; border: 1px solid #2f6b4f; background: #2f6b4f; color: #fff; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.rep-btn.plain { background: #fff; color: #2f6b4f; font-weight: 400; }
.rep-msg { max-width: 560px; margin: 18vh auto 0; padding: 22px 24px; border: 1px solid #e2e6e1; border-radius: 14px; background: #fff; color: #4c5a52; font-size: 15px; line-height: 1.5; text-align: center; }
@media (max-width: 640px) {
  .rep { padding: 20px 16px; }
  .rep-stats { grid-template-columns: 1fr; }
  .rep-stats > div { border-right: 0; border-bottom: 1px solid var(--r-line); }
  .rep-stats > div:last-child { border-bottom: 0; }
}
@media print {
  .rep-view { padding: 0; background: #fff; }
  .rep-bar { display: none; }
  .rep { border: 0; padding: 0; max-width: none; }
}
