:root {
  color-scheme: light;
  --bg: #eef3f7;
  --ink: #13202d;
  --muted: #607080;
  --panel: #ffffff;
  --line: #d7e1ea;
  --blue: #1d70b8;
  --blue-dark: #174f82;
  --green: #16886a;
  --shadow: 0 18px 50px rgba(30, 49, 70, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fbfd 0%, var(--bg) 58%, #e6eef3 100%);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 10px max(16px, calc((100vw - 1180px) / 2 + 16px));
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(30, 49, 70, 0.1);
}

.site-menu a,
.site-menu-parent {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.site-brand span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
}

.site-brand-avatar img {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.site-menu,
.site-menu-list,
.site-menu-list ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu li {
  position: relative;
  list-style: none;
}

.site-menu a,
.site-menu-parent {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #43515f;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

.site-menu a:hover,
.site-menu a:focus,
.site-menu a.is-active,
.site-menu-parent:hover,
.site-menu-parent:focus,
.site-menu-group.is-submenu-open > .site-menu-parent {
  background: #eef6fc;
  color: var(--blue-dark);
}

.site-menu-parent::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 5px solid currentColor;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

.site-menu-list li ul {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2100;
  display: none;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 190px;
  padding: 10px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(30, 49, 70, 0.16);
}

.site-menu-list li ul li {
  width: 100%;
}

.site-menu-list li:hover > ul,
.site-menu-list li:focus-within > ul,
.site-menu-list li.is-submenu-open > ul {
  display: grid;
  gap: 6px;
}

.site-menu-list li ul a {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.site-menu-list > li > ul,
.site-menu-list > li > ul li,
.site-menu-list > li > ul a {
  text-align: left;
}

@media (min-width: 769px) {
  .site-menu {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .site-menu-list {
    justify-content: flex-start;
  }

  .site-menu-list > li > ul {
    top: 100%;
    right: auto;
    left: 0;
    width: max-content;
    min-width: 220px;
    max-width: min(560px, calc(100vw - 32px));
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    padding: 14px;
    border-radius: 8px;
  }

  .site-menu-list > li > ul {
    display: none !important;
  }

  .site-menu-list > li:hover > ul,
  .site-menu-list > li:focus-within > ul,
  .site-menu-list > li.is-submenu-open > ul {
    display: grid !important;
  }

  .site-menu-list > li > ul a {
    min-height: 44px;
    border: 1px solid var(--line);
    background: #f8fbfd;
    text-align: left;
  }
}

.site-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.site-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  border-radius: 99px;
  background: var(--ink);
}

.site-auth {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.site-auth a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #eef6fc;
  color: var(--blue-dark);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-return {
  position: sticky;
  top: 84px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0 0 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue-dark);
  box-shadow: 0 8px 22px rgba(31, 52, 72, 0.12);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-return::before {
  content: "<";
  font-size: 1rem;
}

.dashboard-return:hover,
.dashboard-return:focus {
  background: #eef6fc;
  color: var(--blue-dark);
}

.map-dashboard-return {
  position: fixed;
  top: 88px;
  left: max(12px, calc((100vw - 1180px) / 2 + 16px));
}

.login-shell {
  width: min(440px, calc(100% - 28px));
  margin: 48px auto 72px;
}

.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-head {
  margin-bottom: 22px;
}

.login-head h1 {
  margin-bottom: 6px;
  font-size: 2.1rem;
}

.login-head span {
  color: var(--muted);
  font-weight: 800;
}

.login-panel .login-form,
.login-panel > span,
.login-panel > div {
  display: grid;
  gap: 14px;
}

.login-field {
  position: relative;
  display: grid;
  gap: 7px;
}

.login-field label,
.login-check {
  color: var(--muted);
  font-weight: 800;
}

.login-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #f6fafc;
  color: var(--ink);
}

.login-input:focus {
  outline: 2px solid rgba(29, 112, 184, 0.22);
  border-color: var(--blue);
}

.login-error {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #b42318;
  font-weight: 900;
}

.login-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.login-button:hover,
.login-button:focus {
  background: var(--blue-dark);
}

/* Legacy account pages */
.container {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.container .container {
  width: 100%;
}

.account-workspace {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 18px;
}

.account-workspace > .container {
  border: 0;
  box-shadow: none;
  padding: 0;
}

.form-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.form-control {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #f8fbfd;
  color: var(--ink);
  font: inherit;
}

select.form-control {
  min-width: 86px;
}

textarea.form-control {
  min-height: 92px;
  resize: vertical;
}

.form-control:focus {
  outline: 2px solid rgba(29, 112, 184, 0.2);
  border-color: var(--blue);
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0;
  background: #fff;
  font-size: 0.92rem;
}

.table-responsive {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.Gridview,
#GridView1,
.table-responsive[id*="GridView"] {
  min-width: 980px;
}

.table-bordered {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  vertical-align: top;
}

.table th {
  background: #eef6fc;
  color: var(--blue-dark);
  font-weight: 900;
}

.table td {
  background: #fff8f7;
}

.table input[type="text"],
.table textarea,
.table select,
.table .form-control {
  max-width: 100%;
  font-size: 0.9rem;
}

.table textarea.form-control {
  min-height: 74px;
}

.table [style*="width:300px"] {
  width: min(300px, 100%) !important;
}

.table [style*="width:200px"] {
  width: min(200px, 100%) !important;
}

.table tr:last-child td {
  border-bottom: 0;
}

.btn,
.btn-md,
.btn-lg,
input[type="submit"].btn,
input[type="button"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.btn-lg {
  min-height: 48px;
  padding: 0 18px;
}

.btn-default {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-info {
  background: var(--blue);
  color: #fff;
}

.btn-success {
  background: var(--green);
  color: #fff;
}

.btn-danger {
  background: #b42318;
  color: #fff;
}

.btn:hover,
.btn:focus {
  filter: brightness(0.96);
}

.alert,
.alert-info,
.alert-warning,
.alert-danger,
.alert-success,
.bg-danger {
  border-radius: 8px;
  padding: 12px 14px;
}

.alert-info {
  border: 1px solid #b8ddf4;
  background: #eef8ff;
  color: #174f82;
}

.alert-warning {
  border: 1px solid #f2d58a;
  background: #fff8e6;
  color: #6f4d00;
}

.alert-danger,
.bg-danger {
  border: 1px solid #f1b5ae;
  background: #fff1ef;
  color: #8f1d14;
}

.alert-success {
  border: 1px solid #a8dfcf;
  background: #edf9f5;
  color: #0b684f;
}

.text-danger {
  color: #b42318;
}

.text-primary {
  color: var(--blue-dark);
}

.text-uppercase {
  text-transform: uppercase;
}

.bold,
strong,
b {
  font-weight: 900;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.82rem;
  font-weight: 800;
}

.label-default {
  background: #eef2f5;
  color: #43515f;
}

.hidden {
  display: none !important;
}

.checkbox,
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.CheckBoxTester {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, max-content));
  gap: 6px 12px;
  align-items: center;
  color: var(--blue-dark);
  font-size: 0.92rem;
}

.button-checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.button-checkbox > button {
  margin-top: 2px;
}

.messagealert {
  max-width: 100%;
}

.dl-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

#MainContent .bg-danger {
  margin: 16px 0 12px;
  font-weight: 800;
}

#MainContent .alert-warning {
  margin: 12px 0;
  padding: 10px 12px;
}

#MainContent .messagealert {
  margin-top: 18px !important;
  width: min(500px, 100%) !important;
}

#MainContent .dl-horizontal {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto;
  padding: 16px 0;
}

.account-workspace + .Gridview,
.account-workspace + table,
#MainContent .container + table,
#MainContent .container + .table,
#GridView1 {
  display: block;
  width: min(1180px, calc(100vw - 32px));
  margin: 18px auto;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(30, 49, 70, 0.1);
}

#GridView1 tbody,
#GridView1 tr {
  width: 100%;
}

