:root {
  color-scheme: dark;
  --surface: rgba(60, 63, 62, 0.9);
  --surface-solid: #3b3f3e;
  --muted: #c2c7c4;
  --line: rgba(255, 255, 255, 0.15);
  --cream: #f4c635;
  --text: #fff;
  --forecast-height: 44px;
  font-family: Arial, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  background: #537350;
  color: var(--text);
}
button,
input {
  font: inherit;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}
button:hover {
  color: var(--cream);
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
svg:not(.leaflet-zoom-animated) {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
[hidden] {
  display: none !important;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
#workspace {
  height: 100dvh;
  position: relative;
}
body:not([data-startup="ready"]) #workspace {
  visibility: hidden;
}
#startup-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #3f4842;
  color: #f3f5ef;
  transition:
    opacity 0.45s ease,
    visibility 0s 0.45s;
}
.startup-brand {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.startup-brand span {
  font-size: 20px;
  font-weight: 450;
}
#startup-message {
  max-width: 300px;
  margin: 16px 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}
.startup-dot {
  width: 6px;
  height: 6px;
  margin-top: 24px;
  border-radius: 50%;
  background: #f4c635;
  animation: startup-pulse 1s ease-in-out infinite alternate;
}
#startup-retry {
  border: 1px solid #ffffff55;
  border-radius: 18px;
  padding: 8px 18px;
  background: #ffffff14;
  color: inherit;
}
body[data-startup="error"] .startup-dot {
  animation: none;
}
body[data-startup="ready"] #startup-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body[data-startup="ready"] .weather-canvas {
  animation: wind-reveal 0.65s ease-out both;
}
@keyframes wind-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes startup-pulse {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}
#map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #6b8b73;
}
.leaflet-container {
  font-family: inherit;
}
.leaflet-tile-pane {
  filter: saturate(0.3) brightness(0.85);
}
.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(40, 44, 43, 0.75) !important;
  color: #e5e9e5 !important;
  margin-bottom: 0 !important;
}
.leaflet-control-attribution a {
  color: #e5e9e5 !important;
}
.leaflet-bottom {
  bottom: 0;
}
.leaflet-pane.leaflet-tooltip-pane {
  z-index: 620;
}
.leaflet-tooltip.place-tooltip {
  border: 0;
  color: #fff;
  background: #343b38e6;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 3px;
  box-shadow: 0 1px 5px #0004;
}
.leaflet-tooltip-top.place-tooltip:before {
  border-top-color: #343b38e6;
}
.leaflet-tooltip.town-label {
  border: 0;
  box-shadow: none;
  background: transparent;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0 2px;
  text-shadow:
    -1px -1px 1px #253829,
    1px -1px 1px #253829,
    -1px 1px 1px #253829,
    1px 1px 1px #253829;
}
.leaflet-tooltip.town-label:before {
  display: none;
}
.weather-canvas,
.place-tooltip {
  pointer-events: none;
}
.weather-canvas {
  position: absolute;
}
.point-marker {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f4c635;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 1px #384b3b,
    0 1px 5px #0006;
}

