
    .mapper-tutorial-launch{
      width:100%; min-height:38px; border-radius:14px; border:1px solid #bfdbfe;
      background:var(--accent-soft); color:var(--accent-strong);
      font-size:12px; font-weight:900; letter-spacing:.01em; cursor:pointer;
      box-shadow:0 8px 18px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.06);
    }
    #mapTitleLogo:not([src]),#mapTitleLogo[src=""]{display:none !important}
    .layer-note{font-size:9px;line-height:1.25;color:var(--muted)}
    .toggle[role="switch"]{cursor:pointer;outline:none}
    .toggle[role="switch"]:focus-visible{box-shadow:0 0 0 3px rgba(125,249,255,.32)}
    .timeline-interval-toggle{
      grid-template-columns:repeat(3,minmax(0,1fr)) !important;
      width:190px !important; min-width:190px !important;
    }
    .mapper-tutorial{position:fixed;inset:0;z-index:20000;pointer-events:none}
    .mapper-tutorial[hidden]{display:none !important}
    .mapper-tutorial-spotlight{
      position:fixed;left:0;top:0;width:1px;height:1px;border:3px solid #7df9ff;border-radius:18px;
      box-shadow:0 0 0 9999px rgba(2,6,23,.78),0 0 0 7px rgba(125,249,255,.18),0 16px 45px rgba(0,0,0,.4);
      transition:left .24s ease,top .24s ease,width .24s ease,height .24s ease;pointer-events:none;
    }
    .mapper-tutorial-card{
      position:fixed;z-index:20002;width:min(390px,calc(100vw - 28px));max-height:min(520px,calc(100vh - 28px));overflow:auto;
      padding:20px;border:1px solid rgba(125,249,255,.4);border-radius:22px;background:rgba(8,15,31,.98);color:#edf7ff;
      box-shadow:0 26px 85px rgba(0,0,0,.58);pointer-events:auto;
    }
    .mapper-tutorial-head,.mapper-tutorial-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
    .mapper-tutorial-progress{font-size:11px;font-weight:900;color:#7df9ff;text-transform:uppercase;letter-spacing:.09em}
    .mapper-tutorial-close{width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:22px;cursor:pointer}
    .mapper-tutorial-card h2{margin:12px 0 8px;font-size:23px;line-height:1.08}
    .mapper-tutorial-body{color:#cbdaf2;font-size:14px;line-height:1.55}
    .mapper-tutorial-body p{margin:0 0 10px}.mapper-tutorial-body strong{color:#fff}
    .mapper-tutorial-actions{margin-top:18px}
    .mapper-tutorial-actions button{min-width:94px;min-height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#dbeafe;font-weight:850;cursor:pointer}
    .mapper-tutorial-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
    #mapperTutorialNext{background:#2563eb;border-color:#60a5fa;color:#fff !important}
    .mapper-tutorial-actions button:disabled{opacity:.35;cursor:default}
    .house-alert-popup{color:#0f172a;min-width:275px;max-width:340px;font:13px/1.35 Inter,system-ui,sans-serif}
    .house-alert-popup h3{margin:0 0 2px;font-size:17px}
    .house-alert-stat{display:grid;grid-template-columns:1fr auto;gap:8px;padding:7px 0;border-top:1px solid #e2e8f0}.house-alert-stat strong{font-size:15px}
    .house-alert-table{width:100%;border-collapse:collapse;margin-top:8px;font-size:11px;text-align:right}.house-alert-table th:first-child,.house-alert-table td:first-child{text-align:left}
    .house-alert-table th,.house-alert-table td{padding:4px;border-bottom:1px solid #e2e8f0}.house-alert-note{margin-top:8px;color:#64748b;font-size:10px;line-height:1.35}
    .depth-query-popup{color:#0f172a;min-width:240px;max-width:calc(100vw - 70px);font:16px/1.25 Inter,system-ui,sans-serif;text-align:center}.depth-query-popup h3{margin:0 0 10px;font-size:20px}.depth-query-value{font-size:48px;line-height:1;font-weight:950;color:#0b4f94;letter-spacing:-.03em}
    .leaflet-popup-pane{z-index:800 !important}
    .shorely-flood-popup .leaflet-popup-content-wrapper{
      border:1px solid rgba(125,249,255,.34);border-radius:18px;
      background:rgba(8,15,31,.97);color:#edf7ff;
      box-shadow:0 20px 55px rgba(2,6,23,.48),inset 0 1px 0 rgba(255,255,255,.05);
    }
    .shorely-flood-popup .leaflet-popup-content{margin:16px 18px 17px}
    .shorely-flood-popup .leaflet-popup-tip{background:#08101f;border:1px solid rgba(125,249,255,.2)}
    .shorely-flood-popup .leaflet-popup-close-button{top:5px!important;right:7px!important;width:30px!important;height:30px!important;color:#d8f9ff!important;font-size:23px!important}
    .shorely-flood-popup .depth-query-popup,.shorely-flood-popup .house-alert-popup,.shorely-flood-popup .town-address-popup,.shorely-flood-popup .nsi-structure-popup{color:#edf7ff}
    .shorely-flood-popup .depth-query-popup h3{color:#c9d8ee}
    .shorely-flood-popup .depth-query-value{color:#7df9ff}
    .house-alert-popup{min-width:min(300px,calc(100vw - 92px));max-width:340px;color:#edf7ff}
    .house-alert-popup .house-alert-kicker{display:block;margin-bottom:4px;color:#7df9ff;font-size:10px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
    .house-alert-popup h3{margin:0 30px 4px 0;color:#fff;font-size:18px;line-height:1.15}
    .house-alert-summary{display:flex;align-items:baseline;gap:7px;margin-bottom:13px;padding:11px 12px;border:1px solid rgba(125,249,255,.18);border-radius:13px;background:rgba(14,116,144,.15)}
    .house-alert-summary strong{color:#fff;font-size:27px;line-height:1}.house-alert-summary span{color:#c7d7ec;font-size:12px;font-weight:800}
    .house-alert-elevation{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:8px 0 7px;color:#a9bad3;font-size:10px;font-weight:800}
    .house-alert-elevation strong{color:#7df9ff;font-size:13px;white-space:nowrap}
    .house-alert-popup .house-alert-note,.nsi-structure-popup .house-alert-note{margin:0 0 11px;color:#9fb2ca;font-size:9px;line-height:1.35}
    .house-alert-cta{width:100%;min-height:42px;border:1px solid rgba(125,249,255,.42);border-radius:12px;background:rgba(125,249,255,.09);color:#d9fdff;font-size:12px;font-weight:950;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 9px 22px rgba(2,6,23,.2)}
    .house-alert-cta:hover,.house-alert-cta:focus-visible{border-color:#7df9ff;background:rgba(125,249,255,.15);color:#fff}
    .nsi-structure-popup{min-width:min(270px,calc(100vw - 92px));max-width:330px}
    .nsi-structure-popup .house-alert-kicker{display:block;margin-bottom:4px;color:#7df9ff;font-size:10px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
    .nsi-structure-popup h3{margin:0 30px 9px 0;color:#fff;font-size:17px;line-height:1.15}
    .nsi-structure-grid{display:grid;grid-template-columns:1fr auto;gap:5px 12px;margin-bottom:10px;padding:10px 11px;border:1px solid rgba(125,249,255,.17);border-radius:12px;background:rgba(14,116,144,.12);color:#a9bad3;font-size:10px}
    .nsi-structure-grid strong{color:#fff;text-align:right}
    .nsi-impact-status{margin-bottom:8px;padding:7px 9px;border-radius:9px;background:rgba(15,31,54,.82);color:#d8e5f5;font-size:10px;font-weight:850;line-height:1.3}
    .map-click-mode-control{position:fixed;z-index:780;left:50%;display:grid;grid-auto-flow:column;grid-auto-columns:auto;align-items:center;gap:4px;padding:5px;border:1px solid rgba(125,249,255,.26);border-radius:14px;background:rgba(8,15,31,.94);box-shadow:0 14px 38px rgba(2,6,23,.42),inset 0 1px 0 rgba(255,255,255,.05);backdrop-filter:blur(14px);transform:translateX(-50%);white-space:nowrap}
    .map-click-mode-control[hidden]{display:none!important}
    .map-click-mode-label{padding:0 5px 0 7px;color:#8fa5bf;font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
    .map-click-mode-control button{min-height:31px;padding:0 11px;border:1px solid transparent;border-radius:9px;background:transparent;color:#a9bad3;font-size:10px;font-weight:900;cursor:pointer}
    .map-click-mode-control button.active{border-color:rgba(125,249,255,.42);background:rgba(125,249,255,.12);color:#e5feff;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
    .map-click-mode-control button:focus-visible{outline:2px solid #7df9ff;outline-offset:1px}
    .map-click-mode-control button[hidden]{display:none!important}
    .flood-history-backdrop{position:fixed;inset:0;z-index:24000;display:grid;place-items:center;padding:18px;background:rgba(2,6,23,.62);backdrop-filter:blur(4px)}
    .flood-history-backdrop[hidden]{display:none!important}
    .flood-history-pane{position:relative;width:min(540px,calc(100vw - 36px));max-height:min(82dvh,680px);display:flex;flex-direction:column;overflow:hidden;color:#edf7ff;background:linear-gradient(180deg,#0a1427 0%,#07101f 100%);border:1px solid rgba(125,249,255,.28);border-radius:20px;box-shadow:0 28px 90px rgba(2,6,23,.72);animation:floodHistoryIn .18s ease-out}
    @keyframes floodHistoryIn{from{transform:translateY(10px) scale(.975);opacity:.25}to{transform:none;opacity:1}}
    .flood-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:15px 16px 13px;border-bottom:1px solid rgba(148,163,184,.14);background:rgba(8,15,31,.88)}
    .flood-history-head h2{margin:0;color:#fff;font-size:19px;line-height:1.1;letter-spacing:-.025em}
    .flood-history-head p{max-width:400px;margin:4px 0 0;overflow:hidden;color:#8fa5bf;font-size:10px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
    .flood-history-close{flex:0 0 auto;width:31px;height:31px;border:1px solid rgba(255,255,255,.13);border-radius:9px;background:rgba(255,255,255,.06);color:#fff;font-size:21px;line-height:1;cursor:pointer}
    .flood-history-body{flex:1;min-height:0;overflow:auto;padding:13px 15px max(14px,env(safe-area-inset-bottom))}
    .flood-history-loading{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#a9bad3;text-align:center;font-size:11px}
    .flood-history-loading strong{color:#fff;font-size:13px}.flood-history-spinner{width:30px;height:30px;border:3px solid rgba(125,249,255,.18);border-top-color:#7df9ff;border-radius:50%;animation:floodHistorySpin .8s linear infinite}
    @keyframes floodHistorySpin{to{transform:rotate(360deg)}}
    .flood-history-summary{display:flex;align-items:center;justify-content:center;gap:16px;padding:10px 12px;border:1px solid rgba(125,249,255,.14);border-radius:13px;background:rgba(15,31,54,.72)}
    .flood-summary-item{display:flex;align-items:baseline;gap:6px;min-width:0}.flood-summary-item strong{color:#fff;font-size:21px;line-height:1;letter-spacing:-.035em}.flood-summary-item span{color:#a9bad3;font-size:10px;font-weight:800;white-space:nowrap}
    .flood-history-section{margin-top:10px;padding:12px;border:1px solid rgba(148,163,184,.13);border-radius:15px;background:rgba(13,26,47,.68)}
    .flood-history-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}.flood-history-section h3{margin:0;color:#fff;font-size:13px}.flood-history-section-head p{margin:2px 0 0;color:#8095af;font-size:9px}
    .flood-scenario-field{display:grid;gap:2px;flex:0 0 180px;color:#7df9ff;font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
    .flood-scenario-select{width:100%;height:31px;padding:0 28px 0 9px;border:1px solid rgba(125,249,255,.28);border-radius:9px;background:#101d32;color:#fff;font:800 10px/1 Inter,system-ui,sans-serif;cursor:pointer}
    .flood-projection-chart{display:block;width:100%;height:auto;overflow:visible}
    .flood-chart-grid{stroke:rgba(148,163,184,.18);stroke-width:1}.flood-chart-axis{fill:#8095af;font-size:9px;font-family:Inter,system-ui,sans-serif}.flood-chart-band{fill:var(--scenario-color,#7df9ff);opacity:.14}.flood-chart-line{fill:none;stroke:var(--scenario-color,#7df9ff);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.flood-chart-dot{fill:#07101f;stroke:var(--scenario-color,#7df9ff);stroke-width:3}
    .flood-year-control{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:11px;align-items:center;margin-top:5px}.flood-year-control input{width:100%;accent-color:var(--scenario-color,#7df9ff)}
    .flood-year-readout{display:grid;grid-template-columns:auto 1fr;column-gap:6px;align-items:baseline;padding:7px 9px;border:1px solid rgba(125,249,255,.16);border-radius:10px;background:rgba(2,6,23,.34);text-align:right}.flood-year-readout span{color:#7df9ff;font-size:9px;font-weight:900}.flood-year-readout strong{color:#fff;font-size:14px}.flood-year-readout small{grid-column:1/-1;color:#91a5bd;font-size:8px}
    .flood-history-error{padding:16px;border:1px solid rgba(251,113,133,.3);border-radius:14px;background:rgba(159,18,57,.12);color:#fecdd3;font-size:11px;line-height:1.5}
    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      .map-click-mode-control{width:max-content;max-width:calc(100vw - 20px);padding:4px;border-radius:13px}
      .map-click-mode-label{display:none}.map-click-mode-control button{min-height:34px;padding:0 13px;font-size:10px}
      .timeline-interval-toggle{width:168px !important;min-width:168px !important}
      .timeline-interval-toggle button{font-size:9px !important;padding:0 3px !important}
      .mapper-tutorial-card{left:14px !important;right:14px !important;bottom:14px !important;top:auto !important;width:auto;max-height:42vh}
      .flood-history-backdrop{padding:12px;background:rgba(2,6,23,.68)}
      .flood-history-pane{width:min(520px,calc(100vw - 24px));max-height:min(86dvh,640px);border-radius:17px}
      .flood-history-head{padding:13px 14px 11px}.flood-history-head h2{font-size:17px}.flood-history-body{padding:11px 12px max(12px,env(safe-area-inset-bottom))}
      .flood-history-summary{gap:10px;padding:9px 10px}.flood-summary-item strong{font-size:18px}.flood-summary-item span{font-size:9px}
      .flood-history-section{padding:10px}.flood-history-section-head{align-items:flex-end}.flood-scenario-field{flex-basis:156px}.flood-year-control{grid-template-columns:minmax(0,1fr) 132px}
    }
    @media (max-width:360px){.timeline-interval-toggle{width:154px !important;min-width:154px !important}}



:root{
  --pj-all-slider-row-inset:32px;
}

#timelineDock .timeline-trackRow{
  width:calc(100% - (2 * var(--pj-all-slider-row-inset))) !important;
  max-width:calc(100% - (2 * var(--pj-all-slider-row-inset))) !important;
  margin-left:var(--pj-all-slider-row-inset) !important;
  margin-right:var(--pj-all-slider-row-inset) !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

#timelineDock #hourSlider{
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse) {
  :root{ --pj-all-slider-row-inset:22px; }
}

@media (max-width: 520px){
  :root{ --pj-all-slider-row-inset:18px; }
}



:root{
  --pj-ui-left-width:340px;
  --pj-ui-right-width:250px;
  --pj-ui-legend-width:212px;
}


@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  #leftPanel{
    width:var(--pj-ui-left-width) !important;
    max-width:calc(100vw - 32px) !important;
    gap:12px !important;
  }

  .panel-card{
    padding:14px 16px !important;
    border-radius:21px !important;
  }

  .compact-card{
    padding:12px 14px !important;
  }

  .datum-card,
  .opacity-card{
    min-height:146px !important;
  }

  .brand{
    min-height:130px !important;
  }

  .section-title h2,
  .rail-head h3{
    font-size:16px !important;
    line-height:1.16 !important;
  }

  .section-kicker,
  .muted,
  .range-label,
  .range-value{
    font-size:12.5px !important;
    line-height:1.38 !important;
  }

  button,
  select{
    min-height:46px !important;
    font-size:14.5px !important;
    border-radius:15px !important;
  }

  button{
    padding:10px 14px !important;
  }

  .button-grid-3 button,
  .segmented-control button,
  .datum-card .segmented-control button,
  .export-segmented button{
    min-height:42px !important;
    font-size:14px !important;
    padding:9px 11px !important;
  }

  .segmented-control button .datum-offset{
    font-size:10.5px !important;
  }

  .snapshot-card .stat-box,
  .stat-box{
    padding:18px 20px !important;
    border-radius:21px !important;
    gap:8px !important;
  }

  .stat-label{
    font-size:12.5px !important;
    line-height:1.12 !important;
  }

  .stat-value{
    font-size:24px !important;
    line-height:1.04 !important;
  }

  .stat-sub{
    font-size:12.5px !important;
    line-height:1.35 !important;
  }

  #timeText{
    font-size:clamp(17px, 1.4vw, 22px) !important;
  }

  #stageText{
    font-size:clamp(27px, 2.08vw, 35px) !important;
  }

  .calendar-title-btn,
  .day-nav-center{
    font-size:15px !important;
  }

  .calendar-head div{
    font-size:14px !important;
  }

  .calendar-day{
    min-height:48px !important;
    font-size:16px !important;
  }

  .calendar-key-item{
    min-height:38px !important;
    font-size:13px !important;
  }

  #legendDock{
    left:calc(16px + var(--pj-ui-left-width) + 16px) !important;
    width:var(--pj-ui-legend-width) !important;
    padding:14px !important;
    border-radius:25px !important;
  }

  .legend-title{
    font-size:15.5px !important;
    line-height:1.15 !important;
    margin-bottom:8px !important;
  }

  .legend-list{
    gap:8px !important;
  }

  .legend-row{
    grid-template-columns:17px minmax(0,1fr) !important;
    gap:10px !important;
    font-size:12.5px !important;
    line-height:1.28 !important;
    font-weight:820 !important;
  }

  .legend-swatch{
    width:15px !important;
    height:15px !important;
    border-radius:6px !important;
  }

  .legend-swatch.legend-line{
    width:17px !important;
    border-top-width:4px !important;
  }

  #rightRail{
    width:var(--pj-ui-right-width) !important;
    min-width:var(--pj-ui-right-width) !important;
    max-width:var(--pj-ui-right-width) !important;
    gap:14px !important;
  }

  .rail-card{
    padding:14px !important;
    border-radius:18px !important;
  }

  .rail-head{
    margin-bottom:10px !important;
  }

  .pill,
  .badge{
    min-height:26px !important;
    padding:0 10px !important;
    font-size:11.5px !important;
  }

  .layer-list,
  .top-tide-list{
    gap:10px !important;
  }

  .layer-item{
    padding:12px 14px !important;
    border-radius:16px !important;
    gap:10px !important;
  }

  .layer-name{
    font-size:14px !important;
    line-height:1.2 !important;
  }

  .top-tide-item{
    padding:14px 12px !important;
    border-radius:17px !important;
    gap:6px !important;
  }

  .top-tides-card .rail-head h3{
    font-size:17px !important;
  }

  .top-tide-rank{
    font-size:13px !important;
  }

  .top-tide-main{
    font-size:18px !important;
    line-height:1.08 !important;
  }

  .top-tide-sub{
    font-size:14.5px !important;
    line-height:1.32 !important;
  }

  .right-rail-note,
  .download-launch-meta,
  .town-address-status{
    font-size:12.5px !important;
    line-height:1.45 !important;
  }

  .town-address-label{
    font-size:11.5px !important;
  }

  .town-address-input{
    min-height:44px !important;
    font-size:13.5px !important;
  }

  .right-rail-action,
  .town-address-btn,
  .town-address-clear-btn,
  .download-launch-btn{
    min-height:46px !important;
    font-size:13.5px !important;
  }
}


.export-stage-legend{
  width:var(--pj-ui-legend-width) !important;
  padding:14px !important;
}

.export-stage-legend .legend-title{
  font-size:15.5px !important;
}

.export-stage-legend .legend-row{
  grid-template-columns:17px minmax(0,1fr) !important;
  gap:10px !important;
  font-size:12.5px !important;
  line-height:1.28 !important;
}

.export-stage-legend .legend-swatch{
  width:15px !important;
  height:15px !important;
}


@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  html.os-windows,
  html.win-compact-ui{
    --win-left-width:340px !important;
    --win-right-width:250px !important;
    --win-bottom-y:122px !important;
    --win-ui-zoom:1 !important;
  }

  html.os-windows #leftPanel,
  html.win-compact-ui #leftPanel,
  html.os-windows body.observed-mode #leftPanel,
  html.win-compact-ui body.observed-mode #leftPanel,
  html.os-windows body.observed-mode.calendar-picker-open #leftPanel,
  html.win-compact-ui body.observed-mode.calendar-picker-open #leftPanel{
    width:340px !important;
    min-width:340px !important;
    max-width:340px !important;
    gap:10px !important;
    zoom:1 !important;
  }

  html.os-windows #leftPanel .panel-card,
  html.win-compact-ui #leftPanel .panel-card,
  html.os-windows #leftPanel .compact-card,
  html.win-compact-ui #leftPanel .compact-card,
  html.os-windows #leftPanel .snapshot-card,
  html.win-compact-ui #leftPanel .snapshot-card,
  html.os-windows #leftPanel .calendar-card.active,
  html.win-compact-ui #leftPanel .calendar-card.active,
  html.os-windows #leftPanel .opacity-card,
  html.win-compact-ui #leftPanel .opacity-card{
    padding:12px 14px !important;
    border-radius:18px !important;
  }

  html.os-windows .section-title h2,
  html.win-compact-ui .section-title h2,
  html.os-windows .rail-head h3,
  html.win-compact-ui .rail-head h3,
  html.os-windows .legend-title,
  html.win-compact-ui .legend-title{
    font-size:15px !important;
    line-height:1.16 !important;
  }

  html.os-windows button,
  html.win-compact-ui button,
  html.os-windows select,
  html.win-compact-ui select,
  html.os-windows .segmented-control button,
  html.win-compact-ui .segmented-control button,
  html.os-windows .datum-card .segmented-control button,
  html.win-compact-ui .datum-card .segmented-control button{
    min-height:40px !important;
    padding:8px 10px !important;
    font-size:13.5px !important;
    border-radius:13px !important;
  }

  html.os-windows .stat-label,
  html.win-compact-ui .stat-label{
    font-size:11.5px !important;
  }

  html.os-windows #timeText,
  html.win-compact-ui #timeText{
    font-size:16px !important;
  }

  html.os-windows #stageText,
  html.win-compact-ui #stageText{
    font-size:24px !important;
  }

  html.os-windows #timeSubText,
  html.win-compact-ui #timeSubText,
  html.os-windows .stat-sub,
  html.win-compact-ui .stat-sub,
  html.os-windows .muted,
  html.win-compact-ui .muted{
    font-size:12px !important;
  }

  html.os-windows #legendDock,
  html.win-compact-ui #legendDock,
  html.os-windows #legendDock.map-floating,
  html.win-compact-ui #legendDock.map-floating,
  html.os-windows #legendDock.legend-card,
  html.win-compact-ui #legendDock.legend-card,
  html.os-windows body.observed-mode #legendDock,
  html.win-compact-ui body.observed-mode #legendDock,
  html.os-windows body.calendar-picker-open #legendDock,
  html.win-compact-ui body.calendar-picker-open #legendDock{
    left:372px !important;
    width:212px !important;
    max-width:212px !important;
    padding:14px !important;
    zoom:1 !important;
  }

  html.os-windows .legend-row,
  html.win-compact-ui .legend-row{
    grid-template-columns:17px minmax(0,1fr) !important;
    gap:10px !important;
    font-size:12px !important;
    line-height:1.28 !important;
  }

  html.os-windows .legend-swatch,
  html.win-compact-ui .legend-swatch{
    width:14px !important;
    height:14px !important;
  }

  html.os-windows #rightRail,
  html.win-compact-ui #rightRail,
  html.os-windows body.observed-mode #rightRail,
  html.win-compact-ui body.observed-mode #rightRail,
  html.os-windows body.calendar-picker-open #rightRail,
  html.win-compact-ui body.calendar-picker-open #rightRail{
    width:250px !important;
    min-width:250px !important;
    max-width:250px !important;
    gap:12px !important;
    zoom:1 !important;
  }

  html.os-windows #rightRail .rail-card,
  html.win-compact-ui #rightRail .rail-card{
    padding:13px !important;
    border-radius:17px !important;
  }

  html.os-windows .layer-item,
  html.win-compact-ui .layer-item{
    padding:11px 12px !important;
    border-radius:15px !important;
  }

  html.os-windows .layer-name,
  html.win-compact-ui .layer-name{
    font-size:13.5px !important;
  }

  html.os-windows .pill,
  html.win-compact-ui .pill,
  html.os-windows .badge,
  html.win-compact-ui .badge{
    min-height:24px !important;
    font-size:11px !important;
  }

  html.os-windows .top-tide-item,
  html.win-compact-ui .top-tide-item{
    padding:12px 11px !important;
    border-radius:16px !important;
    gap:5px !important;
  }

  html.os-windows .top-tide-main,
  html.win-compact-ui .top-tide-main{
    font-size:17px !important;
  }

  html.os-windows .top-tide-sub,
  html.win-compact-ui .top-tide-sub{
    font-size:13.5px !important;
  }

  html.os-windows .top-tide-rank,
  html.win-compact-ui .top-tide-rank{
    font-size:12px !important;
  }

  html.os-windows .leaflet-top.leaflet-right .leaflet-control-zoom,
  html.win-compact-ui .leaflet-top.leaflet-right .leaflet-control-zoom{
    margin-right:272px !important;
    zoom:1 !important;
  }
}


@media (min-width:761px) and (max-width:1320px){
  #leftPanel{
    gap:10px !important;
  }

  .panel-card,
  .rail-card{
    padding:12px !important;
    border-radius:18px !important;
  }

  .section-title h2,
  .rail-head h3{
    font-size:15px !important;
  }

  button,
  select,
  .segmented-control button{
    min-height:42px !important;
    font-size:14px !important;
  }

  .stat-label{
    font-size:12px !important;
  }

  #timeText{
    font-size:17px !important;
  }

  #stageText{
    font-size:25px !important;
  }

  .top-tide-main{
    font-size:19px !important;
  }

  .top-tide-sub{
    font-size:15px !important;
  }
}


@media (max-width:760px){
  #leftPanel{
    font-size:15px !important;
    gap:10px !important;
  }

  #leftPanel .panel-card,
  #leftPanel .rail-card,
  #leftPanel #legendDock{
    padding:12px !important;
    border-radius:18px !important;
  }

  #leftPanel .section-title h2,
  #leftPanel .rail-head h3{
    font-size:15px !important;
    line-height:1.18 !important;
  }

  #leftPanel .section-kicker,
  #leftPanel .muted,
  #leftPanel .range-label,
  #leftPanel .range-value,
  #leftPanel .stat-sub{
    font-size:12px !important;
    line-height:1.36 !important;
  }

  #leftPanel button,
  #leftPanel select,
  #leftPanel input[type="datetime-local"],
  #leftPanel .segmented-control button{
    min-height:42px !important;
    font-size:14px !important;
    border-radius:14px !important;
  }

  #leftPanel .snapshot-card .stat-box,
  #leftPanel .stat-box{
    padding:14px 15px !important;
    border-radius:18px !important;
    gap:6px !important;
  }

  #leftPanel .stat-label{
    font-size:11.5px !important;
  }

  #leftPanel #timeText{
    font-size:16px !important;
  }

  #leftPanel #stageText{
    font-size:24px !important;
  }

  #leftPanel .top-tide-item,
  #leftPanel .layer-item{
    padding:12px !important;
    border-radius:16px !important;
    gap:7px !important;
  }

  #leftPanel .layer-name{
    font-size:14px !important;
  }

  #leftPanel .top-tide-rank{
    font-size:12px !important;
  }

  #leftPanel .top-tide-main{
    font-size:18px !important;
  }

  #leftPanel .top-tide-sub{
    font-size:14px !important;
  }

  body.mobile-optimized #legendDock .legend-title,
  #leftPanel #legendDock .legend-title{
    font-size:15px !important;
    line-height:1.15 !important;
  }

  body.mobile-optimized #legendDock .legend-row,
  #leftPanel #legendDock .legend-row{
    grid-template-columns:16px minmax(0,1fr) !important;
    gap:9px !important;
    font-size:12px !important;
    line-height:1.25 !important;
  }

  body.mobile-optimized #legendDock .legend-swatch,
  #leftPanel #legendDock .legend-swatch{
    width:14px !important;
    height:14px !important;
    border-radius:6px !important;
  }
}

@media (max-width:420px){
  #leftPanel .panel-card,
  #leftPanel .rail-card,
  #leftPanel #legendDock{
    padding:11px !important;
  }

  #leftPanel .section-title h2,
  #leftPanel .rail-head h3{
    font-size:14.5px !important;
  }

  #leftPanel button,
  #leftPanel select,
  #leftPanel input[type="datetime-local"],
  #leftPanel .segmented-control button{
    min-height:40px !important;
    font-size:13.5px !important;
  }

  #leftPanel #timeText{
    font-size:15.5px !important;
  }

  #leftPanel #stageText{
    font-size:23px !important;
  }

  body.mobile-optimized #legendDock .legend-row,
  #leftPanel #legendDock .legend-row{
    font-size:11.5px !important;
  }
}



:root{
  --pj-right-rail-width-final:250px;
  --pj-zoom-clearance-final:302px;
}


#rightRail{
  pointer-events:none !important;
  z-index:1350 !important;
}

#rightRail .rail-card,
#rightRail button,
#rightRail a,
#rightRail input,
#rightRail select,
#rightRail textarea{
  pointer-events:auto !important;
}

#downloadCard,
#rightRail #downloadCard,
#rightRail .download-launch-card{
  display:grid !important;
  grid-template-rows:auto auto auto !important;
  gap:10px !important;
  min-height:126px !important;
  height:auto !important;
  overflow:visible !important;
  cursor:pointer !important;
  position:relative !important;
  z-index:30 !important;
}

#downloadCard .rail-head,
#rightRail #downloadCard .rail-head{
  margin-bottom:0 !important;
}

#downloadCard .download-launch-meta,
#rightRail #downloadCard .download-launch-meta{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  font-size:12.5px !important;
  line-height:1.38 !important;
}

#openDownloadModalBtn,
#downloadCard .download-launch-btn,
#rightRail #downloadCard .download-launch-btn{
  display:inline-flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  width:100% !important;
  min-height:46px !important;
  align-items:center !important;
  justify-content:center !important;
  padding:10px 12px !important;
  font-size:13.5px !important;
  line-height:1.1 !important;
  border-radius:15px !important;
  position:relative !important;
  z-index:35 !important;
}

#downloadCard:hover #openDownloadModalBtn{
  border-color:rgba(191,219,254,.65) !important;
  background:rgba(96,165,250,.20) !important;
}


@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  #rightRail,
  body.observed-mode #rightRail,
  body.calendar-picker-open #rightRail,
  body.observed-mode.calendar-picker-open #rightRail{
    width:var(--pj-right-rail-width-final) !important;
    min-width:var(--pj-right-rail-width-final) !important;
    max-width:var(--pj-right-rail-width-final) !important;
  }

  .leaflet-top.leaflet-right .leaflet-control-zoom{
    margin-top:104px !important;
    margin-right:var(--pj-zoom-clearance-final) !important;
    z-index:1320 !important;
  }
}


@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  html.os-windows .leaflet-top.leaflet-right .leaflet-control-zoom,
  html.win-compact-ui .leaflet-top.leaflet-right .leaflet-control-zoom{
    margin-top:104px !important;
    margin-right:var(--pj-zoom-clearance-final) !important;
    zoom:1 !important;
  }

  html.os-windows #downloadCard,
  html.win-compact-ui #downloadCard,
  html.os-windows #rightRail #downloadCard,
  html.win-compact-ui #rightRail #downloadCard{
    min-height:124px !important;
    gap:9px !important;
  }

  html.os-windows #openDownloadModalBtn,
  html.win-compact-ui #openDownloadModalBtn{
    min-height:44px !important;
    font-size:13px !important;
  }
}


@media (min-width:761px) and (max-width:1320px){
  .leaflet-top.leaflet-right .leaflet-control-zoom{
    margin-top:108px !important;
    margin-right:calc(var(--pj-right-rail-width-final) + 36px) !important;
  }
}


@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  body.mobile-optimized #mobileRailMount > #downloadCard,
  body.mobile-optimized #mobileRailMount > .download-launch-card,
  body.mobile-optimized #mobileRailMount > .download-card{
    display:grid !important;
    grid-template-rows:auto auto auto !important;
    gap:10px !important;
    min-height:126px !important;
    overflow:visible !important;
    cursor:pointer !important;
  }

  body.mobile-optimized #openDownloadModalBtn,
  body.mobile-optimized #downloadCard .download-launch-btn{
    display:inline-flex !important;
    min-height:44px !important;
    font-size:13.5px !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }

  body.mobile-optimized .leaflet-top.leaflet-right .leaflet-control-zoom{
    margin-top:70px !important;
    margin-right:10px !important;
    z-index:1320 !important;
  }
}



:root{
  --pj-final-left-width:356px;
  --pj-final-right-width:260px;
  --pj-final-rail-gap:14px;
  --pj-final-side-margin:16px;
  --pj-final-zoom-gap-from-rail:20px;
}

@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  #leftPanel,
  body.observed-mode #leftPanel,
  body.calendar-picker-open #leftPanel,
  body.observed-mode.calendar-picker-open #leftPanel{
    width:var(--pj-final-left-width) !important;
    min-width:var(--pj-final-left-width) !important;
    max-width:var(--pj-final-left-width) !important;
    gap:11px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    scrollbar-gutter:stable !important;
    zoom:1 !important;
  }

  #rightRail,
  body.observed-mode #rightRail,
  body.calendar-picker-open #rightRail,
  body.observed-mode.calendar-picker-open #rightRail{
    width:var(--pj-final-right-width) !important;
    min-width:var(--pj-final-right-width) !important;
    max-width:var(--pj-final-right-width) !important;
    right:var(--pj-final-side-margin) !important;
    gap:var(--pj-final-rail-gap) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    scrollbar-gutter:stable !important;
    zoom:1 !important;
  }

  #legendDock,
  body.observed-mode #legendDock,
  body.calendar-picker-open #legendDock{
    left:calc(var(--pj-final-side-margin) + var(--pj-final-left-width) + 16px) !important;
  }
}


#leftPanel .panel-card,
#leftPanel .compact-card,
#leftPanel .datum-card,
#leftPanel .opacity-card,
#leftPanel .snapshot-card,
#leftPanel .calendar-card.active{
  overflow:visible !important;
}

#leftPanel .section-title,
#leftPanel .range-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  min-width:0 !important;
  overflow:visible !important;
}

#leftPanel .section-title h2,
#leftPanel .range-label{
  min-width:0 !important;
  flex:1 1 auto !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

#leftPanel .section-kicker,
#leftPanel .range-value,
#leftPanel .pill,
#leftPanel .badge{
  flex:0 0 auto !important;
  min-width:max-content !important;
  max-width:none !important;
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
  line-height:1.12 !important;
}

#leftPanel .section-kicker,
#leftPanel .range-value{
  min-height:26px !important;
  padding:0 10px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(255,255,255,.055) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  font-size:11.5px !important;
  font-weight:900 !important;
}


#leftPanel .opacity-card{
  padding-left:14px !important;
  padding-right:14px !important;
  padding-bottom:14px !important;
}

#leftPanel .opacity-card .control-row,
#leftPanel .control-row:has(input[type="range"]){
  overflow:visible !important;
  padding:0 5px 3px !important;
}

#leftPanel input[type="range"]{
  display:block !important;
  width:calc(100% - 10px) !important;
  margin-left:5px !important;
  margin-right:5px !important;
  overflow:visible !important;
}


#rightRail .rail-card,
#rightRail .download-card,
#rightRail .download-launch-card,
#rightRail .town-address-card,
#rightRail .top-tides-card,
#rightRail .layers-card,
#rightRail .right-logo-card{
  overflow:visible !important;
  box-sizing:border-box !important;
}


#downloadCard,
#rightRail #downloadCard,
#rightRail .download-launch-card{
  display:grid !important;
  grid-template-rows:auto auto auto !important;
  align-content:start !important;
  gap:12px !important;
  min-height:156px !important;
  height:auto !important;
  padding:16px !important;
  overflow:visible !important;
  cursor:pointer !important;
}

#downloadCard .rail-head,
#rightRail #downloadCard .rail-head{
  margin:0 !important;
  min-height:22px !important;
}

#downloadCard .rail-head h3,
#rightRail #downloadCard .rail-head h3{
  font-size:16px !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
}

#downloadCard .download-launch-meta,
#rightRail #downloadCard .download-launch-meta{
  display:block !important;
  min-height:34px !important;
  margin:0 !important;
  font-size:12.5px !important;
  line-height:1.38 !important;
  overflow:visible !important;
}

#openDownloadModalBtn,
#downloadCard .download-launch-btn,
#rightRail #downloadCard .download-launch-btn{
  display:flex !important;
  width:100% !important;
  min-height:48px !important;
  height:auto !important;
  padding:11px 14px !important;
  margin:0 !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:16px !important;
  font-size:13.5px !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
  overflow:visible !important;
  transform:none !important;
}


@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  .leaflet-top.leaflet-right .leaflet-control-zoom,
  html.os-mac .leaflet-top.leaflet-right .leaflet-control-zoom,
  html.os-windows .leaflet-top.leaflet-right .leaflet-control-zoom,
  html.win-compact-ui .leaflet-top.leaflet-right .leaflet-control-zoom{
    margin-top:18px !important;
    margin-right:calc(var(--pj-final-side-margin) + var(--pj-final-right-width) + var(--pj-final-zoom-gap-from-rail)) !important;
    z-index:1340 !important;
    zoom:1 !important;
  }

  .leaflet-top.leaflet-right .leaflet-control-zoom a,
  html.os-windows .leaflet-top.leaflet-right .leaflet-control-zoom a,
  html.win-compact-ui .leaflet-top.leaflet-right .leaflet-control-zoom a{
    width:42px !important;
    height:42px !important;
    line-height:42px !important;
    font-size:23px !important;
  }
}


@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  html.os-windows,
  html.win-compact-ui{
    --win-left-width:var(--pj-final-left-width) !important;
    --win-right-width:var(--pj-final-right-width) !important;
    --win-ui-zoom:1 !important;
  }

  html.os-windows #leftPanel,
  html.win-compact-ui #leftPanel{
    width:var(--pj-final-left-width) !important;
    min-width:var(--pj-final-left-width) !important;
    max-width:var(--pj-final-left-width) !important;
  }

  html.os-windows #rightRail,
  html.win-compact-ui #rightRail{
    width:var(--pj-final-right-width) !important;
    min-width:var(--pj-final-right-width) !important;
    max-width:var(--pj-final-right-width) !important;
  }

  html.os-windows #downloadCard,
  html.win-compact-ui #downloadCard{
    min-height:156px !important;
    padding:16px !important;
  }
}