#GridView1 th,
#GridView1 td {
  min-width: 92px;
}

#GridView1 th:nth-child(2),
#GridView1 td:nth-child(2) {
  min-width: 190px;
}

#GridView1 th:nth-child(4),
#GridView1 td:nth-child(4) {
  min-width: 520px;
}

#GridView1 th:nth-child(5),
#GridView1 td:nth-child(5) {
  min-width: 230px;
}

#GridView1 th:nth-child(8),
#GridView1 td:nth-child(8) {
  min-width: 180px;
}

#GridView1 .form-control {
  width: 100% !important;
}

#GridView1 .label {
  margin-top: 8px;
}

.account-grid {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(31, 52, 72, 0.08);
  white-space: normal;
  -webkit-overflow-scrolling: touch;
}

.account-grid tbody {
  display: table-row-group;
  width: auto;
  min-width: 0;
}

.account-grid th,
.account-grid td {
  min-width: 92px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 10px;
  vertical-align: top;
}

.account-grid th {
  background: #edf6fd;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.account-grid td {
  background: #fff8f7;
}

.account-grid tr:nth-child(even) td {
  background: #fff;
}

.account-grid input[type="text"],
.account-grid textarea,
.account-grid select,
.account-grid .form-control {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.account-grid textarea.form-control {
  min-height: 72px;
}

.dataTables_wrapper {
  width: 100%;
}

.dataTables_wrapper .dataTables_filter {
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 800;
}

.dataTables_wrapper .dataTables_filter input {
  min-width: 240px;
  margin-left: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--text);
}