/* Compact controls sit above the map; there is no full-width header surface. */
.topbar {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 810;
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1px;
  text-shadow: 0 1px 4px #0008;
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  color: #fff;
  width: 29px;
  height: 29px;
  padding: 5px;
  background: #bb3533;
  border-radius: 50%;
  stroke-width: 1.8;
  box-shadow: 0 1px 5px #0004;
}
.brand-local {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.6px;
  margin-left: 3px;
}
.top-divider,
.region-title,
.top-actions > span {
  display: none;
}
.top-actions {
  position: absolute;
  right: 12px;
  top: -2px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 5px;
}
#info-button {
  border-radius: 50%;
  background: var(--surface);
}
.left-panel {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 310px;
  z-index: 800;
}
#search-form {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border-radius: 19px;
  background: #fff;
  color: #606663;
  box-shadow: 0 1px 5px #0005;
}
#search-form svg {
  width: 17px;
  height: 17px;
  color: #909793;
}
#search {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  color: #444a47;
  background: transparent;
  font-size: 14px;
}
#search::placeholder {
  color: #8b928d;
}
#search-form kbd {
  font-size: 15px;
  color: #a0a5a1;
}
.search-results {
  position: absolute;
  z-index: 900;
  left: 0;
  right: 0;
  top: 41px;
  max-height: 280px;
  overflow: auto;
  background: #f8faf7;
  color: #303b33;
  box-shadow: 0 5px 20px #0004;
  border-radius: 5px;
}
.search-results button {
  display: block;
  width: 100%;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #263d2614;
  color: #303b33;
}
.search-results button:hover {
  background: #e4ebe3;
}
.search-results button span {
  display: block;
  color: #758175;
  font-size: 10px;
  margin-top: 3px;
}
.search-message {
  padding: 12px;
  font-size: 12px;
}
.place-card {
  position: relative;
  margin-top: 6px;
  padding: 10px 12px 8px;
  border-radius: 4px;
  background: var(--surface);
  backdrop-filter: blur(7px);
  box-shadow: 0 2px 7px #0002;
}
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #d1d7d1;
  min-height: 12px;
}
.place-card .icon-button {
  position: absolute;
  right: 6px;
  top: 4px;
  width: 24px;
  height: 24px;
}
h1 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.1;
  margin: 4px 0 0;
  padding-right: 80px;
  overflow-wrap: anywhere;
}
.coordinates {
  display: none;
}
.conditions {
  position: absolute;
  right: 12px;
  top: 32px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.conditions > div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.conditions strong {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.conditions div > span {
  display: none;
}
.weather-icon {
  color: #f3d97b;
  font-size: 26px;
}
.conditions time {
  position: absolute;
  top: 31px;
  right: 0;
  color: #d0d6d0;
  font-size: 9px;
}
.wind-main {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 8px;
  line-height: 1;
}
.wind-number {
  font-size: 39px;
  font-weight: 400;
  letter-spacing: -1.5px;
}
.wind-unit {
  font-size: 15px;
  color: #d8ddd7;
}
.wind-bearing {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 7px;
  font-size: 12px;
}
.wind-bearing svg {
  width: 16px;
  height: 16px;
  color: #f2d17c;
}
.wind-caption {
  font-size: 9px;
  color: #cbd1ca;
  margin-top: 4px;
}
.metrics,
.marine-metrics {
  display: grid;
  column-gap: 9px;
}
.metrics {
  grid-template-columns: 1fr 1fr;
  padding-top: 7px;
  margin-top: 7px;
  border-top: 1px solid var(--line);
}
.marine-metrics {
  grid-template-columns: 1fr 1fr 0.7fr;
  margin-top: 7px;
}
.metrics > div,
.marine-metrics > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}
.metrics span,
.marine-metrics span {
  color: #bfc8bf;
  font-size: 9px;
  white-space: nowrap;
}
.metrics strong,
.marine-metrics strong {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.marine-metrics > div {
  flex-direction: column;
  gap: 2px;
}
.point-status {
  font-size: 8px;
  color: #b7c3b7;
  line-height: 1.3;
  margin-top: 6px;
}
.marine-status {
  margin-top: 2px;
}
.point-status.error,
.smyril-status.error {
  color: #ffcb8a;
}
.point-status button,
.map-status button {
  color: #ffe18b;
  padding: 0 3px;
  text-decoration: underline;
}
.nearby {
  margin: 6px 0 0;
}
.nearby > .eyebrow {
  display: none;
}
.quick-places {
  display: flex;
  gap: 5px;
}
.quick-places button {
  padding: 5px 8px;
  font-size: 10px;
  background: #454d42c9;
  border-radius: 12px;
  text-shadow: 0 1px 2px #0005;
}
.quick-places button span {
  color: #f4dc88;
  margin-left: 4px;
}
.map-hint {
  display: none;
}

/* Live vessel data is intentionally separate from the forecast time. */
.smyril-panel {
  margin-top: 7px;
  background: var(--surface);
  border-radius: 4px;
  box-shadow: 0 2px 7px #0002;
  backdrop-filter: blur(7px);
  overflow: hidden;
}
.smyril-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  text-align: left;
}
.smyril-heading > svg:first-child {
  width: 18px;
  height: 18px;
  color: #e9d897;
}
.smyril-name {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}
.smyril-name small {
  color: #c0cbc0;
  font-size: 10px;
  font-weight: 400;
  margin-left: 5px;
}
.smyril-live {
  color: #cfddcf;
  font-size: 8px;
  letter-spacing: 0.5px;
}
.disclosure {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}
#smyril-body {
  padding: 0 11px 9px;
}
.smyril-status {
  color: #e1e6dd;
  font-size: 11px;
  line-height: 1.35;
  padding-bottom: 8px;
}
.smyril-details {
  display: grid;
  grid-template-columns: 0.7fr 1.15fr 1.15fr;
  gap: 9px;
  margin: 0;
}
.smyril-details > div {
  min-width: 0;
}
.smyril-details dt {
  color: #bfc8bf;
  font-size: 9px;
  margin-bottom: 3px;
}
.smyril-details dd {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  overflow-wrap: anywhere;
}
.smyril-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
.smyril-actions button {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid #d8e4d633;
  font-size: 9px;
  border-radius: 3px;
}
.smyril-actions svg {
  width: 12px;
  height: 12px;
}
#smyril-track-toggle[aria-pressed="true"] {
  border-color: #f6d56080;
  color: #f9dc84;
}
.smyril-provenance {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 8px;
  line-height: 1.4;
  color: #b9c4b8;
  margin-top: 7px;
}
.smyril-provenance a {
  flex-shrink: 0;
}
.smyril-panel.collapsed #smyril-body {
  display: none;
}
.place-card.compact .metrics,
.place-card.compact .wind-caption,
.place-card.compact .point-status {
  display: none;
}
#point-toggle {
  margin-left: auto;
  right: 34px;
}
#point-toggle svg {
  transform: rotate(180deg);
}
.place-card.compact #point-toggle svg {
  transform: none;
}
.place-card.compact .point-status.error {
  display: block;
}
.smyril-panel.collapsed .disclosure {
  transform: rotate(-90deg);
}

