:root {
  --color-primary: #0f5f2e;
  --color-primary-dark: #063f24;
  --color-primary-soft: #e8f4ec;
  --color-accent: #ff9800;
  --color-blue: #1976d2;
  --color-purple: #7e57c2;
  --color-success: #43a047;
  --color-warning: #f9a825;
  --color-danger: #d84315;
  --color-bg: #f4f7f5;
  --color-card: #ffffff;
  --color-text: #1f2a24;
  --color-muted: #6b7a70;
  --color-border: #dbe5dd;
}

* { box-sizing: border-box; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
a { color: var(--color-primary); text-decoration: none; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-page-login { grid-template-columns: minmax(0, 1.45fr) minmax(340px, .55fr); }
.auth-hero { background: linear-gradient(160deg, #fff7ec, #e8f4ec); display: flex; align-items: center; justify-content: center; padding: 3rem; }
.auth-logo { width: min(520px, 82vw); height: auto; filter: drop-shadow(0 18px 28px rgba(6, 63, 36, .12)); }
.auth-hero-showcase { position: relative; align-items: stretch; justify-content: stretch; min-width: 0; padding: 0; overflow: hidden; background: linear-gradient(145deg, #ffffff 0%, #edf6f0 42%, #d8eab7 100%); }
.auth-hero-showcase::before { content: ""; position: absolute; z-index: 0; inset: auto -8% -8% -8%; height: 16%; background: linear-gradient(180deg, rgba(54, 116, 31, .06), rgba(19, 89, 34, .72)), repeating-linear-gradient(100deg, rgba(255,255,255,.18) 0 2px, transparent 2px 22px), linear-gradient(12deg, #86a72d, #315f1f); transform: skewY(-3deg); transform-origin: left bottom; }
.auth-hero-showcase::after { content: ""; position: absolute; z-index: 0; right: 4%; top: 8%; width: 44%; height: 22%; background: radial-gradient(ellipse at center, rgba(55, 84, 78, .22), transparent 62%); filter: blur(8px); opacity: .5; }
.auth-form-panel { background: #f8faf8; }
.auth-card { max-width: 440px; margin: auto; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.08); padding: 2rem; }
.auth-page-login .auth-card { max-width: 390px; }
.auth-card-wide { max-width: 720px; }
.login-showcase { position: relative; z-index: 1; width: 100%; min-height: 100vh; display: grid; grid-template-columns: minmax(410px, .88fr) minmax(420px, 1.12fr); grid-template-rows: 1fr auto; gap: clamp(1rem, 2.8vw, 3.5rem); padding: clamp(2rem, 4vw, 4.5rem) clamp(2rem, 4vw, 4.25rem) clamp(1.5rem, 3vw, 3rem); }
.login-showcase-copy { align-self: center; max-width: 470px; padding-bottom: clamp(1rem, 2.5vw, 2.5rem); }
.login-showcase-logo { width: min(350px, 100%); height: 126px; object-fit: contain; object-position: left center; margin-bottom: .25rem; }
.login-showcase-powered { margin: 0 0 clamp(1.4rem, 2.5vw, 2.4rem); color: #53665b; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.login-showcase-powered strong { color: var(--color-primary); }
.login-showcase h1 { margin: 0 0 .8rem; color: #16241d; font-size: clamp(1.9rem, 2.75vw, 3.15rem); line-height: 1.08; font-weight: 900; text-transform: uppercase; }
.login-showcase h1::first-line { color: #17221d; }
.login-showcase-lead { margin: 0 0 1.6rem; max-width: 430px; color: #22332b; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.45; }
.login-feature-list { display: grid; gap: 1rem; }
.login-feature { display: grid; grid-template-columns: 54px 1fr; gap: .85rem; align-items: center; }
.login-feature-icon { position: relative; width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--color-primary), #4d9832); color: #fff; font-size: 1.45rem; line-height: 1; box-shadow: 0 12px 24px rgba(15, 95, 46, .22); overflow: hidden; }
.login-feature-icon .bi { position: absolute; left: 50%; top: 50%; display: block; line-height: 1; transform: translate(-50%, -50%); }
.login-feature-icon .bi::before { display: block; line-height: 1; }
.login-feature strong, .login-feature span { display: block; }
.login-feature strong { color: #16241d; font-size: 1.02rem; }
.login-feature span { color: #334139; line-height: 1.38; }
.login-showcase-visual { position: relative; align-self: center; min-height: 520px; }
.login-drone { position: absolute; top: 0; right: 5%; color: #17231e; font-size: clamp(4rem, 8vw, 8rem); line-height: 1; filter: drop-shadow(0 18px 22px rgba(8, 35, 25, .2)); transform: rotate(-4deg); }
.login-tablet { position: absolute; left: 0; right: 8%; bottom: 10%; min-height: 390px; border: 14px solid #101816; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 32px 70px rgba(5, 25, 14, .34); }
.login-tablet-bar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; background: linear-gradient(90deg, #08251a, #12261f); color: #fff; font-weight: 850; }
.login-map-preview { position: relative; height: 274px; overflow: hidden; background: linear-gradient(145deg, rgba(18, 87, 37, .55), rgba(18, 57, 32, .25)), repeating-linear-gradient(28deg, rgba(255,255,255,.18) 0 2px, transparent 2px 70px), repeating-linear-gradient(112deg, rgba(255,255,255,.1) 0 2px, transparent 2px 58px), linear-gradient(120deg, #6e8e3d, #244f2e 44%, #8b9639); }
.field { position: absolute; display: grid; place-items: center; color: #fff; font-size: 1.55rem; border: 3px solid currentColor; background: color-mix(in srgb, currentColor 28%, transparent); box-shadow: inset 0 0 0 999px rgba(255,255,255,.08); }
.field-one { left: 16%; top: 13%; width: 30%; height: 42%; color: #79c943; clip-path: polygon(12% 12%, 100% 0, 88% 100%, 0 78%); }
.field-two { right: 15%; top: 22%; width: 31%; height: 44%; color: #7e57c2; clip-path: polygon(6% 22%, 84% 0, 100% 74%, 26% 100%); }
.field-three { left: 38%; bottom: 10%; width: 29%; height: 36%; color: #ffad22; clip-path: polygon(0 18%, 76% 0, 100% 82%, 18% 100%); }
.map-control { position: absolute; left: 1rem; top: 1rem; width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; background: rgba(8, 20, 16, .82); color: #fff; font-size: 1.5rem; }
.login-status-strip { display: flex; gap: .65rem; align-items: center; padding: .85rem 1rem; background: #f8faf8; color: #415049; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.login-status-strip span { display: inline-flex; align-items: center; gap: .35rem; }
.login-status-strip b { min-width: 1.45rem; height: 1.45rem; border-radius: 999px; display: inline-grid; place-items: center; background: var(--color-primary); color: #fff; font-size: .78rem; }
.login-phone { position: absolute; right: 0; bottom: 0; width: min(210px, 34%); min-width: 172px; border: 10px solid #111a17; border-radius: 28px; padding: 1rem .65rem .8rem; background: #f7faf8; box-shadow: 0 24px 54px rgba(5, 25, 14, .3); }
.login-phone-header { margin-bottom: .75rem; color: #17241d; font-size: .9rem; font-weight: 850; }
.login-phone-card { display: flex; justify-content: space-between; gap: .45rem; margin-bottom: .5rem; padding: .65rem; border-radius: 8px; border-left: 4px solid currentColor; background: #fff; color: #26352d; font-size: .84rem; font-weight: 800; box-shadow: 0 8px 18px rgba(30, 68, 40, .1); }
.login-phone-card span { color: #53665b; font-size: .75rem; }
.login-phone-button { margin-top: .75rem; padding: .6rem; border-radius: 7px; background: var(--color-primary); color: #fff; font-size: .74rem; font-weight: 850; text-align: center; }
.login-benefit-bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-self: end; background: linear-gradient(90deg, rgba(6, 63, 36, .96), rgba(15, 95, 46, .9)); color: #fff; border-radius: 8px; box-shadow: 0 20px 45px rgba(4, 32, 19, .23); overflow: hidden; }
.login-benefit-bar div { display: grid; grid-template-columns: 44px 1fr; column-gap: .85rem; row-gap: .15rem; align-items: center; padding: 1.05rem 1.25rem; border-right: 1px solid rgba(255,255,255,.26); }
.login-benefit-bar div:last-child { border-right: 0; }
.login-benefit-bar i { grid-row: 1 / span 2; font-size: 2rem; opacity: .95; }
.login-benefit-bar strong { font-size: .92rem; text-transform: uppercase; letter-spacing: .02em; }
.login-benefit-bar span { color: rgba(255,255,255,.86); font-size: .82rem; line-height: 1.25; }
.brand-mark { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--color-primary-dark); font-size: 1.35rem; }
.auth-card .brand-mark { display: flex; width: 100%; margin-bottom: 1.5rem; }
.brand-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--color-primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.brand-logo { display: block; width: 214px; max-width: 100%; height: 72px; object-fit: contain; object-position: left center; }
.topbar .brand-logo-mini { display: block; width: 134px; max-width: 34vw; height: 44px; object-fit: contain; object-position: center; background: rgba(255,255,255,.94); border-radius: 6px; padding: 2px 4px; }
.brand-mark a { display: inline-flex; align-items: center; }
.brand-mark-sidebar { display: block; padding: .35rem .2rem .75rem; }
.brand-mark-topbar { min-width: 72px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 268px 1fr; }
.sidebar { background: #fff; border-right: 1px solid var(--color-border); padding: 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.sidebar nav { padding-bottom: 1rem; }
.powered-by { margin: 1rem .35rem 0; padding-top: .85rem; border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: .72rem; line-height: 1.25; }
.powered-by-text { margin-bottom: .45rem; }
.powered-by-links { margin-bottom: .85rem; }
.powered-by-logos { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.powered-by-logos a { display: inline-flex; align-items: center; min-height: 30px; }
.powered-by-logos img { display: block; width: auto; height: auto; max-width: 86px; max-height: 28px; object-fit: contain; filter: saturate(.85); opacity: .82; }
.powered-by-logos img[src*="drohneninspektion"] { width: 128px; max-width: 128px; max-height: none; }
.powered-by-logos img[src*="zwanzig12"] { width: 92px; max-width: 92px; max-height: none; }
.powered-by-logos a:hover img { opacity: 1; }
.auth-card .powered-by { margin: .35rem 0 0; padding-top: .85rem; }
.auth-card .powered-by-logos img[src*="drohneninspektion"] { width: 150px; max-width: 150px; }
.auth-card .powered-by-logos img[src*="zwanzig12"] { width: 104px; max-width: 104px; }
.powered-mobile { display: none; }
.sidebar-group { margin: .85rem .85rem .25rem; color: var(--color-muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.nav-link { color: #26352d; border-radius: 8px; padding: .75rem .85rem; font-weight: 650; display: flex; align-items: center; gap: .75rem; }
.nav-link:hover, .nav-link.active { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.main { min-width: 0; padding-bottom: 5rem; }
.topbar { height: 64px; background: var(--color-primary-dark); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; position: sticky; top: 0; z-index: 900; }
.topbar-spacer { flex: 1 1 auto; }
.page { padding: 1.25rem; }
.panel, .metric, .card-lite { background: var(--color-card); border: 1px solid var(--color-border); border-radius: 8px; box-shadow: 0 12px 30px rgba(20, 50, 32, .06); }
.metric { padding: 1rem; }
.metric strong { display: block; font-size: 1.7rem; color: var(--color-primary-dark); }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn-outline-primary { color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline-primary:hover { background: var(--color-primary); border-color: var(--color-primary); }
.status-badge { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .28rem .65rem; font-weight: 750; font-size: .82rem; border: 1px solid transparent; white-space: nowrap; }
.status-badge::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.status-reported { color: #9b6a00; background: #fff6d6; border-color: #ffe49a; }
.status-approved { color: #a85f00; background: #fff0dc; border-color: #ffc875; }
.status-planned { color: #0d5da8; background: #e6f2ff; border-color: #b7dcff; }
.status-active { color: #063f24; background: #dff3e6; border-color: #a6dcb9; }
.status-searched { color: #6a3ab0; background: #f0e8ff; border-color: #d2beff; }
.status-done { color: #1f7a35; background: #e5f6e8; border-color: #bde7c5; }
.status-problem { color: #b43113; background: #ffe6df; border-color: #ffc5b6; }
.status-muted { color: #66756d; background: #edf1ee; border-color: #dce5df; }
.status-dipul-clear { color: #1f7a35; background: #e5f6e8; border-color: #bde7c5; }
.status-dipul-warning { color: #9b6a00; background: #fff6d6; border-color: #ffe49a; }
.status-dipul-error { color: #b43113; background: #ffe6df; border-color: #ffc5b6; }
.status-dipul-unknown { color: #66756d; background: #edf1ee; border-color: #dce5df; }
.dipul-summary { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.map-large { min-height: calc(100vh - 98px); border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); }
.map-medium { min-height: 420px; border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); }
.map-small { min-height: 280px; border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); }
.meeting-qr { max-width: 180px; height: auto; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; padding: .5rem; }
.field-card { border-left: 6px solid var(--color-primary); }
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: #fff; border-top: 1px solid var(--color-border); }
.mobile-nav a, .mobile-nav-button { flex: 1; text-align: center; padding: .65rem .25rem; color: #24352b; font-weight: 700; font-size: .82rem; background: transparent; border: 0; line-height: 1.2; }
.mobile-nav a:hover, .mobile-nav-button:hover { color: var(--color-primary-dark); }
.mobile-nav i, .mobile-nav-button i { font-size: 1.05rem; margin-bottom: .12rem; }
.mobile-menu { --bs-offcanvas-width: min(86vw, 340px); border-right: 1px solid var(--color-border); }
.mobile-menu .offcanvas-header { min-height: 64px; border-bottom: 1px solid var(--color-border); }
.mobile-menu .offcanvas-body { padding: .75rem; display: flex; flex-direction: column; }
.mobile-menu nav { flex: 1 1 auto; }
.mobile-menu .powered-by { margin-top: 1.25rem; }
.mobile-badge { position: absolute; top: .25rem; right: 18%; min-width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--color-danger); color: #fff; display: inline-grid; place-items: center; font-size: .72rem; padding: 0 .25rem; }
.table td, .table th { vertical-align: middle; }
.image-pair-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  width: min(360px, 42vw);
  max-width: 360px;
}
.image-pair-tile {
  min-width: 0;
}
.image-pair-label {
  margin-bottom: .3rem;
  color: var(--color-muted);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.image-pair-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #101816;
  cursor: zoom-in;
}
.analysis-marker {
  position: absolute;
  z-index: 3;
  border: 2px solid #ff2d20;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .88), 0 0 18px rgba(255, 45, 32, .9);
  pointer-events: none;
}
.analysis-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: #ff2d20;
  box-shadow: 0 0 0 2px #fff;
  transform: translate(-50%, -50%);
}
body.analysis-markers-hidden .analysis-marker {
  display: none !important;
}
.image-pair-marker {
  min-width: 12px;
  min-height: 12px;
}
.image-pair-thumb img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: contain;
  background: #101816;
}
.finding-image-thumb img {
  height: auto;
  object-fit: initial;
}
.image-pair-thumb:hover,
.image-pair-thumb:focus-visible {
  border-color: var(--color-primary);
  outline: 3px solid rgba(15, 95, 46, .16);
}
.image-pair-empty {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  color: var(--color-muted);
  background: #f8faf8;
  font-size: .86rem;
}
.image-zoom-modal .modal-body {
  padding: 0;
  background: #101816;
}
.image-zoom-stage {
  position: relative;
  width: 100%;
  height: calc(100vh - 57px);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.image-zoom-stage.is-dragging {
  cursor: grabbing;
}
.image-zoom-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  max-height: none;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}
.image-zoom-marker {
  min-width: 16px;
  min-height: 16px;
}
.leaflet-container { font: inherit; }
.map-boundary-label {
  pointer-events: none;
}
.map-boundary-label span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .18rem .5rem;
  border: 2px solid var(--boundary-color, var(--color-accent));
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  color: #1f2a24;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pilot-days { display: grid; grid-template-columns: repeat(7, minmax(132px, 1fr)); gap: .65rem; overflow-x: auto; }
.pilot-day { min-height: 112px; border: 1px solid var(--color-border); border-radius: 8px; padding: .65rem; background: #fff; }
.pilot-day .badge { white-space: normal; text-align: left; }
.map-legend { display: grid; gap: .35rem; font-size: .9rem; }
.map-legend span { display: inline-block; width: .85rem; height: .85rem; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.map-legend-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: .18rem 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  text-align: left;
}
.map-legend-item:hover,
.map-legend-item.active {
  color: var(--color-primary-dark);
  font-weight: 750;
}
.calendar-shell { min-height: 640px; }
  .table-warning-subtle { --bs-table-bg: #fff8df; }

.live-page {
  display: flow-root;
  min-height: 100vh;
  background: #06160f;
  color: #f2f7ef;
}
body:has(.live-page) {
  background: #06160f;
}
.live-hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  padding: clamp(1rem, 2.7vw, 2.5rem);
}
.live-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 22, 15, .9) 0%, rgba(6, 22, 15, .66) 38%, rgba(6, 22, 15, .18) 70%),
    linear-gradient(180deg, rgba(6, 22, 15, .05), #06160f 96%),
    url("../img/live-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}
.live-header,
.live-grid,
.live-why {
  position: relative;
  z-index: 1;
}
.live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.4rem, 3vw, 2.7rem);
}
.live-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  padding: .42rem .72rem .42rem .55rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(245, 250, 240, .82);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}
.live-brand img {
  width: clamp(230px, 23vw, 340px);
  height: 92px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.28));
}
.live-pill,
.live-dot-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 6px;
  background: #2e7d32;
  color: #fff;
  padding: .28rem .5rem;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.live-pill span,
.live-dot-label span {
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: #a9f36f;
  box-shadow: 0 0 0 4px rgba(169, 243, 111, .16);
}
.live-header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .95rem;
  flex-wrap: wrap;
}
.live-header-links a,
.live-header-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.86);
  font: inherit;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
}
.live-header-links a:hover,
.live-header-links button:hover {
  color: #fff;
}
.live-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr) minmax(280px, .62fr);
  gap: clamp(1rem, 2.3vw, 2rem);
  align-items: start;
}
.live-copy {
  min-width: 0;
  max-width: min(100%, 560px);
  padding-top: clamp(.25rem, 2vw, 2.25rem);
}
.live-kicker {
  margin: 0 0 .8rem;
  color: #d9e8c1;
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.live-copy h1 {
  margin: 0;
  color: #f5f5ed;
  max-width: 100%;
  font-size: clamp(2.55rem, 4.25vw, 4.7rem);
  line-height: .98;
  font-weight: 950;
}
.live-copy h1 strong {
  display: block;
  color: #7bc043;
  font-weight: inherit;
}
.live-lead {
  margin: 1.25rem 0 2rem;
  max-width: 460px;
  color: rgba(245,245,237,.88);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.5;
}
.live-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(4, 18, 12, .72);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}
.live-stats div {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,.12);
}
.live-stats div:last-child {
  border-right: 0;
}
.live-stats i {
  display: block;
  margin-bottom: .35rem;
  color: #f2f2f2;
  font-size: 1.45rem;
}
.live-stats strong {
  display: block;
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
}
.live-stats span {
  display: block;
  margin-top: .2rem;
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  line-height: 1.2;
}
.live-map-panel,
.live-rescues {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(6, 22, 15, .82);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
}
.live-map-panel {
  min-height: min(66vh, 680px);
}
.live-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  background: rgba(3, 14, 9, .72);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.live-panel-head span {
  display: block;
  color: rgba(255,255,255,.76);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.live-panel-head strong {
  display: block;
  color: #fff;
  font-size: .98rem;
}
.live-map {
  min-height: min(58vh, 596px);
  background: #0b1b12;
}
.live-map .leaflet-control-zoom a {
  background: rgba(5, 20, 13, .9);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}
.live-empty-map {
  position: absolute;
  inset: 58px 0 0;
  z-index: 500;
  display: grid;
  place-content: center;
  gap: .35rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(145deg, rgba(6,22,15,.88), rgba(17,55,31,.92));
}
.live-empty-map[hidden] {
  display: none;
}
.live-empty-map i {
  color: #ff9f1c;
  font-size: 2.5rem;
}
.live-empty-map strong {
  color: #fff;
  font-size: 1.35rem;
}
.live-empty-map span {
  color: rgba(255,255,255,.76);
}
.live-legend {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 650;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  max-width: calc(100% - 2rem);
  padding: .65rem .85rem;
  border-radius: 8px;
  background: rgba(3, 14, 9, .84);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  transform: translateX(-50%);
}
.live-legend span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}
.live-legend i {
  width: .72rem;
  height: .72rem;
  border-radius: 999px;
}
.live-legend .planned { background: #3a86ff; }
.live-legend .active { background: #ff9f1c; }
.live-legend .done { background: #7bc043; }
.live-rescues {
  align-self: stretch;
  min-height: 420px;
}
.live-rescue-list {
  display: grid;
  gap: .85rem;
  max-height: min(58vh, 596px);
  overflow-y: auto;
  padding: 1rem;
}
.live-rescue-card {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(11, 42, 23, .9);
  border: 1px solid rgba(255,255,255,.1);
}
.live-rescue-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #12271b;
}
.live-rescue-card-body {
  display: grid;
  gap: .25rem;
  padding: .75rem;
}
.live-rescue-badge {
  justify-self: start;
  border-radius: 6px;
  background: #7bc043;
  color: #072113;
  padding: .2rem .45rem;
  font-size: .72rem;
  font-weight: 900;
}
.live-rescue-card strong {
  color: #fff;
  font-size: 1rem;
}
.live-rescue-card span {
  color: rgba(255,255,255,.8);
  font-size: .82rem;
}
.live-rescue-card i {
  margin-right: .28rem;
  color: #ff9f1c;
}
.live-rescue-empty {
  display: grid;
  place-items: center;
  gap: .35rem;
  min-height: 300px;
  padding: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,.74);
}
.live-rescue-empty i {
  color: #7bc043;
  font-size: 2rem;
}
.live-rescue-empty strong {
  color: #fff;
}
.live-why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(1rem, 2.7vw, 2.5rem) clamp(1rem, 2.7vw, 2.5rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.live-why div {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: .9rem;
  row-gap: .2rem;
  align-items: center;
  padding: 1.1rem;
  background: rgba(4, 18, 12, .78);
}
.live-why i {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #7bc043;
  border-radius: 999px;
  color: #f2f2f2;
  font-size: 1.45rem;
}
.live-why strong {
  color: #fff;
}
.live-why span {
  color: rgba(255,255,255,.74);
  font-size: .9rem;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-page-login { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main { padding-bottom: calc(8.5rem + env(safe-area-inset-bottom)); }
  .topbar { height: 58px; }
  .mobile-nav { display: flex; }
  .powered-mobile { display: block; position: fixed; left: 0; right: 0; bottom: 58px; z-index: 999; background: rgba(255,255,255,.96); border-top: 1px solid var(--color-border); padding: .35rem .75rem; }
  .powered-mobile .powered-by { margin: 0; padding: 0; border: 0; display: flex; align-items: center; justify-content: center; gap: .65rem; text-align: center; }
  .powered-mobile .powered-by-text { margin: 0; }
  .powered-mobile .powered-by-links { margin: 0; }
  .powered-mobile .powered-by-logos img { max-width: 64px; max-height: 22px; }
  .page { padding: .85rem; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-days { grid-template-columns: repeat(7, minmax(148px, 1fr)); }
  .map-large { min-height: calc(100vh - 130px); }
  .calendar-shell { min-height: 520px; }
  .live-hero {
    min-height: auto;
    padding: 1rem;
  }
  .live-hero-bg {
    background:
      linear-gradient(180deg, rgba(6, 22, 15, .72) 0%, #06160f 76%),
      url("../img/live-hero.png") center top / cover no-repeat;
  }
  .live-header {
    align-items: flex-start;
    margin-bottom: 1.2rem;
  }
  .live-brand img {
    width: min(238px, 68vw);
    height: 78px;
  }
  .live-grid {
    grid-template-columns: 1fr;
  }
  .live-copy {
    max-width: none;
  }
  .live-copy h1 {
    font-size: clamp(2.08rem, 9.2vw, 3.35rem);
    max-width: 9.7em;
  }
  .live-map-panel {
    min-height: 520px;
  }
  .live-map {
    min-height: 462px;
  }
  .live-rescues {
    min-height: 0;
  }
  .live-rescue-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
  .live-why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 1rem 1rem;
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .auth-page-login { grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); }
  .login-showcase { grid-template-columns: minmax(340px, .9fr) minmax(340px, 1.1fr); padding: 2.5rem; gap: 1.5rem; }
  .login-showcase h1 { font-size: clamp(1.85rem, 2.55vw, 2.55rem); }
  .login-showcase-visual { min-height: 470px; }
  .login-tablet { right: 3%; min-height: 350px; }
  .login-map-preview { height: 236px; }
  .login-phone { transform: scale(.92); transform-origin: right bottom; }
  .login-benefit-bar div { padding: .9rem 1rem; }
  .login-benefit-bar span { display: none; }
  .live-grid {
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  }
  .live-copy h1 {
    font-size: clamp(2.7rem, 4.6vw, 4.05rem);
  }
  .live-rescues {
    grid-column: 1 / -1;
  }
  .live-rescue-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 560px) {
  .kpi-grid { display: flex; overflow-x: auto; }
  .metric { min-width: 190px; }
  .btn, .form-control, .form-select { min-height: 44px; }
  .btn { white-space: normal; }
  .topbar .brand-logo-mini { width: 126px; max-width: 34vw; height: 40px; }
  .topbar { padding: 0 .75rem; }
  .map-medium, .map-small { min-height: 320px; }
  .calendar-shell { min-height: 460px; font-size: .9rem; }
  .live-header-links {
    width: 100%;
    justify-content: flex-start;
    gap: .75rem;
    margin-top: -.45rem;
  }
  .live-header-links a,
  .live-header-links button { font-size: .82rem; }
  .live-pill {
    font-size: .7rem;
  }
  .live-stats {
    grid-template-columns: 1fr;
  }
  .live-stats div {
    display: grid;
    grid-template-columns: 32px 58px 1fr;
    gap: .45rem;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .live-stats div:last-child {
    border-bottom: 0;
  }
  .live-stats i {
    margin: 0;
  }
  .live-map-panel {
    min-height: 470px;
  }
  .live-map {
    min-height: 412px;
  }
  .live-legend {
    left: 1rem;
    right: 1rem;
    transform: none;
  }
  .live-rescue-list {
    grid-template-columns: 1fr;
  }
  .live-why {
    grid-template-columns: 1fr;
  }
  .live-why div {
    grid-template-columns: 46px 1fr;
  }
  .live-why i {
    width: 46px;
    height: 46px;
  }
}
