:root {
  --forest: #245747; --ink: #183d37; --muted: #718178; --paper: #f7faf6; --line: #e2e9e1;
  --el-color-primary: #245747; --el-color-primary-dark-2: #183d37;
  --el-color-primary-light-3: #66897b; --el-color-primary-light-5: #95ada2;
  --el-color-primary-light-7: #c2d2c8; --el-color-primary-light-8: #dce6dc; --el-color-primary-light-9: #edf3e9;
  --el-text-color-primary: #183d37; --el-text-color-regular: #435a50; --el-text-color-secondary: #718178;
  --el-border-color: #dce5db; --el-border-color-light: #e6ece3; --el-border-color-lighter: #edf1ea;
  --el-fill-color-light: #f3f7f0; --el-fill-color-lighter: #f8faf6; --el-bg-color-page: #f7faf6;
  --el-border-radius-base: 9px; --el-font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[v-cloak] { display: none; }
body { font-family: var(--el-font-family); color: var(--ink); background: var(--paper); font-size: 14px; -webkit-font-smoothing: antialiased; }
button { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #88ac99; outline-offset: 3px; }
.eyebrow { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .06em; line-height: 1.6; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 650; letter-spacing: .02em; }
.brand small { display: block; font-size: 10px; font-weight: 400; letter-spacing: .1em; color: var(--muted); margin-top: 5px; }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; color: var(--forest); background: #edf3e9; border-radius: 13px; }

/* Login: quiet paper, one accent, generous room around the form. */
.login-wrap { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: center; column-gap: clamp(48px, 8vw, 130px); max-width: 1192px; padding: 64px 48px 92px; margin: auto; }
.login-intro { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: 500px; }
.login-intro .brand { position: absolute; top: 0; }
.login-story { padding: 68px 0 54px; }
.login-story h1 { margin: 18px 0 24px; font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.025em; line-height: 1.5; font-weight: 600; }
.login-description { font-size: 15px; color: var(--muted); line-height: 2; }
.login-topics { display: flex; gap: 22px; margin-top: 28px; font-size: 12px; color: var(--forest); }
.login-water { position: absolute; left: -48px; bottom: -16px; width: calc(100% + 48px); height: 100px; color: #d8e3d4; pointer-events: none; }
.login-card { position: relative; padding: 40px 36px 28px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 56px -32px #244d4133; }
.login-title { font-size: 27px; line-height: 1.4; font-weight: 600; margin: 10px 0 12px; }
.login-caption { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 30px; }
.login-card .el-form-item { margin-bottom: 22px; }
.login-card .el-form-item__label { font-size: 13px; color: var(--ink); padding-bottom: 7px; }
.login-card .el-input__wrapper { min-height: 48px; background: #fbfcfa; }
.login-submit { width: 100%; height: 48px; margin-top: 5px; }
.login-submit > span { width: 100%; justify-content: space-between; padding: 0 2px; }
.login-footnote { margin-top: 24px; color: var(--muted); font-size: 12px; text-align: center; }
.login-bottom { position: absolute; bottom: 28px; width: 100%; text-align: center; color: #89958d; font-size: 11px; letter-spacing: .07em; }

/* Shared shell and navigation. */
.layout { min-height: 100vh; }
.sidebar { width: 236px; position: fixed; top: 0; bottom: 0; left: 0; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 28px 18px 18px; z-index: 10; overflow-y: auto; }
.side-brand { padding: 0 10px 28px; font-size: 18px; }
.side-brand small { font-size: 11px; }
.nav-caption { margin: 4px 14px 12px; color: #8a978e; font-size: 11px; }
.menu-item { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 44px; padding: 10px 14px; margin: 3px 0; text-align: left; color: #61756a; background: transparent; border: 0; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.menu-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.menu-item:hover { background: #f4f7f1; color: var(--forest); }
.menu-item.active { background: #edf3e9; color: var(--forest); font-weight: 600; }
.side-footer { margin-top: auto; padding: 24px 14px 4px; font-size: 11px; color: #89958d; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #7c9c82; }
.main { margin-left: 236px; padding: 0 32px 40px; min-width: 0; }
.topbar { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.top-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-title { font-size: 24px; line-height: 1.5; font-weight: 600; margin-top: 4px; }
.top-user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.admin-name { max-width: 140px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.user-avatar { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #e7eee1; color: var(--forest); font-size: 13px; }
.icon-button { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--forest); cursor: pointer; }
.icon-button svg { width: 22px; height: 22px; }
.mobile-menu { display: none; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.toolbar .el-button + .el-button { margin-left: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.stat-num { font-size: 30px; font-weight: 600; color: var(--forest); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 10px; }
.color-dot { display: inline-block; width: 20px; height: 20px; border-radius: 6px; }
.el-table { border: 1px solid var(--line); border-radius: 12px; --el-table-header-bg-color: #f0f5ec; --el-table-header-text-color: #556e60; }
.el-table .el-table__cell { padding: 14px 0; }
.el-table th.el-table__cell { font-weight: 500; font-size: 12px; }
.el-table .cell { padding-left: 16px; padding-right: 16px; }
.el-card { border-radius: 14px; border-color: var(--line); }
.el-card__header { font-size: 15px; font-weight: 500; }
.el-button { min-height: 36px; font-weight: 500; }
.el-button--small { min-height: 32px; }
.el-input__wrapper, .el-select__wrapper { min-height: 38px; }
.el-tabs__item { height: 48px; font-weight: 500; }
.el-tabs__nav-wrap::after { height: 1px; background: var(--line); }
.el-tabs__header { margin-bottom: 24px; }
.el-dialog { max-width: calc(100vw - 48px); border-radius: 18px; padding: 0; --el-dialog-margin-top: 7vh; max-height: 86vh; max-height: 86dvh; display: flex; flex-direction: column; overflow: hidden; }
.el-dialog__header { padding: 22px 28px 18px; margin: 0; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.el-dialog__title { font-size: 18px; font-weight: 600; }
.el-dialog__headerbtn { top: 8px; right: 10px; width: 44px; height: 44px; }
.el-dialog__body { padding: 24px 28px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.el-dialog__body > h3 { font-size: 18px; margin-bottom: 8px; }
.el-dialog__body > p { line-height: 1.8; margin-bottom: 20px; overflow-wrap: anywhere; }
.el-dialog__body > h4 { margin: 20px 0 12px; }
.el-dialog__footer { padding: 16px 28px; border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.coordinate-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.radar-row { display: flex; align-items: center; width: 100%; gap: 12px; margin: 6px 0; }
.mobile-navigation .el-drawer__header { margin: 0; padding: 24px; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-navigation .el-drawer__body { padding: 14px; }

@media (max-width: 1100px) and (min-width: 761px) {
 .sidebar { width: 210px; padding-left: 12px; padding-right: 12px; }
 .main { margin-left: 210px; padding-left: 24px; padding-right: 24px; }
 .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .login-wrap { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 760px) {
 .login-wrap { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 28px; padding: 32px 20px max(66px, env(safe-area-inset-bottom)); max-width: 480px; }
 .login-intro { min-height: auto; align-self: auto; }
 .login-intro .brand { position: static; font-size: 19px; }
 .login-story, .login-water { display: none; }
 .login-card { padding: 28px 24px 24px; border-radius: 18px; box-shadow: none; }
 .login-title { font-size: 25px; }
 .login-bottom { bottom: max(22px, env(safe-area-inset-bottom)); left: 0; }
 .sidebar { display: none; }
 .main { margin-left: 0; padding: 0 16px max(28px, env(safe-area-inset-bottom)); }
 .topbar { position: sticky; top: 0; z-index: 20; min-height: 78px; margin: 0 -16px 20px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; background: var(--paper); }
 .top-title { font-size: 20px; margin: 0; white-space: nowrap; }
 .desktop-eyebrow, .admin-name { display: none; }
 .mobile-menu { display: inline-flex; }
 .top-user { gap: 2px; }
 .user-avatar { width: 30px; height: 30px; }
 .top-user .el-button { min-width: 44px; padding: 8px; margin: 0; }
 .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
 .stat-card { padding: 20px 16px; border-radius: 12px; }
 .stat-num { font-size: 27px; }
 .toolbar { gap: 10px; align-items: stretch; }
 .toolbar > .el-input, .toolbar > .el-select { flex: 1 1 180px; width: auto !important; min-width: 0; }
 .toolbar > .el-button { flex-grow: 1; }
 .toolbar > span { flex-basis: 100%; line-height: 1.7; }
 .el-button, .el-button--small { min-height: 44px; }
 .el-input__wrapper, .el-select__wrapper { min-height: 44px; }
 .el-input__inner, .el-textarea__inner { font-size: 16px; }
 .el-tabs__item { font-size: 14px; padding: 0 16px; }
 .el-tabs__header { margin-bottom: 16px; }
 .el-radio { min-height: 44px; }
 .el-radio-group { display: flex; flex-wrap: wrap; }
 .el-dialog { width: 100% !important; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
 .el-dialog__header { padding: max(20px, env(safe-area-inset-top)) 20px 18px; }
 .el-dialog__body { padding: 20px; flex: 1; }
 .el-dialog__footer { display: flex; gap: 12px; padding: 14px 20px max(14px, env(safe-area-inset-bottom)); }
 .el-dialog__footer .el-button { flex: 1; margin: 0; }
 .el-form-item { display: block; margin-bottom: 20px; }
 .el-form-item__label { display: block; width: auto !important; height: auto; line-height: 1.6; text-align: left; padding: 0 0 8px; }
 .el-form-item__content { margin-left: 0 !important; min-width: 0; }
 .el-form-item__content > .el-input, .el-form-item__content > .el-select, .el-form-item__content > .el-input-number { width: 100% !important; max-width: 100% !important; }
 .coordinate-row { flex-wrap: wrap; padding: 12px; background: var(--paper); border-radius: 10px; }
 .coordinate-row > .el-input-number { width: calc(50% - 4px) !important; flex: 1 1 110px; }
 .coordinate-row > span { flex-basis: 100%; }
 .el-message { max-width: calc(100vw - 24px); min-width: 0; }
 /* Mobile records retain live edit/action controls; every value carries a label. */
 .mobile-card-table { border: 0; background: transparent; border-radius: 0; }
 .mobile-card-table .el-table__inner-wrapper::before, .mobile-card-table .el-table__header-wrapper, .mobile-card-table colgroup, .mobile-card-table .el-scrollbar__bar { display: none; }
 .mobile-card-table .el-scrollbar__wrap { overflow: visible; }
 .mobile-card-table .el-table__body, .mobile-card-table .el-table__body-wrapper, .mobile-card-table tbody { display: block; width: 100% !important; }
 .mobile-card-table .el-table__row { display: block; padding: 8px 16px; margin-bottom: 12px; background: white; border: 1px solid var(--line); border-radius: 12px; }
 .mobile-card-table td.el-table__cell { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; width: auto !important; border: 0; border-bottom: 1px solid #f0f3ed; position: static !important; background: transparent !important; }
 .mobile-card-table td.el-table__cell:last-child { border-bottom: 0; }
 .mobile-card-table td.el-table__cell::before { content: attr(data-label); position: static !important; width: auto !important; font-size: 12px; color: var(--muted); line-height: 1.7; box-shadow: none !important; }
 .mobile-card-table td.el-table__cell::after { display: none !important; }
 .mobile-card-table .cell { min-width: 0; padding: 0; white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.7; }
 .mobile-card-table .cell .el-button { margin: 0 8px 0 0; padding: 8px 10px; }
 .mobile-card-table .cell .el-select { max-width: 100%; width: 100% !important; }
 .mobile-card-table .el-table__empty-block { width: 100% !important; min-height: 140px; background: white; border: 1px solid var(--line); border-radius: 12px; }
 .mobile-card-table .el-table__empty-text { width: 90%; line-height: 1.8; padding: 24px 12px; }
 .el-card .mobile-card-table .el-table__row { padding: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }
.brand-mark, .menu-item svg, .icon-button svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
 .mobile-card-table .el-scrollbar__view { display: block; width: 100% !important; }
}
.admin-map-marker { filter: drop-shadow(0 2px 3px #244d4133); }
.admin-map-marker svg { display: block; width: 32px; height: 42px; }
.leaflet-control-layers-toggle { background-image: url('map-layers.svg'); background-size: 24px 24px; }
.leaflet-default-icon-path { background-image: none; }
@media (max-width: 760px) {
 .el-overlay-dialog { top: var(--admin-viewport-top, 0px); bottom: auto; height: var(--admin-viewport-height, 100dvh); }
 .el-dialog { height: var(--admin-viewport-height, 100dvh); max-height: var(--admin-viewport-height, 100dvh); }
}
:root { --el-text-color-placeholder: #7d8b81; --el-color-info: #6a7c70; --el-color-info-light-9: #f0f3ed; }
.login-card input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fbfcfa inset; -webkit-text-fill-color: #183d37; caret-color: #183d37; }

.legal-footer{text-align:center;padding:20px;color:#68796f;font-size:12px}.legal-footer a{color:inherit;text-decoration:none}

.association-brand{object-fit:contain;background:transparent;border-radius:0}.captcha-row{display:flex;align-items:center;gap:12px;width:100%}.captcha-row .el-input{flex:1;min-width:0}.captcha-refresh{width:132px;height:48px;flex-shrink:0;padding:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#f8faf7;cursor:pointer;color:var(--forest)}.captcha-refresh img{width:100%;height:100%;object-fit:contain}.captcha-refresh:focus-visible{outline:2px solid var(--forest);outline-offset:2px}.captcha-help{font-size:12px;color:var(--muted);line-height:1.6;margin-top:6px}