.map-tools {
  position: absolute;
  right: 12px;
  top: 60px;
  z-index: 800;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 12px;
}
.layers {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
}
.layers button {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 5px;
  padding: 0;
  height: 34px;
  border-radius: 18px;
  color: #fff;
}
.layers button svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(55, 64, 52, 0.88);
  box-shadow: 0 1px 4px #0005;
}
.layers button span {
  font-size: 12px;
  background: #42563cad;
  padding: 3px 10px;
  margin-right: -15px;
  padding-right: 17px;
  border-radius: 12px 0 0 12px;
  text-shadow: 0 1px 2px #0008;
}
.layers button:hover svg {
  background: #475c3f;
}
.layers button.active svg {
  outline: 1px solid #ffdb62;
  color: #ffe18a;
  background: #5c6149;
}
.layers button.active span {
  background: #4c5548e8;
}
.zoom {
  display: flex;
  background: var(--surface);
  border-radius: 16px;
  padding: 0 2px;
  box-shadow: 0 1px 4px #0003;
}
.zoom button {
  width: 31px;
  height: 29px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.particles {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  background: #414b3fcc;
  padding: 5px 9px;
  border-radius: 14px;
  color: #e2e9dc;
}
.particles svg {
  width: 14px;
  height: 14px;
}
.particles.active {
  color: #ffe18a;
}
.map-status {
  position: absolute;
  left: 50%;
  top: 52px;
  transform: translateX(-50%);
  z-index: 720;
  max-width: min(380px, calc(100vw - 40px));
  padding: 7px 12px;
  font-size: 11px;
  line-height: 1.4;
  background: #3c463ee8;
  color: #e9eee5;
  text-align: center;
  border-radius: 4px;
  pointer-events: none;
}
.map-status.error {
  color: #ffce8e;
  pointer-events: auto;
}
.legend {
  position: absolute;
  right: 14px;
  bottom: 282px;
  width: 240px;
  z-index: 750;
  text-shadow: 0 1px 3px #000b;
}
.legend-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 5px;
}
.legend-heading button {
  font-size: 10px;
  padding: 2px 6px;
  background: #3e4b3dd9;
  border-radius: 9px;
}
#legend-bar {
  height: 8px;
  border-radius: 4px;
}
#legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 4px;
}
body.forecast-collapsed .legend {
  bottom: 78px;
}