@media (min-width:761px) and (max-width:1320px){
  :root{
    --pj-final-left-width:340px;
    --pj-final-right-width:246px;
  }

  #downloadCard,
  #rightRail #downloadCard,
  #rightRail .download-launch-card{
    min-height:152px !important;
    padding:15px !important;
  }

  .leaflet-top.leaflet-right .leaflet-control-zoom{
    margin-top:18px !important;
    margin-right:calc(var(--pj-final-side-margin) + var(--pj-final-right-width) + 18px) !important;
  }
}


@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  body.mobile-optimized #leftPanel,
  body.mobile-optimized #mobileRailMount{
    overflow-x:hidden !important;
  }

  body.mobile-optimized #mobileRailMount > #downloadCard,
  body.mobile-optimized #mobileRailMount > .download-launch-card,
  body.mobile-optimized #mobileRailMount > .download-card{
    min-height:150px !important;
    padding:15px !important;
    gap:11px !important;
    overflow:visible !important;
  }

  body.mobile-optimized #openDownloadModalBtn,
  body.mobile-optimized #downloadCard .download-launch-btn{
    min-height:46px !important;
    padding:11px 14px !important;
    white-space:normal !important;
  }

  body.mobile-optimized #leftPanel .section-kicker,
  body.mobile-optimized #leftPanel .range-value{
    min-height:25px !important;
    padding:0 9px !important;
    font-size:11px !important;
  }

  body.mobile-optimized #leftPanel input[type="range"]{
    width:calc(100% - 12px) !important;
    margin-left:6px !important;
    margin-right:6px !important;
  }

  body.mobile-optimized .leaflet-top.leaflet-right .leaflet-control-zoom{
    margin-top:72px !important;
    margin-right:10px !important;
    z-index:1340 !important;
  }
}



:root{
  --pj-right-rail-fit-gap:9px;
  --pj-right-rail-fit-width:260px;
}


#rightRail{
  width:var(--pj-right-rail-fit-width) !important;
  gap:var(--pj-right-rail-fit-gap) !important;
  top:16px !important;
  bottom:112px !important;
  padding:0 !important;
  overflow-y:visible !important;
  overflow-x:visible !important;
  scrollbar-width:none !important;
}

#rightRail::-webkit-scrollbar{
  width:0 !important;
  height:0 !important;
  display:none !important;
}

#rightRail .rail-card{
  border-radius:17px !important;
  padding:12px !important;
  overflow:visible !important;
}


#rightRail .client-logo-card,
#rightRail .logo-card,
#rightRail .brand-logo-card{
  min-height:70px !important;
  max-height:74px !important;
  padding:11px 14px !important;
  display:grid !important;
  place-items:center !important;
}

#rightRail img,
#rightRail .client-logo-card img,
#rightRail .logo-card img,
#rightRail .brand-logo-card img{
  max-height:52px !important;
  object-fit:contain !important;
}


#rightRail .top-tides-card{
  padding:12px !important;
  gap:8px !important;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
}

#rightRail .top-tides-card .rail-head{
  margin-bottom:4px !important;
}

#rightRail .top-tides-card .rail-head h3{
  font-size:17px !important;
  line-height:1.05 !important;
  letter-spacing:-.035em !important;
}

#rightRail .top-tide-list{
  gap:8px !important;
  overflow:visible !important;
  max-height:none !important;
  padding:0 !important;
}

#rightRail .top-tide-item{
  min-height:72px !important;
  padding:9px 9px !important;
  border-radius:14px !important;
  gap:3px !important;
}

#rightRail .top-tide-rank{
  font-size:10px !important;
  line-height:1.05 !important;
  letter-spacing:.04em !important;
}

#rightRail .top-tide-main{
  font-size:15px !important;
  line-height:1.04 !important;
  letter-spacing:-.025em !important;
}

#rightRail .top-tide-sub{
  font-size:11px !important;
  line-height:1.15 !important;
}

#rightRail .top-tide-more-btn,
#rightRail .right-rail-action{
  min-height:42px !important;
  padding:8px 10px !important;
  border-radius:13px !important;
  font-size:13px !important;
  line-height:1.1 !important;
}


#rightRail .layer-list{
  gap:7px !important;
}

#rightRail .layer-item{
  min-height:46px !important;
  padding:8px 10px !important;
  border-radius:13px !important;
}

#rightRail .layer-name{
  font-size:12px !important;
  line-height:1.1 !important;
}

#rightRail .toggle{
  width:40px !important;
  height:23px !important;
}

#rightRail .toggle::after{
  width:17px !important;
  height:17px !important;
}

#rightRail .toggle.on::after{
  left:20px !important;
}

#rightRail #downloadCard,
#rightRail .download-launch-card,
#rightRail .download-card{
  min-height:0 !important;
  padding:12px !important;
  gap:8px !important;
  overflow:visible !important;
}

#rightRail #downloadCard .rail-head,
#rightRail .download-launch-card .rail-head{
  margin-bottom:3px !important;
}

#rightRail .download-launch-meta,
#rightRail .right-rail-note{
  font-size:12px !important;
  line-height:1.28 !important;
  margin:0 !important;
}

#rightRail #openDownloadModalBtn,
#rightRail #downloadCard .download-launch-btn,
#rightRail .download-launch-btn{
  min-height:42px !important;
  padding:9px 12px !important;
  border-radius:13px !important;
  font-size:13px !important;
  line-height:1.1 !important;
}

#rightRail .town-address-card{
  padding:12px !important;
  gap:8px !important;
  overflow:visible !important;
}

#rightRail .town-address-card .rail-head h3{
  font-size:15px !important;
  line-height:1.05 !important;
}

#rightRail .town-address-form{
  gap:6px !important;
}

#rightRail .town-address-label{
  font-size:10px !important;
}

#rightRail .town-address-input{
  min-height:40px !important;
  font-size:12px !important;
}

#rightRail .town-address-btn,
#rightRail .town-address-clear-btn{
  min-height:42px !important;
  font-size:12px !important;
  line-height:1.05 !important;
}


.leaflet-top.leaflet-right{
  top:16px !important;
  right:calc(var(--pj-right-rail-fit-width) + 44px) !important;
  z-index:1450 !important;
}

.leaflet-top.leaflet-right .leaflet-control-zoom{
  margin-top:2px !important;
  margin-right:0 !important;
  border-radius:17px !important;
  overflow:hidden !important;
  box-shadow:0 16px 32px rgba(15,23,42,.20) !important;
}

.leaflet-control-zoom a{
  width:43px !important;
  height:43px !important;
  line-height:43px !important;
  font-size:23px !important;
}


#leftPanel{
  overflow-x:hidden !important;
}

#leftPanel .panel-card,
#leftPanel .compact-card,
#leftPanel .snapshot-card{
  overflow:visible !important;
}

#leftPanel .section-title{
  min-width:0 !important;
  gap:9px !important;
}

#leftPanel .section-title h2{
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

#leftPanel .section-kicker,
#leftPanel .range-value,
#leftPanel .pill,
#leftPanel .badge{
  flex:0 0 auto !important;
  max-width:46% !important;
  min-width:48px !important;
  min-height:24px !important;
  padding:0 9px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  border-radius:999px !important;
  font-size:10.5px !important;
  line-height:24px !important;
}

#leftPanel input[type="range"]{
  width:calc(100% - 16px) !important;
  margin-left:8px !important;
  margin-right:8px !important;
}


html.os-windows #rightRail,
html.win-compact-ui #rightRail{
  width:var(--pj-right-rail-fit-width) !important;
  gap:8px !important;
  overflow-y:visible !important;
  scrollbar-width:none !important;
  transform:none !important;
}

html.os-windows #rightRail .top-tide-item,
html.win-compact-ui #rightRail .top-tide-item{
  min-height:68px !important;
  padding:8px 8px !important;
}

html.os-windows #rightRail .top-tide-main,
html.win-compact-ui #rightRail .top-tide-main{
  font-size:14px !important;
}

html.os-windows .leaflet-top.leaflet-right,
html.win-compact-ui .leaflet-top.leaflet-right{
  top:16px !important;
  right:calc(var(--pj-right-rail-fit-width) + 44px) !important;
}


@media (max-height:850px) and (min-width:901px) and (not (any-pointer:coarse)), (max-height:850px) and (min-width:1367px) {
  #rightRail{
    gap:8px !important;
    bottom:104px !important;
  }

  #rightRail .rail-card{
    padding:11px !important;
  }

  #rightRail .client-logo-card,
  #rightRail .logo-card,
  #rightRail .brand-logo-card{
    min-height:64px !important;
    max-height:68px !important;
    padding:9px 13px !important;
  }

  #rightRail img,
  #rightRail .client-logo-card img,
  #rightRail .logo-card img,
  #rightRail .brand-logo-card img{
    max-height:48px !important;
  }

  #rightRail .top-tides-card .rail-head h3{
    font-size:16px !important;
  }

  #rightRail .top-tide-list{
    gap:7px !important;
  }

  #rightRail .top-tide-item{
    min-height:66px !important;
    padding:7px 8px !important;
    border-radius:13px !important;
  }

  #rightRail .top-tide-rank{
    font-size:9.5px !important;
  }

  #rightRail .top-tide-main{
    font-size:14px !important;
  }

  #rightRail .top-tide-sub{
    font-size:10.5px !important;
  }

  #rightRail .layer-item{
    min-height:42px !important;
    padding:7px 9px !important;
  }

  #rightRail #openDownloadModalBtn,
  #rightRail #downloadCard .download-launch-btn,
  #rightRail .download-launch-btn,
  #rightRail .top-tide-more-btn,
  #rightRail .right-rail-action{
    min-height:39px !important;
    padding:7px 10px !important;
  }

  #rightRail .download-launch-meta,
  #rightRail .right-rail-note{
    font-size:11.5px !important;
    line-height:1.22 !important;
  }

  #rightRail .town-address-input{
    min-height:37px !important;
  }

  #rightRail .town-address-btn,
  #rightRail .town-address-clear-btn{
    min-height:38px !important;
  }
}


@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  #rightRail{
    overflow-y:auto !important;
    overflow-x:hidden !important;
    scrollbar-width:none !important;
  }

  body.mobile-optimized .leaflet-top.leaflet-right{
    top:72px !important;
    right:10px !important;
  }

  body.mobile-optimized .leaflet-top.leaflet-right .leaflet-control-zoom{
    margin-top:0 !important;
    margin-right:0 !important;
  }
}


@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  :root{
    --pj-logo-rail-width-final:260px;
    --pj-logo-rail-right-final:16px;
    --pj-zoom-logo-gap-final:14px;
    --pj-zoom-top-final:64px;
  }

  .leaflet-top.leaflet-right{
    top:0 !important;
    right:0 !important;
    z-index:1600 !important;
    pointer-events:none !important;
  }

  .leaflet-top.leaflet-right .leaflet-control-zoom,
  html.os-mac .leaflet-top.leaflet-right .leaflet-control-zoom,
  html.os-windows .leaflet-top.leaflet-right .leaflet-control-zoom,
  html.win-compact-ui .leaflet-top.leaflet-right .leaflet-control-zoom{
    position:fixed !important;
    top:var(--pj-zoom-top-final) !important;
    right:calc(var(--pj-logo-rail-right-final) + var(--pj-logo-rail-width-final) + var(--pj-zoom-logo-gap-final)) !important;
    left:auto !important;
    bottom:auto !important;
    margin:0 !important;
    transform:none !important;
    zoom:1 !important;
    z-index:1601 !important;
    pointer-events:auto !important;
    border-radius:17px !important;
    overflow:hidden !important;
    box-shadow:0 16px 32px rgba(15,23,42,.22) !important;
  }

  .leaflet-top.leaflet-right .leaflet-control-zoom a,
  html.os-mac .leaflet-top.leaflet-right .leaflet-control-zoom a,
  html.os-windows .leaflet-top.leaflet-right .leaflet-control-zoom a,
  html.win-compact-ui .leaflet-top.leaflet-right .leaflet-control-zoom a{
    width:43px !important;
    height:43px !important;
    line-height:43px !important;
    font-size:23px !important;
  }
}

@media (min-width:901px) and (min-height:561px) and (max-width:1320px) and (not (any-pointer:coarse)), (min-width:901px) and (pointer:fine) and (max-width:1320px) and (not (any-pointer:coarse)), (min-width:901px) and (pointer:none) and (max-width:1320px) and (not (any-pointer:coarse)) {
  :root{
    --pj-logo-rail-width-final:246px;
    --pj-zoom-logo-gap-final:12px;
  }
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  body.mobile-optimized .leaflet-top.leaflet-right{
    top:0 !important;
    right:0 !important;
    pointer-events:none !important;
  }

  body.mobile-optimized .leaflet-top.leaflet-right .leaflet-control-zoom{
    position:fixed !important;
    top:72px !important;
    right:10px !important;
    left:auto !important;
    bottom:auto !important;
    margin:0 !important;
    transform:none !important;
    zoom:1 !important;
    z-index:1601 !important;
    pointer-events:auto !important;
  }
}


:root{
  --pj-equal-left-pane-width:var(--pj-final-left-width, 340px);
}

@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  #leftPanel,
  body.observed-mode #leftPanel,
  body:not(.observed-mode) #leftPanel,
  body.calendar-picker-open #leftPanel,
  body.observed-mode.calendar-picker-open #leftPanel,
  body.observed-tight #leftPanel,
  body.observed-ultra-tight #leftPanel,
  body.observed-fit-tight #leftPanel,
  body.observed-fit-ultra #leftPanel,
  html.os-mac #leftPanel,
  html.os-windows #leftPanel,
  html.win-compact-ui #leftPanel{
    left:16px !important;
    width:var(--pj-equal-left-pane-width) !important;
    min-width:var(--pj-equal-left-pane-width) !important;
    max-width:var(--pj-equal-left-pane-width) !important;
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:none !important;
    align-items:stretch !important;
    align-content:stretch !important;
    gap:11px !important;
    padding:0 4px 4px 0 !important;
    overflow-x:hidden !important;
    transform:none !important;
    scale:1 !important;
    zoom:1 !important;
  }

  #leftPanel > .panel-card,
  #leftPanel > .compact-card,
  #leftPanel > .calendar-card,
  #leftPanel > .calendar-card.active,
  #leftPanel > .datum-card,
  #leftPanel > .opacity-card,
  #leftPanel > .data-source-card,
  #leftPanel > .forecast-scenario-card,
  #leftPanel > .overlay-card{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }


  #leftPanel > .snapshot-card{
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }

  #legendDock,
  body.observed-mode #legendDock,
  body:not(.observed-mode) #legendDock,
  body.calendar-picker-open #legendDock,
  body.observed-mode.calendar-picker-open #legendDock{
    left:calc(16px + var(--pj-equal-left-pane-width) + 16px) !important;
  }
}

@media (min-width:761px) and (max-width:1320px){
  :root{ --pj-equal-left-pane-width:var(--pj-final-left-width, 340px); }
}



@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  :root{
    --pj-stable-left-width:356px;
    --pj-stable-right-width:260px;
    --pj-stable-bottom-reserve:112px;
  }


  html body #leftPanel,
  html body.observed-mode #leftPanel,
  html body:not(.observed-mode) #leftPanel,
  html body.calendar-picker-open #leftPanel,
  html body.observed-mode.calendar-picker-open #leftPanel,
  html.os-mac body #leftPanel,
  html.os-mac body.observed-mode #leftPanel,
  html.os-windows body #leftPanel,
  html.os-windows body.observed-mode #leftPanel,
  html.win-compact-ui body #leftPanel,
  html.win-compact-ui body.observed-mode #leftPanel{
    position:fixed !important;
    top:16px !important;
    left:16px !important;
    bottom:var(--pj-stable-bottom-reserve) !important;
    width:var(--pj-stable-left-width) !important;
    min-width:var(--pj-stable-left-width) !important;
    max-width:var(--pj-stable-left-width) !important;
    max-height:calc(100vh - 16px - var(--pj-stable-bottom-reserve)) !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    align-content:flex-start !important;
    justify-content:flex-start !important;
    gap:8px !important;
    padding:0 4px 6px 0 !important;
    margin:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    scrollbar-gutter:auto !important;
    background:transparent !important;
    border:0 !important;
    transform:none !important;
    z-index:1250 !important;
  }

  html body #leftPanel > .panel-card,
  html body #leftPanel > .compact-card,
  html body #leftPanel > .calendar-card,
  html body #leftPanel > .calendar-card.active,
  html body.observed-mode #leftPanel > .panel-card,
  html body.observed-mode #leftPanel > .compact-card,
  html body.observed-mode #leftPanel > .calendar-card,
  html body.observed-mode #leftPanel > .calendar-card.active{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    margin:0 !important;
    flex:0 0 auto !important;
  }


  html body #leftPanel .section-title h2,
  html body.observed-mode #leftPanel .section-title h2,
  html body #leftPanel button,
  html body.observed-mode #leftPanel button,
  html body #leftPanel select,
  html body.observed-mode #leftPanel select,
  html body #leftPanel .pill,
  html body.observed-mode #leftPanel .pill{
    font-size:14px !important;
    line-height:1.12 !important;
  }

  html body #leftPanel .section-title h2,
  html body.observed-mode #leftPanel .section-title h2{
    font-size:15px !important;
    font-weight:900 !important;
    letter-spacing:-.025em !important;
  }

  html body #leftPanel .button-grid-2 button,
  html body.observed-mode #leftPanel .button-grid-2 button,
  html body #leftPanel .button-grid-3 button,
  html body.observed-mode #leftPanel .button-grid-3 button,
  html body #leftPanel .segmented-control button,
  html body.observed-mode #leftPanel .segmented-control button{
    min-height:42px !important;
    font-size:14px !important;
    font-weight:850 !important;
    padding:9px 10px !important;
  }


  html body.observed-mode #leftPanel > .forecast-scenario-card{
    display:none !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }


  html body #leftPanel > .snapshot-card,
  html body.observed-mode #leftPanel > .snapshot-card,
  html body.observed-mode.calendar-picker-open #leftPanel > .snapshot-card,
  html body.observed-tight #leftPanel > .snapshot-card,
  html body.observed-ultra-tight #leftPanel > .snapshot-card,
  html body.observed-fit-tight #leftPanel > .snapshot-card,
  html body.observed-fit-ultra #leftPanel > .snapshot-card{
    order:99 !important;
    display:none !important;
    visibility:hidden !important;
    flex:0 0 0 !important;
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    overflow:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }


  html body.observed-mode #leftPanel > #calendarCard.calendar-card.active,
  html body.observed-mode.calendar-picker-open #leftPanel > #calendarCard.calendar-card.active{
    display:grid !important;
    gap:7px !important;
    padding:9px 10px !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }

  html body.observed-mode #leftPanel .calendar-toolbar,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-toolbar{
    grid-template-columns:36px minmax(0,1fr) 36px !important;
    gap:5px !important;
  }
  html body.observed-mode #leftPanel .calendar-toolbar > button,
  html body.observed-mode #leftPanel .calendar-title-btn,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-toolbar > button,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-title-btn{
    min-height:34px !important;
    height:34px !important;
    padding:0 8px !important;
    border-radius:12px !important;
    font-size:12.5px !important;
    font-weight:900 !important;
  }
  html body.observed-mode #leftPanel .calendar-head,
  html body.observed-mode #leftPanel .calendar-grid,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-head,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-grid{
    gap:4px !important;
  }
  html body.observed-mode #leftPanel .calendar-head div,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-head div{
    font-size:11px !important;
    line-height:1 !important;
    padding:1px 0 !important;
  }
  html body.observed-mode #leftPanel .calendar-day,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-day{
    min-height:28px !important;
    height:28px !important;
    border-radius:9px !important;
    font-size:12px !important;
    font-weight:850 !important;
    padding:0 !important;
  }
  html body.observed-mode #leftPanel .day-nav,
  html body.observed-mode.calendar-picker-open #leftPanel .day-nav{
    grid-template-columns:36px minmax(0,1fr) 36px !important;
    gap:5px !important;
  }
  html body.observed-mode #leftPanel .calendar-nav-btn,
  html body.observed-mode #leftPanel .day-nav-center,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-nav-btn,
  html body.observed-mode.calendar-picker-open #leftPanel .day-nav-center{
    min-height:36px !important;
    height:36px !important;
    padding:0 8px !important;
    border-radius:12px !important;
    font-size:13px !important;
    font-weight:900 !important;
  }
  html body.observed-mode #leftPanel .calendar-key-item,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-key-item{
    min-height:25px !important;
    height:25px !important;
    padding:0 7px !important;
    font-size:10.5px !important;
    line-height:1 !important;
    gap:5px !important;
  }


  html body #leftPanel > .opacity-card,
  html body.observed-mode #leftPanel > .opacity-card,
  html body.observed-mode.calendar-picker-open #leftPanel > .opacity-card{
    position:relative !important;
    top:auto !important;
    bottom:auto !important;
    margin:0 !important;
    flex:0 0 auto !important;
    min-height:62px !important;
    height:62px !important;
    max-height:62px !important;
    padding:8px 12px 9px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    gap:4px !important;
    overflow:visible !important;
  }

  html body #leftPanel > .opacity-card .section-title,
  html body.observed-mode #leftPanel > .opacity-card .section-title{
    min-height:20px !important;
    margin:0 !important;
  }
  html body #leftPanel > .opacity-card .control-row,
  html body.observed-mode #leftPanel > .opacity-card .control-row{
    padding:0 5px !important;
    gap:0 !important;
  }


  html body #leftPanel > #legendDock,
  html body #leftPanel > #legendDock.left-lower-legend-card,
  html body #leftPanel > #legendDock.legend-card,
  html body #leftPanel > #legendDock.map-floating,
  html body #leftPanel > #legendDock.rail-card,
  html body.observed-mode #leftPanel > #legendDock,
  html body.observed-mode.calendar-picker-open #leftPanel > #legendDock,
  html.os-mac body #leftPanel > #legendDock,
  html.os-windows body #leftPanel > #legendDock,
  html.win-compact-ui body #leftPanel > #legendDock{
    display:block !important;
    position:relative !important;
    float:none !important;
    clear:both !important;
    inset:auto !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    translate:none !important;
    scale:1 !important;
    zoom:1 !important;
    z-index:auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:10px 12px 12px !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    pointer-events:auto !important;
    background:rgba(11,18,32,.94) !important;
    border:1px solid rgba(255,255,255,.11) !important;
    border-radius:18px !important;
    box-shadow:0 12px 24px rgba(15,23,42,.20) !important;
    backdrop-filter:blur(14px) !important;
    -webkit-backdrop-filter:blur(16px) !important;
  }

  html body #leftPanel #legendDock .legend-header{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    margin:0 0 7px !important;
  }
  html body #leftPanel #legendDock .legend-title{
    margin:0 !important;
    font-size:15px !important;
    line-height:1.05 !important;
    letter-spacing:-.03em !important;
    font-weight:900 !important;
  }
  html body #leftPanel #legendDock .legend-header-actions{
    display:flex !important;
    gap:5px !important;
  }
  html body #leftPanel #legendDock .legend-help-btn,
  html body #leftPanel #legendDock .legend-collapse-btn,
  html body #leftPanel #legendDock .legend-expand-btn{
    width:24px !important;
    min-width:24px !important;
    height:24px !important;
    min-height:24px !important;
    padding:0 !important;
    font-size:12px !important;
    line-height:24px !important;
    border-radius:999px !important;
  }
  html body #leftPanel #legendDock .legend-body{
    display:block !important;
    max-height:none !important;
    overflow:visible !important;
    padding:0 !important;
    margin:0 !important;
  }
  html body #leftPanel #legendDock .legend-list{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:4px 9px !important;
    align-items:start !important;
  }
  html body #leftPanel #legendDock .legend-row{
    display:grid !important;
    grid-template-columns:10px minmax(0,1fr) !important;
    gap:6px !important;
    align-items:center !important;
    min-width:0 !important;
    font-size:10.8px !important;
    line-height:1.04 !important;
    font-weight:900 !important;
    letter-spacing:-.025em !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
  }
  html body #leftPanel #legendDock .legend-label{
    overflow:hidden !important;
    text-overflow:clip !important;
    white-space:nowrap !important;
  }
  html body #leftPanel #legendDock .legend-swatch{
    width:9px !important;
    height:9px !important;
    border-radius:999px !important;
    margin:0 !important;
  }
  html body #leftPanel #legendDock .legend-row.legend-row-boundary{
    grid-column:1 / -1 !important;
    margin-top:5px !important;
    padding-top:7px !important;
    border-top:1px solid rgba(255,255,255,.12) !important;
    font-size:15px !important;
    line-height:1.1 !important;
  }
  html body #leftPanel #legendDock .legend-swatch.legend-line{
    width:22px !important;
    height:0 !important;
    border:none !important;
    border-top:4px solid var(--boundary-color) !important;
    border-radius:999px !important;
  }
  html body #leftPanel #legendDock .legend-note,
  html body #leftPanel #legendDock .legend-sub,
  html body #leftPanel #legendDock .legend-drag-hint{
    display:none !important;
  }


  html body #rightRail > #legendDock,
  html body #mobileRailMount > #legendDock,
  html body #timelineDock > #legendDock{
    display:none !important;
  }


  html body #rightRail,
  html body.observed-mode #rightRail,
  html body:not(.observed-mode) #rightRail,
  html body.calendar-picker-open #rightRail,
  html body.observed-mode.calendar-picker-open #rightRail,
  html.os-mac body #rightRail,
  html.os-mac body.observed-mode #rightRail,
  html.os-windows body #rightRail,
  html.os-windows body.observed-mode #rightRail,
  html.win-compact-ui body #rightRail,
  html.win-compact-ui body.observed-mode #rightRail{
    position:fixed !important;
    top:16px !important;
    right:16px !important;
    bottom:var(--pj-stable-bottom-reserve) !important;
    left:auto !important;
    width:var(--pj-stable-right-width) !important;
    min-width:var(--pj-stable-right-width) !important;
    max-width:var(--pj-stable-right-width) !important;
    height:auto !important;
    min-height:0 !important;
    max-height:calc(100vh - 16px - var(--pj-stable-bottom-reserve)) !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    align-content:flex-start !important;
    justify-content:flex-start !important;
    gap:10px !important;
    padding:0 !important;
    margin:0 !important;
    overflow-y:visible !important;
    overflow-x:visible !important;
    scrollbar-gutter:auto !important;
    scrollbar-width:none !important;
    transform:none !important;
    translate:none !important;
    scale:1 !important;
    zoom:1 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    pointer-events:none !important;
    z-index:1250 !important;
  }
  html body #rightRail::-webkit-scrollbar{
    display:none !important;
    width:0 !important;
    height:0 !important;
  }
  html body #rightRail > .rail-card,
  html body.observed-mode #rightRail > .rail-card{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    flex:0 0 auto !important;
    margin:0 !important;
    pointer-events:auto !important;
  }

  html body #rightRail .right-logo-card,
  html body.observed-mode #rightRail .right-logo-card{
    height:74px !important;
    min-height:74px !important;
    max-height:74px !important;
    padding:11px 14px !important;
    display:grid !important;
    place-items:center !important;
  }
  html body #rightRail .right-rail-logo,
  html body.observed-mode #rightRail .right-rail-logo{
    max-height:52px !important;
    width:auto !important;
    max-width:100% !important;
    object-fit:contain !important;
  }

  html body #rightRail .layers-card,
  html body.observed-mode #rightRail .layers-card{
    min-height:118px !important;
    height:auto !important;
    padding:12px !important;
  }

  html body #rightRail .top-tides-card,
  html body.observed-mode #rightRail .top-tides-card{
    padding:12px !important;
    gap:8px !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }

  html body #rightRail .top-tide-item,
  html body.observed-mode #rightRail .top-tide-item{
    min-height:70px !important;
    height:70px !important;
    padding:8px 9px !important;
    border-radius:14px !important;
    gap:3px !important;
  }

  html body #rightRail #downloadCard,
  html body #rightRail .download-launch-card,
  html body.observed-mode #rightRail #downloadCard,
  html body.observed-mode #rightRail .download-launch-card{
    min-height:112px !important;
    height:auto !important;
    padding:12px !important;
    gap:8px !important;
  }

  html body #rightRail #townAddressCard,
  html body #rightRail .town-address-card,
  html body.observed-mode #rightRail #townAddressCard,
  html body.observed-mode #rightRail .town-address-card{
    min-height:146px !important;
    height:auto !important;
    padding:12px !important;
    gap:8px !important;
  }

  html body .leaflet-top.leaflet-right,
  html body.observed-mode .leaflet-top.leaflet-right,
  html.os-mac body .leaflet-top.leaflet-right,
  html.os-windows body .leaflet-top.leaflet-right{
    top:16px !important;
    right:calc(16px + var(--pj-stable-right-width) + 14px) !important;
    transform:none !important;
  }
}


@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body #leftPanel #legendDock .legend-title{
    font-size:15px !important;
  }
  html body #leftPanel #legendDock .legend-row{
    font-size:11px !important;
    line-height:1.08 !important;
  }
}



    #legendDock .legend-row.legend-row-boundary,
    #legendDock .legend-swatch.legend-line,
    #legendDock .legend-boundary-label{
      display:none !important;
      visibility:hidden !important;
      width:0 !important;
      height:0 !important;
      margin:0 !important;
      padding:0 !important;
      border:0 !important;
      overflow:hidden !important;
    }



    html body #timelineDock,
    html body.observed-mode #timelineDock,
    html.os-mac body #timelineDock,
    html.os-windows body #timelineDock{
      padding-top:44px !important;
      overflow:visible !important;
    }

    html body #timelineBubble,
    html body.observed-mode #timelineBubble,
    html.os-mac body #timelineBubble,
    html.os-windows body #timelineBubble{
      top:-26px !important;
      min-height:28px !important;
      padding:7px 16px !important;
      border-radius:22px !important;
      font-size:20px !important;
      line-height:1 !important;
      font-weight:950 !important;
      letter-spacing:-.02em !important;
      white-space:nowrap !important;
      max-width:calc(100vw - 96px) !important;
      overflow:hidden !important;
      text-overflow:ellipsis !important;
      box-shadow:0 14px 26px rgba(0,0,0,.32) !important;
      z-index:1405 !important;
    }

    html body #timelineBubble::after,
    html body.observed-mode #timelineBubble::after,
    html.os-mac body #timelineBubble::after,
    html.os-windows body #timelineBubble::after{
      bottom:-9px !important;
      border-left-width:9px !important;
      border-right-width:9px !important;
      border-top-width:9px !important;
    }

    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      html body #timelineDock,
      html body.observed-mode #timelineDock{
        padding-top:38px !important;
        overflow:visible !important;
      }
      html body #timelineBubble,
      html body.observed-mode #timelineBubble{
        top:-23px !important;
        min-height:25px !important;
        padding:6px 12px !important;
        border-radius:20px !important;
        font-size:16px !important;
        line-height:1 !important;
        font-weight:950 !important;
        max-width:calc(100vw - 40px) !important;
      }
      html body #timelineBubble::after,
      html body.observed-mode #timelineBubble::after{
        bottom:-7px !important;
        border-left-width:7px !important;
        border-right-width:7px !important;
        border-top-width:7px !important;
      }
    }


#timelineDock .timeline-controls{
  align-items:center !important;
  gap:10px !important;
  min-height:58px !important;
}

#timelineDock .playFab,
#playBtn,
html.os-windows #playBtn,
html.win-compact-ui #playBtn,
body.observed-mode #playBtn{
  width:58px !important;
  min-width:58px !important;
  height:58px !important;
  min-height:58px !important;
  padding:0 !important;
  border-radius:18px !important;
  display:grid !important;
  place-items:center !important;
  position:relative !important;
  z-index:3200 !important;
  isolation:isolate !important;
  overflow:visible !important;
  border:1px solid rgba(191,219,254,.42) !important;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.35), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #ffffff 0%, #dbeafe 48%, #93c5fd 100%) !important;
  color:#0f172a !important;
  box-shadow:
    0 16px 34px rgba(0,0,0,.34),
    0 0 0 5px rgba(96,165,250,.10),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -10px 18px rgba(15,23,42,.12) !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  touch-action:manipulation !important;
  user-select:none !important;
  -webkit-user-select:none !important;
  -webkit-tap-highlight-color:transparent !important;
  transition:
    transform .12s ease,
    box-shadow .14s ease,
    background .14s ease,
    border-color .14s ease !important;
}

#playBtn::before{
  content:"";
  position:absolute;
  inset:-12px;
  border-radius:24px;
  background:transparent;
  pointer-events:auto;
  z-index:-1;
}

#playBtn::after{
  content:"";
  position:absolute;
  inset:7px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0));
  pointer-events:none;
  z-index:0;
}

#playBtn:hover:not(:disabled){
  transform:translateY(-2px) scale(1.025) !important;
  border-color:rgba(219,234,254,.92) !important;
  box-shadow:
    0 20px 38px rgba(0,0,0,.38),
    0 0 0 6px rgba(96,165,250,.16),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -10px 18px rgba(15,23,42,.12) !important;
}

#playBtn:active,
#playBtn.just-pressed{
  transform:translateY(1px) scale(.965) !important;
  box-shadow:
    0 10px 20px rgba(0,0,0,.30),
    0 0 0 7px rgba(96,165,250,.18),
    inset 0 2px 7px rgba(15,23,42,.18) !important;
}

#playBtn:focus-visible{
  outline:none !important;
  box-shadow:
    0 16px 34px rgba(0,0,0,.34),
    0 0 0 5px rgba(96,165,250,.18),
    0 0 0 8px rgba(191,219,254,.30),
    inset 0 1px 0 rgba(255,255,255,.95) !important;
}

#playBtn.is-playing,
html.os-windows #playBtn.is-playing,
html.win-compact-ui #playBtn.is-playing,
body.observed-mode #playBtn.is-playing{
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.30), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #60a5fa 0%, #2563eb 58%, #1e3a8a 100%) !important;
  border-color:rgba(191,219,254,.76) !important;
  color:#ffffff !important;
  letter-spacing:0 !important;
  padding:0 !important;
  font-size:0 !important;
  box-shadow:
    0 18px 36px rgba(37,99,235,.34),
    0 0 0 6px rgba(96,165,250,.18),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -12px 20px rgba(15,23,42,.22) !important;
}

#playBtn .playIcon{
  position:relative;
  z-index:2;
  display:block;
  pointer-events:none;
}

#playBtn .playTriangle{
  width:0;
  height:0;
  margin-left:5px;
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
  border-left:19px solid #b91c1c;
  filter:drop-shadow(0 2px 3px rgba(15,23,42,.22));
}

#playBtn.is-playing .playTriangle{ display:none !important; }

#playBtn .pauseIcon{
  width:24px;
  height:25px;
}

#playBtn .pauseIcon::before,
#playBtn .pauseIcon::after{
  content:"";
  position:absolute;
  top:0;
  width:8px;
  height:25px;
  border-radius:4px;
  background:#ffffff;
  box-shadow:0 2px 5px rgba(15,23,42,.24);
}

#playBtn .pauseIcon::before{ left:2px; }
#playBtn .pauseIcon::after{ right:2px; }

#playBtn:not(.is-playing) .pauseIcon{ display:none !important; }

#timelineDock .miniAction{
  min-height:34px !important;
  border-radius:999px !important;
  padding:0 13px !important;
  font-size:10px !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  #timelineDock .timeline-controls{ min-height:54px !important; }
  #timelineDock .playFab,
  #playBtn,
  body.observed-mode #playBtn{
    width:54px !important;
    min-width:54px !important;
    height:54px !important;
    min-height:54px !important;
    border-radius:17px !important;
  }
  #playBtn .playTriangle{
    border-top-width:11px;
    border-bottom-width:11px;
    border-left-width:18px;
  }
  #playBtn .pauseIcon{
    width:22px;
    height:23px;
  }
  #playBtn .pauseIcon::before,
  #playBtn .pauseIcon::after{
    width:7px;
    height:23px;
  }
}




html body #mapTitleBadge.shorely-title-badge{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  min-height:46px !important;
  height:auto !important;
  padding:6px 14px !important;
  overflow:visible !important;
  line-height:1 !important;
}

html body #mapTitleBadge .shorely-title-text{
  line-height:1 !important;
  white-space:nowrap !important;
}

html body #mapTitleBadge .shorely-title-logo,
html body #mapTitleBadge #mapTitlePartnerLogo,
html body #mapTitleBadge .shorely-title-logo-shorelysafe{
  display:block !important;
  flex:0 0 auto !important;
  width:auto !important;
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  max-width:128px !important;
  object-fit:contain !important;
  object-position:center center !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  filter:none !important;
  transform:none !important;
  vertical-align:middle !important;
}

html body #rightRail .right-logo-card{
  overflow:visible !important;
  min-height:96px !important;
  height:96px !important;
  padding:12px !important;
}


html body #rightRail .right-logo-card .right-rail-logo,
html body #rightRail .right-logo-card .shorelysafe-logo{
  display:block !important;
  width:auto !important;
  max-width:176px !important;
  height:auto !important;
  max-height:58px !important;
  object-fit:contain !important;
  object-position:center center !important;
  margin:0 auto !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  filter:none !important;
  transform:none !important;
}


html body #timelineDock .timeline-controls{
  min-height:46px !important;
  gap:8px !important;
  align-items:center !important;
}

html body #timelineDock .playFab,
html body #playBtn,
html.os-windows body #playBtn,
html.win-compact-ui body #playBtn,
html.os-mac body #playBtn,
html body.observed-mode #playBtn{
  width:44px !important;
  min-width:44px !important;
  max-width:44px !important;
  height:44px !important;
  min-height:44px !important;
  max-height:44px !important;
  border-radius:14px !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  overflow:visible !important;
  z-index:3200 !important;
  transform:none !important;
  box-shadow:
    0 12px 24px rgba(0,0,0,.30),
    0 0 0 4px rgba(96,165,250,.10),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -8px 15px rgba(15,23,42,.11) !important;
}

html body #playBtn::before{
  content:"" !important;
  position:absolute !important;
  inset:-11px !important;
  border-radius:23px !important;
  background:transparent !important;
  pointer-events:auto !important;
  z-index:-1 !important;
}

html body #playBtn::after{
  inset:6px !important;
  border-radius:11px !important;
}

html body #playBtn:hover:not(:disabled){
  transform:translateY(-1px) scale(1.015) !important;
  box-shadow:
    0 14px 26px rgba(0,0,0,.34),
    0 0 0 5px rgba(96,165,250,.13),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -8px 15px rgba(15,23,42,.11) !important;
}

html body #playBtn:active,
html body #playBtn.just-pressed{
  transform:translateY(1px) scale(.96) !important;
  box-shadow:
    0 8px 16px rgba(0,0,0,.28),
    0 0 0 6px rgba(96,165,250,.16),
    inset 0 2px 6px rgba(15,23,42,.18) !important;
}

html body #playBtn.is-playing{
  box-shadow:
    0 13px 26px rgba(37,99,235,.30),
    0 0 0 5px rgba(96,165,250,.16),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -9px 16px rgba(15,23,42,.20) !important;
}

html body #playBtn .playTriangle{
  margin-left:4px !important;
  border-top-width:9px !important;
  border-bottom-width:9px !important;
  border-left-width:15px !important;
}

html body #playBtn .pauseIcon{
  width:18px !important;
  height:19px !important;
}

html body #playBtn .pauseIcon::before,
html body #playBtn .pauseIcon::after{
  width:6px !important;
  height:19px !important;
  border-radius:3px !important;
}

