@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dm-sans.woff') format('woff');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --card2: #eef2f7;
  --line: #dce3ed;
  --text: #172b46;
  --muted: #52657c;
  --brand: #155ed9;
  --brand-hover: #1049ae;
  --brand-soft: #eaf2ff;
  --brand-line: #9ebdf2;
  --focus: #d6e5ff;
  --good: #167257;
  --warn: #8a5700;
  --bad: #b53636;
  --destination: #b33962;
  --destination-soft: #fcebf1;
  --rail: 380px;
  --header: 82px;
  --sans: 'DM Sans', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
input:focus-visible {
  outline: none;
}
[hidden],
.hidden {
  display: none !important;
}
h2,
h3,
p {
  margin-top: 0;
}
h2,
h3 {
  font-weight: 600;
}
h2 {
  margin-bottom: 0;
}
small,
.hint {
  color: var(--muted);
  font-size: 12px;
}
.shell {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
.header {
  position: absolute;
  inset: 0 0 auto;
  height: var(--header);
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 42px;
  color: var(--brand);
}
.logo svg {
  width: 33px;
  height: 33px;
}
.logo svg path:first-child {
  stroke: currentColor;
}
.logo svg path:last-child {
  fill: currentColor;
}
.brand b {
  display: block;
  font: 750 28px/1.1 var(--sans);
  letter-spacing: -0.9px;
}
.eyebrow {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.1px;
}
.tag {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.tag > span,
.radar-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  display: inline-block;
  flex: none;
}
.tag small {
  font-size: 9px;
  letter-spacing: 1px;
  border-left: 1px solid var(--line);
  padding-left: 10px;
  margin-left: 5px;
}
.region-switch {
  position: absolute;
  z-index: 910;
  top: 0;
  left: calc(var(--rail) + 24px);
  height: var(--header);
  display: flex;
  align-items: stretch;
  gap: 26px;
}
.region-btn {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 0 1px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.region-btn:hover,
.region-btn.selected {
  color: var(--brand);
}
.region-btn.selected {
  border-bottom-color: var(--brand);
  font-weight: 700;
}
.layout {
  height: 100%;
}
.sidebar {
  position: absolute;
  z-index: 800;
  top: var(--header);
  bottom: 0;
  left: 0;
  width: var(--rail);
  padding: 28px 25px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--card);
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: #b6c4d6 transparent;
}
.panel {
  min-width: 0;
  flex-shrink: 0;
}
.sheet-toolbar,
.radar-controls-toggle {
  display: none;
}
.pin-prompt {
  position: absolute;
  z-index: 750;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(100% - 40px);
  padding: 8px 10px 8px 16px;
  background: var(--card);
  border: 1px solid var(--brand);
  border-radius: 7px;
  font-weight: 500;
}
.pin-prompt button {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: var(--card2);
  color: var(--brand);
  font-weight: 600;
}
body.placing-pin .radarcard,
body.placing-pin .mapbuttons {
  visibility: hidden;
}
.section-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.7px;
  font-weight: 700;
  color: var(--brand);
}
.sectiontop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.planner-panel h2 {
  max-width: 285px;
  font: 700 29px/1.18 var(--sans);
  letter-spacing: -0.8px;
}
.planner-intro {
  margin: 12px 0 25px;
  color: var(--muted);
  font-size: 14px;
}
.journey-fields {
  position: relative;
}
.field {
  margin-bottom: 16px;
}
.fieldlabel {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}
.entry {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 55px;
  padding: 7px 10px 7px 14px;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 7px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.entry:focus-within {
  border-color: var(--brand);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--focus);
}
.entry.place-picked {
  border-color: var(--brand-line);
}
.dot {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid #9daec2;
  border-radius: 50%;
  color: var(--muted);
  flex: none;
  font-size: 10px;
  font-weight: 600;
}
.dot.end {
  color: var(--destination);
  border-color: var(--destination);
  background: var(--destination-soft);
  border-radius: 4px;
}
input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  outline: none;
}
.entry input {
  font-size: 14px;
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.clear-place {
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  font-size: 21px;
  font-weight: 400;
  color: var(--muted);
  min-width: 30px;
  min-height: 34px;
  padding: 0;
  border-radius: 4px;
}
.clear-place:hover {
  background: #dce5f1;
  color: var(--brand);
}
.pin-confirmation {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: var(--good);
}
.place-search-help {
  color: var(--muted);
  font-size: 11px;
  margin: -2px 0 12px;
  line-height: 1.5;
}
#locationPrivacy {
  font-size: 11px;
  margin-bottom: 16px;
}
#locationPrivacy summary {
  color: var(--muted);
  width: fit-content;
}
#locationPrivacy p {
  margin: 10px 0;
}
.helpers {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 9px 0 0;
}
.linkbtn {
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  padding: 7px 9px;
  color: var(--brand);
}
.linkbtn:hover {
  background: var(--brand-soft);
}
.helpers .linkbtn {
  flex: 1;
  min-height: 34px;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 4px 8px;
}
.helpers .linkbtn:first-child {
  padding-left: 0;
  text-align: left;
}
.helpers .linkbtn:last-child {
  border: 0;
  text-align: right;
  padding-right: 0;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand);
}
.primary > span {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}
.primary:hover {
  background: var(--brand-hover);
}
.trip-extras {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 7px;
}
.trip-extras .linkbtn {
  padding: 8px 0;
  color: var(--muted);
  font-size: 10px;
}
.trip-extras span {
  margin-left: 5px;
}
.region-info {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.statusline {
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
  line-height: 1.5;
}
.results-panel {
  margin-top: 26px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.results-panel .section-kicker {
  margin-bottom: 10px;
}
.results-panel h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
#routeCount {
  font-size: 10px;
}
.routes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  text-align: left;
  background: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
  font-size: 12px;
}
.route b {
  font-size: 13px;
  font-weight: 600;
}
.route small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.route .count {
  font-size: 10px;
  color: var(--brand);
  white-space: nowrap;
}
.route.on {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  border-left: 3px solid var(--brand);
  padding-left: 10px;
}
.route:hover {
  border-color: var(--brand);
}
.route.empty {
  display: block;
  padding: 15px 0;
  border: 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
}
.radar-route-summary {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
  font-size: 12px;
}
.radar-route-summary h3,
.forecast-heading {
  font-size: 12px;
  margin: 0 0 12px;
  font-weight: 600;
}
.forecast-heading {
  margin-top: 22px;
}
.radar-metrics {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.radar-metrics b {
  display: block;
  font: 700 25px/1.2 var(--sans);
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}
.radar-route-summary details {
  margin-top: 10px;
}
.hint {
  font-size: 11px;
  line-height: 1.6;
}
.notice {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  padding: 12px;
  background: var(--card2);
  border-radius: 5px;
}
.notice strong {
  font-weight: 600;
}
.info-panel {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.info-panel summary {
  font-size: 12px;
  font-weight: 500;
}
.info-panel .notice {
  padding: 10px 0;
  background: none;
  margin: 0 !important;
  font-size: 11px;
}
.summaryhead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 10px;
}
.pill {
  display: inline-block;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 7px;
  color: var(--text);
  background: var(--card2);
}
.pill.good {
  color: var(--good);
  background: #e5f4ed;
}
.pill.warn {
  color: var(--warn);
  background: #fff2d8;
}
.pill.bad {
  color: var(--bad);
  background: #fde9e9;
}
.pill.neutral {
  color: var(--muted);
  background: var(--card2);
}
.pill.unknown {
  color: #536176;
  background: #e9edf3;
}
.time {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}
.segments {
  display: flex;
  height: 5px;
  overflow: hidden;
  gap: 3px;
  margin: 12px 0;
}
.segments span {
  flex: 1;
  background: var(--line);
}
.segments .good {
  background: #568361;
}
.segments .warn {
  background: #d0a447;
}
.segments .bad {
  background: #cc5050;
}
.segmentlist {
  display: flex;
  flex-direction: column;
}
.segmentitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 11px;
}
.segmentitem strong {
  font-weight: 600;
}
.segmentitem small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.segmentitem .v {
  text-align: right;
  font-size: 11px;
}
.v.good {
  color: var(--good);
}
.v.warn {
  color: var(--warn);
}
.v.bad {
  color: var(--bad);
}
.error {
  color: var(--bad);
}
.main {
  position: absolute;
  top: var(--header);
  bottom: 0;
  left: var(--rail);
  right: 0;
  min-width: 0;
}
.mapcard {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#map {
  width: 100%;
  height: 100%;
  background: #aad3df;
}
#map.hujantak-dark-ocean {
  background: #253c44;
}
.leaflet-container {
  font: 12px/1.5 var(--sans);
}
.maphead {
  position: absolute;
  z-index: 700;
  inset: 20px 20px auto;
  display: flex;
  pointer-events: none;
}
.maphead > * {
  pointer-events: auto;
}
.radarcard {
  width: 302px;
  max-width: 100%;
  margin-left: auto;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 5px 24px #172b4612;
}
.radar-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.7px;
  color: var(--brand);
  font-weight: 600;
}
.radar-route-hint {
  display: block;
  text-align: left;
  width: 100%;
  padding: 7px 0 10px;
  margin: 0 0 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 10px;
  color: var(--muted);
}
.radar-route-hint:hover {
  color: var(--brand);
}
.radarcard h3 {
  font: 700 20px/1.2 var(--sans);
  margin: 0 0 4px;
  letter-spacing: -0.4px;
}
.radarcard small {
  display: block;
  font-size: 10px;
  max-width: 200px;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.check input {
  flex: none;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand);
}
.radarcontrols {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
}
.radarcontrols .linkbtn {
  padding: 5px 6px;
  min-height: 30px;
  min-width: 26px;
  font-size: 10px;
  background: var(--card2);
}
input[type='range'] {
  padding: 0;
  height: 24px;
  accent-color: var(--brand);
}
.radarcontrols input {
  flex: 1;
  min-width: 35px;
  width: 60px;
  margin: 0 5px;
}
.radar-settings-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 0 0;
  margin-top: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  background: none;
}
.radar-settings-toggle span {
  font-size: 16px;
  line-height: 1;
}
.radaroptions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 12px;
}
.radaroptions .check {
  min-height: 24px;
}
.radaroptions input[type='range'] {
  width: 120px;
  margin-left: auto;
}
.mapbuttons {
  position: fixed;
  right: 20px;
  bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
  box-shadow: 0 3px 16px #172b4612;
}
.roundbtn {
  display: grid;
  place-items: center;
  padding: 8px;
  min-width: 36px;
  height: 38px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--text);
  font-size: 12px;
}
.roundbtn:hover {
  background: var(--card2);
}
.roundbtn svg {
  width: 19px;
  height: 19px;
}
.mob-routes {
  display: none;
}
.mapfooter {
  position: absolute;
  z-index: 600;
  bottom: 35px;
  left: 20px;
  padding: 12px 14px;
  max-width: 310px;
  background: #fffffff5;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.mapfooter strong {
  display: inline-block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}