/* The entire collapsed footprint is one 44px row, not an empty multi-row panel. */
.forecast-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 17px;
  z-index: 850;
  display: grid;
  grid-template-columns: 30px 31px 132px minmax(0, 1fr) 94px;
  grid-template-rows: var(--forecast-height);
  column-gap: 10px;
  padding: 0 9px;
  background: rgba(61, 65, 61, 0.94);
  backdrop-filter: blur(9px);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 -1px 8px #0002;
}
.timeline-top {
  display: contents;
}
.play {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f7f6ee;
  color: #bf372c !important;
  font-size: 12px;
  display: grid;
  place-items: center;
  padding: 0 0 0 1px;
}
.now {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: 10px;
  padding: 4px 5px;
  border: 1px solid #d5dfcc38;
  border-radius: 3px;
}
.time-selection {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-size: 11px;
  color: #f0f2e8;
}
.time-selection strong {
  color: #ffdc4a;
  font-size: 13px;
  font-weight: 600;
}
.forecast-label {
  display: none;
}
#forecast-toggle {
  grid-column: 5;
  grid-row: 1;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  height: 30px;
  font-size: 11px;
  padding: 4px 0 4px 5px;
  color: #e9ecdf;
}
.forecast-panel.collapsed #forecast-toggle .disclosure {
  transform: rotate(180deg);
}
.slider-wrap {
  grid-column: 4;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#timeline {
  width: 100%;
  min-width: 0;
  height: 20px;
  accent-color: #f1bc00;
  cursor: pointer;
  margin: 0;
  background: transparent;
}
#day-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #e5e8dc;
}
.forecast-panel.collapsed #day-labels {
  display: none;
}
.forecast-scroll {
  grid-column: 1/-1;
  max-height: 180px;
  overflow: auto;
  margin: 0 -9px;
  scrollbar-color: #8e9885 transparent;
  scrollbar-width: thin;
  border-top: 1px solid var(--line);
}
#forecast-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
  text-align: center;
  width: 100%;
  white-space: nowrap;
}
#forecast-table th,
#forecast-table td {
  height: 27px;
  min-width: 70px;
  padding: 5px 9px;
  font-weight: 400;
}
#forecast-table th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 105px;
  text-align: left;
  background: #41483e;
  color: #cbd2c3;
  font-size: 10px;
  border-right: 1px solid var(--line);
}
#forecast-table tr:first-child td {
  color: #f2f2e9;
  height: 31px;
}
#forecast-table td.selected {
  background: #f4cc2528;
  color: #ffe272;
}
#forecast-table td.wind-cell {
  color: #ffdc80;
  font-weight: 600;
}
#forecast-table td.gust-cell {
  color: #dae1d2;
}
#forecast-table td.rain-cell,
#forecast-table td.wave-cell {
  color: #a9d8ff;
}
#forecast-table td button {
  width: 100%;
  font-size: 10px;
  padding: 2px 0;
}
.direction-small {
  display: inline-block;
  color: #d0d8c6;
  margin-right: 5px;
}
.forecast-footer {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 23px;
  padding: 4px 2px;
  color: #c0cab8;
  font-size: 9px;
  border-top: 1px solid var(--line);
}
.forecast-footer a {
  color: #e0e7d7;
}
.forecast-panel.collapsed {
  height: var(--forecast-height);
}
.forecast-panel.collapsed .forecast-scroll,
.forecast-panel.collapsed .forecast-footer {
  display: none;
}