html body #playBtn .pauseIcon::before{ left:1px !important; }
html body #playBtn .pauseIcon::after{ right:1px !important; }

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body #timelineDock .timeline-controls{
    min-height:44px !important;
    gap:7px !important;
  }

  html body #timelineDock .playFab,
  html body #playBtn,
  html body.observed-mode #playBtn{
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    min-height:42px !important;
    max-height:42px !important;
    border-radius:13px !important;
  }

  html body #playBtn .playTriangle{
    border-top-width:8px !important;
    border-bottom-width:8px !important;
    border-left-width:14px !important;
  }

  html body #playBtn .pauseIcon{
    width:17px !important;
    height:18px !important;
  }

  html body #playBtn .pauseIcon::before,
  html body #playBtn .pauseIcon::after{
    width:5.5px !important;
    height:18px !important;
  }
}




html body #mapTitleBadge.shorely-title-badge{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  min-height:44px !important;
  height:auto !important;
  width:auto !important;
  max-width:min(760px, calc(100vw - 36px)) !important;
  padding:7px 13px !important;
  overflow:visible !important;
  line-height:1 !important;
  border-radius:999px !important;
}

html body #mapTitleBadge .shorely-title-text{
  line-height:1 !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
}

html body #mapTitleBadge #mapTitleLogo,
html body #mapTitleBadge #mapTitlePartnerLogo,
html body #mapTitleBadge .shorely-title-logo,
html body #mapTitleBadge .shorely-title-logo-shorelysafe{
  display:block !important;
  flex:0 0 auto !important;
  width:auto !important;
  height:auto !important;
  max-height:30px !important;
  max-width:116px !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  filter:none !important;
  transform:none !important;
}

html body #rightRail .right-logo-card{
  min-height:88px !important;
  height:88px !important;
  max-height:88px !important;
  padding:12px 16px !important;
  overflow:visible !important;
}

html body #rightRail .right-logo-card .right-logo-link{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  height:100% !important;
  overflow:visible !important;
}

html body #rightRail .right-logo-card .right-rail-logo,
html body #rightRail .right-logo-card .shorelysafe-logo{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:158px !important;
  max-height:52px !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
  margin:0 auto !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  filter:none !important;
  transform:none !important;
}


html body #timelineDock{
  overflow:visible !important;
}

html body #timelineDock .timeline-top{
  position:absolute !important;
  top:6px !important;
  left:18px !important;
  right:auto !important;
  z-index:18 !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  min-height:38px !important;
  pointer-events:auto !important;
}

html body #timelineDock .timeline-controls{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  min-height:38px !important;
  height:38px !important;
  pointer-events:auto !important;
}

html body #timelineDock .playFab,
html body #playBtn,
html.os-mac body #playBtn,
html.os-windows body #playBtn,
html.win-compact-ui body #playBtn,
html body.observed-mode #playBtn{
  position:relative !important;
  z-index:3300 !important;
  width:36px !important;
  min-width:36px !important;
  max-width:36px !important;
  height:36px !important;
  min-height:36px !important;
  max-height:36px !important;
  padding:0 !important;
  border-radius:12px !important;
  display:grid !important;
  place-items:center !important;
  overflow:visible !important;
  isolation:isolate !important;
  border:1px solid rgba(226,232,240,.92) !important;
  background:linear-gradient(180deg, #ffffff 0%, #edf2f7 100%) !important;
  color:#ef4444 !important;
  box-shadow:
    0 10px 20px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -6px 12px rgba(15,23,42,.08) !important;
  transform:none !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  touch-action:manipulation !important;
  user-select:none !important;
  -webkit-user-select:none !important;
  -webkit-tap-highlight-color:transparent !important;
  transition:transform .11s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease !important;
}

html body #playBtn::before{
  content:"" !important;
  position:absolute !important;
  inset:-8px !important;
  border-radius:20px !important;
  background:transparent !important;
  pointer-events:auto !important;
  z-index:-1 !important;
}

html body #playBtn::after{
  content:"" !important;
  position:absolute !important;
  inset:5px !important;
  border-radius:9px !important;
  background:linear-gradient(180deg, rgba(255,255,255,.40), rgba(255,255,255,0)) !important;
  pointer-events:none !important;
  z-index:0 !important;
}

html body #playBtn:hover:not(:disabled){
  transform:translateY(-1px) scale(1.02) !important;
  border-color:#ffffff !important;
  background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow:
    0 12px 22px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -6px 12px rgba(15,23,42,.08) !important;
}

html body #playBtn:active,
html body #playBtn.just-pressed{
  transform:translateY(1px) scale(.96) !important;
  box-shadow:
    0 7px 14px rgba(0,0,0,.28),
    inset 0 2px 6px rgba(15,23,42,.14) !important;
}

html body #playBtn:focus-visible{
  outline:none !important;
  box-shadow:
    0 10px 20px rgba(0,0,0,.28),
    0 0 0 3px rgba(191,219,254,.46),
    inset 0 1px 0 rgba(255,255,255,.95) !important;
}

html body #playBtn.is-playing,
html.os-mac body #playBtn.is-playing,
html.os-windows body #playBtn.is-playing,
html.win-compact-ui body #playBtn.is-playing,
html body.observed-mode #playBtn.is-playing{
  background:linear-gradient(180deg, #ffffff 0%, #edf2f7 100%) !important;
  border-color:rgba(226,232,240,.92) !important;
  color:#ef4444 !important;
  box-shadow:
    0 10px 20px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -6px 12px rgba(15,23,42,.08) !important;
  font-size:0 !important;
}

html body #playBtn .playIcon{
  position:relative !important;
  z-index:2 !important;
  display:block !important;
  pointer-events:none !important;
}

html body #playBtn .playTriangle{
  width:0 !important;
  height:0 !important;
  margin-left:3px !important;
  border-top:8px solid transparent !important;
  border-bottom:8px solid transparent !important;
  border-left:13px solid #ef4444 !important;
  filter:drop-shadow(0 1px 2px rgba(15,23,42,.20)) !important;
}

html body #playBtn.is-playing .playTriangle{
  display:none !important;
}

html body #playBtn .pauseIcon{
  position:relative !important;
  z-index:2 !important;
  display:block !important;
  width:16px !important;
  height:17px !important;
  pointer-events:none !important;
}

html body #playBtn .pauseIcon::before,
html body #playBtn .pauseIcon::after{
  content:"" !important;
  position:absolute !important;
  top:0 !important;
  width:5px !important;
  height:17px !important;
  border-radius:3px !important;
  background:#ef4444 !important;
  box-shadow:0 1px 2px rgba(15,23,42,.18) !important;
}

html body #playBtn .pauseIcon::before{ left:2px !important; }
html body #playBtn .pauseIcon::after{ right:2px !important; }
html body #playBtn:not(.is-playing) .pauseIcon{ display:none !important; }

html body #timelineDock .miniAction{
  min-height:25px !important;
  height:25px !important;
  padding:0 10px !important;
  border-radius:999px !important;
  font-size:9px !important;
  font-weight:900 !important;
}


html body #timelineDock .timeline-days{
  bottom:31px !important;
}

html body #timelineDock .timeline-trackRow{
  bottom:8px !important;
}


html body #leftPanel #legendDock.legend-card,
html body #leftPanel #legendDock.map-floating.legend-card,
html body.observed-mode #leftPanel #legendDock.legend-card,
html body.calendar-picker-open #leftPanel #legendDock.legend-card{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:11px 13px 12px !important;
  overflow:visible !important;
}

html body #leftPanel #legendDock .legend-body{
  max-height:none !important;
  overflow:visible !important;
  padding:0 !important;
}

html body #leftPanel #legendDock .legend-list{
  display:grid !important;
  grid-template-rows:repeat(6, minmax(0, auto)) !important;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-auto-flow:column !important;
  column-gap:18px !important;
  row-gap:6px !important;
  align-items:start !important;
}

html body #leftPanel #legendDock .legend-row{
  display:grid !important;
  grid-template-columns:13px minmax(0, 1fr) !important;
  gap:7px !important;
  align-items:center !important;
  font-size:12px !important;
  line-height:1.12 !important;
  font-weight:900 !important;
  min-width:0 !important;
}

html body #leftPanel #legendDock .legend-swatch{
  width:10px !important;
  height:10px !important;
  margin:0 !important;
  border-radius:999px !important;
}

html body #leftPanel #legendDock .legend-row.legend-row-boundary{
  display:none !important;
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body #mapTitleBadge.shorely-title-badge{
    gap:7px !important;
    min-height:36px !important;
    padding:5px 9px !important;
  }
  html body #mapTitleBadge #mapTitleLogo,
  html body #mapTitleBadge #mapTitlePartnerLogo,
  html body #mapTitleBadge .shorely-title-logo,
  html body #mapTitleBadge .shorely-title-logo-shorelysafe{
    max-height:23px !important;
    max-width:82px !important;
  }

  html body #timelineDock .timeline-top{
    top:6px !important;
    left:16px !important;
  }
  html body #timelineDock .playFab,
  html body #playBtn,
  html body.observed-mode #playBtn{
    width:34px !important;
    min-width:34px !important;
    max-width:34px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    border-radius:11px !important;
  }
  html body #playBtn .playTriangle{
    border-top-width:7px !important;
    border-bottom-width:7px !important;
    border-left-width:12px !important;
  }
  html body #playBtn .pauseIcon{
    width:15px !important;
    height:16px !important;
  }
  html body #playBtn .pauseIcon::before,
  html body #playBtn .pauseIcon::after{
    width:5px !important;
    height:16px !important;
  }
}



html body #rightRail .right-logo-card,
html body.observed-mode #rightRail .right-logo-card,
html body.forecast-mode #rightRail .right-logo-card{
  display:grid !important;
  place-items:center !important;
  justify-items:center !important;
  align-items:center !important;
  text-align:center !important;
  width:100% !important;
  min-height:88px !important;
  height:88px !important;
  max-height:88px !important;
  padding:12px 16px !important;
  overflow:visible !important;
}

html body #rightRail .right-logo-card .right-logo-link,
html body.observed-mode #rightRail .right-logo-card .right-logo-link,
html body.forecast-mode #rightRail .right-logo-card .right-logo-link{
  display:grid !important;
  place-items:center !important;
  justify-items:center !important;
  align-items:center !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  line-height:0 !important;
  text-align:center !important;
  overflow:visible !important;
}

html body #rightRail .right-logo-card #rightRailLogo,
html body #rightRail .right-logo-card .right-rail-logo,
html body #rightRail .right-logo-card .shorelysafe-logo,
html body.observed-mode #rightRail .right-logo-card #rightRailLogo,
html body.forecast-mode #rightRail .right-logo-card #rightRailLogo{
  display:block !important;
  position:static !important;
  justify-self:center !important;
  align-self:center !important;
  width:auto !important;
  height:auto !important;
  max-width:156px !important;
  max-height:52px !important;
  margin:0 !important;
  padding:0 !important;
  object-fit:contain !important;
  object-position:50% 50% !important;
  transform:none !important;
  translate:none !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  vertical-align:middle !important;
}

html body #mapTitleBadge.shorely-title-badge{
  display:inline-grid !important;
  grid-auto-flow:column !important;
  align-items:center !important;
  justify-content:center !important;
  justify-items:center !important;
  text-align:center !important;
}

html body #mapTitleBadge #mapTitlePartnerLogo,
html body #mapTitleBadge .shorely-title-logo-shorelysafe{
  justify-self:center !important;
  align-self:center !important;
  object-position:50% 50% !important;
  margin:0 !important;
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body #rightRail .right-logo-card{
    min-height:76px !important;
    height:76px !important;
    max-height:76px !important;
    padding:10px 14px !important;
  }
  html body #rightRail .right-logo-card #rightRailLogo,
  html body #rightRail .right-logo-card .right-rail-logo,
  html body #rightRail .right-logo-card .shorelysafe-logo{
    max-width:138px !important;
    max-height:44px !important;
  }
}


@media (min-width: 901px) and (min-height: 561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height: 561px), (min-width: 901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width: 901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  html body #mapTitleBadge.shorely-title-badge,
  html body.forecast-mode #mapTitleBadge.shorely-title-badge,
  html body.observed-mode #mapTitleBadge.shorely-title-badge{
    gap:18px !important;
    padding:12px 22px !important;
    min-height:54px !important;
    border-radius:999px !important;
    display:inline-grid !important;
    grid-auto-flow:column !important;
    align-items:center !important;
    justify-content:center !important;
    justify-items:center !important;
    width:auto !important;
    max-width:calc(100vw - 720px) !important;
    min-width:0 !important;
    overflow:visible !important;
    white-space:nowrap !important;
  }

  html body #mapTitleBadge #mapTitleText,
  html body #mapTitleBadge .shorely-title-text{
    font-size:clamp(30px, 2.85vw, 48px) !important;
    line-height:.96 !important;
    letter-spacing:-.045em !important;
    font-weight:950 !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }

  html body #mapTitleBadge #mapTitlePartnerLogo,
  html body #mapTitleBadge .shorely-title-logo,
  html body #mapTitleBadge .shorely-title-logo-shorelysafe{
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-width:162px !important;
    max-height:45px !important;
    object-fit:contain !important;
    object-position:50% 50% !important;
    margin:0 !important;
    padding:0 !important;
    justify-self:center !important;
    align-self:center !important;
    transform:none !important;
  }
}


@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body #mapTitleBadge.shorely-title-badge{
    min-height:unset !important;
  }
}


html body #mapTitleBadge,
html body #mapTitleBadge.shorely-title-badge,
html body.forecast-mode #mapTitleBadge.shorely-title-badge,
html body.observed-mode #mapTitleBadge.shorely-title-badge{
  background:rgba(11,18,32,.88) !important;
  border:1px solid rgba(255,255,255,.085) !important;
  box-shadow:0 16px 32px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.04) !important;
  backdrop-filter:blur(14px) !important;
  -webkit-backdrop-filter:blur(16px) !important;
}

@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  html body #mapTitleBadge,
  html body #mapTitleBadge.shorely-title-badge,
  html body.forecast-mode #mapTitleBadge.shorely-title-badge,
  html body.observed-mode #mapTitleBadge.shorely-title-badge{
    top:18px !important;
    min-height:54px !important;
    height:54px !important;
    max-height:54px !important;
    z-index:5005 !important;
  }

  html body #topBanner,
  html body #topBanner.alert,
  html.os-mac body #topBanner.alert,
  html.os-windows body #topBanner.alert,
  html.win-compact-ui body #topBanner.alert{
    top:80px !important;
    left:50% !important;
    right:auto !important;
    bottom:auto !important;
    transform:translateX(-50%) !important;
    z-index:4995 !important;
    width:auto !important;
    min-width:min(560px, calc(100vw - 760px)) !important;
    max-width:min(760px, calc(100vw - 760px)) !important;
    min-height:52px !important;
    height:auto !important;
    padding:8px 10px 8px 16px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    border-radius:999px !important;
    background:rgba(11,18,32,.94) !important;
    border:1px solid rgba(255,255,255,.085) !important;
    box-shadow:0 16px 32px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.04) !important;
    backdrop-filter:blur(14px) !important;
    -webkit-backdrop-filter:blur(16px) !important;
    overflow:visible !important;
    pointer-events:auto !important;
  }
}

html body #topBannerCloseBtn,
html body #topBanner.alert #topBannerCloseBtn{
  width:44px !important;
  min-width:44px !important;
  height:44px !important;
  min-height:44px !important;
  flex:0 0 44px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:999px !important;
  display:grid !important;
  place-items:center !important;
  font-size:24px !important;
  line-height:1 !important;
  font-weight:950 !important;
  color:#f8fbff !important;
  background:rgba(255,255,255,.105) !important;
  border:1px solid rgba(255,255,255,.20) !important;
  box-shadow:0 8px 18px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.10) !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  touch-action:manipulation !important;
}

html body #topBannerCloseBtn:hover:not(:disabled),
html body #topBannerCloseBtn:focus-visible{
  transform:none !important;
  background:rgba(255,255,255,.18) !important;
  border-color:rgba(191,219,254,.50) !important;
  box-shadow:0 10px 22px rgba(0,0,0,.24), 0 0 0 3px rgba(96,165,250,.18) !important;
  outline:none !important;
}

html body #topBannerCloseBtn:active{
  transform:scale(.96) !important;
  background:rgba(255,255,255,.24) !important;
}


@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body #topBanner,
  html body #topBanner.alert,
  html.os-mac body #topBanner.alert,
  html.os-windows body #topBanner.alert,
  html.win-compact-ui body #topBanner.alert{
    top:calc(env(safe-area-inset-top, 0px) + 64px) !important;
    left:50% !important;
    right:auto !important;
    bottom:auto !important;
    transform:translateX(-50%) !important;
    z-index:4995 !important;
    width:calc(100vw - 24px) !important;
    min-width:0 !important;
    max-width:calc(100vw - 24px) !important;
    min-height:52px !important;
    padding:8px 8px 8px 12px !important;
    gap:10px !important;
    border-radius:999px !important;
    background:rgba(11,18,32,.94) !important;
    border:1px solid rgba(255,255,255,.085) !important;
    box-shadow:0 16px 32px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.04) !important;
    backdrop-filter:blur(14px) !important;
    -webkit-backdrop-filter:blur(16px) !important;
    overflow:visible !important;
    pointer-events:auto !important;
  }

  html body #topBannerCloseBtn,
  html body #topBanner.alert #topBannerCloseBtn{
    width:42px !important;
    min-width:42px !important;
    height:42px !important;
    min-height:42px !important;
    flex-basis:42px !important;
    font-size:23px !important;
  }
}


@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  html body #mapTitleBadge,
  html body #mapTitleBadge.shorely-title-badge,
  html body.forecast-mode #mapTitleBadge.shorely-title-badge,
  html body.observed-mode #mapTitleBadge.shorely-title-badge{
    position:fixed !important;
    top:18px !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    z-index:5005 !important;

    display:inline-grid !important;
    grid-auto-flow:column !important;
    grid-auto-columns:max-content !important;
    align-items:center !important;
    justify-content:center !important;
    justify-items:center !important;

    gap:16px !important;
    box-sizing:border-box !important;
    width:auto !important;
    min-width:0 !important;
    max-width:min(760px, calc(100vw - 596px), calc(100vw - 32px)) !important;

    height:auto !important;
    min-height:68px !important;
    max-height:none !important;
    padding:10px 22px 11px !important;
    border-radius:999px !important;

    overflow:visible !important;
    white-space:nowrap !important;
    background:rgba(11,18,32,.88) !important;
    border:1px solid rgba(255,255,255,.085) !important;
    box-shadow:0 16px 32px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.04) !important;
    backdrop-filter:blur(14px) !important;
    -webkit-backdrop-filter:blur(16px) !important;
  }

  html body #mapTitleBadge #mapTitleText,
  html body #mapTitleBadge .shorely-title-text{
    display:block !important;
    min-width:0 !important;
    max-width:100% !important;
    font-size:clamp(30px, 2.55vw, 42px) !important;
    line-height:1.04 !important;
    font-weight:950 !important;
    letter-spacing:-.045em !important;
    color:#dbeafe !important;
    -webkit-text-fill-color:#dbeafe !important;
    text-align:center !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    padding:0 0 1px !important;
    margin:0 !important;
    transform:none !important;
  }

  html body #mapTitleBadge #mapTitleLogo,
  html body #mapTitleBadge #mapTitlePartnerLogo,
  html body #mapTitleBadge .shorely-title-logo,
  html body #mapTitleBadge .shorely-title-logo-town,
  html body #mapTitleBadge .shorely-title-logo-shorelysafe{
    display:block !important;
    flex:0 0 auto !important;
    width:auto !important;
    height:auto !important;
    max-width:156px !important;
    max-height:48px !important;
    object-fit:contain !important;
    object-position:50% 50% !important;
    align-self:center !important;
    justify-self:center !important;
    margin:0 !important;
    padding:0 !important;
    line-height:0 !important;
    transform:none !important;
  }

  html body #mapTitleBadge #mapTitlePartnerLogo,
  html body #mapTitleBadge .shorely-title-logo-shorelysafe{
    max-width:160px !important;
    max-height:49px !important;
  }

  html body #topBanner,
  html body #topBanner.alert,
  html.os-mac body #topBanner.alert,
  html.os-windows body #topBanner.alert,
  html.win-compact-ui body #topBanner.alert{
    top:calc(18px + 68px + 8px) !important;
    min-width:min(560px, calc(100vw - 596px), calc(100vw - 32px)) !important;
    max-width:min(760px, calc(100vw - 596px), calc(100vw - 32px)) !important;
  }
}


@media (min-width:901px) and (max-width:1280px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:901px) and (max-width:1280px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:901px) and (max-width:1280px) and (pointer:none) and (not (any-pointer:coarse)) {
  html body #mapTitleBadge,
  html body #mapTitleBadge.shorely-title-badge,
  html body.forecast-mode #mapTitleBadge.shorely-title-badge,
  html body.observed-mode #mapTitleBadge.shorely-title-badge{
    gap:12px !important;
    min-height:62px !important;
    padding:9px 18px 10px !important;
    max-width:min(640px, calc(100vw - 520px), calc(100vw - 28px)) !important;
  }

  html body #mapTitleBadge #mapTitleText,
  html body #mapTitleBadge .shorely-title-text{
    font-size:clamp(26px, 2.7vw, 36px) !important;
    line-height:1.05 !important;
  }

  html body #mapTitleBadge #mapTitleLogo,
  html body #mapTitleBadge #mapTitlePartnerLogo,
  html body #mapTitleBadge .shorely-title-logo,
  html body #mapTitleBadge .shorely-title-logo-town,
  html body #mapTitleBadge .shorely-title-logo-shorelysafe{
    max-width:132px !important;
    max-height:42px !important;
  }

  html body #topBanner,
  html body #topBanner.alert,
  html.os-mac body #topBanner.alert,
  html.os-windows body #topBanner.alert,
  html.win-compact-ui body #topBanner.alert{
    top:calc(18px + 62px + 8px) !important;
    min-width:min(560px, calc(100vw - 520px), calc(100vw - 28px)) !important;
    max-width:min(640px, calc(100vw - 520px), calc(100vw - 28px)) !important;
  }
}


@media (min-width:901px) and (max-width:1080px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:901px) and (max-width:1080px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:901px) and (max-width:1080px) and (pointer:none) and (not (any-pointer:coarse)) {
  html body #mapTitleBadge,
  html body #mapTitleBadge.shorely-title-badge,
  html body.forecast-mode #mapTitleBadge.shorely-title-badge,
  html body.observed-mode #mapTitleBadge.shorely-title-badge{
    max-width:calc(100vw - 32px) !important;
  }

  html body #mapTitleBadge #mapTitleText,
  html body #mapTitleBadge .shorely-title-text{
    font-size:clamp(24px, 3.0vw, 32px) !important;
  }

  html body #mapTitleBadge #mapTitleLogo,
  html body #mapTitleBadge #mapTitlePartnerLogo,
  html body #mapTitleBadge .shorely-title-logo,
  html body #mapTitleBadge .shorely-title-logo-town,
  html body #mapTitleBadge .shorely-title-logo-shorelysafe{
    max-width:116px !important;
    max-height:38px !important;
  }
}


@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body #mapTitleBadge,
  html body #mapTitleBadge.shorely-title-badge{
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    align-items:center !important;
  }

  html body #mapTitleBadge #mapTitleText,
  html body #mapTitleBadge .shorely-title-text{
    line-height:1.08 !important;
    overflow:visible !important;
  }
}


html body #timelineDock .timeline-trackRow .timeline-end,
html body #timelineDock .timeline-trackRow .timeline-scale,
html body #timelineStart,
html body #timelineEnd{
  display:none !important;
  visibility:hidden !important;
  width:0 !important;
  min-width:0 !important;
  max-width:0 !important;
  height:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  overflow:hidden !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
}

html body #timelineDock .timeline-trackRow,
html body.observed-mode #timelineDock .timeline-trackRow,
html.os-mac body #timelineDock .timeline-trackRow,
html.os-windows body #timelineDock .timeline-trackRow,
html.win-compact-ui body #timelineDock .timeline-trackRow{
  display:block !important;
  grid-template-columns:minmax(0, 1fr) !important;
}


html body #timelineBubble .timeline-bubble-edge,
html body.observed-mode #timelineBubble .timeline-bubble-edge{
  display:none !important;
}


html body #timelineBubble,
html body.observed-mode #timelineBubble,
html.os-mac body #timelineBubble,
html.os-windows body #timelineBubble,
html.win-compact-ui body #timelineBubble{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  min-height:46px !important;
  padding:9px 22px !important;
  border-radius:999px !important;
  font-size:22px !important;
  line-height:1 !important;
  font-weight:950 !important;
  letter-spacing:-.03em !important;
  white-space:nowrap !important;
  max-width:calc(100vw - 80px) !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

html body #timelineBubble .timeline-bubble-current,
html body.observed-mode #timelineBubble .timeline-bubble-current,
html.os-mac body #timelineBubble .timeline-bubble-current,
html.os-windows body #timelineBubble .timeline-bubble-current,
html.win-compact-ui body #timelineBubble .timeline-bubble-current{
  display:inline-block !important;
  color:#ffffff !important;
  font-size:clamp(20px, 1.55vw, 26px) !important;
  line-height:1 !important;
  font-weight:950 !important;
  letter-spacing:-.04em !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  flex:0 1 auto !important;
}

html body #timelineBubble .timeline-bubble-stage,
html body.observed-mode #timelineBubble .timeline-bubble-stage,
html.os-mac body #timelineBubble .timeline-bubble-stage,
html.os-windows body #timelineBubble .timeline-bubble-stage,
html.win-compact-ui body #timelineBubble .timeline-bubble-stage{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#ffffff !important;
  font-size:clamp(18px, 1.35vw, 24px) !important;
  line-height:1 !important;
  font-weight:950 !important;
  letter-spacing:-.035em !important;
  padding:4px 12px 5px !important;
  border-radius:999px !important;
  min-height:30px !important;
  flex:0 0 auto !important;
}


html body #timelineDock,
html body.observed-mode #timelineDock,
html.os-mac body #timelineDock,
html.os-windows body #timelineDock,
html.win-compact-ui body #timelineDock{
  padding-top:46px !important;
  overflow:visible !important;
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body #timelineDock,
  html body.observed-mode #timelineDock{
    padding-top:40px !important;
    overflow:visible !important;
  }

  html body #timelineBubble,
  html body.observed-mode #timelineBubble,
  html.os-mac body #timelineBubble,
  html.os-windows body #timelineBubble,
  html.win-compact-ui body #timelineBubble{
    top:-36px !important;
    gap:8px !important;
    min-height:36px !important;
    padding:7px 13px !important;
    border-radius:999px !important;
    font-size:18px !important;
    max-width:calc(100vw - 24px) !important;
  }

  html body #timelineBubble .timeline-bubble-current,
  html body.observed-mode #timelineBubble .timeline-bubble-current{
    font-size:clamp(16px, 4.6vw, 20px) !important;
    letter-spacing:-.04em !important;
  }

  html body #timelineBubble .timeline-bubble-stage,
  html body.observed-mode #timelineBubble .timeline-bubble-stage{
    font-size:clamp(15px, 4.2vw, 19px) !important;
    min-height:26px !important;
    padding:3px 9px 4px !important;
  }

}

@media (max-width:420px){
  html body #timelineBubble,
  html body.observed-mode #timelineBubble{
    gap:7px !important;
    padding-left:10px !important;
    padding-right:10px !important;
    max-width:calc(100vw - 16px) !important;
  }

  html body #timelineBubble .timeline-bubble-current,
  html body.observed-mode #timelineBubble .timeline-bubble-current{
    font-size:clamp(15px, 4.7vw, 18px) !important;
  }

  html body #timelineBubble .timeline-bubble-stage,
  html body.observed-mode #timelineBubble .timeline-bubble-stage{
    font-size:clamp(14px, 4.25vw, 17px) !important;
    padding-left:8px !important;
    padding-right:8px !important;
  }
}



html body #timelineBubble,
html body.observed-mode #timelineBubble,
html.os-mac body #timelineBubble,
html.os-windows body #timelineBubble,
html.win-compact-ui body #timelineBubble{
  top:-56px !important;
  z-index:4 !important;
}

html body #timelineBubble::after,
html body.observed-mode #timelineBubble::after,
html.os-mac body #timelineBubble::after,
html.os-windows body #timelineBubble::after,
html.win-compact-ui body #timelineBubble::after{
  bottom:-10px !important;
  border-left-width:10px !important;
  border-right-width:10px !important;
  border-top-width:10px !important;
}

html body #timelineDock,
html body.observed-mode #timelineDock,
html.os-mac body #timelineDock,
html.os-windows body #timelineDock,
html.win-compact-ui body #timelineDock{
  overflow:visible !important;
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body #timelineBubble,
  html body.observed-mode #timelineBubble,
  html.os-mac body #timelineBubble,
  html.os-windows body #timelineBubble,
  html.win-compact-ui body #timelineBubble{
    top:-46px !important;
  }

  html body #timelineBubble::after,
  html body.observed-mode #timelineBubble::after{
    bottom:-8px !important;
    border-left-width:8px !important;
    border-right-width:8px !important;
    border-top-width:8px !important;
  }
}

@media (max-width:420px){
  html body #timelineBubble,
  html body.observed-mode #timelineBubble{
    top:-44px !important;
  }
}



html body #timelineBubble,
html body.observed-mode #timelineBubble,
html.os-mac body #timelineBubble,
html.os-windows body #timelineBubble,
html.win-compact-ui body #timelineBubble{
  width:auto !important;
  min-width:0 !important;
  max-width:max-content !important;
  gap:7px !important;
  padding-left:13px !important;
  padding-right:13px !important;
}

html body #timelineBubble .timeline-bubble-current,
html body.observed-mode #timelineBubble .timeline-bubble-current,
html.os-mac body #timelineBubble .timeline-bubble-current,
html.os-windows body #timelineBubble .timeline-bubble-current,
html.win-compact-ui body #timelineBubble .timeline-bubble-current{
  flex:0 0 auto !important;
  max-width:none !important;
}

html body #timelineBubble .timeline-bubble-stage,
html body.observed-mode #timelineBubble .timeline-bubble-stage,
html.os-mac body #timelineBubble .timeline-bubble-stage,
html.os-windows body #timelineBubble .timeline-bubble-stage,
html.win-compact-ui body #timelineBubble .timeline-bubble-stage{
  padding-left:8px !important;
  padding-right:8px !important;
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body #timelineBubble,
  html body.observed-mode #timelineBubble,
  html.os-mac body #timelineBubble,
  html.os-windows body #timelineBubble,
  html.win-compact-ui body #timelineBubble{
    max-width:calc(100vw - 18px) !important;
    gap:6px !important;
    padding-left:10px !important;
    padding-right:10px !important;
  }

  html body #timelineBubble .timeline-bubble-stage,
  html body.observed-mode #timelineBubble .timeline-bubble-stage{
    padding-left:7px !important;
    padding-right:7px !important;
  }
}

@media (max-width:420px){
  html body #timelineBubble,
  html body.observed-mode #timelineBubble{
    max-width:calc(100vw - 14px) !important;
    gap:5px !important;
    padding-left:9px !important;
    padding-right:9px !important;
  }
}



@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  :root{
    --pj-fixed-left-width:356px;
    --pj-fixed-right-width:260px;
    --pj-fixed-side-gap:16px;
    --pj-fixed-bottom-reserve:188px;
    --pj-fixed-panel-gap:10px;
  }

  html body #leftPanel,
  html body.forecast-mode #leftPanel,
  html body.observed-mode #leftPanel,
  html body.calendar-picker-open #leftPanel,
  html body.observed-mode.calendar-picker-open #leftPanel,
  html body.observed-tight #leftPanel,
  html body.observed-ultra-tight #leftPanel,
  html body.observed-fit-tight #leftPanel,
  html body.observed-fit-ultra #leftPanel,
  html.os-mac body #leftPanel,
  html.os-windows body #leftPanel,
  html.win-compact-ui body #leftPanel{
    position:fixed !important;
    top:16px !important;
    left:var(--pj-fixed-side-gap) !important;
    right:auto !important;
    bottom:var(--pj-fixed-bottom-reserve) !important;
    width:var(--pj-fixed-left-width) !important;
    min-width:var(--pj-fixed-left-width) !important;
    max-width:var(--pj-fixed-left-width) !important;
    height:auto !important;
    min-height:0 !important;
    max-height:calc(100vh - 16px - var(--pj-fixed-bottom-reserve)) !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    align-content:flex-start !important;
    justify-content:flex-start !important;
    gap:var(--pj-fixed-panel-gap) !important;
    padding:0 4px 8px 0 !important;
    margin:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    box-sizing:border-box !important;
    scrollbar-gutter:stable !important;
    transform:none !important;
    translate:none !important;
    scale:1 !important;
    zoom:1 !important;
    z-index:1250 !important;
  }

  html body #leftPanel > *,
  html body #leftPanel > .panel-card,
  html body #leftPanel > .compact-card,
  html body #leftPanel > .calendar-card,
  html body #leftPanel > #legendDock{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    flex:0 0 auto !important;
    margin-left:0 !important;
    margin-right:0 !important;
    transform:none !important;
  }

  html body #leftPanel > .forecast-scenario-card{ order:2 !important; }
  html body #leftPanel > #calendarCard{ order:2 !important; }
  html body #leftPanel > #legendDock{ order:6 !important; }
  html body #leftPanel > .snapshot-card{ order:7 !important; }
  html body #leftPanel > .mobile-top-tides-card{ order:8 !important; }

  html body.observed-mode #leftPanel > .forecast-scenario-card{
    display:none !important;
    visibility:hidden !important;
    flex:0 0 0 !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
    pointer-events:none !important;
  }

  html body.observed-mode #leftPanel > #calendarCard.calendar-card.active,
  html body.observed-mode.calendar-picker-open #leftPanel > #calendarCard.calendar-card.active{
    display:grid !important;
    gap:5px !important;
    padding:9px 10px !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }

  html body.observed-mode #leftPanel .calendar-toolbar,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-toolbar{
    grid-template-columns:32px minmax(0, 1fr) 32px !important;
    gap:4px !important;
  }

  html body.observed-mode #leftPanel .calendar-toolbar > button,
  html body.observed-mode #leftPanel .calendar-title-btn,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-toolbar > button,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-title-btn{
    min-height:30px !important;
    height:30px !important;
    padding:0 8px !important;
    border-radius:11px !important;
    font-size:12px !important;
    line-height:1 !important;
  }


  html body.observed-mode #leftPanel .calendar-head div,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-head div{
    font-size:10.5px !important;
    line-height:1 !important;
    padding:1px 0 !important;
  }

  html body.observed-mode #leftPanel .calendar-day,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-day{
    min-height:23px !important;
    height:23px !important;
    max-height:23px !important;
    border-radius:8px !important;
    padding:0 !important;
    font-size:11.5px !important;
    line-height:1 !important;
  }

  html body.observed-mode #leftPanel .day-nav,
  html body.observed-mode.calendar-picker-open #leftPanel .day-nav{
    grid-template-columns:32px minmax(0, 1fr) 32px !important;
    gap:4px !important;
  }

  html body.observed-mode #leftPanel .calendar-nav-btn,
  html body.observed-mode #leftPanel .day-nav-center,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-nav-btn,
  html body.observed-mode.calendar-picker-open #leftPanel .day-nav-center{
    min-height:30px !important;
    height:30px !important;
    padding:0 8px !important;
    border-radius:11px !important;
    font-size:12px !important;
    line-height:1 !important;
  }

  html body #leftPanel > #legendDock,
  html body #leftPanel > #legendDock.left-lower-legend-card,
  html body.observed-mode #leftPanel > #legendDock{
    position:relative !important;
    inset:auto !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    z-index:auto !important;
    float:none !important;
    clear:both !important;
    overflow:visible !important;
  }

  html body.observed-mode #leftPanel .calendar-key,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-key{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:6px !important;
    width:100% !important;
    min-width:0 !important;
    margin-top:5px !important;
    overflow:visible !important;
  }

  html body.observed-mode #leftPanel .calendar-key-item,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-key-item{
    min-width:0 !important;
    max-width:100% !important;
    min-height:28px !important;
    padding:0 7px !important;
    justify-content:center !important;
    gap:5px !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    text-overflow:clip !important;
    box-sizing:border-box !important;
  }

  html body #rightRail,
  html body.forecast-mode #rightRail,
  html body.observed-mode #rightRail,
  html body.calendar-picker-open #rightRail,
  html body.observed-mode.calendar-picker-open #rightRail,
  html.os-mac body #rightRail,
  html.os-windows body #rightRail,
  html.win-compact-ui body #rightRail{
    position:fixed !important;
    top:16px !important;
    right:var(--pj-fixed-side-gap) !important;
    left:auto !important;
    bottom:var(--pj-fixed-bottom-reserve) !important;
    width:var(--pj-fixed-right-width) !important;
    min-width:var(--pj-fixed-right-width) !important;
    max-width:var(--pj-fixed-right-width) !important;
    height:auto !important;
    min-height:0 !important;
    max-height:calc(100vh - 16px - var(--pj-fixed-bottom-reserve)) !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    align-content:flex-start !important;
    justify-content:flex-start !important;
    gap:var(--pj-fixed-panel-gap) !important;
    padding:0 4px 8px 0 !important;
    margin:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    box-sizing:border-box !important;
    scrollbar-gutter:stable !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    transform:none !important;
    translate:none !important;
    scale:1 !important;
    zoom:1 !important;
    pointer-events:none !important;
    z-index:1250 !important;
  }

  html body #rightRail > *,
  html body #rightRail > .rail-card{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    flex:0 0 auto !important;
    margin-left:0 !important;
    margin-right:0 !important;
    pointer-events:auto !important;
  }

  html body #rightRail .right-logo-card,
  html body #rightRail .right-logo-card *,
  html body.observed-mode #rightRail .right-logo-card,
  html body.forecast-mode #rightRail .right-logo-card{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    flex:0 0 0 !important;
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
    pointer-events:none !important;
  }

  html body .leaflet-top.leaflet-right,
  html body.observed-mode .leaflet-top.leaflet-right,
  html.os-mac body .leaflet-top.leaflet-right,
  html.os-windows body .leaflet-top.leaflet-right{
    top:16px !important;
    right:calc(var(--pj-fixed-side-gap) + var(--pj-fixed-right-width) + 14px) !important;
    transform:none !important;
  }

  html body #timelineDock,
  html body.forecast-mode #timelineDock,
  html body.observed-mode #timelineDock,
  html.os-mac body #timelineDock,
  html.os-windows body #timelineDock,
  html.win-compact-ui body #timelineDock{
    position:fixed !important;
    left:16px !important;
    right:16px !important;
    bottom:16px !important;
    height:auto !important;
    min-height:112px !important;
    max-height:none !important;
    padding:44px 20px 14px !important;
    overflow:visible !important;
    box-sizing:border-box !important;
    z-index:1300 !important;
  }

  html body #timelineBubble,
  html body.observed-mode #timelineBubble,
  html.os-mac body #timelineBubble,
  html.os-windows body #timelineBubble,
  html.win-compact-ui body #timelineBubble{
    position:absolute !important;
    top:-56px !important;
    right:auto !important;
    transform:translateX(-50%) !important;
    max-width:calc(100vw - 48px) !important;
    min-width:0 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
    transition:none !important;
    animation:none !important;
    will-change:left !important;
    pointer-events:none !important;
    z-index:1600 !important;
  }

  html body #timelineDock .timeline-days,
  html body #timelineDayTabs{
    position:relative !important;
    display:flex !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    margin-bottom:9px !important;
    box-sizing:border-box !important;
    transform:none !important;
  }

  html body #timelineDock .timeline-trackRow,
  html body.observed-mode #timelineDock .timeline-trackRow,
  html body.forecast-mode #timelineDock .timeline-trackRow,
  html.os-mac body #timelineDock .timeline-trackRow,
  html.os-windows body #timelineDock .timeline-trackRow,
  html.win-compact-ui body #timelineDock .timeline-trackRow{
    position:relative !important;
    display:block !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:24px !important;
    min-height:24px !important;
    max-height:24px !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    box-sizing:border-box !important;
    transform:none !important;
    grid-template-columns:none !important;
    z-index:4 !important;
  }

  html body #timelineDock .timeline-trackRow::before,
  html body.observed-mode #timelineDock .timeline-trackRow::before{
    content:none !important;
    display:none !important;
  }

  html body #timelineDock .timeline-trackRow .timeline-end,
  html body #timelineDock .timeline-trackRow .timeline-scale,
  html body #timelineStart,
  html body #timelineEnd,
  html body #timelineDock #pjBlueSliderExactTrackLine{
    display:none !important;
    visibility:hidden !important;
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
    pointer-events:none !important;
  }

  html body #timelineDock #hourSlider,
  html body.observed-mode #timelineDock #hourSlider,
  html body.forecast-mode #timelineDock #hourSlider,
  html.os-mac body #timelineDock #hourSlider,
  html.os-windows body #timelineDock #hourSlider,
  html.win-compact-ui body #timelineDock #hourSlider{
    -webkit-appearance:none !important;
    appearance:none !important;
    position:relative !important;
    display:block !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:24px !important;
    min-height:24px !important;
    max-height:24px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:999px !important;
    background:transparent !important;
    outline:none !important;
    box-shadow:none !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    box-sizing:border-box !important;
    z-index:5 !important;
  }

  html body #timelineDock #hourSlider::-webkit-slider-runnable-track{
    height:5px !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.30) !important;
    border:0 !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
  }

  html body #timelineDock #hourSlider::-moz-range-track{
    height:5px !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.30) !important;
    border:0 !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
  }

  html body #timelineDock #hourSlider::-moz-range-progress{
    height:5px !important;
    border-radius:999px !important;
    background:rgba(96,165,250,.88) !important;
    border:0 !important;
  }

  html body #timelineDock #hourSlider::-webkit-slider-thumb{
    -webkit-appearance:none !important;
    appearance:none !important;
    width:16px !important;
    height:16px !important;
    border-radius:999px !important;
    background:#2563eb !important;
    border:2px solid #dbeafe !important;
    box-shadow:0 4px 10px rgba(0,0,0,.24) !important;
    cursor:pointer !important;
    margin-top:-5.5px !important;
  }

  html body #timelineDock #hourSlider::-moz-range-thumb{
    width:16px !important;
    height:16px !important;
    border-radius:999px !important;
    background:#2563eb !important;
    border:2px solid #dbeafe !important;
    box-shadow:0 4px 10px rgba(0,0,0,.24) !important;
    cursor:pointer !important;
  }
}