.swatch {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}
.circle-icon {
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-radius: 50%;
  background: #38d3a8;
  box-shadow: 0 0 0 4px #38d3a855;
}
.circle-icon.finish {
  background: #fd7f8b;
  box-shadow: 0 0 0 4px #fd7f8b44;
}
.credit {
  position: absolute;
  z-index: 600;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f5f7fbf2;
  padding: 5px 16px;
  text-align: left;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.3;
}
.credit a {
  color: var(--brand);
}
.leaflet-control-attribution {
  font: 9px/1.3 var(--sans) !important;
  background: #fffffff2 !important;
  color: var(--muted) !important;
}
.leaflet-control-attribution a {
  color: var(--brand);
}
.leaflet-control-zoom {
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  margin-bottom: 32px !important;
  margin-right: 20px !important;
}
.leaflet-control-zoom a {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
  font-weight: 400 !important;
}
.hujantak-dark-basemap,
.hujantak-dark-land {
  filter: invert(0.92) hue-rotate(180deg) brightness(0.68) contrast(0.92);
}
.place-search-popup {
  position: fixed;
  z-index: 1500;
  padding: 5px;
  background: var(--card);
  color: var(--text);
  border: 1px solid #bac9dd;
  border-radius: 7px;
  box-shadow: 0 8px 28px #172b461f;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.place-search-heading {
  padding: 8px 10px 3px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}