.dataTables_wrapper .dataTables_length {
  float: right;
  margin: 0 0 12px 16px;
  color: var(--text);
  font-weight: 800;
  text-align: right;
}

.dataTables_wrapper .dataTables_length select {
  min-width: 72px;
  margin: 0 6px;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #f8fbfd;
  color: var(--text);
  font-weight: 800;
}

.dataTables_wrapper .dataTables_info {
  clear: both;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding-top: 12px;
}

.dataTables_wrapper .dataTables_paginate {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  margin: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #f8fbfd !important;
  color: var(--blue-dark) !important;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  border-color: var(--blue) !important;
  background: var(--blue) !important;
  color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  opacity: 0.45;
  cursor: default;
}

.dataTables_wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper table.account-grid {
  display: table;
  width: 100% !important;
  min-width: 980px;
  max-width: none;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(31, 52, 72, 0.08);
  white-space: normal;
}

.dataTables_wrapper table.account-grid.dataTable {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.dataTables_wrapper table.account-grid thead {
  display: table-header-group;
}

.dataTables_wrapper table.account-grid tbody {
  display: table-row-group;
  width: auto;
  min-width: 0;
}

.dataTables_wrapper table.account-grid {
  table-layout: auto;
  border-collapse: separate;
}

.dataTables_wrapper table.account-grid tr {
  display: table-row;
}

.dataTables_wrapper table.account-grid th,
.dataTables_wrapper table.account-grid td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 10px;
  vertical-align: top;
}

