.sci-section.pn-section { padding-top: 1rem; }
.sci-page.container { max-width: 1480px; }
.sci-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
.sci-side {
  position: sticky;
  top: 5.4rem;
  padding: 0.95rem 0.9rem 0.85rem;
  max-height: calc(100vh - 6.4rem);
  overflow: auto;
}
.sci-side h2 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.sci-side .pn-lead { margin: 0 0 0.75rem; font-size: 0.84rem; line-height: 1.4; }
.sci-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  align-items: end;
}
.sci-filters .pn-field { margin-bottom: 0; }
.sci-filters .pn-field:nth-child(-n + 3) { grid-column: 1 / -1; }
.sci-filters .pn-field label { margin-bottom: 0.25rem; }
.sci-filters .pn-field select { padding: 0.5rem 0.6rem; }
#sciForm .pn-btn--block { margin-top: 0.75rem; }
.sci-summary { padding: 1rem 1.05rem 0.9rem; }
.sci-head { display: flex; justify-content: space-between; gap: 0.8rem; align-items: flex-start; flex-wrap: wrap; }
.sci-head h2 { margin: 0 0 0.2rem; color: #0f3d24; font-size: 1.2rem; }
.sci-head p { margin: 0; color: #5b6b61; max-width: 46rem; line-height: 1.45; font-size: 0.92rem; }
.sci-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.sci-actions .pn-btn { padding: 0.6rem 0.8rem; }
.sci-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.sci-kpi {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #f3f6f4;
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  min-width: 0;
}
.sci-kpi-ico {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e7f0ea;
  color: #0f3d24;
}
.sci-kpi-ico svg { width: 1.15rem; height: 1.15rem; display: block; }
.sci-kpi-ico--temp,
.sci-kpi-ico--hot { background: #fff1e6; color: #c2410c; }
.sci-kpi-ico--rain,
.sci-kpi-ico--wet,
.sci-kpi-ico--sea,
.sci-kpi-ico--wave,
.sci-kpi-ico--swell { background: #e6f2fb; color: #0369a1; }
.sci-kpi-ico--dry,
.sci-kpi-ico--sun,
.sci-kpi-ico--rad { background: #fff6df; color: #b45309; }
.sci-kpi-ico--cool { background: #e7f6f4; color: #0f766e; }
.sci-kpi-ico--humidity,
.sci-kpi-ico--et { background: #e7f3ec; color: #166534; }
.sci-kpi-ico--storm { background: #eef2ff; color: #3730a3; }
.sci-kpi div { min-width: 0; }
.sci-kpi span { display: block; color: #5b6b61; font-size: 0.74rem; font-weight: 700; line-height: 1.25; }
.sci-kpi strong { display: block; margin-top: 0.12rem; color: #0f3d24; font-size: 0.98rem; line-height: 1.25; }
.sci-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 0.7rem; }
.sci-chart {
  background: #fff;
  border: 1px solid #d7e0da;
  border-radius: 16px;
  padding: 0.65rem 0.7rem 0.45rem;
}
.sci-chart-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: flex-start; }
.sci-chart h3 { margin: 0; font-size: 0.92rem; color: #0f3d24; }
.sci-chart h3 span { font-weight: 600; color: #5b6b61; }
.sci-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 0.65rem; margin-top: 0.25rem; }
.sci-legend span { display: inline-flex; align-items: center; gap: 0.28rem; font-size: 0.74rem; font-weight: 700; color: #14532d; }
.sci-swatch { width: 0.72rem; height: 0.28rem; border-radius: 99px; display: inline-block; }
.sci-kinds { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.22rem; }
.sci-kind {
  border: 1px solid #d7e0da;
  background: #f7faf7;
  color: #0f3d24;
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}
.sci-kind.is-on { background: #0f3d24; color: #fff; border-color: #0f3d24; }
.sci-chart svg { width: 100%; height: auto; display: block; }
.sci-note, .sci-source { margin: 0.6rem 0 0; color: #5b6b61; font-size: 0.84rem; line-height: 1.45; }
.sci-table-card {
  background: #fff;
  border: 1px solid #d7e0da;
  border-radius: 18px;
  padding: 0.9rem 0.95rem 0.85rem;
  margin-top: 0.7rem;
}
.sci-pager { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin: 0.65rem 0; }
.sci-pager label { display: flex; flex-direction: column; gap: 0.28rem; font-size: 0.82rem; font-weight: 700; color: #0f3d24; }
.sci-date-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 9.6rem;
  border: 1px solid #d7e0da;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230f3d24' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.2' y='3.2' width='11.6' height='10.6' rx='2'/%3E%3Cpath d='M2.2 6.4h11.6M5.2 2v2.4M10.8 2v2.4'/%3E%3C/svg%3E") right 0.65rem center no-repeat;
  color: #0f3d24;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.sci-date-btn:focus { outline: 2px solid #0f766e; outline-offset: 2px; }
.sci-cal {
  position: fixed;
  z-index: 12000;
  width: 17.6rem;
  background: #fff;
  border: 1px solid #d7e0da;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 61, 36, 0.18);
  padding: 0.7rem;
}
.sci-cal[hidden] { display: none !important; }
.sci-cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; margin-bottom: 0.45rem; }
.sci-cal-title { font-size: 0.92rem; color: #0f3d24; text-transform: capitalize; }
.sci-cal-nav {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid #d7e0da;
  background: #f7faf7;
  color: #0f3d24;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.sci-cal-nav:disabled { opacity: 0.35; cursor: default; }
.sci-cal-week, .sci-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.12rem; }
.sci-cal-week span { text-align: center; font-size: 0.68rem; font-weight: 700; color: #5b6b61; padding: 0.2rem 0 0.35rem; }
.sci-cal-day {
  border: 0;
  background: transparent;
  border-radius: 8px;
  height: 2rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f3d24;
  cursor: pointer;
}
.sci-cal-day:hover:not(:disabled) { background: #e7f3ec; }
.sci-cal-day.is-on { background: #0f3d24; color: #fff; }
.sci-cal-day:disabled { color: #c5d0c8; cursor: default; }
.sci-pager .pn-btn { padding: 0.6rem 0.85rem; }
.sci-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0.75rem 0 0;
}
.sci-pages .sci-page,
.sci-pages .sci-gap {
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.45rem;
  border-radius: 8px;
  border: 1px solid #d7e0da;
  background: #fff;
  color: #0f3d24;
  font-weight: 700;
  cursor: pointer;
}
.sci-pages .sci-page.is-current {
  background: #0f3d24;
  color: #fff;
  border-color: #0f3d24;
}
.sci-pages .sci-gap {
  border: 0;
  background: transparent;
  cursor: default;
  min-width: 1rem;
}
.sci-goto {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f3d24;
}
.sci-goto input {
  width: 4.6rem;
  border: 1px solid #d7e0da;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font: inherit;
  font-weight: 700;
}
.sci-table-wrap { max-height: min(78vh, 920px); overflow: auto; border: 1px solid #e6eee7; border-radius: 12px; }
.sci-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sci-table th {
  position: sticky;
  top: 0;
  background: #0f3d24;
  color: #fff;
  text-align: left;
  padding: 0.62rem 0.85rem;
  font-weight: 700;
}
.sci-table td { padding: 0.5rem 0.85rem; border-bottom: 1px solid #e6eee7; white-space: nowrap; }
.sci-table tbody tr:nth-child(even) td { background: #f7faf7; }
.sci-table td:first-child, .sci-table td:nth-child(2) { font-weight: 700; color: #0f3d24; }
.pn-status[hidden], #sciOut[hidden] { display: none !important; }
@media (max-width: 980px) {
  .sci-layout { grid-template-columns: 1fr; }
  .sci-side { position: static; max-height: none; }
  .sci-kpis, .sci-charts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sci-filters, .sci-kpis, .sci-charts { grid-template-columns: 1fr; }
  .sci-filters .pn-field:nth-child(-n + 3),
  .sci-filters .sci-years { grid-column: auto; }
}