.place-search-status {
  padding: 4px 10px 10px;
  color: var(--muted);
  font-size: 11px;
}
.place-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 10px;
  text-align: left;
  color: var(--text);
  background: none;
}
.place-option:hover,
.place-option[aria-selected='true'] {
  background: var(--brand-soft);
  border-color: var(--brand-line);
}
.place-option span:last-child {
  min-width: 0;
}
.place-option strong {
  display: block;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.place-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.place-option-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 23px;
  height: 27px;
  color: var(--brand);
  font-size: 17px;
}
.place-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px 5px;
  border-top: 1px solid var(--line);
}
.place-search-footer button {
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  min-height: 28px;
  padding: 3px 0;
}
.place-search-footer a {
  color: var(--muted);
  font-size: 9px;
  text-decoration: none;
}
.mobileonly {
  display: none;
}
.muted {
  color: var(--muted);
}
@media (min-width: 841px) and (max-width: 1120px) {
  :root {
    --rail: 340px;
  }
  .tag {
    display: none;
  }
  .sidebar {
    padding: 24px 22px;
  }
  .region-switch {
    left: calc(var(--rail) + 22px);
  }
  .radarcard {
    width: 270px;
  }
}
@media (max-width: 840px) {
  :root {
    --header: 104px;
    --rail: 0px;
  }
  .header {
    height: 60px;
    padding: 0 17px;
  }
  .brand {
    gap: 8px;
  }
  .brand b {
    font-size: 26px;
  }
  .logo {
    width: 25px;
  }
  .logo svg {
    width: 28px;
  }
  .eyebrow {
    display: none;
  }
  .tag {
    font-size: 10px;
  }
  .tag small {
    display: none;
  }
  .region-switch {
    top: 60px;
    height: 44px;
    left: 0;
    right: 0;
    padding: 0 17px;
    justify-content: space-between;
    gap: 24px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
  }
  .region-btn {
    font-size: 12px;
    padding: 0 5px;
    min-width: 70px;
  }
  .sidebar {
    top: auto;
    bottom: 32px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 19px 20px 20px;
    max-height: 52dvh;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -5px 20px #172b4612;
  }
  .sidebar::before {
    content: none;
  }
  .sheet-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: -19px;
    z-index: 2;
    margin: -19px -4px 12px;
    min-height: 44px;
    background: var(--card);
    color: var(--muted);
    font-size: 12px;
  }
  .sheet-toolbar button {
    min-height: 44px;
    padding: 8px 4px 8px 12px;
    border: 0;
    background: none;
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
  }
  .sheet-toolbar button span {
    margin-left: 6px;
  }
  .sidebar.sheet-collapsed {
    padding-top: 0;
    padding-bottom: 0;
  }
  .sheet-collapsed .sheet-toolbar {
    margin-top: 0;
    margin-bottom: 0;
  }
  .pin-prompt {
    top: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
    font-size: 13px;
  }
  .sidebar .section-kicker {
    display: none;
  }
  .planner-panel h2 {
    font-size: 24px;
    max-width: none;
  }
  .planner-intro {
    display: none;
  }
  .field {
    margin-bottom: 12px;
  }
  .entry {
    min-height: 50px;
  }
  .entry input {
    font-size: 16px;
  }
  .helpers .linkbtn {
    min-height: 44px;
  }
  .clear-place {
    min-width: 44px;
    min-height: 44px;
  }
  .primary {
    min-height: 48px;
  }
  .sidebar .results-panel,
  .sidebar .info-panel {
    display: none;
  }
  body.mobile-routes-open .sidebar .planner-panel {
    display: none;
  }
  body.mobile-routes-open .sidebar .results-panel {
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
  }
  .main {
    left: 0;
  }
  .maphead {
    inset: 12px 12px auto;
  }
  .radarcard {
    width: 260px;
    padding: 11px 13px;
    margin: 0;
    max-height: max(110px, calc(100dvh - var(--header) - var(--sheet-height, 52dvh) - 44px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .radar-title {
    display: none;
  }
  .radar-controls-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    margin-top: 5px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
  }
  .radar-controls-toggle span {
    font-size: 18px;
  }
  .radar-route-hint {
    font-size: 9px;
    margin-bottom: 8px;
    padding-bottom: 7px;
  }
  .radarcard h3 {
    font-size: 19px;
  }
  .radarcard small {
    font-size: 11px;
  }
  .radarcard .check {
    min-height: 44px;
  }
  .radarcontrols {
    margin-top: 9px;
    display: grid;
    grid-template-columns: 36px minmax(35px, 1fr) 36px;
  }
  .radarcontrols .linkbtn {
    min-height: 44px;
    font-size: 12px;
  }
  .radarcontrols input {
    width: 100%;
    margin: 0;
  }
  #radarPlay {
    grid-column: span 2;
  }
  .radar-settings-toggle {
    margin-top: 8px;
    padding-top: 7px;
    min-height: 44px;
    font-size: 12px;
  }
  .radaroptions .check {
    min-height: 44px;
  }
  .mapbuttons {
    top: calc(var(--header) + 12px);
    bottom: auto;
    right: 12px;
  }
  .roundbtn {
    min-width: 40px;
    height: 44px;
  }
  .mob-routes {
    display: grid;
    font-size: 9px;
    font-weight: 600;
  }
  .mapfooter,
  .credit,
  .leaflet-control-zoom {
    display: none;
  }
  .leaflet-control-attribution {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    text-align: right;
    padding: 4px 5px !important;
    min-height: 32px;
    font-size: 8px !important;
  }
  .results-panel .sectiontop {
    margin-bottom: 12px;
  }
}
@media (max-width: 360px) {
  .tag {
    font-size: 9px;
  }
  .sidebar {
    padding-left: 15px;
    padding-right: 15px;
  }
  .radarcard {
    width: calc(100vw - 88px);
  }
  .planner-panel h2 {
    font-size: 22px;
    letter-spacing: -0.6px;
  }
  .sidebar .sectiontop {
    margin-bottom: 10px;
  }
  .field {
    margin-bottom: 10px;
  }
  .entry {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .region-switch {
    padding: 0 12px;
    gap: 12px;
  }
  .region-btn {
    min-width: 60px;
  }
}
@media (max-height: 650px) and (max-width: 840px) {
  .sidebar {
    max-height: 50dvh;
  }
  .radarcard {
    width: 245px;
  }
  .radar-title {
    display: none;
  }
  .radar-route-hint {
    padding-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
