:root{
  --blue-1:#1E5BFF;
  --blue-2:#0B3BD6;
  --accent:#FF6A00;
  --muted:#9aa4b2;
  --card:#ffffff;
}

/* Flood reports reference layout */
body.flood-reports-page{background:#071a33;color:#e8edf7;font-family:Inter,Arial,sans-serif}
.flood-reports-page .app{min-height:100vh;display:grid;grid-template-columns:209px minmax(0,1fr);background:#081a33}
.flood-reports-page .reports-sidebar{position:relative;display:flex;flex-direction:column;min-height:100vh;padding:0;background:linear-gradient(160deg,#071a34 0%,#06172e 100%);border-right:1px solid rgba(166,191,224,.18);overflow:hidden}
.reports-brand{height:82px;padding:0 17px;display:flex;align-items:center;gap:11px;border-bottom:1px solid rgba(166,191,224,.17)}
.reports-brand-mark{position:relative;display:block;width:27px;height:32px}.reports-brand-mark i,.reports-brand-mark b,.reports-brand-mark em{position:absolute;display:block;clip-path:polygon(50% 0,100% 100%,0 100%)}
.reports-brand-mark i{inset:4px 0 2px 9px;background:#254d85;transform:rotate(8deg)}.reports-brand-mark b{inset:0 7px 6px 0;background:linear-gradient(145deg,#b5d5fa,#5b80ba)}.reports-brand-mark em{inset:12px 6px 0 7px;background:#17335c}
.reports-brand strong{display:block;color:#f6f8fd;font-size:15px;letter-spacing:.02em;line-height:1.1}.reports-brand span{display:block;margin-top:3px;color:#8495ae;font-size:9px;white-space:nowrap}
.flood-reports-page .nav{padding:11px 10px}.flood-reports-page .nav-section{margin:0;padding:13px 7px 7px;color:#8294ae;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.flood-reports-page .nav a{height:28px;margin:2px 0;padding:0 7px;gap:9px;border-radius:7px;color:#9caabe;font-size:12px;font-weight:500}.flood-reports-page .nav a svg{width:15px;height:15px;flex:none}.flood-reports-page .nav a:hover{background:#102a4b;color:#d9e7fb}.flood-reports-page .nav a.active{background:#215aab;color:#4da0ff;box-shadow:none}
.reports-profile{margin-top:auto;height:35px;padding:6px 10px;display:flex;align-items:center;gap:8px;border-top:1px solid rgba(166,191,224,.18);background:#07192f}.reports-profile>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#1555af;color:#55a1ff;font-size:15px;font-weight:700}.reports-profile strong{display:block;color:#f0f4fb;font-size:11px;line-height:1.1;letter-spacing:.08em}.reports-profile small{display:block;margin-top:3px;color:#8393aa;font-size:7px}
.flood-reports-page .reports-content{min-width:0;padding:0;background:radial-gradient(circle at 100% 0,#092c60 0,transparent 36%),#071a33}.flood-reports-page .reports-topbar{height:82px;padding:0 23px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(166,191,224,.17);background:transparent}.reports-topbar h1{margin:0;color:#f5f7fc;font-size:17px;font-weight:800;letter-spacing:.01em}.reports-topbar p{margin:2px 0 0;color:#8795a9;font-size:9px}.reports-actions{display:flex;align-items:center;gap:16px}.reports-global-search,.reports-table-search{height:34px;border:0;border-radius:7px;background:#14243e;display:flex;align-items:center;gap:8px;padding:0 11px;color:#7f8ea4}.reports-global-search{width:232px}.reports-global-search svg,.reports-table-search svg{width:14px;height:14px;flex:none}.reports-global-search input,.reports-table-search input{width:100%;border:0;outline:0;background:transparent;color:#dce6f5;font:500 11px Inter}.reports-global-search input::placeholder,.reports-table-search input::placeholder{color:#8b96a6}.reports-weather{display:flex;align-items:center;gap:5px;color:#7f8ba0;font-size:10px;white-space:nowrap}.reports-weather svg{width:18px;color:#2583ff}.reports-weather b{color:#e4ebf7;font-size:11px}.reports-bell{position:relative;width:36px;height:36px;border:0;border-radius:7px;background:#13243d;color:#a3b2c8;display:grid;place-items:center}.reports-bell svg{width:18px}.reports-bell i{position:absolute;right:-4px;top:-5px;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;background:#bd514e;color:#fff;font:9px Inter;font-style:normal}.reports-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#175ab8;color:#4a94fb;font-size:15px;font-weight:700}
.reports-body{padding:21px 16px 5px}.reports-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.reports-stats article{height:68px;padding:11px 9px;border-radius:7px;background:linear-gradient(110deg,#151f31,#121e31);box-shadow:0 8px 20px rgba(0,0,0,.08)}.reports-stats span{display:block;color:#8b96a9;font-size:9px;text-transform:uppercase}.reports-stats article:first-child span{color:#72a9ed;text-decoration:underline}.reports-stats strong{display:block;margin-top:11px;color:#f5f7fb;font-size:30px;line-height:.85;font-weight:700}.reports-controls{display:flex;align-items:center;justify-content:space-between;margin:11px 7px 15px}.reports-filters{display:flex;gap:10px}.reports-filters button{height:25px;padding:0 12px;border:1px solid #526179;border-radius:15px;background:transparent;color:#a6b0c2;font:600 11px Inter}.reports-filters button.active{border-color:#3284f4;background:#287ee9;color:#fff}.reports-table-search{width:230px;height:33px;background:#13243e}.reports-table-card{min-height:409px;overflow:hidden;border-radius:7px;background:linear-gradient(135deg,#151f31,#121d2e);box-shadow:0 8px 20px rgba(0,0,0,.12)}.reports-table-card h2{height:35px;margin:0;padding:12px 9px 0;color:#e8edf5;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.reports-table-wrap{overflow-x:auto}.reports-table-card table{width:100%;border-collapse:collapse;table-layout:fixed}.reports-table-card th{height:29px;padding:0 9px;border-top:1px solid rgba(185,205,230,.14);border-bottom:1px solid rgba(185,205,230,.14);color:#8f9aad;font-size:8px;font-weight:600;text-align:left;text-transform:uppercase}.reports-table-card td{height:36px;padding:0 9px;border-bottom:1px solid rgba(185,205,230,.14);color:#aeb8c7;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reports-table-card td:first-child{color:#d5dce7;font-weight:700}.reports-table-card th:nth-child(1){width:16%}.reports-table-card th:nth-child(2){width:9%}.reports-table-card th:nth-child(3){width:31%}.reports-table-card th:nth-child(4){width:19%}.reports-table-card th:nth-child(5){width:14%}.reports-table-card th:nth-child(6){width:11%}.report-status{display:inline-block;padding:2px 4px;border-radius:3px;font-size:7px;font-weight:700}.report-status.review{background:#796b00;color:#fff251}.report-status.new{background:#7a3439;color:#ff8e93}.report-status.resolved{background:#17664d;color:#58dcaa}
@media (max-width:800px){.flood-reports-page .app{grid-template-columns:1fr}.flood-reports-page .reports-sidebar{display:none}.reports-topbar{gap:16px}.reports-global-search{display:none}.reports-body{padding:16px}.reports-stats{gap:10px}.reports-stats article{height:66px}.reports-controls{margin-left:0;margin-right:0}.reports-table-card table{min-width:730px}}@media (max-width:520px){.reports-topbar h1{font-size:16px}.reports-actions{gap:8px}.reports-weather span{display:none}.reports-stats{grid-template-columns:repeat(2,1fr)}.reports-controls{align-items:flex-start;gap:10px;flex-direction:column}.reports-table-search{width:100%}}

*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{font-family:Inter,system-ui,Arial,sans-serif;color:#12202b;background:var(--card)}

body.auth-login{
  min-height:100vh;
  min-height:100dvh;
  display:block;
  padding:0;
  background:#ede9e1;
  color:#e7efff;
}

.auth-login .login-layout{
  width:100%;
  min-height:100vh;
  min-height:100dvh;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(380px,0.92fr);
  background:linear-gradient(90deg,#071427 0%,#071427 53%,#0a1730 53%,#0a1730 100%);
  border-radius:0;
  overflow:hidden;
  box-shadow:none;
}

.auth-login .login-showcase,
.auth-login .login-panel{
  position:relative;
}

.auth-login .login-showcase{
  padding:clamp(32px,5vh,48px) 56px;
  background:
    radial-gradient(circle at 18% 20%,rgba(71,116,255,0.18),transparent 30%),
    radial-gradient(circle at 80% 80%,rgba(255,255,255,0.04),transparent 28%),
    linear-gradient(180deg,#071427,#09162b);
}

.auth-login .login-showcase::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,0.02),transparent 38%);
  pointer-events:none;
}

.auth-login .login-showcase-inner{
  position:relative;
  z-index:1;
  max-width:340px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.auth-login .login-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:clamp(28px,4vh,44px);
}

.auth-login .login-brand-mark{
  width:32px;
  height:32px;
  display:block;
  flex:0 0 auto;
  object-fit:contain;
}

.auth-login .brand-triangle{
  position:absolute;
  inset:0;
  clip-path:polygon(50% 0,0 100%,100% 100%);
}

.auth-login .triangle-back{
  background:linear-gradient(180deg,#5d88ff,#233b65);
  transform:translateX(5px) translateY(2px) scale(0.72);
  opacity:0.35;
}

.auth-login .triangle-front{
  top:2px;
  left:1px;
  width:20px;
  height:24px;
  background:linear-gradient(180deg,#b9d8ff,#6c84d8);
  box-shadow:0 8px 20px rgba(95,144,255,0.18);
}

.auth-login .triangle-core{
  top:9px;
  left:5px;
  width:10px;
  height:14px;
  background:linear-gradient(180deg,#f1f7ff,#84a7ff);
  opacity:0.92;
}

.auth-login .login-brand-name{
  font-size:31px;
  font-weight:700;
  letter-spacing:0.12em;
  color:#eef4ff;
}

.auth-login .login-copy{
  max-width:320px;
}

.auth-login .login-kicker{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
  color:#4391ff;
  font-size:10px;
  font-weight:700;
  letter-spacing:0.28em;
  text-transform:uppercase;
}

.auth-login .login-kicker::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#4391ff;
  box-shadow:0 0 0 4px rgba(67,145,255,0.12);
}

.auth-login .login-title{
  margin:0 0 12px;
  color:#f4f7ff;
  font-size:clamp(2.2rem,2vw + 1.5rem,2.7rem);
  line-height:1.03;
  letter-spacing:-0.04em;
  font-weight:800;
}

.auth-login .login-subtitle{
  margin:0;
  max-width:30ch;
  color:#7f8da7;
  font-size:14px;
  line-height:1.6;
}

.auth-login .login-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:28px;
}

.auth-login .login-tag{
  padding:8px 12px;
  border:1px solid rgba(255,255,255,0.06);
  border-radius:999px;
  background:rgba(255,255,255,0.04);
  color:#adb8ce;
  font-size:11px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.02);
}

.auth-login .login-panel{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(28px,5vh,44px) 40px;
  background:
    radial-gradient(circle at 100% 0,rgba(70,130,255,0.12),transparent 28%),
    linear-gradient(180deg,#0a1730,#0b1a35);
}

.auth-login .login-panel::before{
  content:"";
  position:absolute;
  left:0;
  top:32px;
  bottom:32px;
  width:1px;
  background:linear-gradient(180deg,transparent,rgba(255,255,255,0.08),transparent);
}

.auth-login .login-card{
  position:relative;
  z-index:1;
  width:100%;
  max-width:360px;
  margin:0 auto;
  padding-top:12px;
}

.auth-login .login-form{
  margin-top:22px;
}

.auth-login .field{
  display:block;
  margin-bottom:16px;
}

.auth-login .label-text{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  color:#8e9cb6;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.12em;
  text-transform:uppercase;
}

.auth-login .forgot{
  margin-left:auto;
  color:#4d95ff;
  font-size:10px;
  letter-spacing:0;
  text-transform:none;
  text-decoration:none;
  white-space:nowrap;
}

body.auth-login input[type="email"],
body.auth-login input[type="password"],
body.auth-login input[type="text"],
body.auth-login input[type="tel"]{
  width:100%;
  padding:15px 16px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:10px;
  background:rgba(255,255,255,0.04);
  color:#edf3ff;
  box-shadow:none;
  font-size:14px;
  font-family:inherit;
  outline:none;
}

.auth-login .form-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.auth-login .select-wrapper{
  position:relative;
  width:100%;
}

.auth-login .select-wrapper select{
  width:100%;
  padding:15px 40px 15px 16px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:10px;
  background:rgba(255,255,255,0.04);
  color:#edf3ff;
  font-size:14px;
  font-family:inherit;
  outline:none;
  appearance:none;
  cursor:pointer;
}

.auth-login .select-wrapper select:invalid,
.auth-login .select-wrapper select option[value=""]{
  color:#546781;
}

.auth-login .select-wrapper select option{
  background:#0a1730;
  color:#edf3ff;
}

.auth-login .select-wrapper select:focus{
  border-color:rgba(72,133,255,0.9);
  box-shadow:0 0 0 3px rgba(53,112,255,0.12);
}

.auth-login .select-chevron{
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  width:16px;
  height:16px;
  stroke:#6b7f9b;
  pointer-events:none;
}

.auth-login .register-steps{
  display:flex;
  flex-direction:column;
  gap:22px;
  margin-top:36px;
}

.auth-login .register-step-item{
  display:flex;
  align-items:flex-start;
  gap:14px;
}

.auth-login .register-step-num{
  width:36px;
  height:36px;
  border-radius:50%;
  background:rgba(37,99,235,0.22);
  border:1.5px solid rgba(59,130,246,0.45);
  color:#60a5fa;
  font-size:14px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  box-shadow:0 4px 12px rgba(37,99,235,0.15);
}

.auth-login .register-step-title{
  display:block;
  color:#ffffff;
  font-size:14px;
  font-weight:700;
  line-height:1.3;
  margin-bottom:2px;
}

.auth-login .register-step-desc{
  margin:0;
  color:#7f8da7;
  font-size:12px;
  line-height:1.4;
}

.auth-login .register-btn{
  width:100%;
  padding:15px;
  border-radius:10px;
  background:#2563eb;
  color:#fff;
  border:none;
  font-family:Inter,system-ui,Arial,sans-serif;
  font-size:14px;
  font-weight:700;
  letter-spacing:0.02em;
  cursor:pointer;
  transition:all 160ms ease;
  box-shadow:0 8px 22px rgba(37,99,235,0.28);
  margin:8px 0 16px;
}

.auth-login .register-btn:hover{
  background:#1d4ed8;
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(37,99,235,0.36);
}

.auth-login .register-terms{
  font-size:11px;
  color:#7f8da7;
  text-align:center;
  margin:0 0 16px;
  line-height:1.5;
}

.auth-login .register-terms a{
  color:#d6e2f5;
  font-weight:700;
  text-decoration:none;
}

.auth-login .register-terms a:hover{
  text-decoration:underline;
}

.auth-login .register-login-link{
  font-size:12px;
  color:#7f8da7;
  text-align:center;
  margin:0;
}

.auth-login .register-login-link a{
  color:#3b82f6;
  font-weight:700;
  text-decoration:none;
}

.auth-login .register-login-link a:hover{
  text-decoration:underline;
}

.auth-login input::placeholder{
  color:#546781;
}

.auth-login input:focus{
  border-color:rgba(72,133,255,0.9);
  box-shadow:0 0 0 3px rgba(53,112,255,0.12);
}

.auth-login .password-wrap{
  position:relative;
}

.auth-login .toggle{
  position:absolute;
  top:50%;
  right:14px;
  transform:translateY(-50%);
  border:none;
  background:transparent;
  color:#5f84c8;
  font-size:10px;
  font-weight:800;
  letter-spacing:0.18em;
  cursor:pointer;
}

.auth-login .login-checkbox{
  display:flex;
  align-items:center;
  gap:10px;
  margin:6px 0 20px;
  color:#7f8da7;
  font-size:12px;
}

.auth-login .login-checkbox input{
  width:14px;
  height:14px;
  margin:0;
  accent-color:#3b82f6;
}

.auth-login .btn{
  width:100%;
  padding:14px 16px;
  border-radius:10px;
  font-family:Inter,system-ui,Arial,sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.02em;
  text-transform:none;
  transition:transform 160ms ease,border-color 160ms ease,background 160ms ease,box-shadow 160ms ease;
}

.auth-login .btn:hover{
  transform:translateY(-1px);
}

.auth-login .btn.primary{
  margin-bottom:12px;
  border:1px solid transparent;
  background:linear-gradient(180deg,#428cff,#2f74f3);
  color:#f7fbff;
  box-shadow:0 14px 28px rgba(28,101,255,0.24);
}

.auth-login .btn.outline{
  padding:14px 16px;
  border:1px solid rgba(255,255,255,0.12);
  background:transparent;
  color:#d8e3f8;
}

.auth-login .login-divider{
  display:flex;
  align-items:center;
  gap:14px;
  margin:18px 0 14px;
  color:#647590;
  font-size:11px;
  text-transform:lowercase;
}

.auth-login .login-divider::before,
.auth-login .login-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:rgba(255,255,255,0.08);
}

.auth-login .google-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.auth-login .google-g{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:rgba(255,255,255,0.05);
  color:#f4f7ff;
  font-size:12px;
  font-weight:700;
}

.auth-login .error{
  min-height:16px;
  margin-top:8px;
  color:#ff8f8f;
  font-size:12px;
}

@media (max-width:980px){
  body.auth-login{
    padding:0;
  }

  .auth-login .login-layout{
    min-height:100vh;
    min-height:100dvh;
    grid-template-columns:1fr;
  }

  .auth-login .login-showcase{
    padding:48px 32px 36px;
  }

  .auth-login .login-showcase-inner{
    max-width:none;
  }

  .auth-login .login-brand{
    margin-bottom:40px;
  }

  .auth-login .login-panel{
    padding:28px 32px 40px;
  }

  .auth-login .login-panel::before{
    display:none;
  }
}

@media (max-width:640px){
  .auth-login .login-showcase{
    padding:36px 24px 28px;
  }

  .auth-login .login-panel{
    padding:20px 24px 28px;
  }

  .auth-login .login-brand-name{
    font-size:24px;
  }

  .auth-login .login-title{
    font-size:2rem;
  }

  .auth-login .login-subtitle,
  .auth-login .login-card{
    max-width:none;
  }

  .auth-login .login-tags{
    gap:8px;
  }

  .auth-login .login-tag{
    padding:7px 10px;
    font-size:10px;
  }
}

.split{display:grid;grid-template-columns:1fr 480px;min-height:100vh}

.left{padding:64px;background:linear-gradient(180deg,var(--blue-1) 0%,var(--blue-2) 100%);color:#fff;position:relative;overflow:hidden}
.left::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);background-size:24px 24px;opacity:0.28}
.left::after{content:"";position:absolute;right:-120px;bottom:-80px;width:620px;height:420px;background:rgba(255,255,255,0.03);border-radius:30%;transform:rotate(-18deg)}

.brand{font-family:Space Mono,monospace;font-weight:700;font-size:34px;letter-spacing:1px;margin-bottom:24px}
.badge{display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,0.06);font-size:12px;color:rgba(255,255,255,0.95);margin-bottom:28px}
.badge-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px rgba(255,106,0,0.08)}

.headline{font-family:Space Mono,monospace;font-weight:700;font-size:64px;line-height:0.95;margin:10px 0 20px}
.accent{color:var(--accent)}
.lead{max-width:38ch;color:rgba(255,255,255,0.9);opacity:0.95}

.chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.chip{background:rgba(255,255,255,0.04);color:rgba(255,255,255,0.9);border-radius:8px;padding:10px 12px;border:1px solid rgba(255,255,255,0.04);font-size:13px}

.right{display:flex;align-items:center;justify-content:center;padding:56px;background:#fafafa}
.card{width:100%;max-width:420px;background:transparent}
.secure{color:var(--accent);font-weight:600;letter-spacing:2px;margin-bottom:10px}
.title{font-family:Space Mono,monospace;font-size:32px;margin:6px 0}
.subtitle{color:var(--muted);margin-bottom:22px}

.field{display:block;margin-bottom:18px}
.label-text{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}
input[type="email"], input[type="password"], input[type="text"]{width:100%;padding:16px;border-radius:12px;border:1px solid #e7eef7;background:#f6fbff;font-size:15px;outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,0.6)}
.password-wrap{position:relative}
.toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:transparent;border:none;color:#6b7b89;font-weight:700;letter-spacing:1px}

.forgot{float:right;font-size:13px;color:var(--blue-1);text-decoration:none;margin-left:8px}
.checkbox{display:flex;align-items:center;gap:8px;color:#4b5563;font-size:14px;margin-bottom:18px}
.checkbox input{width:16px;height:16px}

.btn{width:100%;padding:16px;border-radius:12px;border:none;cursor:pointer;font-family:Space Mono,monospace;text-transform:uppercase;letter-spacing:3px;font-weight:700}
.btn.primary{background:linear-gradient(90deg,var(--blue-1),var(--blue-2));color:#fff;box-shadow:0 10px 30px rgba(11,59,214,0.18);margin-bottom:14px}
.btn.outline{background:transparent;border:2px solid var(--accent);color:var(--accent);padding:14px}

.error{color:#d04545;font-size:13px;margin-top:8px}

@media (max-width:1000px){
  .split{grid-template-columns:1fr;padding:0}
  .left{padding:40px;text-align:center}
  .headline{font-size:40px}
  .right{padding:40px}
}

@media (max-width:520px){
  .brand{font-size:28px}
  .headline{font-size:34px}
  .chips{justify-content:center}
}

/* Register / sign-up specific helpers */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
select{appearance:none;background:#f6fbff;padding:16px;border-radius:12px;border:1px solid #e7eef7;width:100%;font-size:15px}
.btn.accent{background:linear-gradient(90deg,var(--accent),#FF4A00);color:#fff;box-shadow:0 10px 30px rgba(255,106,0,0.18);margin-bottom:14px;border:none}
.steps{margin-top:36px;color:rgba(255,255,255,0.9);list-style:none;padding:0;font-size:14px}
.steps li{margin:18px 0}
.steps .muted{color:rgba(255,255,255,0.8);font-size:13px}
.back{display:inline-block;margin-top:12px;text-decoration:none;color:var(--blue-2);border:2px solid rgba(11,59,214,0.06);padding:10px 18px;border-radius:10px;background:transparent;font-weight:700;letter-spacing:1px}

@media (max-width:900px){
  .form-grid{grid-template-columns:1fr}
}

/* Dashboard styles */
body.dashboard{background:#061223;color:#d6eaf6;font-family:Inter,system-ui,Arial,sans-serif}
/* Normalize font rendering and spacing for the dashboard to avoid compressed appearance */
body.dashboard{
  background:#061223;
  color:#d6eaf6;
  font-family:Inter,system-ui,'Segoe UI',Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  font-size:15px;
  line-height:1.45;
  letter-spacing:0.2px;
  font-stretch:normal;
}
.app{display:grid;grid-template-columns:208px minmax(0,1fr);gap:16px;min-height:100vh}
.sidebar{background:linear-gradient(180deg,#062033,#041322);color:#a9c4d6;padding:24px 16px;display:flex;flex-direction:column;justify-content:space-between}
.logo{display:flex;align-items:center;gap:8px;width:100%;height:32px;overflow:hidden;font-family:Space Mono,monospace;font-weight:700;font-size:20px;color:#fff;letter-spacing:1px}
.logo .sidebar-logo-image{position:static!important;display:block!important;flex:0 0 28px!important;width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;object-fit:contain;border-radius:5px}
.system-name{font-size:12px;color:#7da1b9;margin-top:8px;max-width:190px}
.nav{margin-top:26px;display:flex;flex-direction:column;gap:8px}
.nav-section{font-size:11px;color:#5f80a0;letter-spacing:1.5px;font-weight:700;margin:14px 0 4px;padding:0 12px}
.nav-section:first-child{margin-top:0}
.nav a{display:flex;align-items:center;gap:10px;color:#b7d0df;padding:10px;border-radius:10px;text-decoration:none;font-weight:600;font-size:14px;opacity:0.95}
.nav a{display:flex;align-items:center;gap:12px;color:#b7d0df;padding:12px 14px;border-radius:10px;text-decoration:none;font-weight:600;font-size:15px;line-height:1.35;opacity:0.95;font-stretch:normal}
.logo{display:flex;align-items:center;gap:8px;width:100%;height:32px;overflow:hidden;font-family:Space Mono,monospace;font-weight:700;font-size:20px;color:#fff;letter-spacing:1px}
.logo .sidebar-logo-image{position:static!important;display:block!important;flex:0 0 28px!important;width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;object-fit:contain;border-radius:5px}
.nav a svg{width:18px;height:18px;opacity:0.95}
.nav a.active{background:linear-gradient(90deg,rgba(255,255,255,0.03),rgba(255,255,255,0.01));color:#fff}
.sidebar-bottom{margin-top:16px}
.user-pill{display:flex;gap:12px;align-items:center;background:rgba(255,255,255,0.02);padding:10px;border-radius:12px}
.avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(90deg,var(--blue-1),var(--blue-2));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700}
.content{padding:28px 32px;min-width:0}
.content{padding:28px 32px;min-width:0}
.card-header{font-family:Inter,system-ui,Arial,sans-serif}
.card{font-family:Inter,system-ui,Arial,sans-serif}
body.dashboard .card{width:auto;max-width:none}
.nav a svg{flex-shrink:0}
.search input{line-height:1.6}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}
.topbar > div:last-child{flex:1;min-width:0;justify-content:flex-end}
.search{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,0.03);padding:8px 12px;border-radius:12px;color:#b7d0df;flex:1 1 360px;max-width:480px;min-width:220px}
.search input{background:transparent;border:none;outline:none;color:#e6f3ff;width:100%;font-size:14px}
.weather{display:flex;align-items:center;gap:8px;color:#bfe0ff;font-weight:600;white-space:nowrap}
.stats-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}
.stat{background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));padding:18px;border-radius:10px}
.stat .value{font-size:28px;font-weight:800;color:#fff}
.stat .label{color:#9fb0bf;font-size:13px;margin-top:6px}
/* Match the dashboard reference layout: a wider map card on the left with alerts beside it. */
.main-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr);
  gap:16px;
  margin-bottom:22px;
  align-items:start;
}
.main-grid > *{min-width:0}
.card{background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));border-radius:12px;padding:16px;color:#d6e6f2;box-shadow:0 6px 20px rgba(2,6,23,0.6)}
.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-weight:700;color:#e3f7ff}
.risk-map{display:flex;flex-direction:column}

.risk-map .map{
  width:100%;
  max-width:none;
  height:clamp(250px,32vh,320px);
  min-height:250px;
  background: linear-gradient(180deg,#e8f6ff14,#cfeeff12);
  border-radius:8px;
  position:relative;
  overflow:hidden;
  padding:0;
  margin:0;
}

/* map element should fully fill the container */
#map{width:100%;height:100%;border-radius:6px}
/* Fullscreen map modal */
.map-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,6,12,0.6);z-index:1200}
.map-modal[aria-hidden="false"]{display:flex}
.map-modal-inner{background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));padding:18px;border-radius:12px;max-width:1200px;width:94%;box-shadow:0 20px 60px rgba(0,0,0,0.6);position:relative}
.map-close{position:absolute;right:10px;top:10px;background:transparent;border:none;color:#e6f3ff;font-size:22px;cursor:pointer;padding:8px;border-radius:8px}
.map-modal-inner #map-full{width:100%;height:70vh;border-radius:8px}
.map .overlay{position:absolute;border-radius:6px;opacity:0.95}
.map .zone.a{background:rgba(255,86,86,0.86);left:12%;top:14%;width:34%;height:42%;transform:rotate(-3deg)}
.map .zone.b{background:rgba(255,186,80,0.86);left:46%;top:30%;width:20%;height:36%}
.map .zone.c{background:rgba(66,195,130,0.86);left:72%;top:18%;width:16%;height:28%}
.legend{position:absolute;left:12px;bottom:12px;background:rgba(6,18,28,0.7);padding:10px;border-radius:8px;color:#d6e6f2;font-size:13px}

/* Leaflet map sizing */
#map{height:100%;width:100%;border-radius:8px}
.leaflet-container{height:100%;width:100%;border-radius:8px}
.risk-map .legend{z-index:600}
.right-pane{padding:16px}
.right-pane .alert-item{display:flex;gap:12px;align-items:flex-start;padding:14px 12px;border-radius:8px;border:1px solid rgba(255,255,255,0.02);margin-bottom:12px;background:rgba(255,255,255,0.01)}
.right-pane .alert-item div[style*="font-weight:800"]{font-size:16px}
.alert-pill{padding:6px 8px;border-radius:6px;font-weight:700;font-size:12px}
.alert-pill.high{background:linear-gradient(90deg,#ff5f5f,#ff8b8b);color:#2b0b0b}
.alert-pill.med{background:linear-gradient(90deg,#ffd27a,#ffe3b0);color:#3b2d18}
.meta{font-size:13px;color:#9fb0bf;margin-top:4px}
.table-card{overflow:hidden}
.table-card table{
  width:100%;
  border-collapse:collapse;
  table-layout:auto;
}
.table-card th,
.table-card td{
  padding:16px 14px;
  border-bottom:1px solid rgba(255,255,255,0.03);
  text-align:left;
  font-size:15px;
  line-height:1.6;
  vertical-align:middle;
  color:inherit;
  white-space:normal;
  word-break:break-word;
}
.table-card th{
  color:#9fb0bf;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
/* Prefer wider description column to avoid compression */
.table-card td:nth-child(1){width:22%} /* Resident */
.table-card td:nth-child(2){width:12%} /* Purok */
.table-card td:nth-child(3){width:46%} /* Description */
.table-card td:nth-child(4){width:10%} /* Submitted */
.table-card td:nth-child(5){width:10%} /* Status */

@media (max-width:900px){
  .table-card table{display:block;overflow-x:auto;white-space:nowrap}
  .table-card th,.table-card td{padding:12px 10px}
  .table-card td{white-space:nowrap}
}
.status{padding:6px 10px;border-radius:999px;font-weight:700;font-size:12px}
.status.in-review{background:linear-gradient(90deg,#ffd27a,#ffe3b0);color:#2f2206}
.status.resolved{background:linear-gradient(90deg,#7be28b,#3cc563);color:#07220b}

@media (max-width:920px){.app{grid-template-columns:220px minmax(0,1fr)}.stats-cards{grid-template-columns:repeat(2,1fr)}.main-grid{grid-template-columns:minmax(0,1fr)}.right-pane{order:2}.topbar{flex-direction:column;align-items:flex-start}.topbar > div:last-child{width:100%;justify-content:flex-start}.search{max-width:none}}

@media (max-width:700px){.app{grid-template-columns:1fr}.sidebar{display:none}.search{width:100%}.stats-cards{grid-template-columns:1fr}}

/* Make Recent Flood Reports appear more 'landscape' (wider) */
.recent-reports{position:relative;margin-top:18px}

/* On wide screens extend the reports card to create a wide landscape panel */
@media (min-width:1100px){
  /* Keep recent reports wide but inside the content column to avoid overlapping the sidebar/user icon */
  .recent-reports{
    left:0;
    width:100%;
    max-width:none;
    padding:20px 36px;
    box-shadow:0 12px 30px rgba(1,8,20,0.6);
    border-radius:12px;
    z-index:1;
    margin-left:0;
  }

  /* table: prefer fixed layout so widths are respected; allow description to wrap */
  .recent-reports .table-card table{table-layout:fixed}
  .recent-reports .table-card th,.recent-reports .table-card td{white-space:nowrap}
  .recent-reports .table-card td:nth-child(3){white-space:normal;overflow:visible}
}

/* For smaller screens allow horizontal scroll but keep the landscape feel on wide displays */
@media (max-width:1099px){
  .recent-reports{left:0;width:100%;padding:16px}
  .recent-reports .table-card table{table-layout:auto}
}

/* Dedicated risk map page */
.risk-map-page .content{padding:24px 24px 36px}
.map-page-shell{display:block;width:100%}
.map-page-card{width:100%;max-width:none;padding:20px}
.map-page-header{gap:18px;align-items:flex-start;margin-bottom:18px;flex-wrap:wrap}
.map-page-kicker{font-size:13px;letter-spacing:0.14em;text-transform:uppercase;color:#7fa4bf;font-weight:700;margin-bottom:8px}
.map-page-title{font-size:30px;font-weight:800;letter-spacing:0.03em;color:#fff;line-height:1.15}
.risk-map-page .map-page-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.risk-map-page .map-view-switch{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid rgba(151,190,221,.18);border-radius:12px;background:#101f31;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.risk-map-page .map-view-option,.risk-map-page .map-filter-button{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin:0;border:1px solid rgba(151,190,221,.12);border-radius:999px;padding:0 18px;background:#1b2a3d;color:#dce8f4;font:700 12px/1 Inter,system-ui,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;cursor:pointer;box-shadow:none;transition:background 160ms ease,border-color 160ms ease,color 160ms ease,transform 160ms ease}
.risk-map-page .map-view-option{min-height:34px;padding:0 14px;border-color:transparent;border-radius:9px;background:transparent;font-size:11px;letter-spacing:.04em;text-transform:none}
.risk-map-page .map-view-option:hover,.risk-map-page .map-filter-button:hover{border-color:rgba(88,157,255,.35);background:#263950;color:#fff}
.risk-map-page .map-view-option.active,.risk-map-page .map-filter-button.active{border-color:transparent;background:linear-gradient(110deg,#2162f5,#2e82ff);color:#fff;box-shadow:0 5px 14px rgba(30,91,255,.24)}
.risk-map-page .map-view-option:focus-visible,.risk-map-page .map-filter-button:focus-visible{outline:2px solid #86c8ff;outline-offset:3px}
.risk-map-page .map-view-option:active,.risk-map-page .map-filter-button:active{transform:scale(.98)}
.risk-map-page .map-view-switch .map-view-option{border-radius:9px}
@media (prefers-reduced-motion:reduce){.risk-map-page .map-view-option,.risk-map-page .map-filter-button{transition:none}}
@media (max-width:700px){.risk-map-page .map-page-actions{gap:8px}.risk-map-page .map-filter-button{min-height:40px;padding:0 12px;font-size:11px}}

/* Leaflet base-map control is replaced by topbar Map/Satellite switch to prevent obscuring rainfall */
.risk-map-page .leaflet-control-layers{display:none!important}
.risk-map-page .leaflet-control-layers-list{margin:0!important;padding:10px 12px!important}
.risk-map-page .leaflet-control-layers label{display:flex;align-items:center;gap:8px;margin:0;padding:7px 9px;border-radius:7px;color:#dce8f4;cursor:pointer}
.risk-map-page .leaflet-control-layers label:hover{background:rgba(73,139,255,.14);color:#fff}
.risk-map-page .leaflet-control-layers-selector{margin:0!important;accent-color:#347fff}
.risk-map-page .leaflet-control-layers-separator{border-top:1px solid rgba(151,190,221,.18)!important}
.risk-map-page .leaflet-control-layers-toggle{width:38px!important;height:38px!important;border:1px solid rgba(139,174,207,.28)!important;border-radius:10px!important;background-color:#101f31!important;box-shadow:0 8px 22px rgba(0,0,0,.3)!important}
@media (max-width:700px){.risk-map-page .leaflet-control-layers{margin:8px!important}.risk-map-page .leaflet-control-layers-list{padding:7px!important}}
.map-page-frame{position:relative;width:100%;height:clamp(560px,76vh,820px);border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,0.06);background:#09192a}
#riskMapPage{width:100%;height:100%}
.map-overlay-panel{position:absolute;z-index:700;box-sizing:border-box;background:rgba(10,19,31,0.78);border:1px solid rgba(255,255,255,0.08);border-radius:18px;padding:16px;backdrop-filter:blur(16px);box-shadow:0 18px 40px rgba(0,0,0,0.32)}
.layers-panel{top:20px;left:20px;width:min(240px,calc(100% - 40px));max-height:calc(50% - 20px);overflow-y:auto;overscroll-behavior:contain}
.map-legend-panel{left:20px;bottom:20px;width:min(290px,calc(100% - 40px));max-height:calc(50% - 20px);overflow-y:auto;overscroll-behavior:contain}
.coordinates-panel{top:20px;right:20px;width:290px}
.rainfall-panel{width:min(310px,calc(100% - 40px))}
.coordinates-panel .map-panel-title{margin-bottom:10px}
.map-panel-title{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:0.12em;color:#9ec0d9;margin-bottom:12px}
.map-panel-dot{width:9px;height:9px;background:#4a8cff;border-radius:3px;transform:rotate(45deg)}
.layer-toggle{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,0.04);color:#e3f1fb;font-size:14px}
.layer-toggle + .layer-toggle{margin-top:8px}
.layer-toggle input{width:16px;height:16px;margin:0;accent-color:#3d8bff}
.legend-list{display:flex;flex-direction:column;gap:9px}
.legend-item{display:flex;align-items:center;gap:10px;color:#e1eef8;font-size:13px}
.legend-item strong{font-weight:700}
.legend-label{display:flex;flex-direction:column;line-height:1.2}
.legend-label small{font-family:'Space Mono',monospace;font-size:10px;color:#9db6c8}
.risk-coordinate-section{margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.1)}
.risk-coordinate-title{margin-bottom:8px;color:#9ec0d9;font-size:9px;font-weight:800;letter-spacing:.12em}
.risk-coordinate-table{display:flex;flex-direction:column;gap:6px}
.risk-coordinate-row{display:grid;grid-template-columns:minmax(0,1fr) 76px 82px;gap:5px;align-items:center;color:#edf5fa;font:9px 'Space Mono',monospace}
.risk-coordinate-header{color:#829daf;font:800 8px Inter,sans-serif;letter-spacing:.08em}
.risk-coordinate-name{overflow:hidden;color:#a9c0cf;font:10px Inter, sans-serif;text-overflow:ellipsis;white-space:nowrap}
.legend-swatch{display:inline-block;flex:0 0 14px;width:14px;height:14px;border-radius:4px}
.map-legend-panel .legend-swatch{border-radius:50%}
.coordinates-list{display:flex;flex-direction:column;gap:8px}
.coordinate-item{display:flex;align-items:center;gap:10px;justify-content:space-between;color:#c8dbe8;font-size:11px}
.coordinate-item .coord-name{color:#91abc0;flex:1;text-align:left}
.coordinate-item strong{font-family:'Space Mono',monospace;color:#f1f8fc;font-size:10px;white-space:nowrap}
.legend-swatch.green{background:#22a06b}
.legend-swatch.yellow-green{background:#9bbd32}
.legend-swatch.yellow{background:#e4c441}
.legend-swatch.orange{background:#e8892e}
.legend-swatch.red{background:#df4e4e}
.legend-evac{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#e67a3d;color:#fff;font-size:13px;font-weight:800;line-height:1}
.risk-area-list{display:flex;flex-direction:column;gap:10px}
.risk-area-group{display:flex;flex-direction:column;gap:3px}
.risk-area-group-title{margin:0;padding:4px 2px;color:#dbe9f2;font-size:11px;font-weight:800;text-transform:uppercase}
.risk-area-group-title.high{color:#ff9992}.risk-area-group-title.medium{color:#f0d66c}.risk-area-group-title.low{color:#72dda7}
.risk-area-item{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:5px 4px;border:0;border-radius:6px;background:transparent;color:#e3f1fb;text-align:left;cursor:pointer}
.risk-area-item:hover,.risk-area-item:focus-visible{background:rgba(255,255,255,.08);outline:none}
.risk-area-swatch{width:8px;height:8px;border-radius:50%}
.risk-area-swatch.high{background:#df4e4e}.risk-area-swatch.medium{background:#e4c441}.risk-area-swatch.low{background:#22a06b}
.risk-area-name{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.risk-area-item small{color:#9db6c8;font:9px 'Space Mono',monospace;white-space:nowrap}
.risk-area-empty{margin:0;color:#9db6c8;font-size:12px}
.map-overlay-footer{position:absolute;right:20px;bottom:20px;z-index:700;display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:18px;background:rgba(10,19,31,0.76);border:1px solid rgba(255,255,255,0.08);backdrop-filter:blur(16px);box-shadow:0 18px 40px rgba(0,0,0,0.28)}
.map-status{font-size:13px;color:#c6d9e8;max-width:360px}
.map-back-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;text-decoration:none;font-size:12px;font-weight:800;letter-spacing:0.05em;color:#fff;background:linear-gradient(90deg,var(--blue-1),#2e82ff)}
.evacuation-marker-wrapper{background:transparent;border:none}
.evacuation-marker{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#e67a3d;color:#fff;font-size:18px;font-weight:800;border:3px solid rgba(255,255,255,0.86);box-shadow:0 12px 24px rgba(0,0,0,0.28)}
.rainfall-units{margin:0 0 12px;color:#9db6c8;font-size:11px}
.rainfall-list{display:flex;flex-direction:column;gap:10px}
.rainfall-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px;border-radius:10px;background:rgba(255,255,255,0.04)}
.rainfall-location,.rainfall-reading{display:flex;flex-direction:column;gap:4px}
.rainfall-location strong,.rainfall-reading>strong{color:#f1f8fc;font-size:12px}
.rainfall-location small{color:#91abc0;font:10px 'Space Mono',monospace}
.rainfall-tier{font-size:10px;font-weight:700}
.rainfall-tier.low{color:#72dda7}.rainfall-tier.medium-low{color:#c0dc6a}.rainfall-tier.medium{color:#f0d06b}.rainfall-tier.medium-high{color:#f0a65f}.rainfall-tier.high{color:#ff8d89}

@media (max-width:960px){
  .map-page-title{font-size:24px}
  .map-overlay-footer{left:20px;right:20px;bottom:20px;justify-content:space-between}
  .map-status{max-width:none}
}

@media (max-width:760px){
  .map-page-frame{height:72vh;min-height:620px}
  .map-page-actions{width:100%}
  .map-filter-button{flex:1}
  .map-legend-panel{bottom:108px;width:min(290px,calc(100% - 40px))}
  .layers-panel,.map-legend-panel{max-height:38%;overflow-y:auto}
  .map-overlay-footer{flex-direction:column;align-items:flex-start}
}

@media (max-width:540px){
  .map-page-card{padding:14px}
  .map-page-title{font-size:20px}
  .layers-panel,.map-legend-panel,.coordinates-panel{left:14px;width:calc(100% - 28px)}
  .layers-panel{top:14px}
  .layers-panel{max-height:27%}
  .coordinates-panel{top:190px;right:auto;max-height:21%;overflow-y:auto}
  .map-legend-panel{bottom:136px;max-height:26%}
  .map-overlay-footer{left:14px;right:14px;bottom:14px;padding:12px 14px}
}

@media (min-width:1200px){
  .risk-map-page .content{padding:20px 18px 30px}
  .map-page-card{padding:18px}
}

/* Dedicated evacuation centers page */
.evacuation-centers-page .content{padding:24px 24px 36px}
.evacuation-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}
.evacuation-stat{min-height:112px;padding:14px 18px 16px}
.evacuation-stat-title{font-size:11px;letter-spacing:0.08em;text-transform:uppercase;color:#7d90a5;margin-bottom:10px}
.evacuation-stat .value{font-size:42px;line-height:1;color:#fff;margin:0 0 8px}
.evacuation-stat-note{font-size:12px;color:#7fd19d}
.evacuation-stat-note.warn{color:#d08276}
.evacuation-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.evacuation-filter-group{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.center-filter-button{border:1px solid rgba(255,255,255,0.2);border-radius:999px;background:transparent;color:#dcecf7;padding:10px 16px;font-size:12px;font-weight:700;letter-spacing:0.04em;cursor:pointer;transition:background 160ms ease,border-color 160ms ease,color 160ms ease}
.center-filter-button:hover{border-color:rgba(255,255,255,0.36);background:rgba(255,255,255,0.04)}
.center-filter-button.active{background:linear-gradient(90deg,var(--blue-1),#2e82ff);border-color:transparent;color:#fff}
.evacuation-add-button{display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:10px;background:linear-gradient(90deg,var(--blue-1),#2e82ff);color:#fff;padding:15px 20px;font-size:13px;font-weight:800;letter-spacing:0.05em;cursor:pointer;box-shadow:0 12px 28px rgba(30,91,255,0.2)}
.evacuation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.center-card{padding:14px 12px 12px;border:1px solid rgba(255,255,255,0.03)}
.center-card-featured{border-color:#2695ff;box-shadow:0 0 0 1px rgba(38,149,255,0.28),0 14px 28px rgba(8,16,31,0.5)}
.center-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.center-card-title{margin:0;font-size:14px;line-height:1.35;color:#f0f6fb}
.center-card-meta{margin:4px 0 0;font-size:11px;color:#90a3b7;line-height:1.4;text-transform:none}
.center-badge{display:inline-flex;align-items:center;justify-content:center;min-width:44px;padding:3px 8px;border-radius:4px;font-size:10px;font-weight:800;letter-spacing:0.04em;text-transform:capitalize}
.center-badge.open{background:rgba(79,181,113,0.18);color:#86e4a4}
.center-badge.full{background:rgba(224,99,99,0.18);color:#ff9b9b}
.center-card-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}
.center-metric-value{display:block;font-size:28px;font-weight:800;line-height:1;color:#fff}
.center-metric-label{display:block;margin-top:4px;font-size:11px;color:#96abbe;line-height:1.35}
.center-capacity-bar{height:4px;border-radius:999px;background:rgba(255,255,255,0.08);overflow:hidden;margin-bottom:12px}
.center-capacity-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue-1),#2e82ff)}
.center-capacity-bar span.warn{background:linear-gradient(90deg,#e36464,#ff9b9b)}
.center-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.center-action-button{border-radius:9px;padding:9px 12px;font-size:11px;font-weight:800;letter-spacing:0.04em;cursor:pointer}
.center-action-button.secondary{border:1px solid rgba(255,255,255,0.28);background:transparent;color:#e7f2fb}
.center-action-button.primary{border:none;background:linear-gradient(90deg,var(--blue-1),#2e82ff);color:#fff}

.route-modal{position:fixed;inset:0;background:rgba(4,12,20,0.66);display:none;align-items:center;justify-content:center;padding:24px;z-index:1200}
.route-modal.open{display:flex}
.route-modal-panel{width:min(960px,100%);background:linear-gradient(180deg,#101d2b,#0b1622);border:1px solid rgba(255,255,255,0.08);border-radius:18px;padding:18px;box-shadow:0 28px 60px rgba(0,0,0,0.4)}
.route-modal-status{margin:0 0 12px;color:#8ed7ff;font-size:12px;font-weight:700;letter-spacing:.03em}
.route-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.route-modal-kicker{display:block;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:#8bb6d8;margin-bottom:4px}
.route-modal-header h3{margin:0;font-size:24px;color:#f5fbff}
.route-modal-close{width:36px;height:36px;border-radius:10px;border:1px solid rgba(255,255,255,0.2);background:rgba(255,255,255,0.04);color:#e7f2fb;font-size:26px;line-height:1;cursor:pointer}
.route-map-wrap{height:420px;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,0.08);background:#0d1c2d}
#routeMap{width:100%;height:100%;background:#0f212d}
#routeMap svg{display:block;width:100%;height:100%}
.route-summary{display:flex;flex-direction:column;gap:4px;margin-top:14px;padding:12px 14px;border-radius:10px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.05);color:#d9ebf7}
.manage-form{display:flex;flex-direction:column;gap:14px;padding:4px 2px 2px}
.manage-field{display:flex;flex-direction:column;gap:6px}
.manage-field span{font-size:11px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:#8bb6d8}
.manage-field select,.manage-field input{background:#0d1c2d;border:1px solid rgba(255,255,255,0.14);border-radius:9px;color:#e7f2fb;padding:10px 12px;font-size:14px}
.manage-field select:focus,.manage-field input:focus{outline:2px solid #35b7ff;outline-offset:1px}
.manage-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}
.manage-drawer-backdrop{position:fixed;inset:0;z-index:1250;display:flex;justify-content:flex-end;background:rgba(3,10,17,.72);backdrop-filter:blur(6px);visibility:hidden;opacity:0;pointer-events:none;transition:opacity .22s ease,visibility .22s ease}
.manage-drawer-backdrop.open{visibility:visible;opacity:1;pointer-events:auto}
.manage-drawer-panel{width:min(500px,100%);height:100%;min-height:100dvh;overflow-y:auto;padding:34px 30px 28px;background:linear-gradient(155deg,#112a3a 0%,#0d1c2a 42%,#091521 100%);border-left:1px solid rgba(77,208,179,.34);box-shadow:-24px 0 70px rgba(0,0,0,.42);transform:translateX(36px);transition:transform .28s cubic-bezier(.2,.75,.25,1)}
.manage-drawer-backdrop.open .manage-drawer-panel{transform:translateX(0)}
.manage-drawer-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:24px;border-bottom:1px solid rgba(255,255,255,.1)}
.manage-drawer-header h3{margin:12px 0 0;color:#f2f8fc;font-size:26px;line-height:1.2;overflow-wrap:anywhere}
.manage-drawer-eyebrow{display:flex;align-items:center;gap:8px;margin:0;color:#6cdec0;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.manage-drawer-eyebrow span{width:8px;height:8px;border-radius:50%;background:#59d8ae;box-shadow:0 0 12px rgba(89,216,174,.7)}
.manage-drawer-description{margin:7px 0 0;color:#91aabd;font-size:12px}
.manage-status-card{display:flex;align-items:center;justify-content:space-between;margin:22px 0 26px;padding:15px 16px;border:1px solid rgba(111,211,187,.18);border-radius:10px;background:linear-gradient(100deg,rgba(52,146,123,.15),rgba(255,255,255,.025))}
.manage-status-card>span{color:#a9becb;font-size:12px;font-weight:600}
.manage-status-card strong{padding:5px 9px;border-radius:5px;font-size:10px;letter-spacing:.09em}
.manage-status-card strong.is-open{background:rgba(63,193,141,.16);color:#78e0ae}
.manage-status-card strong.is-full{background:rgba(230,104,104,.17);color:#ff9d9d}
.manage-drawer .manage-form{gap:18px;padding:0}
.manage-drawer .manage-field span{color:#9db7c7}
.manage-drawer .manage-field select,.manage-drawer .manage-field input{min-height:46px;border-radius:7px;background:#0a1722}
.manage-drawer .manage-actions{margin-top:12px;padding-top:20px;border-top:1px solid rgba(255,255,255,.1)}
.manage-drawer .manage-actions button{min-width:120px;min-height:42px}
.route-summary strong{font-size:12px;letter-spacing:0.08em;text-transform:uppercase;color:#9ec3e7}
.route-summary span{font-size:14px;line-height:1.5}

@media (max-width:520px){
  .manage-drawer-panel{padding:26px 20px 22px}
  .manage-drawer-header h3{font-size:23px}
  .manage-drawer .manage-actions button{flex:1;min-width:0}
}

@media (prefers-reduced-motion:reduce){
  .manage-drawer-backdrop,.manage-drawer-panel{transition:none}
}

@media (max-width:1100px){
  .evacuation-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .evacuation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:760px){
  .evacuation-centers-page .content{padding:20px 18px 30px}
  .evacuation-summary{grid-template-columns:1fr}
  .evacuation-toolbar{align-items:stretch}
  .evacuation-filter-group{width:100%}
  .center-filter-button{flex:1}
  .evacuation-add-button{width:100%}
  .evacuation-grid{grid-template-columns:1fr}
}

/* Dedicated flood reports page */
.flood-reports-page{
  background:
    radial-gradient(circle at 82% 0,rgba(57,103,205,0.16),transparent 22%),
    linear-gradient(180deg,#0a1320 0%,#091221 54%,#08111d 100%);
  color:#e8f1fb;
}

.flood-reports-page .app{
  grid-template-columns:216px minmax(0,1fr);
  gap:0;
  min-height:100vh;
}

.flood-reports-page .sidebar{
  padding:0;
  background:linear-gradient(180deg,#0d1728 0%,#0a1626 100%);
  border-right:1px solid rgba(255,255,255,0.08);
}

.flood-sidebar-top{
  padding:16px 10px 20px;
}

.fr-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px 20px;
  margin:0 -10px 14px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.fr-brand-mark{
  position:relative;
  display:block;
  width:24px;
  height:30px;
  flex:0 0 auto;
}

.fr-brand-layer{
  position:absolute;
  clip-path:polygon(50% 0,0 100%,100% 100%);
}

.fr-brand-back{
  inset:4px 0 2px 5px;
  background:linear-gradient(180deg,#4f8fff,#21467d);
  opacity:0.35;
}

.fr-brand-front{
  inset:0 2px 3px 1px;
  background:linear-gradient(180deg,#c5deff,#7297f2);
  box-shadow:0 10px 20px rgba(82,125,255,0.18);
}

.fr-brand-core{
  inset:9px 7px 5px 7px;
  background:linear-gradient(180deg,#f4f8ff,#91b1ff);
  opacity:0.92;
}

.fr-brand-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.fr-brand-name{
  font-family:'Space Grotesk',Inter,system-ui,Arial,sans-serif;
  font-size:16px;
  font-weight:700;
  letter-spacing:0.04em;
  color:#f7fbff;
}

.fr-brand-subtitle{
  margin-top:2px;
  font-size:12px;
  color:#879ab1;
}

.flood-reports-page .nav{
  margin-top:0;
  gap:4px;
}

.flood-reports-page .nav-section{
  padding:0 14px;
  margin:12px 0 6px;
  font-size:11px;
  letter-spacing:0.11em;
  color:#7e91a7;
  text-transform:uppercase;
}

.flood-reports-page .nav a{
  padding:12px 14px;
  border-radius:10px;
  color:#aebcd0;
  font-size:14.5px;
  font-weight:500;
  transition:background 160ms ease,color 160ms ease;
}

.flood-reports-page .nav a:hover{
  background:rgba(255,255,255,0.03);
  color:#ecf5ff;
}

.flood-reports-page .nav a svg{
  width:17px;
  height:17px;
}

.flood-reports-page .nav a.active{
  background:linear-gradient(90deg,#295faa 0%,#2d66bb 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.06);
  color:#fff;
}

.flood-reports-page .sidebar-bottom{
  margin:0;
  padding:12px 14px 16px;
  border-top:1px solid rgba(255,255,255,0.08);
  background:linear-gradient(180deg,rgba(255,255,255,0.01),rgba(255,255,255,0.02));
}

.fr-profile{
  display:flex;
  align-items:center;
  gap:12px;
}

.fr-profile-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  background:linear-gradient(180deg,#2d73db,#224eb2);
  color:#dfeefe;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  box-shadow:0 10px 24px rgba(15,53,138,0.24);
}

.fr-profile-name{
  font-size:13px;
  font-weight:700;
  color:#eef6ff;
  letter-spacing:0.06em;
  text-transform:none;
}

.fr-profile-meta{
  margin-top:2px;
  font-size:11px;
  color:#8196af;
}

.flood-reports-page .content{
  padding:0 20px 20px;
  background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0));
}

.flood-topbar{
  margin:0 -20px 22px;
  padding:20px 20px 18px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.flood-page-title h1{
  margin:0;
  font-size:18px;
  line-height:1.2;
  font-weight:800;
  color:#f7fbff;
}

.flood-page-title p{
  margin:4px 0 0;
  font-size:12.5px;
  color:#90a3b8;
}

.flood-topbar-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  flex:1 1 auto;
  min-width:0;
}

.fr-global-search{
  height:42px;
  padding:0 14px;
  max-width:346px;
  border:1px solid rgba(255,255,255,0.03);
  background:rgba(255,255,255,0.03);
  border-radius:10px;
  color:#92a6bd;
}

.fr-global-search input,
.fr-report-search input{
  font-size:14px;
}

.fr-global-search input::placeholder,
.fr-report-search input::placeholder{
  color:#7c91a9;
}

.fr-weather-pill{
  display:flex;
  align-items:center;
  gap:8px;
  height:42px;
  padding:0 14px;
  border-radius:12px;
  background:rgba(255,255,255,0.03);
  color:#bdd9ff;
  white-space:nowrap;
}

.fr-weather-value{
  font-size:16px;
  font-weight:700;
  color:#edf6ff;
}

.fr-weather-copy{
  font-size:12px;
  color:#90a3b8;
}

.fr-icon-button{
  position:relative;
  width:42px;
  height:42px;
  border:none;
  border-radius:12px;
  background:transparent;
  color:#a0b6cc;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.fr-icon-button:hover{
  background:rgba(255,255,255,0.03);
  color:#eef6ff;
}

.fr-icon-badge{
  position:absolute;
  top:1px;
  right:2px;
  min-width:16px;
  height:16px;
  padding:0 4px;
  border-radius:999px;
  background:#db6a5f;
  border:2px solid #0b1523;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:700;
  line-height:1;
}

.fr-account-pill{
  width:44px;
  height:44px;
  border-radius:50%;
  background:linear-gradient(180deg,#2f74d8,#224cb0);
  color:#cfe4ff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  box-shadow:0 12px 28px rgba(15,53,138,0.24);
}

.flood-report-workspace{
  display:grid;
  grid-template-columns:minmax(0,1.34fr) minmax(302px,0.96fr);
  gap:16px;
  align-items:start;
}

.flood-review-card,
.flood-history-card{
  min-height:560px;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.03);
  background:linear-gradient(180deg,rgba(18,25,38,0.98),rgba(11,16,28,0.96));
  box-shadow:0 14px 32px rgba(4,10,20,0.34);
}

.flood-history-card{
  display:flex;
  flex-direction:column;
}

.flood-workspace-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 18px 14px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  font-size:13px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#f3f8ff;
}

.flood-history-header{
  align-items:flex-start;
}

.flood-review-badge,
.flood-reports-page .status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:68px;
  padding:4px 9px;
  border-radius:6px;
  font-size:10px;
  font-weight:800;
  letter-spacing:0.04em;
}

.flood-reports-page .status.new,
.flood-history-tag.high{
  background:rgba(203,75,84,0.22);
  color:#ff8d89;
}

.flood-reports-page .status.in-review,
.flood-history-tag.moderate,
.flood-history-tag.elevated{
  background:rgba(192,167,80,0.22);
  color:#f0d06b;
}

.flood-reports-page .status.resolved,
.flood-history-tag.low{
  background:rgba(58,156,112,0.22);
  color:#72dda7;
}

.flood-history-tag.critical{
  background:rgba(209,84,94,0.3);
  color:#ffb4a8;
}

.flood-review-form{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:14px 18px 18px;
  min-height:calc(560px - 56px);
}

.flood-review-group{
  display:flex;
  flex-direction:column;
  gap:9px;
}

.flood-review-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#eef5ff;
}

.flood-priority-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.flood-priority-pill,
.report-filter-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,0.18);
  border-radius:999px;
  background:transparent;
  color:#d5e0ed;
  cursor:pointer;
  transition:background 160ms ease,border-color 160ms ease,color 160ms ease,box-shadow 160ms ease;
}

.flood-priority-pill{
  min-width:78px;
  padding:10px 14px;
  border-radius:10px;
  font-size:12px;
  font-weight:700;
}

.report-filter-button{
  padding:6px 14px;
  font-size:11px;
  font-weight:700;
}

.flood-priority-pill:hover,
.report-filter-button:hover{
  border-color:rgba(255,255,255,0.3);
  background:rgba(255,255,255,0.04);
}

.flood-priority-pill.active,
.report-filter-button.active{
  border-color:transparent;
  background:linear-gradient(90deg,#2d71dc,#225fc3);
  color:#fff;
  box-shadow:0 10px 22px rgba(20,70,176,0.24);
}

.flood-review-field,
.flood-review-select,
.flood-meta-card,
.flood-review-note{
  border:1px solid rgba(255,255,255,0.03);
  border-radius:10px;
  background:rgba(255,255,255,0.03);
}

.flood-review-field,
.flood-review-select{
  min-height:56px;
  padding:15px 14px;
  color:#eef6ff;
  font-size:15px;
  line-height:1.45;
}

.flood-review-field{
  display:flex;
  align-items:center;
}

.flood-review-field-large{
  min-height:122px;
  align-items:flex-start;
  color:#d0dceb;
}

.flood-review-split{
  display:grid;
  grid-template-columns:minmax(0,1.28fr) minmax(210px,0.92fr);
  gap:14px;
}

.flood-review-select{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#d9e6f6;
}

.flood-review-metadata{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.flood-meta-card,
.flood-review-note{
  padding:14px;
}

.flood-meta-label{
  display:block;
  margin-bottom:8px;
  font-size:10px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#8196aa;
}

.flood-meta-card strong,
.flood-review-note strong{
  display:block;
  color:#eef6ff;
  font-size:13px;
  line-height:1.55;
}

.flood-review-footer{
  margin-top:auto;
  display:grid;
  gap:14px;
}

.flood-primary-action{
  width:100%;
  height:56px;
  border:none;
  border-radius:10px;
  background:linear-gradient(90deg,#2d71dc,#225fc3);
  color:#fff;
  font-size:14px;
  font-weight:800;
  letter-spacing:0.03em;
  cursor:pointer;
  box-shadow:0 14px 30px rgba(20,70,176,0.24);
}

.flood-history-filters{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.flood-history-list{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}

.flood-history-item{
  width:100%;
  border:none;
  border-top:1px solid rgba(255,255,255,0.07);
  background:transparent;
  color:inherit;
  text-align:left;
  padding:16px 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  cursor:pointer;
  transition:background 160ms ease,box-shadow 160ms ease;
}

.flood-history-item:first-of-type{
  border-top:none;
}

.flood-history-item:hover{
  background:rgba(255,255,255,0.02);
}

.flood-history-item.active{
  background:linear-gradient(180deg,rgba(255,255,255,0.03),rgba(255,255,255,0.01));
  box-shadow:inset 3px 0 0 #357bff;
}

.flood-history-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.flood-history-time{
  font-size:12px;
  color:#7f92a6;
}

.flood-history-title{
  color:#f4f8ff;
  font-size:15px;
  line-height:1.4;
}

.flood-history-copy{
  color:#9cadc0;
  font-size:13px;
  line-height:1.45;
}

.flood-report-empty{
  padding:20px 18px 24px;
  color:#8ea4bb;
  font-size:13px;
}

@media (max-width:1180px){
  .flood-topbar{
    flex-direction:column;
    align-items:flex-start;
  }

  .flood-topbar-actions{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .flood-report-workspace{
    grid-template-columns:1fr;
  }

  .flood-history-header{
    flex-direction:column;
  }

  .flood-history-filters{
    justify-content:flex-start;
  }
}

@media (max-width:920px){
  .flood-reports-page .app{
    grid-template-columns:1fr;
  }

  .flood-reports-page .sidebar{
    display:none;
  }

  .flood-reports-page .content{
    padding:0 16px 22px;
  }

  .flood-topbar{
    margin:0 -16px 20px;
    padding:18px 16px 16px;
  }

  .flood-review-card,
  .flood-history-card{
    min-height:0;
  }

  .flood-review-form{
    min-height:0;
  }

  .flood-review-split{
    grid-template-columns:1fr;
  }
}

@media (max-width:620px){
  .flood-review-metadata{
    grid-template-columns:1fr;
  }

  .flood-topbar-actions{
    gap:10px;
  }

  .fr-global-search,
  .flood-history-filters,
  .report-filter-button{
    width:100%;
  }

  .fr-weather-pill{
    order:3;
  }

  .flood-priority-pills{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .flood-priority-pill:last-child{
    grid-column:1 / -1;
  }

  .flood-workspace-header{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* Keep the redesigned report screen independent of the legacy report-detail styles. */
.flood-reports-page .app{grid-template-columns:209px minmax(0,1fr);gap:0}
.flood-reports-page .reports-content{padding:0;background:radial-gradient(circle at 100% 0,#092c60 0,transparent 36%),#071a33}
.flood-reports-page .reports-sidebar{padding:0}
.flood-reports-page .reports-sidebar .nav{padding:11px 10px}
.flood-reports-page .reports-sidebar .nav-section{margin:0;padding:13px 7px 7px;color:#8294ae;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.flood-reports-page .reports-sidebar .nav a{height:28px;margin:2px 0;padding:0 7px;gap:9px;border-radius:7px;color:#9caabe;font-size:12px;font-weight:500}
.flood-reports-page .reports-sidebar .nav a svg{width:15px;height:15px}.flood-reports-page .reports-sidebar .nav a.active{background:#215aab;color:#4da0ff}
@media (max-width:800px){.flood-reports-page .app{grid-template-columns:1fr}.flood-reports-page .reports-sidebar{display:none}}

/* Alerts page */
body.alerts-page{background:#071a33;color:#e8edf7;font-family:Inter,Arial,sans-serif}.alerts-page .app{min-height:100vh;display:grid;grid-template-columns:209px minmax(0,1fr);gap:0;background:#081a33}.alerts-page .alerts-sidebar{position:relative;display:flex;flex-direction:column;min-height:100vh;padding:0;background:linear-gradient(160deg,#071a34,#06172e);border-right:1px solid rgba(166,191,224,.18)}
.alerts-brand{height:82px;padding:0 17px;display:flex;align-items:center;gap:11px;border-bottom:1px solid rgba(166,191,224,.17)}.alerts-brand-mark{position:relative;width:27px;height:32px}.alerts-brand-mark i,.alerts-brand-mark b,.alerts-brand-mark em{position:absolute;display:block;clip-path:polygon(50% 0,100% 100%,0 100%)}.alerts-brand-mark i{inset:4px 0 2px 9px;background:#254d85;transform:rotate(8deg)}.alerts-brand-mark b{inset:0 7px 6px 0;background:linear-gradient(145deg,#b5d5fa,#5b80ba)}.alerts-brand-mark em{inset:12px 6px 0 7px;background:#17335c}.alerts-brand strong{display:block;color:#f6f8fd;font-size:15px;letter-spacing:.02em;line-height:1.1}.alerts-brand span{display:block;margin-top:3px;color:#8495ae;font-size:9px;white-space:nowrap}
.alerts-page .alerts-sidebar .nav{padding:11px 10px}.alerts-page .alerts-sidebar .nav-section{margin:0;padding:13px 7px 7px;color:#8294ae;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.alerts-page .alerts-sidebar .nav a{height:28px;margin:2px 0;padding:0 7px;gap:9px;border-radius:7px;color:#9caabe;font-size:12px;font-weight:500}.alerts-page .alerts-sidebar .nav a svg{width:15px;height:15px}.alerts-page .alerts-sidebar .nav a.active{background:#215aab;color:#4da0ff}.alerts-profile{margin-top:auto;height:35px;padding:6px 10px;display:flex;align-items:center;gap:8px;border-top:1px solid rgba(166,191,224,.18);background:#07192f}.alerts-profile>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#1555af;color:#55a1ff;font-size:15px;font-weight:700}.alerts-profile strong{display:block;color:#f0f4fb;font-size:11px;line-height:1.1;letter-spacing:.08em}.alerts-profile small{display:block;margin-top:3px;color:#8393aa;font-size:7px}
.alerts-page .alerts-content{min-width:0;padding:0;background:radial-gradient(circle at 100% 0,#092c60 0,transparent 36%),#071a33}.alerts-topbar{height:82px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(166,191,224,.17)}.alerts-topbar h1{margin:0;color:#f5f7fc;font-size:17px;font-weight:800}.alerts-topbar p{margin:2px 0 0;color:#8795a9;font-size:9px}.alerts-actions{display:flex;align-items:center;gap:16px}.alerts-global-search{width:232px;height:34px;padding:0 11px;display:flex;align-items:center;gap:8px;border-radius:7px;background:#14243e;color:#7f8ea4}.alerts-global-search svg{width:14px}.alerts-global-search input{width:100%;border:0;outline:0;background:transparent;color:#dce6f5;font:500 11px Inter}.alerts-global-search input::placeholder{color:#8b96a6}.alerts-weather{display:flex;align-items:center;gap:5px;color:#7f8ba0;font-size:10px;white-space:nowrap}.alerts-weather svg{width:18px;color:#2583ff}.alerts-weather b{color:#e4ebf7;font-size:11px}.alerts-bell{position:relative;width:36px;height:36px;border:0;border-radius:7px;background:#13243d;color:#a3b2c8;display:grid;place-items:center}.alerts-bell svg{width:18px}.alerts-bell i{position:absolute;right:-4px;top:-5px;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;background:#bd514e;color:#fff;font:9px Inter;font-style:normal}.alerts-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#175ab8;color:#4a94fb;font-size:15px;font-weight:700}
.alerts-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(302px,1fr);gap:16px;padding:24px}.alerts-compose,.alerts-history,.alerts-calendar-card{min-height:525px;border-radius:7px;background:linear-gradient(135deg,#151f31,#121d2e);overflow:hidden}.alerts-calendar-card{grid-column:2;grid-row:1;min-height:0;padding:16px}.alerts-history{grid-column:1/-1;grid-row:2}.alerts-calendar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.alerts-calendar-header h2{margin:0;color:#f0f3f9;font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.alerts-calendar-header p{margin:4px 0 0;color:#8e99ab;font-size:10px}.alerts-calendar-hint{color:#72a9ed;font-size:10px;font-weight:700}.alerts-calendar-card #alertsCalendar{color:#dce6f5}.alerts-compose h2,.alerts-history h2{margin:0;color:#f0f3f9;font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.alerts-compose>h2{height:46px;padding:16px 14px;border-bottom:1px solid rgba(185,205,230,.14)}.alerts-form{padding:14px 12px}.alerts-form fieldset{margin:0 0 15px;padding:0;border:0}.alerts-form legend,.alerts-form label{display:block;margin:0 0 8px;color:#f1f4f9;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.severity-options{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.severity-options button{height:26px;border:1px solid #7b899c;border-radius:7px;background:transparent;color:#f3f5f9;font:700 9px Inter}.severity-options button.active{border-color:#3386f1;background:#235a9e}.alerts-form label{margin-bottom:16px}.alerts-form input,.alerts-form textarea,.alerts-form select{display:block;width:100%;margin-top:8px;padding:0 7px;border:0;border-radius:7px;outline:0;background:#1a2437;color:#e8edf7;font:500 11px Inter;text-transform:none}.alerts-form input,.alerts-form select{height:29px}.alerts-form textarea{height:58px;padding-top:9px;resize:vertical}.alerts-form select{appearance:auto;color:#929cb0}.send-alert{width:100%;height:30px;margin-top:0;border:0;border-radius:7px;background:#2f80ed;color:#fff;font:700 12px Inter;letter-spacing:.02em}.alerts-history>header{height:46px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(185,205,230,.14)}.alert-history-filters{display:flex;gap:6px}.alert-history-filters button{height:20px;padding:0 10px;border:0;border-radius:12px;background:#182237;color:#e2e8f3;font:700 8px Inter}.alert-history-filters button.active{background:#2f80ed;color:#fff}.alert-history-list article{height:73px;padding:13px 14px;border-bottom:1px solid rgba(185,205,230,.14)}.alert-history-list article>div{display:flex;justify-content:space-between;align-items:center}.alert-level{padding:2px 4px;border-radius:2px;font-size:7px;font-weight:700}.alert-level.high{background:#7b353b;color:#ff8b90}.alert-level.medium{background:#7d6f00;color:#fff157}.alert-level.resolved{background:#596270;color:#dfe4ec}.alert-history-list time{color:#8a95a8;font-size:8px}.alert-history-list h3{margin:6px 0 0;color:#f0f3f9;font-size:10px;font-weight:700}.alert-history-list p{margin:3px 0 0;color:#8e99ab;font-size:9px}
@media (max-width:800px){.alerts-page .app{grid-template-columns:1fr}.alerts-page .alerts-sidebar{display:none}.alerts-workspace{padding:16px;grid-template-columns:1fr}.alerts-compose,.alerts-history,.alerts-calendar-card{min-height:auto}.alerts-compose,.alerts-calendar-card,.alerts-history{grid-column:1;grid-row:auto}}@media (max-width:540px){.alerts-global-search{display:none}.alerts-actions{gap:8px}.alerts-weather span{display:none}.alerts-workspace{padding:12px}.severity-options{grid-template-columns:repeat(2,1fr)}.severity-options button:last-child{grid-column:1/-1}}

/* Shared dashboard sizing: prevents browser text autosizing and keeps navigation
   and breakpoints consistent while moving between dashboard pages. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.dashboard{font-size:14px;line-height:1.45}
body.dashboard:not(.flood-reports-page):not(.alerts-page) .app{grid-template-columns:209px minmax(0,1fr);gap:0}
body.dashboard:not(.flood-reports-page):not(.alerts-page) .sidebar{padding:16px 10px}
body.dashboard:not(.flood-reports-page):not(.alerts-page) .nav{margin-top:18px;gap:2px}
body.dashboard:not(.flood-reports-page):not(.alerts-page) .nav-section{padding:10px 7px 6px;margin:0;font-size:9px;letter-spacing:.06em}
body.dashboard:not(.flood-reports-page):not(.alerts-page) .nav a{height:30px;padding:0 7px;gap:9px;border-radius:7px;font-size:12px;line-height:1.2}
body.dashboard:not(.flood-reports-page):not(.alerts-page) .nav a svg{width:15px;height:15px}
body.dashboard:not(.flood-reports-page):not(.alerts-page) .content{padding:24px}
body.dashboard:not(.flood-reports-page):not(.alerts-page) .topbar{min-height:58px;margin-bottom:18px}

/* The content can adapt at 800px, but the navigation only collapses at the
   same 700px breakpoint across every dashboard page. */
@media (min-width:701px) and (max-width:800px){
  .flood-reports-page .app,.alerts-page .app{grid-template-columns:209px minmax(0,1fr)}
  .flood-reports-page .reports-sidebar,.alerts-page .alerts-sidebar{display:flex}
}
@media (max-width:700px){
  body.dashboard .app,body.dashboard:not(.flood-reports-page):not(.alerts-page) .app{grid-template-columns:1fr}
  body.dashboard .sidebar{display:none}
  body.dashboard:not(.flood-reports-page):not(.alerts-page) .content{padding:18px 16px 28px}
}

/* Flood Reports uses the same desktop scale and navy palette as the original
   dashboard, map, and evacuation pages.  Its compact mockup rules above are
   intentionally overridden here rather than changing the shared components. */
body.flood-reports-page{background:#061223;color:#d6eaf6;font-size:14px}
.flood-reports-page .app{grid-template-columns:209px minmax(0,1fr);background:#061223}
.flood-reports-page .reports-sidebar{background:linear-gradient(180deg,#062033,#041322);border-color:rgba(255,255,255,.05)}
.flood-reports-page .reports-brand{height:104px;padding:0 18px;border-color:rgba(255,255,255,.06)}
.reports-brand strong{font-size:20px}.reports-brand span{font-size:12px;margin-top:6px}
.reports-brand-mark{width:30px;height:36px}
.flood-reports-page .reports-sidebar .nav{padding:16px 10px}
.flood-reports-page .reports-sidebar .nav-section{padding:13px 8px 7px;font-size:10px}
.flood-reports-page .reports-sidebar .nav a{height:38px;padding:0 9px;font-size:14px;gap:10px;border-radius:8px;color:#b7d0df}
.flood-reports-page .reports-sidebar .nav a svg{width:17px;height:17px}
.flood-reports-page .reports-sidebar .nav a.active{background:rgba(255,255,255,.045);color:#fff}
.reports-profile{height:92px;padding:14px 12px;background:rgba(255,255,255,.02);border-color:rgba(255,255,255,.05)}
.reports-profile>span{width:44px;height:44px;font-size:16px;background:linear-gradient(90deg,var(--blue-1),var(--blue-2));color:#fff}
.reports-profile strong{font-size:13px;letter-spacing:.04em}.reports-profile small{font-size:11px}
.flood-reports-page .reports-content{background:#061223}
.flood-reports-page .reports-topbar{height:104px;padding:0 26px;border:0}
.reports-topbar h1{font-size:20px}.reports-topbar p{font-size:14px;margin-top:4px}
.reports-global-search{width:min(480px,32vw);height:46px;padding:0 14px;border-radius:12px;background:rgba(255,255,255,.03)}
.reports-global-search svg{width:16px;height:16px}.reports-global-search input{font-size:14px}
.reports-weather{font-size:14px}.reports-weather b{font-size:14px}.reports-weather svg{width:20px}
.reports-bell{width:40px;height:40px;border-radius:8px;background:#0b2a44}.reports-avatar{width:44px;height:44px;font-size:16px;background:linear-gradient(90deg,var(--blue-1),var(--blue-2));color:#fff}
.reports-body{padding:14px 26px 28px}.reports-stats{gap:18px}.reports-stats article{height:146px;padding:20px 18px;border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01));box-shadow:none}.reports-stats span{font-size:13px;text-transform:none}.reports-stats article:first-child span{color:#9fb0bf;text-decoration:none}.reports-stats strong{margin-top:18px;font-size:34px;line-height:1}
.reports-controls{margin:24px 4px 20px}.reports-filters{gap:12px}.reports-filters button{height:40px;padding:0 17px;border-radius:999px;font-size:13px}.reports-table-search{width:300px;height:42px;border-radius:10px;background:rgba(255,255,255,.03)}.reports-table-search input{font-size:13px}
.reports-table-card{min-height:400px;border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01));box-shadow:0 6px 20px rgba(2,6,23,.6)}.reports-table-card h2{height:58px;padding:20px 18px 0;font-size:15px;letter-spacing:0;text-transform:none}.reports-table-card th{height:44px;padding:0 18px;font-size:12px}.reports-table-card td{height:58px;padding:0 18px;font-size:13px}.report-status{padding:5px 8px;border-radius:5px;font-size:10px}
@media (max-width:800px){.reports-global-search{width:260px}.reports-stats article{height:120px}}
@media (max-width:700px){.flood-reports-page .app{grid-template-columns:1fr}.flood-reports-page .reports-sidebar{display:none}.flood-reports-page .reports-topbar{height:auto;min-height:78px;padding:16px}.reports-body{padding:16px}.reports-global-search{display:none}.reports-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-stats article{height:110px}.reports-controls{margin:16px 0;align-items:flex-start;flex-direction:column}.reports-table-search{width:100%}}

/* Make the Flood Reports chrome use the exact shared dashboard treatment. */
.flood-reports-page .reports-sidebar{background:linear-gradient(180deg,#062033,#041322);color:#a9c4d6;border-right:0}
.flood-reports-page .reports-sidebar{justify-content:flex-start}
.flood-reports-page .reports-brand{height:94px;padding:0 10px;border:0;gap:0;align-items:center}
.flood-reports-page .reports-brand-mark{display:none}
.flood-reports-page .reports-brand strong{font-family:"Space Mono",monospace;font-size:20px;font-weight:700;letter-spacing:1px;color:#fff}
.flood-reports-page .reports-brand span{font-size:12px;color:#7da1b9;margin-top:8px}
.flood-reports-page .reports-sidebar .nav{margin-top:8px;padding:0}
.flood-reports-page .reports-sidebar .nav-section{font-size:11px;color:#5f80a0;letter-spacing:1.5px;padding:10px 12px 5px;margin:8px 0 0}
.flood-reports-page .reports-sidebar .nav a{height:40px;padding:10px;border-radius:10px;gap:10px;color:#b7d0df;font-size:14px;font-weight:600}
.flood-reports-page .reports-sidebar .nav a svg{width:18px;height:18px}
.flood-reports-page .reports-sidebar .nav a.active{background:linear-gradient(90deg,rgba(255,255,255,.03),rgba(255,255,255,.01));color:#fff}
.flood-reports-page .reports-profile{height:auto;min-height:74px;margin:auto 10px 10px;padding:10px;border:0;border-radius:12px;background:rgba(255,255,255,.02)}
.flood-reports-page .reports-profile strong{font-size:14px;letter-spacing:0;color:#eaf6ff}.flood-reports-page .reports-profile small{font-size:12px;color:#7da1b9}
.flood-reports-page .reports-content,.flood-reports-page{background:#061223;color:#d6eaf6}
.flood-reports-page .reports-stats article,.flood-reports-page .reports-table-card{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01));border-radius:12px;box-shadow:0 6px 20px rgba(2,6,23,.6)}
.flood-reports-page .reports-stats article{padding:18px}.flood-reports-page .reports-stats span{color:#9fb0bf;font-size:13px}.flood-reports-page .reports-stats strong{font-size:36px;color:#fff}
.flood-reports-page .reports-filters button{font-size:14px}.flood-reports-page .reports-table-card h2{font-size:16px;color:#e3f7ff}.flood-reports-page .reports-table-card th{font-size:13px;color:#9fb0bf}.flood-reports-page .reports-table-card td{height:64px;font-size:15px;color:#d6e6f2}.flood-reports-page .reports-table-card td:first-child{color:#e3f7ff}

/* Prevent the wide report table from expanding the page grid.  It stays inside
   its card and scrolls locally, so changing pages cannot change page width. */
.flood-reports-page .reports-content,.flood-reports-page .reports-body,.flood-reports-page .reports-table-card,.flood-reports-page .reports-table-wrap{min-width:0;max-width:100%}
.flood-reports-page .reports-content{overflow-x:hidden}
.flood-reports-page .reports-table-card{width:100%}
@media (max-width:920px){
  .flood-reports-page .reports-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .flood-reports-page .reports-stats article{height:128px}
  .flood-reports-page .reports-global-search{width:260px}
}

/* Sortable column headers and ascending/descending menus */
.reports-table-card th.sortable{padding:0 10px;user-select:none;white-space:nowrap}
.reports-table-card th.sortable:hover{color:#e3f7ff}
.reports-table-card .sort-control{position:relative;display:inline-block}
.reports-table-card th .sort-button{display:inline-flex;align-items:center;gap:7px;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;text-transform:uppercase;cursor:pointer}
.reports-table-card th .sort-arrow{display:inline-block;color:#79b7ff;font-family:Arial,sans-serif;font-size:15px;font-weight:800;line-height:1;opacity:.95;transition:transform .15s ease}
.reports-table-card th.sortable:hover .sort-arrow{opacity:1}
.reports-table-card th.sortable.asc .sort-arrow{opacity:1;transform:rotate(180deg)}
.reports-table-card th.sortable.desc .sort-arrow{opacity:1;transform:none}
.reports-table-card th.sortable.asc,.reports-table-card th.sortable.desc{color:#7db6ff}
.reports-table-card .sort-menu{position:absolute;z-index:20;top:calc(100% + 8px);left:0;display:none;min-width:142px;padding:5px;border:1px solid rgba(125,183,255,.35);border-radius:7px;background:#102542;box-shadow:0 10px 24px rgba(0,0,0,.35);text-transform:none}
.reports-table-card .sort-menu.open{display:block}
.reports-table-card .sort-menu button{display:block;width:100%;padding:8px 10px;border:0;border-radius:4px;background:transparent;color:#d9e7f5;font:600 11px Inter;text-align:left;white-space:nowrap;cursor:pointer}
.reports-table-card .sort-menu button:hover{background:#1d65ae;color:#fff}
.reports-stat-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.reports-stat-head span{margin:0}
.report-period-select{width:142px;height:36px;padding:0 34px 0 12px;border:1px solid #5f7697;border-radius:7px;background-color:#13243e;color:#d9e7f5;font:600 12px Inter;outline:none;cursor:pointer;appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,#79b7ff 50%),linear-gradient(135deg,#79b7ff 50%,transparent 50%);background-position:calc(100% - 17px) 15px,calc(100% - 11px) 15px;background-size:6px 6px,6px 6px;background-repeat:no-repeat}
.report-period-select:focus{border-color:#3284f4;box-shadow:0 0 0 2px rgba(50,132,244,.2)}

/* Keep the Flood Reports navigation locked to the same viewport position as
   the other dashboard sidebars, regardless of the report table's height. */
@media (min-width:701px){
  .flood-reports-page .reports-sidebar{
    position:sticky;
    top:0;
    align-self:start;
    height:100vh;
    height:100dvh;
    min-height:0;
    overflow-y:auto;
  }
}

/* Flood Reports now uses the same sidebar markup as every original dashboard
   page. These are the shared shell dimensions, scoped here for equal priority. */
.flood-reports-page .sidebar{padding:16px 10px;background:linear-gradient(180deg,#062033,#041322);color:#a9c4d6}
.flood-reports-page .sidebar .nav{margin-top:18px;gap:2px}
.flood-reports-page .sidebar .nav-section{padding:10px 7px 6px;margin:0;font-size:9px;letter-spacing:.06em}
.flood-reports-page .sidebar .nav a{height:30px;padding:0 7px;gap:9px;border-radius:7px;font-size:12px;line-height:1.2}
.flood-reports-page .sidebar .nav a svg{width:15px;height:15px}

/* Alerts uses the same shell scale as Flood Reports once its shared sidebar is
   in place: matching header controls, panel spacing, colors, and type size. */
.alerts-page .alerts-topbar{height:104px;padding:0 26px;border:0}
.alerts-page .alerts-topbar h1{font-size:20px}.alerts-page .alerts-topbar p{margin-top:4px;font-size:14px}
.alerts-page .alerts-global-search{width:min(480px,32vw);height:46px;border-radius:12px;background:rgba(255,255,255,.03)}.alerts-page .alerts-global-search input{font-size:14px}
.alerts-page .alerts-weather{font-size:14px}.alerts-page .alerts-weather b{font-size:14px}.alerts-page .alerts-bell{width:40px;height:40px;border-radius:8px;background:#0b2a44}.alerts-page .alerts-avatar{width:44px;height:44px;font-size:16px;background:linear-gradient(90deg,var(--blue-1),var(--blue-2));color:#fff}
.alerts-page .alerts-workspace{padding:14px 26px 28px;gap:18px}.alerts-page .alerts-compose,.alerts-page .alerts-history,.alerts-page .alerts-calendar-card{border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01));box-shadow:0 6px 20px rgba(2,6,23,.6)}
@media (min-width:801px){.alerts-page .alerts-compose,.alerts-page .alerts-calendar-card{min-height:525px}.alerts-page .alerts-history{min-height:525px}}
.alerts-calendar-card .fc{font-family:Inter,Arial,sans-serif;font-size:12px}.alerts-calendar-card .fc-theme-standard td,.alerts-calendar-card .fc-theme-standard th{border-color:rgba(185,205,230,.14)}.alerts-calendar-card .fc-col-header-cell-cushion,.alerts-calendar-card .fc-daygrid-day-number{color:#aebed2}.alerts-calendar-card .fc-toolbar-title{color:#f0f3f9;font-size:18px}.alerts-calendar-card .fc-button{border:0;background:#215aab;font-size:11px}.alerts-calendar-card .fc-button:hover,.alerts-calendar-card .fc-button:focus{background:#2f80ed}.alerts-calendar-card .fc-day-today{background:rgba(47,128,237,.12)!important}.alerts-calendar-card .fc-event{border:0;border-radius:4px;padding:2px 4px;cursor:grab}.alerts-calendar-card .fc-event:active{cursor:grabbing}.alerts-calendar-card .severity-high{background:#8f3d45}.alerts-calendar-card .severity-medium-high{background:#94692b}.alerts-calendar-card .severity-medium{background:#80740c}.alerts-calendar-card .severity-medium-low{background:#356b8f}.alerts-calendar-card .severity-low{background:#286c8a}.alerts-calendar-card .severity-resolved{background:#596270}.calendar-alert-highlight{outline:2px solid #57a5ff;outline-offset:3px;background:rgba(47,128,237,.18)!important}
.alerts-page .alerts-compose h2,.alerts-page .alerts-history h2{font-size:16px}.alerts-page .alerts-compose>h2,.alerts-page .alerts-history>header{height:58px;padding:20px 18px 0}.alerts-page .alerts-form{padding:18px}.alerts-page .alerts-form legend,.alerts-page .alerts-form label{font-size:13px}.alerts-page .severity-options button{height:36px;font-size:12px}.alerts-page .alerts-form input,.alerts-page .alerts-form select{height:40px;font-size:14px}.alerts-page .alerts-form textarea{height:74px;font-size:14px}.alerts-page .send-alert{height:42px;font-size:14px;border-radius:10px}.alerts-page .alert-history-filters button{height:28px;font-size:10px}.alerts-page .alert-history-list article{height:92px;padding:17px 18px}.alerts-page .alert-history-list h3{font-size:13px}.alerts-page .alert-history-list p,.alerts-page .alert-history-list time{font-size:11px}.alerts-page .alert-level{font-size:9px}
@media (max-width:800px){.alerts-page .alerts-workspace{padding:16px}.alerts-page .alerts-global-search{width:260px}}@media (max-width:700px){.alerts-page .alerts-topbar{height:auto;min-height:78px;padding:16px}.alerts-page .alerts-global-search{display:none}.alerts-page .alerts-workspace{padding:16px}}





/* ==========================================================================
   Action Plans Page Styling
   ========================================================================== */
body.action-plans-page {
  background: #061223;
  color: #d6eaf6;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.action-plans-page .app {
  display: grid;
  grid-template-columns: 209px minmax(0, 1fr);
  min-height: 100vh;
  background: #061223;
}

.action-plans-content {
  padding: 24px 32px 40px;
  min-width: 0;
  background: radial-gradient(circle at 100% 0, #092c60 0, transparent 36%), #061223;
}

/* Action plans stats summary */
.action-plans-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.action-stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.action-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-stat-title {
  font-size: 13px;
  color: #9fb0bf;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.action-stat-badge {
  font-size: 12px;
  font-weight: 800;
}

.action-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 4px;
  line-height: 1;
}

.action-stat-label {
  font-size: 12px;
  color: #7da1b9;
}

.action-stat-label.good {
  color: #72dda7;
}

.action-stat-label.warn {
  color: #f0d06b;
}

.action-stat-label.alert {
  color: #ff8d89;
}

/* Action Plans Toolbar & Filters */
.action-plans-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.action-plans-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.action-filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: #dcecf7;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.18s ease;
}

.action-filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.action-filter-btn.active {
  background: linear-gradient(90deg, #1E5BFF, #2e82ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 91, 255, 0.35);
}

.action-plans-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #1E5BFF, #2e82ff);
  color: #fff;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(30, 91, 255, 0.28);
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.action-create-btn:hover {
  background: linear-gradient(90deg, #2b67ff, #4392ff);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(30, 91, 255, 0.36);
}

.action-create-btn svg {
  width: 16px;
  height: 16px;
}

/* Action Plans Grid */
.action-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.action-plan-card {
  background: linear-gradient(145deg, #0d1e38 0%, #09172c 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.action-plan-card:hover {
  border-color: rgba(66, 153, 225, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.55);
}

.action-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}

.action-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}

.action-card-subtitle {
  font-size: 13px;
  color: #8da4b6;
  margin-top: 4px;
  margin-bottom: 18px;
  line-height: 1.45;
}

/* Badges */
.action-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.action-badge.in-progress {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.action-badge.ready {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.action-badge.review {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.action-badge.completed {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Card Details & Metadata */
.action-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.action-metric-item {
  display: flex;
  flex-direction: column;
}

.action-metric-kicker {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7fa1b9;
  margin-bottom: 4px;
}

.action-metric-val {
  font-size: 13px;
  font-weight: 600;
  color: #e2eef8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Checklist Section */
.action-checklist-wrap {
  margin-bottom: 18px;
  flex: 1;
}

.action-checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.action-checklist-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ab3c6;
}

.action-checklist-count {
  font-size: 12px;
  font-weight: 700;
  color: #72dda7;
}

.action-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #c5d7e8;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease;
}

.action-checklist-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.action-checklist-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.action-checklist-item.done {
  color: #738b9e;
  text-decoration: line-through;
}

/* Progress bar */
.action-progress-box {
  margin-bottom: 18px;
}

.action-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #8da4b7;
  margin-bottom: 6px;
}

.action-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.action-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1E5BFF, #2e82ff);
  transition: width 0.3s ease;
}

.action-progress-fill.full {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.action-progress-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* Card Bottom Actions */
.action-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.action-card-btn {
  flex: 1 1 calc(50% - 4px);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
  transition: all 0.16s ease;
  border: none;
}

.action-card-btn.primary {
  background: linear-gradient(90deg, #1E5BFF, #2e82ff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 91, 255, 0.25);
}

.action-card-btn.primary:hover {
  background: linear-gradient(90deg, #2b67ff, #4392ff);
  transform: translateY(-1px);
}

.action-card-btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #e2effa;
}

.action-card-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.action-card-btn.danger {
  flex: 1 1 100%;
  border: 1px solid rgba(223, 78, 78, 0.35);
  background: rgba(223, 78, 78, 0.12);
  color: #ff8585;
}

.action-card-btn.danger:hover {
  background: #df4e4e;
  border-color: #df4e4e;
  color: #fff;
}

.action-modal-btn.danger {
  border: 1px solid rgba(223, 78, 78, 0.4);
  background: rgba(223, 78, 78, 0.16);
  color: #ff8585;
}

.action-modal-btn.danger:hover {
  background: #df4e4e;
  border-color: #df4e4e;
  color: #fff;
}

/* Modal for New Action Plan */
.action-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 18, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.action-modal-backdrop.open {
  display: flex;
}

.action-modal-card {
  background: linear-gradient(150deg, #0d1e38 0%, #071529 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.action-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.action-modal-close {
  background: transparent;
  border: none;
  color: #8fa5b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.action-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.action-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

.action-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-modal-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9eb5c8;
}

.action-modal-input,
.action-modal-select,
.action-modal-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  color: #e6f2fc;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.action-modal-input:focus,
.action-modal-select:focus,
.action-modal-textarea:focus {
  border-color: #2563eb;
  background: rgba(255, 255, 255, 0.06);
}

.action-modal-select {
  appearance: auto;
  color: #e6f2fc;
}

.action-modal-select option {
  background: #09172c;
  color: #e6f2fc;
}

.action-modal-textarea {
  min-height: 80px;
  resize: vertical;
}

.action-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.action-modal-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.action-modal-btn.cancel {
  background: transparent;
  color: #9bb1c4;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.action-modal-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.action-modal-btn.submit {
  background: linear-gradient(90deg, #1E5BFF, #2e82ff);
  color: #fff;
}

.action-modal-btn.submit:hover {
  background: linear-gradient(90deg, #2b67ff, #4392ff);
}

/* Responsive Rules for Action Plans Page */
@media (max-width: 1100px) {
  .action-plans-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .action-plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .action-plans-content {
    padding: 20px 16px 32px;
  }
  .action-plans-stats {
    grid-template-columns: 1fr;
  }
  .action-plans-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .action-plans-filter-group {
    width: 100%;
  }
  .action-filter-btn {
    flex: 1;
    text-align: center;
  }
  .action-create-btn {
    width: 100%;
  }
}


/* ==========================================================================
   Flood Reports Interactive Management Styles
   ========================================================================== */

.report-status-dropdown {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 26px 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.18s ease;
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.report-status-dropdown.new,
.report-status.new {
  background-color: #7a3439;
  color: #ff8e93;
  border-color: rgba(255, 142, 147, 0.3);
}

.report-status-dropdown.review,
.report-status.review {
  background-color: #796b00;
  color: #fff251;
  border-color: rgba(255, 242, 81, 0.3);
}

.report-status-dropdown.resolved,
.report-status.resolved {
  background-color: #17664d;
  color: #58dcaa;
  border-color: rgba(88, 220, 170, 0.3);
}

.report-status-dropdown option {
  background: #09172c;
  color: #edf3ff;
  font-weight: 600;
}

.reports-filters button {
  cursor: pointer;
  transition: all 0.18s ease;
}

.reports-filters button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.reports-filters button.active {
  background: #287ee9 !important;
  border-color: #3284f4 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(40, 126, 233, 0.35);
}

.report-action-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #b7cde3;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.report-action-btn:hover {
  background: #287ee9;
  border-color: #287ee9;
  color: #fff;
}

.flood-report-empty-row {
  text-align: center;
  padding: 36px 18px !important;
  color: #8da2b6;
  font-size: 13px;
  font-style: italic;
}

/* Modal for Report Status Management */
.report-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 18, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.report-modal-backdrop.open {
  display: flex;
}

.report-modal-card {
  background: linear-gradient(150deg, #0d1e38 0%, #071529 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

.report-modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.report-modal-close {
  background: transparent;
  border: none;
  color: #8fa5b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.report-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.report-modal-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.report-modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
}

.report-modal-info-item {
  display: flex;
  flex-direction: column;
}

.report-modal-info-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #7fa1b9;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.report-modal-info-val {
  font-size: 13px;
  font-weight: 600;
  color: #e2eef8;
}

.report-modal-desc-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
}

.report-modal-footer {
  padding: 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
}


/* ==========================================================================
   Alerts Page Interactive Severity & Broadcast Styles
   ========================================================================== */

.severity-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.severity-btn {
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #c4d7e8;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4px;
}

.severity-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

/* Specific Severity Level Color Styling When Active */
.severity-btn.low.active {
  background: linear-gradient(135deg, #1b6644, #27855b);
  border-color: #4ade80;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(74, 222, 128, 0.25);
}

.severity-btn.medium-low.active {
  background: linear-gradient(135deg, #5b7a1e, #7a9e2d);
  border-color: #a3e635;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(163, 230, 53, 0.25);
}

.severity-btn.medium.active {
  background: linear-gradient(135deg, #856a12, #aa891a);
  border-color: #facc15;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.25);
}

.severity-btn.medium-high.active {
  background: linear-gradient(135deg, #9a4e12, #c2651b);
  border-color: #fb923c;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.25);
}

.severity-btn.high.active {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  border-color: #f87171;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(248, 113, 113, 0.35);
}

/* Alert History Badges */
.alert-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alert-level.low {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.alert-level.medium-low {
  background: rgba(163, 230, 53, 0.2);
  color: #bef264;
  border: 1px solid rgba(163, 230, 53, 0.3);
}

.alert-level.medium {
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.alert-level.medium-high {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.alert-level.high {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.alert-level.resolved {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.alert-history-item-card {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(185, 205, 230, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.alert-history-item-card:hover {
  background: rgba(255, 255, 255, 0.025);
}

.alert-history-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-history-time {
  font-size: 11px;
  color: #8fa5b8;
}

.alert-history-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f0f4f9;
  line-height: 1.35;
}

.alert-history-desc {
  margin: 0;
  font-size: 12.5px;
  color: #9cb1c5;
  line-height: 1.4;
}

.alert-history-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.alert-history-meta {
  font-size: 11px;
  color: #7d96ab;
}

.alert-resolve-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #9db5ca;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.alert-resolve-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.alert-success-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #1e5bff, #0b3bd6);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  animation: modalFadeIn 0.25s ease-out;
}

/* Evacuation center add modal */
.evacuation-modal-backdrop{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(2,8,18,.78);backdrop-filter:blur(6px)}
.evacuation-modal-backdrop.open{display:flex}
.evacuation-modal-card{width:100%;max-width:520px;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:linear-gradient(150deg,#0d1e38 0%,#071529 100%);box-shadow:0 24px 60px rgba(0,0,0,.6);animation:modalFadeIn .2s ease-out}
.evacuation-modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid rgba(255,255,255,.08)}
.evacuation-modal-header h2{margin:0;color:#fff;font-size:17px;font-weight:800}
.evacuation-modal-close{padding:4px 8px;border:0;border-radius:6px;background:transparent;color:#8fa5b8;font-size:20px;cursor:pointer}
.evacuation-modal-close:hover{background:rgba(255,255,255,.08);color:#fff}
.evacuation-modal-body{display:flex;flex-direction:column;gap:16px;padding:24px}
.evacuation-modal-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.evacuation-modal-field{display:flex;flex-direction:column;gap:6px;color:#9eb5c8;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.evacuation-modal-field input,.evacuation-modal-field select{width:100%;padding:10px 14px;border:1px solid rgba(255,255,255,.1);border-radius:8px;outline:0;background:rgba(255,255,255,.04);color:#e6f2fc;font:13px Inter,system-ui,sans-serif;letter-spacing:normal;text-transform:none}
.evacuation-modal-field input:focus,.evacuation-modal-field select:focus{border-color:#2563eb;background:rgba(255,255,255,.06)}
.evacuation-modal-field select option{background:#09172c;color:#e6f2fc}
.evacuation-modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.15)}
.evacuation-modal-button{padding:10px 18px;border-radius:8px;font-size:12px;font-weight:700;cursor:pointer}
.evacuation-modal-button.secondary{border:1px solid rgba(255,255,255,.12);background:transparent;color:#9bb1c4}
.evacuation-modal-button.primary{border:0;background:linear-gradient(90deg,#1e5bff,#2e82ff);color:#fff}
@media (max-width:540px){.evacuation-modal-row{grid-template-columns:1fr}.evacuation-modal-body{padding:18px}.evacuation-modal-header{padding:18px}.evacuation-modal-footer{padding:14px 18px}}

.evacuation-modal-field textarea{width:100%;padding:10px 14px;border:1px solid rgba(255,255,255,.1);border-radius:8px;outline:0;background:rgba(255,255,255,.04);color:#e6f2fc;font:13px Inter,system-ui,sans-serif;letter-spacing:normal;text-transform:none;resize:vertical;min-height:78px}
.evacuation-modal-field textarea:focus{border-color:#2563eb;background:rgba(255,255,255,.06)}


/* Admin user management */
.admin-page .content{background:radial-gradient(circle at 92% 0,rgba(34,99,205,.14),transparent 30%)}
.admin-page .admin-stats{margin-bottom:22px}
.admin-stat-label{color:#9fb0bf;font-size:13px;font-weight:600}
.admin-notice{margin:0 0 18px;padding:12px 16px;border-radius:10px;font-size:13px;font-weight:700}
.admin-notice.success{background:rgba(76,194,125,.12);border:1px solid rgba(76,194,125,.28);color:#9aefb5}
.admin-notice.error{background:rgba(227,100,100,.12);border:1px solid rgba(227,100,100,.28);color:#ffabab}
.admin-users-card{padding:20px 22px;overflow:hidden}
.admin-muted{margin-top:5px;color:#8fa7b9;font-size:12px;font-weight:400}
.admin-count-badge{padding:7px 10px;border-radius:999px;background:rgba(52,132,244,.14);color:#71b1ff;font-size:11px;font-weight:800}
.admin-table-wrap{overflow-x:auto;margin:16px -22px -20px}
.admin-table{width:100%;min-width:850px;border-collapse:collapse}
.admin-table th,.admin-table td{padding:15px 22px;border-top:1px solid rgba(255,255,255,.055);text-align:left;font-size:13px;vertical-align:middle}
.admin-table th{color:#849caf;font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:700}
.admin-table td{color:#bfd0de}
.admin-user-cell{display:flex;align-items:center;gap:11px;min-width:210px}
.admin-user-cell strong{display:block;color:#edf6ff;font-size:13px}
.admin-user-cell small{display:block;margin-top:4px;color:#8197aa;font-size:11px}
.admin-user-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#236ed1,#17408d);color:#e1efff;font-size:11px;font-weight:800;flex:none}
.admin-role-form select{min-width:145px;padding:8px 30px 8px 10px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:#10223a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%239db6c8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;color:#dcecf8;font:12px Inter,system-ui,sans-serif;outline:none;appearance:none}
.admin-role-form select:focus{border-color:#428cff;box-shadow:0 0 0 3px rgba(66,140,255,.13)}
.admin-role-form select:disabled{opacity:.75;cursor:not-allowed}
.admin-status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800}
.admin-status.active{background:rgba(67,195,119,.14);color:#86e6a5}.admin-status.suspended{background:rgba(227,100,100,.14);color:#ff9e9e}
.admin-action{padding:7px 10px;border:1px solid rgba(255,255,255,.14);border-radius:7px;background:transparent;color:#a8c8e3;font:600 11px Inter,system-ui,sans-serif;cursor:pointer}.admin-action:hover{border-color:#5299ff;color:#fff;background:rgba(50,125,235,.12)}
.admin-you{color:#718ba0;font-size:11px;font-weight:700}
.admin-empty{padding:32px;text-align:center;color:#91a7b9;font-size:13px}
@media (max-width:700px){.admin-page .content{padding:20px 16px}.admin-users-card{padding:16px}.admin-table-wrap{margin-left:-16px;margin-right:-16px}.admin-table th,.admin-table td{padding-left:16px;padding-right:16px}}

.admin-role-form{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.admin-role-save{padding:8px 10px;border:0;border-radius:7px;background:linear-gradient(90deg,#1e5bff,#2e82ff);color:#fff;font:700 11px Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 6px 14px rgba(30,91,255,.18)}
.admin-role-save[hidden]{display:none}
.admin-role-save:hover{background:linear-gradient(90deg,#2e82ff,#4d96ff);transform:translateY(-1px)}

/* Keep Alerts on the same shell scale as the other dashboard pages. */
.alerts-page .app{grid-template-columns:209px minmax(0,1fr);gap:0}
.alerts-page .sidebar{padding:16px 10px;background:linear-gradient(180deg,#062033,#041322);color:#a9c4d6}
.alerts-page .sidebar .nav{margin-top:18px;gap:2px}
.alerts-page .sidebar .nav-section{padding:10px 7px 6px;margin:0;font-size:9px;letter-spacing:.06em}
.alerts-page .sidebar .nav a{height:30px;padding:0 7px;gap:9px;border-radius:7px;font-size:12px;line-height:1.2}
.alerts-page .sidebar .nav a svg{width:15px;height:15px}
.alerts-page .alerts-content{padding:24px;background:#061223}
.alerts-page .alerts-topbar{height:auto;min-height:58px;margin:0 0 18px;padding:0;border:0}
.alerts-page .alerts-global-search{height:38px;padding:0 12px;border-radius:10px}
.alerts-page .alerts-bell{width:36px;height:36px;border-radius:8px}
.alerts-page .alerts-workspace{padding:0;gap:16px}
.alerts-page .alerts-compose,.alerts-page .alerts-history,.alerts-page .alerts-calendar-card{border-radius:10px}
.alerts-page .alerts-form{padding:16px}
.alerts-page .alerts-form legend,.alerts-page .alerts-form label{font-size:12px}
.alerts-page .severity-options button{height:32px;font-size:11px}
.alerts-page .alerts-form input,.alerts-page .alerts-form select{height:36px;font-size:13px}
.alerts-page .alerts-form textarea{height:70px;font-size:13px}
@media (max-width:700px){
  .alerts-page .alerts-content{padding:18px 16px 28px}
  .alerts-page .alerts-topbar{min-height:58px;margin-bottom:18px;padding:0}
  .alerts-page .alerts-workspace{grid-template-columns:1fr}
}

/* Shared sidebar feedback for the current page and interactive links. */
body.dashboard .sidebar .nav a{transition:background-color 140ms ease,color 140ms ease,box-shadow 140ms ease}
body.dashboard .sidebar .nav a:hover{background:rgba(47,128,237,.1);color:#f3f8ff}
body.dashboard .sidebar .nav a:focus-visible{outline:2px solid #6baeff;outline-offset:2px}
body.dashboard .sidebar .nav a.active,
body.dashboard .sidebar .nav a[aria-current="page"]{background:rgba(47,128,237,.2);color:#eaf5ff;box-shadow:inset 3px 0 0 #2f80ed}
body.dashboard .sidebar .nav a.active svg,
body.dashboard .sidebar .nav a[aria-current="page"] svg{color:#79b7ff}

.header-user{display:flex;align-items:center;gap:10px;min-width:0}
.header-user-copy{display:flex;flex-direction:column;align-items:flex-end;min-width:0;max-width:170px;line-height:1.25}
.header-user-copy strong{max-width:100%;overflow:hidden;color:#eef6ff;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.header-user-copy span{max-width:100%;overflow:hidden;color:#8fa9bd;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.header-user-avatar{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:linear-gradient(90deg,var(--blue-1),var(--blue-2));color:#fff;font-size:13px;font-weight:700}
@media (max-width:760px){.header-user-copy{display:none}}

.notification-menu{position:relative;display:inline-flex;align-items:center;flex:none}
.notification-bell,.alerts-bell,.reports-bell,.action-plans-bell{position:relative;width:36px;height:36px;border:0;border-radius:8px;background:#0b2a44;color:#a9d8ff;display:grid;place-items:center;cursor:pointer}
.notification-bell svg,.alerts-bell svg,.reports-bell svg,.action-plans-bell svg{width:18px;height:18px}
.notification-count{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 4px;border:2px solid #061223;border-radius:50%;background:#bd514e;color:#fff;font:700 9px Inter,Arial,sans-serif;display:grid;place-items:center}
.notification-count[hidden],.notification-panel[hidden]{display:none}
button.alerts-bell i[hidden],button.reports-bell i[hidden],button.action-plans-bell i[hidden]{display:none!important}
.notification-panel{position:absolute;z-index:1500;top:calc(100% + 10px);right:0;width:min(340px,calc(100vw - 32px));overflow:hidden;border:1px solid rgba(166,191,224,.18);border-radius:10px;background:#0b1929;box-shadow:0 18px 48px rgba(0,0,0,.42);color:#eaf3fa}
.notification-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid rgba(185,205,230,.12)}
.notification-panel-header>div{display:flex;flex-direction:column;gap:3px}
.notification-panel-header strong{font-size:13px}
.notification-panel-header span{color:#91a6ba;font-size:10px}
.notification-panel-header button{flex:none;border:0;background:transparent;color:#79b7ff;font:600 10px Inter,Arial,sans-serif;cursor:pointer}
.notification-list{display:flex;flex-direction:column}
.notification-item{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;padding:13px 15px;border-bottom:1px solid rgba(185,205,230,.08)}
.notification-item:last-child{border-bottom:0}
.notification-item.is-read{opacity:.58}
.notification-item>div{min-width:0}
.notification-item strong{font-size:12px}
.notification-item p{margin:4px 0;color:#b0c1cf;font-size:11px;line-height:1.4}
.notification-item time{color:#8096aa;font-size:10px}
.notification-severity{margin-top:1px;padding:3px 5px;border-radius:4px;font-size:9px;font-weight:800}
.notification-severity.high{background:rgba(227,100,100,.18);color:#ff9e9e}
.notification-severity.medium{background:rgba(240,190,80,.16);color:#f2d17a}
.notification-severity.low{background:rgba(80,180,120,.16);color:#7fe3a7}
.notification-empty{padding:24px 16px;text-align:center;color:#8fa5b8;font-size:11px}

.alerts-page .alerts-history>header{height:auto;min-height:58px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.alerts-page .alerts-history>header h2{flex:1 1 auto;min-width:140px}
.alerts-page .alert-history-filters{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.alerts-page .alert-history-filters button{flex:0 0 auto;white-space:nowrap}
.alerts-page .alert-history-list article{height:auto;min-height:0;padding:16px 18px;gap:9px}
.alerts-page .alert-history-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.alerts-page .alert-history-meta{flex:1 1 240px;min-width:0;line-height:1.4;overflow-wrap:anywhere}
.alerts-page .alert-resolve-btn{flex:0 0 auto;white-space:nowrap}
@media (max-width:620px){
  .alerts-page .alerts-history>header{align-items:flex-start}
  .alerts-page .alert-history-filters{width:100%;justify-content:flex-start}
  .alerts-page .alert-history-footer{flex-direction:column}
  .alerts-page .alert-history-meta{flex-basis:auto}
}

/* Keep the shared dashboard sidebar fixed to the viewport, not content height. */
@media (min-width:801px){
  body.dashboard .app{grid-template-columns:209px minmax(0,1fr);gap:0;align-items:start}
  body.dashboard .sidebar{position:sticky;top:0;align-self:start;display:flex;width:auto;height:100vh;min-height:100vh;max-height:100vh;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;justify-content:flex-start}
  body.dashboard .sidebar>div{width:100%;min-width:0}
  body.dashboard .sidebar .nav{margin-top:18px;gap:2px;padding:0 10px}
  body.dashboard .sidebar .nav-section{margin:0;padding:10px 7px 6px;font-size:9px;letter-spacing:.06em}
  body.dashboard .sidebar .nav a{height:30px;min-height:30px;padding:0 7px;gap:9px;font-size:12px;line-height:1.2}
  body.dashboard .sidebar .nav a svg{width:15px;height:15px;flex:0 0 15px}
}
@media (max-width:800px){
  body.dashboard .app{grid-template-columns:1fr}
  body.dashboard .sidebar{display:none}
}

/* Risk Area Management Table & Modal */
.risk-areas-admin-card {
  margin-top: 24px;
  background: linear-gradient(135deg, #151f31, #121d2e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.risk-areas-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.risk-areas-admin-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #f0f6fc;
  letter-spacing: 0.02em;
}
.risk-areas-admin-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #93a8ba;
}
.risk-area-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #1e5bff, #2e82ff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 91, 255, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.risk-area-add-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.risk-areas-table-wrap {
  overflow-x: auto;
}
.risk-areas-admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.risk-areas-admin-table th {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b9ea0;
}
.risk-areas-admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: #d6e2ed;
}
.risk-areas-admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.risk-level-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.risk-level-tag.high {
  background: rgba(223, 78, 78, 0.18);
  color: #ff8585;
  border: 1px solid rgba(223, 78, 78, 0.35);
}
.risk-level-tag.medium {
  background: rgba(228, 196, 65, 0.18);
  color: #ffd859;
  border: 1px solid rgba(228, 196, 65, 0.35);
}
.risk-level-tag.low {
  background: rgba(34, 160, 107, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(34, 160, 107, 0.35);
}
.risk-row-actions {
  display: flex;
  gap: 8px;
}
.risk-action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.15s ease;
}
.risk-action-btn.edit {
  background: rgba(30, 91, 255, 0.15);
  border-color: rgba(46, 130, 255, 0.4);
  color: #7ab3ff;
}
.risk-action-btn.edit:hover {
  background: #1e5bff;
  color: #fff;
}
.risk-action-btn.delete {
  background: rgba(223, 78, 78, 0.15);
  border-color: rgba(223, 78, 78, 0.35);
  color: #ff8585;
}
.risk-action-btn.delete:hover {
  background: #df4e4e;
  color: #fff;
}

/* Assign Risk Area Form & Map Picker Styles */
.risk-map-page .map-action-add-btn,
button.map-action-add-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  margin: 0 !important;
  border: 1px solid rgba(88, 157, 255, 0.45) !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  background: linear-gradient(110deg, #1f65ff, #2e82ff) !important;
  color: #ffffff !important;
  font: 700 12px/1 Inter, system-ui, Arial, sans-serif !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(30, 91, 255, 0.4) !important;
  transition: all 160ms ease !important;
}
.risk-map-page .map-action-add-btn:hover,
button.map-action-add-btn:hover {
  background: linear-gradient(110deg, #1852db, #2675e8) !important;
  border-color: #8ac0ff !important;
  box-shadow: 0 6px 20px rgba(30, 91, 255, 0.55) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
}
.risk-map-page .map-action-add-btn:active,
button.map-action-add-btn:active {
  transform: scale(0.98) !important;
}
.risk-map-page .map-action-add-btn svg,
button.map-action-add-btn svg {
  flex-shrink: 0;
  stroke: #ffffff !important;
}
.map-picker-banner {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(10, 23, 41, 0.96);
  border: 1.5px solid #3e8ef7;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 18px rgba(62, 142, 247, 0.35);
  backdrop-filter: blur(14px);
  color: #f0f6fc;
  font-size: 13px;
  animation: bannerFadeDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.map-picker-banner[hidden] {
  display: none !important;
}
.map-picker-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.map-picker-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3e8ef7;
  box-shadow: 0 0 0 0 rgba(62, 142, 247, 0.7);
  animation: mapPulseRing 1.5s infinite;
}
.map-picker-cancel-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.map-picker-cancel-btn:hover {
  background: rgba(223, 78, 78, 0.4);
  border-color: #df4e4e;
}
@keyframes bannerFadeDown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes mapPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(62, 142, 247, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(62, 142, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 142, 247, 0); }
}
.risk-area-modal-card {
  max-width: 540px !important;
}
.modal-subtitle-text {
  margin: 4px 0 0;
  font-size: 12px;
  color: #93a8ba;
  font-weight: 400;
}
.risk-level-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.risk-level-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: center;
  user-select: none;
}
.risk-level-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.risk-level-choice:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.risk-level-choice .choice-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 6px;
  display: inline-block;
}
.risk-level-choice.high .choice-dot { background: #df4e4e; box-shadow: 0 0 8px rgba(223, 78, 78, 0.6); }
.risk-level-choice.medium .choice-dot { background: #e4c441; box-shadow: 0 0 8px rgba(228, 196, 65, 0.6); }
.risk-level-choice.low .choice-dot { background: #22a06b; box-shadow: 0 0 8px rgba(34, 160, 107, 0.6); }
.risk-level-choice .choice-label {
  font-size: 12px;
  font-weight: 700;
  color: #e6f2fc;
}
.risk-level-choice .choice-sub {
  font-size: 10px;
  color: #8fa6ba;
  margin-top: 2px;
}
.risk-level-choice.selected.high {
  border-color: #df4e4e;
  background: rgba(223, 78, 78, 0.16);
  box-shadow: 0 0 16px rgba(223, 78, 78, 0.28);
}
.risk-level-choice.selected.high .choice-label {
  color: #ff8585;
}
.risk-level-choice.selected.medium {
  border-color: #e4c441;
  background: rgba(228, 196, 65, 0.16);
  box-shadow: 0 0 16px rgba(228, 196, 65, 0.28);
}
.risk-level-choice.selected.medium .choice-label {
  color: #ffd859;
}
.risk-level-choice.selected.low {
  border-color: #22a06b;
  background: rgba(34, 160, 107, 0.16);
  box-shadow: 0 0 16px rgba(34, 160, 107, 0.28);
}
.risk-level-choice.selected.low .choice-label {
  color: #6ee7b7;
}
.map-pick-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(66, 153, 225, 0.4);
  background: rgba(30, 91, 255, 0.15);
  color: #82b6ff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.map-pick-inline-btn:hover {
  background: #1e5bff;
  color: #fff;
  border-color: #1e5bff;
}
.coord-hint-text {
  margin-top: 6px;
  font-size: 11px;
  color: #7fa4bf;
  line-height: 1.35;
}
.form-alert-message {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(223, 78, 78, 0.18);
  border: 1px solid rgba(223, 78, 78, 0.45);
  color: #ff9b9b;
  font-size: 12px;
  margin-bottom: 14px;
  line-height: 1.4;
}
.form-alert-message.visible {
  display: block;
}
.picker-pin-wrapper {
  background: transparent;
  border: none;
}
.picker-pin-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #ff334b, #e60026);
  color: #fff;
  transform: rotate(-45deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  border: 2px solid #fff;
  font-size: 13px;
  cursor: grab;
}
.picker-pin-inner span {
  transform: rotate(45deg);
  font-size: 12px;
}

/* Leaflet Map Risk Area Popup & Action Buttons */
.map-risk-popup {
  padding: 4px 2px;
  min-width: 175px;
  color: #1a202c;
  font-family: Inter, system-ui, Arial, sans-serif;
}
.map-risk-popup strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.25;
}
.map-risk-popup-level {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.map-risk-popup-level.high {
  background: rgba(223, 78, 78, 0.16);
  color: #c53030;
  border: 1px solid rgba(223, 78, 78, 0.35);
}
.map-risk-popup-level.medium {
  background: rgba(228, 196, 65, 0.22);
  color: #975a16;
  border: 1px solid rgba(228, 196, 65, 0.45);
}
.map-risk-popup-level.low {
  background: rgba(34, 160, 107, 0.16);
  color: #22543d;
  border: 1px solid rgba(34, 160, 107, 0.35);
}
.map-risk-popup-coords {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #64748b;
  margin-bottom: 8px;
}
.map-popup-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}
.map-popup-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.map-popup-btn svg {
  flex-shrink: 0;
}
.map-popup-btn.edit {
  background: #1e5bff;
  color: #ffffff;
  border-color: #1e5bff;
}
.map-popup-btn.edit:hover {
  background: #1345c7;
  color: #ffffff;
}
.map-popup-btn.delete {
  background: rgba(223, 78, 78, 0.12);
  color: #e53e3e;
  border-color: rgba(223, 78, 78, 0.35);
}
.map-popup-btn.delete:hover {
  background: #e53e3e;
  color: #ffffff;
}

/* Action Plan Status Update & Details Styling */
.status-option-choice {
  transition: all 0.15s ease;
  user-select: none;
}
.status-option-choice:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.status-option-choice input[type="radio"]:checked ~ div strong {
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Account Settings Page Styles
   ========================================================================== */
.settings-page .content {
  background: radial-gradient(circle at 92% 0, rgba(34, 99, 205, 0.14), transparent 30%);
}

.settings-hero-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(21, 31, 49, 0.95), rgba(15, 27, 45, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.settings-hero-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1e5bff, #2e82ff);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(30, 91, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.settings-hero-details {
  flex: 1;
  min-width: 0;
}

.settings-hero-name {
  font-size: 20px;
  font-weight: 800;
  color: #f5f8fc;
  line-height: 1.2;
}

.settings-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.settings-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(46, 130, 255, 0.18);
  color: #79b7ff;
  border: 1px solid rgba(46, 130, 255, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9cb1c3;
  font-size: 12px;
  font-weight: 500;
}

.settings-meta-item svg {
  color: #559cfd;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.settings-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.5);
}

.settings-card .card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.settings-card-muted {
  margin-top: 4px;
  font-size: 12px;
  color: #8da4b7;
  line-height: 1.45;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-field > span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9bb2c5;
}

.settings-field input,
.settings-field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e6f1fb;
  font: 14px Inter, system-ui, sans-serif;
  outline: none;
  transition: border-color 150ms ease, background-color 150ms ease;
  box-sizing: border-box;
}

.settings-field input:focus,
.settings-field select:focus {
  border-color: #2e82ff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(46, 130, 255, 0.16);
}

.settings-field select option {
  background: #0b1c34;
  color: #e6f1fb;
}

.settings-input-disabled {
  opacity: 0.65;
  background: rgba(0, 0, 0, 0.25) !important;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.settings-help {
  font-size: 11px;
  color: #728c9f;
  line-height: 1.35;
}

.settings-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.settings-password-wrap input {
  padding-right: 64px;
}

.settings-toggle-pwd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #79a1bf;
  font: 700 11px 'Space Mono', monospace;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 140ms ease;
}

.settings-toggle-pwd:hover {
  color: #ffffff;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 9px;
  border: 1px solid rgba(88, 157, 255, 0.35);
  background: linear-gradient(110deg, #1e5bff, #2e82ff);
  color: #ffffff;
  font: 700 12px Inter, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(30, 91, 255, 0.3);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.settings-btn-primary:hover {
  background: linear-gradient(110deg, #2a69ff, #4292ff);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 91, 255, 0.45);
}

.settings-btn-primary:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .settings-form-row {
    grid-template-columns: 1fr;
  }
  .settings-hero-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
}

/* --- Live Rainfall & Dynamic Flood Risk Dashboard Additions --- */
.dashboard-stats-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .dashboard-stats-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 920px) {
  .dashboard-stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .dashboard-stats-cards {
    grid-template-columns: 1fr;
  }
}

.rainfall-stat-card {
  position: relative;
  background: linear-gradient(180deg, rgba(38, 149, 255, 0.08), rgba(15, 29, 49, 0.6)) !important;
  border: 1px solid rgba(88, 166, 255, 0.22);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #36b37e;
  box-shadow: 0 0 0 0 rgba(54, 179, 126, 0.7);
  animation: liveDotPulse 1.8s infinite;
}

@keyframes liveDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(54, 179, 126, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(54, 179, 126, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(54, 179, 126, 0);
  }
}

.rainfall-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.rainfall-badge.low {
  background: rgba(34, 160, 107, 0.18);
  color: #72dda7;
  border: 1px solid rgba(34, 160, 107, 0.35);
}

.rainfall-badge.medium {
  background: rgba(228, 196, 65, 0.18);
  color: #f0d06b;
  border: 1px solid rgba(228, 196, 65, 0.35);
}

.rainfall-badge.high {
  background: rgba(223, 78, 78, 0.22);
  color: #ff9b9b;
  border: 1px solid rgba(223, 78, 78, 0.45);
}

.live-weather-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #8ec3f8;
  background: rgba(43, 114, 219, 0.15);
  border: 1px solid rgba(88, 166, 255, 0.25);
  padding: 3px 8px;
  border-radius: 999px;
}

.map-risk-elevated-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(223, 78, 78, 0.12);
  color: #b91c1c;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
  border: 1px solid rgba(223, 78, 78, 0.28);
}

/* --- Multi-Day Weather & Temperature Forecast Section (Line / List Visual Chart) --- */
.weather-forecast-card {
  margin-top: 18px;
  background: #0d1627 !important;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.65);
}

.forecast-station-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #72a4d2;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.forecast-layout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(0, 2fr);
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .forecast-layout-grid {
    grid-template-columns: 1fr;
  }
}

.forecast-hero-box {
  background: linear-gradient(145deg, rgba(16, 42, 77, 0.55), rgba(9, 23, 44, 0.75));
  border: 1px solid rgba(77, 144, 254, 0.22);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.forecast-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.forecast-tag-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8bbaf8;
  background: rgba(56, 139, 253, 0.18);
  padding: 3px 8px;
  border-radius: 6px;
}

.forecast-condition-label {
  font-size: 13px;
  font-weight: 700;
  color: #e2eef9;
}

.forecast-temp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
}

.forecast-temp-main {
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.forecast-temp-main .unit {
  font-size: 20px;
  font-weight: 400;
  color: #8ebde6;
  margin-left: 2px;
}

.forecast-temp-meta {
  font-size: 12px;
  color: #92a8bc;
  line-height: 1.6;
}

.forecast-temp-meta strong {
  color: #f1f8fc;
  font-weight: 700;
}

.forecast-hero-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.forecast-hero-metric small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: #7f95a9;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.forecast-hero-metric strong {
  font-size: 14px;
  color: #f0f6fb;
}

.forecast-threat-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px !important;
  font-weight: 700;
}

.forecast-threat-badge.low {
  background: rgba(34, 160, 107, 0.18);
  color: #72dda7;
}

.forecast-threat-badge.medium {
  background: rgba(228, 196, 65, 0.18);
  color: #f0d06b;
}

.forecast-threat-badge.high {
  background: rgba(223, 78, 78, 0.2);
  color: #ff9b9b;
}

/* Multi-Day Forecast Grid */
.forecast-days-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 600px) {
  .forecast-days-container {
    grid-template-columns: 1fr;
  }
}

.forecast-day-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.forecast-day-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(77, 144, 254, 0.3);
}

.forecast-day-card.is-today {
  background: linear-gradient(180deg, rgba(38, 149, 255, 0.06), rgba(15, 29, 49, 0.35));
  border-color: rgba(56, 139, 253, 0.25);
}

.forecast-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.forecast-day-name {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.forecast-day-date {
  font-size: 11px;
  font-family: 'Space Mono', monospace;
  color: #869eaf;
}

.forecast-day-icon-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
}

.forecast-day-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.forecast-day-icon-fallback {
  font-size: 24px;
  line-height: 1;
}

.forecast-day-cond-title {
  font-size: 12px;
  font-weight: 600;
  color: #d8e6f1;
  line-height: 1.25;
}

.forecast-day-temps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.temp-high {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.temp-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3aa0ff, #f7b731, #eb4d4b);
  opacity: 0.65;
}

.temp-low {
  font-size: 14px;
  font-weight: 600;
  color: #8da6b9;
}

.forecast-day-precip-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #8ab6e2;
  background: rgba(56, 139, 253, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
}

.forecast-rain-chance {
  color: #58a6ff;
  font-weight: 700;
}

.forecast-empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: #8da6b9;
  font-size: 13px;
}

/* --- Weather Forecast Visual Line/List View (Matching Mobile Design) --- */
.weather-forecast-card {
  margin-top: 18px;
  background: #0d1627 !important;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.65);
}

.weather-card-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.weather-header-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.weather-section-title {
  font-size: 19px;
  font-weight: 800;
  color: #f1f7fc;
  letter-spacing: -0.01em;
}

.weather-station-location {
  font-size: 11px;
  font-weight: 500;
  color: #7d96ac;
}

/* Line / List pill toggle button */
.forecast-view-pill-toggle {
  display: inline-flex;
  align-items: center;
  background: #152238;
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.view-toggle-btn {
  background: transparent;
  border: none;
  outline: none;
  color: #8da6bd;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 160ms ease;
}

.view-toggle-btn:hover {
  color: #ffffff;
}

.view-toggle-btn.active {
  background: #253d61;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Multi-Day Line View */
.multiday-line-view {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}

.multiday-columns-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
  align-items: start;
  text-align: center;
}

@media (max-width: 680px) {
  .multiday-columns-row {
    grid-template-columns: repeat(4, 120px);
  }
}

.multiday-day-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
}

.multiday-day-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
}

.multiday-day-date {
  font-size: 11px;
  color: #839bb0;
  margin-bottom: 8px;
  font-family: Inter, system-ui, sans-serif;
}

.multiday-day-cond {
  font-size: 12px;
  font-weight: 600;
  color: #dceaf7;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  margin-bottom: 8px;
  text-align: center;
}

.multiday-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.multiday-weather-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.multiday-weather-emoji {
  font-size: 28px;
}

.multiday-rain-pct {
  font-size: 12px;
  font-weight: 700;
  color: #5c9df5;
  margin-bottom: 6px;
}

.multiday-high-temp {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.multiday-low-temp {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 12px;
}

/* Temperature Dot and Horizontal Connector Lines */
.temp-dot-wrapper {
  position: relative;
  width: 100%;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.temp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  z-index: 2;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.temp-dot-line {
  position: absolute;
  top: 50%;
  height: 2px;
  background: #50657e;
  z-index: 1;
}

.temp-dot-line.line-left {
  left: 0;
  right: 50%;
}

.temp-dot-line.line-right {
  left: 50%;
  right: 0;
}

.temp-dot-line.hidden {
  opacity: 0;
}

.temp-curve-spacer {
  width: 100%;
  height: 40px;
}

/* List View Style */
.multiday-list-view {
  width: 100%;
  margin-top: 6px;
}

.multiday-list-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.multiday-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  gap: 16px;
  transition: background 150ms ease, border-color 150ms ease;
}

.multiday-list-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(88, 166, 255, 0.22);
}

.list-col-day {
  display: flex;
  flex-direction: column;
  min-width: 90px;
  gap: 2px;
}

.list-col-day strong {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.list-col-day small {
  font-size: 12px;
  color: #839bb0;
  font-family: Inter, system-ui, sans-serif;
}

.list-col-condition {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  color: #dbe8f5;
  font-size: 13.5px;
  font-weight: 600;
}

.list-cond-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.list-col-rain {
  font-size: 12.5px;
  font-weight: 700;
  color: #5c9df5;
  min-width: 130px;
  text-align: right;
}

.list-col-temps {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  min-width: 80px;
}

.list-col-temps .high {
  color: #ffffff;
}

.list-col-temps .divider {
  color: #647d95;
  font-weight: 400;
}

.list-col-temps .low {
  color: #8da4b8;
}