.dataTables_wrapper table.account-grid th {
  background: #edf6fd;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.dataTables_wrapper table.account-grid thead .sorting,
.dataTables_wrapper table.account-grid thead .sorting_asc,
.dataTables_wrapper table.account-grid thead .sorting_desc {
  background-color: #edf6fd;
  color: var(--blue-dark);
}

.dataTables_wrapper table.account-grid td {
  background: #fff8f7;
}

.dataTables_wrapper table.account-grid tr:nth-child(even) td {
  background: #fff;
}

.leaflet-tile.opentopo-soft {
  filter: brightness(1.18) contrast(0.82) saturate(0.78);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.topbar,
.section-head,
.hero,
.content-grid,
.search,
.measure-grid,
.forecast-card {
  display: flex;
}

.topbar {
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.search {
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.search label {
  color: var(--muted);
  font-weight: 700;
}

.search input {
  width: 180px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 12px;
  background: #eef5f9;
  color: var(--ink);
}

.search button,
.ghost-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #f3f7fa;
  color: var(--blue-dark);
}

.hero {
  align-items: stretch;
  gap: 18px;
  margin-bottom: 18px;
}

.current-panel,
.status-panel,
.radar-panel,
.forecast-panel {
  border: 1px solid rgba(215, 225, 234, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.current-panel {
  flex: 1;
  padding: 22px;
}

.current-main {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.weather-icon {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 8px;
  background: #e8f4fb;
  font-size: 3.2rem;
}

.condition {
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 700;
}

#temperature {
  font-size: 4rem;
  line-height: 1;
}

.measure-grid {
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.measure-item {
  flex: 1 1 140px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.measure-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.measure-item strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
  font-weight: 800;
}

.status-panel {
  width: 260px;
  padding: 22px;
}

.status-panel span,
.status-panel small {
  display: block;
  color: var(--muted);
}

.status-panel strong {
  display: block;
  margin: 8px 0 16px;
  font-size: 1.45rem;
}

.content-grid {
  align-items: start;
  gap: 18px;
}

.radar-panel {
  flex: 1.45;
  min-width: 0;
  padding: 18px;
}

.forecast-panel {
  flex: 0.85;
  padding: 18px;
}

.section-head {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.radar-map {
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #d9e7ef;
}

.radar-slider {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.slider-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.slider-labels span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.slider-labels strong {
  color: var(--blue-dark);
  font-size: 0.95rem;
  text-align: center;
}

.radar-slider input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
  cursor: pointer;
}

.radar-slider input[type="range"]:disabled {
  cursor: wait;
  opacity: 0.58;
}

.point-forecast-slider {
  background: #ffffff;
}

.point-forecast-status {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.point-forecast-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.point-forecast-card {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 3px 8px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.point-forecast-card span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 0 3px rgba(22,77,130,0.12);
}

.point-forecast-card strong,
.point-forecast-card small,
.point-forecast-card em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.point-forecast-card strong {
  color: var(--blue-dark);
  font-size: 0.86rem;
}

.point-forecast-card small,
.point-forecast-card em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.radar-forecast {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.compact-head {
  margin-bottom: 10px;
}

#radarForecastStatus {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.radar-forecast-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(132px, 1fr));
  gap: 10px;
  min-height: 252px;
  align-items: end;
}

.rain-hour {
  display: grid;
  grid-template-rows: auto auto auto auto auto auto auto auto auto 56px;
  gap: 5px;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  text-align: center;
}

.rain-hour span,
.rain-hour small,
.rain-hour em {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.rain-hour em {
  font-style: normal;
}

.hour-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  justify-self: center;
  border-radius: 8px;
  background: #eaf3f8;
  font-size: 1.45rem;
  line-height: 1;
}

.rain-hour strong {
  color: var(--blue-dark);
  font-size: 1rem;
  white-space: nowrap;
}

.rain-hour i {
  align-self: end;
  justify-self: center;
  width: 18px;
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
  background: #9ac8e8;
}

.weather-warnings {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.warning-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
}

.warning-card {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.warning-card strong,
.warning-card span {
  display: block;
}

.warning-card strong {
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.warning-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.warning-card.watch {
  border-color: #d8b04b;
  background: #fff8e4;
}

.warning-card.warn {
  border-color: #cf6b6b;
  background: #fff0f0;
}

.warning-card.calm {
  border-color: #9fcbbd;
  background: #eef9f5;
}

.rain-hour.medium i {
  background: var(--blue);
}

.rain-hour.heavy i {
  background: #1f3f70;
}

.forecast-list {
  display: grid;
  gap: 12px;
}

.forecast-card {
  align-items: center;
  gap: 12px;
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.forecast-icon {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: #eaf3f8;
  font-size: 2rem;
}

.forecast-card div {
  flex: 1;
  min-width: 0;
}

.forecast-card h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.forecast-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.35;
}

.forecast-card strong {
  white-space: nowrap;
  color: var(--blue-dark);
}

.mobile-nav {
  display: none;
}

.app-shell {
  width: min(760px, calc(100% - 20px));
  margin: 0 auto;
  padding: 16px 0 96px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 168px;
  padding: 22px;
  border: 1px solid rgba(215, 225, 234, 0.9);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef8f4 52%, #e8f3fb 100%);
  box-shadow: var(--shadow);
}

.app-header h1 {
  margin-bottom: 8px;
}

.app-header span {
  color: var(--muted);
  font-weight: 800;
}

.app-header b {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 3rem;
}

.dashboard-hero,
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metric-card,
.module-card,
.app-section {
  border: 1px solid rgba(215, 225, 234, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(30, 49, 70, 0.1);
}

.metric-card,
.module-card {
  min-height: 104px;
  padding: 14px;
}

.main-metric {
  grid-row: span 2;
  min-height: 218px;
}

.metric-card span,
.module-card span,
.dash-hour-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.metric-card strong,
.module-card strong {
  display: block;
  margin-top: 8px;
  color: var(--blue-dark);
  font-size: 1.35rem;
}

.main-metric strong {
  font-size: 3.3rem;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.app-section {
  margin-top: 12px;
  padding: 14px;
}

.mini-link,
.link-card {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.dash-hour-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.dash-hour-card {
  flex: 0 0 132px;
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  scroll-snap-align: start;
}

.dash-hour-card b {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 8px 0;
  place-items: center;
  border-radius: 8px;
  background: #eaf3f8;
  font-size: 1.55rem;
}

.dash-hour-card strong,
.dash-hour-card small {
  display: block;
}

.dash-hour-card strong {
  color: var(--blue-dark);
  font-size: 1.25rem;
}

.dash-hour-card small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.empty-module {
  border-style: dashed;
  background: rgba(248, 251, 253, 0.62);
}

.lawis-module {
  padding: 14px;
}

.lawis-module .section-head {
  align-items: start;
  margin-bottom: 10px;
}

.lawis-module .section-head .eyebrow {
  display: none;
}

.lawis-module .section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.15;
}

.lawis-module .section-head span {
  align-self: start;
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.lawis-filter {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lawis-filter button {
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fbfd;
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 800;
}

.lawis-filter button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.lawis-map {
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #d9e7ef;
}

.lawis-profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.lawis-profile-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.lawis-profile-pager button {
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 900;
  padding: 8px 12px;
}

.lawis-profile-pager button:disabled {
  opacity: 0.45;
}

.lawis-profile-pager span {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.lawis-profile-pager small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.lawis-profile-card {
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.lawis-profile-card.lawis-ect-low {
  border-color: #8c1d18;
  background: rgba(214, 69, 61, 0.18);
}

.lawis-profile-card.lawis-ect-medium {
  border-color: #9c7500;
  background: rgba(242, 201, 76, 0.28);
}

.lawis-profile-card.lawis-ect-high {
  border-color: #1d6b43;
  background: rgba(67, 179, 111, 0.2);
}

.lawis-profile-card.lawis-region-286 {
  border-color: #174f82;
  background: rgba(29, 112, 184, 0.14);
}

.lawis-profile-card.lawis-region-289 {
  border-color: #16886a;
  background: rgba(49, 169, 130, 0.14);
}

.lawis-profile-card.is-selected {
  border-color: #b01378;
  outline: 3px solid rgba(255, 77, 184, 0.55);
  box-shadow: 0 0 0 5px rgba(255, 77, 184, 0.16);
}

.lawis-profile-card strong,
.lawis-profile-card span,
.lawis-profile-card small,
.lawis-profile-card a {
  display: block;
}

.lawis-profile-card strong {
  color: var(--blue-dark);
  font-size: 0.96rem;
}

.lawis-profile-card span,
.lawis-profile-card small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

.lawis-profile-card small {
  font-size: 0.78rem;
}

.lawis-hardness-warning {
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid #8c1d18;
  border-radius: 8px;
  background: #fff0f3;
  color: #8c1d18;
  font-weight: 900;
}

.lawis-hardness-warning b,
.lawis-hardness-warning small {
  display: block;
}

.lawis-hardness-warning b {
  margin-bottom: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lawis-hardness-warning small {
  position: relative;
  min-height: 14px;
  margin-top: 3px;
  padding-left: 12px;
  color: #8c1d18;
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 850;
}

.lawis-hardness-warning i {
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #8c1d18;
}

.lawis-hardness-warning em {
  font-style: normal;
}

.lawis-grain-warning {
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid #174f82;
  border-radius: 8px;
  background: #eef6fc;
  color: #174f82;
  font-weight: 900;
}

.lawis-grain-warning b,
.lawis-grain-warning small {
  display: block;
}

.lawis-grain-warning b {
  margin-bottom: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lawis-grain-warning small {
  position: relative;
  min-height: 14px;
  margin-top: 3px;
  padding-left: 12px;
  color: #174f82;
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 850;
}

.lawis-grain-warning i {
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #174f82;
}

.lawis-grain-warning em {
  font-style: normal;
}

.lawis-grain-warning span {
  display: inline;
  margin-left: 4px;
  color: #5d6b78;
  font-weight: 800;
}

.lawis-hardness-popup {
  color: #8c1d18;
}

.lawis-grain-popup {
  color: #174f82;
}

.lawis-profile-card a {
  margin-top: 8px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.avalanche-module .section-head span,
#avalancheDate a {
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.avalanche-region-list {
  display: grid;
  gap: 12px;
}

.avalanche-region-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.avalanche-region-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.avalanche-region-head span,
.avalanche-region-card small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.avalanche-region-head h3 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.avalanche-region-head strong {
  color: var(--blue-dark);
  font-size: 1rem;
  white-space: nowrap;
}

.avalanche-facts {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.avalanche-facts span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.avalanche-facts b {
  color: var(--ink);
}

.avalanche-weather-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #b8ddf4;
  border-radius: 8px;
  background: #eef8ff;
}

.avalanche-weather-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.avalanche-weather-card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.trend-pill b {
  color: inherit;
}

.trend-pill.stable {
  background: #eef3f7;
  color: var(--blue-dark);
}

.trend-pill.rising {
  background: #fff0f0;
  color: #9f2727;
}

.trend-pill.falling {
  background: #eef9f5;
  color: #237438;
}

.danger-level {
  padding: 8px 10px;
  border-radius: 8px;
}

.danger-1 {
  background: #e8f7e7;
  color: #237438 !important;
}

.danger-2 {
  background: #fff5c8;
  color: #8a6b00 !important;
}

.danger-3 {
  background: #ffe0bd;
  color: #a44c00 !important;
}

.danger-4 {
  background: #ffd2d2;
  color: #9f2727 !important;
}

.danger-5 {
  background: #ded6eb;
  color: #4c2a7a !important;
}

.avalanche-problem-icons {
  display: grid;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.avalanche-problem-row {
  display: block;
  margin-top: 10px;
}

.avalanche-problem-compact {
  display: grid;
  grid-template-columns: 78px 96px minmax(132px, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 290px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.avalanche-problem-compact:first-child {
  border-top: 0;
}

.compact-problem {
  text-align: center;
}

.compact-problem img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.compact-problem span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.problem-icon-card {
  display: grid;
  flex: 0 0 112px;
  min-height: 104px;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  text-align: center;
  scroll-snap-align: start;
}

.problem-icon-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.problem-icon-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.problem-icon-card small {
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.aspect-rose {
  width: 88px;
  height: 88px;
  justify-self: center;
}

.rose-svg {
  display: block;
  width: 88px;
  height: 88px;
}

.rose-petal {
  fill: #ffffff;
  stroke: none;
}

.rose-petal.is-active {
  fill: #a6a6a6;
}

.rose-background {
  fill: #ffffff;
}

.rose-axis {
  stroke: #111111;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.85;
}

.rose-ring {
  fill: none;
  stroke: #111111;
  stroke-width: 1.5;
}

.rose-dot {
  fill: #d92323;
  stroke: #8c1111;
  stroke-width: 0.9;
}

.rose-letter {
  fill: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 7px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.38);
  stroke-width: 1.3px;
}

.elevation-symbol {
  display: flex;
  align-items: center;
  gap: 8px;
}

.elevation-symbol svg {
  width: 76px;
  height: 58px;
  flex: 0 0 auto;
}

.elevation-symbol strong {
  color: #5d666d;
  font-size: 1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.elevation-symbol span {
  color: #87939c;
  font-size: 1.35rem;
  line-height: 1;
}

.avalanche-text-card {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.avalanche-text-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.avalanche-text-card h3 {
  margin: 8px 0;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.avalanche-text-card p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.48;
}

.avalanche-full-text {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.avalanche-full-text h4 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 0.96rem;
}

.avalanche-full-text p {
  margin: 0;
}

.avalanche-read-actions {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.avalanche-read-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f7;
  color: var(--muted);
  font-weight: 900;
  cursor: not-allowed;
}

.avalanche-read-button.is-ready {
  border-color: #16886a;
  background: #16886a;
  color: #fff;
  cursor: pointer;
}

.avalanche-read-button.is-saved {
  border-color: #174f82;
  background: #174f82;
  color: #fff;
  cursor: default;
}

.avalanche-read-actions small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 768px) {
  .site-nav {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
  }

  .site-menu {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    margin: 0;
    overflow: visible;
  }

  .site-menu-list {
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .site-menu-list > li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .site-menu-list > li:first-child {
    border-top: 1px solid var(--line);
  }

  .site-menu a,
  .site-menu-parent {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    border-radius: 0;
    border: 0;
    background: #fff;
    text-align: left;
  }

  .site-menu-list li ul {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    background: #f8fbfd;
    box-shadow: none;
  }

  .site-nav.is-open .site-menu-list > li.is-submenu-open > ul,
  .site-menu-list li:hover > ul,
  .site-menu-list li:focus-within > ul {
    display: grid;
    gap: 0;
  }

  .site-menu-list > li > ul a {
    min-height: 44px;
    padding-left: 30px;
    border-top: 1px solid var(--line);
    background: #eef6fc;
  }

  .site-nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .site-auth {
    order: 4;
    display: none;
    width: 100%;
  }

  .site-nav.is-open .site-auth {
    display: flex;
  }

  .site-auth a {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar,
  .hero,
  .content-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .status-panel {
    width: auto;
  }

  .search {
    flex-wrap: wrap;
  }

  .search input {
    flex: 1;
    min-width: 160px;
  }

  .radar-map {
    min-height: 420px;
  }

  .radar-forecast-list {
    grid-template-columns: repeat(2, minmax(132px, 1fr));
  }

  .warning-list {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }

  body.has-mobile-nav {
    padding-bottom: 0;
  }

  .site-brand strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-menu,
  .site-menu-list,
  .site-menu-list > li > ul {
    display: none;
  }

  .site-nav.is-open .site-menu {
    display: block;
  }

  .site-nav.is-open .site-menu-list {
    display: grid;
  }

  .site-nav.is-open .site-menu-list > li > ul {
    display: none;
  }

  .shell {
    width: min(100% - 14px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    gap: 14px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1;
  }

  h2 {
    font-size: 1.12rem;
  }

  .search {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 8px;
  }

  .search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .current-main {
    align-items: flex-start;
  }

  .weather-icon {
    width: 72px;
    height: 72px;
    font-size: 2.4rem;
  }

  #temperature {
    font-size: 3rem;
  }

  .current-panel,
  .status-panel,
  .radar-panel,
  .forecast-panel,
  .radar-forecast {
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(30, 49, 70, 0.11);
  }

  .current-panel,
  .status-panel,
  .radar-panel,
  .forecast-panel {
    padding: 12px;
  }

  .measure-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .measure-item {
    min-height: 76px;
    padding: 10px;
  }

  .measure-item strong {
    font-size: 1.15rem;
  }

  .section-head {
    align-items: flex-start;
    gap: 10px;
  }

  .ghost-button {
    min-height: 38px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .radar-map {
    min-height: 330px;
    height: 58vh;
  }

  .lawis-map {
    min-height: 330px;
    height: 52vh;
  }

  .slider-labels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }

  .slider-labels span:first-child,
  .slider-labels span:last-child {
    display: none;
  }

  .point-forecast-list {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .point-forecast-card {
    flex: 0 0 76%;
    max-width: 260px;
    scroll-snap-align: start;
  }

  .forecast-card {
    align-items: flex-start;
    min-height: 96px;
    padding: 12px;
  }

  .radar-forecast-list {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    min-height: 0;
    overflow-x: auto;
    padding: 0 2px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .rain-hour {
    flex: 0 0 76%;
    max-width: 260px;
    min-height: 244px;
    scroll-snap-align: start;
  }

  .warning-list {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .lawis-profile-list {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .lawis-profile-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .warning-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .forecast-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .forecast-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  .mobile-nav {
    position: fixed;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 1000;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(215, 225, 234, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 32px rgba(30, 49, 70, 0.22);
  }

  .mobile-nav a {
    display: grid;
    min-height: 44px;
    place-items: center;
    border-radius: 6px;
    color: var(--blue-dark);
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
  }

  .mobile-nav a.is-active,
  .mobile-nav a:active {
    background: var(--blue);
    color: #fff;
  }

  .radar-only-page .shell {
    padding-top: 8px;
  }

  .app-shell {
    width: min(100% - 14px, 760px);
    padding-top: 8px;
  }

  .app-header {
    min-height: 150px;
    padding: 16px;
  }

  .app-header b {
    width: 68px;
    height: 68px;
    font-size: 2.3rem;
  }

  .dashboard-page h1 {
    font-size: 2.6rem;
  }

  .dashboard-hero,
  .module-grid {
    gap: 8px;
  }

  .avalanche-problem-row {
    display: block;
  }

  .aspect-rose {
    justify-self: center;
  }

  .avalanche-problem-compact {
    grid-template-columns: 68px 88px minmax(112px, 1fr);
    gap: 10px;
    padding: 10px 0;
  }

  .compact-problem img {
    width: 56px;
    height: 56px;
  }

  .elevation-symbol svg {
    width: 62px;
    height: 48px;
  }

  .elevation-symbol strong {
    font-size: 0.92rem;
  }

  .metric-card,
  .module-card {
    min-height: 96px;
    padding: 12px;
  }

  .main-metric {
    min-height: 200px;
  }

  .metric-card strong,
  .module-card strong {
    font-size: 1.14rem;
  }

  .main-metric strong {
    font-size: 3rem;
  }
}

/* Statusfarben fuer Gutachten-Tabellen muessen nach den allgemeinen
   GridView/DataTables-Regeln kommen, sonst ueberschreiben gerade/ungerade
   Tabellenzeilen die Warnfarben. */
table.account-grid tbody tr.alert-danger > td,
table.account-grid tbody tr.gutachten-row-closed > td,
.dataTables_wrapper table.account-grid tbody tr.alert-danger > td,
.dataTables_wrapper table.account-grid tbody tr.gutachten-row-closed > td {
  background-color: #fff0f3 !important;
  color: #9f1d16 !important;
}

table.account-grid tbody tr.alert-success > td,
table.account-grid tbody tr.gutachten-row-open > td,
.dataTables_wrapper table.account-grid tbody tr.alert-success > td,
.dataTables_wrapper table.account-grid tbody tr.gutachten-row-open > td {
  background-color: #ecf9ec !important;
  color: #006b46 !important;
}

.gutachten-action-alert {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 6px;
  border-radius: 6px;
  font-weight: 700;
}