dialog {
  width: min(500px, calc(100vw - 26px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 27px;
  border: 1px solid #98a18a66;
  border-radius: 7px;
  background: #3c4339;
  color: #fff;
  box-shadow: 0 15px 70px #0005;
}
dialog::backdrop {
  background: #111b16a8;
  backdrop-filter: blur(4px);
}
dialog .icon-button {
  position: absolute;
  right: 9px;
  top: 9px;
}
dialog h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: 15px 0;
}
dialog p,
dialog dd {
  font-size: 12px;
  line-height: 1.65;
  color: #d4deca;
}
dialog dt {
  font-size: 12px;
  color: #ffda79;
  margin-top: 16px;
}
dialog dd {
  margin: 4px 0 0;
}
dialog a {
  text-decoration: underline;
}
dialog .muted {
  font-size: 10px;
  color: #b5c3aa;
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .left-panel {
    width: 280px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-local {
    font-size: 16px;
  }
  .metrics span,
  .marine-metrics span {
    font-size: 8px;
  }
  .smyril-details dd {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  :root {
    --forecast-height: 46px;
  }
  .topbar {
    top: 10px;
    left: auto;
    right: 11px;
    transform: none;
  }
  .brand {
    font-size: 17px;
    gap: 4px;
  }
  .brand svg {
    width: 25px;
    height: 25px;
    padding: 5px;
  }
  .brand-local {
    font-size: 13px;
  }
  .top-actions {
    top: 35px;
    right: 0;
    position: absolute;
  }
  .left-panel {
    top: 10px;
    left: 9px;
    width: min(270px, calc(100% - 63px));
  }
  #search-form {
    width: calc(100% - 22px);
    height: 33px;
  }
  #search {
    font-size: 12px;
  }
  .place-card {
    margin-top: 6px;
    padding: 8px 10px 7px;
  }
  h1 {
    font-size: 19px;
    padding-right: 74px;
  }
  .conditions {
    top: 29px;
    right: 10px;
  }
  .conditions strong {
    font-size: 24px;
  }
  .weather-icon {
    font-size: 23px;
  }
  .wind-main {
    margin-top: 7px;
  }
  .wind-number {
    font-size: 34px;
  }
  .wind-unit {
    font-size: 13px;
  }
  .wind-bearing {
    font-size: 11px;
    margin-left: 5px;
  }
  .wind-caption {
    font-size: 8px;
  }
  .metrics {
    margin-top: 6px;
    padding-top: 6px;
  }
  .metrics strong,
  .marine-metrics strong {
    font-size: 11px;
  }
  .marine-metrics {
    margin-top: 5px;
  }
  .point-status {
    font-size: 7px;
    margin-top: 5px;
  }
  .marine-status {
    margin-top: 2px;
  }
  .smyril-panel {
    margin-top: 6px;
  }
  .smyril-heading {
    height: 31px;
    padding: 0 9px;
  }
  .smyril-name {
    font-size: 13px;
  }
  .smyril-name small {
    font-size: 9px;
  }
  #smyril-body {
    padding: 0 9px 7px;
  }
  .smyril-status {
    font-size: 10px;
    padding-bottom: 6px;
  }
  .smyril-details {
    gap: 6px;
  }
  .smyril-details dt {
    font-size: 8px;
  }
  .smyril-details dd {
    font-size: 10px;
  }
  .smyril-actions {
    margin-top: 7px;
  }
  .smyril-actions button {
    font-size: 8px;
    padding: 4px 6px;
  }
  .smyril-provenance {
    font-size: 7px;
    margin-top: 5px;
  }
  .nearby {
    display: none;
  }
  .map-tools {
    right: 10px;
    top: 87px;
    gap: 10px;
  }
  .layers {
    gap: 7px;
  }
  .layers button,
  .layers button svg {
    width: 32px;
    height: 32px;
  }
  .layers button svg {
    padding: 7px;
  }
  .layers button span,
  .particles span {
    display: none;
  }
  .zoom {
    flex-direction: column;
  }
  .zoom button {
    width: 30px;
    height: 29px;
  }
  .particles {
    width: 30px;
    height: 30px;
    padding: 7px;
    justify-content: center;
  }
  .map-status {
    top: auto;
    bottom: 138px;
    max-width: calc(100vw - 30px);
    font-size: 10px;
    padding: 5px 9px;
  }
  .legend {
    width: 180px;
    right: 12px;
    bottom: 285px;
  }
  body.forecast-collapsed .legend {
    bottom: 77px;
  }
  .legend-heading {
    font-size: 10px;
    margin-bottom: 4px;
  }
  #legend-bar {
    height: 7px;
  }
  #legend-labels {
    font-size: 9px;
  }
  .forecast-panel {
    left: 4px;
    right: 4px;
    bottom: 16px;
    grid-template-columns: 26px 25px 78px minmax(0, 1fr) 26px;
    column-gap: 6px;
    padding: 0 7px;
  }
  .play {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  .now {
    font-size: 9px;
    padding: 4px 3px;
  }
  .time-selection {
    flex-direction: column;
    gap: 1px;
    align-items: flex-start;
    line-height: 1.1;
    font-size: 8px;
  }
  .time-selection strong {
    font-size: 12px;
  }
  #forecast-toggle {
    padding: 3px;
    justify-content: center;
    height: 30px;
  }
  #forecast-toggle .toggle-label {
    display: none;
  }
  #forecast-toggle svg {
    width: 20px;
    height: 20px;
  }
  #timeline {
    height: 27px;
  }
  #day-labels {
    display: none;
  }
  .forecast-scroll {
    margin: 0 -7px;
    max-height: 180px;
  }
  #forecast-table th,
  #forecast-table td {
    font-size: 10px;
    min-width: 59px;
    padding: 5px 7px;
    height: 26px;
  }
  #forecast-table th {
    font-size: 9px;
    min-width: 93px;
  }
  .forecast-footer {
    min-height: 24px;
    font-size: 8px;
  }
  .footer-detail {
    display: none;
  }
  .leaflet-control-attribution {
    font-size: 8px !important;
  }
  dialog {
    padding: 24px;
  }
  body:not(.forecast-collapsed) .map-status {
    bottom: 315px;
  }
}
@media (max-width: 430px) {
  .brand > span {
    display: none;
  }
  .brand svg {
    width: 29px;
    height: 29px;
  }
  .top-actions {
    top: 37px;
  }
  .left-panel {
    width: calc(100% - 62px);
  }
  #search-form {
    width: 100%;
  }
}
@media (max-height: 650px) and (max-width: 760px) {
  .place-card .wind-caption,
  .place-card .point-status:not(.error),
  .place-card .marine-metrics,
  .place-card .metrics,
  .conditions time {
    display: none;
  }
  .place-card {
    padding-bottom: 9px;
  }
  .smyril-provenance {
    margin-top: 5px;
  }
  body:not(.forecast-collapsed) .smyril-panel {
    display: none;
  }
}
@media (max-height: 500px) and (min-width: 761px) {
  .left-panel {
    width: 245px;
    top: 8px;
    left: 9px;
  }
  #search-form {
    height: 32px;
  }
  .place-card {
    padding: 7px 10px;
    margin-top: 5px;
  }
  .place-card .metrics,
  .place-card .marine-metrics,
  .place-card .wind-caption,
  .place-card .point-status:not(.error),
  .conditions time {
    display: none;
  }
  .place-card h1 {
    font-size: 18px;
  }
  .wind-main {
    margin-top: 6px;
  }
  .wind-number {
    font-size: 31px;
  }
  .conditions {
    top: 27px;
    right: 10px;
  }
  .conditions strong {
    font-size: 23px;
  }
  .weather-icon {
    font-size: 22px;
  }
  .nearby {
    display: none;
  }
  .smyril-panel {
    margin-top: 5px;
  }
  .smyril-heading {
    height: 28px;
  }
  #smyril-body {
    padding: 0 10px 6px;
  }
  .smyril-status {
    font-size: 10px;
    padding-bottom: 5px;
  }
  .smyril-details dt {
    font-size: 8px;
  }
  .smyril-details dd {
    font-size: 10px;
  }
  .smyril-actions {
    margin-top: 5px;
  }
  .smyril-provenance {
    font-size: 7px;
    margin-top: 5px;
  }
  .topbar {
    top: 9px;
  }
  .map-tools {
    top: 48px;
    right: 9px;
    gap: 8px;
  }
  .layers {
    gap: 4px;
  }
  .layers button,
  .layers button svg {
    height: 29px;
  }
  .layers button svg {
    width: 29px;
    padding: 6px;
  }
  .layers button span {
    font-size: 10px;
  }
  .particles {
    padding: 4px 7px;
  }
  .legend {
    bottom: 279px;
    width: 190px;
    right: 12px;
  }
  body.forecast-collapsed .legend {
    bottom: 77px;
  }
  .map-status {
    top: 48px;
    max-width: 290px;
  }
  body:not(.forecast-collapsed) .left-panel .smyril-panel {
    display: none;
  }
  body:not(.forecast-collapsed) .legend {
    display: none;
  }
  .forecast-scroll {
    max-height: 145px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