@media (min-width:901px) and (min-height:561px) and (max-width:1320px) and (not (any-pointer:coarse)), (min-width:901px) and (pointer:fine) and (max-width:1320px) and (not (any-pointer:coarse)), (min-width:901px) and (pointer:none) and (max-width:1320px) and (not (any-pointer:coarse)) {
  :root{
    --pj-fixed-left-width:340px;
    --pj-fixed-right-width:244px;
  }
}

@media (min-width:901px) and (min-height:561px) and (max-width:1120px) and (not (any-pointer:coarse)), (min-width:901px) and (pointer:fine) and (max-width:1120px) and (not (any-pointer:coarse)), (min-width:901px) and (pointer:none) and (max-width:1120px) and (not (any-pointer:coarse)) {
  :root{
    --pj-fixed-left-width:320px;
    --pj-fixed-right-width:228px;
  }
}

@media (min-width:901px) and (min-height:561px) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px) and (max-height:760px), (min-width:901px) and (pointer:fine) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine) and (max-height:760px), (min-width:901px) and (pointer:none) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) and (max-height:760px) {
  :root{
    --pj-fixed-bottom-reserve:166px;
    --pj-fixed-panel-gap:8px;
  }

  html body #timelineDock,
  html body.observed-mode #timelineDock{
    min-height:104px !important;
    padding-top:40px !important;
    padding-bottom:12px !important;
  }

  html body #timelineBubble,
  html body.observed-mode #timelineBubble{
    top:-50px !important;
  }
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse) {
  html body #timelineDock .timeline-trackRow,
  html body #timelineDock #hourSlider{
    position:relative !important;
    left:auto !important;
    right:auto !important;
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }
}


@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  :root{
    --pj-request-play-lane:64px;
    --pj-request-timeline-height:112px;
    --pj-request-timeline-pad-x:20px;
  }

  html body #timelineDock,
  html body.forecast-mode #timelineDock,
  html body.observed-mode #timelineDock,
  html.os-mac body #timelineDock,
  html.os-windows body #timelineDock,
  html.win-compact-ui body #timelineDock{
    height:var(--pj-request-timeline-height) !important;
    min-height:var(--pj-request-timeline-height) !important;
    max-height:var(--pj-request-timeline-height) !important;
    padding:14px var(--pj-request-timeline-pad-x) 14px !important;
    display:block !important;
    overflow:visible !important;
    box-sizing:border-box !important;
  }

  html body #timelineDock .timeline-top,
  html body.observed-mode #timelineDock .timeline-top{
    position:absolute !important;
    top:50% !important;
    left:var(--pj-request-timeline-pad-x) !important;
    right:auto !important;
    bottom:auto !important;
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    margin:0 !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    transform:translateY(-50%) !important;
    z-index:18 !important;
    pointer-events:auto !important;
  }

  html body #timelineDock .timeline-controls{
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    display:grid !important;
    place-items:center !important;
    gap:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body #timelineDock .timeline-meta{
    display:none !important;
  }

  html body #timelineDock .playFab,
  html body #timelineDock #playBtn,
  html body.observed-mode #timelineDock #playBtn{
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    min-height:42px !important;
    max-height:42px !important;
    margin:0 !important;
    flex:0 0 42px !important;
  }

  html body #timelineDock #timelineFloodKey,
  html body #timelineDock .timeline-flood-key,
  html body.observed-mode #timelineDock #timelineFloodKey{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-wrap:nowrap !important;
    width:calc(100% - var(--pj-request-play-lane)) !important;
    min-width:0 !important;
    max-width:calc(100% - var(--pj-request-play-lane)) !important;
    height:20px !important;
    min-height:20px !important;
    max-height:20px !important;
    margin:0 0 8px var(--pj-request-play-lane) !important;
    padding:0 !important;
    gap:18px !important;
    white-space:nowrap !important;
    overflow:visible !important;
    box-sizing:border-box !important;
    z-index:7 !important;
  }

  html body #timelineDock .timeline-key-item{
    min-width:0 !important;
    max-width:100% !important;
    white-space:nowrap !important;
  }

  html body #timelineDock .timeline-days,
  html body #timelineDock #timelineDayTabs,
  html body.observed-mode #timelineDock #timelineDayTabs{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    display:flex !important;
    width:calc(100% - var(--pj-request-play-lane)) !important;
    min-width:0 !important;
    max-width:calc(100% - var(--pj-request-play-lane)) !important;
    height:18px !important;
    min-height:18px !important;
    max-height:18px !important;
    margin:0 0 10px var(--pj-request-play-lane) !important;
    padding:0 !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
    z-index:5 !important;
  }

  html body #timelineDock .timeline-day{
    min-height:18px !important;
    height:18px !important;
    max-height:18px !important;
    line-height:18px !important;
  }

  html body #timelineDock .timeline-trackRow,
  html body.observed-mode #timelineDock .timeline-trackRow,
  html body.forecast-mode #timelineDock .timeline-trackRow{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    display:block !important;
    width:calc(100% - var(--pj-request-play-lane)) !important;
    min-width:0 !important;
    max-width:calc(100% - var(--pj-request-play-lane)) !important;
    height:24px !important;
    min-height:24px !important;
    max-height:24px !important;
    margin:0 0 0 var(--pj-request-play-lane) !important;
    padding:0 !important;
    overflow:visible !important;
    box-sizing:border-box !important;
    z-index:6 !important;
  }

  html body #timelineDock #hourSlider,
  html body.observed-mode #timelineDock #hourSlider,
  html body.forecast-mode #timelineDock #hourSlider{
    width:calc(100% - var(--pj-slider-thumb-size, 16px)) !important;
    min-width:0 !important;
    max-width:calc(100% - var(--pj-slider-thumb-size, 16px)) !important;
    height:24px !important;
    min-height:24px !important;
    max-height:24px !important;
    margin:0 var(--pj-slider-thumb-half, 8px) !important;
    padding:0 !important;
    display:block !important;
    box-sizing:border-box !important;
    touch-action:pan-x !important;
    transition:none !important;
    animation:none !important;
  }

  html body.observed-mode #leftPanel,
  html body.observed-mode.calendar-picker-open #leftPanel,
  html.os-mac body.observed-mode #leftPanel,
  html.os-windows body.observed-mode #leftPanel,
  html.win-compact-ui body.observed-mode #leftPanel{
    gap:6px !important;
    padding-bottom:0 !important;
    overflow-y:hidden !important;
    overflow-x:hidden !important;
    scrollbar-gutter:auto !important;
    scrollbar-width:none !important;
  }

  html body.observed-mode #leftPanel::-webkit-scrollbar{
    width:0 !important;
    height:0 !important;
    display:none !important;
  }

  html body.observed-mode #leftPanel > .data-source-card,
  html body.observed-mode #leftPanel > .overlay-card,
  html body.observed-mode #leftPanel > .datum-card{
    padding:8px 12px !important;
    border-radius:16px !important;
  }

  html body.observed-mode #leftPanel .section-title{
    min-height:21px !important;
    margin-bottom:5px !important;
  }

  html body.observed-mode #leftPanel .button-grid-2,
  html body.observed-mode #leftPanel .segmented-control{
    gap:6px !important;
  }

  html body.observed-mode #leftPanel .button-grid-2 button,
  html body.observed-mode #leftPanel .segmented-control button{
    min-height:38px !important;
    height:38px !important;
    padding:6px 9px !important;
  }

  html body.observed-mode #leftPanel > #calendarCard.calendar-card.active,
  html body.observed-mode.calendar-picker-open #leftPanel > #calendarCard.calendar-card.active{
    gap:4px !important;
    padding:7px 10px !important;
  }

  html body.observed-mode #leftPanel .calendar-toolbar,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-toolbar{
    grid-template-columns:30px minmax(0, 1fr) 30px !important;
    gap:4px !important;
  }

  html body.observed-mode #leftPanel .calendar-toolbar > button,
  html body.observed-mode #leftPanel .calendar-title-btn,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-toolbar > button,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-title-btn{
    min-height:28px !important;
    height:28px !important;
    padding:0 7px !important;
    border-radius:10px !important;
  }

  html body.observed-mode #leftPanel .calendar-head,
  html body.observed-mode #leftPanel .calendar-grid,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-head,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-grid{
    gap:3px !important;
  }

  html body.observed-mode #leftPanel .calendar-head div,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-head div{
    padding:0 !important;
    line-height:1 !important;
  }

  html body.observed-mode #leftPanel .calendar-day,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-day{
    min-height:21px !important;
    height:21px !important;
    max-height:21px !important;
    padding:0 !important;
    border-radius:8px !important;
    line-height:1 !important;
  }

  html body.observed-mode #leftPanel .day-nav,
  html body.observed-mode.calendar-picker-open #leftPanel .day-nav{
    grid-template-columns:30px minmax(0, 1fr) 30px !important;
    gap:4px !important;
  }

  html body.observed-mode #leftPanel .calendar-nav-btn,
  html body.observed-mode #leftPanel .day-nav-center,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-nav-btn,
  html body.observed-mode.calendar-picker-open #leftPanel .day-nav-center{
    min-height:28px !important;
    height:28px !important;
    padding:0 7px !important;
    border-radius:10px !important;
  }

  html body.observed-mode #leftPanel .calendar-key,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-key{
    gap:5px !important;
    margin-top:3px !important;
  }

  html body.observed-mode #leftPanel .calendar-key-item,
  html body.observed-mode.calendar-picker-open #leftPanel .calendar-key-item{
    min-height:23px !important;
    height:23px !important;
    padding:0 6px !important;
    gap:5px !important;
  }

  html body.observed-mode #leftPanel > .opacity-card{
    min-height:54px !important;
    height:54px !important;
    max-height:54px !important;
    padding:6px 12px 7px !important;
    gap:3px !important;
  }

  html body.observed-mode #leftPanel > .opacity-card .section-title{
    min-height:18px !important;
    margin:0 !important;
  }

  html body.observed-mode #leftPanel > .opacity-card .control-row{
    padding:0 5px !important;
  }

  html body.observed-mode #leftPanel > #legendDock,
  html body.observed-mode #leftPanel > #legendDock.legend-card{
    padding:8px 12px 9px !important;
    border-radius:16px !important;
    overflow:visible !important;
  }

  html body.observed-mode #leftPanel #legendDock .legend-header{
    margin:0 0 5px !important;
    gap:6px !important;
  }

  html body.observed-mode #leftPanel #legendDock .legend-header-actions{
    gap:4px !important;
  }

  html body.observed-mode #leftPanel #legendDock .legend-help-btn,
  html body.observed-mode #leftPanel #legendDock .legend-collapse-btn,
  html body.observed-mode #leftPanel #legendDock .legend-expand-btn{
    width:22px !important;
    min-width:22px !important;
    height:22px !important;
    min-height:22px !important;
    line-height:22px !important;
    padding:0 !important;
  }

  html body.observed-mode #leftPanel #legendDock .legend-body{
    padding:0 !important;
    margin:0 !important;
    max-height:none !important;
    overflow:visible !important;
  }

  html body.observed-mode #leftPanel #legendDock .legend-list{
    gap:3px 10px !important;
  }

  html body.observed-mode #leftPanel #legendDock .legend-row{
    grid-template-columns:10px minmax(0, 1fr) !important;
    gap:6px !important;
    line-height:1 !important;
    min-height:14px !important;
  }

  html body.observed-mode #leftPanel #legendDock .legend-swatch{
    width:9px !important;
    height:9px !important;
  }
}

@media (min-width:901px) and (min-height:561px) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px) and (max-height:760px), (min-width:901px) and (pointer:fine) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine) and (max-height:760px), (min-width:901px) and (pointer:none) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) and (max-height:760px) {
  :root{
    --pj-request-timeline-height:108px;
    --pj-fixed-bottom-reserve:184px;
  }

  html body #timelineDock,
  html body.observed-mode #timelineDock{
    padding-top:12px !important;
    padding-bottom:12px !important;
  }

  html body #timelineDock #timelineFloodKey,
  html body #timelineDock .timeline-flood-key{
    height:19px !important;
    min-height:19px !important;
    max-height:19px !important;
    margin-bottom:7px !important;
  }

  html body #timelineDock .timeline-days,
  html body #timelineDock #timelineDayTabs{
    height:17px !important;
    min-height:17px !important;
    max-height:17px !important;
    margin-bottom:8px !important;
  }

  html body.observed-mode #leftPanel{
    gap:5px !important;
  }
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  :root{
    --pj-request-play-lane:50px;
    --pj-request-timeline-height:108px;
    --pj-request-timeline-pad-x:10px;
  }

  html body #timelineDock,
  html body.observed-mode #timelineDock,
  body.mobile-optimized #timelineDock{
    height:var(--pj-request-timeline-height) !important;
    min-height:var(--pj-request-timeline-height) !important;
    max-height:var(--pj-request-timeline-height) !important;
    padding:10px var(--pj-request-timeline-pad-x) 10px !important;
    display:block !important;
    overflow:visible !important;
    box-sizing:border-box !important;
  }

  html body #timelineDock .timeline-top,
  body.mobile-optimized #timelineDock .timeline-top{
    position:absolute !important;
    top:50% !important;
    left:var(--pj-request-timeline-pad-x) !important;
    right:auto !important;
    bottom:auto !important;
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    margin:0 !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    transform:translateY(-50%) !important;
    z-index:18 !important;
  }

  html body #timelineDock .timeline-controls,
  body.mobile-optimized #timelineDock .timeline-controls{
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    display:grid !important;
    place-items:center !important;
    gap:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body #timelineDock .timeline-meta,
  body.mobile-optimized #timelineDock .timeline-meta{
    display:none !important;
  }

  html body #timelineDock .playFab,
  html body #timelineDock #playBtn,
  body.mobile-optimized #timelineDock #playBtn{
    width:34px !important;
    min-width:34px !important;
    max-width:34px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    margin:0 !important;
    flex:0 0 34px !important;
  }

  html body #timelineDock #timelineFloodKey,
  html body #timelineDock .timeline-flood-key,
  body.mobile-optimized #timelineDock #timelineFloodKey,
  body.mobile-optimized #timelineDock .timeline-flood-key{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    display:grid !important;
    grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
    align-items:center !important;
    justify-items:center !important;
    width:calc(100% - var(--pj-request-play-lane)) !important;
    min-width:0 !important;
    max-width:calc(100% - var(--pj-request-play-lane)) !important;
    height:18px !important;
    min-height:18px !important;
    max-height:18px !important;
    margin:0 0 7px var(--pj-request-play-lane) !important;
    padding:0 !important;
    gap:4px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
    z-index:7 !important;
    font-size:0 !important;
    line-height:1 !important;
  }

  html body #timelineDock .timeline-key-item,
  body.mobile-optimized #timelineDock .timeline-key-item{
    width:100% !important;
    min-width:0 !important;
    justify-content:center !important;
    gap:4px !important;
    overflow:hidden !important;
    font-size:0 !important;
    line-height:1 !important;
  }

  html body #timelineDock .timeline-key-item::after,
  body.mobile-optimized #timelineDock .timeline-key-item::after{
    display:inline-block !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    color:#eaf0ff !important;
    font-size:10px !important;
    line-height:1 !important;
    font-weight:900 !important;
  }

  html body #timelineDock .timeline-key-item:nth-child(1)::after,
  body.mobile-optimized #timelineDock .timeline-key-item:nth-child(1)::after{ content:"None" !important; }
  html body #timelineDock .timeline-key-item:nth-child(2)::after,
  body.mobile-optimized #timelineDock .timeline-key-item:nth-child(2)::after{ content:"Minor" !important; }
  html body #timelineDock .timeline-key-item:nth-child(3)::after,
  body.mobile-optimized #timelineDock .timeline-key-item:nth-child(3)::after{ content:"Mod" !important; }
  html body #timelineDock .timeline-key-item:nth-child(4)::after,
  body.mobile-optimized #timelineDock .timeline-key-item:nth-child(4)::after{ content:"Major" !important; }

  html body #timelineDock .timeline-key-swatch,
  body.mobile-optimized #timelineDock .timeline-key-swatch{
    width:10px !important;
    min-width:10px !important;
    height:10px !important;
    min-height:10px !important;
    flex:0 0 10px !important;
  }

  html body #timelineDock .timeline-days,
  html body #timelineDock #timelineDayTabs,
  body.mobile-optimized #timelineDock #timelineDayTabs{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    display:flex !important;
    width:calc(100% - var(--pj-request-play-lane)) !important;
    min-width:0 !important;
    max-width:calc(100% - var(--pj-request-play-lane)) !important;
    height:16px !important;
    min-height:16px !important;
    max-height:16px !important;
    margin:0 0 8px var(--pj-request-play-lane) !important;
    padding:0 !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
    z-index:5 !important;
  }

  html body #timelineDock .timeline-day,
  body.mobile-optimized #timelineDock .timeline-day{
    min-height:16px !important;
    height:16px !important;
    max-height:16px !important;
    line-height:16px !important;
  }

  html body #timelineDock .timeline-trackRow,
  html body.observed-mode #timelineDock .timeline-trackRow,
  body.mobile-optimized #timelineDock .timeline-trackRow{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    display:block !important;
    width:calc(100% - var(--pj-request-play-lane)) !important;
    min-width:0 !important;
    max-width:calc(100% - var(--pj-request-play-lane)) !important;
    height:22px !important;
    min-height:22px !important;
    max-height:22px !important;
    margin:0 0 0 var(--pj-request-play-lane) !important;
    padding:0 !important;
    overflow:visible !important;
    box-sizing:border-box !important;
    z-index:6 !important;
  }

  html body #timelineDock #hourSlider,
  html body.observed-mode #timelineDock #hourSlider,
  body.mobile-optimized #timelineDock #hourSlider{
    width:calc(100% - var(--pj-slider-thumb-size, 16px)) !important;
    min-width:0 !important;
    max-width:calc(100% - var(--pj-slider-thumb-size, 16px)) !important;
    height:22px !important;
    min-height:22px !important;
    max-height:22px !important;
    margin:0 var(--pj-slider-thumb-half, 8px) !important;
    padding:0 !important;
    display:block !important;
    box-sizing:border-box !important;
    touch-action:pan-x !important;
    transition:none !important;
    animation:none !important;
  }

  html body.observed-mode #leftPanel,
  body.mobile-optimized.observed-mode #leftPanel{
    gap:5px !important;
    overflow-y:hidden !important;
    overflow-x:hidden !important;
    scrollbar-gutter:auto !important;
    scrollbar-width:none !important;
  }

  html body.observed-mode #leftPanel::-webkit-scrollbar,
  body.mobile-optimized.observed-mode #leftPanel::-webkit-scrollbar{
    width:0 !important;
    height:0 !important;
    display:none !important;
  }

  body.mobile-optimized.observed-mode #leftPanel > .data-source-card,
  body.mobile-optimized.observed-mode #leftPanel > .overlay-card,
  body.mobile-optimized.observed-mode #leftPanel > .datum-card,
  body.mobile-optimized.observed-mode #leftPanel > .opacity-card{
    padding:7px 9px !important;
    border-radius:15px !important;
  }

  body.mobile-optimized.observed-mode #leftPanel .button-grid-2 button,
  body.mobile-optimized.observed-mode #leftPanel .segmented-control button{
    min-height:34px !important;
    height:34px !important;
    padding:5px 7px !important;
  }

  body.mobile-optimized.observed-mode #leftPanel > #calendarCard.calendar-card.active{
    gap:4px !important;
    padding:7px 9px !important;
  }

  body.mobile-optimized.observed-mode #leftPanel .calendar-day{
    min-height:23px !important;
    height:23px !important;
    max-height:23px !important;
    padding:0 !important;
  }

  body.mobile-optimized.observed-mode #leftPanel .calendar-toolbar > button,
  body.mobile-optimized.observed-mode #leftPanel .calendar-title-btn,
  body.mobile-optimized.observed-mode #leftPanel .calendar-nav-btn,
  body.mobile-optimized.observed-mode #leftPanel .day-nav-center{
    min-height:27px !important;
    height:27px !important;
  }
}


html body #topBanner:not(.alert),
html.os-mac body #topBanner:not(.alert),
html.os-windows body #topBanner:not(.alert),
html.win-compact-ui body #topBanner:not(.alert){
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

html body #topBanner.alert,
html.os-mac body #topBanner.alert,
html.os-windows body #topBanner.alert,
html.win-compact-ui body #topBanner.alert{
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  cursor:pointer !important;
  user-select:none !important;
  -webkit-user-select:none !important;
}

html body #topBanner.alert #topBannerCloseBtn{
  position:relative !important;
  z-index:2 !important;
  pointer-events:auto !important;
  cursor:pointer !important;
}

html body #timelineDock,
html body #timelineDock *,
html body #hourSlider{
  transition-property:background-color, border-color, box-shadow, color, opacity, transform !important;
}

html body #timelineDock .timeline-flood-key,
html body #timelineDock #timelineDayTabs,
html body #timelineDock .timeline-trackRow,
html body #timelineDock #hourSlider{
  transition:none !important;
  animation:none !important;
}


@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  :root{
    --pj-equal-left-width:356px;
    --pj-equal-right-width:260px;
    --pj-equal-side-gap:16px;
    --pj-equal-bottom-reserve:188px;
    --pj-equal-card-h:92px;
    --pj-equal-opacity-h:62px;
    --pj-equal-legend-min-h:144px;
    --pj-pill-bg:rgba(71,85,105,.54);
    --pj-pill-border:rgba(203,213,225,.22);
    --pj-pill-color:#e4ecfb;
  }

  html body #leftPanel,
  html body.forecast-mode #leftPanel,
  html body.observed-mode #leftPanel,
  html body.calendar-picker-open #leftPanel,
  html body.observed-mode.calendar-picker-open #leftPanel,
  html.os-mac body #leftPanel,
  html.os-windows body #leftPanel,
  html.win-compact-ui body #leftPanel{
    position:fixed !important;
    top:16px !important;
    left:var(--pj-equal-side-gap) !important;
    right:auto !important;
    bottom:var(--pj-equal-bottom-reserve) !important;
    width:var(--pj-equal-left-width) !important;
    min-width:var(--pj-equal-left-width) !important;
    max-width:var(--pj-equal-left-width) !important;
    height:auto !important;
    max-height:calc(100vh - 16px - var(--pj-equal-bottom-reserve)) !important;
    gap:6px !important;
    padding:0 4px 0 0 !important;
    margin:0 !important;
    overflow-x:hidden !important;
    overflow-y:hidden !important;
    scrollbar-gutter:auto !important;
    transform:none !important;
    translate:none !important;
    scale:1 !important;
    zoom:1 !important;
    transition:none !important;
    animation:none !important;
    box-sizing:border-box !important;
  }

  html body #leftPanel > .overlay-card,
  html body #leftPanel > .datum-card,
  html body:not(.observed-mode) #leftPanel > .overlay-card,
  html body:not(.observed-mode) #leftPanel > .datum-card,
  html body.observed-mode #leftPanel > .overlay-card,
  html body.observed-mode #leftPanel > .datum-card,
  html body.calendar-picker-open #leftPanel > .overlay-card,
  html body.calendar-picker-open #leftPanel > .datum-card,
  html body.observed-mode.calendar-picker-open #leftPanel > .overlay-card,
  html body.observed-mode.calendar-picker-open #leftPanel > .datum-card{
    flex:0 0 var(--pj-equal-card-h) !important;
    min-height:var(--pj-equal-card-h) !important;
    height:var(--pj-equal-card-h) !important;
    max-height:var(--pj-equal-card-h) !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    padding:8px 12px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    gap:6px !important;
    border-radius:16px !important;
    overflow:visible !important;
    box-sizing:border-box !important;
  }

  html body #leftPanel > .opacity-card,
  html body:not(.observed-mode) #leftPanel > .opacity-card,
  html body:not(.observed-mode) #leftPanel > .panel-card.compact-card.opacity-card,
  html body.observed-mode #leftPanel > .opacity-card,
  html body.observed-mode #leftPanel > .panel-card.compact-card.opacity-card,
  html body.calendar-picker-open #leftPanel > .opacity-card,
  html body.observed-mode.calendar-picker-open #leftPanel > .opacity-card{
    flex:0 0 var(--pj-equal-opacity-h) !important;
    min-height:var(--pj-equal-opacity-h) !important;
    height:var(--pj-equal-opacity-h) !important;
    max-height:var(--pj-equal-opacity-h) !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    padding:8px 12px 9px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    gap:4px !important;
    border-radius:16px !important;
    overflow:visible !important;
    box-sizing:border-box !important;
  }

  html body #leftPanel > .overlay-card .section-title,
  html body #leftPanel > .datum-card .section-title,
  html body #leftPanel > .opacity-card .section-title,
  html body.observed-mode #leftPanel > .overlay-card .section-title,
  html body.observed-mode #leftPanel > .datum-card .section-title,
  html body.observed-mode #leftPanel > .opacity-card .section-title{
    min-height:21px !important;
    height:21px !important;
    max-height:21px !important;
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    overflow:visible !important;
  }

  html body #leftPanel > .overlay-card .button-grid-2,
  html body #leftPanel > .datum-card .segmented-control,
  html body.observed-mode #leftPanel > .overlay-card .button-grid-2,
  html body.observed-mode #leftPanel > .datum-card .segmented-control{
    flex:0 0 auto !important;
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:6px !important;
  }

  html body #leftPanel > .overlay-card .button-grid-2 button,
  html body #leftPanel > .datum-card .segmented-control button,
  html body.observed-mode #leftPanel > .overlay-card .button-grid-2 button,
  html body.observed-mode #leftPanel > .datum-card .segmented-control button{
    min-height:38px !important;
    height:38px !important;
    max-height:38px !important;
    padding:6px 9px !important;
    border-radius:12px !important;
    display:grid !important;
    place-items:center !important;
    overflow:hidden !important;
  }

  html body #leftPanel > .opacity-card .control-row,
  html body.observed-mode #leftPanel > .opacity-card .control-row{
    flex:1 1 auto !important;
    min-height:0 !important;
    display:grid !important;
    align-content:center !important;
    padding:0 5px !important;
    overflow:visible !important;
  }

  html body #leftPanel > #legendDock,
  html body #leftPanel > #legendDock.legend-card,
  html body.observed-mode #leftPanel > #legendDock,
  html body.observed-mode #leftPanel > #legendDock.legend-card,
  html.os-mac body #leftPanel > #legendDock,
  html.os-windows body #leftPanel > #legendDock,
  html.win-compact-ui body #leftPanel > #legendDock{
    flex:0 0 auto !important;
    min-height:var(--pj-equal-legend-min-h) !important;
    height:auto !important;
    max-height:none !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    padding:8px 12px 9px !important;
    border-radius:16px !important;
    overflow:visible !important;
    box-sizing:border-box !important;
  }

  html body #leftPanel #legendDock .legend-header,
  html body.observed-mode #leftPanel #legendDock .legend-header{
    margin:0 0 5px !important;
    gap:6px !important;
  }

  html body #leftPanel #legendDock .legend-list,
  html body.observed-mode #leftPanel #legendDock .legend-list{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:3px 10px !important;
  }

  html body #leftPanel #legendDock .legend-row,
  html body.observed-mode #leftPanel #legendDock .legend-row{
    grid-template-columns:10px minmax(0,1fr) !important;
    gap:6px !important;
    min-height:14px !important;
    line-height:1 !important;
  }

  html body #leftPanel #legendDock .legend-swatch,
  html body.observed-mode #leftPanel #legendDock .legend-swatch{
    width:9px !important;
    height:9px !important;
  }

  html body #leftPanel .day-nav,
  html body.observed-mode #leftPanel .day-nav,
  html body.observed-mode.calendar-picker-open #leftPanel .day-nav{
    grid-template-columns:30px minmax(0, 1fr) 30px !important;
    gap:4px !important;
    min-width:0 !important;
  }

  html body #leftPanel .day-nav-center,
  html body.observed-mode #leftPanel .day-nav-center,
  html body.observed-mode.calendar-picker-open #leftPanel .day-nav-center{
    min-width:0 !important;
    width:100% !important;
    max-width:100% !important;
    min-height:28px !important;
    height:28px !important;
    max-height:28px !important;
    padding:0 6px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
  }

  html body #leftPanel .observed-date-input,
  html body.observed-mode #leftPanel .observed-date-input,
  html body.observed-mode.calendar-picker-open #leftPanel .observed-date-input{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:100% !important;
    min-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    text-align:center !important;
    box-sizing:border-box !important;
  }

  html body .pill,
  html body #leftPanel .pill,
  html body #rightRail .pill,
  html body .section-kicker,
  html body .range-value,
  html body .badge{
    background:var(--pj-pill-bg) !important;
    border-color:var(--pj-pill-border) !important;
    color:var(--pj-pill-color) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08) !important;
  }

  html body .leaflet-top.leaflet-right,
  html body.observed-mode .leaflet-top.leaflet-right,
  html.os-mac body .leaflet-top.leaflet-right,
  html.os-windows body .leaflet-top.leaflet-right,
  html.win-compact-ui body .leaflet-top.leaflet-right{
    top:16px !important;
    right:calc(var(--pj-equal-side-gap) + var(--pj-equal-right-width) + 12px) !important;
    transform:none !important;
    z-index:1285 !important;
  }

  html body .leaflet-top.leaflet-right .leaflet-control-zoom{
    display:block !important;
    position:absolute !important;
    top:0 !important;
    right:0 !important;
    bottom:auto !important;
    left:auto !important;
    margin:0 !important;
    margin-top:0 !important;
    margin-right:0 !important;
    border-radius:16px !important;
    overflow:hidden !important;
    box-shadow:0 16px 30px rgba(0,0,0,.28) !important;
  }

  html body .leaflet-control-zoom a{
    width:42px !important;
    height:42px !important;
    line-height:42px !important;
    background:rgba(30,41,59,.96) !important;
    color:#f8fbff !important;
    border:0 !important;
    font-size:22px !important;
    font-weight:900 !important;
  }
}

@media (min-width:901px) and (min-height:561px) and (max-width:1320px) and (not (any-pointer:coarse)), (min-width:901px) and (pointer:fine) and (max-width:1320px) and (not (any-pointer:coarse)), (min-width:901px) and (pointer:none) and (max-width:1320px) and (not (any-pointer:coarse)) {
  :root{
    --pj-equal-left-width:340px;
    --pj-equal-right-width:244px;
  }
}

@media (min-width:901px) and (min-height:561px) and (max-width:1120px) and (not (any-pointer:coarse)), (min-width:901px) and (pointer:fine) and (max-width:1120px) and (not (any-pointer:coarse)), (min-width:901px) and (pointer:none) and (max-width:1120px) and (not (any-pointer:coarse)) {
  :root{
    --pj-equal-left-width:320px;
    --pj-equal-right-width:228px;
    --pj-equal-card-h:88px;
    --pj-equal-legend-min-h:138px;
  }
}

@media (min-width:901px) and (min-height:561px) and (max-height:940px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px) and (max-height:940px), (min-width:901px) and (pointer:fine) and (max-height:940px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine) and (max-height:940px), (min-width:901px) and (pointer:none) and (max-height:940px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) and (max-height:940px) {
  :root{
    --pj-equal-bottom-reserve:128px;
    --pj-equal-card-h:82px;
    --pj-equal-opacity-h:56px;
    --pj-equal-legend-min-h:132px;
  }

  html body #leftPanel,
  html body.forecast-mode #leftPanel,
  html body.observed-mode #leftPanel,
  html.os-mac body #leftPanel,
  html.os-windows body #leftPanel,
  html.win-compact-ui body #leftPanel{
    gap:4px !important;
    max-height:calc(100vh - 16px - var(--pj-equal-bottom-reserve)) !important;
  }

  html body #leftPanel > .overlay-card,
  html body #leftPanel > .datum-card,
  html body.observed-mode #leftPanel > .overlay-card,
  html body.observed-mode #leftPanel > .datum-card{
    padding:7px 12px !important;
    gap:5px !important;
  }

  html body #leftPanel > .opacity-card,
  html body.observed-mode #leftPanel > .opacity-card{
    padding:7px 12px 8px !important;
    gap:3px !important;
  }

  html body #leftPanel > #legendDock,
  html body #leftPanel > #legendDock.legend-card,
  html body.observed-mode #leftPanel > #legendDock{
    padding:7px 12px 8px !important;
  }

  html body #leftPanel #legendDock .legend-header,
  html body.observed-mode #leftPanel #legendDock .legend-header{
    margin-bottom:4px !important;
  }

  html body #leftPanel #legendDock .legend-list,
  html body.observed-mode #leftPanel #legendDock .legend-list{
    gap:2px 10px !important;
  }

  html body #leftPanel #legendDock .legend-row,
  html body.observed-mode #leftPanel #legendDock .legend-row{
    min-height:13px !important;
  }
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse) {
  html body .pill,
  html body #leftPanel .pill,
  html body .section-kicker,
  html body .range-value,
  html body .badge{
    background:rgba(71,85,105,.54) !important;
    border-color:rgba(203,213,225,.22) !important;
    color:#e4ecfb !important;
  }

  html body #leftPanel .day-nav-center,
  html body #leftPanel .observed-date-input{
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
  }
}

#downloadModal .download-modal-card{
  width:min(720px, calc(100vw - 32px)) !important;
}

#exportTimePicker.export-simple-picker{
  display:grid !important;
  gap:12px !important;
  padding:14px !important;
  contain:none !important;
  overflow:visible !important;
}

#downloadRangeFields.export-simple-range-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:12px !important;
  align-items:start !important;
}

#downloadRangeFields.export-simple-range-grid[hidden]{
  display:none !important;
}

.export-simple-datetime-field{
  display:grid !important;
  gap:7px !important;
  min-width:0 !important;
  color:var(--muted) !important;
  font-size:11px !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}

.export-date-time-controls{
  display:grid;
  grid-template-columns:minmax(0, 1.45fr) minmax(118px, .85fr);
  gap:8px;
  min-width:0;
}

.export-date-control{
  position:relative;
  min-width:0;
}

.export-date-text-input,
.export-time-select{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  min-height:50px !important;
  border:1px solid rgba(191,219,254,.22) !important;
  border-radius:15px !important;
  background:rgba(255,255,255,.055) !important;
  color:#eaf0ff !important;
  font:800 15px/1.2 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color-scheme:dark !important;
  outline:none !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04) !important;
  text-transform:none !important;
  letter-spacing:0 !important;
}

.export-date-text-input{
  padding:0 48px 0 13px !important;
  font-variant-numeric:tabular-nums;
}

#downloadModal .export-date-text-input.modeled-date-locked{
  padding:0 13px !important;
  background:rgba(255,255,255,.035) !important;
  border-color:rgba(191,219,254,.14) !important;
  color:#c7d2fe !important;
  -webkit-text-fill-color:#c7d2fe !important;
  text-align:center;
  text-transform:lowercase !important;
  cursor:not-allowed;
  opacity:1;
}

.export-time-select{
  padding:0 34px 0 12px !important;
  cursor:pointer;
  font-variant-numeric:tabular-nums;
}

#downloadModal .export-date-text-input,
#downloadModal .export-time-select{
  -webkit-text-fill-color:#eaf0ff !important;
}

#downloadModal .export-time-select option,
#downloadModal .export-time-select optgroup,
#downloadModal .download-field select option,
#downloadModal .export-wheel-field select option{
  background-color:#ffffff !important;
  color:#0f172a !important;
  -webkit-text-fill-color:#0f172a !important;
}

#downloadModal .export-time-select option:checked{
  background-color:#dbeafe !important;
  color:#0f172a !important;
  -webkit-text-fill-color:#0f172a !important;
}

#downloadModal .export-native-date-picker{
  background-color:#ffffff !important;
  color:#0f172a !important;
  -webkit-text-fill-color:#0f172a !important;
  color-scheme:light !important;
}

