* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; color: #17202a; background: #f6f7f9; }
header, .topbar { background: #12352f; color: white; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
header strong, .topbar strong { font-size: 18px; margin-right: 8px; }
header span, .topbar span { color: #b9d5ce; }
nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: white; text-decoration: none; padding: 8px 10px; border-radius: 4px; }
nav a.active, nav a:hover { background: rgba(255,255,255,.14); }
main { max-width: 1240px; margin: 24px auto; padding: 0 18px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 18px; margin-top: 28px; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.summary div { background: white; border: 1px solid #dde3e8; border-radius: 6px; padding: 18px; }
.summary span { display: block; font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.notice, .error { padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; }
.notice { background: #eaf7ee; border: 1px solid #b9e2c4; }
.error { background: #fdecec; border: 1px solid #f3b7b7; }
.button, button { display: inline-block; border: 0; border-radius: 4px; background: #166b5d; color: white; padding: 8px 12px; text-decoration: none; cursor: pointer; font-size: 14px; }
.button.secondary { background: #697783; }
.button.small { padding: 6px 10px; font-size: 13px; }
.button.warning, button.warning { background: #9a6a15; }
.button.danger, button.danger { background: #a33a3a; }
.form { background: white; border: 1px solid #dde3e8; border-radius: 6px; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.compact-form { background: #f8fafb; align-items: end; padding: 12px; }
.form-full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cbd4dc; border-radius: 4px; padding: 8px; font: inherit; background: white; }
textarea { min-height: 84px; resize: vertical; }
.condition-editor { display: grid; gap: 10px; padding: 12px; border: 1px solid #e1e7eb; border-radius: 6px; background: #f9fbfb; }
.condition-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.condition-list { display: grid; gap: 10px; }
.condition-row { display: grid; grid-template-columns: minmax(170px, 1.4fr) minmax(150px, 1fr) minmax(100px, .7fr) minmax(100px, .7fr) minmax(100px, .7fr) auto; gap: 10px; align-items: end; padding: 10px; border: 1px solid #e3e8eb; border-radius: 6px; background: white; }
.condition-remove { min-height: 35px; }
table { width: 100%; border-collapse: collapse; background: white; border: 1px solid #dde3e8; }
th, td { border-bottom: 1px solid #e7ebef; padding: 9px 10px; text-align: left; font-size: 14px; vertical-align: top; }
th { background: #edf1f4; font-weight: 700; }
.actions { white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.actions form { margin: 0; }
.actions button { background: #a33a3a; padding: 6px 8px; }
.actions button:not(.warning):not(.danger):not(.secondary) { background: #166b5d; }
.actions button.secondary { background: #697783; }
.actions button.warning { background: #9a6a15; }
.actions button.danger { background: #a33a3a; }
.inline-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 0 0 14px; }
.inline-form label { min-width: 170px; }
.table-action-form { margin: 0; }
.point-assignment-form { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(150px, 1.3fr) minmax(90px, .8fr) minmax(170px, 1fr) auto; gap: 8px; align-items: end; min-width: 620px; }
.point-assignment-form select,
.point-assignment-form input { padding: 6px 8px; font-size: 13px; }
.admin-list-table .actions { min-width: 250px; flex-wrap: wrap; white-space: normal; }
.admin-list-table small { color: #607176; }
.visualization-account-table .actions { justify-content: flex-end; }
.selected-account-note { margin-top: 8px !important; font-weight: 700; color: #166b5d !important; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: #edf1f4; }
.login-box { width: min(420px, calc(100vw - 32px)); margin: 0; padding: 24px; background: white; border: 1px solid #dde3e8; border-radius: 6px; }
.login-box h1 { margin-bottom: 18px; }
.login-form { display: grid; grid-template-columns: 1fr; border: 0; padding: 0; margin: 0; }
.client-body { background: #f3f6f5; }
.client-main { max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand-mark { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.brand-logo-wrap { display: inline-flex; align-items: center; justify-content: center; min-width: 132px; min-height: 56px; padding: 6px 10px; background: #fff; border-radius: 6px; }
.brand-logo { display: block; max-width: 120px; max-height: 42px; width: auto; height: auto; }
.user-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; background: rgba(255,255,255,.12); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; }
.client-hero { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; padding: 20px 0 6px; }
.client-hero.compact { padding-top: 4px; }
.client-hero h1 { margin: 0 0 6px; font-size: 28px; }
.client-hero p { margin: 0; color: #5f6f72; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.client-summary-grid { display: grid; gap: 14px; }
.farm-summary-card { background: white; border: 1px solid #dfe6e3; border-radius: 8px; padding: 18px; box-shadow: 0 1px 0 rgba(18,53,47,.04); }
.farm-summary-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid #edf1ef; }
.farm-summary-head h2 { margin: 0 0 4px; font-size: 22px; color: #1f3131; }
.farm-summary-head p { margin: 0; color: #607176; }
.farm-summary-counts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.farm-summary-counts span { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #eef4f1; color: #33474b; font-size: 12px; font-weight: 700; }
.farm-plot-list { display: grid; gap: 0; }
.farm-plot-row { padding: 16px 0 0; }
.farm-plot-row + .farm-plot-row { margin-top: 16px; border-top: 1px solid #edf1ef; }
.farm-plot-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 12px; }
.farm-plot-title { display: inline-flex; color: #166b5d; font-size: 18px; font-weight: 800; text-decoration: none; }
.farm-plot-title:hover { color: #0f4d43; text-decoration: underline; }
.farm-plot-head p { margin: 4px 0 0; color: #607176; font-size: 13px; }
.summary-facts { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.summary-facts div { min-width: 0; padding: 10px 12px; border-radius: 6px; background: #f7f9f8; }
.summary-facts span { display: block; margin-bottom: 5px; color: #607176; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.summary-facts strong { display: block; color: #1f3131; font-size: 14px; line-height: 1.25; word-break: break-word; }
.point-summary-list { display: grid; gap: 6px; }
.point-summary-row { position: relative; display: grid; grid-template-columns: minmax(160px, 1.2fr) repeat(4, minmax(94px, .7fr)); gap: 10px; align-items: center; min-height: 42px; padding: 9px 122px 9px 11px; border: 1px solid #e4ebe8; border-radius: 6px; color: inherit; text-decoration: none; background: #fff; }
.point-summary-row:hover { border-color: #bfd0c8; background: #f8fbfa; }
.point-summary-row strong { color: #1f3131; font-size: 14px; }
.point-summary-row span { color: #607176; font-size: 12px; }
.health-icons { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; line-height: 0; }
.health-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #90a0a3; }
.health-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.health-icon.level-ok { color: #16a34a; }
.health-icon.level-warn { color: #f1d40f; }
.health-icon.level-low { color: #f59e0b; }
.health-icon.level-critical { color: #dc2626; }
.health-icon.level-active { color: #38bdf8; }
.health-icon-offline { width: 32px; }
.health-icon-solar { width: 38px; }
.point-summary-row > .health-icons { position: absolute; top: 7px; right: 9px; max-width: 108px; }
.summary-empty { margin: 0; padding: 10px 12px; color: #607176; background: #f7f9f8; border-radius: 6px; }
.plot-row-card { display: block; background: white; color: inherit; text-decoration: none; border: 1px solid #dfe6e3; border-radius: 8px; padding: 18px; box-shadow: 0 1px 0 rgba(18,53,47,.04); }
.plot-row-card:hover { border-color: #bfd0c8; box-shadow: 0 8px 24px rgba(18,53,47,.06); }
.plot-row-head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.plot-row-head h2 { margin: 0 0 4px; font-size: 20px; }
.plot-row-head p { margin: 0; color: #607176; }
.plot-flags { display: flex; gap: 8px; flex-wrap: wrap; align-items: start; }
.plot-flags > .health-icons { min-height: 28px; }
.flag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.flag-ok { background: #e7f5ed; color: #206446; }
.flag-alert { background: #fff0e3; color: #915f12; }
.flag-stale { background: #fdeaea; color: #9f3434; }
.plot-row-metrics { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 12px; }
.plot-row-metrics > div { min-height: 90px; padding: 12px; border-radius: 6px; background: #f7f9f8; display: grid; align-content: start; gap: 8px; }
.plot-row-metrics > .plot-row-depths { grid-column: span 3; }
.plot-row-metrics span { font-size: 12px; color: #607176; }
.metric-value { display: block; font-size: 18px; font-weight: 700; color: #1f3131; }
.metric-empty { display: block; font-size: 16px; font-weight: 700; color: #90a0a3; }
.plot-row-metrics small { font-size: 11px; color: #6b7a7b; }
.depth-chip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.depth-chip-grid span { display: grid; gap: 2px; min-width: 0; padding: 6px; border-radius: 5px; background: #eef4f1; }
.depth-chip-grid small { margin: 0; font-size: 10px; color: #607176; }
.depth-chip-grid b { font-size: 13px; color: #1f3131; line-height: 1.15; }
.plot-row-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf1ef; color: #5f6f72; font-size: 13px; }
.heatmap-panel { background: white; border: 1px solid #dfe6e3; border-radius: 8px; padding: 18px; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 10px; }
.panel-head h2 { margin: 0; font-size: 20px; }
.panel-head p { margin: 0; color: #627276; }
.heatmap-wrap { overflow-x: hidden; }
.heatmap-svg { width: 100%; min-width: 0; height: auto; display: block; }
.heatmap-cell { cursor: default; }
.heatmap-value { pointer-events: none; }
.metric-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: stretch; }
.metric-panel { display: grid; align-content: start; gap: 12px; background: white; border: 1px solid #dfe6e3; border-radius: 8px; padding: 16px; color: inherit; text-decoration: none; min-height: 0; box-shadow: 0 1px 0 rgba(18,53,47,.03); }
a.metric-panel:hover { border-color: #bfd0c8; box-shadow: 0 8px 24px rgba(18,53,47,.06); }
.metric-panel h2 { margin: 0; padding-bottom: 10px; border-bottom: 1px solid #edf2f0; color: #0f2f2b; font-size: 18px; line-height: 1.2; }
.metric-panel-grid { display: grid; gap: 10px; }
.metric-panel-grid > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; min-height: 48px; padding: 10px 12px; background: #f7f9f8; border: 1px solid #e7eeeb; border-radius: 6px; }
.metric-panel-grid > .point-metric-stack { grid-template-columns: 1fr; align-items: stretch; }
.metric-panel-grid span { display: block; min-width: 0; margin: 0; color: #607176; font-size: 12px; line-height: 1.25; }
.metric-panel-grid strong { min-width: 0; color: #1f3131; font-size: 16px; line-height: 1.2; text-align: right; overflow-wrap: anywhere; }
.metric-panel-grid .metric-panel-depths { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px; align-items: stretch; }
.metric-panel-depths .depth-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.metric-panel-depths .depth-chip-grid span { display: grid; gap: 2px; min-width: 0; margin: 0; padding: 6px; border-radius: 5px; background: #eef4f1; }
.metric-panel-depths .depth-chip-grid small { margin: 0; font-size: 10px; color: #607176; }
.metric-panel-depths .depth-chip-grid b { color: #1f3131; font-size: 13px; line-height: 1.15; text-align: left; white-space: normal; }
.plot-point-reading-list { display: grid; gap: 10px; }
.plot-point-reading-block { position: relative; display: grid; gap: 9px; padding: 11px 12px; background: #f8fbfa; border: 1px solid #e0ebe7; border-left: 3px solid #8fb7a5; border-radius: 6px; }
.plot-point-reading-name { display: block; min-width: 0; padding-bottom: 6px; border-bottom: 1px solid #e7eeeb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #163f38; font-size: 13px; font-weight: 800; }
.plot-point-reading-block .point-metric-stack { min-width: 0; }
.subtle-note { margin: 14px 0 0; color: #6a797c; font-size: 13px; }
.plot-points-panel { margin-top: 18px; padding: 18px; background: white; border: 1px solid #dfe6e3; border-radius: 8px; }
.point-board-panel { margin-top: 0; }
.point-table-wrap { overflow-x: auto; border: 1px solid #dfe6e3; border-radius: 8px; }
.point-dashboard-table { min-width: 1080px; border: 0; }
.point-dashboard-table th { background: #eef3f1; color: #33474b; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.point-dashboard-table th, .point-dashboard-table td { padding: 12px; border-bottom: 1px solid #e4ebe8; vertical-align: top; }
.point-dashboard-table tbody tr:hover td { background: #f8fbfa; }
.point-name-cell { position: relative; padding-right: 116px !important; }
.point-name-cell > .health-icons { position: absolute; top: 8px; right: 8px; max-width: 104px; }
.point-name-cell strong, .point-name-link { display: block; margin-bottom: 4px; color: #1f3131; font-size: 15px; font-weight: 800; }
.point-name-link { color: #166b5d; text-decoration: none; }
.point-name-link:hover { color: #0f4d43; text-decoration: underline; }
.point-name-cell small, .point-last-reading { display: block; color: #607176; font-size: 12px; line-height: 1.35; }
.point-status { display: inline-flex; align-items: center; min-height: 26px; margin-bottom: 7px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.point-status.is-ok { background: #e7f5ed; color: #206446; }
.point-status.is-stale { background: #fdeaea; color: #9f3434; }
.point-metric-stack { display: grid; gap: 8px; min-width: 128px; }
.point-metric-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; min-width: 0; }
.point-metric-line.has-icon { grid-template-columns: minmax(0, 1fr) auto 34px; align-items: center; }
.metric-panel-grid .point-metric-line { display: grid; margin-bottom: 0; }
.point-metric-stack small { min-width: 0; color: #607176; font-size: 12px; line-height: 1.25; }
.point-metric-stack b { color: #1f3131; font-size: 14px; line-height: 1.2; text-align: right; white-space: nowrap; }
.point-metric-stack em { color: #90a0a3; font-style: normal; font-size: 13px; }
.point-line-icon { display: inline-flex; justify-content: flex-end; align-items: center; line-height: 0; }
.metric-panel-grid .point-line-icon { display: inline-flex; margin-bottom: 0; }
.metric-panel-grid .health-icon { display: inline-flex; margin-bottom: 0; }
.point-line-icon .health-icon { width: 24px; height: 24px; }
.point-line-icon .health-icon-solar { width: 32px; }
.energy-metric-stack { min-width: 0; }
.table-link { color: #166b5d; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.table-link:hover { color: #0f4d43; text-decoration: underline; }
.alert-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.alert-chip { background: #fff5e8; border: 1px solid #f1d6ab; border-radius: 6px; padding: 10px 12px; display: grid; gap: 4px; color: inherit; text-decoration: none; }
.alert-chip:hover { border-color: #dba85c; box-shadow: 0 8px 20px rgba(122, 78, 18, .08); }
.alert-chip strong { font-size: 13px; }
.alert-chip span { font-size: 12px; color: #81581d; }
.alert-status { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; font-weight: 700; }
.alert-status.is-active { background: #fff0e3; color: #915f12; }
.alert-status.is-resolved { background: #e8f3ec; color: #166b5d; }
.alert-history-panel { margin-top: 16px; overflow-x: auto; }
.alert-mini-status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.alert-mini-status.is-active { background: #fff0e3; color: #915f12; }
.alert-mini-status.is-resolved { background: #e8f3ec; color: #166b5d; }
.alert-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.alert-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.alert-facts div { padding: 12px; background: #f7f9f8; border-radius: 6px; }
.alert-facts span { display: block; font-size: 12px; color: #607176; margin-bottom: 6px; }
.alert-facts strong { font-size: 14px; color: #1f3131; word-break: break-word; }
.alert-action-form { margin-top: 14px; }
.alert-condition-list { display: grid; gap: 10px; }
.alert-condition { display: grid; gap: 4px; padding: 12px; border: 1px solid #dfe6e3; border-left-width: 5px; border-radius: 7px; background: #fbfcfc; }
.alert-condition.matches { border-left-color: #c86444; }
.alert-condition.no-match { border-left-color: #8fb7a5; }
.alert-condition strong { color: #1f3131; }
.alert-condition span { color: #516468; }
.alert-condition small { color: #6b7a7b; }
.alert-condition em { color: #a33b2c; font-style: normal; font-size: 12px; }
.back-link { color: #166b5d; text-decoration: none; font-size: 13px; font-weight: 700; }
.detail-range { align-items: center; }
.range-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; background: #e8efed; color: #1f3131; text-decoration: none; font-size: 13px; }
.range-pill.active { background: #166b5d; color: white; }
.detail-columns { display: grid; gap: 16px; }
.detail-chart-stack { display: grid; gap: 0; overflow: visible; background: white; border: 1px solid #dfe6e3; border-radius: 8px; }
.detail-card { background: white; border: 1px solid #dfe6e3; border-radius: 8px; padding: 16px; }
.detail-card h2 { margin: 0 0 12px; font-size: 20px; }
.analysis-export-card { margin: -6px 0 18px; }
.analysis-export-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.analysis-export-form label { display: grid; gap: 5px; color: #607176; font-size: 12px; font-weight: 700; }
.analysis-export-form input { min-height: 36px; }
.chart-card { margin-bottom: 14px; padding: 10px; border: 1px solid #e5ebee; border-radius: 8px; background: #fbfcfc; }
.temporal-chart { width: 100%; height: auto; display: block; min-height: 220px; }
.chart-empty { display: grid; place-items: center; min-height: 220px; color: #6b7a7b; background: #fbfcfc; border-radius: 8px; }
.combined-chart-card { padding: 18px; }
.combined-chart-head { display: grid; gap: 14px; margin-bottom: 12px; }
.combined-chart-head h2 { margin: 0; }
.chart-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border: 1px solid #e3e9e9; border-radius: 7px; background: #f8fbfa; }
.chart-tools button { min-height: 32px; padding: 0 10px; font-size: 13px; }
.chart-tools button.active { background: #c86444; }
.chart-tools label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #506368; font-size: 12px; }
.chart-tools select, .chart-tools input { min-height: 32px; width: auto; padding: 5px 8px; font-size: 13px; }
.chart-tools input { max-width: 88px; }
.combined-chart-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.series-toggle { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 2px; align-items: center; min-width: 180px; padding: 9px 11px; border: 1px solid #dfe6e3; border-left: 4px solid var(--series-color); border-radius: 7px; background: #fbfcfc; font-weight: 700; cursor: pointer; }
.series-toggle input { width: auto; accent-color: var(--series-color); }
.series-toggle small { grid-column: 2; color: #6b7a7b; font-weight: 400; }
.combined-chart { position: relative; overflow-x: auto; padding-bottom: 4px; }
.combined-chart-svg { width: 100%; min-width: 860px; height: auto; display: block; }
.combined-chart-series { transition: opacity .16s ease, stroke-width .16s ease; }
.combined-chart-daily { pointer-events: none; }
.combined-chart-bars { transition: opacity .16s ease; }
.combined-chart-bar { transition: opacity .16s ease; }
.combined-chart-series.is-hidden, .combined-chart-bars.is-hidden, .combined-chart-daily.is-hidden { display: none; }
.chart-x-label { pointer-events: none; }
.chart-x-label-major { font-weight: 700; }
.chart-data-point { pointer-events: none; filter: drop-shadow(0 1px 1px rgba(18,53,47,.18)); }
.chart-hitbox { cursor: crosshair; }
.chart-cursor-line { display: none; stroke: #263b3d; stroke-width: 1.3; stroke-dasharray: 4 4; pointer-events: none; }
.combined-chart.is-active .chart-cursor-line { display: block; }
.chart-tooltip { position: absolute; z-index: 5; min-width: 210px; max-width: 300px; padding: 10px 12px; border: 1px solid #cfd9da; border-radius: 8px; background: rgba(255,255,255,.97); box-shadow: 0 12px 28px rgba(18,53,47,.14); color: #1f3131; font-size: 12px; pointer-events: none; opacity: 0; transform: translate(12px, -50%); transition: opacity .12s ease; }
.chart-tooltip.is-visible { opacity: 1; }
.chart-tooltip strong { display: block; margin-bottom: 6px; font-size: 12px; }
.chart-tooltip div { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.chart-tooltip span { display: inline-flex; align-items: center; gap: 6px; }
.chart-tooltip i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--series-color); }
.detail-chart-stack .combined-chart-card { position: relative; border: 0; border-radius: 0; padding: 8px 10px 4px; }
.detail-chart-stack .combined-chart-card + .combined-chart-card { border-top: 1px solid #edf2f1; }
.detail-chart-stack .combined-chart-head { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 2px; min-height: 26px; }
.detail-chart-stack .combined-chart-head h2 { margin: 0 auto 0 0; font-size: 13px; line-height: 1.2; color: #1f3131; }
.chart-visibility-toggle { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.chart-visibility-toggle input { width: 13px; height: 13px; margin: 0; accent-color: #166b5d; cursor: pointer; }
.chart-series-count { color: #6b7a7b; font-size: 11px; white-space: nowrap; }
.chart-settings { position: relative; }
.chart-settings summary { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border: 1px solid #dfe6e3; border-radius: 999px; color: #166b5d; background: #f8fbfa; font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.chart-settings summary::-webkit-details-marker { display: none; }
.chart-settings[open] summary { background: #166b5d; color: white; border-color: #166b5d; }
.chart-settings-panel { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); width: min(760px, calc(100vw - 48px)); padding: 10px; border: 1px solid #d7e2df; border-radius: 8px; background: white; box-shadow: 0 18px 38px rgba(18,53,47,.16); }
.detail-chart-stack .chart-tools { gap: 6px; padding: 8px; }
.detail-chart-stack .chart-tools button { min-height: 28px; padding: 0 8px; font-size: 12px; }
.detail-chart-stack .chart-tools select,
.detail-chart-stack .chart-tools input { min-height: 28px; padding: 4px 7px; font-size: 12px; }
.detail-chart-stack .combined-chart-toggles { gap: 6px; max-height: 148px; overflow: auto; padding-top: 8px; }
.detail-chart-stack .series-toggle { min-width: 150px; padding: 6px 8px; column-gap: 6px; border-radius: 6px; font-size: 12px; }
.detail-chart-stack .series-toggle small { display: none; }
.detail-chart-stack .combined-chart { overflow-x: visible; padding-bottom: 0; }
.detail-chart-stack .combined-chart-svg { min-width: 0; }
.detail-chart-stack .combined-chart-card.is-chart-collapsed { padding-bottom: 8px; }
.detail-chart-stack .combined-chart-card.is-chart-collapsed .combined-chart { display: none; }
.data-table-card { padding: 0; overflow: hidden; }
.data-table-card summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: #1f3131; }
.data-table-card[open] summary { border-bottom: 1px solid #dfe6e3; }
.data-table-card .detail-card-grid { padding: 16px; }
.detail-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.setup-guide { background: white; border: 1px solid #dde3e8; border-radius: 6px; padding: 16px 18px; margin: 0 0 18px; }
.setup-guide h2 { margin: 0 0 10px; font-size: 18px; }
.setup-guide ol { margin: 0; padding-left: 20px; color: #4f5e63; }
.setup-guide li + li { margin-top: 8px; }
.hub-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.hub-columns.lower { align-items: start; }
.hub-structure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; align-items: start; }
.hub-card { background: white; border: 1px solid #dde3e8; border-radius: 8px; padding: 16px; }
.hub-card h2:first-child { margin-top: 0; }
.service-card { margin-top: 18px; }
.service-grid-form { display: grid; gap: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.service-toggle { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 0; padding: 13px; border: 1px solid #dfe6e3; border-left: 5px solid #aebcbd; border-radius: 8px; background: #fbfcfc; }
.service-toggle.is-enabled { border-left-color: #166b5d; background: #f4faf7; }
.service-toggle input { width: auto; margin-top: 3px; accent-color: #166b5d; }
.service-toggle strong { display: block; color: #1f3131; }
.service-toggle small { display: block; margin-top: 4px; color: #607176; line-height: 1.35; }
.service-placeholder { display: grid; gap: 14px; }
.service-placeholder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-placeholder-grid div { padding: 14px; border-radius: 7px; background: #f7f9f8; }
.service-placeholder-grid span { display: block; color: #607176; font-size: 12px; margin-bottom: 7px; }
.service-placeholder-grid strong { color: #1f3131; }
.satellite-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, .8fr); gap: 16px; align-items: start; margin-bottom: 18px; }
.satellite-map-card { min-width: 0; }
.satellite-map { min-height: 520px; border: 1px solid #d7e0dc; border-radius: 8px; overflow: hidden; background: #e9efef; }
.point-map-panel { margin-bottom: 18px; }
.point-location-map { position: relative; min-height: 360px; border: 1px solid #d7e0dc; border-radius: 8px; overflow: hidden; background: #e9efef; }
.point-map-empty { position: absolute; left: 12px; bottom: 12px; z-index: 500; max-width: min(420px, calc(100% - 24px)); padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,.92); color: #607176; font-size: 13px; box-shadow: 0 4px 14px rgba(18,53,47,.10); }
.satellite-geometry-card { display: grid; gap: 12px; }
.satellite-geometry-map { min-height: 620px; border: 1px solid #d7e0dc; border-radius: 8px; overflow: hidden; background: #e9efef; }
.satellite-geometry-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.satellite-geometry-actions span, .satellite-download-form span { color: #607176; font-size: 13px; }
.satellite-geometry-status { display: inline-flex; align-items: center; width: fit-content; margin-top: 8px; padding: 5px 9px; border-radius: 999px; background: #fff5d6; color: #715200; font-size: 12px; font-weight: 800; }
.map-empty { min-height: 520px; display: grid; place-items: center; color: #607176; background: #f7f9f8; }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; color: #526568; font-size: 13px; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 999px; }
.legend-plot { border: 2px solid #f4c247; background: rgba(244,194,71,.28); }
.legend-original { border: 2px dashed #607176; background: #fff; }
.legend-point { border: 2px solid #0f766e; background: #fff; }
.satellite-download-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.satellite-form { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sigpac-code-grid { display: grid; grid-template-columns: repeat(4, minmax(82px, 1fr)); gap: 10px; }
.checkbox-line { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.checkbox-line input { width: auto; accent-color: #166b5d; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.satellite-insights { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; margin-bottom: 18px; }
.satellite-preview { display: block; width: 100%; max-height: 260px; object-fit: cover; border: 1px solid #dfe6e3; border-radius: 8px; margin-top: 12px; }
.satellite-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.satellite-stat { display: grid; gap: 5px; padding: 12px; border: 1px solid #dfe6e3; border-left: 5px solid var(--series-color); border-radius: 8px; background: #fbfcfc; }
.satellite-stat span { color: #607176; font-size: 12px; font-weight: 700; }
.satellite-stat strong { color: #1f3131; font-size: 24px; line-height: 1; }
.satellite-stat small { color: #627276; line-height: 1.3; }
.satellite-stat em { color: #607176; font-size: 12px; font-style: normal; }
.satellite-chart-panel { margin-bottom: 18px; overflow-x: auto; }
.satellite-chart-tools { margin-top: 12px; }
.satellite-combined-chart { margin-top: 10px; }
.satellite-series-svg { width: 100%; min-width: 760px; height: auto; display: block; }
.satellite-series-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; color: #526568; font-size: 13px; }
.satellite-series-legend span { display: inline-flex; align-items: center; gap: 6px; }
.satellite-series-legend i { width: 12px; height: 4px; border-radius: 999px; background: var(--series-color); }
.satellite-map-layers-panel { margin-bottom: 18px; }
.satellite-date-filter { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 12px 0; padding: 10px; border: 1px solid #dfe6e3; border-radius: 8px; background: #fbfcfc; }
.satellite-date-filter label { display: grid; gap: 5px; color: #607176; font-size: 12px; font-weight: 700; }
.satellite-date-filter input { min-height: 36px; }
.satellite-spatial-matrix { overflow-x: auto; }
.satellite-spatial-matrix table { min-width: 1120px; border-collapse: separate; border-spacing: 0; }
.satellite-spatial-matrix th, .satellite-spatial-matrix td { border-bottom: 1px solid #e3e9e7; padding: 10px; vertical-align: top; background: #fff; }
.satellite-spatial-matrix thead th { position: sticky; top: 0; z-index: 1; color: #1f3131; border-top: 1px solid #e3e9e7; border-bottom: 2px solid var(--series-color, #dfe6e3); background: #fbfcfc; }
.satellite-spatial-matrix thead th span { display: block; margin-top: 3px; color: #607176; font-size: 11px; font-weight: 400; white-space: nowrap; }
.satellite-spatial-matrix tbody th { position: sticky; left: 0; z-index: 1; width: 138px; color: #1f3131; background: #fbfcfc; }
.satellite-spatial-matrix tbody th strong, .satellite-spatial-matrix tbody th span { display: block; }
.satellite-spatial-matrix tbody th span { margin-top: 4px; color: #607176; font-size: 12px; font-weight: 400; }
.satellite-row-actions { display: grid; gap: 5px; margin-top: 8px; }
.satellite-row-actions form { margin: 0; }
.tiny { min-height: 28px; padding: 4px 8px; border-radius: 6px; font-size: 11px; line-height: 1; }
.danger { background: #b42318; color: #fff; }
.danger:hover { background: #8f1d14; }
.satellite-spatial-cell { display: grid; gap: 7px; min-width: 132px; }
.satellite-spatial-thumb { display: grid; place-items: center; width: 100%; min-height: 96px; padding: 4px; border: 1px solid #dfe6e3; border-radius: 7px; background: #edf2f0; cursor: zoom-in; }
.satellite-spatial-thumb:hover { border-color: #9fb6ae; box-shadow: 0 4px 14px rgba(18,53,47,.10); }
.satellite-spatial-thumb img { display: block; max-width: 100%; max-height: 104px; width: auto; height: auto; object-fit: contain; }
.satellite-spatial-cell-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.satellite-spatial-cell-meta strong { color: #1f3131; font-size: 13px; }
.satellite-spatial-cell-meta span { display: inline-flex; align-items: center; gap: 5px; color: #526568; font-size: 11px; font-weight: 700; white-space: nowrap; }
.satellite-spatial-cell-meta i { width: 10px; height: 10px; border-radius: 50%; background: var(--class-color); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.satellite-spatial-empty { display: grid; place-items: center; min-height: 128px; border: 1px dashed #cfd9d6; border-radius: 7px; color: #6b7a7b; background: white; }
.satellite-spatial-list { display: grid; gap: 14px; }
.satellite-spatial-row { display: grid; gap: 10px; padding: 12px; border: 1px solid #dfe6e3; border-radius: 8px; background: #fbfcfc; }
.satellite-spatial-row header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.satellite-spatial-row header strong { color: #1f3131; }
.satellite-spatial-row header span { color: #607176; font-size: 12px; font-weight: 700; }
.satellite-layer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.satellite-layer-card { overflow: hidden; border: 1px solid #dfe6e3; border-left: 5px solid var(--series-color); border-radius: 8px; background: white; }
.satellite-layer-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #edf2f0; }
.satellite-layer-card div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.satellite-layer-card strong { color: #1f3131; }
.satellite-layer-card span { color: #526568; font-size: 13px; font-weight: 700; }
.satellite-histogram-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.satellite-histogram-card { display: grid; gap: 10px; padding: 12px; border: 1px solid #dfe6e3; border-left: 5px solid var(--series-color); border-radius: 8px; background: #fbfcfc; }
.satellite-histogram-card strong { color: #1f3131; }
.satellite-histogram-card img { width: 100%; border-radius: 7px; border: 1px solid #dfe6e3; }
.satellite-histogram-matrix { overflow-x: auto; }
.satellite-histogram-matrix table { min-width: 980px; border-collapse: separate; border-spacing: 0; }
.satellite-histogram-matrix th, .satellite-histogram-matrix td { border-bottom: 1px solid #e3e9e7; padding: 10px; vertical-align: top; background: #fff; }
.satellite-histogram-matrix thead th { position: sticky; top: 0; z-index: 1; color: #1f3131; border-top: 1px solid #e3e9e7; border-bottom: 2px solid var(--series-color, #dfe6e3); background: #fbfcfc; }
.satellite-histogram-matrix thead th span { display: block; margin-top: 3px; color: #607176; font-size: 11px; font-weight: 400; white-space: nowrap; }
.satellite-histogram-matrix tbody th { position: sticky; left: 0; z-index: 1; width: 120px; color: #1f3131; background: #fbfcfc; }
.satellite-histogram-matrix tbody th strong, .satellite-histogram-matrix tbody th span { display: block; }
.satellite-histogram-matrix tbody th span { margin-top: 4px; color: #607176; font-size: 12px; font-weight: 400; }
.satellite-histogram-cell { display: grid; gap: 5px; min-width: 118px; }
.satellite-histogram-cell > span { color: #526568; font-size: 12px; font-weight: 700; text-align: right; }
.satellite-histogram { display: flex; align-items: end; gap: 3px; height: 96px; padding: 8px; border-radius: 7px; background: white; border: 1px solid #e3e9e7; }
.satellite-histogram-cell .satellite-histogram { height: 58px; padding: 6px; gap: 2px; }
.satellite-histogram span { flex: 1; min-width: 5px; height: var(--bar-height); border-radius: 3px 3px 0 0; background: var(--series-color); opacity: .82; }
.satellite-histogram-cell .satellite-histogram span { min-width: 3px; }
.histogram-empty { display: grid; place-items: center; min-height: 96px; border: 1px dashed #cfd9d6; border-radius: 7px; color: #6b7a7b; background: white; }
.satellite-histogram-cell .histogram-empty, .satellite-histogram-matrix td > .histogram-empty { min-height: 58px; }
.representative-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.representative-card { overflow: hidden; border: 1px solid #dfe6e3; border-radius: 8px; background: #fbfcfc; }
.representative-card img, .representative-empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e7eeec; }
.representative-empty { display: grid; place-items: center; color: #607176; }
.representative-card div:not(.representative-empty) { display: grid; gap: 5px; padding: 12px; }
.representative-card h3 { margin: 0; font-size: 16px; color: #1f3131; }
.representative-card p { margin: 0; color: #607176; }
.representative-card small { color: #7a888b; }
.representative-card strong { color: #166b5d; }
.has-open-modal { overflow: hidden; }
.satellite-map-modal[hidden] { display: none; }
.satellite-map-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(20, 33, 34, .68); }
.satellite-map-modal-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; width: min(1180px, 96vw); max-height: 92vh; padding: 16px; border-radius: 8px; background: #fff; box-shadow: 0 22px 70px rgba(0,0,0,.28); }
.satellite-map-modal-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: #1f3131; color: #fff; font-size: 18px; line-height: 1; }
.satellite-map-modal-media { position: relative; display: grid; place-items: center; min-height: 360px; border: 1px solid #dfe6e3; border-radius: 8px; background: #edf2f0; overflow: hidden; }
.satellite-map-modal-media img { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; }
.satellite-map-north { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 46px; height: 58px; color: #1f3131; font-weight: 900; }
.satellite-map-north::before { content: ""; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 34px solid #1f3131; filter: drop-shadow(0 1px 2px rgba(255,255,255,.8)); }
.satellite-map-north span { position: absolute; bottom: 0; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.86); font-size: 12px; }
.satellite-map-modal-info { overflow: auto; padding: 8px 4px 8px 0; }
.satellite-map-modal-info h2 { margin: 0 0 10px; color: #1f3131; font-size: 20px; }
.satellite-map-modal-info h3 { margin: 16px 0 8px; color: #1f3131; font-size: 15px; }
.satellite-map-modal-info dl { display: grid; gap: 7px; margin: 0; }
.satellite-map-modal-info dl div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding-bottom: 6px; border-bottom: 1px solid #edf1ef; }
.satellite-map-modal-info dt { color: #607176; font-size: 12px; font-weight: 800; }
.satellite-map-modal-info dd { margin: 0; color: #1f3131; font-size: 13px; font-weight: 700; word-break: break-word; }
.satellite-map-modal-legend { display: grid; gap: 6px; }
.satellite-map-modal-legend div { display: grid; grid-template-columns: 14px 86px minmax(0, 1fr); gap: 7px; align-items: center; font-size: 12px; }
.satellite-map-modal-legend i { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.satellite-map-modal-legend span { color: #607176; font-variant-numeric: tabular-nums; }
.satellite-map-modal-legend strong { color: #1f3131; font-size: 12px; }
.tree-board { display: grid; gap: 18px; }
.tree-node { position: relative; border: 1px solid #dfe6e3; border-radius: 8px; background: white; padding: 14px; }
.tree-node-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.tree-node-head strong { font-size: 17px; color: #1f3131; }
.tree-node-head span { color: #607176; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.tree-children { display: grid; gap: 12px; padding-left: 18px; border-left: 2px solid #e4ece8; }
.tree-farm { border-left: 5px solid #166b5d; }
.tree-plot { background: #fbfcfc; }
.tree-point { background: #f7faf9; }
.tree-devices { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-left-color: #d4e2dd; }
.tree-device { display: grid; gap: 5px; padding: 12px; border: 1px solid #dfe6e3; border-radius: 7px; background: white; }
.tree-device strong { color: #1f3131; }
.tree-device span { font-size: 13px; color: #56686b; }
.tree-device small { color: #607176; }
.tree-device em { color: #166b5d; font-size: 12px; font-style: normal; word-break: break-word; }
.tree-empty { margin: 0; color: #7b898c; }
.soil-profile-card { margin-top: 18px; }
.edit-banner { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: #eef6f3; border: 1px solid #cfe3dc; color: #214941; }
.ingest-dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ingest-dir-card { padding: 14px; border: 1px solid #e3e8eb; border-radius: 6px; background: #f9fbfb; display: grid; gap: 6px; }
.ingest-dir-card strong { font-size: 15px; color: #1f3131; }
.ingest-dir-card span { font-size: 20px; font-weight: 700; color: #12352f; }
.ingest-dir-card small { color: #627276; word-break: break-word; }
.report-form { align-items: end; }
.report-actions { align-self: end; }
.report-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.report-heading h2 { margin: 5px 0; font-size: 24px; }
.report-heading p { margin: 0; color: #607176; }
.report-heading > strong { color: #166b5d; }
.report-kicker { color: #607176; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.report-section { margin-bottom: 18px; }
.report-section .panel-head { align-items: start; }
.report-section .panel-head h2 { margin-bottom: 4px; }
.report-total { display: grid; gap: 4px; min-width: 190px; padding: 12px 14px; border-radius: 7px; background: #eef6f3; text-align: right; }
.report-total span { color: #607176; font-size: 12px; }
.report-total strong { color: #166b5d; font-size: 22px; }
.report-tables { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 16px; align-items: start; }
.report-tables h3 { margin: 8px 0 10px; color: #1f3131; }
.report-tables tfoot th { background: #eef6f3; color: #166b5d; }
.report-empty { margin: 16px 0 0; padding: 18px; border-radius: 7px; background: #f7f9f8; color: #607176; }
@media (max-width: 760px) {
    header, .topbar { display: block; }
    nav { justify-content: flex-start; margin-top: 12px; }
    .toolbar { align-items: flex-start; flex-direction: column; }
    table { display: block; overflow-x: auto; }
    .client-hero, .farm-summary-head, .farm-plot-head, .plot-row-head, .plot-row-foot, .panel-head { display: grid; }
    .farm-summary-counts { justify-content: flex-start; }
    .summary-facts, .point-summary-row, .plot-row-metrics, .metric-panels, .plot-point-grid, .plot-point-metrics, .detail-card-grid, .hub-columns, .hub-structure-grid, .ingest-dir-grid, .condition-row, .satellite-layout, .satellite-form, .sigpac-code-grid, .satellite-insights, .satellite-layer-grid, .report-tables, .point-assignment-form { grid-template-columns: 1fr; }
    .point-assignment-form { min-width: 0; }
    .report-heading { display: grid; }
    .report-total { min-width: 0; text-align: left; }
    .metric-panel { min-height: 0; }
    .satellite-map, .satellite-geometry-map, .point-location-map, .map-empty { min-height: 360px; }
    .satellite-map-modal { padding: 10px; align-items: start; overflow: auto; }
    .satellite-map-modal-panel { grid-template-columns: 1fr; width: 100%; max-height: none; padding: 12px; }
    .satellite-map-modal-media { min-height: 240px; }
    .satellite-map-modal-media img { max-height: 56vh; }
    .satellite-map-modal-info dl div { grid-template-columns: 72px minmax(0, 1fr); }
}