.export-date-text-input:focus,
.export-time-select:focus{
  border-color:#bfdbfe !important;
  box-shadow:0 0 0 3px rgba(96,165,250,.16), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.export-date-text-input.is-invalid{
  border-color:#fca5a5 !important;
  box-shadow:0 0 0 3px rgba(248,113,113,.14) !important;
}

.export-calendar-button{
  position:absolute;
  top:50%;
  right:7px;
  width:38px;
  min-width:38px;
  height:38px;
  min-height:38px;
  padding:8px;
  transform:translateY(-50%);
  border:0;
  border-radius:10px;
  background:transparent;
  color:#eaf0ff;
  box-shadow:none;
  z-index:2;
}

.export-calendar-button:hover:not(:disabled),
.export-calendar-button:focus-visible{
  transform:translateY(-50%);
  background:rgba(255,255,255,.08);
  box-shadow:none;
  outline:none;
}

.export-calendar-button svg{
  display:block;
  width:100%;
  height:100%;
}

.export-native-date-picker{
  position:fixed;
  left:-10000px;
  top:0;
  width:1px;
  height:1px;
  margin:0;
  padding:0;
  border:0;
  opacity:.001;
  color-scheme:dark;
}

@media (pointer:coarse){
  .export-calendar-button{
    pointer-events:auto;
  }

  .export-native-date-picker{
    position:absolute;
    left:auto;
    right:0;
    top:0;
    width:48px;
    height:100%;
    opacity:.001;
    cursor:pointer;
    pointer-events:none;
    z-index:1;
  }
}

#downloadStartInput,
#downloadEndInput{
  display:none !important;
}

#exportDataRangeText.export-data-range{
  margin:0 !important;
  padding:0 2px 2px !important;
}

.playback-still-there-card{
  width:min(460px, calc(100vw - 32px));
}

.playback-still-there-actions{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:10px;
  margin-top:18px;
}

.playback-still-there-actions button{
  min-height:46px;
}

@media (max-width:720px){
  #downloadRangeFields.export-simple-range-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .export-date-time-controls{
    grid-template-columns:minmax(0, 1.35fr) minmax(112px, .85fr);
  }

  .export-date-text-input,
  .export-time-select{
    min-height:50px !important;
    font-size:16px !important;
  }

  .playback-still-there-actions{
    grid-template-columns:1fr;
  }
}


html.platform-mac-template{
  --win-ui-zoom:1 !important;
  -webkit-text-size-adjust:100% !important;
  text-size-adjust:100% !important;
}

html.platform-mac-template,
html.platform-mac-template body,
html.platform-mac-template button,
html.platform-mac-template input,
html.platform-mac-template select,
html.platform-mac-template textarea{
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

html.platform-mac-template body{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-optical-sizing:auto;
}


@media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
  html.platform-mac-template #leftPanel,
  html.platform-mac-template #rightRail,
  html.platform-mac-template #legendDock,
  html.platform-mac-template #mapTitleBadge,
  html.platform-mac-template #timelineDock,
  html.platform-mac-template .leaflet-top.leaflet-right,
  html.platform-mac-template .leaflet-top.leaflet-right .leaflet-control-zoom{
    zoom:1 !important;
    scale:1 !important;
  }

  html.platform-mac-template #leftPanel,
  html.platform-mac-template #rightRail,
  html.platform-mac-template #legendDock,
  html.platform-mac-template #timelineDock,
  html.platform-mac-template .leaflet-top.leaflet-right,
  html.platform-mac-template .leaflet-top.leaflet-right .leaflet-control-zoom{
    transform:none !important;
  }

  html.platform-mac-template #mapTitleBadge{
    transform:translateX(-50%) !important;
  }
}


html.platform-mac-template .export-simple-datetime-field input[type="datetime-local"]{
  box-sizing:border-box !important;
  min-width:0 !important;
  max-width:100% !important;
  font-family:inherit !important;
  font-variant-numeric:tabular-nums !important;
  letter-spacing:0 !important;
  line-height:1.2 !important;
  color-scheme:dark !important;
  touch-action:manipulation !important;
  -webkit-tap-highlight-color:transparent !important;
}

html.platform-mac-template .export-simple-datetime-field input[type="datetime-local"]::-webkit-date-and-time-value{
  min-height:1.2em !important;
  padding:0 !important;
  text-align:left !important;
}

html.platform-mac-template .export-simple-datetime-field input[type="datetime-local"]::-webkit-calendar-picker-indicator{
  opacity:.90 !important;
  cursor:pointer !important;
}


@supports (-webkit-touch-callout:none){
  html.platform-mac-template .export-simple-datetime-field input[type="datetime-local"]{
    font-size:16px !important;
  }
}


@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {

  html.platform-mac-template body.mobile-optimized #legendDock{
    width:auto !important;
    min-width:148px !important;
    max-width:min(216px, calc(100vw - 96px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
    height:42px !important;
    max-height:42px !important;
    padding:6px 10px !important;
    gap:7px !important;
  }

  html.platform-mac-template body.mobile-optimized #legendDock::before{
    width:38px !important;
    height:12px !important;
    flex:0 0 38px !important;
  }

  html.platform-mac-template body.mobile-optimized #legendDock::after{
    font-size:13px !important;
    line-height:1.06 !important;
    letter-spacing:0 !important;
  }


  html.platform-mac-template body.mobile-optimized.mobile-legend-open #legendDock{
    width:min(304px, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
    max-width:min(304px, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
    padding:10px 11px 11px !important;
  }

  html.platform-mac-template body.mobile-optimized.mobile-legend-open #legendDock .legend-title{
    margin:0 72px 8px 0 !important;
    font-size:15px !important;
    line-height:1.12 !important;
  }

  html.platform-mac-template body.mobile-optimized.mobile-legend-open #legendDock .legend-list{
    column-gap:10px !important;
    row-gap:7px !important;
  }

  html.platform-mac-template body.mobile-optimized.mobile-legend-open #legendDock .legend-row,
  html.platform-mac-template body.mobile-optimized.mobile-legend-open #legendDock .legend-row:nth-child(n+9){
    grid-template-columns:13px minmax(0,1fr) !important;
    gap:7px !important;
    min-height:18px !important;
    font-size:13px !important;
    line-height:1.16 !important;
    font-weight:850 !important;
  }

  html.platform-mac-template body.mobile-optimized.mobile-legend-open #legendDock .legend-swatch{
    width:12px !important;
    height:12px !important;
    border-radius:4px !important;
  }

  html.platform-mac-template body.mobile-optimized.mobile-legend-open #legendDock .legend-swatch.legend-line{
    width:13px !important;
    height:0 !important;
  }

  html.platform-mac-template body.mobile-optimized.mobile-legend-open #legendDock::after{
    right:10px !important;
    top:11px !important;
    font-size:9px !important;
  }


  html.platform-mac-template body #mapTitleBadge,
  html.platform-mac-template body #mapTitleBadge.shorely-title-badge{
    display:inline-grid !important;
    width:max-content !important;
    min-width:0 !important;
    max-width:calc(100vw - 48px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
    gap:5px !important;
    padding:5px 8px !important;
  }

  html.platform-mac-template body #mapTitleBadge #mapTitleText,
  html.platform-mac-template body #mapTitleBadge .shorely-title-text{
    min-width:0 !important;
    font-size:clamp(18px, 5.6vw, 25px) !important;
    line-height:1.05 !important;
  }

  html.platform-mac-template body #mapTitleBadge #mapTitleLogo,
  html.platform-mac-template body #mapTitleBadge #mapTitlePartnerLogo,
  html.platform-mac-template body #mapTitleBadge .shorely-title-logo,
  html.platform-mac-template body #mapTitleBadge .shorely-title-logo-town,
  html.platform-mac-template body #mapTitleBadge .shorely-title-logo-shorelysafe{
    max-width:68px !important;
    max-height:23px !important;
  }
}

@media (max-width:430px) and (orientation:portrait){
  html.platform-mac-template body.mobile-optimized #legendDock{
    min-width:142px !important;
    max-width:min(204px, calc(100vw - 92px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
  }

  html.platform-mac-template body.mobile-optimized.mobile-legend-open #legendDock{
    width:min(296px, calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
    max-width:min(296px, calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
  }

  html.platform-mac-template body.mobile-optimized.mobile-legend-open #legendDock .legend-row,
  html.platform-mac-template body.mobile-optimized.mobile-legend-open #legendDock .legend-row:nth-child(n+9){
    font-size:12.5px !important;
    line-height:1.15 !important;
  }
}

  html body:not(.mobile-optimized) #rightRail > section.rail-card.layers-card,
  html body.mobile-optimized #mobileRailMount > section.rail-card.layers-card{height:auto !important;max-height:none !important}
  #timelineFloodKey #roadImpactsKey{display:inline-flex;align-items:center;gap:6px;margin:0;color:#eaf0ff;font-size:11.5px;line-height:1;white-space:nowrap}
  #timelineFloodKey #roadImpactsKey[hidden]{display:none !important}
  .road-impacts-swatch{width:18px;height:4px;flex:0 0 18px;border-radius:2px;background:#ef4444;box-shadow:0 0 0 1px #ffffff}
  .road-impacts-label-mobile{display:none}
  .road-impacts-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  body:is([data-road-impacts-state="loading"],[data-road-impacts-state="failed"],[data-road-impacts-state="unavailable"]) #roadImpactsKey
    :is(.road-impacts-swatch,.road-impacts-label,.road-impacts-label-mobile){display:none!important}
  body:is([data-road-impacts-state="loading"],[data-road-impacts-state="failed"],[data-road-impacts-state="unavailable"]) #roadImpactsStatus{
    position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;text-align:center;
  }
  @layer shorelysafe-unified {
  html body #timelineDock #roadImpactsKey[hidden]{display:none !important}
  html body.mobile-optimized[data-road-impacts-enabled="true"] #timelineDock #timelineFloodKey{display:flex !important;gap:clamp(2px,.8vw,4px) !important}
  html body.mobile-optimized[data-road-impacts-enabled="true"] #timelineDock #timelineFloodKey .timeline-key-item,
  html body.mobile-optimized[data-road-impacts-enabled="true"] #timelineDock #timelineFloodKey .timeline-key-label,
  html body.mobile-optimized #timelineDock #timelineFloodKey #roadImpactsKey{font-size:clamp(8px,2.2vw,9px) !important;gap:3px !important}
  }
  html body.mobile-optimized #timelineDock #timelineFloodKey #roadImpactsKey .road-impacts-swatch{width:12px;flex-basis:12px;height:3px}
  html body.mobile-optimized #roadImpactsKey .road-impacts-label{display:none}
  html body.mobile-optimized #roadImpactsKey .road-impacts-label-mobile{display:inline}


@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  :root{
    --shorely-mobile-timeline-height:94px !important;
    --pj-request-timeline-height:94px !important;
    --shorely-mobile-drawer-bottom:98px !important;
    --shorely-mobile-pill-bg:rgba(11,18,32,.97);
    --shorely-mobile-pill-border:rgba(191,219,254,.38);
    --shorely-mobile-pill-shadow:0 14px 28px rgba(0,0,0,.34);
  }

  html body.mobile-optimized #legendDock,
  html body.mobile-optimized #legendDock.legend-card,
  html body.mobile-optimized #mobileControlsToggle,
  html body.mobile-optimized #shorelyLegendOriginPill,
  html body.mobile-optimized #timelineBubble,
  html body.mobile-optimized #timelineBubble .timeline-bubble-stage,
  html body.mobile-optimized .leaflet-top.leaflet-right .leaflet-control-zoom{
    background:var(--shorely-mobile-pill-bg) !important;
    border-color:var(--shorely-mobile-pill-border) !important;
    box-shadow:var(--shorely-mobile-pill-shadow) !important;
  }

  html body.mobile-optimized .leaflet-control-zoom a{
    background:var(--shorely-mobile-pill-bg) !important;
  }

  html body.mobile-optimized.mobile-legend-open #legendDock,
  html body.mobile-optimized.mobile-legend-open #legendDock.legend-card{
    left:50% !important;
    transform:translateX(-50%) !important;
    width:min(340px, calc(100vw - 18px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))) !important;
    max-width:calc(100vw - 18px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)) !important;
    max-height:min(27dvh, 144px) !important;
    padding:5px 9px 6px !important;
  }

  html body.mobile-optimized.mobile-legend-open #legendDock .legend-list{ gap:3px 10px !important; }

  html body.mobile-optimized.mobile-legend-open #legendDock .legend-row,
  html body.mobile-optimized.mobile-legend-open #legendDock .legend-row:nth-child(n){
    grid-template-columns:8px minmax(0, 1fr) !important;
    min-height:12px !important;
    font-size:8.8px !important;
    line-height:1 !important;
  }

  html body.mobile-optimized.mobile-legend-open #legendDock .legend-label{
    font-size:8.8px !important;
    line-height:1.02 !important;
  }

  html body.mobile-optimized.mobile-legend-open #legendDock .legend-swatch{
    width:8px !important;
    height:8px !important;
    border-radius:2px !important;
  }

  html body.mobile-optimized #timelineDock .timeline-top{
    left:10px !important;
    top:calc(50% + 3px) !important;
    transform:translateY(-50%) !important;
    width:36px !important;
    height:36px !important;
    display:grid !important;
    place-items:center !important;
    z-index:8 !important;
  }

  html body.mobile-optimized #timelineDock #playBtn .playTriangle{
    border-top-width:7px !important;
    border-bottom-width:7px !important;
    border-left-width:11px !important;
    margin-left:2px !important;
  }

  html body.mobile-optimized #timelineDock #playBtn .pauseIcon{
    width:15px !important;
    height:16px !important;
    margin:0 !important;
  }

  html body.mobile-optimized #timelineDock #playBtn .pauseIcon::before,
  html body.mobile-optimized #timelineDock #playBtn .pauseIcon::after{
    top:0 !important;
    width:4.5px !important;
    height:16px !important;
    border-radius:2.5px !important;
  }

  html body.mobile-optimized #timelineDock #timelineFloodKey,
  html body.mobile-optimized #timelineDock .timeline-flood-key{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:calc(100% - 54px) !important;
    max-width:calc(100% - 54px) !important;
    height:11px !important;
    min-height:11px !important;
    max-height:11px !important;
    margin:0 0 4px 54px !important;
    padding:0 !important;
    gap:clamp(5px, 2vw, 10px) !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    overflow:hidden !important;
    pointer-events:none !important;
    opacity:.96 !important;
    z-index:7 !important;
    font-size:0 !important;
    line-height:1 !important;
  }

  html body.mobile-optimized #timelineDock .timeline-key-item{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    gap:3px !important;
    color:#eaf0ff !important;
    font-size:0 !important;
    line-height:1 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
  }

  html body.mobile-optimized #timelineDock .timeline-key-item::after{
    display:inline-block !important;
    color:#eaf0ff !important;
    font-size:8px !important;
    font-weight:900 !important;
    line-height:1 !important;
    letter-spacing:0 !important;
  }

  html body.mobile-optimized #timelineDock .timeline-key-item:nth-child(1)::after{ content:"None" !important; }
  html body.mobile-optimized #timelineDock .timeline-key-item:nth-child(2)::after{ content:"Minor" !important; }
  html body.mobile-optimized #timelineDock .timeline-key-item:nth-child(3)::after{ content:"Mod" !important; }
  html body.mobile-optimized #timelineDock .timeline-key-item:nth-child(4)::after{ content:"Major" !important; }

  html body.mobile-optimized #timelineDock .timeline-key-swatch{
    width:7px !important;
    min-width:7px !important;
    height:7px !important;
    min-height:7px !important;
    flex:0 0 7px !important;
    border-radius:999px !important;
    box-shadow:0 0 0 1px rgba(255,255,255,.16) !important;
  }
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body.mobile-optimized #shorelyMobileSliderKey{
    position:absolute !important;
    top:13px !important;
    left:62px !important;
    right:46px !important;
    height:18px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:clamp(8px, 2.4vw, 14px) !important;
    z-index:16 !important;
    pointer-events:none !important;
    overflow:hidden !important;
    white-space:nowrap !important;
  }

  html body.mobile-optimized #shorelyMobileSliderKey .shorely-mobile-slider-key-item{
    display:inline-flex !important;
    align-items:center !important;
    gap:4px !important;
    min-width:0 !important;
    color:#eaf0ff !important;
    font-size:9.8px !important;
    font-weight:900 !important;
    line-height:1 !important;
    letter-spacing:0 !important;
    text-shadow:0 1px 2px rgba(0,0,0,.35) !important;
  }

  html body.mobile-optimized #shorelyMobileSliderKey .shorely-mobile-slider-key-swatch{
    width:10px !important;
    min-width:10px !important;
    height:10px !important;
    border-radius:999px !important;
    box-shadow:0 0 0 1px rgba(255,255,255,.16) !important;
  }

  html body.mobile-optimized #shorelyMobileSliderKey .shorely-mobile-slider-key-swatch.no{ background:#72d85d !important; }
  html body.mobile-optimized #shorelyMobileSliderKey .shorely-mobile-slider-key-swatch.minor{ background:#d99a28 !important; }
  html body.mobile-optimized #shorelyMobileSliderKey .shorely-mobile-slider-key-swatch.moderate{ background:#d75470 !important; }
  html body.mobile-optimized #shorelyMobileSliderKey .shorely-mobile-slider-key-swatch.major{ background:#7659d6 !important; }

  @media (max-width:340px) and (orientation:portrait){
    html body.mobile-optimized #shorelyMobileSliderKey{
      gap:5px !important;
    }

    html body.mobile-optimized #shorelyMobileSliderKey .shorely-mobile-slider-key-item{
      gap:3px !important;
      font-size:8.6px !important;
    }

    html body.mobile-optimized #shorelyMobileSliderKey .shorely-mobile-slider-key-swatch{
      width:8px !important;
      min-width:8px !important;
      height:8px !important;
    }
  }
}

:root{
  --cape-may-pill-bg:rgba(11,18,32,.97);
  --cape-may-pill-border:rgba(191,219,254,.38);
  --cape-may-pill-shadow:0 14px 28px rgba(0,0,0,.34);
}

html body #mapTitleBadge,
html body #timelineDock,
html body #timelineBubble,
html body #mobileControlsToggle,
html body #shorelyLegendOriginPill,
html body #legendDock,
html body .panel-card,
html body .rail-card,
html body .legend-card,
html body .download-modal-card,
html body .datum-modal-card,
html body .export-progress-card,
html body .pill,
html body .leaflet-control-zoom,
html body .leaflet-control-zoom a{
  background:var(--cape-may-pill-bg) !important;
  border-color:var(--cape-may-pill-border) !important;
}

html body #mapTitleBadge,
html body #timelineDock,
html body #timelineBubble,
html body #mobileControlsToggle,
html body #shorelyLegendOriginPill,
html body #legendDock,
html body .panel-card,
html body .rail-card,
html body .legend-card{
  box-shadow:var(--cape-may-pill-shadow) !important;
}

html body #mapTitleBadge #mapTitleLogo{
  width:46px !important;
  height:46px !important;
  max-width:46px !important;
  max-height:46px !important;
  border-radius:999px !important;
  background:#fff !important;
  padding:2px !important;
  box-shadow:0 0 0 1px rgba(255,255,255,.28) !important;
}

#shorelyMobileSliderHelpBtn,
#shorelyMobileLegendHelpBtn{
  display:none;
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body.mobile-optimized #mapTitleBadge #mapTitleLogo{
    width:34px !important;
    height:34px !important;
    max-width:34px !important;
    max-height:34px !important;
  }

  html body.mobile-optimized #shorelyMobileSliderHelpBtn,
  html body.mobile-optimized.mobile-legend-open #shorelyMobileLegendHelpBtn{
    display:inline-grid !important;
    place-items:center !important;
    position:absolute !important;
    width:26px !important;
    height:26px !important;
    min-width:26px !important;
    min-height:26px !important;
    border-radius:999px !important;
    border:1px solid rgba(191,219,254,.48) !important;
    background:rgba(15,23,42,.98) !important;
    color:#f8fafc !important;
    box-shadow:0 10px 20px rgba(0,0,0,.34) !important;
    font-size:15px !important;
    line-height:1 !important;
    font-weight:950 !important;
    z-index:40 !important;
    cursor:pointer !important;
    padding:0 !important;
  }

  html body.mobile-optimized #shorelyMobileSliderHelpBtn{
    top:8px !important;
    right:12px !important;
  }

  html body.mobile-optimized.mobile-legend-open #shorelyMobileLegendHelpBtn{
    top:7px !important;
    right:8px !important;
  }

  html body.mobile-optimized #shorelyRotateNotice{
    pointer-events:none !important;
  }

  html body.mobile-optimized.shorely-phone-landscape #shorelyRotateNotice{
    inset:auto 12px calc(var(--shorely-mobile-timeline-height, 118px) + 10px) 12px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
    background:transparent !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
    z-index:18 !important;
  }

  html body.mobile-optimized #shorelyRotateNotice .shorely-rotate-dialog{
    width:auto !important;
    min-height:0 !important;
    padding:7px 12px !important;
    border-radius:999px !important;
    font-size:12px !important;
    line-height:1 !important;
    box-shadow:0 8px 20px rgba(0,0,0,.28) !important;
  }

  html body.mobile-optimized #timelineDock .timeline-days,
  html body.mobile-optimized #timelineDock #timelineDayTabs,
  html body.mobile-optimized #timelineDock .timeline-trackRow{
    width:calc(100% - 24px) !important;
    max-width:calc(100% - 24px) !important;
    margin-left:12px !important;
    margin-right:12px !important;
  }

  html body.mobile-optimized #timelineDock #hourSlider{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
  }

  html body.mobile-optimized #mobileControlsToggle,
  html body.mobile-optimized.mobile-controls-open #mobileControlsToggle,
  html body.mobile-optimized.mobile-legend-open #mobileControlsToggle,
  html body.mobile-optimized.mobile-controls-open.mobile-legend-open #mobileControlsToggle{
    display:inline-grid !important;
    place-items:center !important;
    justify-content:center !important;
    align-items:center !important;
    text-align:center !important;
    overflow:hidden !important;
  }

  html body.mobile-optimized #mobileControlsToggle > *{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
  }

  html body.mobile-optimized #mobileControlsToggle::before{
    content:none !important;
    display:none !important;
  }

  html body.mobile-optimized #mobileControlsToggle::after,
  html body.mobile-optimized.mobile-legend-open #mobileControlsToggle::after{
    content:"Controls \25BE" !important;
    position:absolute !important;
    inset:0 !important;
    display:grid !important;
    place-items:center !important;
    width:auto !important;
    height:auto !important;
    padding:0 !important;
    margin:0 !important;
    transform:none !important;
    text-align:center !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:950 !important;
    line-height:1 !important;
    letter-spacing:0 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
  }

  html body.mobile-optimized.mobile-controls-open #mobileControlsToggle::after,
  html body.mobile-optimized.mobile-controls-open.mobile-legend-open #mobileControlsToggle::after{
    content:"Controls \25B4" !important;
  }
}

@media (min-width:901px) and (min-height:561px) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px) and (max-height:760px), (min-width:901px) and (pointer:fine) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine) and (max-height:760px), (min-width:901px) and (pointer:none) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) and (max-height:760px) {
  html body:not(.mobile-optimized) #leftPanel{
    overflow-x:hidden !important;
    overflow-y:auto !important;
    padding-bottom:8px !important;
    scrollbar-width:thin !important;
    scrollbar-color:rgba(125,249,255,.55) transparent !important;
  }

  html body:not(.mobile-optimized) #leftPanel::-webkit-scrollbar{
    width:4px !important;
  }

  html body:not(.mobile-optimized) #leftPanel::-webkit-scrollbar-thumb{
    border-radius:999px !important;
    background:rgba(125,249,255,.55) !important;
  }
}

@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  html body.mobile-optimized #timelineDock .timeline-top,
  html body.mobile-optimized #timelineDock .timeline-controls{
    overflow:visible !important;
  }
}

  .timeline-resolution-card{display:flex !important;flex:0 0 auto !important;flex-direction:column !important;min-height:62px !important;height:auto !important;padding:7px 12px !important;overflow:visible !important;box-sizing:border-box !important}
  .timeline-resolution-card .section-title{display:flex !important;flex:0 0 18px !important;min-height:18px !important;margin:0 0 3px !important;overflow:visible !important}
  .timeline-resolution-card .section-title h2{font-size:13px !important;line-height:18px !important;white-space:nowrap !important}
  .timeline-resolution-card .timeline-interval-toggle{
    display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    width:100% !important;min-width:0 !important;max-width:none !important;height:34px !important;
  }
  .timeline-resolution-card .timeline-interval-toggle button{
    min-width:0 !important;height:28px !important;padding:0 4px !important;font-size:10px !important;
  }
  .mapper-tutorial-launch-rail{flex:0 0 auto;margin:0;min-height:38px}

  #legendDock[data-legend-mode="depth"] .legend-header,#legendDock[data-legend-mode="dynamic"] .legend-header{min-height:20px !important;height:20px !important;margin:0 0 2px !important;padding:0 !important}
  #legendDock[data-legend-mode="depth"] .legend-title,#legendDock[data-legend-mode="dynamic"] .legend-title{font-size:13px !important;line-height:18px !important}
  #legendDock[data-legend-mode="depth"] .legend-header-actions,#legendDock[data-legend-mode="dynamic"] .legend-header-actions{height:20px !important}
  #legendDock[data-legend-mode="depth"] .legend-header-actions button,#legendDock[data-legend-mode="dynamic"] .legend-header-actions button{width:20px !important;height:20px !important;min-width:20px !important;min-height:20px !important}
  #legendDock[data-legend-mode="depth"] .legend-body{padding:0 !important;margin:0 !important}
  #legendDock[data-legend-mode="depth"]{height:54px !important;min-height:54px !important;max-height:54px !important;padding:3px 10px !important;overflow:hidden !important}
  #legendDock[data-legend-mode="depth"] #legendHelpBtn{display:none !important}
  #legendDock[data-legend-mode="depth"] .legend-list{
    display:block !important;position:relative !important;height:20px !important;
    min-height:20px !important;padding:0 !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="depth"] #legendList{display:block !important;grid-template-columns:none !important;width:100% !important;max-width:none !important}
  .depth-legend-scale{display:block !important;width:calc(100% - 104px) !important;max-width:none !important;height:18px;margin:0 !important;min-width:0;box-sizing:border-box}
  .depth-legend-labels{display:flex;align-items:center;justify-content:space-between;margin:0 1px 1px;color:#e7f3ff;font-size:7.5px;line-height:8px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
  .depth-legend-gradient{height:8px;border-radius:999px;border:1px solid rgba(255,255,255,.42);background:linear-gradient(90deg,#7df9ff 0%,#38d3ff 22%,#168ceb 43%,#1853c6 62%,#132f84 80%,#050e33 100%);box-shadow:inset 0 1px 1px rgba(255,255,255,.22)}
  .depth-legend-disconnected{display:grid;position:absolute;right:0;top:0;height:18px;grid-template-columns:10px auto 18px;align-items:center;gap:3px;color:#d9fbe0;font-size:8.5px;font-weight:850;white-space:nowrap}
  .depth-legend-disconnected-swatch{width:10px;height:10px;border-radius:3px;background:#63d471;border:1px solid rgba(255,255,255,.5)}
  .depth-legend-help{width:18px !important;height:18px !important;min-width:18px !important;min-height:18px !important;padding:0 !important;border-radius:50% !important;font-size:10px !important}

  #legendDock[data-legend-mode="dynamic"]{min-height:0 !important}
  #legendDock[data-legend-mode="dynamic"]{height:54px !important;min-height:54px !important;max-height:54px !important;padding:4px 12px !important}
  #legendDock[data-legend-mode="dynamic"] .legend-header{padding-bottom:3px !important}
  #legendDock[data-legend-mode="dynamic"] .legend-body{padding-top:2px !important}
  #legendDock[data-legend-mode="dynamic"] .legend-list{
    display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:5px !important;
    width:100% !important;max-width:none !important;padding:0 !important;min-height:0 !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="dynamic"] #legendList{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;grid-template-rows:minmax(0,1fr) !important;grid-auto-flow:row !important;width:100% !important;max-width:none !important;height:18px !important;min-height:18px !important}
  #legendDock[data-legend-mode="dynamic"] .legend-row{display:flex !important;align-items:center !important;gap:4px !important;min-height:20px !important;margin:0 !important;padding:2px 4px !important;border-radius:7px !important}
  #legendDock[data-legend-mode="dynamic"] .legend-swatch{width:10px !important;height:10px !important;min-width:10px !important;border-radius:3px !important}
  #legendDock[data-legend-mode="dynamic"] .legend-label{font-size:8.5px !important;white-space:nowrap !important}

  #timelineDock .timeline-top,#timelineDock .timeline-controls{width:38px !important;max-width:38px !important;overflow:visible !important}
  #timelineDock .timeline-controls{display:grid !important;grid-template-columns:38px !important;gap:0 !important}
  #timelineDock .timeline-trackRow{box-sizing:border-box !important;min-width:0 !important}
  #timelineDock #hourSlider{
    --timeline-progress:0%;display:block !important;width:100% !important;max-width:100% !important;
    margin:0 !important;padding:0 !important;box-sizing:border-box !important;appearance:none !important;-webkit-appearance:none !important;
    background:linear-gradient(90deg,#2583ff 0 var(--timeline-progress),rgba(157,181,218,.38) var(--timeline-progress) 100%) center/100% 5px no-repeat !important;
  }
  #timelineDock #hourSlider::-webkit-slider-runnable-track{height:5px !important;background:transparent !important;border:0 !important;border-radius:999px !important}
  #timelineDock #hourSlider::-moz-range-track{height:5px !important;background:transparent !important;border:0 !important;border-radius:999px !important}
  #timelineDock #hourSlider::-moz-range-progress{height:5px !important;background:transparent !important}
  html body #timelineDock .timeline-trackRow #hourSlider{
    display:block !important;width:100% !important;max-width:100% !important;margin:0 !important;padding:0 !important;
    background-color:transparent !important;
    background-image:linear-gradient(to right,#2583ff 0%,#2583ff var(--timeline-progress),rgba(157,181,218,.38) var(--timeline-progress),rgba(157,181,218,.38) 100%) !important;
    background-position:center !important;background-size:100% 5px !important;background-repeat:no-repeat !important;
  }

  .leaflet-parcels-pane img{
    mix-blend-mode:normal !important;
  }

  .mapper-tutorial-card{width:min(390px,calc(100vw - 28px)) !important;max-height:min(520px,calc(100vh - 28px)) !important}

  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized #leftPanel .timeline-resolution-card{display:flex !important;width:100% !important;min-height:62px !important;height:auto !important;padding:7px 12px !important;overflow:visible !important;box-sizing:border-box !important}
    html body.mobile-optimized #leftPanel .timeline-resolution-card .timeline-interval-toggle{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;width:100% !important;min-width:0 !important;max-width:none !important;height:32px !important}
    html body.mobile-optimized #leftPanel .timeline-resolution-card .timeline-interval-toggle button{width:100% !important;min-width:0 !important;height:26px !important;min-height:26px !important;padding:0 3px !important;font-size:9.5px !important}
    html body.mobile-optimized.mobile-controls-open:not(.mobile-legend-open) #leftPanel #legendDock{
      position:static !important;inset:auto !important;left:auto !important;right:auto !important;top:auto !important;bottom:auto !important;
      transform:none !important;width:100% !important;min-width:0 !important;max-width:100% !important;
      height:54px !important;min-height:54px !important;max-height:54px !important;margin:0 !important;padding:3px 10px !important;
      visibility:visible !important;opacity:1 !important;pointer-events:auto !important;box-sizing:border-box !important;
    }
    html body.mobile-optimized.mobile-controls-open:not(.mobile-legend-open) #leftPanel #legendDock[data-legend-mode="depth"] #legendList{
      display:block !important;position:relative !important;grid-template-columns:none !important;width:100% !important;height:20px !important;min-height:20px !important;padding:0 !important;
    }
    html body.mobile-optimized.mobile-controls-open #mobileControlsToggle{display:none !important;visibility:hidden !important;pointer-events:none !important}
    html body.mobile-optimized #leftPanel #mobileRailMount{
      display:flex !important;position:static !important;inset:auto !important;transform:none !important;
      flex:0 0 auto !important;flex-direction:column !important;width:100% !important;min-width:0 !important;max-width:100% !important;
      height:auto !important;min-height:0 !important;max-height:none !important;margin:0 !important;padding:0 !important;
      gap:8px !important;overflow:visible !important;box-sizing:border-box !important;
    }
    html body.mobile-optimized #mobileRailMount > .right-logo-card,
    html body.mobile-optimized #leftPanel:not([data-nww-section="map"]) #mobileRailMount > .top-tides-card{display:none !important}
    html body.mobile-optimized #mobileRailMount > .layers-card{order:10 !important;width:100% !important}
    html body.mobile-optimized #mobileRailMount > #townAddressCard{order:20 !important;width:100% !important}
    html body.mobile-optimized #mobileRailMount > #downloadCard{order:30 !important;width:100% !important}
    html body.mobile-optimized #mobileRailMount > .top-tides-card{order:35 !important;width:100% !important}
    html body.mobile-optimized #mobileRailMount > #mapperTutorialBtn{order:40 !important;width:100% !important}
    html body.mobile-optimized.observed-mode #leftPanel > .mobile-top-tides-card{display:grid !important}
    .mapper-tutorial-card{width:calc(100vw - 28px) !important;max-height:min(46vh,420px) !important}
  }
  @media (min-width:901px) and (min-height:561px) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px) and (max-height:760px), (min-width:901px) and (pointer:fine) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine) and (max-height:760px), (min-width:901px) and (pointer:none) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) and (max-height:760px) {
    #rightRail{bottom:128px !important;gap:4px !important}
    #rightRail .rail-card{padding:7px !important;border-radius:14px !important}
    #rightRail .rail-head{margin-bottom:3px !important}
    #rightRail .rail-head h3{font-size:13px !important;line-height:1.05 !important}
    #rightRail .layers-card .layer-list{gap:3px !important}
    #rightRail .layers-card .layer-item{height:28px !important;min-height:28px !important;max-height:28px !important;padding:3px 7px !important;border-radius:10px !important;gap:6px !important}
    #rightRail .layers-card .layer-name{font-size:10.5px !important;line-height:1 !important}
    #rightRail .top-tide-list{gap:3px !important}
    html body:not(.mobile-optimized) #rightRail .top-tides-card .top-tide-item{height:34px !important;min-height:34px !important;max-height:34px !important;padding:2px 7px !important;border-radius:10px !important;gap:0 !important}
    #rightRail .top-tide-rank{font-size:8px !important;line-height:1 !important}
    #rightRail .top-tide-main{font-size:11px !important;line-height:1 !important}
    #rightRail .top-tide-sub{font-size:9px !important;line-height:1 !important}
    #rightRail .top-tide-more-btn{min-height:28px !important;height:28px !important;padding:3px 7px !important}
    #rightRail .top-tides-card{height:142px !important;min-height:142px !important;max-height:142px !important;overflow:hidden !important}
    html body:not(.mobile-optimized) #rightRail #downloadCard .download-launch-meta{display:none !important}
    html body:not(.mobile-optimized) #rightRail #downloadCard{height:76px !important;min-height:76px !important;max-height:76px !important;overflow:hidden !important}
    #rightRail .download-card button{min-height:32px !important;height:32px !important}
    #rightRail .town-address-card{height:140px !important;min-height:140px !important;max-height:140px !important;gap:3px !important;overflow:hidden !important}
    #rightRail .town-address-form{gap:4px !important}
    #rightRail .town-address-label{font-size:8.5px !important;line-height:1 !important}
    #rightRail .town-address-input{height:34px !important;min-height:34px !important;padding:5px 9px !important;font-size:10px !important}
    #rightRail .town-address-actions{gap:4px !important}
    #rightRail .town-address-actions button{height:34px !important;min-height:34px !important;padding:4px 7px !important;font-size:9.5px !important;line-height:1 !important}
    #rightRail .town-address-status:empty{display:none !important}
    #rightRail .mapper-tutorial-launch-rail{min-height:32px !important;height:32px !important;font-size:11px !important}
  }
  @media (max-width:360px){
    .timeline-resolution-card .timeline-interval-toggle{width:100% !important;min-width:0 !important}
    .timeline-resolution-card .timeline-interval-toggle button{font-size:9px !important;padding:0 2px !important}
    .depth-legend-disconnected{font-size:8px}
    html body.mobile-optimized #mapTitleBadge.shorely-title-badge{gap:4px !important;padding:5px 7px !important;max-width:calc(100vw - 16px) !important}
    html body.mobile-optimized #mapTitleBadge #mapTitleText{font-size:17px !important;letter-spacing:-.035em !important;white-space:nowrap !important}
    html body.mobile-optimized #mapTitleBadge #mapTitlePartnerLogo{max-width:56px !important;max-height:26px !important}
  }

  html body #leftPanel #timelineIntervalCard,
  html body.observed-mode #leftPanel #timelineIntervalCard,
  html body.forecast-mode #leftPanel #timelineIntervalCard,
  html.os-mac body #leftPanel #timelineIntervalCard,
  html.os-windows body #leftPanel #timelineIntervalCard,
  html.win-compact-ui body #leftPanel #timelineIntervalCard,
  html.platform-mac-template body #leftPanel #timelineIntervalCard{
    position:relative !important;
    inset:auto !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:minmax(18px, auto) 36px !important;
    align-content:start !important;
    justify-items:stretch !important;
    gap:3px !important;
    flex:0 0 auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    min-height:72px !important;
    max-height:none !important;
    margin:0 !important;
    padding:6px 12px !important;
    overflow:visible !important;
    box-sizing:border-box !important;
    transform:none !important;
  }
  html body #leftPanel #timelineIntervalCard .section-title{
    min-width:0 !important;
    min-height:18px !important;
    height:auto !important;
    margin:0 !important;
    overflow:visible !important;
  }
  html body #leftPanel #timelineIntervalCard #timelineIntervalToggle{
    align-self:end !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:36px !important;
    min-height:36px !important;
    max-height:36px !important;
    margin:0 !important;
    padding:3px !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }
  html body #leftPanel #timelineIntervalCard #timelineIntervalToggle > button,
  html.os-mac body #leftPanel #timelineIntervalCard #timelineIntervalToggle > button,
  html.os-windows body #leftPanel #timelineIntervalCard #timelineIntervalToggle > button,
  html.win-compact-ui body #leftPanel #timelineIntervalCard #timelineIntervalToggle > button,
  html.platform-mac-template body #leftPanel #timelineIntervalCard #timelineIntervalToggle > button{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:30px !important;
    min-height:30px !important;
    max-height:30px !important;
    margin:0 !important;
    padding:0 5px !important;
    border-radius:999px !important;
    font-size:11.5px !important;
    line-height:1 !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
  }

  #timelineFloodKey,
  #shorelyMobileSliderKey{
    display:none !important;
  }
  #timelineDock .timeline-day.gauge-inoperable{
    background:#667085 !important;
    background-image:none !important;
    border-color:rgba(226,232,240,.42) !important;
    color:#ffffff !important;
    text-shadow:0 1px 2px rgba(0,0,0,.38) !important;
  }
  #timelineBubble .timeline-bubble-stage-gauge{
    background:#667085 !important;
    border-color:rgba(226,232,240,.42) !important;
    color:#ffffff !important;
  }

  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized #leftPanel #timelineIntervalCard,
    html body.mobile-optimized.observed-mode #leftPanel #timelineIntervalCard,
    html body.mobile-optimized.forecast-mode #leftPanel #timelineIntervalCard{
      grid-template-rows:minmax(18px, auto) 32px !important;
      flex-basis:auto !important;
      height:auto !important;
      min-height:70px !important;
      max-height:none !important;
      padding:7px 12px !important;
    }
    html body.mobile-optimized #leftPanel #timelineIntervalCard #timelineIntervalToggle{
      height:32px !important;
      min-height:32px !important;
      max-height:32px !important;
    }
    html body.mobile-optimized #leftPanel #timelineIntervalCard #timelineIntervalToggle > button{
      height:26px !important;
      min-height:26px !important;
      max-height:26px !important;
      padding:0 3px !important;
      font-size:9.5px !important;
    }
    html body.mobile-optimized #timelineDock .timeline-day.gauge-inoperable{
      font-size:9px !important;
      letter-spacing:0 !important;
    }
  }
  @media (min-width:600px) and (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized #timelineDock .timeline-trackRow{position:relative !important;top:-11px !important}
  }

  /* Keep the side controls visually flat against the map. */
  html body #leftPanel > .panel-card,
  html body #leftPanel > #legendDock,
  html body #rightRail > .rail-card,
  html body #mapperTutorialBtn{
    box-shadow:none !important;
    filter:none !important;
  }
  html body:not(.mobile-optimized) #timelineDock{
    bottom:4px !important;
  }

  /* The slider contains only the compact four-category key. */
  html body #timelineDock #timelineFloodKey{
    display:flex !important;
    color:#eaf0ff !important;
    font-size:11.5px !important;
    font-weight:900 !important;
  }
  html body #timelineDock #timelineFloodKey .timeline-key-item{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:0 !important;
    gap:5px !important;
    color:#eaf0ff !important;
    font-size:11.5px !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }
  html body #timelineDock #timelineFloodKey .timeline-key-item::after{
    content:none !important;
    display:none !important;
  }
  html body #timelineDock #timelineFloodKey .timeline-key-label{
    display:inline !important;
    font-size:inherit !important;
    line-height:inherit !important;
  }
  html body #timelineDock #timelineFloodKey .timeline-key-swatch{
    width:10px !important;
    min-width:10px !important;
    height:10px !important;
    min-height:10px !important;
    flex:0 0 10px !important;
  }
  html body #shorelyMobileSliderKey{display:none !important}
  html body #shorelyMobileSliderHelpBtn{display:none !important}

  /* Larger, balanced depth key that still keeps green uncertainty in-line. */
  html body #legendDock[data-legend-mode="depth"]{
    height:64px !important;
    min-height:64px !important;
    max-height:64px !important;
    padding:4px 10px 5px !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="depth"] .legend-header{
    height:22px !important;
    min-height:22px !important;
    margin:0 0 3px !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="depth"] .legend-title{
    font-size:14px !important;
    line-height:20px !important;
  }
  html body #legendDock[data-legend-mode="depth"] #legendList{
    display:grid !important;
    grid-template-columns:minmax(120px,1fr) auto !important;
    grid-template-rows:25px !important;
    grid-auto-flow:row !important;
    grid-auto-rows:25px !important;
    align-items:end !important;
    gap:7px !important;
    width:100% !important;
    height:25px !important;
    min-height:25px !important;
    padding:0 !important;
  }
  html body #legendDock[data-legend-mode="depth"] .depth-legend-scale{
    display:block !important;
    grid-column:1 !important;
    grid-row:1 !important;
    width:auto !important;
    height:25px !important;
    min-width:0 !important;
    margin:0 !important;
  }
  html body #legendDock[data-legend-mode="depth"] .depth-legend-labels{
    margin:0 2px 2px !important;
    font-size:10px !important;
    line-height:10px !important;
    letter-spacing:.045em !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="depth"] .depth-legend-gradient{
    height:10px !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="depth"] .depth-legend-disconnected{
    position:static !important;
    display:grid !important;
    grid-column:2 !important;
    grid-row:1 !important;
    grid-template-columns:12px auto 21px !important;
    align-items:center !important;
    gap:4px !important;
    height:25px !important;
    width:max-content !important;
    max-width:none !important;
    justify-self:end !important;
    color:#ddfbe3 !important;
    font-size:10.5px !important;
    line-height:1 !important;
    font-weight:900 !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="depth"] .depth-legend-disconnected-swatch{
    width:12px !important;
    height:12px !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="depth"] .depth-legend-help{
    width:21px !important;
    min-width:21px !important;
    height:21px !important;
    min-height:21px !important;
    font-size:11px !important;
  }

  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized #timelineDock #timelineFloodKey{
      display:none !important;
    }
    html body.mobile-optimized #timelineDock #shorelyMobileSliderKey{
      position:absolute !important;
      display:flex !important;
      align-items:center !important;
      justify-content:center !important;
      gap:clamp(5px,2vw,10px) !important;
      overflow:hidden !important;
      white-space:nowrap !important;
    }
    html body.mobile-optimized #timelineDock #shorelyMobileSliderKey .shorely-mobile-slider-key-item{
      gap:3px !important;
      font-size:clamp(8px,2.4vw,9.5px) !important;
    }
    html body.mobile-optimized #timelineDock #shorelyMobileSliderKey .shorely-mobile-slider-key-swatch{
      width:8px !important;
      min-width:8px !important;
      height:8px !important;
    }
    html body.mobile-optimized #leftPanel #legendDock[data-legend-mode="depth"]{
      height:64px !important;
      min-height:64px !important;
      max-height:64px !important;
    }
  }

  /* Keep native antialiasing when road labels are composited above floodwater. */
  html body .export-stage .leaflet-pane.roads-dark{
    z-index:710 !important;
  }
  html body .export-stage .leaflet-pane.roads-dark img,
  html body .export-stage .leaflet-layer.roads-dark{
    filter:none !important;
    mix-blend-mode:normal !important;
    opacity:1 !important;
  }

  .export-stage-logo-strip{
    top:18px !important;
    left:18px !important;
    min-height:160px !important;
    max-width:572px !important;
    padding:22px 32px !important;
    border-radius:40px !important;
  }
  .export-stage-logo{
    max-width:460px !important;
    max-height:120px !important;
  }
  .export-stage-logo-shorelysafe{
    max-width:484px !important;
    max-height:128px !important;
  }

  .export-stage-timestamp{
    top:18px !important;
    min-width:min(620px, calc(100% - 620px)) !important;
    max-width:min(850px, calc(100% - 620px)) !important;
    padding:14px 24px 15px !important;
    border-radius:22px !important;
    font-size:clamp(23px, 2vw, 34px) !important;
    line-height:1.16 !important;
  }

  .export-stage-legend[data-export-legend-mode="depth"]{
    top:18px !important;
    right:40px !important;
    width:260px !important;
    padding:17px 18px 16px !important;
    border-radius:20px !important;
    background:rgba(11,18,32,.96) !important;
    border:1px solid rgba(191,219,254,.32) !important;
    box-shadow:0 12px 28px rgba(0,0,0,.28) !important;
  }
  .export-depth-key{
    display:grid;
    gap:11px;
    color:#fff;
  }
  .export-depth-key-heading{
    display:flex;
    align-items:center;
  }
  .export-depth-key-heading strong{
    color:#fff;
    font-size:21px;
    line-height:1;
    font-weight:950;
    letter-spacing:-.025em;
    white-space:nowrap;
  }
  .export-depth-key-scale{
    display:grid;
    gap:6px;
  }
  .export-depth-key-gradient{
    height:18px;
    border:1px solid rgba(255,255,255,.68);
    border-radius:999px;
    background:linear-gradient(90deg,#18c8ff 0%,#00a6f2 20%,#1479df 40%,#1852bd 60%,#132f7d 80%,#041536 100%);
    box-shadow:inset 0 1px 2px rgba(255,255,255,.28);
  }
  .export-depth-key-ends{
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .export-depth-key-ends{
    color:#c8d8ef;
    font-size:9.5px;
    line-height:1;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  .export-stage-frame[data-export-aspect="1:1"] .export-stage-legend[data-export-legend-mode="depth"]{
    width:252px !important;
  }
  .export-stage-frame[data-export-aspect="9:16"] .export-stage-logo-strip{
    min-height:176px !important;
    max-width:540px !important;
  }
  .export-stage-frame[data-export-aspect="9:16"] .export-stage-logo{
    max-width:448px !important;
    max-height:132px !important;
  }
  .export-stage-frame[data-export-aspect="9:16"] .export-stage-timestamp{
    top:122px !important;
    left:18px !important;
    right:316px !important;
    min-width:0 !important;
    max-width:none !important;
  }
  .export-stage-frame[data-export-aspect="9:16"] .export-stage-legend[data-export-legend-mode="depth"]{
    top:122px !important;
    right:40px !important;
    width:258px !important;
  }

  /*
   * Final phone layout contract:
   * - the map title owns the first row;
   * - map-tap mode and Controls share the second row when Buildings/Parcels are on;
   * - the timeline key never runs underneath its help button.
   */
  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized #mobileControlsToggle{
      top:max(64px, calc(env(safe-area-inset-top, 0px) + 64px)) !important;
    }

    html body.mobile-optimized.persistent-flood-popup-open #timelineBubble{
      visibility:hidden !important;
      opacity:0 !important;
      pointer-events:none !important;
    }

    html body.mobile-optimized:has(#mapClickModeControl:not([hidden])) #mobileControlsToggle{
      left:auto !important;
      right:10px !important;
      width:104px !important;
      min-width:104px !important;
      transform:none !important;
    }

    html body.mobile-optimized #mapClickModeControl.map-click-mode-control{
      top:max(64px, calc(env(safe-area-inset-top, 0px) + 64px)) !important;
      left:10px !important;
      right:auto !important;
      width:auto !important;
      max-width:calc(100vw - 128px) !important;
      grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
      transform:none !important;
    }

    html body.mobile-optimized #mapClickModeControl .map-click-mode-label{
      display:none !important;
    }

    html body.mobile-optimized #mapClickModeControl button{
      min-width:0 !important;
      padding:0 9px !important;
      overflow:hidden !important;
      font-size:0 !important;
      text-overflow:clip !important;
    }

    html body.mobile-optimized #mapClickModeControl button::after{
      font-size:10px !important;
      line-height:1 !important;
      font-weight:900 !important;
      white-space:nowrap !important;
    }

    html body.mobile-optimized #mapClickBuildingBtn::after{content:"Building Info"}
    html body.mobile-optimized #mapClickDepthBtn::after{content:"Flood Depth"}

    html body.mobile-optimized #shorelyMobileSliderKey{
      left:64px !important;
      right:48px !important;
      width:auto !important;
      max-width:none !important;
    }

    html body.mobile-optimized .flood-history-close{
      width:44px !important;
      min-width:44px !important;
      height:44px !important;
      min-height:44px !important;
      border-radius:11px !important;
    }

    html body.mobile-optimized .flood-year-control input[type="range"]{
      height:30px !important;
      min-height:30px !important;
    }

    html body.mobile-optimized .flood-scenario-field{
      flex-basis:200px !important;
    }

    html body.mobile-optimized .shorely-flood-popup .leaflet-popup-close-button{
      top:4px !important;
      right:4px !important;
      width:44px !important;
      min-width:44px !important;
      height:44px !important;
      min-height:44px !important;
      font-size:25px !important;
      line-height:42px !important;
    }

    html body.mobile-optimized .shorely-flood-popup .depth-query-popup h3{
      box-sizing:border-box !important;
      margin:0 44px 10px 0 !important;
      padding:0 !important;
    }
  }

  @media (max-width:360px) and (orientation:portrait){
    html body.mobile-optimized #mapTitleBadge.shorely-title-badge{
      width:calc(100vw - 16px) !important;
      max-width:calc(100vw - 16px) !important;
      grid-template-columns:minmax(0, 1fr) auto !important;
      gap:4px !important;
      overflow:hidden !important;
    }

    html body.mobile-optimized #mapTitleBadge #mapTitleText{
      min-width:0 !important;
      overflow:hidden !important;
      font-size:15px !important;
      letter-spacing:-.025em !important;
      text-overflow:ellipsis !important;
      white-space:nowrap !important;
    }

    html body.mobile-optimized #mapTitleBadge #mapTitlePartnerLogo{
      max-width:49px !important;
      max-height:24px !important;
    }

    html body.mobile-optimized #shorelyMobileSliderKey{
      left:60px !important;
      right:48px !important;
      gap:4px !important;
    }

    html body.mobile-optimized #shorelyMobileSliderKey .shorely-mobile-slider-key-item{
      gap:3px !important;
      font-size:8.2px !important;
    }

    html body.mobile-optimized #shorelyMobileSliderKey .shorely-mobile-slider-key-swatch{
      width:7px !important;
      min-width:7px !important;
      height:7px !important;
      min-height:7px !important;
    }

    html body.mobile-optimized .flood-history-head{
      gap:8px !important;
    }

    html body.mobile-optimized .flood-history-head h2{
      font-size:16px !important;
    }

    html body.mobile-optimized .flood-scenario-field{
      flex-basis:156px !important;
    }

    html body.mobile-optimized .shorely-flood-popup .leaflet-popup-content{
      margin:14px 14px 15px !important;
    }

    html body.mobile-optimized .shorely-flood-popup .house-alert-popup{
      width:auto !important;
      min-width:0 !important;
      max-width:none !important;
    }

    html body.mobile-optimized .shorely-flood-popup .house-alert-popup h3{
      margin-right:44px !important;
    }

    html body.mobile-optimized .shorely-flood-popup .house-alert-cta{
      padding:7px 8px !important;
      line-height:1.2 !important;
      white-space:normal !important;
    }
  }

  @media (min-width:600px) and (max-height:560px) and (orientation:landscape) and (pointer:coarse) {
    html body.mobile-optimized .shorely-flood-popup .leaflet-popup-content{
      margin:10px 12px 11px !important;
    }

    html body.mobile-optimized .shorely-flood-popup .house-alert-popup{
      display:grid !important;
      grid-template-columns:120px minmax(0, 1fr) !important;
      grid-template-areas:
        "kicker kicker"
        "title title"
        "summary action" !important;
      column-gap:10px !important;
      row-gap:5px !important;
      width:100% !important;
      min-width:0 !important;
    }

    html body.mobile-optimized .shorely-flood-popup .house-alert-kicker{
      grid-area:kicker !important;
      margin:0 48px 0 0 !important;
    }

    html body.mobile-optimized .shorely-flood-popup .house-alert-popup h3{
      grid-area:title !important;
      margin:0 48px 0 0 !important;
      font-size:16px !important;
    }

    html body.mobile-optimized .shorely-flood-popup .house-alert-summary{
      grid-area:summary !important;
      justify-content:center !important;
      min-height:44px !important;
      margin:0 !important;
      padding:7px 9px !important;
    }

    html body.mobile-optimized .shorely-flood-popup .house-alert-cta{
      grid-area:action !important;
      min-height:44px !important;
      margin:0 !important;
    }

    html body.mobile-optimized .flood-scenario-field{
      flex-basis:220px !important;
    }

    html body.mobile-optimized .flood-projection-chart{
      height:128px !important;
    }
  }

  html body #leftPanel .data-source-options{
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:5px !important;
  }

  html body #leftPanel .data-source-options button{
    min-width:0 !important;
    padding:7px 3px !important;
    font-size:10.5px !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }

  html body #leftPanel > .return-interval-card{
    order:3 !important;
    display:none !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
  }

  html body.return-interval-mode #leftPanel > .return-interval-card{
    display:flex !important;
  }

  html body.return-interval-mode #leftPanel > .forecast-scenario-card,
  html body.return-interval-mode #leftPanel > #calendarCard,
  html body.return-interval-mode #leftPanel > .mobile-top-tides-card{
    display:none !important;
  }

  html body.return-interval-mode #leftPanel > #timelineIntervalCard{order:1 !important}
  html body.return-interval-mode #leftPanel > .data-source-card{order:2 !important}
  html body.return-interval-mode #leftPanel > .overlay-card{order:4 !important}
  html body.return-interval-mode #leftPanel > .datum-card{order:5 !important}
  html body.return-interval-mode #leftPanel > .opacity-card{order:6 !important}
  html body.return-interval-mode #leftPanel > #legendDock{order:7 !important}
  html body.return-interval-mode #leftPanel > .snapshot-card{order:8 !important}

  html body.return-interval-mode #returnIntervalCard .return-interval-grid{
    grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
    gap:5px !important;
  }

  html body.return-interval-mode #leftPanel{
    overflow-y:auto !important;
    overflow-x:hidden !important;
    scrollbar-width:thin !important;
  }

  html body.return-interval-mode #returnIntervalCard .return-interval-grid button{
    min-width:0 !important;
    min-height:33px !important;
    height:33px !important;
    padding:4px 2px !important;
    font-size:10px !important;
    line-height:1 !important;
  }
  html body.return-interval-mode #returnIntervalCard #return2000Btn{
    grid-column:2;
  }

  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized #leftPanel .data-source-options button{
      min-height:34px !important;
      height:34px !important;
      font-size:9.5px !important;
    }

    html body.mobile-optimized.return-interval-mode #leftPanel > .return-interval-card{
      order:3 !important;
      flex:0 0 auto !important;
      padding:9px 12px !important;
    }

    html body.mobile-optimized.return-interval-mode #returnIntervalCard .return-interval-grid{
      grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
    }

    html body.mobile-optimized.return-interval-mode #leftPanel > .overlay-card .button-grid-2,
    html body.mobile-optimized.return-interval-mode #leftPanel > .datum-card .segmented-control{
      grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }

    html body.mobile-optimized.return-interval-mode #leftPanel > #timelineIntervalCard{order:1 !important}
    html body.mobile-optimized.return-interval-mode #leftPanel > .data-source-card{order:2 !important}
    html body.mobile-optimized.return-interval-mode #leftPanel > .overlay-card{order:4 !important}
    html body.mobile-optimized.return-interval-mode #leftPanel > .datum-card{order:5 !important}
    html body.mobile-optimized.return-interval-mode #leftPanel > .opacity-card{order:6 !important}
    html body.mobile-optimized.return-interval-mode #leftPanel > .snapshot-card{order:7 !important}
  }

  /* Match the tour action to the navy control panes in every layout. */
  html body #mapperTutorialBtn.mapper-tutorial-launch{
    min-height:38px !important;
    margin:0 !important;
    padding:0 14px !important;
    border:1px solid rgba(191,219,254,.26) !important;
    background:rgba(11,18,32,.96) !important;
    color:#f2f7ff !important;
    box-shadow:none !important;
    opacity:1 !important;
  }
  html body #mapperTutorialBtn.mapper-tutorial-launch:hover,
  html body #mapperTutorialBtn.mapper-tutorial-launch:focus-visible{
    border-color:#7df9ff !important;
    background:#12213a !important;
    color:#fff !important;
  }
  html body #rightRail > .layers-card{order:1 !important}
  html body #rightRail > #townAddressCard{order:2 !important}
  html body #rightRail > #downloadCard{order:3 !important}
  html body #rightRail > .top-tides-card{order:4 !important}
  html body[data-floodmapper-unified] #rightRail > #mapperTutorialBtn#mapperTutorialBtn{order:0 !important}

  #mobileMapperTutorialBtn{
    display:none;
  }
  html.county-compact body:is([data-site-loader="complete"],[data-site-loader="timeout"]):not(.mobile-controls-open,.mobile-legend-open) #mobileMapperTutorialBtn{
    display:block;
    position:fixed;
    z-index:6200;
    left:var(--cm-left,8px);
    top:calc(var(--cm-top,8px) + var(--nww-tour-title-height,44px) + 8px);
    box-sizing:border-box;
    width:auto;
    max-width:calc(100vw - var(--cm-left,8px) - var(--cm-right,8px) - var(--nww-tour-nav-clearance,64px));
    min-height:44px;
    padding:6px 12px;
    border:1px solid rgba(191,219,254,.38);
    border-radius:10px;
    background:#171e2a;
    color:#f2f7ff;
    font:650 13px/1.2 system-ui,sans-serif;
  }
  @media (max-height:560px){
    html.county-compact body #mobileMapperTutorialBtn{
      --nww-tour-nav-clearance:200px;
    }
    html.county-compact body:has(#mapClickModeControl:not([hidden])) #mobileMapperTutorialBtn{
      display:none !important;
    }
  }
  /* At these sizes the title, map navigation and timeline leave no clear tour row. */
  @media (max-height:319px), (max-width:440px) and (max-height:450px){
    html.county-compact body #mobileMapperTutorialBtn{
      display:none !important;
    }
  }
  body[data-tour-attention] :is(#mapperTutorialBtn,#mobileMapperTutorialBtn):not(:focus-visible){
    outline:3px solid #ff5864;
    outline-offset:-3px;
    animation:nww-tour-outline-pulse 1.25s ease-in-out infinite;
  }
  @keyframes nww-tour-outline-pulse{
    50%{outline-color:rgba(255,88,100,.36)}
  }
  @media (prefers-reduced-motion:reduce), (forced-colors:active){
    body[data-tour-attention] :is(#mapperTutorialBtn,#mobileMapperTutorialBtn):not(:focus-visible){
      animation:none;
    }
  }

  /* One key: green uncertainty flows directly into shallow-to-deep blue. */
  html body #legendDock[data-legend-mode="depth"]{
    height:94px !important;
    min-height:94px !important;
    max-height:94px !important;
    padding:4px 10px 6px !important;
  }
  html body #legendDock[data-legend-mode="depth"] #legendList{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:26px 18px !important;
    align-items:end !important;
    gap:3px !important;
    width:100% !important;
    height:47px !important;
    min-height:47px !important;
  }
  html body #legendDock[data-legend-mode="depth"] .depth-legend-scale{
    display:block !important;
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    height:26px !important;
    min-width:0 !important;
    margin:0 !important;
  }
  html body #legendDock[data-legend-mode="depth"] .depth-legend-labels{
    display:grid !important;
    grid-template-columns:29% minmax(0,1fr) auto !important;
    align-items:center !important;
    margin:0 2px 2px !important;
    color:#e7f3ff !important;
    font-size:9px !important;
    line-height:10px !important;
    font-weight:900 !important;
    letter-spacing:.035em !important;
    text-transform:uppercase !important;
  }
  html body #legendDock[data-legend-mode="depth"] .depth-legend-labels span:nth-child(2){
    justify-self:start;
  }
  html body #legendDock[data-legend-mode="depth"] .depth-legend-labels span:last-child{
    justify-self:end;
  }
  html body #legendDock[data-legend-mode="depth"] .depth-legend-gradient{
    height:10px !important;
    border-radius:999px !important;
    border:1px solid rgba(255,255,255,.48) !important;
    background:linear-gradient(90deg,#63d471 0%,#63d471 18%,#18c8ff 18%,#00a6f2 34%,#1479df 50%,#1852bd 67%,#132f7d 83%,#041536 100%) !important;
    box-shadow:inset 0 1px 1px rgba(255,255,255,.25) !important;
  }
  html body #legendDock[data-legend-mode="depth"] .depth-legend-uncertainty-note{
    display:flex !important;
    grid-column:1 !important;
    grid-row:2 !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:5px !important;
    min-width:0 !important;
    height:18px !important;
    color:#d8e7f5 !important;
    font-size:9.5px !important;
    line-height:1 !important;
    font-weight:750 !important;
  }
  html body #legendDock[data-legend-mode="depth"] .depth-legend-uncertainty-note strong{
    color:#83e58d;
    font-weight:950;
  }
  html body #legendDock[data-legend-mode="depth"] .depth-legend-help{
    width:18px !important;
    min-width:18px !important;
    height:18px !important;
    min-height:18px !important;
    padding:0 !important;
    border-radius:50% !important;
    font-size:10px !important;
  }

  .export-depth-key-gradient{
    background:linear-gradient(90deg,#63d471 0%,#63d471 18%,#18c8ff 18%,#00a6f2 34%,#1479df 50%,#1852bd 67%,#132f7d 83%,#041536 100%) !important;
  }
  .export-depth-key-ends{
    display:flex !important;
    justify-content:space-between !important;
    gap:12px !important;
  }
  .export-depth-key-ends span:nth-child(2){justify-self:start}
  .export-depth-key-ends span:last-child{justify-self:end}
  .export-depth-key-note{
    color:#d7e5f5;
    font-size:10px;
    line-height:1.25;
    font-weight:750;
  }
  .export-depth-key-note strong{color:#83e58d;font-weight:950}

  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized #legendDock[data-legend-mode="depth"]{
      height:94px !important;
      min-height:94px !important;
      max-height:94px !important;
    }
    html body.mobile-optimized #legendDock[data-legend-mode="depth"] .depth-legend-labels{
      grid-template-columns:40% minmax(0,1fr) auto !important;
      font-size:8px !important;
      letter-spacing:.015em !important;
    }
    html body.mobile-optimized #legendDock[data-legend-mode="depth"] .depth-legend-uncertainty-note{
      font-size:8.5px !important;
    }
    html body.mobile-optimized #mapperTutorialBtn.mapper-tutorial-launch{
      min-height:44px !important;
      font-size:12px !important;
    }
    html body.mobile-optimized #mapperTutorialClose.mapper-tutorial-close{
      width:44px !important;
      min-width:44px !important;
      height:44px !important;
      min-height:44px !important;
    }
    html body.mobile-optimized .datum-modal-close{
      width:44px !important;
      min-width:44px !important;
      height:44px !important;
      min-height:44px !important;
    }
    html body.mobile-optimized #mobileControlsClose,
    html body.mobile-optimized.mobile-controls-open #leftPanel > #mobileControlsClose{
      width:44px !important;
      min-width:44px !important;
      height:44px !important;
      min-height:44px !important;
    }
    html body.mobile-optimized #leftPanel .data-source-options button,
    html body.mobile-optimized #leftPanel .forecast-options button,
    html body.mobile-optimized #forecastScenarioCard button,
    html body.mobile-optimized #leftPanel .button-grid-2 button,
    html body.mobile-optimized #leftPanel .segmented-control button,
    html body.mobile-optimized #leftPanel .timeline-interval-toggle button,
    html body.mobile-optimized.return-interval-mode #returnIntervalCard .return-interval-grid button{
      min-height:44px !important;
      height:44px !important;
    }
    html body.mobile-optimized #townAddressSearchBtn,
    html body.mobile-optimized #townAddressClearBtn{
      min-height:44px !important;
      height:44px !important;
    }
    html body.mobile-optimized #mapWrap > #legendDock[data-legend-mode="depth"]{
      position:fixed !important;
      top:108px !important;
      left:max(8px,env(safe-area-inset-left,0px)) !important;
      right:auto !important;
      bottom:auto !important;
      width:min(282px,calc(100vw - 96px)) !important;
      max-width:min(282px,calc(100vw - 96px)) !important;
      height:64px !important;
      min-height:64px !important;
      max-height:64px !important;
      padding:4px 10px 6px !important;
      transform:none !important;
      z-index:4300 !important;
      display:block !important;
      visibility:visible !important;
      opacity:1 !important;
    }
    html body.mobile-optimized:has(#mapClickModeControl:not([hidden])) #mapWrap > #legendDock{
      top:126px !important;
    }
  }

  @media (min-width:600px) and (max-height:560px) and (orientation:landscape) and (pointer:coarse) {
    html body.mobile-optimized #mapWrap > #legendDock[data-legend-mode="depth"]{
      top:62px !important;
      width:250px !important;
      max-width:250px !important;
      height:64px !important;
      min-height:64px !important;
      max-height:64px !important;
    }
  }

  html body #leftPanel > .data-source-card,
  html body:not(.observed-mode):not(.return-interval-mode) #leftPanel > .data-source-card,
  html body.observed-mode #leftPanel > .data-source-card,
  html body.observed-mode.calendar-picker-open #leftPanel > .data-source-card,
  html body.return-interval-mode #leftPanel > .data-source-card{
    padding:10px 12px !important;
    min-height:99px !important;
    height:99px !important;
    max-height:99px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    gap:10px !important;
    box-sizing:border-box !important;
  }

  html body #leftPanel > .data-source-card .section-title,
  html body:not(.observed-mode):not(.return-interval-mode) #leftPanel > .data-source-card .section-title,
  html body.observed-mode #leftPanel > .data-source-card .section-title,
  html body.observed-mode.calendar-picker-open #leftPanel > .data-source-card .section-title,
  html body.return-interval-mode #leftPanel > .data-source-card .section-title{
    flex:0 0 27px !important;
    min-height:27px !important;
    height:27px !important;
    max-height:27px !important;
    margin:0 !important;
  }

  html body #leftPanel .data-source-options,
  html body.observed-mode #leftPanel .data-source-options,
  html body.observed-mode.calendar-picker-open #leftPanel .data-source-options,
  html body.return-interval-mode #leftPanel .data-source-options{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:5px !important;
    flex:0 0 auto !important;
  }

  html body #leftPanel .data-source-options button,
  html body.observed-mode #leftPanel .data-source-options button,
  html body.observed-mode.calendar-picker-open #leftPanel .data-source-options button,
  html body.return-interval-mode #leftPanel .data-source-options button{
    width:100% !important;
    min-width:0 !important;
    min-height:42px !important;
    height:42px !important;
    padding:7px 3px !important;
    font-size:10.5px !important;
    line-height:1.05 !important;
    white-space:normal !important;
  }

  html body .info-modal-card{
    width:min(460px,calc(100vw - 32px)) !important;
  }

  html body .info-modal-body{
    font-size:13.5px !important;
    line-height:1.45 !important;
  }

  @media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
    html body:not(.mobile-optimized) #rightRail{
      padding-bottom:46px !important;
    }

    html body:not(.mobile-optimized) #mapperTutorialBtn.mapper-tutorial-launch{
      position:fixed !important;
      right:0 !important;
      bottom:0 !important;
      left:auto !important;
      top:auto !important;
      width:100% !important;
      z-index:2700 !important;
    }
  }

  @media (min-width:901px) and (min-height:561px) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px) and (max-height:760px), (min-width:901px) and (pointer:fine) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine) and (max-height:760px), (min-width:901px) and (pointer:none) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) and (max-height:760px) {
    html body:not(.mobile-optimized) #rightRail > .rail-card{
      padding:7px !important;
    }

    html body:not(.mobile-optimized) #rightRail > .layers-card{
      height:178px !important;
      min-height:178px !important;
      max-height:178px !important;
      overflow:hidden !important;
    }

    html body:not(.mobile-optimized) #rightRail .layers-card .layer-list{
      gap:2px !important;
    }

    html body:not(.mobile-optimized) #rightRail .layers-card .layer-item{
      height:25px !important;
      min-height:25px !important;
      max-height:25px !important;
    }

    html body:not(.mobile-optimized) #rightRail > .top-tides-card{
      height:136px !important;
      min-height:136px !important;
      max-height:136px !important;
      overflow:hidden !important;
    }

    html body:not(.mobile-optimized) #rightRail .top-tides-card .top-tide-item{
      height:29px !important;
      min-height:29px !important;
      max-height:29px !important;
    }

    html body:not(.mobile-optimized) #rightRail .top-tides-card .top-tide-more-btn{
      height:26px !important;
      min-height:26px !important;
    }

    html body:not(.mobile-optimized) #rightRail > #downloadCard{
      height:70px !important;
      min-height:70px !important;
      max-height:70px !important;
      gap:4px !important;
      overflow:hidden !important;
    }

    html body:not(.mobile-optimized) #rightRail > #downloadCard .rail-head{
      min-height:16px !important;
      height:16px !important;
      margin:0 !important;
    }

    html body:not(.mobile-optimized) #rightRail > #downloadCard .download-launch-btn{
      height:30px !important;
      min-height:30px !important;
    }

    html body:not(.mobile-optimized) #rightRail > #townAddressCard{
      height:134px !important;
      min-height:134px !important;
      max-height:134px !important;
      gap:4px !important;
      overflow:hidden !important;
    }

    html body:not(.mobile-optimized) #rightRail #townAddressCard .town-address-form{
      gap:3px !important;
    }

    html body:not(.mobile-optimized) #rightRail #townAddressCard .town-address-input,
    html body:not(.mobile-optimized) #rightRail #townAddressCard .town-address-actions button{
      height:30px !important;
      min-height:30px !important;
    }
  }

  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized.observed-mode #leftPanel,
    html body.mobile-optimized.observed-mode.mobile-controls-open #leftPanel{
      overflow-y:auto !important;
    }

    html body.mobile-optimized.observed-mode #leftPanel > .data-source-card,
    html body.mobile-optimized.observed-mode.mobile-controls-open #leftPanel > .data-source-card,
    html body.mobile-optimized.return-interval-mode #leftPanel > .data-source-card,
    html body.mobile-optimized.return-interval-mode.mobile-controls-open #leftPanel > .data-source-card{
      padding:10px 11px !important;
      width:calc(100% - 10px) !important;
      align-self:flex-start !important;
    }

    html body.mobile-optimized:not(.observed-mode):not(.return-interval-mode) #leftPanel > .data-source-card{
      padding:10px 11px !important;
    }

    html body.mobile-optimized #leftPanel .data-source-options button,
    html body.mobile-optimized.observed-mode #leftPanel .data-source-options button,
    html body.mobile-optimized.return-interval-mode #leftPanel .data-source-options button{
      min-height:44px !important;
      height:44px !important;
      font-size:10px !important;
    }
  }

  /* Keep both control rails readable as one consistent, ordered system. */
  @media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
    html body:not(.mobile-optimized) #leftPanel{
      gap:7px !important;
      padding:0 4px 8px 0 !important;
      overflow-y:auto !important;
      overflow-x:hidden !important;
      scrollbar-width:thin !important;
      scrollbar-color:rgba(125,249,255,.5) transparent !important;
    }

    html body #leftPanel > .data-source-card{order:1 !important}
    html body #leftPanel > .forecast-scenario-card,
    html body #leftPanel > .return-interval-card,
    html body #leftPanel > #calendarCard{order:2 !important}
    html body #leftPanel > .overlay-card{order:3 !important}
    html body #leftPanel > .datum-card{order:4 !important}
    html body #leftPanel > .opacity-card{order:5 !important}
    html body #leftPanel > #timelineIntervalCard{order:6 !important}
    html body #leftPanel > #legendDock{order:7 !important}
    html body #leftPanel > .snapshot-card{order:8 !important}
    html body #leftPanel > .mobile-top-tides-card{order:9 !important}

    html body.return-interval-mode #leftPanel > .data-source-card,
    html body.observed-mode #leftPanel > .data-source-card{order:1 !important}
    html body.return-interval-mode #leftPanel > .return-interval-card,
    html body.observed-mode #leftPanel > #calendarCard{order:2 !important}
    html body.return-interval-mode #leftPanel > .overlay-card,
    html body.observed-mode #leftPanel > .overlay-card{order:3 !important}
    html body.return-interval-mode #leftPanel > .datum-card,
    html body.observed-mode #leftPanel > .datum-card{order:4 !important}
    html body.return-interval-mode #leftPanel > .opacity-card,
    html body.observed-mode #leftPanel > .opacity-card{order:5 !important}
    html body.return-interval-mode #leftPanel > #timelineIntervalCard,
    html body.observed-mode #leftPanel > #timelineIntervalCard{order:6 !important}
    html body.return-interval-mode #leftPanel > #legendDock,
    html body.observed-mode #leftPanel > #legendDock{order:7 !important}
    html body.return-interval-mode #leftPanel > .snapshot-card,
    html body.observed-mode #leftPanel > .snapshot-card{order:8 !important}
    html body.observed-mode #leftPanel > .mobile-top-tides-card{order:9 !important}

    html body:not(.mobile-optimized) #leftPanel > .panel-card,
    html body:not(.mobile-optimized) #leftPanel > #legendDock{
      background:rgba(11,18,32,.94) !important;
      border:1px solid rgba(191,219,254,.16) !important;
      border-radius:16px !important;
      box-shadow:0 12px 24px rgba(15,23,42,.20) !important;
    }
  }

  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized #leftPanel{
      gap:8px !important;
      overflow-y:auto !important;
      overflow-x:hidden !important;
    }

    html body.mobile-optimized #leftPanel > .data-source-card{order:1 !important}
    html body.mobile-optimized #leftPanel > .forecast-scenario-card,
    html body.mobile-optimized #leftPanel > .return-interval-card,
    html body.mobile-optimized #leftPanel > #calendarCard{order:2 !important}
    html body.mobile-optimized #leftPanel > .overlay-card{order:3 !important}
    html body.mobile-optimized #leftPanel > .datum-card{order:4 !important}
    html body.mobile-optimized #leftPanel > .opacity-card{order:5 !important}
    html body.mobile-optimized #leftPanel > #timelineIntervalCard{order:6 !important}
    html body.mobile-optimized #leftPanel > .snapshot-card{order:7 !important}
    html body.mobile-optimized #leftPanel > .mobile-top-tides-card{order:8 !important}
    html body.mobile-optimized #leftPanel > #mobileRailMount{order:9 !important}

    html body.mobile-optimized.return-interval-mode #leftPanel > .data-source-card,
    html body.mobile-optimized.observed-mode #leftPanel > .data-source-card{order:1 !important}
    html body.mobile-optimized.return-interval-mode #leftPanel > .return-interval-card,
    html body.mobile-optimized.observed-mode #leftPanel > #calendarCard{order:2 !important}
    html body.mobile-optimized.return-interval-mode #leftPanel > .overlay-card,
    html body.mobile-optimized.observed-mode #leftPanel > .overlay-card{order:3 !important}
    html body.mobile-optimized.return-interval-mode #leftPanel > .datum-card,
    html body.mobile-optimized.observed-mode #leftPanel > .datum-card{order:4 !important}
    html body.mobile-optimized.return-interval-mode #leftPanel > .opacity-card,
    html body.mobile-optimized.observed-mode #leftPanel > .opacity-card{order:5 !important}
    html body.mobile-optimized.return-interval-mode #leftPanel > #timelineIntervalCard,
    html body.mobile-optimized.observed-mode #leftPanel > #timelineIntervalCard{order:6 !important}
    html body.mobile-optimized.return-interval-mode #leftPanel > .snapshot-card,
    html body.mobile-optimized.observed-mode #leftPanel > .snapshot-card{order:7 !important}

    html body.mobile-optimized #leftPanel > .panel-card,
    html body.mobile-optimized #mobileRailMount > .rail-card,
    html body.mobile-optimized #mobileRailMount > #mapperTutorialBtn{
      border:1px solid rgba(191,219,254,.16) !important;
      border-radius:18px !important;
      background:rgba(11,18,32,.94) !important;
      box-shadow:none !important;
    }

    html body.mobile-optimized #mobileRailMount{
      display:flex !important;
      flex-direction:column !important;
      gap:8px !important;
      width:100% !important;
    }

    html body.mobile-optimized #mobileRailMount > .layers-card{
      width:100% !important;
      min-height:142px !important;
      height:auto !important;
      padding:12px !important;
    }

    html body.mobile-optimized #mobileRailMount > .layers-card .layer-list{
      display:grid !important;
      grid-template-columns:repeat(2,minmax(0,1fr)) !important;
      gap:8px !important;
    }

    html body.mobile-optimized #mobileRailMount > .layers-card .layer-item{
      min-width:0 !important;
      min-height:48px !important;
      height:48px !important;
      padding:7px 9px !important;
      border-radius:13px !important;
    }

    html body.mobile-optimized #mobileRailMount > .layers-card .layer-name{
      font-size:13px !important;
      white-space:nowrap !important;
    }
  }

  :root {
    --nww-pill-surface:#111826;
    --nww-pill-outline:rgba(191,219,254,.22);
    --nww-close-surface:#1b2739;
    --nww-close-hover:#263850;
    --nww-close-ink:#eaf0ff;
  }

  @layer north-wildwood-control-layout {
    :root {
      font-family:var(--nww-ui-font-family) !important;
      --nww-close-size:36px;
      --nww-help-size:28px;
    }
    :root.county-compact { --nww-close-size:44px; --nww-help-size:44px; }
    @media (max-height:800px) and (not (any-pointer:coarse)) {
      :root:not(.county-compact) { --nww-help-size:20px; }
    }
    @media (any-pointer:coarse) {
      :root { --nww-close-size:44px; --nww-help-size:44px; }
    }
    :is(.centered-close-control,.leaflet-popup-close-button,.maplibregl-popup-close-button):not([hidden]) {
      width:var(--nww-close-size) !important;
      min-width:var(--nww-close-size) !important;
      max-width:var(--nww-close-size) !important;
      height:var(--nww-close-size) !important;
      min-height:var(--nww-close-size) !important;
      max-height:var(--nww-close-size) !important;
      flex:0 0 var(--nww-close-size) !important;
      border-radius:8px !important;
    }
    body:not(.mobile-controls-open) #mobileControlsClose { display:none !important; }
    :is(.help-btn,.property-help > summary) {
      box-sizing:border-box !important;
      width:var(--nww-help-size) !important;
      min-width:var(--nww-help-size) !important;
      max-width:var(--nww-help-size) !important;
      height:var(--nww-help-size) !important;
      min-height:var(--nww-help-size) !important;
      max-height:var(--nww-help-size) !important;
      flex:0 0 var(--nww-help-size) !important;
      padding:0 !important;
      font-size:16px !important;
      font-weight:750 !important;
      line-height:1 !important;
      letter-spacing:0 !important;
    }

    #leftPanel .section-title > .title-with-help:has(> .help-btn) {
      flex:1 1 auto !important;
      justify-content:space-between !important;
    }
    #leftPanel .section-title .title-with-help > .help-btn { margin-inline-start:auto !important; }
    #leftPanel :is(#datumMllwBtn,#datumNavd88Btn,#depthModeBtn,#dynamicModeBtn) {
      font-size:clamp(12px,1.1vw,14px) !important;
    }
    .layers-card .rail-head:has(> #layersHelpBtn) {
      display:flex !important;
      justify-content:space-between !important;
      align-items:center !important;
      gap:8px !important;
    }
    #mapperTutorialBtn.mapper-tutorial-launch {
      border-color:var(--nww-pill-outline) !important;
      font-weight:750 !important;
    }
    #mapperTutorialBtn.mapper-tutorial-launch:is(:hover,:focus-visible) {
      border-color:var(--fleet-accent) !important;
    }
    #infoModalBody .layer-help-list { margin:0; }
    #infoModalBody .layer-help-list dt { font-weight:700; }
    #infoModalBody .layer-help-list dd { margin:3px 0 12px; }

    #timelineDock #timelineDayTabs {
      overflow-x:auto !important;
      overflow-y:hidden !important;
      scrollbar-width:none;
    }
    #timelineDock #timelineDayTabs .timeline-day {
      min-width:66px !important;
      white-space:nowrap !important;
    }
    #timelineDock #timelineDayTabs .timeline-day.gauge-inoperable { min-width:132px !important; }

    .mapper-tutorial-card {
      display:grid;
      grid-template-rows:auto auto minmax(0,1fr) auto;
      row-gap:10px;
      box-sizing:border-box;
      background:var(--nww-pill-surface) !important;
      border:1px solid var(--nww-pill-outline) !important;
      border-radius:16px !important;
      padding:16px !important;
      color:#eff6ff !important;
    }
    .mapper-tutorial-card h2 { margin:0 !important; font-size:21px !important; line-height:1.2 !important; }
    .mapper-tutorial-track { flex:1; min-width:0; height:5px; accent-color:#60a5fa; }
    .mapper-tutorial-content { min-height:0; overflow:auto; overscroll-behavior:contain; }
    .mapper-tutorial-body { color:#dbe8f8 !important; }
    .mapper-tutorial-body p { margin:0 !important; }
    .mapper-tutorial-feedback { color:#bfdbfe; font-size:13px; line-height:1.35; margin:6px 0 0; }
    .mapper-tutorial-feedback:empty { display:none; }
    .mapper-tutorial-actions {
      display:grid !important;
      grid-template-columns:auto minmax(0,1fr) auto;
      gap:6px !important;
      margin:0 !important;
    }
    .mapper-tutorial-actions button {
      min-width:0 !important;
      min-height:44px !important;
      height:auto !important;
      padding:5px 9px !important;
      font-size:13px !important;
      line-height:1.2 !important;
      white-space:normal !important;
      color:#e2edff;
    }
    #mapperTutorialPractice { border-color:#4484c9; color:#d9ebff; }
    #mapperTutorialPractice[aria-disabled="true"] { opacity:.6; }
    #mapperTutorialNext { grid-column:3; }
    #mapperTutorialSpotlight { border-color:#93c5fd !important; transition:none !important; }

    :root.county-compact .mapper-tutorial-card {
      width:min(440px,calc(100vw - 16px)) !important;
      max-height:min(50dvh,350px) !important;
      padding:12px !important;
      row-gap:7px;
    }
    :root.county-compact .mapper-tutorial-card h2 { font-size:19px !important; }
    @media (max-height:400px) {
      :root.county-compact .mapper-tutorial-card { max-height:calc(64dvh - 8px) !important; }
    }
  }

  @layer north-wildwood-pills {
    /* Keep position, size and hit areas owned by the containing dialog. */
    .centered-close-control:not([hidden]) {
      position:relative;
    }
    :is(.centered-close-control,.leaflet-popup-close-button,.maplibregl-popup-close-button):not([hidden]) {
      display:grid !important;
      place-items:center !important;
      box-sizing:border-box !important;
      padding:0 !important;
      border:1px solid var(--nww-pill-outline) !important;
      border-radius:10px !important;
      background:var(--nww-close-surface) !important;
      box-shadow:none !important;
      color:transparent !important;
      font-size:0 !important;
      line-height:0 !important;
      text-indent:0 !important;
    }
    :is(.centered-close-control,.leaflet-popup-close-button,.maplibregl-popup-close-button):hover {
      background:var(--nww-close-hover) !important;
    }
    :is(.leaflet-popup-close-button,.maplibregl-popup-close-button) > span {
      display:none !important;
    }
    :is(.centered-close-control,.leaflet-popup-close-button,.maplibregl-popup-close-button)::before,
    :is(.centered-close-control,.leaflet-popup-close-button,.maplibregl-popup-close-button)::after {
      content:"" !important;
      position:absolute !important;
      left:50% !important;
      top:50% !important;
      width:14px !important;
      height:2px !important;
      margin:0 !important;
      border:0 !important;
      border-radius:999px !important;
      background:var(--nww-close-ink) !important;
      box-shadow:none !important;
      pointer-events:none !important;
      transform-origin:center !important;
    }
    :is(.centered-close-control,.leaflet-popup-close-button,.maplibregl-popup-close-button)::before {
      transform:translate(-50%,-50%) rotate(45deg) !important;
    }
    :is(.centered-close-control,.leaflet-popup-close-button,.maplibregl-popup-close-button)::after {
      transform:translate(-50%,-50%) rotate(-45deg) !important;
    }


    html body[data-shorelysafe-ui] :is(#timelineDock,#timelineBubble,#legendDock,#webcamPanel,#mapTitleBadge,
        #floodHistoryPane,.download-modal-card,.datum-modal-card,.top-tides-modal-card,
        .shorely-flood-popup .leaflet-popup-content-wrapper,.maplibregl-popup .maplibregl-popup-content),
    html body[data-shorelysafe-ui] :is(#leftPanel,#rightRail,#mobileRailMount) > :is(.panel-card,.rail-card):not(.right-logo-card) {
      background-color:var(--nww-pill-surface) !important;
      border-color:var(--nww-pill-outline) !important;
    }
    html body[data-shorelysafe-ui] :is(.centered-close-control,.leaflet-popup-close-button,.maplibregl-popup-close-button):not([hidden]) {
      border-color:var(--nww-pill-outline) !important;
      border-radius:10px !important;
      background-color:var(--nww-close-surface) !important;
    }
    html body[data-shorelysafe-ui] :is(.centered-close-control,.leaflet-popup-close-button,.maplibregl-popup-close-button):hover {
      background-color:var(--nww-close-hover) !important;
    }

    :is(.leaflet-popup,.maplibregl-popup):has(:is(.building-info-card,.nsi-structure-popup,.depth-query-popup,.shorely-v11-depth-query)) {
      --nww-popup-close-size:var(--nww-close-size);
      --nww-popup-close-edge:8px;
    }
    .maplibregl-popup:has(:is(.building-info-card,.nsi-structure-popup,.depth-query-popup,.shorely-v11-depth-query)) {
      /* Its native control is inside the card's 1px border. */
      --nww-popup-close-edge:7px;
    }
    :is(.leaflet-popup,.maplibregl-popup):has(:is(.building-info-card,.nsi-structure-popup,.depth-query-popup,.shorely-v11-depth-query))
    :is(.leaflet-popup-close-button,.maplibregl-popup-close-button) {
      position:absolute !important;
      inset:var(--nww-popup-close-edge) var(--nww-popup-close-edge) auto auto !important;
      z-index:12 !important;
      width:var(--nww-popup-close-size) !important;
      min-width:var(--nww-popup-close-size) !important;
      max-width:var(--nww-popup-close-size) !important;
      height:var(--nww-popup-close-size) !important;
      min-height:var(--nww-popup-close-size) !important;
      max-height:var(--nww-popup-close-size) !important;
      margin:0 !important;
      text-decoration:none !important;
      transform:none !important;
      cursor:pointer !important;
    }
    .maplibregl-popup.nw-mobile-popup:has(:is(.building-info-card,.nsi-structure-popup,.depth-query-popup,.shorely-v11-depth-query))
    .maplibregl-popup-close-button {
      position:sticky !important;
      right:auto !important;
      float:right !important;
      margin:var(--nww-popup-close-edge) var(--nww-popup-close-edge)
        calc(-1 * (var(--nww-popup-close-size) + var(--nww-popup-close-edge))) 0 !important;
    }
    :is(.leaflet-popup,.maplibregl-popup):has(:is(.building-info-card,.nsi-structure-popup,.depth-query-popup,.shorely-v11-depth-query))
    :is(.leaflet-popup-close-button,.maplibregl-popup-close-button):focus-visible {
      outline:2px solid #7df9ff !important;
      outline-offset:2px !important;
    }
    :is(.leaflet-popup,.maplibregl-popup) :is(.depth-query-popup,.shorely-v11-depth-query) h3 {
      padding-inline:calc(var(--nww-popup-close-size) - 6px) !important;
    }

    #timelineDock #timelineFloodKey {
      --nww-key-font:14px;
      --nww-key-dot:12px;
    }
    #timelineDock #timelineFloodKey .timeline-key-label {
      color:#f5f8ff !important;
      font-size:var(--nww-key-font) !important;
      line-height:1 !important;
      font-weight:800 !important;
    }
    #timelineDock #timelineFloodKey .timeline-key-swatch {
      width:var(--nww-key-dot) !important;
      height:var(--nww-key-dot) !important;
      min-width:var(--nww-key-dot) !important;
      min-height:var(--nww-key-dot) !important;
      flex:0 0 var(--nww-key-dot) !important;
    }
    .top-tides-card:has(#topTideList) {
      height:auto !important;
      min-height:0 !important;
      max-height:none !important;
    }
    #topTideList {
      --top-tide-preview-row:34px;
      --top-tide-preview-gap:5px;
      display:grid !important;
      grid-template-columns:minmax(0,1fr) !important;
      gap:var(--top-tide-preview-gap) !important;
      /* Reserve the three flood rows and disclosure while the archive loads. */
      min-height:calc(4 * var(--top-tide-preview-row) + 3 * var(--top-tide-preview-gap)) !important;
      max-height:none !important;
      overflow:visible !important;
    }
    body[data-sidebar-density="compact"] #topTideList {
      --top-tide-preview-row:28px;
      --top-tide-preview-gap:3px;
    }
    body[data-sidebar-density="tight"] #topTideList {
      --top-tide-preview-row:24px;
      --top-tide-preview-gap:3px;
    }
    #topTideList > :is(.top-tide-item,.top-tide-more-btn) {
      box-sizing:border-box !important;
      height:var(--top-tide-preview-row) !important;
      min-height:var(--top-tide-preview-row) !important;
      max-height:var(--top-tide-preview-row) !important;
      margin:0 !important;
      padding:2px 6px !important;
    }
    @media (max-width:900px), (max-height:560px), (max-width:1366px) and (any-pointer:coarse) {
      #timelineDock #timelineFloodKey {
        --nww-key-font:11px;
        --nww-key-dot:10px;
      }
    }
    @media (max-width:360px) {
      body[data-road-impacts-enabled="true"] #timelineDock #timelineFloodKey {
        --nww-key-font:10px;
        --nww-key-dot:9px;
      }
    }
  }

  /* Leaflet's close control must stay anchored inside the popup card. */
  html body .shorely-flood-popup .leaflet-popup-close-button{
    --centered-close-x-size:12px;
    position:absolute !important;
    top:8px !important;
    right:8px !important;
    left:auto !important;
    bottom:auto !important;
    z-index:12 !important;
    width:30px !important;
    min-width:30px !important;
    height:30px !important;
    min-height:30px !important;
    border:1px solid rgba(191,219,254,.25) !important;
    border-radius:10px !important;
    background:rgba(30,41,59,.9) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
  }

  html body .shorely-flood-popup .depth-query-popup h3{
    padding:0 28px !important;
  }

  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized .shorely-flood-popup .leaflet-popup-close-button{
      --centered-close-x-size:14px;
      top:7px !important;
      right:7px !important;
      width:36px !important;
      min-width:36px !important;
      height:36px !important;
      min-height:36px !important;
    }

    html body.mobile-optimized .shorely-flood-popup .depth-query-popup h3{
      padding:0 34px !important;
    }
  }

  html body.physics-forecast-active #legendDock[data-legend-mode="depth"] .depth-legend-gradient,
  html body.physics-forecast-active .export-depth-key-gradient{
    background:linear-gradient(90deg,#7df9ff 0%,#38d3ff 22%,#168ceb 43%,#1853c6 62%,#132f84 80%,#050e33 100%) !important;
  }
  html body.physics-forecast-active #legendDock[data-legend-mode="depth"] .depth-legend-uncertainty-note strong,
  html body.physics-forecast-active .export-depth-key-note strong{
    color:#7df9ff !important;
  }

  html body #mapTitleBadge,
  html body #mapTitleBadge.shorely-title-badge,
  html body.forecast-mode #mapTitleBadge.shorely-title-badge,
  html body.observed-mode #mapTitleBadge.shorely-title-badge{
    box-sizing:border-box !important;
    min-width:0 !important;
    overflow:hidden !important;
    grid-template-columns:minmax(0,1fr) max-content !important;
  }

  html body #mapTitleBadge #mapTitleText,
  html body #mapTitleBadge .shorely-title-text{
    min-width:0 !important;
    max-width:100% !important;
    font-size:var(--nww-title-font-size, clamp(18px, 2.4vw, 42px)) !important;
    overflow:hidden !important;
    text-overflow:clip !important;
  }

  html body #mapTitleBadge #mapTitleLogo,
  html body #mapTitleBadge #mapTitlePartnerLogo,
  html body #mapTitleBadge .shorely-title-logo,
  html body #mapTitleBadge .shorely-title-logo-town,
  html body #mapTitleBadge .shorely-title-logo-shorelysafe{
    min-width:0 !important;
    max-width:var(--nww-title-logo-max, 150px) !important;
  }

  /* Keep every export choice reachable and tappable on phones and tablets. */
  #downloadModal .export-segmented button{
    min-width:0 !important;
    white-space:normal !important;
    line-height:1.12 !important;
  }

  @media (max-width:720px){
    #downloadModal #downloadAspectControl{
      grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
    #downloadModal #downloadAspectControl button,
    #downloadModal #downloadExtentControl button,
    #downloadModal #downloadFormatControl button{
      min-height:48px !important;
      padding:8px 7px !important;
      font-size:12px !important;
    }
    #downloadModal .export-extent-help{
      grid-template-columns:1fr !important;
      gap:8px !important;
      padding:10px !important;
      font-size:12px !important;
    }
    #downloadModal .export-adjust-view-btn{
      width:100% !important;
      min-height:44px !important;
      font-size:12px !important;
    }
  }

  @media (min-width:721px) and (max-width:1100px) and (pointer:coarse){
    #downloadModal .download-modal-card{
      width:min(760px, calc(100vw - 40px)) !important;
      max-height:calc(100dvh - 40px) !important;
    }
    #downloadModal #downloadAspectControl button,
    #downloadModal #downloadExtentControl button,
    #downloadModal #downloadFormatControl button{
      min-height:46px !important;
      font-size:13px !important;
    }
  }

  #downloadCard.download-launch-card{
    padding:0 !important;
    overflow:hidden !important;
  }
  #downloadCard #openDownloadModalBtn{
    width:100% !important;
    min-height:48px !important;
    margin:0 !important;
    border:0 !important;
    border-radius:inherit !important;
    font-size:15px !important;
    font-weight:900 !important;
  }

  html body #leftPanel #legendDock[data-legend-mode="dynamic"] .legend-title,
  #legendDock[data-legend-mode="dynamic"] .legend-title{
    font-size:18px !important;
    line-height:1.08 !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="dynamic"] .legend-list,
  #legendDock[data-legend-mode="dynamic"] .legend-list{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:8px !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="dynamic"] .legend-row,
  #legendDock[data-legend-mode="dynamic"] .legend-row{
    grid-template-columns:13px minmax(0,1fr) !important;
    gap:6px !important;
    font-size:14px !important;
    line-height:1.1 !important;
    overflow:visible !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="dynamic"] .legend-label,
  #legendDock[data-legend-mode="dynamic"] .legend-label{
    overflow:visible !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="dynamic"] .legend-swatch,
  #legendDock[data-legend-mode="dynamic"] .legend-swatch{
    width:12px !important;
    height:12px !important;
  }

  body.mobile-optimized #legendDock .legend-header-actions,
  body.mobile-optimized.mobile-legend-open #legendDock .legend-header-actions{
    display:flex !important;
  }
  body.mobile-optimized #legendDock .legend-help-btn,
  body.mobile-optimized.mobile-legend-open #legendDock .legend-help-btn{
    display:inline-grid !important;
    place-items:center !important;
    width:28px !important;
    min-width:28px !important;
    height:28px !important;
    min-height:28px !important;
    font-size:15px !important;
  }
  body.mobile-optimized #legendDock[data-legend-mode="dynamic"] .legend-title,
  body.mobile-optimized.mobile-legend-open #legendDock[data-legend-mode="dynamic"] .legend-title{
    font-size:16px !important;
  }
  body.mobile-optimized #legendDock[data-legend-mode="dynamic"] .legend-row,
  body.mobile-optimized.mobile-legend-open #legendDock[data-legend-mode="dynamic"] .legend-row{
    font-size:13px !important;
  }

  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized #legendDock[data-legend-mode="dynamic"],
    html body.mobile-optimized #timelineDock #legendDock[data-legend-mode="dynamic"],
    html body.mobile-optimized #mapWrap #legendDock[data-legend-mode="dynamic"]{
      display:block !important;
      visibility:visible !important;
      opacity:1 !important;
      position:fixed !important;
      top:108px !important;
      left:max(8px,env(safe-area-inset-left,0px)) !important;
      right:auto !important;
      bottom:auto !important;
      width:min(282px,calc(100vw - 96px)) !important;
      min-width:0 !important;
      max-width:min(282px,calc(100vw - 96px)) !important;
      height:78px !important;
      min-height:78px !important;
      max-height:78px !important;
      padding:9px 10px !important;
      overflow:hidden !important;
      z-index:4400 !important;
    }
    html body.mobile-optimized #legendDock[data-legend-mode="dynamic"] .legend-header{
      display:flex !important;
      align-items:center !important;
      justify-content:space-between !important;
      min-height:28px !important;
      margin:0 0 6px !important;
    }
    html body.mobile-optimized #legendDock[data-legend-mode="dynamic"] .legend-header-text,
    html body.mobile-optimized #legendDock[data-legend-mode="dynamic"] .legend-title{
      display:block !important;
      visibility:visible !important;
      opacity:1 !important;
      margin:0 !important;
      color:#fff !important;
      font-size:16px !important;
      line-height:1 !important;
    }
    html body.mobile-optimized #legendDock[data-legend-mode="dynamic"] .legend-body,
    html body.mobile-optimized #legendDock[data-legend-mode="dynamic"] .legend-list{
      display:flex !important;
      visibility:visible !important;
      opacity:1 !important;
      gap:7px !important;
      margin:0 !important;
      padding:0 !important;
    }
    html body.mobile-optimized #legendDock[data-legend-mode="dynamic"] .legend-row{
      display:flex !important;
      visibility:visible !important;
      opacity:1 !important;
      flex:1 1 0 !important;
      min-width:0 !important;
      gap:5px !important;
      align-items:center !important;
      color:#fff !important;
      font-size:12px !important;
      line-height:1 !important;
      white-space:nowrap !important;
      overflow:visible !important;
    }
    html body.mobile-optimized #legendDock[data-legend-mode="dynamic"] .legend-label{
      display:block !important;
      min-width:0 !important;
      overflow:visible !important;
      white-space:nowrap !important;
    }
  }

  /* Use the desktop dialog's width instead of stacking every short control. */
  @media (min-width:721px) and (min-height:561px), (min-width:721px) and (pointer:fine), (min-width:721px) and (pointer:none) {
    #downloadModal.download-modal.open{
      align-items:center !important;
    }
    #downloadModal .download-modal-card{
      width:min(760px,calc(100vw - 32px)) !important;
      padding:16px !important;
    }
    #downloadModal .download-modal-head{
      margin-bottom:8px !important;
    }
    #downloadModal .download-modal-sub{
      margin:0 0 10px !important;
      font-size:14px !important;
      line-height:1.35 !important;
    }
    #downloadModal .download-grid{
      display:grid !important;
      grid-template-columns:repeat(12,minmax(0,1fr)) !important;
      gap:10px 12px !important;
      align-items:start !important;
    }
    #downloadModal .export-filetype-field,
    #downloadModal .export-interval-field{
      grid-column:span 6 !important;
      grid-row:1 !important;
    }
    #downloadModal .export-filetype-field{ grid-column:1 / span 6 !important; }
    #downloadModal .export-interval-field{ grid-column:7 / span 6 !important; }
    #downloadModal .export-layout-field{
      grid-column:1 / span 8 !important;
      grid-row:2 !important;
    }
    #downloadModal .export-speed-field{
      grid-column:9 / span 4 !important;
      grid-row:2 !important;
    }
    #downloadModal .download-grid:has(#gifSpeedField[hidden]) .export-layout-field{
      grid-column:1 / -1 !important;
    }
    #downloadModal .export-framing-field{
      grid-column:1 / -1 !important;
      grid-row:3 !important;
    }
    #downloadModal #exportTimePicker,
    #downloadModal .download-actions,
    #downloadModal .download-status{
      grid-column:1 / -1 !important;
    }
    #downloadModal #exportTimePicker.export-simple-picker{
      gap:9px !important;
      padding:10px !important;
    }
  }

  /* Preserve the roomy, one-column touch layout on phones. */
  @media (max-width:720px){
    #downloadModal .download-grid{
      grid-template-columns:minmax(0,1fr) !important;
    }
    #downloadModal .export-filetype-field,
    #downloadModal .export-interval-field,
    #downloadModal .export-layout-field,
    #downloadModal .export-framing-field,
    #downloadModal .export-speed-field,
    #downloadModal #exportTimePicker,
    #downloadModal .download-actions,
    #downloadModal .download-status{
      grid-column:1 !important;
    }
  }

  @media (min-width:901px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px), (min-width:901px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine), (min-width:901px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) {
    html body:not(.mobile-optimized) #rightRail#rightRail{
      gap:8px !important;
      row-gap:8px !important;
      padding-bottom:0 !important;
    }

    html body:not(.mobile-optimized) #rightRail#rightRail > .rail-card,
    html body:not(.mobile-optimized) #rightRail#rightRail > .mapper-tutorial-launch{
      margin:0 !important;
    }

    html body:not(.mobile-optimized) #rightRail#rightRail > #mapperTutorialBtn.mapper-tutorial-launch{
      position:static !important;
      inset:auto !important;
      width:100% !important;
    }

    html body:not(.mobile-optimized) #rightRail#rightRail > #downloadCard.download-launch-card{
      display:block !important;
      grid-template-rows:none !important;
      min-height:64px !important;
      height:64px !important;
      max-height:64px !important;
      padding:10px !important;
      overflow:hidden !important;
    }

    html body:not(.mobile-optimized) #rightRail#rightRail > #downloadCard #openDownloadModalBtn.download-launch-btn{
      display:flex !important;
      width:100% !important;
      min-height:42px !important;
      height:42px !important;
      margin:0 !important;
      padding:9px 12px !important;
      box-sizing:border-box !important;
    }
  }

  html body #mapClickModeControl.map-click-mode-control,
  html body.mobile-optimized #mapClickModeControl.map-click-mode-control{
    top:var(--map-click-mode-top,72px) !important;
  }
  html body .house-alert-popup .nsi-structure-grid,
  html body .nsi-structure-popup .nsi-structure-grid{
    margin:8px 0 !important;
  }
  html body .house-alert-popup .nsi-impact-status,
  html body .nsi-structure-popup .nsi-impact-status{
    margin:0 0 9px !important;
  }
  html body #map.leaflet-container > .leaflet-control-container > .leaflet-top.leaflet-right{
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }
  html body #map.leaflet-container > .leaflet-control-container > .leaflet-top.leaflet-right > .leaflet-control-zoom.leaflet-bar.leaflet-control{
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }

  @layer floodmapper-unified-polish {
    @media (min-width:901px) and (max-width:1100px) and (min-height:561px) and (not (any-pointer:coarse)) {
      html:not(.county-compact) body[data-floodmapper-unified]:not(.persistent-flood-popup-open) #mapClickModeControl:not([hidden]) {
        left:var(--map-click-mode-left,calc(50% - 40px)) !important;
        max-width:var(--map-click-mode-width,calc(100vw - 752px)) !important;
        display:flex !important;
        flex-wrap:wrap;
        justify-content:center;
      }
    }
    html.county-compact body[data-floodmapper-unified] #mapClickModeControl:not([hidden]) {
      top:auto !important;
      bottom:var(--map-click-mode-bottom,calc(var(--cm-bottom,8px) + 190px)) !important;
    }
  }

  /* Live backdrop sampling over a moving WebGL canvas causes Chrome to
     invalidate strips of fixed UI. The existing opaque panel colors remain;
     only the expensive live blur is disabled once MapLibre owns the map. */
  html body.map-3d-ready #app *,
  html body.map-3d-ready #topBanner{
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
  html body.map-3d-ready #leftPanel,
  html body.map-3d-ready #rightRail,
  html body.map-3d-ready #timelineDock,
  html body.map-3d-ready #timelineBubble,
  html body.map-3d-ready #topBanner,
  html body.map-3d-ready #mapTitleBadge,
  html body.map-3d-ready #mapClickModeControl,
  html body.map-3d-ready #nwDefaultNavControl{
    isolation:isolate;
    will-change:transform;
    translate:0 0 1px !important;
    -webkit-backface-visibility:hidden !important;
    backface-visibility:hidden !important;
  }
  /* Some desktop layout rules intentionally reset transforms with
     !important. Re-establish a real compositor surface after those rules so
     the control text is rasterized once instead of during every WebGL frame. */
  html body.map-3d-ready #leftPanel,
  html body.map-3d-ready #rightRail,
  html body.map-3d-ready #timelineDock,
  html body.map-3d-ready #nwDefaultNavControl{
    transform:translateZ(0) !important;
  }
  html body.map-3d-ready #topBanner,
  html body.map-3d-ready #mapTitleBadge,
  html body.map-3d-ready #mapClickModeControl{
    transform:translateX(-50%) translateZ(0) !important;
  }
  html body.map-3d-ready #map3d{
    contain:strict;
    isolation:isolate;
    transform:translateZ(0);
    -webkit-backface-visibility:hidden;
    backface-visibility:hidden;
  }
  /* Both the flat and pitched views are rendered by the preloaded MapLibre
     camera. Remove the superseded Leaflet surface from composition entirely;
     opacity:0 alone still made Chrome allocate and merge its full-screen
     layer during every 3D drag. */
  html body.map-3d-ready #map{
    display:none !important;
  }

  /* Keep the depth key readable without dedicating a second row to a
     redundant uncertainty sentence. The shared help affordance belongs in
     the header for both depth and stage legends. */
  html body:not(.physics-forecast-active) #legendDock[data-legend-mode="depth"]{
    height:74px !important;
    min-height:74px !important;
    max-height:74px !important;
    padding:5px 10px 6px !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="depth"] .legend-header{
    height:24px !important;
    min-height:24px !important;
    margin:0 0 4px !important;
    padding:0 !important;
    align-items:center !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="depth"] .legend-title{
    font-size:18px !important;
    line-height:22px !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="depth"] .legend-header-actions{
    display:flex !important;
    height:24px !important;
    align-items:center !important;
    justify-content:flex-end !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="depth"] #legendHelpBtn{
    display:inline-grid !important;
    place-items:center !important;
    width:24px !important;
    min-width:24px !important;
    height:24px !important;
    min-height:24px !important;
    padding:0 !important;
    font-size:13px !important;
  }
  html body #legendDock[data-legend-mode="depth"] #legendList{
    grid-template-rows:30px 18px !important;
    height:51px !important;
    min-height:51px !important;
  }
  html body:not(.physics-forecast-active) #legendDock[data-legend-mode="depth"] #legendList{
    grid-template-rows:30px !important;
    height:30px !important;
    min-height:30px !important;
    gap:0 !important;
  }
  html body #legendDock[data-legend-mode="depth"] .depth-legend-scale{
    height:30px !important;
  }
  html body #legendDock[data-legend-mode="depth"] .depth-legend-labels{
    grid-template-columns:max-content minmax(0,1fr) auto !important;
    column-gap:12px !important;
    margin:0 2px 3px !important;
    font-size:12px !important;
    line-height:12px !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="depth"] .depth-legend-gradient{
    height:12px !important;
  }
  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized:not(.physics-forecast-active) #legendDock[data-legend-mode="depth"]{
      height:74px !important;
      min-height:74px !important;
      max-height:74px !important;
    }
    html body.mobile-optimized #leftPanel #legendDock[data-legend-mode="depth"] .legend-title{
      font-size:16px !important;
      line-height:20px !important;
    }
    html body.mobile-optimized #legendDock[data-legend-mode="depth"] .depth-legend-labels{
      font-size:10px !important;
      line-height:11px !important;
    }
  }

  /* A complete MapLibre frame should be the only live map surface. */
  html body.map-3d-ready #map3d{
    transition:none !important;
    transform:none !important;
    -webkit-backface-visibility:visible !important;
    backface-visibility:visible !important;
  }
  html body.map-3d-ready #map3d canvas,
  html body.map-3d-ready #map3d .maplibregl-canvas-container{
    transform:none !important;
    will-change:auto !important;
    -webkit-backface-visibility:visible !important;
    backface-visibility:visible !important;
  }

  /* Do not promote every fixed pane to a competing GPU texture. Opaque navy
     surfaces retain the established palette and cannot reveal invalidated
     WebGL strips while the 3D camera is moving. */
  html body[data-map-view-mode="3d"] #leftPanel,
  html body[data-map-view-mode="3d"] #rightRail,
  html body[data-map-view-mode="3d"] #timelineDock,
  html body[data-map-view-mode="3d"] #timelineBubble,
  html body[data-map-view-mode="3d"] #topBanner,
  html body[data-map-view-mode="3d"] #mapTitleBadge,
  html body[data-map-view-mode="3d"] #mapClickModeControl,
  html body[data-map-view-mode="3d"] #nwDefaultNavControl{
    isolation:auto !important;
    will-change:auto !important;
    translate:none !important;
    -webkit-backface-visibility:visible !important;
    backface-visibility:visible !important;
  }
  html body[data-map-view-mode="3d"] #leftPanel,
  html body[data-map-view-mode="3d"] #rightRail,
  html body[data-map-view-mode="3d"] #timelineDock,
  html body[data-map-view-mode="3d"] #timelineBubble,
  html body[data-map-view-mode="3d"] #nwDefaultNavControl{
    transform:none !important;
  }
  html body[data-map-view-mode="3d"] #topBanner,
  html body[data-map-view-mode="3d"] #mapTitleBadge,
  html body[data-map-view-mode="3d"] #mapClickModeControl{
    transform:translateX(-50%) !important;
  }
  html body[data-map-view-mode="3d"] #leftPanel > .panel-card,
  html body[data-map-view-mode="3d"] #rightRail > .rail-card,
  html body[data-map-view-mode="3d"] #timelineDock,
  html body[data-map-view-mode="3d"] #timelineBubble,
  html body[data-map-view-mode="3d"] #mapTitleBadge,
  html body[data-map-view-mode="3d"] #mapClickModeControl{
    background:#0b1424 !important;
  }

  /* Navigation uses the same navy, blue, and cool-white scheme as the panes. */
  html body .nw-simple-control{
    color:#7db7ff !important;
    filter:drop-shadow(0 7px 14px rgba(2,6,23,.34)) !important;
    contain:layout style !important;
    transform:none !important;
    will-change:auto !important;
  }
  html body .nw-direction-wheel{
    border-color:#334963 !important;
    background:radial-gradient(circle at 50% 46%,#1d4d83 0 22%,#13233a 23% 69%,#0b1424 70% 100%) !important;
    box-shadow:inset 0 0 0 3px rgba(125,183,255,.18),0 8px 20px rgba(2,6,23,.42) !important;
    contain:layout paint !important;
    transform:none !important;
    will-change:auto !important;
  }
  html body .nw-wheel-cardinal{
    color:#eaf2ff !important;
    text-shadow:0 1px 3px rgba(0,0,0,.76) !important;
  }
  html body .nw-wheel-knob{
    border-color:#8ec5ff !important;
    background:#172a43 !important;
    color:#63a8f5 !important;
    box-shadow:0 3px 9px rgba(2,6,23,.48),inset 0 1px 0 rgba(255,255,255,.08) !important;
  }
  html body .nw-simple-control button{
    border-color:#334963 !important;
    background:#13233a !important;
    color:#7db7ff !important;
    box-shadow:0 6px 14px rgba(2,6,23,.32) !important;
  }
  html body .nw-simple-view[aria-pressed="true"]{
    border-color:#60a5fa !important;
    background:#18385f !important;
    color:#eaf4ff !important;
    box-shadow:0 0 0 2px rgba(96,165,250,.36),0 6px 14px rgba(2,6,23,.34) !important;
  }
  html body .nw-simple-zoom{
    border:1px solid #334963 !important;
    background:#13233a !important;
    box-shadow:0 6px 14px rgba(2,6,23,.32) !important;
  }
  html body .nw-simple-zoom-button{
    border:0 !important;
    background:#13233a !important;
    color:#7db7ff !important;
    box-shadow:none !important;
  }
  html body .nw-simple-zoom-out{border-top:1px solid #334963 !important}

  html body #nwMapCredits{display:none !important}
  html body.persistent-flood-popup-open #mapClickModeControl{
    display:none !important;
  }

  /* The primary timeline action is blue, including the play glyph. */
  html body #timelineDock .playFab{
    border-color:#7db7ff !important;
    background:linear-gradient(180deg,#3b8df0,#2468bc) !important;
    color:#fff !important;
    box-shadow:0 7px 18px rgba(19,74,140,.34),inset 0 1px 0 rgba(255,255,255,.28) !important;
  }
  html body #timelineDock .playFab:hover:not(:disabled){
    background:linear-gradient(180deg,#55a0f5,#2d76cf) !important;
  }
  html body #timelineDock #playBtn .playTriangle{
    border-left-color:#fff !important;
  }
  html body #timelineDock #playBtn .pauseIcon::before,
  html body #timelineDock #playBtn .pauseIcon::after{
    background:#fff !important;
  }

  /* Larger, calmer building card. */
  html body .shorely-flood-popup .leaflet-popup-content,
  html body #map3d .maplibregl-popup-content{
    margin:0 !important;
    border:1px solid rgba(96,165,250,.34) !important;
    border-radius:18px !important;
    background:#0b1424 !important;
  }
  html body .building-info-card{
    box-sizing:border-box;
    width:min(420px,calc(100vw - 72px));
    min-width:min(390px,calc(100vw - 72px));
    max-width:420px;
    padding:18px;
  }
  html body .building-info-card .house-alert-kicker{
    margin:0 44px 5px 0 !important;
    color:#7db7ff !important;
    font-size:11px !important;
    letter-spacing:.12em !important;
  }
  html body .building-info-card h3{
    margin:0 44px 14px 0 !important;
    color:#fff !important;
    font-size:23px !important;
    line-height:1.08 !important;
  }
  html body .building-info-card .house-alert-cta{
    min-height:46px !important;
    margin-top:12px;
    border-color:rgba(96,165,250,.48) !important;
    border-radius:12px !important;
    background:#18385f !important;
    color:#eef6ff !important;
    font-size:13px !important;
  }

  /* Simpler, larger history dialog with two clear facts and one chart. */
  html body .flood-history-pane{
    width:min(840px,calc(100vw - 44px)) !important;
    max-height:min(88dvh,780px) !important;
    border-radius:22px !important;
    background:#081323 !important;
  }
  html body .flood-history-head{
    padding:20px 22px 17px !important;
    background:#0b1628 !important;
  }
  html body .flood-history-head h2{font-size:28px !important}
  html body .flood-history-head p{font-size:13px !important}
  html body .flood-history-body{padding:18px 22px 22px !important}
  html body .flood-history-summary{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
  }
  html body .flood-summary-item{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:6px !important;
    padding:15px 17px !important;
    border:1px solid rgba(96,165,250,.22);
    border-radius:14px;
    background:#101e32;
  }
  html body .flood-summary-item span{
    color:#9eb1ca !important;
    font-size:14px !important;
    font-weight:800 !important;
    white-space:normal !important;
  }
  html body .flood-summary-item strong{
    color:#fff !important;
    font-size:31px !important;
    line-height:1 !important;
  }
  html body .flood-summary-item strong small{
    color:#9eb1ca;
    font-size:12px;
    font-weight:800;
  }
  html body .flood-history-section{
    margin-top:12px !important;
    padding:17px 18px 16px !important;
    border-radius:16px !important;
    background:#0d1a2e !important;
  }
  html body .flood-history-section h3{font-size:19px !important}
  html body .flood-scenario-field{flex-basis:196px !important;font-size:11px !important}
  html body .flood-scenario-select{height:38px !important;font-size:14px !important}
  html body .flood-projection-chart{height:clamp(118px,30dvh,230px) !important}
  html body .flood-chart-axis{font-size:12px !important}
  html body .flood-year-control{grid-template-columns:minmax(0,1fr) 180px !important;gap:16px !important}
  html body .flood-year-readout{padding:10px 12px !important}
  html body .flood-year-readout span{font-size:13px !important}
  html body .flood-year-readout strong{font-size:19px !important}
  html body .flood-year-readout small{font-size:11px !important}

  /* Flood-stage labels need to read as a primary key, not footnotes. */
  html body #leftPanel #legendDock[data-legend-mode="dynamic"] .legend-row,
  html body #legendDock[data-legend-mode="dynamic"] .legend-row{
    grid-template-columns:15px minmax(0,1fr) !important;
    gap:7px !important;
    font-size:16px !important;
    font-weight:850 !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="dynamic"] .legend-swatch,
  html body #legendDock[data-legend-mode="dynamic"] .legend-swatch{
    width:14px !important;
    height:14px !important;
  }
  html body #leftPanel #legendDock[data-legend-mode="dynamic"] .legend-label,
  html body #legendDock[data-legend-mode="dynamic"] .legend-label{
    font-size:12.5px !important;
    line-height:1.05 !important;
  }

  @media (min-width:901px) and (min-height:561px) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (min-height:561px) and (max-height:760px), (min-width:901px) and (pointer:fine) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:fine) and (max-height:760px), (min-width:901px) and (pointer:none) and (max-height:760px) and (not (any-pointer:coarse)), (min-width:1367px) and (pointer:none) and (max-height:760px) {
    :root{
      --pj-equal-card-h:72px;
      --pj-equal-opacity-h:52px;
    }
    html body #leftPanel > .return-interval-card{
      padding:6px 12px 7px !important;
    }
    html body #leftPanel > .return-interval-card .section-title{
      margin-bottom:4px !important;
    }
    html body #leftPanel > .return-interval-card .return-interval-grid{
      gap:3px 5px !important;
    }
    html body #leftPanel > .return-interval-card .return-interval-grid button{
      min-height:26px !important;
      height:26px !important;
      padding:2px 3px !important;
      font-size:9.5px !important;
    }
  }

  @media (max-width:720px){
    html body .building-info-card{
      width:min(360px,calc(100vw - 54px));
      min-width:min(320px,calc(100vw - 54px));
      padding:15px;
    }
    html body .building-info-card h3{font-size:20px !important}
    html body .flood-history-pane{
      width:calc(100vw - 20px) !important;
      max-height:calc(100dvh - 20px) !important;
    }
    html body .flood-history-head{padding:15px 16px 13px !important}
    html body .flood-history-head h2{font-size:20px !important}
    html body .flood-history-body{padding:13px 14px 16px !important}
    html body .flood-history-summary{gap:8px !important}
    html body .flood-history-section-head{align-items:center !important;flex-wrap:wrap}
    html body .flood-scenario-field{flex-basis:auto !important}
    html body .flood-projection-chart{height:clamp(118px,25dvh,190px) !important}
    html body .flood-year-control{grid-template-columns:minmax(0,1fr) minmax(104px,auto) !important}
  }

  .flood-history-head-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
  .flood-history-head-actions .property-help{position:relative}
  .property-help summary{
    display:grid;place-items:center;width:34px;height:34px;border-radius:10px;
    background:rgba(255,255,255,.06);border:1px solid rgba(191,219,254,.28);
    color:#eaf0ff;cursor:pointer;font-size:16px;font-weight:800;list-style:none;
  }
  .property-help summary::-webkit-details-marker{display:none}
  .property-help summary:focus-visible{outline:2px solid #7dd3fc;outline-offset:2px}
  html body .property-help p{
    position:absolute;z-index:5;top:100%;right:-34px;width:min(260px,calc(100vw - 66px));
    max-width:none;margin:5px 0 0;padding:9px 10px;border-radius:9px;overflow-wrap:anywhere;
    white-space:normal;color:#eaf0ff;background:#18283c;border:1px solid rgba(191,219,254,.28);
    font-size:13px !important;line-height:1.35;
  }
  .nsi-structure-popup .property-help{
    position:absolute;top:var(--nww-popup-close-edge,8px);
    right:calc(var(--nww-popup-close-edge,8px) + var(--nww-popup-close-size,36px) + 6px);z-index:2;
  }
  html body .nsi-structure-popup{
    box-sizing:border-box;width:min(356px,calc(100vw - 72px));max-width:356px;padding:12px;
  }
  html body .nsi-structure-popup .house-alert-kicker{padding-right:calc(var(--nww-popup-close-size,36px) + 44px);font-size:12px;line-height:1.25}
  html body .nsi-structure-popup h3{padding-right:42px;overflow-wrap:anywhere}
  html body .nsi-structure-popup .nsi-impact-status{font-size:13px;margin-bottom:8px}
  html body .nsi-structure-popup .nsi-structure-grid{font-size:12px;margin-bottom:4px}
  html body .nsi-structure-popup .house-alert-note{margin:0;font-size:11px}
  .flood-projection-layout{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
  .flood-projection-key{display:grid;gap:8px;padding:0;margin:0;list-style:none;color:#c1d0e5;font-size:13px}
  .flood-projection-key li{display:flex;gap:6px;align-items:center}
  .projection-key-line,.projection-key-band{width:15px;height:4px;background:var(--scenario-color,#facc15);flex:none;border-radius:2px}
  .projection-key-band{height:10px;opacity:.36}
  .parcel-flood-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 8px}
  .parcel-flood-facts > div{
    display:grid;gap:4px;padding:9px 10px;border:1px solid rgba(191,219,254,.20);
    border-radius:10px;background:#101e32;color:#eaf0ff;
  }
  .parcel-flood-facts span{font-size:12px;color:#b7c7dc}
  .parcel-flood-facts strong{font-size:16px;line-height:1.2}
  #structuralImpactsKey{
    position:absolute;bottom:calc(100% + 8px);right:0;z-index:12;width:max-content;max-width:100%;
    padding:8px 40px 8px 11px;color:#eaf0ff;background:#101925;
    border:1px solid rgba(191,219,254,.38);border-radius:9px;box-shadow:0 8px 24px #0005;
    text-align:left;font-size:12px;line-height:1.35;pointer-events:auto;
  }
  #structuralImpactsKey[hidden]{display:none !important}
  #structuralImpactsKey > button{position:absolute !important;top:4px;right:4px;width:32px;height:32px}
  #structuralImpactsKey ul{display:flex;flex-wrap:wrap;gap:4px 12px;padding:0;margin:4px 0;list-style:none}
  #structuralImpactsKey li{display:flex;align-items:center;gap:5px}
  #structuralImpactsKey i{width:8px;height:8px;border-radius:50%;flex:none}
  #structuralImpactsKey .structure-key-above{background:#fb7185}
  #structuralImpactsKey .structure-key-close{background:#fbbf24}
  #structuralImpactsKey .structure-key-below{background:#22d3ee}
  #structuralImpactsKey > span{color:#bccce1}
  html body.mobile-optimized #mapClickModeControl.map-click-mode-control{
    grid-template-columns:none !important;grid-auto-columns:minmax(0,auto);
  }
  html body.mobile-optimized #mapClickModeControl button::after{content:none !important}
  html body.mobile-optimized #mapClickModeControl button{font-size:10px !important}

  @media (max-height:650px), (max-width:720px){
    html body .flood-history-head{padding:11px 14px !important}
    html body .flood-history-body{padding:10px 12px !important}
    html body .flood-summary-item{gap:3px !important;padding:8px 10px !important}
    html body .flood-summary-item strong{font-size:24px !important}
    html body .flood-summary-item span{font-size:12px !important}
    html body .flood-history-section{margin-top:8px !important;padding:10px !important}
    html body .flood-history-section h3{font-size:16px !important}
    .flood-projection-key{font-size:11px}
    html body .flood-year-readout{padding:7px 8px !important}
  }

  /* One UI accent source of truth. Transparency may communicate state, but
     every interactive blue is derived from this exact RGB value. Flood and
     stage visualization colors remain independent data colors. */
  :root{
    --nw-ui-blue:#60a5fa;
    --nw-ui-blue-rgb:96,165,250;
    --accent:var(--nw-ui-blue);
    --accent-soft:rgba(var(--nw-ui-blue-rgb),.14);
    --accent-strong:var(--nw-ui-blue);
  }

  html body button.active,
  html body .segmented-control button.active,
  html body .download-launch-btn.active{
    border-color:var(--nw-ui-blue) !important;
  }
  html body button.active,
  html body .download-launch-btn.active{
    color:var(--nw-ui-blue) !important;
  }
  html body .segmented-control button.active,
  html body .timeline-interval-toggle button.active{
    background:rgba(var(--nw-ui-blue-rgb),.14) !important;
  }
  html body .toggle.on,
  html body .top-tide-more-plus{
    background:var(--nw-ui-blue) !important;
  }
  html body input[type="range"]{
    accent-color:var(--nw-ui-blue) !important;
  }
  html body #timelineDock #hourSlider,
  html body #timelineDock .timeline-trackRow #hourSlider{
    background-color:transparent !important;
    background-image:linear-gradient(to right,var(--nw-ui-blue) 0%,var(--nw-ui-blue) var(--timeline-progress),rgba(157,181,218,.38) var(--timeline-progress),rgba(157,181,218,.38) 100%) !important;
  }
  html body #timelineDock #hourSlider::-webkit-slider-thumb{
    background:var(--nw-ui-blue) !important;
  }
  html body #timelineDock #hourSlider::-moz-range-thumb,
  html body #timelineDock #hourSlider::-moz-range-progress{
    background:var(--nw-ui-blue) !important;
  }

  /* Google-Earth-style navigation keeps its navy surface while every blue
     ring, glyph, and selected state uses the shared accent. */
  html body .nw-simple-control{
    color:var(--nw-ui-blue) !important;
  }
  html body .nw-direction-wheel{
    border-color:var(--nw-ui-blue) !important;
    background:#13233a !important;
    box-shadow:inset 0 0 0 3px rgba(var(--nw-ui-blue-rgb),.18),0 8px 20px rgba(2,6,23,.42) !important;
  }
  html body .nw-wheel-knob{
    border-color:var(--nw-ui-blue) !important;
    color:var(--nw-ui-blue) !important;
  }
  html body .nw-simple-control button,
  html body .nw-simple-zoom,
  html body .nw-simple-zoom-button{
    border-color:var(--nw-ui-blue) !important;
    color:var(--nw-ui-blue) !important;
  }
  html body .nw-simple-zoom-out{
    border-top-color:rgba(var(--nw-ui-blue-rgb),.58) !important;
  }
  html body .nw-simple-view[aria-pressed="true"]{
    border-color:var(--nw-ui-blue) !important;
    background:#13233a !important;
    color:var(--nw-ui-blue) !important;
    box-shadow:0 0 0 2px rgba(var(--nw-ui-blue-rgb),.36),0 6px 14px rgba(2,6,23,.34) !important;
  }

  html body #timelineDock .playFab,
  html body #timelineDock .playFab:hover:not(:disabled){
    border-color:var(--nw-ui-blue) !important;
    background:var(--nw-ui-blue) !important;
  }
  html body #timelineDock .playFab:hover:not(:disabled){
    filter:brightness(1.08);
  }
  html body .top-tide-more-btn,
  html body .top-tide-more-btn:hover:not(:disabled){
    border-color:var(--nw-ui-blue) !important;
    background:rgba(var(--nw-ui-blue-rgb),.12) !important;
  }
  html body .top-tide-more-btn:hover:not(:disabled){
    background:rgba(var(--nw-ui-blue-rgb),.18) !important;
  }

  html body .map-click-mode-control button.active,
  html body .building-info-card .house-alert-cta{
    border-color:var(--nw-ui-blue) !important;
    background:rgba(var(--nw-ui-blue-rgb),.14) !important;
    color:var(--nw-ui-blue) !important;
  }
  html body .building-info-card .house-alert-kicker,
  html body .flood-scenario-field,
  html body .flood-year-readout span{
    color:var(--nw-ui-blue) !important;
  }
  html body .shorely-flood-popup .leaflet-popup-content,
  html body #map3d .maplibregl-popup-content,
  html body .flood-summary-item{
    border-color:rgba(var(--nw-ui-blue-rgb),.34) !important;
  }

  html body > .maplibregl-popup.nw-mobile-popup{
    position:fixed !important;
    top:calc(112px + env(safe-area-inset-top, 0px)) !important;
    left:50% !important;
    right:auto !important;
    bottom:auto !important;
    width:min(380px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))) !important;
    max-width:calc(100vw - 24px) !important;
    transform:translateX(-50%) !important;
    z-index:6000 !important;
  }
  html body > .nw-mobile-popup .maplibregl-popup-tip{display:none}
  html body > .nw-mobile-popup .maplibregl-popup-content{
    width:100%;
    max-height:calc(100dvh - 140px - var(--shorely-mobile-timeline-height, 124px) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    padding:0;
    overflow:auto;
    overscroll-behavior:contain;
    border:1px solid rgba(var(--nw-ui-blue-rgb),.34);
    border-radius:18px;
    background:#0b1424;
    color:#eaf0ff;
    box-shadow:0 18px 48px rgba(2,6,23,.42);
  }
  html body > .nw-mobile-popup .building-info-card{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
  html body > .nw-mobile-popup .maplibregl-popup-close-button{
    position:sticky;
    top:4px;
    float:right;
    margin:4px 4px -48px 0;
    width:44px;
    height:44px;
    z-index:2;
    border:0;
    background:#13233a;
    color:#eaf0ff;
    font-size:24px;
  }
  html body > .nw-mobile-popup .depth-query-popup,
  html body > .nw-mobile-popup .town-address-popup,
  html body > .nw-mobile-popup .nsi-structure-popup:not(.building-info-card){
    min-width:0;
    padding:18px;
    color:#eaf0ff;
    overflow-wrap:anywhere;
  }
  html body > .nw-mobile-popup .depth-query-popup h3{margin-right:36px}
  @media (max-height:420px){
    html body > .maplibregl-popup.nw-mobile-popup{
      top:calc(62px + env(safe-area-inset-top, 0px)) !important;
    }
    html body > .nw-mobile-popup .maplibregl-popup-content{
      max-height:calc(100dvh - 82px - var(--shorely-mobile-timeline-height, 108px) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
  }
  #app > .nw-short-leaflet-popup{
    position:fixed !important;
    top:calc(62px + env(safe-area-inset-top, 0px)) !important;
    left:50% !important;
    right:auto !important;
    bottom:auto !important;
    width:min(380px, calc(100vw - 24px)) !important;
    margin:0;
    transform:translateX(-50%) !important;
    z-index:6000;
  }
  .map-3d-ready #app > .nw-short-leaflet-popup,
  #app > .nw-short-leaflet-popup .leaflet-popup-tip-container{display:none}
  #app > .nw-short-leaflet-popup .leaflet-popup-content-wrapper{padding:0}
  #app > .nw-short-leaflet-popup .leaflet-popup-content{
    width:100% !important;
    box-sizing:border-box;
    max-height:calc(100dvh - 82px - var(--shorely-mobile-timeline-height, 108px) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow:auto;
    overscroll-behavior:contain;
  }
  #app > .nw-short-leaflet-popup .building-info-card{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
  #calendarPopover .calendar-popover-grid::after{
    content:none !important;
  }
  #calendarPopover #calendarPopoverCloseBtn{
    position:absolute !important;
    top:8px !important;
    right:8px !important;
    width:44px !important;
    min-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    display:grid !important;
    visibility:visible !important;
    z-index:1;
  }
  #calendarPopover .calendar-popover-grid{
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }
  /* Preserve centering when the map switches between flat and pitched views. */
  html body #timelineDock #timelineBubble,
  html body #topBanner#topBanner{
    transform:translateX(-50%) !important;
  }
  #downloadModal .download-grid,
  #downloadModal .download-grid > *,
  #downloadModal .export-segmented,
  #downloadModal .export-extent-help{
    min-width:0 !important;
  }
  #downloadModal .download-status,
  #downloadModal .export-data-range{
    overflow-wrap:anywhere;
  }
  @media (max-width:430px){
    #downloadModal .export-date-time-controls{
      grid-template-columns:minmax(0,1fr);
    }
    #downloadModal .download-actions{
      margin-left:0 !important;
      margin-right:0 !important;
      padding-left:0 !important;
      padding-right:0 !important;
    }
  }
  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body.mobile-optimized #mapClickModeControl.map-click-mode-control{
      transform:none !important;
    }
    html body.mobile-optimized #observedDateInput,
    html body.mobile-optimized #townAddressInput,
    html body.mobile-optimized #calendarPopover select,
    html body.mobile-optimized .flood-scenario-select{
      font-size:16px !important;
    }
    html body.mobile-optimized #rightRail{
      display:none !important;
    }
    html body.mobile-optimized #mobileRailMount > .layers-card .layer-item{
      grid-template-columns:auto minmax(0,1fr) !important;
      min-height:54px !important;
      height:auto !important;
    }
    html body.mobile-optimized #mobileRailMount > .layers-card .layer-meta{
      min-width:0 !important;
    }
    html body.mobile-optimized #mobileRailMount > .layers-card .layer-name{
      min-width:0 !important;
      white-space:normal !important;
      overflow-wrap:anywhere !important;
      font-size:12px !important;
      line-height:1.05 !important;
    }
    html body.mobile-optimized #mobileRailMount > #downloadCard.download-launch-card{
      display:block !important;
      min-height:48px !important;
      height:48px !important;
      max-height:48px !important;
      padding:0 !important;
      overflow:hidden !important;
    }
    html body.mobile-optimized #mobileRailMount > #downloadCard #openDownloadModalBtn{
      min-height:48px !important;
      height:48px !important;
    }
  }

  /* A short landscape viewport cannot fit the compass, view switch, and
     vertical zoom stack above the timeline. Keep every control reachable by
     placing the view and zoom controls on one compact row. */
  @media (orientation:landscape) and (max-height:420px){
    html body.mobile-optimized #nwDefaultNavControl.nw-simple-control{
      display:grid !important;
      grid-template-columns:50px 64px !important;
      grid-template-areas:"wheel wheel" "view zoom" !important;
      align-items:center !important;
      justify-items:end !important;
      gap:5px 0 !important;
      width:114px !important;
      height:109px !important;
    }
    html body.mobile-optimized #nwDefaultNavControl .nw-direction-wheel{
      grid-area:wheel !important;
      justify-self:end !important;
      width:70px !important;
      height:70px !important;
    }
    html body.mobile-optimized #nwDefaultNavControl .nw-simple-view{
      grid-area:view !important;
      width:48px !important;
      height:34px !important;
      justify-self:start !important;
    }
    html body.mobile-optimized #nwDefaultNavControl .nw-simple-zoom{
      grid-area:zoom !important;
      flex-direction:row !important;
      width:64px !important;
      height:34px !important;
    }
    html body.mobile-optimized #nwDefaultNavControl .nw-simple-zoom-button{
      width:32px !important;
      height:34px !important;
    }
    html body.mobile-optimized #nwDefaultNavControl .nw-simple-zoom-in{
      border-right:1px solid rgba(var(--nw-ui-blue-rgb),.58) !important;
      border-bottom:0 !important;
    }
    html body.mobile-optimized #nwDefaultNavControl .nw-simple-zoom-out{
      border-top:0 !important;
    }
  }

  /* MapLibre depth popups use a dark card; keep their labels and values readable. */
  #map3d .maplibregl-popup-content .depth-query-popup,
  #map3d .maplibregl-popup-content .depth-query-popup h3,
  #map3d .maplibregl-popup-content .pill {
    color:#edf7ff !important;
  }
  #map3d .maplibregl-popup-content .depth-query-value {
    color:#7df9ff !important;
  }

  /* Make status pills distinct from the dark control and map-popup cards. */
  html body #leftPanel .pill,
  html body #map3d .maplibregl-popup-content .pill,
  html body .shorely-flood-popup .pill,
  html body .shorely-v11-depth-popup .pill {
    background:#245d78 !important;
    border-color:#67cbe5 !important;
    color:#ffffff !important;
  }

/* Fleet control rules are owned by the earlier unified base layer. */

  html body .depth-query-popup{
    box-sizing:border-box;
    min-width:0;
    width:100%;
    max-width:100%;
    text-align:left;
  }
  html body .depth-query-popup h3,
  html body .shorely-flood-popup.shorely-depth-popup .depth-query-popup h3{
    margin:0 40px 14px 0 !important;
    padding:0 !important;
    color:#bdcce0;
    font-size:15px !important;
    font-weight:650;
    line-height:1.35 !important;
    letter-spacing:0;
    overflow-wrap:normal;
  }
  html body .depth-query-value{
    display:flex;
    align-items:baseline;
    justify-content:flex-start;
    gap:8px;
    color:#7df9ff;
    font-size:44px;
    font-weight:800;
    line-height:1.05;
    letter-spacing:-.035em;
    font-variant-numeric:tabular-nums;
  }
  html body .depth-query-unit{
    color:#bdcce0;
    font-size:20px;
    font-weight:600;
    letter-spacing:0;
  }
  html body .shorely-flood-popup.shorely-depth-popup .leaflet-popup-content-wrapper{
    padding:0;
    border:1px solid rgba(125,249,255,.24);
    border-radius:16px;
    background:#0b1423;
    box-shadow:0 12px 30px rgba(2,6,23,.28);
  }
  html body .shorely-flood-popup.shorely-depth-popup .leaflet-popup-content{
    box-sizing:border-box;
    width:240px !important;
    max-width:calc(100vw - 84px);
    margin:18px 20px 20px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
  }
  html body .shorely-flood-popup.shorely-depth-popup .leaflet-popup-tip{
    border:0;
    background:#0b1423;
    box-shadow:none;
  }

@media(min-width:901px) and (not (any-pointer:coarse)), (min-width:1367px) {
html body[data-county-viewport] #mapTitleBadge{visibility:visible!important;opacity:1!important;display:flex!important;width:max-content!important;min-width:0!important;height:auto!important;top:16px!important;padding:10px 14px!important;gap:10px!important;}
html body[data-county-viewport] #mapTitleBadge #mapTitleText{visibility:visible!important;opacity:1!important;display:block!important;font-size:clamp(16px,1.7vw,26px)!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:normal!important;min-width:0!important;}
html body[data-county-viewport] #rightRail #topTideList{max-height:180px!important;overflow-y:auto!important;display:flex!important;flex-direction:column!important;gap:6px!important;}
html body[data-county-viewport] #rightRail #topTideList > *{min-height:38px!important;height:auto!important;flex-shrink:0!important;padding:8px!important;font-size:13px!important;line-height:1.25!important;}
html body[data-county-viewport] #rightRail #topTideList .top-tide-item{display:grid!important;grid-template-columns:22px minmax(0,1fr) auto!important;gap:5px!important;}
html body[data-county-viewport] #timelineDayTabs .timeline-day{flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;overflow:hidden!important;white-space:nowrap!important;}
html body[data-county-viewport] .leaflet-top.leaflet-left{left:auto!important;right:calc(var(--county-nav-right,300px) + 8px)!important;top:150px!important;}
}

html body.nw-app-ready #app,html body.nw-app-ready #topBanner{animation:none!important;filter:none!important;}
html body[data-county-viewport] #leftPanel,html body[data-county-viewport] #rightRail,html body[data-county-viewport] #timelineDock,html body[data-county-viewport] #timelineBubble{transition:none!important;animation:none!important;}
@media(min-width:901px) and (not (any-pointer:coarse)), (min-width:1367px) {
html body[data-county-viewport] #leftPanel > .panel-card,html body[data-county-viewport] #leftPanel > .compact-card,html body[data-county-viewport] #timelineIntervalCard{height:auto!important;max-height:none!important;flex-shrink:0!important;}
html body[data-county-viewport] #timelineIntervalToggle{height:auto!important;min-height:40px!important;max-height:none!important;overflow:visible!important;}
html body[data-county-viewport] #timelineIntervalToggle button{min-height:38px!important;white-space:normal!important;}
html body[data-county-viewport] #timelineBubble{left:24px!important;right:auto!important;transform:none!important;translate:none!important;scale:none!important;max-width:calc(100% - 48px)!important;}
}
html body[data-county-viewport].top-tides-modal-open #mapTitleBadge{visibility:hidden!important;opacity:0!important;pointer-events:none!important;}

/* Desktop day bands share the native slider's frame positions. Mobile keeps
   its existing selected-day layout; the variable switches on resize. */
@media (min-width:901px) and (not (any-pointer:coarse)), (min-width:1367px) {
  html body #timelineDayTabs .timeline-day {
    --shorely-timeline-day-flex:var(--shorely-timeline-frame-weight,1);
  }
}

@layer floodmapper-unified-polish {
/* The welcome overlay follows renderer readiness; controls reveal without a second transition. */
html body.nw-app-ready:not(.nw-app-loading) :is(#app,#topBanner){
 opacity:1!important;pointer-events:auto!important;animation:none!important;filter:none!important;
}
}

@layer floodmapper-unified-polish {
/* Inline display:none was losing to the shared fixed-size card rule. */
html body.observed-mode[data-floodmapper-unified] #leftPanel > #forecastScenarioCard{
 display:none!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;
}
/* The month grid lives in its existing dialog; reserve only the visible date controls. */
html body.observed-mode[data-floodmapper-unified] #leftPanel > #calendarCard.calendar-card.active{
 display:flex!important;flex-direction:column!important;flex:0 0 auto!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 justify-content:flex-start!important;gap:8px!important;
}
html body.observed-mode[data-floodmapper-unified] #leftPanel > #calendarCard .section-title{
 margin:0!important;min-height:28px!important;align-items:center!important;
}
}

@layer floodmapper-unified-polish {
  @media (min-width:901px) and (max-height:960px) and (not (any-pointer:coarse)), (min-width:1367px) and (max-height:960px) {
    html body[data-floodmapper-unified]:not(.mobile-optimized) :is(#leftPanel,#rightRail) {gap:5px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) :is(#leftPanel,#rightRail) > :is(.panel-card,.rail-card) {padding:8px 10px!important;gap:6px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) :is(#leftPanel,#rightRail) :is(h2,h3,.section-title) {font-size:13px!important;line-height:1.15!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) :is(#leftPanel,#rightRail) button:not(.help-btn):not(.calendar-day):not(.calendar-nav-btn) {font-size:14px!important;min-height:36px!important;padding:4px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail .layer-item {min-height:30px!important;padding:4px 0!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail .layer-name {font-size:13px!important;line-height:1.1!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail .top-tide-item {min-height:30px!important;padding:5px 6px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail .top-tide-item > * {font-size:13px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #townAddressInput {height:34px!important;min-height:34px!important;font-size:14px!important;}
  }
  @media (min-width:901px) and (max-height:800px) and (not (any-pointer:coarse)), (min-width:1367px) and (max-height:800px) {
    html body[data-floodmapper-unified]:not(.mobile-optimized) :is(#leftPanel,#rightRail) {gap:3px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) :is(#leftPanel,#rightRail) > :is(.panel-card,.rail-card) {padding:5px 8px!important;gap:4px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail {gap:2px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail > .rail-card {padding:2px 8px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #leftPanel#leftPanel > .compact-card {height:auto!important;min-height:0!important;max-height:none!important;flex-basis:auto!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) :is(#leftPanel,#rightRail) :is(h2,h3,.section-title) {font-size:12px!important;line-height:1.1!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) :is(#leftPanel,#rightRail) .section-title {margin-bottom:4px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #leftPanel#leftPanel .section-title {height:auto!important;min-height:0!important;max-height:none!important;margin-bottom:0!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail#rightRail .rail-head {height:auto!important;min-height:0!important;max-height:none!important;margin-bottom:3px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) :is(#leftPanel,#rightRail) button:not(.help-btn):not(.calendar-day):not(.calendar-nav-btn) {font-size:12px!important;min-height:30px!important;padding:3px!important;line-height:1.1!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #leftPanel#leftPanel button:not(.help-btn):not(.calendar-day):not(.calendar-nav-btn) {height:auto!important;min-height:30px!important;padding:2px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) :is(#leftPanel,#rightRail) .help-btn {width:20px!important;min-width:20px!important;height:20px!important;min-height:20px!important;font-size:13px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail .layer-item {min-height:24px!important;padding:0!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail .layer-name {font-size:12px!important;line-height:1.1!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail#rightRail .top-tide-item {height:auto!important;min-height:26px!important;padding:3px 5px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail .top-tide-item > * {font-size:12px!important;line-height:1.1!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #townAddressInput {height:30px!important;min-height:30px!important;font-size:12px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail#rightRail #downloadCard {height:auto!important;min-height:0!important;max-height:none!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #rightRail#rightRail #openDownloadModalBtn {height:auto!important;min-height:30px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #townAddressForm {gap:4px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #townAddressForm label {font-size:10px!important;line-height:1.1!important;margin-bottom:3px!important;}
    html body[data-floodmapper-unified]:not(.mobile-optimized) #legendDock :is(.legend-labels,.depth-legend-labels) {font-size:11px!important;}
  }
  @media (min-width:901px) and (max-width:1200px) and (not (any-pointer:coarse)) {
    html body[data-floodmapper-unified]:not(.mobile-optimized) #mapTitleBadge #mapTitleText {font-size:20px!important;}
  }
}

@layer floodmapper-unified-polish {
  html body[data-floodmapper-unified] #mapTitleBadge#mapTitleBadge #mapTitleText {
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow-wrap:anywhere !important;
  }
  @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
    html body[data-floodmapper-unified].mobile-optimized #leftPanel[data-nww-section]:not([data-nww-section="forecast"]) #calendarCard.calendar-card.active {
      display:none !important;
    }
  }
}

@layer floodmapper-unified-polish {

  @media (min-width:1367px) and (any-pointer:coarse) {
    html body[data-floodmapper-unified] :is(#leftPanel#leftPanel,#rightRail#rightRail) :is(h2,h3,.section-title) {font-size:16px!important;line-height:1.2!important;}
    html body[data-floodmapper-unified] :is(#leftPanel#leftPanel,#rightRail#rightRail) button:not(.help-btn):not(.calendar-day):not(.calendar-nav-btn) {font-size:16px!important;line-height:1.15!important;min-height:44px!important;padding:6px!important;}
    html body[data-floodmapper-unified] #rightRail#rightRail .layer-list {display:flex!important;flex-direction:column!important;grid-template-columns:minmax(0,1fr)!important;}
    html body[data-floodmapper-unified] #rightRail#rightRail .layer-item {min-height:44px!important;padding:6px 0!important;grid-template-columns:minmax(0,1fr) 40px!important;gap:10px!important;}
    html body[data-floodmapper-unified] #rightRail#rightRail .layer-name {font-size:14px!important;line-height:1.2!important;overflow-wrap:normal!important;}
    html body[data-floodmapper-unified] #rightRail#rightRail .toggle {width:40px!important;min-width:40px!important;height:24px!important;}
    html body[data-floodmapper-unified] #rightRail#rightRail .toggle::after {width:18px!important;height:18px!important;top:3px!important;left:3px!important;}
    html body[data-floodmapper-unified] #rightRail#rightRail .toggle.on::after {left:19px!important;}
    html body[data-floodmapper-unified] #rightRail#rightRail .top-tide-item {min-height:40px!important;padding:7px 8px!important;}
    html body[data-floodmapper-unified] #rightRail#rightRail .top-tide-item > * {font-size:14px!important;line-height:1.2!important;}
    html body[data-floodmapper-unified] :is(#leftPanel#leftPanel,#rightRail#rightRail) input {font-size:16px!important;min-height:44px!important;height:44px!important;}
    html body[data-floodmapper-unified] #townAddressForm label {font-size:14px!important;line-height:1.2!important;}
  }
}

@layer floodmapper-unified-polish {
  /* Keep the measured title lane and the existing compact layout. */
  @media (min-width:901px) and (not (any-pointer:coarse)), (min-width:1367px) {
    html body[data-floodmapper-unified] #mapTitleBadge#mapTitleBadge {
      padding:8px 12px !important;
      gap:8px !important;
      min-height:0 !important;
    }
    html body[data-floodmapper-unified] #mapTitleBadge#mapTitleBadge #mapTitleText {
      font-size:clamp(26px,2.6vw,40px) !important;
      line-height:1.15 !important;
      letter-spacing:-.5px !important;
    }
    html body[data-floodmapper-unified] #mapTitleBadge#mapTitleBadge #mapTitlePartnerLogo {
      width:80px !important;
      min-width:80px !important;
      max-width:80px !important;
      flex:0 0 80px !important;
      height:32px !important;
      min-height:32px !important;
      max-height:32px !important;
      padding:2px 4px !important;
    }
  }
  @media (min-width:901px) and (max-width:1100px) and (not (any-pointer:coarse)) {
    html body[data-floodmapper-unified] #mapTitleBadge#mapTitleBadge #mapTitleText {
      font-size:23px !important;
    }
    html body[data-floodmapper-unified] #mapTitleBadge#mapTitleBadge #mapTitlePartnerLogo {
      width:56px !important;
      min-width:56px !important;
      max-width:56px !important;
      flex-basis:56px !important;
      height:24px !important;
      min-height:24px !important;
      max-height:24px !important;
    }
  }
  @media (min-width:901px) and (max-width:960px) and (min-height:561px) and (not (any-pointer:coarse)) {
    html body[data-floodmapper-unified] #mapTitleBadge#mapTitleBadge {
      flex-direction:column !important;
    }
  }
  /* Navigation shares the panel surface and button states, including its knob. */
  html body[data-floodmapper-unified] #nwDefaultNavControl#nwDefaultNavControl {
    color:var(--fleet-text) !important;
    filter:none !important;
  }
  html body[data-floodmapper-unified] #nwDefaultNavControl#nwDefaultNavControl
    :is(.nw-direction-wheel,.nw-simple-view,.nw-simple-zoom,.nw-simple-zoom-button) {
    background:#171e2a !important;
    border-color:var(--fleet-line) !important;
    color:var(--fleet-text) !important;
    box-shadow:none !important;
  }
  html body[data-floodmapper-unified] #nwDefaultNavControl#nwDefaultNavControl .nw-simple-view {
    opacity:1 !important;
  }
  html body[data-floodmapper-unified] #nwDefaultNavControl#nwDefaultNavControl .nw-direction-wheel {
    border-width:1px !important;
  }
  html body[data-floodmapper-unified] #nwDefaultNavControl#nwDefaultNavControl .nw-wheel-cardinal {
    color:var(--fleet-text) !important;
    text-shadow:none !important;
  }
  html body[data-floodmapper-unified] #nwDefaultNavControl#nwDefaultNavControl .nw-wheel-knob {
    background:rgba(255,255,255,.06) !important;
    border-color:var(--fleet-line) !important;
    color:var(--fleet-accent) !important;
    box-shadow:none !important;
  }
  html body[data-floodmapper-unified] #nwDefaultNavControl#nwDefaultNavControl .nw-simple-zoom-button {
    border-color:var(--fleet-line) !important;
  }
  html body[data-floodmapper-unified] #nwDefaultNavControl#nwDefaultNavControl
    :is(.nw-simple-view[aria-pressed="true"],.nw-simple-view:hover,.nw-simple-zoom-button:hover) {
    background:#23344b !important;
    border-color:var(--fleet-accent) !important;
    color:var(--fleet-accent) !important;
    box-shadow:none !important;
    filter:none !important;
  }
  html body[data-floodmapper-unified] #nwDefaultNavControl#nwDefaultNavControl
    :is(.nw-direction-wheel.is-active,.nw-direction-wheel:hover) {
    border-color:var(--fleet-accent) !important;
  }
  html body[data-floodmapper-unified] #nwDefaultNavControl#nwDefaultNavControl
    :is(button,.nw-direction-wheel):focus-visible {
    outline:2px solid var(--fleet-accent) !important;
    outline-offset:3px !important;
  }
  html body[data-floodmapper-unified] #nwDefaultNavControl#nwDefaultNavControl
    .nw-simple-zoom-button:focus-visible {
    outline-offset:-3px !important;
  }
}

/* Keep the existing camera card surface, width and controls in short windows. */
#webcamPanel[data-viewport-overlay="true"] {
  z-index:10050;
}
body.mobile-controls-open #webcamPanel[data-viewport-overlay="true"] {
  z-index:9100;
}
#webcamPanel[data-viewport-overlay="true"] .webcam-heading {
  position:sticky;
  top:0;
  z-index:1;
  background:#121d2d;
}

/* Keep the expanded compact key above the camera until it closes. */
body.mobile-legend-open #webcamPanel {
  z-index:4000;
}

  #exportStageFrame #exportMap {inset:0 auto auto 0 !important;width:100% !important;overflow:hidden !important;}
  #exportStageFrame #exportFooter {position:absolute;left:0;right:0;bottom:0;z-index:1300;overflow:hidden;background:#0b1424;border-top:1px solid #40516b;box-sizing:border-box;}
  #exportStageFrame #exportFooter :is(#exportTimestampLabel,#exportLegendDock,#exportLogoStrip) {position:absolute !important;right:auto !important;bottom:auto !important;transform:none !important;min-width:0 !important;max-width:none !important;min-height:0 !important;margin:0 !important;padding:0 !important;border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;box-sizing:border-box !important;overflow:hidden !important;}
  #exportStageFrame #exportFooter #exportTimestampLabel {text-align:left !important;white-space:normal !important;}
  #exportStageFrame #exportFooter #exportTimestampLabel span {position:absolute;left:0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0;}
  #exportStageFrame #exportFooter #exportLogoStrip {display:flex;align-items:center;justify-content:flex-end;gap:var(--export-footer-gap) !important;}
  #exportStageFrame #exportFooter .export-stage-logo {width:auto !important;height:auto !important;min-width:0 !important;max-width:100% !important;max-height:100% !important;object-fit:contain !important;flex-shrink:1;}
  #exportStageFrame #exportFooter .export-depth-key {display:grid;gap:var(--export-key-gap) !important;}
  #exportStageFrame #exportFooter .export-depth-key-heading strong {font-size:var(--export-key-title) !important;line-height:1.25 !important;font-weight:750 !important;letter-spacing:0 !important;}
  #exportStageFrame #exportFooter .export-depth-key-scale {display:grid;gap:var(--export-key-gap) !important;}
  #exportStageFrame #exportFooter .export-depth-key-gradient {height:var(--export-key-bar) !important;border:0 !important;box-shadow:none !important;}
  #exportStageFrame #exportFooter .export-depth-key-ends {font-size:var(--export-key-label) !important;line-height:1.2 !important;letter-spacing:0 !important;text-transform:none !important;}
  #exportStageFrame #exportFooter .export-depth-key-ends {position:relative;gap:var(--export-footer-gap) !important;}
  #exportStageFrame #exportFooter .export-depth-key-ends-three {display:grid !important;grid-template-columns:minmax(max-content,18%) minmax(max-content,1fr) max-content;align-items:center;}
  #exportStageFrame #exportFooter .export-depth-key-ends span {white-space:nowrap;}
  #exportStageFrame #exportFooter .export-depth-key-ends-three span:nth-child(2) {position:static;justify-self:start;}
  #exportStageFrame #exportFooter .export-depth-key-ends-three span:last-child {justify-self:end;}
  #exportStageFrame #exportFooter .export-depth-key-note {display:none !important;}
  @layer floodmapper-unified-base {
    html body[data-shorelysafe-ui] #exportStageFrame #exportFooter #exportLegendDock .stage-legend-scale {font-size:var(--export-key-label) !important;line-height:1.2 !important;gap:var(--export-footer-gap) !important;}
    html body[data-shorelysafe-ui] #exportStageFrame #exportFooter #exportLegendDock :is(.stage-legend-green,.stage-legend-gradient) {height:var(--export-key-bar) !important;margin-top:var(--export-key-gap) !important;border-width:1px !important;}
  }
  #exportStageFrame #exportMapAttribution {z-index:1400 !important;left:0 !important;bottom:0 !important;width:100% !important;max-width:none !important;background:#0b1424 !important;color:#aabbd1 !important;box-sizing:border-box !important;white-space:nowrap;overflow:hidden;}
