

    @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;
      }

      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{
        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;
        display:flex !important;
        flex-direction:column !important;
        gap:6px !important;
        padding:0 4px 0 0 !important;
        margin:0 !important;
        overflow:hidden !important;
        overflow-y:hidden !important;
        overflow-x:hidden !important;
        scrollbar-gutter:auto !important;
        transform:none !important;
        transition:none !important;
        animation:none !important;
        box-sizing:border-box !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;
      }
    }
  
     :root{
      --bg:#0b1220;
      --panel:rgba(255,255,255,.035);
      --panel-soft:rgba(11,18,32,.84);
      --text:#eaf0ff;
      --muted:#a9b6d3;
      --line:rgba(255,255,255,.085);
      --line-strong:rgba(255,255,255,.16);
      --accent:#60a5fa;
      --accent-soft:rgba(96,165,250,.14);
      --accent-strong:#bfdbfe;
      --success:#2dd4bf;
      --success-soft:rgba(45,212,191,.14);
      --shadow:0 22px 70px rgba(0,0,0,.40);
      --shadow-strong:0 22px 48px rgba(0,0,0,.34);
      --radius:22px;

      --minor:#d58a00;
      --moderate:#d84b67;
      --major:#7c5ce0;
      --below:#63D471;

      --depth-0:#7DF9FF;
      --depth-1:#5DE7FF;
      --depth-2:#38D3FF;
      --depth-3:#1BB7F5;
      --depth-4:#168CEB;
      --depth-5:#156BE0;
      --depth-6:#1853C6;
      --depth-7:#173EA8;
      --depth-8:#132F84;
      --depth-9:#0B1E5B;
      --depth-10:#050E33;
      --boundary-color:#000000;
      --parcel-red:#ef4444;
    }

    *{ box-sizing:border-box; }

    html, body{
      margin:0;
      width:100%;
      max-width:100%;
      height:100%;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:var(--bg);
      color:var(--text);
      overflow:hidden;
      overscroll-behavior:none;
    }

    body{
      position:fixed;
      inset:0;
      overflow:hidden;
    }

    #topBanner{
      position:fixed;
      top:10px;
      left:50%;
      transform:translateX(-50%);
      z-index:5000;
      min-width:min(540px, calc(100vw - 20px));
      max-width:min(760px, calc(100vw - 20px));
      display:none;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      padding:10px 14px;
      border-radius:999px;
      background:rgba(11,18,32,.94);
      color:#fff;
      box-shadow:var(--shadow-strong);
      backdrop-filter:blur(12px);
      -webkit-backdrop-filter:blur(12px);
    }

    #topBanner.alert{
      display:flex;
    }

    #topBanner .banner-text{
      display:grid;
      gap:2px;
      min-width:0;
    }

    #topBanner .banner-eyebrow{
      display:flex;
      align-items:center;
      gap:10px;
      font-size:11px;
      letter-spacing:.12em;
      text-transform:uppercase;
      color:#bfdbfe;
      font-weight:800;
    }

    #topBanner .banner-title{
      font-size:13px;
      font-weight:800;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }

    #topBanner .banner-meta{
      font-size:11px;
      color:#c7d2fe;
      white-space:nowrap;
    }

    #topBannerCloseBtn{
      width:30px;
      min-width:30px;
      height:30px;
      min-height:30px;
      padding:0;
      border-radius:999px;
      display:grid;
      place-items:center;
      font-size:18px;
      line-height:1;
      font-weight:900;
      color:#eaf0ff;
      background:rgba(255,255,255,.08);
      border:1px solid rgba(255,255,255,.16);
      box-shadow:none;
      flex:0 0 auto;
    }

    #topBannerCloseBtn:hover:not(:disabled){
      transform:none;
      box-shadow:none;
      background:rgba(255,255,255,.14);
    }

    #app{
      position:fixed;
      inset:0;
      width:100vw;
      height:100vh;
      overflow:hidden;
      background:var(--bg);
      isolation:isolate;
    }

    #leftPanel{
      position:fixed;
      top:16px;
      bottom:132px;
      left:16px;
      z-index:1250;
      width:320px;
      max-width:calc(100vw - 32px);
      display:flex;
      flex-direction:column;
      gap:10px;
      overflow-y:auto;
      overflow-x:hidden;
      padding:0 4px 4px 0;
      pointer-events:auto;
      background:none;
      border:0;
      scrollbar-gutter:stable;
    }

    .panel-card{
      background:rgba(11,18,32,.88);
      border:1px solid var(--line);
      border-radius:20px;
      box-shadow:0 16px 32px rgba(15,23,42,.12);
      padding:12px 14px;
      backdrop-filter:blur(14px);
      -webkit-backdrop-filter:blur(16px);
      pointer-events:auto;
      flex:0 0 auto;
      min-height:fit-content;
    }

    .brand{
      padding:12px 14px;
      display:flex;
      align-items:center;
      justify-content:center;
      min-height:124px;
    }

    .shorelysafe-logo{
      display:block;
      width:min(210px, 92%);
      max-height:44px;
      object-fit:contain;
      margin:0 auto 10px;
      filter:drop-shadow(0 8px 14px rgba(0,0,0,.24));
    }

    .brand-stack{
      width:100%;
      display:grid;
      gap:2px;
      align-items:center;
      justify-items:center;
    }

    .brand-top{
      width:100%;
      display:flex;
      align-items:center;
      justify-content:center;
      text-align:center;
    }

    h1{
      margin:0;
      max-width:100%;
      font-size:clamp(20px, 2.2vw, 32px);
      line-height:.92;
      letter-spacing:-.04em;
      font-weight:900;
      word-break:keep-all;
      text-align:center;
      text-wrap:balance;
    }

    .muted{
      color:var(--muted);
      font-size:11px;
      line-height:1.3;
    }

    .button-grid-2{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:8px;
    }

    .button-grid-3{
      display:grid;
      grid-template-columns:repeat(3, minmax(0, 1fr));
      gap:6px;
    }

    .button-grid-3 button{
      min-height:38px;
      padding:8px 7px;
      font-size:12px;
    }

    .forecast-scenario-card{
      display:flex;
      flex-direction:column;
      gap:8px;
    }

    .return-interval-card{
      display:none;
      flex-direction:column;
      gap:8px;
    }

    .return-interval-grid{
      display:grid;
      grid-template-columns:repeat(5, minmax(0, 1fr));
      gap:6px;
    }

    .return-interval-grid button{
      min-height:34px;
      padding:7px 4px;
      font-size:11px;
    }

    body.return-interval-mode .return-interval-card{
      display:flex;
    }

    body.observed-mode .forecast-scenario-card{
      display:none;
    }

    .compact-card{
      padding:10px 12px;
    }

    .datum-card,
    .opacity-card{
      min-height:138px;
      display:flex;
      flex-direction:column;
      justify-content:space-between;
    }

    .compact-card .section-title{
      margin-bottom:8px;
    }

    .compact-card .control-row{
      min-height:0;
    }

    .opacity-card{
      padding-bottom:11px;
    }

    .opacity-card .section-title{
      margin-bottom:8px;
    }

    .opacity-card .control-row{
      flex:1 1 auto;
      display:grid;
      align-content:center;
      gap:8px;
    }

    .segmented-control{
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:5px;
      padding:4px;
      border:1px solid rgba(255,255,255,.09);
      border-radius:15px;
      background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
      box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
    }

    .segmented-control button{
      min-height:38px;
      border-radius:11px;
      border:1px solid rgba(255,255,255,.02);
      background:transparent;
      box-shadow:none;
      font-size:12.5px;
      font-weight:850;
      letter-spacing:-.02em;
      color:#dbe8ff;
      padding:8px 10px;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:1px;
      line-height:1.04;
    }

    .segmented-control button:hover:not(:disabled){
      transform:none;
      box-shadow:none;
      background:rgba(255,255,255,.04);
    }

    .segmented-control button.active{
      background:linear-gradient(180deg, rgba(96,165,250,.22), rgba(96,165,250,.12));
      border-color:rgba(191,219,254,.55);
      color:#eef6ff;
      box-shadow:0 8px 18px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.06);
    }

    .segmented-control button .datum-offset{
      display:block;
      margin-top:0;
      font-size:9px;
      font-weight:800;
      letter-spacing:.04em;
      line-height:1.02;
      color:var(--muted);
    }

    .segmented-control button.active .datum-offset{
      color:#cfe4ff;
    }

    button,
    select{
      appearance:none;
      border:1px solid var(--line);
      background:rgba(255,255,255,.05);
      border-radius:14px;
      color:var(--text);
      font-size:13px;
      font-weight:750;
      min-height:42px;
    }

    button{
      cursor:pointer;
      transition:transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
      padding:9px 12px;
    }

    button:hover:not(:disabled){
      transform:translateY(-1px);
      box-shadow:0 12px 24px rgba(0,0,0,.18);
    }

    button:disabled{
      opacity:.42;
      cursor:default;
      transform:none;
      box-shadow:none;
    }

    button.active{
      background:var(--accent-soft);
      color:var(--accent-strong);
      border-color:#bfdbfe;
    }

    .section-title{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:8px;
      margin-bottom:8px;
    }

    .section-title h2{
      margin:0;
      font-size:14px;
      letter-spacing:-.02em;
      font-weight:850;
    }

    .section-kicker{
      color:var(--muted);
      font-size:11px;
      font-weight:750;
    }

    .stat-grid{
      display:grid;
      grid-template-columns:1fr;
      gap:8px;
    }

    .stat-box{
      width:100%;
      min-height:0;
      padding:14px 12px;
      border:1px solid var(--line);
      border-radius:18px;
      background:rgba(255,255,255,.04);
      display:grid;
      align-content:center;
      justify-items:center;
      text-align:center;
      gap:7px;
    }

    .snapshot-card{
      padding:12px 14px 14px;
    }

    .snapshot-card .section-title{
      margin-bottom:10px;
    }

    .snapshot-card .stat-grid{
      gap:10px;
    }

    .snapshot-card .stat-box{
      min-height:0;
      padding:16px 18px;
      border-radius:20px;
      justify-items:center;
      align-content:center;
      text-align:center;
      gap:6px;
      background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.035));
    }

    .snapshot-card .stat-label,
    .snapshot-card .stat-value,
    .snapshot-card .stat-sub{
      width:100%;
      min-width:0;
      text-align:center;
    }

    .stat-label{
      font-size:11px;
      font-weight:850;
      color:var(--muted);
      text-transform:uppercase;
      letter-spacing:.12em;
    }

    .stat-value{
      font-size:21px;
      line-height:1.06;
      font-weight:900;
      letter-spacing:-.035em;
    }

    .stat-sub{
      font-size:11px;
      color:var(--muted);
      line-height:1.3;
    }

    #timeText{
      display:block;
      max-width:100%;
      white-space:nowrap;
      overflow:hidden;
      font-size:clamp(15px, 1.28vw, 20px);
      line-height:1.1;
      letter-spacing:-.02em;
    }

    #stageText{
      font-size:clamp(24px, 1.95vw, 32px);
      line-height:1.02;
      letter-spacing:-.03em;
    }

    .control-row{
      display:grid;
      gap:5px;
    }

    .range-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-bottom:8px;
    }

    .range-label{
      font-size:13px;
      font-weight:800;
      color:var(--muted);
    }

    .range-value{
      font-size:13px;
      font-weight:850;
    }

    input[type="range"]{
      width:100%;
      accent-color:var(--accent);
      margin:0;
    }

    .transport-row{
      display:grid;
      grid-template-columns:1fr 1fr 1fr;
      gap:8px;
    }

    .calendar-card{
      display:none;
      gap:12px;
    }

    .calendar-card.active{
      display:grid;
    }

    .stat-box:last-child{
      grid-column:1 / -1;
    }

    .calendar-toolbar{
      display:grid;
      grid-template-columns:40px 1fr 40px;
      gap:6px;
      align-items:center;
    }

    .calendar-title-btn{
      display:flex;
      align-items:center;
      justify-content:center;
      gap:6px;
      font-weight:850;
      font-size:13px;
      letter-spacing:-.02em;
      min-height:40px;
    }

    .calendar-title-btn .caret{
      font-size:12px;
      color:var(--muted);
    }

    .calendar-popover{
      display:none;
      border:1px solid var(--line);
      border-radius:18px;
      background:rgba(11,18,32,.96);
      padding:12px;
      gap:10px;
    }

    .calendar-popover.open{
      display:grid;
    }

    .calendar-popover-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:8px;
      font-size:11px;
      font-weight:900;
      letter-spacing:.08em;
      text-transform:uppercase;
      color:var(--muted);
    }

    .calendar-popover-close{
      width:30px;
      min-width:30px;
      height:30px;
      min-height:30px;
      padding:0;
      border-radius:999px;
      display:grid;
      place-items:center;
      font-size:18px;
      line-height:1;
      font-weight:900;
      color:#eaf0ff;
      background:rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.14);
      box-shadow:none;
    }

    .calendar-popover-close:hover:not(:disabled){
      transform:none;
      box-shadow:none;
      background:rgba(255,255,255,.12);
    }

    .calendar-popover-grid{
      display:grid;
      grid-template-columns:1fr 1fr auto;
      gap:8px;
      align-items:end;
    }

    .calendar-popover label{
      font-size:10px;
      font-weight:800;
      color:var(--muted);
      display:grid;
      gap:5px;
      text-transform:uppercase;
      letter-spacing:.08em;
    }

    .calendar-popover select{
      font-size:12px;
      width:100%;
      padding:0 12px;
    }

    .calendar-head,
    .calendar-grid{
      display:grid;
      grid-template-columns:repeat(7, 1fr);
      gap:6px;
    }

    .calendar-head div{
      text-align:center;
      font-size:13px;
      font-weight:850;
      color:#c5d0ea;
      padding:3px 0 2px;
      letter-spacing:.02em;
    }

    .calendar-day{
      min-height:44px;
      display:grid;
      place-items:center;
      border-radius:14px;
      border:1px solid var(--line);
      background:rgba(255,255,255,.055);
      padding:0;
      position:relative;
      font-weight:850;
      font-size:15px;
      color:var(--text);
      transition:transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
    }

    .calendar-day:hover:not(:disabled){
      transform:translateY(-1px);
      border-color:rgba(191,219,254,.34);
      background:rgba(255,255,255,.075);
      box-shadow:0 8px 16px rgba(0,0,0,.14);
    }

    .calendar-day:disabled{
      cursor:default;
      opacity:.72;
      box-shadow:none;
    }

    .calendar-day.empty{
      visibility:hidden;
      pointer-events:none;
    }

    .calendar-day.day-none{
      background:rgba(255,255,255,.024);
      color:rgba(169,182,211,.52);
      border-color:rgba(255,255,255,.045);
    }

    .calendar-day.day-minor{ background:rgba(213,138,0,.16); border-color:rgba(213,138,0,.42); }
    .calendar-day.day-moderate{ background:rgba(216,75,103,.16); border-color:rgba(216,75,103,.42); }
    .calendar-day.day-major{ background:rgba(124,92,224,.18); border-color:rgba(124,92,224,.44); }

    .calendar-day.selected{
      outline:none;
      border-color:rgba(255,255,255,.98);
      box-shadow:0 0 0 2px rgba(255,255,255,.28), inset 0 1px 0 rgba(255,255,255,.08);
    }

    .calendar-day.selected::after{
      content:"";
      position:absolute;
      inset:4px;
      border-radius:9px;
      border:1px solid rgba(255,255,255,.32);
      pointer-events:none;
    }

    .calendar-day .tiny{
      display:none;
    }

    .day-nav{
      display:grid;
      grid-template-columns:46px minmax(0, 1fr) 46px;
      gap:8px;
      align-items:stretch;
    }

    .calendar-nav-btn{
      min-height:54px;
      padding:0;
      border-radius:16px;
      font-size:24px;
      font-weight:900;
      line-height:1;
    }

    .day-nav-center{
      display:grid;
      place-items:center;
      min-height:54px;
      padding:10px 14px;
      text-align:center;
      color:var(--text);
      border:1px solid var(--line);
      border-radius:16px;
      background:rgba(255,255,255,.045);
      font-size:17px;
      font-weight:850;
      letter-spacing:-.015em;
      min-width:0;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }

    .calendar-key{
      display:grid;
      grid-template-columns:repeat(3, minmax(0, 1fr));
      gap:8px;
      margin-top:8px;
    }

    .calendar-key-item{
      display:flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      min-height:34px;
      padding:0 10px;
      border-radius:999px;
      border:1px solid var(--line);
      background:rgba(255,255,255,.045);
      font-size:12px;
      font-weight:850;
      color:var(--text);
      white-space:nowrap;
    }

    .calendar-key-swatch{
      width:12px;
      height:12px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.18);
      flex:0 0 auto;
    }

    .calendar-key-item.minor{ background:rgba(213,138,0,.10); border-color:rgba(213,138,0,.22); }
    .calendar-key-item.minor .calendar-key-swatch{ background:var(--minor); }
    .calendar-key-item.moderate{ background:rgba(216,75,103,.11); border-color:rgba(216,75,103,.24); }
    .calendar-key-item.moderate .calendar-key-swatch{ background:var(--moderate); }
    .calendar-key-item.major{ background:rgba(124,92,224,.12); border-color:rgba(124,92,224,.25); }
    .calendar-key-item.major .calendar-key-swatch{ background:var(--major); }

    #mapWrap{
      position:fixed;
      inset:0;
      width:100vw;
      height:100vh;
      overflow:hidden;
    }

    #map{
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      background:#050b16;
    }

    #map3d{
      position:absolute;
      inset:0;
      z-index:1;
      width:100%;
      height:100%;
      opacity:0;
      pointer-events:none;
      background:#050b16;
      transition:opacity .18s ease;
    }

    body.map-3d-ready #map{
      opacity:0;
      pointer-events:none;
    }

    body.map-3d-ready #map .leaflet-control-container{
      display:none;
    }

    body.map-3d-ready #map3d{
      opacity:1;
      pointer-events:auto;
    }

    #map3dStatus{
      display:none;
      position:absolute;
      z-index:1450;
      top:416px;
      right:calc(var(--pj-right-rail-fit-width) + 44px);
      padding:7px 10px;
      border:1px solid rgba(255,255,255,.18);
      border-radius:10px;
      background:rgba(11,18,32,.88);
      box-shadow:0 10px 24px rgba(15,23,42,.22);
      color:#eaf0ff;
      font-size:10px;
      font-weight:850;
      letter-spacing:.02em;
      pointer-events:none;
      backdrop-filter:blur(10px);
    }

    body.map-3d-ready #map3dStatus{ display:none; }

    html body:is([data-map3d="recovering"],[data-map3d="unavailable"]) #map3dStatus {
      display:block !important;
      position:fixed;
      top:45%;
      left:50%;
      right:auto;
      max-width:calc(100vw - 32px);
      transform:translateX(-50%);
      z-index:7900;
      color:#fff;
      background:#78350f;
      font-size:14px;
      text-align:center;
    }

    html body #nwDefaultNavControl{
      position:absolute;
      z-index:1450;
      top:16px;
      right:calc(var(--pj-right-rail-fit-width) + 28px);
    }
    html body #map .leaflet-control-zoom{ display:none !important; }

    @media (min-width:901px) and (max-width:1450px) and (min-height:561px) and (not (any-pointer:coarse)), (min-width:1367px) and (max-width:1450px) and (min-height:561px), (min-width:901px) and (max-width:1450px) and (pointer:fine) and (not (any-pointer:coarse)), (min-width:1367px) and (max-width:1450px) and (pointer:fine), (min-width:901px) and (max-width:1450px) and (pointer:none) and (not (any-pointer:coarse)), (min-width:1367px) and (max-width:1450px) and (pointer:none) {
      html body #nwDefaultNavControl{
        top:96px;
      }
    }

    html body .nw-simple-control{
      display:flex;
      flex-direction:column;
      align-items:center;
      gap:9px;
      width:92px;
      margin:0;
      overflow:visible;
      border:0;
      border-radius:0;
      background:transparent;
      box-shadow:none;
      color:#4285c5;
      font-family:Arial,sans-serif;
      user-select:none;
      -webkit-user-select:none;
      touch-action:none;
      isolation:isolate;
      pointer-events:auto;
      filter:drop-shadow(0 2px 4px rgba(0,0,0,.42));
      contain:layout style paint;
      will-change:transform;
      transform:translateZ(0);
      -webkit-backface-visibility:hidden;
      backface-visibility:hidden;
    }
    html body .nw-simple-control button{
      -webkit-appearance:none !important;
      appearance:none !important;
      display:grid !important;
      place-items:center !important;
      min-width:0 !important;
      min-height:0 !important;
      margin:0 !important;
      padding:0 !important;
      border:1px solid #cfcfcf;
      background:linear-gradient(#fff,#e9e9e9);
      color:#4285c5;
      font-family:Arial,sans-serif !important;
      font-weight:800 !important;
      line-height:1 !important;
      text-indent:0 !important;
      cursor:pointer;
      touch-action:manipulation;
      box-sizing:border-box !important;
    }
    html body .nw-simple-control button:hover{ filter:brightness(1.07); }
    html body .nw-simple-control button:focus-visible,
    html body .nw-direction-wheel:focus-visible{
      outline:3px solid rgba(96,165,250,.96);
      outline-offset:3px;
    }
    html body .nw-direction-wheel{
      position:relative;
      width:88px;
      height:88px;
      border:4px solid #b7b7b7;
      border-radius:50%;
      background:radial-gradient(circle at 50% 46%,#555 0 23%,#343434 24% 68%,#282828 69% 100%);
      box-shadow:inset 0 0 0 3px rgba(255,255,255,.18),0 1px 4px rgba(0,0,0,.52);
      cursor:grab;
      touch-action:none;
      box-sizing:border-box;
      contain:layout paint;
      will-change:transform;
      transform:translateZ(0);
      -webkit-backface-visibility:hidden;
      backface-visibility:hidden;
    }
    html body .nw-direction-wheel.is-active{ cursor:grabbing; }
    html body .nw-wheel-cardinal{
      position:absolute;
      z-index:1;
      width:18px;
      height:18px;
      color:#fff;
      font:900 10px/18px Arial,sans-serif;
      text-align:center;
      text-shadow:0 1px 2px #000;
      pointer-events:none;
    }
    html body .nw-wheel-n{ top:2px; left:50%; margin-left:-9px; }
    html body .nw-wheel-e{ top:50%; right:2px; margin-top:-9px; }
    html body .nw-wheel-s{ bottom:2px; left:50%; margin-left:-9px; }
    html body .nw-wheel-w{ top:50%; left:2px; margin-top:-9px; }
    html body .nw-wheel-knob{
      position:absolute;
      z-index:2;
      top:50%;
      left:50%;
      display:grid;
      place-items:center;
      width:32px;
      height:32px;
      margin:-16px 0 0 -16px;
      border:2px solid #d6d6d6;
      border-radius:50%;
      background:linear-gradient(#fff,#e5e5e5);
      box-shadow:0 1px 4px rgba(0,0,0,.44);
      color:#4285c5;
      transform:translate3d(var(--nw-wheel-x,0px),var(--nw-wheel-y,0px),0);
      transition:transform .11s ease-out;
      will-change:transform;
      -webkit-backface-visibility:hidden;
      backface-visibility:hidden;
      contain:paint;
      pointer-events:none;
      box-sizing:border-box;
    }
    html body .nw-direction-wheel.is-active .nw-wheel-knob{ transition:none; }
    html body .nw-wheel-knob::before{
      content:"";
      width:10px;
      height:10px;
      border:3px solid currentColor;
      border-radius:50%;
      box-sizing:border-box;
    }
    html body .nw-simple-view{
      width:54px !important;
      height:34px !important;
      border-radius:17px !important;
      font-size:12px !important;
      letter-spacing:.04em;
      box-shadow:0 1px 3px rgba(0,0,0,.36);
    }
    html body .nw-simple-view[aria-pressed="true"]{
      border-color:#4285c5 !important;
      box-shadow:0 1px 3px rgba(0,0,0,.36),0 0 0 2px rgba(66,133,197,.92);
    }
    html body #nwDefaultNavControl.is-mode-transitioning .nw-simple-view{
      cursor:progress;
      opacity:.88;
    }
    html body .nw-simple-zoom{
      display:flex;
      flex-direction:column;
      align-items:center;
      width:36px;
      border-radius:9px;
      overflow:hidden;
      box-shadow:0 1px 3px rgba(0,0,0,.36);
    }
    html body .nw-simple-zoom-button{
      width:36px !important;
      height:34px !important;
      border-radius:0 !important;
      font-size:22px !important;
      box-shadow:none !important;
    }
    html body .nw-simple-zoom-in{ border-bottom:0 !important; }
    html body .nw-simple-zoom-out{ border-top-color:#ddd !important; }

    #rightRail .layers-card{ position:relative; }
    .nw-map-credits-rail{
      position:absolute;
      z-index:3;
      top:12px;
      right:16px;
      margin:0;
      padding:0;
      color:#aebbd1;
      font:700 9px/1.35 Arial, sans-serif;
    }
    .nw-map-credits-rail summary{
      width:max-content;
      color:#9fb2ca;
      cursor:pointer;
    }
    .nw-map-credits-rail div{
      position:absolute;
      top:18px;
      right:0;
      width:220px;
      padding:7px 9px;
      border:1px solid rgba(148,163,184,.22);
      border-radius:10px;
      background:#111827;
      color:#aebbd1;
      font-weight:600;
      box-shadow:0 8px 22px rgba(2,6,23,.38);
    }
    .nw-map-credits-rail a{
      color:#aebbd1;
    }

    #map3d .maplibregl-popup-content{
      padding:0;
      border-radius:16px;
      background:#0b1220;
      color:#eaf0ff;
      box-shadow:0 18px 48px rgba(2,6,23,.42);
    }

    #map3d .maplibregl-popup-close-button{
      z-index:2;
      width:32px;
      height:32px;
      color:#fff;
      font-size:22px;
    }

    #map3d .maplibregl-popup-tip{ border-top-color:#0b1220; }

    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      html body #nwDefaultNavControl{
        top:max(66px, calc(env(safe-area-inset-top) + 54px));
        right:max(2px, env(safe-area-inset-right));
      }
      #map3dStatus{ display:none !important; }
      html body .nw-simple-control{
        width:80px;
        gap:8px;
      }
      html body .nw-direction-wheel{
        width:78px;
        height:78px;
      }
    }

    .leaflet-image-layer{
      image-rendering:auto;
    }
    .leaflet-flood-pane{
      isolation:isolate;
    }
    .leaflet-flood-pane .leaflet-image-layer{
      -webkit-backface-visibility:hidden;
      backface-visibility:hidden;
    }

    .grayscale-tiles{
      filter:grayscale(100%);
      -webkit-filter:grayscale(100%);
    }

    .map-floating{
      position:absolute;
      z-index:1200;
      background:var(--panel-soft);
      border:1px solid var(--line);
      box-shadow:var(--shadow-strong);
      border-radius:24px;
      backdrop-filter:blur(18px);
      -webkit-backdrop-filter:blur(18px);
    }

    #legendDock{
      position:fixed;
      top:16px;
      left:352px;
      width:182px;
      padding:12px;
    }

    .legend-title{
      margin:0 0 6px;
      font-size:13px;
      font-weight:850;
      letter-spacing:-.02em;
    }

    .legend-sub{
      display:none;
    }

    .legend-list{
      display:grid;
      gap:6px;
    }

    .legend-row{
      display:grid;
      grid-template-columns:14px 1fr;
      gap:8px;
      align-items:center;
      font-size:11px;
      font-weight:760;
      line-height:1.2;
    }

    .legend-swatch{
      width:12px;
      height:12px;
      border-radius:5px;
      border:1px solid rgba(15,23,42,.12);
    }

    .legend-swatch.legend-line{
      width:14px;
      height:0;
      border:none;
      border-top:3px solid var(--boundary-color);
      border-radius:999px;
      background:none;
    }

    .legend-row.legend-row-boundary{
      margin-top:4px;
      padding-top:7px;
      border-top:1px solid rgba(255,255,255,.08);
    }

    .legend-note{
      display:none;
    }

    #rightRail{
      position:fixed;
      top:16px;
      bottom:132px;
      right:16px;
      width:220px;
      padding:0;
      display:flex;
      flex-direction:column;
      gap:12px;
      align-items:stretch;
      align-content:flex-start;
      background:none;
      border:0;
      box-shadow:none;
      backdrop-filter:none;
      -webkit-backdrop-filter:none;
      overflow-y:auto;
      overflow-x:hidden;
      scrollbar-gutter:stable;
      pointer-events:none;
    }

    .rail-card{
      background:rgba(11,18,32,.88);
      border:1px solid var(--line);
      border-radius:16px;
      padding:12px;
      pointer-events:auto;
      box-shadow:0 16px 32px rgba(15,23,42,.18);
      backdrop-filter:blur(14px);
      -webkit-backdrop-filter:blur(16px);
    }

    .rail-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:8px;
      margin-bottom:8px;
    }

    .rail-head h3{
      margin:0;
      font-size:13px;
      font-weight:850;
      letter-spacing:-.02em;
    }

    .pill{
      display:inline-flex;
      align-items:center;
      gap:6px;
      min-height:24px;
      border-radius:999px;
      border:1px solid var(--line);
      padding:0 8px;
      background:rgba(255,255,255,.045);
      font-size:10px;
      font-weight:850;
      color:var(--muted);
      white-space:nowrap;
    }

    .layer-list,
    .top-tide-list{
      display:grid;
      gap:8px;
    }

    .top-tides-card{
      display:grid;
      grid-template-rows:auto auto;
      min-height:0;
      height:auto;
      max-height:none;
      overflow:visible;
      align-content:start;
      flex:0 0 auto;
    }

    .top-tide-list{
      overflow-y:visible;
      overflow-x:hidden;
      max-height:none;
      padding-right:0;
      align-content:start;
    }

    .top-tide-list::-webkit-scrollbar{
      width:8px;
    }

    .top-tide-list::-webkit-scrollbar-thumb{
      background:rgba(148,163,184,.38);
      border-radius:999px;
      border:2px solid transparent;
      background-clip:padding-box;
    }

    .layer-item{
      display:grid;
      grid-template-columns:auto 1fr auto;
      align-items:center;
      gap:8px;
      padding:10px 12px;
      border:1px solid var(--line);
      border-radius:14px;
      background:rgba(255,255,255,.05);
      box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
    }

    .toggle{
      position:relative;
      width:42px;
      height:24px;
      background:rgba(255,255,255,.20);
      border-radius:999px;
      transition:background .18s ease;
      box-shadow:inset 0 0 0 1px rgba(15,23,42,.04);
    }

    .toggle::after{
      content:"";
      position:absolute;
      top:3px;
      left:3px;
      width:18px;
      height:18px;
      border-radius:999px;
      background:#ffffff;
      box-shadow:0 2px 8px rgba(0,0,0,.28);
    }

    .toggle.on{
      background:var(--accent);
    }

    .toggle.on::after{
      left:21px;
    }

    .layer-meta{
      display:grid;
      gap:2px;
      min-width:0;
    }

    .layer-name{
      font-size:12px;
      font-weight:850;
    }

    .layer-desc{
      display:none;
    }

    .badge{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:22px;
      padding:0 8px;
      border-radius:999px;
      background:rgba(255,255,255,.03);
      border:1px solid var(--line);
      font-size:10px;
      font-weight:850;
      color:var(--muted);
      white-space:nowrap;
    }

    .top-tide-item{
      width:100%;
      text-align:center;
      padding:11px 10px;
      border-radius:15px;
      border:1px solid var(--line);
      background:rgba(255,255,255,.05);
      display:grid;
      justify-items:center;
      align-items:center;
      gap:4px;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
    }

    .top-tide-item.active{
      background:rgba(96,165,250,.14);
      border-color:#bfdbfe;
      color:var(--accent-strong);
    }

    .top-tide-rank{
      font-size:12px;
      font-weight:900;
      letter-spacing:.06em;
      text-transform:uppercase;
      color:var(--muted);
      text-align:center;
      width:100%;
    }

    .top-tide-item.active .top-tide-rank{
      color:var(--accent);
    }

    .top-tide-main{
      font-size:16px;
      font-weight:850;
      letter-spacing:-.02em;
      text-align:center;
      width:100%;
      line-height:1.05;
    }

    .top-tide-sub{
      font-size:13px;
      color:var(--muted);
      line-height:1.25;
      text-align:center;
      width:100%;
    }

    .mobile-top-tides-card{
      display:none;
      gap:10px;
    }

    .center-title{
      justify-content:center;
    }

    .center-title h2{
      width:100%;
      text-align:center;
    }

    .top-tides-card .rail-head{
      justify-content:center;
      margin-bottom:8px;
    }

    .top-tides-card .rail-head h3{
      width:100%;
      text-align:center;
      font-size:15px;
    }

    .top-tide-list-mobile{
      display:grid;
      gap:10px;
    }

.right-rail-note{
  margin:0;
  font-size:11px;
  line-height:1.45;
  color:var(--muted);
}

.right-rail-action{
  width:100%;
  min-height:42px;
}

    .town-address-card{
      display:grid;
      gap:9px;
      align-content:start;
    }

    .town-address-card .rail-head{
      margin-bottom:0;
    }

    .town-address-form{
      display:grid;
      gap:7px;
    }

    .town-address-actions{
      display:grid;
      grid-template-columns:minmax(0, 1fr) auto;
      gap:7px;
      align-items:stretch;
    }

    .town-address-label{
      font-size:10px;
      font-weight:850;
      color:var(--muted);
      text-transform:uppercase;
      letter-spacing:.08em;
    }

    .town-address-input{
      width:100%;
      min-height:40px;
      padding:0 11px;
      border-radius:14px;
      border:1px solid var(--line);
      background:rgba(255,255,255,.045);
      color:var(--text);
      font-size:12px;
      font-weight:760;
      outline:none;
    }

    .town-address-input:focus{
      border-color:#bfdbfe;
      box-shadow:0 0 0 2px rgba(96,165,250,.16);
    }

    .town-address-input::placeholder{
      color:rgba(199,210,254,.62);
      opacity:1;
    }

    .town-address-btn{
      font-weight:850;
    }

    .town-address-clear-btn{
      min-width:58px;
      min-height:42px;
      padding:0 10px;
      border-radius:14px;
      font-size:11px;
      font-weight:900;
      letter-spacing:.06em;
      text-transform:uppercase;
      color:#dbe8ff;
      background:rgba(255,255,255,.055);
      border:1px solid rgba(255,255,255,.13);
      box-shadow:none;
    }

    .town-address-clear-btn:hover:not(:disabled){
      transform:none;
      box-shadow:none;
      background:rgba(255,255,255,.11);
    }

    .town-address-status{
      min-height:16px;
      font-size:11px;
      line-height:1.35;
      color:var(--muted);
      word-break:break-word;
    }

    .town-address-status.error{
      color:#fecaca;
    }

    .town-address-status.success{
      color:#bfdbfe;
    }

    .town-address-popup{
      color:#0f172a;
      font-size:13px;
      line-height:1.35;
    }

    .town-address-popup strong{
      display:block;
      margin-bottom:2px;
    }

    .download-card{
      display:grid;
      gap:10px;
      align-content:start;
      min-height:0;
      overflow:hidden;
    }

    .download-launch-card{
      gap:12px;
    }

    .download-launch-meta{
      font-size:11px;
      line-height:1.45;
      color:var(--muted);
    }

    .download-launch-btn{
      min-height:44px;
      width:100%;
      font-weight:850;
    }

    .download-modal{
      position:fixed;
      inset:0;
      z-index:6100;
      display:none;
      align-items:center;
      justify-content:center;
      padding:20px;
      background:rgba(5,11,22,.58);
      backdrop-filter:blur(8px);
      -webkit-backdrop-filter:blur(8px);
    }

    .download-modal.open{
      display:flex;
    }

    .download-modal-card{
      width:min(820px, calc(100vw - 32px));
      max-height:calc(100vh - 40px);
      overflow-y:auto;
      border-radius:24px;
      border:1px solid rgba(191,219,254,.18);
      background:rgba(11,18,32,.97);
      box-shadow:0 28px 70px rgba(0,0,0,.42);
      padding:18px 18px 16px;
      color:#dbe8ff;
    }

    .download-modal-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-bottom:12px;
    }

    .download-modal-head h3{
      margin:0;
      font-size:18px;
      font-weight:900;
      letter-spacing:-.02em;
      color:#ffffff;
    }

    .download-modal-head-actions{
      display:flex;
      align-items:center;
      gap:8px;
      flex:0 0 auto;
    }

    .download-reset-btn{
      min-height:34px;
      height:34px;
      padding:0 13px;
      border-radius:999px;
      font-size:11px;
      font-weight:900;
      letter-spacing:.06em;
      text-transform:uppercase;
      color:#dbe8ff;
      background:rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.16);
      box-shadow:none;
      transform:none !important;
    }

    .download-reset-btn:hover:not(:disabled){
      background:rgba(96,165,250,.16);
      border-color:rgba(191,219,254,.44);
      box-shadow:none;
    }

    .download-modal-sub{
      margin:0 0 16px;
      font-size:17px;
      line-height:1.45;
      color:#c7d2fe;
      font-weight:800;
      letter-spacing:-.01em;
    }

    .download-grid{
      display:grid;
      gap:10px;
    }

    .download-modal .download-grid{
      gap:12px;
    }

    .download-field{
      display:grid;
      gap:5px;
      font-size:10px;
      font-weight:850;
      color:var(--muted);
      text-transform:uppercase;
      letter-spacing:.08em;
    }

    .download-field select,
    .download-field input[type="datetime-local"]{
      width:100%;
      min-height:42px;
      padding:0 12px;
      border-radius:14px;
      border:1px solid var(--line);
      background:rgba(255,255,255,.045);
      text-transform:none;
      letter-spacing:normal;
      color:var(--text);
      font-size:13px;
      font-weight:760;
      outline:none;
    }

    .download-range-grid{
      display:none !important;
      grid-template-columns:1fr 1fr;
      gap:10px;
    }

    .download-range-grid[hidden]{
      display:none;
    }

    .export-segmented{
      display:grid;
      grid-template-columns:repeat(var(--seg-cols, 2), minmax(0, 1fr));
      gap:6px;
      padding:4px;
      border:1px solid rgba(255,255,255,.09);
      border-radius:15px;
      background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
      box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
    }

    .export-segmented button{
      min-height:38px;
      border-radius:11px;
      border:1px solid rgba(255,255,255,.02);
      background:transparent;
      box-shadow:none;
      font-size:12.5px;
      font-weight:850;
      letter-spacing:-.02em;
      color:#dbe8ff;
      padding:8px 10px;
      display:flex;
      align-items:center;
      justify-content:center;
      line-height:1.04;
      cursor:pointer;
    }

    .export-segmented button:hover:not(:disabled){
      transform:none;
      box-shadow:none;
      background:rgba(255,255,255,.04);
    }

    .export-segmented button.active{
      background:linear-gradient(180deg, rgba(96,165,250,.22), rgba(96,165,250,.12));
      border-color:rgba(191,219,254,.55);
      color:#eef6ff;
      box-shadow:0 8px 18px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.06);
    }

    .export-picker{
      contain:content;
      display:grid;
      gap:8px;
      padding:10px;
      border-radius:16px;
      border:1px solid var(--line);
      background:rgba(255,255,255,.035);
    }

    @media (max-width:760px){
      .download-modal-card{ width:min(620px, calc(100vw - 32px)); }
    }



    .export-pick-mode-label{
      color:var(--muted);
      font-size:11px;
      font-weight:900;
      letter-spacing:.06em;
      text-transform:uppercase;
      white-space:nowrap;
    }

    @keyframes export-selected-date-red-blink{
      0%,100%{
        border-color:rgba(248,113,113,.72);
        box-shadow:0 0 0 2px rgba(248,113,113,.22), 0 0 18px rgba(248,113,113,.18), inset 0 1px 0 rgba(255,255,255,.16);
      }
      50%{
        border-color:#fecaca;
        box-shadow:0 0 0 3px rgba(248,113,113,.40), 0 0 28px rgba(248,113,113,.34), inset 0 1px 0 rgba(255,255,255,.22);
      }
    }

    @keyframes export-picked-date-red-flash{
      0%,100%{
        border-color:rgba(191,219,254,.28);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
      }
      50%{
        border-color:#fecaca;
        box-shadow:0 0 0 3px rgba(248,113,113,.28), 0 0 22px rgba(248,113,113,.28), inset 0 1px 0 rgba(255,255,255,.18);
      }
    }


    .export-picked-date.selected-date-flash{
      animation:export-picked-date-red-flash 1.15s ease-in-out 2;
    }



    .export-datetime-title{
      font-size:10px;
      font-weight:900;
      color:var(--muted);
      text-transform:uppercase;
      letter-spacing:.10em;
    }

    .export-wheel-grid{
      display:grid;
      grid-template-columns:1.05fr .88fr 1fr 1.35fr;
      gap:5px;
      align-items:stretch;
    }

    .export-wheel-field{
      display:grid;
      gap:4px;
      min-width:0;
    }

    .export-wheel-field span{
      font-size:8px;
      line-height:1;
      color:var(--muted);
      font-weight:900;
      letter-spacing:.08em;
      text-transform:uppercase;
      text-align:center;
    }

    .export-wheel-field select{
      width:100%;
      min-height:72px;
      max-height:72px;
      border-radius:14px;
      border:1px solid rgba(191,219,254,.16);
      background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
      color:#eaf0ff;
      font-size:13px;
      font-weight:900;
      text-align:center;
      text-align-last:center;
      padding:4px 3px;
      overflow-y:auto;
      scrollbar-width:thin;
      scroll-snap-type:y mandatory;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
    }

    .export-wheel-field select option{
      font-weight:850;
      background:#111827;
      color:#eaf0ff;
      scroll-snap-align:center;
    }

    .export-wheel-field select:focus{
      outline:none;
      border-color:#bfdbfe;
      box-shadow:0 0 0 2px rgba(96,165,250,.18), inset 0 1px 0 rgba(255,255,255,.08);
    }

    .export-manual-input{
      width:100%;
      min-height:58px;
      padding:0 18px;
      border-radius:18px;
      border:1px solid var(--line);
      background:rgba(255,255,255,.045);
      color:#eaf0ff;
      font-size:25px;
      line-height:1;
      font-weight:950;
      letter-spacing:-.045em;
      outline:none;
    }

    .export-manual-input:focus{
      border-color:#bfdbfe;
      box-shadow:0 0 0 2px rgba(96,165,250,.16);
    }

    .export-manual-input::placeholder{
      color:rgba(199,210,254,.62);
      opacity:1;
    }

    .export-manual-input.is-invalid{
      border-color:rgba(248,113,113,.86) !important;
      background:rgba(127,29,29,.14) !important;
      box-shadow:0 0 0 2px rgba(248,113,113,.16) !important;
    }

    .export-format-hint{
      margin-top:6px;
      color:rgba(199,210,254,.76);
      font-size:10px;
      line-height:1.32;
      font-weight:850;
      letter-spacing:.03em;
      text-transform:none;
    }

    .export-format-hint strong{
      color:#eaf0ff;
      font-weight:950;
    }

    @media (max-width:720px){
      .export-wheel-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
      .export-manual-input{ font-size:24px; min-height:54px; padding:0 18px; }
      .export-data-range{ display:grid; gap:2px; }
    }

    .export-picker-tools{
      display:flex;
      gap:6px;
      align-items:center;
      justify-content:flex-end;
    }

    .export-picker-tools button{
      min-height:28px;
      padding:0 9px;
      border-radius:999px;
      font-size:10px;
      letter-spacing:.02em;
    }

    .export-data-range{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      margin:0 0 2px;
      padding:0 2px;
      color:var(--muted);
      font-size:11px;
      font-weight:900;
      letter-spacing:.08em;
      text-transform:uppercase;
      line-height:1.25;
    }

    .export-data-range strong{
      color:#eaf0ff;
      font-weight:950;
      letter-spacing:.04em;
      white-space:nowrap;
    }

    .export-data-range span{
      color:var(--muted);
      font-weight:950;
      letter-spacing:.08em;
      white-space:nowrap;
    }

    .export-picker-grid{
      display:grid;
      gap:8px;
      max-height:220px;
      overflow:auto;
      padding-right:2px;
    }

    .export-range-status{display:grid;grid-template-columns:1fr 1fr;gap:6px;font-size:10px;line-height:1.3;color:var(--muted);}
    .export-range-status span{min-width:0;padding:7px 8px;border-radius:11px;border:1px solid var(--line);background:rgba(255,255,255,.035);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .export-range-status strong{color:#eaf0ff;}
    .export-range-mode{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:2px;}
    .export-range-mode button{min-height:30px;padding:0 10px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;}
    .export-range-mode button.active{background:rgba(96,165,250,.18);border-color:#bfdbfe;color:#eaf0ff;}
    .export-hour-select-row{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
    .export-hour-select-row label{display:grid;gap:4px;font-size:9px;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;}
    .export-hour-select-row select{min-height:34px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.045);color:var(--text);font-size:12px;font-weight:850;padding:0 10px;}

    .export-picker.is-busy{ pointer-events:none; opacity:.62; }


    .download-note{
      margin-top:2px;
      font-size:11px;
      line-height:1.45;
      color:var(--muted);
      text-transform:none;
      letter-spacing:normal;
    }

    .download-summary{
      min-height:56px;
      padding:12px 14px;
      border-radius:16px;
      border:1px solid var(--line);
      background:rgba(255,255,255,.045);
      color:#dbe8ff;
      font-size:12px;
      line-height:1.45;
    }

    .download-actions{
      display:grid;
      grid-template-columns:1fr;
      gap:8px;
    }

    .download-btn{
      min-height:44px;
      font-weight:850;
    }

    .download-status{
      min-height:16px;
      font-size:11px;
      line-height:1.4;
      color:var(--muted);
      word-break:break-word;
    }

    .download-status.error{
      color:#fecaca;
    }

    .download-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:10px;
    }

    .download-btn-spinner{
      width:16px;
      height:16px;
      border-radius:999px;
      border:2px solid rgba(255,255,255,.28);
      border-top-color:#ffffff;
      display:none;
      flex:0 0 auto;
      animation:download-spin .8s linear infinite;
    }

    .download-btn.is-busy .download-btn-spinner{
      display:inline-block;
    }


    @keyframes download-spin{
      from{ transform:rotate(0deg); }
      to{ transform:rotate(360deg); }
    }

    #exportOrderModal{ z-index:7300; }
    .export-order-modal-card{ width:min(460px, calc(100vw - 32px)); }
    .export-order-modal-body{ font-size:16px; line-height:1.5; color:#eaf0ff; }
    .export-order-modal-actions{ display:grid; margin-top:16px; }
    .export-manual-input{ text-align:center; }


    .export-progress-overlay{
      position:fixed;
      inset:0;
      z-index:6200;
      display:none;
      align-items:center;
      justify-content:center;
      padding:20px;
      background:rgba(5,11,22,.46);
      backdrop-filter:blur(6px);
      -webkit-backdrop-filter:blur(6px);
      pointer-events:auto;
    }

    .export-progress-overlay.open{
      display:flex;
    }

    .export-progress-card{
      position:relative;
      width:min(420px, calc(100vw - 32px));
      border-radius:24px;
      border:1px solid rgba(191,219,254,.18);
      background:rgba(11,18,32,.97);
      box-shadow:0 28px 70px rgba(0,0,0,.42);
      padding:22px 20px 18px;
      display:grid;
      justify-items:center;
      gap:14px;
      color:#dbe8ff;
      text-align:center;
    }

    .export-progress-close{
      position:absolute;
      top:10px;
      right:10px;
      width:30px;
      min-width:30px;
      height:30px;
      min-height:30px;
      padding:0;
      border-radius:999px;
      display:grid;
      place-items:center;
      font-size:18px;
      line-height:1;
      font-weight:900;
      color:#eaf0ff;
      background:rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.16);
      box-shadow:none;
    }

    .export-progress-close:hover:not(:disabled){
      transform:none;
      box-shadow:none;
      background:rgba(255,255,255,.12);
    }

    .export-progress-close.is-cancel-action{
      width:auto;
      min-width:74px;
      height:32px;
      min-height:32px;
      padding:0 12px;
      border-radius:999px;
      font-size:12px;
      line-height:1;
      letter-spacing:.04em;
      text-transform:uppercase;
    }

    .export-progress-wheel{
      width:46px;
      height:46px;
      border-radius:999px;
      border:4px solid rgba(255,255,255,.18);
      border-top-color:#bfdbfe;
      animation:download-spin .8s linear infinite;
    }

    .export-progress-title{
      font-size:17px;
      font-weight:900;
      letter-spacing:-.02em;
      color:#ffffff;
    }

    .export-progress-message{
      min-height:20px;
      font-size:12px;
      line-height:1.45;
      color:#c7d2fe;
      word-break:break-word;
    }

    .export-progress-message.error{
      color:#fecaca;
    }

    .export-progress-bar{
      width:100%;
      height:10px;
      overflow:hidden;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.12);
      background:rgba(255,255,255,.08);
    }

    .export-progress-fill{
      height:100%;
      width:0%;
      border-radius:999px;
      background:#60a5fa;
      transition:width .18s ease;
    }

    .export-progress-percent{
      font-size:11px;
      font-weight:850;
      color:var(--muted);
    }

    .export-stage{
      position:fixed;
      left:-20000px;
      top:0;
      width:100vw;
      height:100vh;
      pointer-events:none;
      z-index:-1;
    }

    .export-stage-frame{
      position:relative;
      width:100%;
      height:100%;
      background:#050b16;
      overflow:hidden;
    }

    .export-stage-map{
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      background:#050b16;
    }

    .export-stage-logo-strip{
      position:absolute;
      top:16px;
      left:16px;
      z-index:1260;
      display:flex;
      align-items:center;
      gap:20px;
      max-width:calc(100% - 236px);
      min-height:108px;
      padding:18px 24px;
      border-radius:44px;
      border:1px solid rgba(191,219,254,.24);
      background:rgba(11,18,32,.92);
      box-shadow:0 12px 24px rgba(0,0,0,.24);
      pointer-events:none;
      overflow:hidden;
      backdrop-filter:none;
      -webkit-backdrop-filter:none;
      isolation:isolate;
    }

    .export-stage-logo{
      display:none;
      flex:0 1 auto;
      max-width:300px;
      max-height:76px;
      object-fit:contain;
      filter:none;
    }

    .export-stage-logo.is-visible{
      display:block;
    }

    .export-stage-logo-shorelysafe{
      max-width:340px;
    }

    .export-stage-frame[data-export-aspect="9:16"] .export-stage-logo-strip{
      right:auto;
      max-width:calc(100% - 32px);
    }

    .export-stage-frame[data-export-aspect="9:16"] .export-stage-logo{
      max-width:270px;
    }

    .export-stage-legend{
      position:absolute;
      top:16px;
      right:16px;
      width:182px;
      padding:12px;
      z-index:1200;
      background:#1b2536;
      border:1px solid rgba(191,219,254,.18);
      box-shadow:0 12px 24px rgba(0,0,0,.24);
      border-radius:24px;
      backdrop-filter:none;
      -webkit-backdrop-filter:none;
      overflow:visible;
      isolation:isolate;
    }

    .export-stage-timestamp{
      position:absolute;
      left:50%;
      top:16px;
      transform:translateX(-50%);
      z-index:1250;
      min-width:min(560px, calc(100% - 720px));
      max-width:calc(100% - 720px);
      padding:13px 22px 14px;
      border-radius:22px;
      border:1px solid rgba(191,219,254,.26);
      background:rgba(11,18,32,.94);
      color:#ffffff;
      box-shadow:0 12px 28px rgba(0,0,0,.24);
      font-size:clamp(21px, 1.9vw, 32px);
      line-height:1.08;
      font-weight:900;
      letter-spacing:-.025em;
      text-align:center;
      white-space:pre-line;
      overflow:hidden;
      text-overflow:ellipsis;
      backdrop-filter:none;
      -webkit-backdrop-filter:none;
      pointer-events:none;
    }

    .export-stage-frame[data-export-aspect="9:16"] .export-stage-timestamp{
      top:92px;
      left:16px;
      right:214px;
      transform:none;
      min-width:0;
      max-width:none;
      font-size:clamp(20px, 2.8vw, 30px);
    }

    .export-stage-frame[data-export-aspect="9:16"] .export-stage-legend{
      top:92px;
    }

    .export-stage-legend *,
    .export-stage-timestamp *,
    .export-stage-logo-strip,
    .export-stage-logo-strip *{
      animation:none !important;
      transition:none !important;
      filter:none !important;
      backdrop-filter:none !important;
      -webkit-backdrop-filter:none !important;
      text-shadow:none !important;
    }

    .export-stage-legend::before,
    .export-stage-legend::after{
      display:none !important;
      content:none !important;
    }

    .export-stage-legend .legend-body,
    .export-stage-legend .legend-list,
    .export-stage-legend .legend-row,
    .export-stage-legend .legend-head,
    .export-stage-legend .legend-note{
      background:transparent !important;
      box-shadow:none !important;
    }

    .export-stage .leaflet-control-container{
      display:none !important;
    }
    .export-stage-legend .legend-title{
      font-size:17px !important;
      line-height:1.05 !important;
      font-weight:950 !important;
      color:#ffffff !important;
    }

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

    .export-stage-legend .legend-row{
      grid-template-columns:18px 1fr !important;
      gap:9px !important;
      font-size:14px !important;
      line-height:1.18 !important;
      font-weight:850 !important;
      color:#f8fbff !important;
    }

    .export-stage-legend .legend-swatch{
      width:16px !important;
      height:16px !important;
      min-width:16px !important;
      min-height:16px !important;
      border-radius:7px !important;
      opacity:1 !important;
      filter:none !important;
    }

    .export-stage-legend .legend-swatch.legend-line{
      width:18px !important;
      height:4px !important;
      min-height:4px !important;
      border-radius:999px !important;
    }


    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse) {
      .download-range-grid{
        grid-template-columns:1fr;
      }
    }

    .exporting #leftPanel,
    .exporting #rightRail,
    .exporting #timelineDock,
    .exporting #topBanner,
    .exporting #toast,
    .exporting #downloadModal{
      visibility:hidden !important;
      opacity:0 !important;
      pointer-events:none !important;
    }

    .exporting .leaflet-control-container{
      display:none !important;
    }

    .exporting #legendDock{
      left:auto !important;
      right:16px !important;
      top:16px !important;
      z-index:1500 !important;
    }

    #timelineDock{
      position:fixed;
      left:16px;
      right:16px;
      bottom:16px;
      z-index:1300;
      padding:28px 12px 10px;
      border-radius:18px;
    }

    #timelineBubble{
      position:absolute;
      top:-12px;
      left:50%;
      transform:translateX(-50%);
      background:#d58a00;
      color:#fff;
      padding:6px 12px;
      border-radius:14px;
      font-size:13px;
      font-weight:850;
      line-height:1;
      white-space:nowrap;
      box-shadow:0 12px 24px rgba(0,0,0,.28);
    }

    #timelineBubble::after{
      content:"";
      position:absolute;
      left:50%;
      bottom:-7px;
      transform:translateX(-50%);
      border-left:7px solid transparent;
      border-right:7px solid transparent;
      border-top:7px solid #d58a00;
    }

    .timeline-top{
      display:flex;
      align-items:center;
      justify-content:flex-start;
      gap:10px;
      margin-bottom:6px;
    }

    .timeline-controls{
      display:flex;
      align-items:center;
      gap:7px;
    }

    .playFab{
      width:46px;
      min-width:46px;
      height:46px;
      min-height:46px;
      padding:0;
      border-radius:999px;
      background:#ffffff;
      color:#b91c1c;
      border:0;
      font-size:22px;
      line-height:1;
      box-shadow:0 12px 22px rgba(0,0,0,.28);
    }

    .playFab:hover:not(:disabled){
      transform:translateY(-1px);
    }

    .miniAction{
      min-height:32px;
      padding:0 11px;
      border-radius:999px;
      font-size:10px;
      text-transform:uppercase;
      letter-spacing:.08em;
    }

    .timeline-meta{
      display:none;
    }

    .timeline-days{
      display:flex;
      align-items:stretch;
      border:1px solid var(--line);
      border-radius:12px;
      overflow:hidden;
      background:rgba(255,255,255,.04);
      margin-bottom:6px;
    }

    .timeline-day{
      flex:1 1 0;
      position:relative;
      overflow:hidden;
      background-color:rgba(255,255,255,.035);
      background-repeat:no-repeat;
      background-size:100% 100%;
      border:0;
      border-right:1px solid var(--line);
      border-radius:0;
      min-height:0;
      padding:9px 6px;
      text-align:center;
      font-size:12px;
      font-weight:800;
      color:#f8fbff;
      text-shadow:0 1px 2px rgba(3,8,18,.55);
      box-shadow:none;
      white-space:nowrap;
      transition:filter .16s ease, box-shadow .16s ease;
    }

    .timeline-day:last-child{
      border-right:none;
    }

    .timeline-day.active{
      color:#ffffff;
      filter:brightness(1.06) saturate(1.05);
      box-shadow:inset 0 0 0 2px rgba(255,255,255,.40), inset 0 1px 0 rgba(255,255,255,.10);
      z-index:1;
    }

    .timeline-trackRow{
      display:grid;
      grid-template-columns:auto 1fr auto;
      gap:8px;
      align-items:center;
    }

    .timeline-end,
    .timeline-scale{
      font-size:10px;
      font-weight:800;
      color:var(--muted);
      white-space:nowrap;
    }

    #hourSlider{
      -webkit-appearance:none;
      appearance:none;
      width:100%;
      height:4px;
      margin:0;
      background:rgba(255,255,255,.18);
      border-radius:999px;
      outline:none;
      box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
    }

    #hourSlider::-webkit-slider-thumb{
      -webkit-appearance:none;
      appearance:none;
      width:16px;
      height:16px;
      border-radius:999px;
      background:#2563eb;
      border:2px solid #dbeafe;
      box-shadow:0 5px 12px rgba(0,0,0,.22);
      cursor:pointer;
    }

    #hourSlider::-moz-range-thumb{
      width:16px;
      height:16px;
      border-radius:999px;
      background:#2563eb;
      border:2px solid #dbeafe;
      box-shadow:0 5px 12px rgba(0,0,0,.22);
      cursor:pointer;
    }

    .leaflet-control-zoom{
      border:none !important;
      box-shadow:0 16px 30px rgba(0,0,0,.28);
      overflow:hidden;
      border-radius:16px;
    }

    .leaflet-control-zoom a{
      width:42px !important;
      height:42px !important;
      line-height:42px !important;
      background:rgba(11,18,32,.94) !important;
      color:var(--text) !important;
      border:none !important;
      font-size:22px !important;
      font-weight:900 !important;
      backdrop-filter:blur(16px);
      -webkit-backdrop-filter:blur(16px);
    }

    .leaflet-control-zoom a:hover{
      background:rgba(20,32,58,.98) !important;
      color:#ffffff !important;
    }

    .leaflet-top.leaflet-right .leaflet-control-zoom{
      margin-top:16px;
      margin-right:240px;
    }

    

    /*
      Very rare modeled storms push most flooded land into the deepest raster
      class (#050e33). Lift the dark end for that one view so inundation still
      reads as blue without changing forecast, observed, or flood-stage maps.
    */
    .leaflet-image-layer.return-interval-depth-overlay,
    body.return-interval-mode .depth-legend-gradient{
      filter:contrast(.68) brightness(1.25) saturate(1.25);
    }

    #timeSubText{
      white-space:normal;
      font-size:12px;
      line-height:1.35;
    }

    .title-with-help{
      display:flex;
      align-items:center;
      gap:6px;
      min-width:0;
    }

    .help-btn{
      width:24px;
      min-width:24px;
      height:24px;
      min-height:24px;
      padding:0;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:12px;
      font-weight:900;
      background:rgba(255,255,255,.06);
      color:#ffffff;
      border:1px solid rgba(255,255,255,.16);
      box-shadow:none;
      transform:none !important;
    }

    .help-btn:hover:not(:disabled){
      background:rgba(255,255,255,.12);
      box-shadow:none;
    }

    .datum-modal{
      position:fixed;
      inset:0;
      z-index:6000;
      display:none;
      align-items:center;
      justify-content:center;
      padding:20px;
      background:rgba(5,11,22,.58);
      backdrop-filter:blur(8px);
      -webkit-backdrop-filter:blur(8px);
    }

    .datum-modal.open{
      display:flex;
    }

    .datum-modal-card{
      width:min(520px, calc(100vw - 32px));
      border-radius:24px;
      border:1px solid rgba(191,219,254,.18);
      background:rgba(11,18,32,.97);
      box-shadow:0 28px 70px rgba(0,0,0,.42);
      padding:18px 18px 16px;
      color:#dbe8ff;
    }

    .datum-modal-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-bottom:12px;
    }

    .datum-modal-head h3{
      margin:0;
      font-size:18px;
      font-weight:900;
      letter-spacing:-.02em;
      color:#ffffff;
    }

    .datum-modal-close{
      width:34px;
      min-width:34px;
      height:34px;
      min-height:34px;
      padding:0;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:20px;
      font-weight:900;
      line-height:1;
      background:rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.14);
      color:#ffffff;
      box-shadow:none;
      transform:none !important;
    }

    .datum-modal-close:hover:not(:disabled){
      background:rgba(255,255,255,.12);
      box-shadow:none;
    }

    .datum-modal-body{
      font-size:16px;
      line-height:1.6;
      color:#dbe8ff;
    }

    .datum-modal-body strong{
      color:#ffffff;
    }

    .compact-card select{
      width:100%;
      padding:0 12px;
    }

    .datum-card{
      padding-bottom:10px;
    }

    .datum-card .section-title{
      margin-bottom:6px;
    }

    .datum-card .segmented-control{
      padding:3px;
      background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
      border-color:rgba(191,219,254,.12);
    }

    .datum-card .segmented-control button{
      min-height:34px;
      padding:7px 8px;
      font-size:12px;
      color:#d6e6ff;
    }

    .datum-card .segmented-control button.active{
      background:linear-gradient(180deg, rgba(96,165,250,.2), rgba(96,165,250,.12));
      border-color:rgba(191,219,254,.34);
      box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.12);
    }

    .basemap-gray-layer{
      filter:grayscale(100%) brightness(.9) contrast(1.03);
      -webkit-filter:grayscale(100%) brightness(.9) contrast(1.03);
    }

    .basemap-color-layer{
      filter:none;
      -webkit-filter:none;
    }

    .map-mask-fallback{
      outline:1px solid rgba(255,255,255,.08);
    }



    #toast{
      position:fixed;
      left:50%;
      bottom:156px;
      transform:translateX(-50%);
      z-index:7000;
      width:max-content;
      max-width:min(520px, calc(100vw - 32px));
      padding:12px 16px;
      border-radius:16px;
      border:1px solid rgba(251,191,36,.52);
      background:rgba(255,251,235,.98);
      color:#92400e;
      box-shadow:0 20px 48px rgba(0,0,0,.30);
      display:none;
      line-height:1.35;
      font-size:13px;
      font-weight:850;
      text-align:center;
      backdrop-filter:blur(12px);
      -webkit-backdrop-filter:blur(12px);
      pointer-events:auto;
      align-items:center;
      justify-content:center;
      gap:10px;
    }

    #toastMessage{
      min-width:0;
    }

    #toastCloseBtn{
      width:26px;
      min-width:26px;
      height:26px;
      min-height:26px;
      padding:0;
      border-radius:999px;
      display:grid;
      place-items:center;
      font-size:16px;
      line-height:1;
      font-weight:900;
      color:#92400e;
      background:rgba(146,64,14,.08);
      border:1px solid rgba(146,64,14,.22);
      box-shadow:none;
      flex:0 0 auto;
    }

    #toastCloseBtn:hover:not(:disabled){
      transform:none;
      box-shadow:none;
      background:rgba(146,64,14,.14);
    }

    #toast.show{
      display:flex;
    }

    .download-modal.open ~ #toast,
    body:has(#downloadModal.open) #toast{
      bottom:28px;
    }

    #leftPanel::-webkit-scrollbar,
    #rightRail::-webkit-scrollbar{
      width:10px;
    }

    #leftPanel::-webkit-scrollbar-thumb,
    #rightRail::-webkit-scrollbar-thumb{
      background:rgba(148,163,184,.45);
      border-radius:999px;
      border:2px solid transparent;
      background-clip:padding-box;
    }

    @media (min-width: 1100px) and (max-height: 1080px){
      body.observed-mode #leftPanel{
        width:388px;
        bottom:118px;
        display:grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        align-content:start;
        gap:8px;
        padding-right:0;
      }

      body.observed-mode #leftPanel .brand,
      body.observed-mode #leftPanel .datum-card,
      body.observed-mode #leftPanel .snapshot-card,
      body.observed-mode #leftPanel .calendar-card.active,
      body.observed-mode #leftPanel .opacity-card,
      body.observed-mode #leftPanel .mobile-top-tides-card{
        grid-column:1 / -1;
      }

      body.observed-mode .brand{
        min-height:74px;
        padding:10px 12px;
      }

      body.observed-mode .panel-card{
        padding:9px 11px;
        border-radius:18px;
      }

      body.observed-mode .section-title{
        margin-bottom:7px;
      }

      body.observed-mode .section-title h2{
        font-size:13px;
      }

      body.observed-mode .compact-card{
        min-height:90px;
        display:flex;
        flex-direction:column;
        justify-content:space-between;
        align-self:stretch;
      }

      body.observed-mode .compact-card .button-grid-2,
      body.observed-mode .datum-card .segmented-control,
      body.observed-mode .opacity-card .control-row{
        flex:1 1 auto;
      }

      body.observed-mode .opacity-card .control-row{
        display:grid;
        align-content:center;
      }

      body.observed-mode .pill{
        min-height:22px;
        padding:0 7px;
        font-size:10px;
      }

      body.observed-mode .button-grid-2{
        gap:6px;
      }

      body.observed-mode button,
      body.observed-mode select{
        min-height:36px;
        font-size:12px;
      }

      body.observed-mode .datum-card .segmented-control button{
        min-height:32px;
        font-size:11.5px;
      }

      body.observed-mode .snapshot-card .stat-grid{
        grid-template-columns:1fr;
        gap:6px;
      }

      body.observed-mode .snapshot-card .stat-box{
        width:100%;
        min-height:78px;
        padding:11px 12px;
        gap:4px;
        border-radius:15px;
      }

      body.observed-mode .stat-label{
        font-size:10px;
      }

      body.observed-mode #timeText{
        font-size:16px;
      }

      body.observed-mode #stageText{
        font-size:20px;
      }

      body.observed-mode .calendar-card{
        gap:7px;
      }

      body.observed-mode .calendar-toolbar{
        grid-template-columns:36px 1fr 36px;
        gap:5px;
      }

      body.observed-mode .calendar-toolbar > button,
      body.observed-mode .calendar-title-btn{
        min-height:36px;
      }

      body.observed-mode .calendar-title-btn{
        font-size:13px;
      }

      body.observed-mode .calendar-head div{
        font-size:11px;
      }

      body.observed-mode .calendar-grid{
        gap:4px;
      }

      body.observed-mode .calendar-day{
        min-height:33px;
        font-size:12px;
        border-radius:10px;
      }

      body.observed-mode .day-nav{
        gap:6px;
      }

      body.observed-mode .day-nav button{
        min-height:36px;
        font-size:16px;
      }

      body.observed-mode .day-nav-center{
        font-size:13px;
        min-height:36px;
        max-width:none;
      }

      body.observed-mode .calendar-key{
        gap:6px;
        margin-top:6px;
      }

      body.observed-mode .calendar-key-item{
        min-height:28px;
        font-size:10.5px;
        padding:0 8px;
      }

      body.observed-mode .opacity-card{
        padding-top:8px;
        padding-bottom:8px;
      }

      body.observed-mode .opacity-card .muted{
        display:none;
      }

      body.observed-mode #legendDock{
        left:420px;
      }
    }

    @media (max-height: 980px){
      #rightRail{
        bottom:144px;
      }

      .rail-card{
        padding:11px;
      }

      .top-tide-item{
        padding:10px 9px;
      }
    }

    @media (max-height: 860px){
      #rightRail{
        bottom:152px;
      }

      .layer-item{
        padding:9px 10px;
      }

      .top-tide-item{
        padding:9px 8px;
        border-radius:14px;
      }

      .top-tide-main{
        font-size:15px;
      }

      .top-tide-sub{
        font-size:12px;
      }
    }

    @media (max-width: 1320px){
      #leftPanel{
        width:300px;
      }
      #legendDock{
        left:332px;
        width:180px;
      }
      #rightRail{
        width:204px;
      }
    }

    @media (max-width: 1180px){
      #leftPanel{
        width:284px;
      }

      #legendDock{
        top:16px;
        left:312px;
        width:170px;
      }

      #rightRail{
        top:16px;
        right:16px;
        width:204px;
      }

      #timelineDock{
        left:16px;
        right:16px;
        bottom:16px;
      }

      .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-right:222px;
      }
    }

    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse) {
      #topBanner{
        min-width:min(420px, calc(100vw - 16px));
        max-width:min(560px, calc(100vw - 16px));
        top:8px;
      }

      #leftPanel{
        width:min(304px, calc(58vw - 18px));
        bottom:138px;
      }

      #rightRail{
        display:grid;
        width:min(224px, calc(42vw - 18px));
        bottom:138px;
        top:16px;
        right:16px;
      }

      #legendDock{
        left:16px;
        top:auto;
        bottom:116px;
        width:min(192px, calc(42vw - 18px));
      }

      .stat-grid{
        grid-template-columns:1fr;
      }

      .stat-box:last-child{
        grid-column:auto;
      }

      .timeline-top{
        flex-wrap:wrap;
      }

      .timeline-trackRow{
        grid-template-columns:1fr;
      }

      .timeline-days{
        display:flex;
      }
    }

    @media (max-width:720px){
      #topBanner{
        min-width:calc(100vw - 14px);
        max-width:calc(100vw - 14px);
        padding:8px 10px;
      }

      #topBanner .banner-meta{
        display:none;
      }

      #leftPanel{
        left:8px;
        right:8px;
        top:8px;
        bottom:114px;
        width:auto;
        max-width:none;
        gap:8px;
        display:grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        align-content:start;
        padding-right:0;
      }

      #leftPanel .brand,
      #leftPanel .snapshot-card,
      #leftPanel .calendar-card.active,
      #leftPanel .mobile-top-tides-card{
        grid-column:1 / -1;
      }

      #rightRail,
      #legendDock{
        display:none;
      }

      .mobile-top-tides-card{
        display:grid;
      }

      .panel-card,
      .rail-card{
        padding:10px;
        border-radius:16px;
      }

      .brand{
        min-height:92px;
        padding:12px 14px;
      }

      h1{
        font-size:clamp(22px, 7vw, 30px);
      }

      .button-grid-2{
        grid-template-columns:1fr 1fr;
      }

      button,
      select{
        min-height:40px;
        font-size:13px;
      }

      .calendar-popover-grid{
        grid-template-columns:1fr 1fr 68px;
        gap:6px;
      }

      .calendar-head div{
        font-size:11px;
      }

      .calendar-day{
        min-height:40px;
        font-size:14px;
      }

      .day-nav-center{
        max-width:none;
        font-size:12px;
      }

      .top-tide-main{
        font-size:18px;
      }

      .top-tide-sub{
        font-size:14px;
      }

      #timelineDock{
        left:8px;
        right:8px;
        bottom:8px;
        padding:24px 10px 8px;
      }

      .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-right:10px;
      }

      #timelineBubble{
        font-size:11px;
        padding:6px 10px;
      }

      body.observed-mode #leftPanel{
        gap:6px;
        bottom:108px;
      }

      body.observed-mode .brand{
        min-height:78px;
        padding:10px 12px;
      }

      body.observed-mode .snapshot-card .stat-grid{
        grid-template-columns:1fr;
      }

      body.observed-mode .snapshot-card .stat-box{
        width:100%;
        min-height:76px;
        padding:11px 12px;
      }

      body.observed-mode #timeText{
        font-size:14px;
      }

      body.observed-mode #stageText{
        font-size:22px;
      }

      body.observed-mode .calendar-day{
        min-height:34px;
        font-size:13px;
      }

      body.observed-mode .mobile-top-tides-card{
        display:none;
      }

      .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-top:10px;
        margin-right:10px;
      }
    }

    @media (max-width:420px){
      h1{
        font-size:clamp(20px, 9vw, 30px);
      }

      #leftPanel{
        grid-template-columns:1fr;
      }

      body.observed-mode .snapshot-card .stat-grid{
        grid-template-columns:1fr;
      }

      .button-grid-2{
        grid-template-columns:1fr;
      }

      .stat-label{
        font-size:11px;
      }

      #timeText{
        font-size:16px;
      }

      #stageText{
        font-size:24px;
      }

      .calendar-day{
        min-height:36px;
        font-size:13px;
      }
    }



    #mobileControlsToggle,
    #mobileDrawerBackdrop{
      display:none;
    }

    #mobileRailMount{
      display:contents;
    }

    @media (max-width:760px){
      html,
      body,
      #app,
      #mapWrap,
      #map{
        width:100vw;
        height:100dvh;
        min-height:100dvh;
        overflow:hidden;
      }

      body{
        touch-action:manipulation;
        -webkit-tap-highlight-color:transparent;
      }

      #map{
        min-height:100dvh;
      }

      #topBanner{
        top:calc(8px + env(safe-area-inset-top));
        min-width:calc(100vw - 20px);
        max-width:calc(100vw - 20px);
        padding:8px 10px;
        border-radius:18px;
      }

      #topBanner .banner-meta{
        display:none;
      }

      #topBanner .banner-title{
        font-size:12px;
      }

      #mobileDrawerBackdrop{
        position:fixed;
        inset:0;
        z-index:4090;
        display:block;
        opacity:0;
        pointer-events:none;
        background:rgba(5,11,22,.28);
        backdrop-filter:blur(2px);
        -webkit-backdrop-filter:blur(2px);
        transition:opacity .18s ease;
      }

      body.mobile-controls-open #mobileDrawerBackdrop{
        opacity:1;
        pointer-events:auto;
      }

      #mobileControlsToggle{
        position:fixed;
        right:calc(12px + env(safe-area-inset-right));
        bottom:calc(92px + env(safe-area-inset-bottom));
        z-index:4300;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        min-height:46px;
        min-width:122px;
        padding:0 16px;
        border-radius:999px;
        border:1px solid rgba(191,219,254,.36);
        background:rgba(11,18,32,.94);
        color:#ffffff;
        box-shadow:0 18px 38px rgba(0,0,0,.36);
        font-size:13px;
        font-weight:900;
        letter-spacing:-.01em;
        backdrop-filter:blur(16px);
        -webkit-backdrop-filter:blur(16px);
      }

      #mobileControlsToggle::before{
        content:"☰";
        font-size:16px;
        line-height:1;
      }

      body.mobile-controls-open #mobileControlsToggle::before{
        content:"×";
        font-size:20px;
      }

      #leftPanel{
        position:fixed;
        left:calc(8px + env(safe-area-inset-left));
        right:calc(8px + env(safe-area-inset-right));
        top:auto;
        bottom:calc(76px + env(safe-area-inset-bottom));
        width:auto !important;
        max-width:none;
        max-height:min(78dvh, calc(100dvh - 112px - env(safe-area-inset-top)));
        display:flex !important;
        flex-direction:column;
        gap:8px;
        overflow-y:auto;
        overflow-x:hidden;
        padding:42px 10px 10px;
        border:1px solid rgba(191,219,254,.18);
        border-radius:24px;
        background:rgba(11,18,32,.96);
        box-shadow:0 24px 70px rgba(0,0,0,.48);
        backdrop-filter:blur(18px);
        -webkit-backdrop-filter:blur(18px);
        z-index:4200;
        pointer-events:none;
        opacity:0;
        transform:translateY(calc(100% + 110px));
        transition:transform .22s ease, opacity .18s ease;
        scrollbar-gutter:auto;
        -webkit-overflow-scrolling:touch;
      }

      body.mobile-controls-open #leftPanel{
        opacity:1;
        transform:translateY(0);
        pointer-events:auto;
      }

      #leftPanel::before{
        content:"Controls";
        position:sticky;
        top:-42px;
        z-index:3;
        display:flex;
        align-items:center;
        justify-content:center;
        min-height:34px;
        margin:-42px -10px 8px;
        border-radius:24px 24px 0 0;
        border-bottom:1px solid rgba(255,255,255,.08);
        background:linear-gradient(180deg, rgba(11,18,32,.98), rgba(11,18,32,.92));
        color:#ffffff;
        font-size:13px;
        font-weight:900;
        letter-spacing:.02em;
        text-transform:uppercase;
      }

      #leftPanel .panel-card,
      #leftPanel .rail-card,
      #leftPanel #legendDock{
        width:100%;
        min-height:0;
        flex:0 0 auto;
        padding:10px 11px;
        border-radius:18px;
        background:rgba(255,255,255,.045);
        border:1px solid rgba(255,255,255,.085);
        box-shadow:none;
      }

      #leftPanel .brand{
        min-height:52px;
        padding:8px 10px;
      }

      #leftPanel .brand br{
        display:none;
      }

      #leftPanel h1{
        font-size:clamp(17px, 5.4vw, 22px);
        line-height:1;
      }

      #leftPanel .section-title,
      #leftPanel .rail-head{
        margin-bottom:7px;
      }

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

      #leftPanel .button-grid-2,
      #leftPanel .segmented-control{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:6px;
      }

      #leftPanel button,
      #leftPanel select,
      #leftPanel input[type="datetime-local"]{
        min-height:42px;
        font-size:13px;
        border-radius:13px;
      }

      #leftPanel .segmented-control button{
        min-height:38px;
        padding:7px 8px;
      }

      #leftPanel .snapshot-card .stat-grid{
        grid-template-columns:1fr;
        gap:6px;
      }

      #leftPanel .snapshot-card .stat-box{
        min-height:64px;
        padding:10px 12px;
        border-radius:14px;
      }

      #leftPanel #timeText{
        font-size:14px;
        white-space:normal;
      }

      #leftPanel #stageText{
        font-size:20px;
      }

      #leftPanel .calendar-card{
        gap:7px;
      }

      #leftPanel .calendar-toolbar{
        grid-template-columns:36px 1fr 36px;
        gap:5px;
      }

      #leftPanel .calendar-day{
        min-height:34px;
        border-radius:11px;
        font-size:13px;
      }

      #leftPanel .calendar-head div{
        font-size:10px;
      }

      #leftPanel .calendar-key{
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:5px;
      }

      #leftPanel .calendar-key-item{
        min-height:28px;
        padding:0 6px;
        font-size:10px;
      }

      #leftPanel .day-nav{
        grid-template-columns:40px 1fr 40px;
        gap:6px;
      }

      #leftPanel .day-nav button,
      #leftPanel .day-nav-center{
        min-height:38px;
      }

      #leftPanel .top-tide-list,
      #leftPanel .top-tide-list-mobile,
      #leftPanel .layer-list{
        gap:6px;
      }

      #leftPanel .top-tide-item,
      #leftPanel .layer-item{
        padding:9px 10px;
        border-radius:14px;
      }

      #leftPanel .download-launch-card{
        display:grid;
        gap:8px;
      }

      #leftPanel .download-launch-meta{
        display:none;
      }

      #leftPanel #legendDock{
        position:static !important;
        left:auto !important;
        right:auto !important;
        top:auto !important;
        bottom:auto !important;
        display:block !important;
        margin:0;
        backdrop-filter:none;
        -webkit-backdrop-filter:none;
      }

      #leftPanel #legendDock .legend-list{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:6px 8px;
      }

      #leftPanel #legendDock .legend-row{
        font-size:10px;
        gap:6px;
      }

      #rightRail{
        display:none !important;
      }

      #timelineDock{
        left:calc(8px + env(safe-area-inset-left));
        right:calc(8px + env(safe-area-inset-right));
        bottom:calc(8px + env(safe-area-inset-bottom));
        padding:22px 9px 8px;
        border-radius:16px;
      }

      .timeline-day{
        min-height:31px;
        padding:7px 3px;
        font-size:10px;
      }

      .timeline-controls{
        gap:5px;
      }

      .playFab{
        width:42px;
        min-width:42px;
        height:42px;
        min-height:42px;
      }

      .miniAction{
        min-height:30px;
        padding:0 8px;
        font-size:9px;
      }

      .timeline-trackRow{
        gap:5px;
      }

      .timeline-end,
      .timeline-scale{
        font-size:9px;
      }

      #timelineBubble{
        max-width:calc(100vw - 24px);
        overflow:hidden;
        text-overflow:ellipsis;
        font-size:10px;
        padding:5px 9px;
      }

      .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-top:calc(10px + env(safe-area-inset-top));
        margin-right:10px;
      }

      .leaflet-control-zoom a{
        width:38px !important;
        height:38px !important;
        line-height:38px !important;
      }

      .download-modal{
        align-items:flex-end;
        padding:8px calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
      }

      .download-modal-card,
      .datum-modal-card{
        width:100%;
        max-height:min(84dvh, calc(100dvh - 24px - env(safe-area-inset-top)));
        border-radius:24px;
        padding:15px;
      }

      .download-range-grid{
        grid-template-columns:1fr;
      }

      .export-progress-card{
        width:min(360px, calc(100vw - 32px));
      }
    }

    @media (max-width: 390px){
      #leftPanel{
        left:calc(6px + env(safe-area-inset-left));
        right:calc(6px + env(safe-area-inset-right));
        max-height:min(80dvh, calc(100dvh - 100px - env(safe-area-inset-top)));
        padding-left:8px;
        padding-right:8px;
      }

      #leftPanel .button-grid-2,
      #leftPanel .segmented-control,
      #leftPanel #legendDock .legend-list{
        grid-template-columns:1fr;
      }

      #leftPanel .calendar-day{
        min-height:30px;
        font-size:12px;
      }

      #leftPanel .calendar-key{
        grid-template-columns:1fr;
      }

      #mobileControlsToggle{
        right:calc(10px + env(safe-area-inset-right));
        min-width:108px;
        min-height:44px;
        font-size:12px;
      }
    }

    @media (min-width: 761px){
      body.mobile-controls-open #mobileDrawerBackdrop{
        display:none;
      }
    }



    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      html, body, #app, #mapWrap, #map{
        width:100vw;
        height:100dvh;
        min-height:100dvh;
        overflow:hidden;
      }

      body{
        touch-action:manipulation;
        -webkit-tap-highlight-color:transparent;
      }

      #mobileDrawerBackdrop{
        position:fixed;
        inset:0;
        z-index:4090;
        display:block;
        opacity:0;
        pointer-events:none !important;
        background:rgba(5,11,22,.18);
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        transition:opacity .16s ease;
      }

      body.mobile-controls-open #mobileDrawerBackdrop{
        opacity:1;
        pointer-events:none !important;
      }

      #mobileControlsToggle{
        position:fixed;
        right:calc(12px + env(safe-area-inset-right));
        bottom:calc(92px + env(safe-area-inset-bottom));
        z-index:4700;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        min-height:48px;
        min-width:124px;
        padding:0 16px;
        border-radius:999px;
        border:1px solid rgba(191,219,254,.42);
        background:rgba(11,18,32,.96);
        color:#ffffff;
        box-shadow:0 18px 38px rgba(0,0,0,.38);
        font-size:13px;
        font-weight:900;
        letter-spacing:-.01em;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
      }

      #mobileControlsToggle::before{
        content:"☰";
        font-size:16px;
        line-height:1;
      }

      body.mobile-controls-open #mobileControlsToggle::before{
        content:"×";
        font-size:20px;
      }

      #leftPanel{
        position:fixed;
        left:calc(8px + env(safe-area-inset-left));
        right:calc(8px + env(safe-area-inset-right));
        top:auto;
        bottom:calc(76px + env(safe-area-inset-bottom));
        width:auto !important;
        max-width:none !important;
        max-height:min(78dvh, calc(100dvh - 112px - env(safe-area-inset-top)));
        display:flex !important;
        flex-direction:column;
        gap:8px;
        overflow-y:auto;
        overflow-x:hidden;
        padding:42px 10px 12px;
        border:1px solid rgba(191,219,254,.20);
        border-radius:24px;
        background:rgba(11,18,32,.98);
        box-shadow:0 24px 70px rgba(0,0,0,.50);
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        z-index:4550;
        pointer-events:auto !important;
        opacity:0;
        visibility:hidden;
        transform:translateY(calc(100% + 110px));
        transition:transform .20s ease, opacity .16s ease, visibility .16s ease;
        scrollbar-gutter:auto;
        -webkit-overflow-scrolling:touch;
      }

      body.mobile-controls-open #leftPanel{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
        pointer-events:auto !important;
      }

      #leftPanel::before{
        content:"Controls";
        position:sticky;
        top:-42px;
        z-index:5;
        display:flex;
        align-items:center;
        justify-content:center;
        min-height:34px;
        margin:-42px -10px 8px;
        border-radius:24px 24px 0 0;
        border-bottom:1px solid rgba(255,255,255,.08);
        background:rgba(11,18,32,.99);
        color:#ffffff;
        font-size:13px;
        font-weight:900;
        letter-spacing:.02em;
        text-transform:uppercase;
        pointer-events:none;
      }

      #leftPanel .panel-card,
      #leftPanel .rail-card,
      #leftPanel #legendDock{
        width:100%;
        min-height:0;
        flex:0 0 auto;
        padding:10px 11px;
        border-radius:18px;
        background:rgba(255,255,255,.045);
        border:1px solid rgba(255,255,255,.085);
        box-shadow:none;
      }

      #leftPanel button,
      #leftPanel select,
      #leftPanel input[type="datetime-local"]{
        min-height:44px;
        font-size:13px;
        border-radius:13px;
        touch-action:manipulation;
      }

      #leftPanel .brand{
        min-height:52px;
        padding:8px 10px;
      }

      #leftPanel .brand br{ display:none; }

      #leftPanel h1{
        font-size:clamp(17px, 5.4vw, 22px);
        line-height:1;
      }

      #leftPanel #legendDock{
        position:static !important;
        left:auto !important;
        right:auto !important;
        top:auto !important;
        bottom:auto !important;
        display:block !important;
        margin:0;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
      }

      #leftPanel #legendDock .legend-list{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:6px 8px;
      }

      #rightRail{ display:none !important; }

      #timelineDock{
        left:calc(8px + env(safe-area-inset-left));
        right:calc(8px + env(safe-area-inset-right));
        bottom:calc(8px + env(safe-area-inset-bottom));
        padding:22px 9px 8px;
        border-radius:16px;
        z-index:1300;
      }

      .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-top:calc(10px + env(safe-area-inset-top));
        margin-right:10px;
      }


      .download-modal{
        z-index:7200;
        align-items:flex-end;
        padding:8px calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
      }

      .datum-modal{ z-index:7100; }

      .download-modal-card,
      .datum-modal-card{
        width:100%;
        max-height:min(84dvh, calc(100dvh - 24px - env(safe-area-inset-top)));
        border-radius:24px;
        padding:15px;
      }
    }

    @media (max-width: 900px) and (orientation: landscape), (max-width:1366px) and (any-pointer:coarse) and (orientation: landscape), (max-height: 560px) and (pointer:coarse) {
      #mobileControlsToggle{
        top:calc(10px + env(safe-area-inset-top));
        bottom:auto;
        right:calc(10px + env(safe-area-inset-right));
        min-width:112px;
        min-height:42px;
      }

      #leftPanel{
        top:calc(8px + env(safe-area-inset-top));
        bottom:calc(8px + env(safe-area-inset-bottom));
        left:calc(8px + env(safe-area-inset-left));
        right:auto;
        width:min(430px, 46vw) !important;
        max-height:none;
        border-radius:22px;
        transform:translateX(calc(-100% - 28px));
        padding:38px 9px 10px;
      }

      body.mobile-controls-open #leftPanel{
        transform:translateX(0);
      }

      #leftPanel::before{
        top:-38px;
        min-height:30px;
        margin:-38px -9px 7px;
        border-radius:22px 22px 0 0;
      }

      #leftPanel .brand{
        min-height:42px;
        padding:6px 8px;
      }

      #leftPanel h1{
        font-size:16px;
      }

      #leftPanel .panel-card,
      #leftPanel .rail-card,
      #leftPanel #legendDock{
        padding:8px 9px;
        border-radius:15px;
      }

      #leftPanel button,
      #leftPanel select,
      #leftPanel input[type="datetime-local"]{
        min-height:36px;
        font-size:12px;
      }

      #leftPanel .button-grid-2,
      #leftPanel .segmented-control{
        gap:5px;
      }

      #leftPanel .snapshot-card .stat-box{
        min-height:54px;
        padding:8px 10px;
      }

      #leftPanel #timeText{ font-size:12px; }
      #leftPanel #stageText{ font-size:17px; }

      #leftPanel .calendar-day{
        min-height:26px;
        font-size:11px;
        border-radius:9px;
      }

      #leftPanel .calendar-head div{ font-size:9px; }

      #leftPanel .calendar-key,
      #leftPanel #legendDock .legend-list{
        grid-template-columns:repeat(3, minmax(0, 1fr));
      }

      #timelineDock{
        left:calc(8px + env(safe-area-inset-left));
        right:calc(8px + env(safe-area-inset-right));
        bottom:calc(6px + env(safe-area-inset-bottom));
        padding:18px 8px 7px;
      }

      .timeline-day{
        min-height:24px;
        padding:5px 3px;
        font-size:9px;
      }

      .timeline-top{ margin-bottom:4px; }
      .playFab{ width:36px; min-width:36px; height:36px; min-height:36px; }
      .miniAction{ min-height:28px; padding:0 7px; font-size:8.5px; }
      #timelineBubble{ font-size:9px; padding:4px 8px; }

      .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-top:calc(58px + env(safe-area-inset-top));
        margin-right:10px;
      }
    }



    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock{
        display:block !important;
        position:fixed !important;
        top:calc(8px + env(safe-area-inset-top)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:auto !important;
        bottom:auto !important;
        width:min(218px, calc(100vw - 78px)) !important;
        max-height:132px;
        overflow:hidden;
        padding:8px 9px !important;
        border-radius:16px !important;
        z-index:3600 !important;
        background:rgba(11,18,32,.96) !important;
        border:1px solid rgba(191,219,254,.18) !important;
        box-shadow:0 14px 28px rgba(0,0,0,.28) !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        pointer-events:auto;
      }

      body.mobile-optimized #legendDock .legend-title{
        margin:0 0 5px;
        font-size:11px;
        line-height:1.05;
      }

      body.mobile-optimized #legendDock .legend-list{
        display:grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:4px 7px;
      }

      body.mobile-optimized #legendDock .legend-row{
        grid-template-columns:10px minmax(0, 1fr);
        gap:5px;
        font-size:9px;
        line-height:1.05;
        min-width:0;
      }

      body.mobile-optimized #legendDock .legend-swatch{
        width:9px;
        height:9px;
        border-radius:3px;
      }

      body.mobile-optimized #legendDock .legend-swatch.legend-line{
        width:10px;
        border-top-width:2px;
      }

      body.mobile-optimized #legendDock .legend-row.legend-row-boundary{
        margin-top:0;
        padding-top:0;
        border-top:0;
      }

      #mobileControlsToggle{
        top:calc(148px + env(safe-area-inset-top)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:auto !important;
        bottom:auto !important;
        min-width:min(218px, calc(100vw - 78px));
        min-height:40px;
        padding:0 14px;
        border-radius:14px;
        justify-content:center;
        z-index:4700;
      }

      #leftPanel{
        top:calc(194px + env(safe-area-inset-top)) !important;
        bottom:calc(62px + env(safe-area-inset-bottom)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:calc(8px + env(safe-area-inset-right)) !important;
        width:auto !important;
        max-height:none !important;
        padding:36px 9px 10px !important;
        border-radius:18px !important;
        transform:translateY(-14px) scale(.985) !important;
      }

      body.mobile-controls-open #leftPanel{
        transform:translateY(0) scale(1) !important;
      }

      #leftPanel::before{
        top:-36px !important;
        min-height:30px !important;
        margin:-36px -9px 7px !important;
        border-radius:18px 18px 0 0 !important;
      }

      #leftPanel #legendDock{
        position:fixed !important;
      }

      #timelineDock{
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:calc(8px + env(safe-area-inset-right)) !important;
        bottom:calc(6px + env(safe-area-inset-bottom)) !important;
        padding:15px 8px 5px !important;
        border-radius:14px !important;
      }

      #timelineBubble{
        top:-10px;
        padding:4px 9px;
        border-radius:999px;
        font-size:10px;
      }

      #timelineBubble::after{
        bottom:-5px;
        border-left-width:5px;
        border-right-width:5px;
        border-top-width:5px;
      }

      .timeline-top{
        margin-bottom:3px;
        gap:6px;
      }

      .timeline-days{
        margin-bottom:3px;
        border-radius:10px;
      }

      .timeline-day{
        min-height:22px;
        padding:5px 3px;
        font-size:9px;
      }

      .timeline-trackRow{
        gap:5px;
      }

      #hourSlider{
        height:3px;
      }

      #hourSlider::-webkit-slider-thumb{
        width:14px;
        height:14px;
      }

      #hourSlider::-moz-range-thumb{
        width:14px;
        height:14px;
      }

      .playFab{
        width:38px;
        min-width:38px;
        height:38px;
        min-height:38px;
        font-size:18px;
      }

      .miniAction{
        min-height:28px;
        padding:0 9px;
        font-size:9px;
      }

      .timeline-end,
      .timeline-scale{
        font-size:9px;
      }
    }

    @media (max-width:430px) and (orientation:portrait){
      body.mobile-optimized #legendDock{
        width:min(204px, calc(100vw - 72px)) !important;
        max-height:126px;
      }

      #mobileControlsToggle{
        top:calc(142px + env(safe-area-inset-top)) !important;
        min-width:min(204px, calc(100vw - 72px));
      }

      #leftPanel{
        top:calc(188px + env(safe-area-inset-top)) !important;
      }
    }

    @media (max-width: 900px) and (orientation: landscape), (max-width:1366px) and (any-pointer:coarse) and (orientation: landscape), (max-height: 560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock{
        top:calc(6px + env(safe-area-inset-top)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        width:min(210px, 32vw) !important;
        max-height:100px;
        padding:7px 8px !important;
        border-radius:14px !important;
      }

      body.mobile-optimized #legendDock .legend-title{
        font-size:10px;
        margin-bottom:4px;
      }

      body.mobile-optimized #legendDock .legend-list{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:3px 6px;
      }

      body.mobile-optimized #legendDock .legend-row{
        font-size:8px;
        gap:4px;
      }

      #mobileControlsToggle{
        top:calc(112px + env(safe-area-inset-top)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:auto !important;
        min-width:min(210px, 32vw);
        min-height:34px;
        border-radius:12px;
        font-size:12px;
      }

      #leftPanel{
        top:calc(152px + env(safe-area-inset-top)) !important;
        bottom:calc(50px + env(safe-area-inset-bottom)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:auto !important;
        width:min(430px, 52vw) !important;
        transform:translateX(calc(-100% - 16px)) !important;
      }


      #timelineDock{
        padding:12px 7px 4px !important;
        bottom:calc(5px + env(safe-area-inset-bottom)) !important;
      }

      #timelineBubble{
        top:-9px;
        font-size:9px;
        padding:3px 8px;
      }

      .timeline-day{
        min-height:18px;
        padding:3px 2px;
        font-size:8px;
      }

      .playFab{
        width:34px;
        min-width:34px;
        height:34px;
        min-height:34px;
        font-size:16px;
      }
    }


    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock{
        top:calc(8px + env(safe-area-inset-top)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        width:min(188px, calc(100vw - 88px)) !important;
        max-height:88px !important;
        padding:7px 8px !important;
        border-radius:15px !important;
        overflow:hidden !important;
        z-index:4200 !important;
        background:rgba(11,18,32,.94) !important;
        box-shadow:0 12px 24px rgba(0,0,0,.26) !important;
        touch-action:manipulation;
      }

      body.mobile-optimized #legendDock::after{
        content:"Tap for full legend";
        position:absolute;
        right:8px;
        top:8px;
        font-size:8px;
        line-height:1;
        font-weight:900;
        letter-spacing:.04em;
        color:#bfdbfe;
        text-transform:uppercase;
        opacity:.86;
        pointer-events:none;
      }

      body.mobile-optimized.mobile-legend-open #legendDock{
        width:min(280px, calc(100vw - 68px)) !important;
        max-height:min(58dvh, 320px) !important;
        overflow-y:auto !important;
        -webkit-overflow-scrolling:touch;
      }

      body.mobile-optimized.mobile-legend-open #legendDock::after{
        content:"Tap to collapse";
      }

      body.mobile-optimized #legendDock .legend-title{
        margin:0 88px 5px 0 !important;
        font-size:12px !important;
        line-height:1.05 !important;
        white-space:nowrap;
      }

      body.mobile-optimized #legendDock .legend-list{
        display:grid !important;
        grid-template-columns:1fr 1fr !important;
        gap:3px 8px !important;
      }

      body.mobile-optimized #legendDock .legend-row{
        grid-template-columns:9px minmax(0, 1fr) !important;
        gap:5px !important;
        font-size:8.5px !important;
        line-height:1.05 !important;
        font-weight:850 !important;
        min-width:0;
      }

      body.mobile-optimized #legendDock .legend-row:nth-child(n+9){
        display:none !important;
      }


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

      body.mobile-optimized #legendDock .legend-swatch.legend-line{
        width:9px !important;
        border-top-width:2px !important;
      }

      body.mobile-optimized #legendDock .legend-row.legend-row-boundary{
        margin-top:0 !important;
        padding-top:0 !important;
        border-top:0 !important;
      }


      #mobileControlsToggle{
        top:calc(104px + env(safe-area-inset-top)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:auto !important;
        bottom:auto !important;
        min-width:132px !important;
        width:132px !important;
        min-height:36px !important;
        padding:0 12px !important;
        border-radius:13px !important;
        font-size:14px !important;
        letter-spacing:-.01em !important;
        z-index:4700 !important;
        justify-content:center !important;
        background:rgba(11,18,32,.96) !important;
      }

      #leftPanel{
        top:calc(146px + env(safe-area-inset-top)) !important;
        bottom:calc(54px + env(safe-area-inset-bottom)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:calc(8px + env(safe-area-inset-right)) !important;
        width:auto !important;
        max-height:none !important;
        padding:30px 9px 10px !important;
        border-radius:17px !important;
      }

      body.mobile-legend-open #mobileControlsToggle{
        top:calc(min(58dvh, 320px) + 18px + env(safe-area-inset-top)) !important;
      }

      body.mobile-legend-open #leftPanel{
        top:calc(min(58dvh, 320px) + 60px + env(safe-area-inset-top)) !important;
      }

      #timelineDock{
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:calc(8px + env(safe-area-inset-right)) !important;
        bottom:calc(5px + env(safe-area-inset-bottom)) !important;
        padding:12px 7px 4px !important;
        border-radius:13px !important;
        max-height:116px;
      }

      #timelineBubble{
        top:-9px !important;
        padding:3px 8px !important;
        font-size:9px !important;
      }

      .timeline-top{
        margin-bottom:2px !important;
        gap:5px !important;
      }

      .playFab{
        width:34px !important;
        min-width:34px !important;
        height:34px !important;
        min-height:34px !important;
        font-size:16px !important;
      }

      .miniAction{
        min-height:26px !important;
        padding:0 8px !important;
        font-size:8.5px !important;
      }

      .timeline-days{
        margin-bottom:2px !important;
        border-radius:9px !important;
      }

      .timeline-day{
        min-height:20px !important;
        padding:4px 3px !important;
        font-size:8.5px !important;
      }

      .timeline-trackRow{
        gap:4px !important;
      }

      #hourSlider::-webkit-slider-thumb{ width:13px !important; height:13px !important; }
      #hourSlider::-moz-range-thumb{ width:13px !important; height:13px !important; }
      .timeline-end,
      .timeline-scale{ font-size:8.5px !important; }

      .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-top:calc(8px + env(safe-area-inset-top)) !important;
        margin-right:calc(8px + env(safe-area-inset-right)) !important;
      }
    }

    @media (max-width:430px) and (orientation:portrait){
      body.mobile-optimized #legendDock{
        width:min(180px, calc(100vw - 88px)) !important;
        max-height:84px !important;
      }
      body.mobile-optimized.mobile-legend-open #legendDock{
        width:min(272px, calc(100vw - 62px)) !important;
        max-height:min(56dvh, 310px) !important;
      }
      body.mobile-optimized #legendDock .legend-row{
        font-size:8px !important;
      }
      #mobileControlsToggle{
        top:calc(100px + env(safe-area-inset-top)) !important;
        width:126px !important;
        min-width:126px !important;
      }
      #leftPanel{
        top:calc(140px + env(safe-area-inset-top)) !important;
      }
    }

    @media (max-width: 900px) and (orientation: landscape), (max-width:1366px) and (any-pointer:coarse) and (orientation: landscape), (max-height: 560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock{
        top:calc(6px + env(safe-area-inset-top)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        width:min(176px, 30vw) !important;
        max-height:72px !important;
        padding:6px 7px !important;
        border-radius:13px !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock{
        width:min(260px, 42vw) !important;
        max-height:calc(100dvh - 72px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
      }

      body.mobile-optimized #legendDock::after{
        font-size:7px;
        right:7px;
        top:7px;
      }

      body.mobile-optimized #legendDock .legend-title{
        font-size:10px !important;
        margin-right:76px !important;
        margin-bottom:3px !important;
      }

      body.mobile-optimized #legendDock .legend-list{
        gap:2px 6px !important;
      }

      body.mobile-optimized #legendDock .legend-row{
        font-size:7.2px !important;
        gap:4px !important;
      }

      #mobileControlsToggle{
        top:calc(84px + env(safe-area-inset-top)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        width:112px !important;
        min-width:112px !important;
        min-height:31px !important;
        font-size:11px !important;
        border-radius:11px !important;
      }

      #leftPanel{
        top:calc(122px + env(safe-area-inset-top)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:auto !important;
        width:min(392px, 52vw) !important;
        bottom:calc(44px + env(safe-area-inset-bottom)) !important;
        transform:translateX(calc(-100% - 16px)) !important;
      }


      body.mobile-legend-open #mobileControlsToggle{
        top:calc(100dvh - 64px - env(safe-area-inset-bottom)) !important;
      }

      body.mobile-legend-open #leftPanel{
        top:calc(6px + env(safe-area-inset-top)) !important;
        left:min(276px, calc(42vw + 16px)) !important;
      }

      #timelineDock{
        padding:9px 6px 3px !important;
        bottom:calc(4px + env(safe-area-inset-bottom)) !important;
        max-height:86px;
      }

      .timeline-day{ min-height:16px !important; font-size:7px !important; padding:2px !important; }
    }


    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock{
        top:calc(7px + env(safe-area-inset-top)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        width:auto !important;
        min-width:128px !important;
        max-width:calc(100vw - 96px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
        height:38px !important;
        max-height:38px !important;
        padding:7px 10px !important;
        border-radius:999px !important;
        overflow:hidden !important;
        display:flex !important;
        align-items:center !important;
        gap:8px !important;
        background:rgba(11,18,32,.95) !important;
        box-shadow:0 10px 22px rgba(0,0,0,.26) !important;
        z-index:4200 !important;
      }

      body.mobile-optimized #legendDock::before{
        content:"";
        display:inline-block;
        width:38px;
        height:12px;
        flex:0 0 auto;
        border-radius:999px;
        background:linear-gradient(90deg, var(--depth-0) 0 14%, var(--depth-1) 14% 28%, var(--depth-3) 28% 42%, var(--depth-5) 42% 56%, var(--depth-7) 56% 70%, var(--depth-8) 70% 84%, var(--depth-10) 84% 100%);
        box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
      }

      body.mobile-optimized #legendDock::after{
        content:"Legend" !important;
        position:static !important;
        display:inline-block !important;
        font-size:11px !important;
        line-height:1 !important;
        font-weight:900 !important;
        letter-spacing:.01em !important;
        color:#eaf0ff !important;
        text-transform:none !important;
        opacity:1 !important;
        pointer-events:none !important;
        white-space:nowrap !important;
      }

      body.mobile-optimized #legendDock .legend-title,
      body.mobile-optimized #legendDock .legend-list,
      body.mobile-optimized #legendDock .legend-note{
        display:none !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock{
        display:block !important;
        width:min(286px, calc(100vw - 18px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
        height:auto !important;
        max-height:min(42dvh, 250px) !important;
        padding:8px 10px 9px !important;
        border-radius:16px !important;
        overflow-y:auto !important;
        -webkit-overflow-scrolling:touch !important;
      }


      body.mobile-optimized.mobile-legend-open #legendDock::after{
        content:"Tap to close" !important;
        position:absolute !important;
        right:10px !important;
        top:10px !important;
        font-size:8px !important;
        letter-spacing:.08em !important;
        text-transform:uppercase !important;
        color:#bfdbfe !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock .legend-title{
        display:block !important;
        margin:0 86px 6px 0 !important;
        font-size:13px !important;
        line-height:1.05 !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock .legend-list{
        display:grid !important;
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:4px 8px !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock .legend-row{
        display:grid !important;
        grid-template-columns:9px minmax(0, 1fr) !important;
        gap:5px !important;
        font-size:8px !important;
        line-height:1.05 !important;
        font-weight:850 !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock .legend-row:nth-child(n+9){
        display:grid !important;
      }

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

      body.mobile-optimized.mobile-legend-open #legendDock .legend-swatch.legend-line{
        width:9px !important;
        border-top-width:2px !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock .legend-row.legend-row-boundary{
        margin-top:0 !important;
        padding-top:0 !important;
        border-top:0 !important;
      }

      #mobileControlsToggle{
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:auto !important;
        top:auto !important;
        bottom:calc(86px + env(safe-area-inset-bottom)) !important;
        width:auto !important;
        min-width:108px !important;
        min-height:34px !important;
        padding:0 12px !important;
        border-radius:999px !important;
        font-size:13px !important;
        font-weight:900 !important;
        letter-spacing:-.01em !important;
        z-index:4700 !important;
        background:rgba(11,18,32,.94) !important;
        box-shadow:0 10px 22px rgba(0,0,0,.24) !important;
      }

      body.mobile-controls-open #mobileControlsToggle{
        bottom:calc(min(72dvh, 520px) + 10px + env(safe-area-inset-bottom)) !important;
      }

      body.mobile-legend-open #mobileControlsToggle{
        top:auto !important;
        bottom:calc(86px + env(safe-area-inset-bottom)) !important;
      }

      #leftPanel{
        top:auto !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:calc(8px + env(safe-area-inset-right)) !important;
        bottom:calc(64px + env(safe-area-inset-bottom)) !important;
        width:auto !important;
        max-height:min(72dvh, 520px) !important;
        padding:28px 9px 10px !important;
        border-radius:18px !important;
        transform:translateY(calc(100% + 24px)) !important;
        transition:transform .18s ease !important;
      }

      body.mobile-controls-open #leftPanel{
        transform:translateY(0) !important;
      }

      body.mobile-legend-open #leftPanel{
        top:auto !important;
        bottom:calc(64px + env(safe-area-inset-bottom)) !important;
      }

      #timelineDock{
        left:calc(8px + env(safe-area-inset-left)) !important;
        right:calc(8px + env(safe-area-inset-right)) !important;
        bottom:calc(4px + env(safe-area-inset-bottom)) !important;
        padding:9px 7px 4px !important;
        border-radius:14px !important;
        max-height:78px !important;
        overflow:hidden !important;
      }

      #timelineBubble{
        top:-9px !important;
        padding:3px 8px !important;
        border-radius:999px !important;
        font-size:9px !important;
        line-height:1 !important;
      }

      .timeline-top{
        margin-bottom:2px !important;
        gap:5px !important;
        min-height:28px !important;
      }

      .playFab{
        width:30px !important;
        min-width:30px !important;
        height:30px !important;
        min-height:30px !important;
        font-size:14px !important;
      }

      .miniAction{
        min-height:24px !important;
        padding:0 8px !important;
        font-size:8px !important;
        letter-spacing:.12em !important;
      }

      .timeline-days{
        margin-bottom:1px !important;
        border-radius:9px !important;
      }

      .timeline-day{
        min-height:18px !important;
        padding:3px 3px !important;
        font-size:8px !important;
        line-height:1 !important;
      }

      .timeline-trackRow{
        display:grid !important;
        grid-template-columns:42px minmax(0, 1fr) 42px !important;
        gap:4px !important;
        align-items:center !important;
      }

      .timeline-end,
      .timeline-scale{
        font-size:7.5px !important;
        line-height:1 !important;
      }

      #hourSlider{ height:3px !important; }
      #hourSlider::-webkit-slider-thumb{ width:12px !important; height:12px !important; }
      #hourSlider::-moz-range-thumb{ width:12px !important; height:12px !important; }

      .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-top:calc(7px + env(safe-area-inset-top)) !important;
        margin-right:calc(7px + env(safe-area-inset-right)) !important;
      }

      .leaflet-control-zoom a{
        width:38px !important;
        height:38px !important;
        line-height:38px !important;
      }
    }

    @media (max-width:430px) and (orientation:portrait){
      body.mobile-optimized #legendDock{
        min-width:120px !important;
        height:36px !important;
        max-height:36px !important;
        padding:6px 9px !important;
      }

      body.mobile-optimized #legendDock::before{
        width:34px !important;
        height:11px !important;
      }

      body.mobile-optimized #legendDock::after{
        font-size:10px !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock{
        width:min(276px, calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
        height:auto !important;
        max-height:min(40dvh, 235px) !important;
      }

      #mobileControlsToggle{
        min-width:102px !important;
        min-height:32px !important;
        bottom:calc(82px + env(safe-area-inset-bottom)) !important;
        font-size:12px !important;
      }

      #timelineDock{
        max-height:74px !important;
        padding-top:8px !important;
      }
    }

    @media (max-width: 900px) and (orientation: landscape), (max-width:1366px) and (any-pointer:coarse) and (orientation: landscape), (max-height: 560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock{
        min-width:116px !important;
        height:34px !important;
        max-height:34px !important;
        top:calc(6px + env(safe-area-inset-top)) !important;
        left:calc(7px + env(safe-area-inset-left)) !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock{
        width:min(260px, 38vw) !important;
        height:auto !important;
        max-height:calc(100dvh - 86px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
      }

      #mobileControlsToggle{
        top:calc(46px + env(safe-area-inset-top)) !important;
        bottom:auto !important;
        left:calc(7px + env(safe-area-inset-left)) !important;
        min-width:98px !important;
        min-height:30px !important;
        font-size:11px !important;
      }

      body.mobile-controls-open #mobileControlsToggle{
        top:calc(46px + env(safe-area-inset-top)) !important;
        bottom:auto !important;
      }

      #leftPanel{
        top:calc(82px + env(safe-area-inset-top)) !important;
        bottom:calc(38px + env(safe-area-inset-bottom)) !important;
        left:calc(7px + env(safe-area-inset-left)) !important;
        right:auto !important;
        width:min(360px, 46vw) !important;
        max-height:none !important;
        transform:translateX(calc(-100% - 18px)) !important;
      }

      body.mobile-controls-open #leftPanel{
        transform:translateX(0) !important;
      }

      #timelineDock{
        max-height:52px !important;
        padding:7px 6px 3px !important;
      }

      #timelineBubble{
        top:-8px !important;
        font-size:8px !important;
      }

      .timeline-top{
        display:none !important;
      }

      .timeline-days{
        margin-bottom:2px !important;
      }

      .timeline-day{
        min-height:15px !important;
        padding:2px !important;
        font-size:7px !important;
      }

      .timeline-trackRow{
        grid-template-columns:1fr !important;
      }

      .timeline-end,
      .timeline-scale{
        display:none !important;
      }
    }


    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock{
        height:44px !important;
        max-height:44px !important;
        min-width:152px !important;
        padding:7px 12px !important;
        gap:10px !important;
        align-items:center !important;
      }

      body.mobile-optimized #legendDock::before{
        width:42px !important;
        height:13px !important;
        margin-top:0 !important;
      }

      body.mobile-optimized #legendDock::after{
        content:"Legend\A Tap to open" !important;
        white-space:pre-line !important;
        display:block !important;
        font-size:11px !important;
        line-height:1.02 !important;
        font-weight:950 !important;
        letter-spacing:.01em !important;
        text-align:left !important;
        color:#eaf0ff !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock::after{
        content:"Tap to close" !important;
        white-space:nowrap !important;
        position:absolute !important;
        right:10px !important;
        top:10px !important;
        font-size:8px !important;
        line-height:1 !important;
        letter-spacing:.08em !important;
        text-transform:uppercase !important;
        color:#bfdbfe !important;
      }

      #timelineDock{
        overflow:visible !important;
        max-height:none !important;
        padding-top:14px !important;
      }

      #timelineBubble{
        top:-14px !important;
        z-index:2 !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        min-height:22px !important;
        padding:5px 11px !important;
        border-radius:999px !important;
        font-size:10px !important;
        line-height:1 !important;
        white-space:nowrap !important;
        box-shadow:0 8px 18px rgba(0,0,0,.28) !important;
      }

      #timelineBubble::after{
        bottom:-5px !important;
        border-left-width:5px !important;
        border-right-width:5px !important;
        border-top-width:5px !important;
      }

      .timeline-top{
        min-height:26px !important;
      }
    }

    @media (max-width:430px) and (orientation:portrait){
      body.mobile-optimized #legendDock{
        min-width:148px !important;
        height:42px !important;
        max-height:42px !important;
        padding:6px 11px !important;
      }

      body.mobile-optimized #legendDock::before{
        width:40px !important;
        height:12px !important;
      }

      body.mobile-optimized #legendDock::after{
        font-size:10.5px !important;
      }

      #timelineDock{
        padding-top:13px !important;
      }

      #timelineBubble{
        top:-13px !important;
        min-height:21px !important;
        padding:4px 10px !important;
        font-size:9.5px !important;
      }
    }

    @media (max-width: 900px) and (orientation: landscape), (max-width:1366px) and (any-pointer:coarse) and (orientation: landscape), (max-height: 560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock{
        height:38px !important;
        max-height:38px !important;
        min-width:144px !important;
      }

      body.mobile-optimized #legendDock::after{
        font-size:10px !important;
        line-height:1 !important;
      }

      #timelineDock{
        overflow:visible !important;
        max-height:none !important;
        padding-top:12px !important;
      }

      #timelineBubble{
        top:-12px !important;
        min-height:18px !important;
        padding:3px 9px !important;
        font-size:8.5px !important;
      }
    }



    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock::before{
        background:linear-gradient(90deg,
          var(--depth-0) 0 14%,
          var(--depth-1) 14% 28%,
          var(--depth-3) 28% 42%,
          var(--depth-5) 42% 56%,
          var(--depth-7) 56% 70%,
          var(--depth-8) 70% 84%,
          var(--depth-10) 84% 100%) !important;
      }


      body.mobile-optimized #legendDock::after{
        content:attr(data-preview-text) !important;
        white-space:pre-line !important;
        display:block !important;
        font-size:11px !important;
        line-height:1.02 !important;
        font-weight:950 !important;
        letter-spacing:.01em !important;
        text-align:left !important;
        color:#eaf0ff !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock::after{
        content:"Tap to close" !important;
        white-space:nowrap !important;
      }
    }


    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock[data-legend-mode="dynamic"]::before{
        background:linear-gradient(90deg,
          var(--minor) 0 34%,
          var(--moderate) 34% 67%,
          var(--major) 67% 100%) !important;
      }

      #mobileControlsToggle{
        bottom:calc(128px + env(safe-area-inset-bottom)) !important;
      }

      body.mobile-controls-open #mobileControlsToggle{
        bottom:calc(128px + env(safe-area-inset-bottom)) !important;
      }
    }

    @media (max-width:430px) and (orientation:portrait){
      #mobileControlsToggle{
        bottom:calc(126px + env(safe-area-inset-bottom)) !important;
      }

      body.mobile-controls-open #mobileControlsToggle{
        bottom:calc(126px + env(safe-area-inset-bottom)) !important;
      }
    }

    @media (max-width: 900px) and (orientation: landscape), (max-width:1366px) and (any-pointer:coarse) and (orientation: landscape), (max-height: 560px) and (pointer:coarse) {
      #mobileControlsToggle{
        top:calc(42px + env(safe-area-inset-top)) !important;
        bottom:auto !important;
      }

      body.mobile-controls-open #mobileControlsToggle{
        top:calc(42px + env(safe-area-inset-top)) !important;
        bottom:auto !important;
      }
    }


    @media (max-width: 900px) and (orientation: portrait), (max-width:1366px) and (any-pointer:coarse) and (orientation: portrait), (max-width: 430px) and (orientation: portrait) {
      #mobileControlsToggle,
      body.mobile-controls-open #mobileControlsToggle,
      body.mobile-legend-open #mobileControlsToggle{
        bottom:calc(126px + env(safe-area-inset-bottom)) !important;
        top:auto !important;
        left:calc(9px + env(safe-area-inset-left)) !important;
      }
    }

    @media (max-width: 390px) and (orientation: portrait){
      #mobileControlsToggle,
      body.mobile-controls-open #mobileControlsToggle,
      body.mobile-legend-open #mobileControlsToggle{
        bottom:calc(122px + env(safe-area-inset-bottom)) !important;
      }
    }



    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock{
        top:calc(8px + env(safe-area-inset-top)) !important;
        left:calc(9px + env(safe-area-inset-left)) !important;
        width:auto !important;
        min-width:176px !important;
        max-width:calc(100vw - 104px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
        height:44px !important;
        max-height:44px !important;
        padding:7px 13px !important;
        border-radius:999px !important;
        overflow:hidden !important;
        display:flex !important;
        align-items:center !important;
        gap:10px !important;
        z-index:4300 !important;
      }

      body.mobile-optimized #legendDock::before{
        width:46px !important;
        height:13px !important;
        flex:0 0 46px !important;
      }

      body.mobile-optimized #legendDock::after{
        content:attr(data-preview-text) !important;
        white-space:pre-line !important;
        font-size:11px !important;
        line-height:1.04 !important;
        font-weight:950 !important;
        letter-spacing:.01em !important;
      }

      #mobileControlsToggle,
      body.mobile-controls-open #mobileControlsToggle,
      body.mobile-legend-open #mobileControlsToggle{
        top:calc(60px + env(safe-area-inset-top)) !important;
        bottom:auto !important;
        left:calc(9px + env(safe-area-inset-left)) !important;
        min-height:38px !important;
        height:38px !important;
        padding:0 16px !important;
        border-radius:999px !important;
        z-index:4200 !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock{
        top:calc(8px + env(safe-area-inset-top)) !important;
        left:calc(9px + env(safe-area-inset-left)) !important;
        display:block !important;
        width:min(330px, calc(100vw - 18px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
        min-width:0 !important;
        height:auto !important;
        max-height:none !important;
        padding:9px 10px 10px !important;
        border-radius:17px !important;
        overflow:visible !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock::before{
        display:none !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock::after{
        content:"Tap to close" !important;
        position:absolute !important;
        right:10px !important;
        top:10px !important;
        font-size:8px !important;
        line-height:1 !important;
        letter-spacing:.08em !important;
        white-space:nowrap !important;
        color:#bfdbfe !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock .legend-title{
        display:block !important;
        margin:0 78px 7px 0 !important;
        font-size:13px !important;
        line-height:1.05 !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock .legend-list{
        display:grid !important;
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        column-gap:10px !important;
        row-gap:4px !important;
        max-height:none !important;
        overflow:visible !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock .legend-row,
      body.mobile-optimized.mobile-legend-open #legendDock .legend-row:nth-child(n+9){
        display:grid !important;
        grid-template-columns:10px minmax(0, 1fr) !important;
        gap:6px !important;
        align-items:center !important;
        font-size:9.5px !important;
        line-height:1.02 !important;
        font-weight:850 !important;
        min-width:0 !important;
      }

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

      body.mobile-optimized.mobile-legend-open #legendDock .legend-swatch.legend-line{
        width:12px !important;
        height:0 !important;
        border-top-width:3px !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock .legend-row.legend-row-boundary{
        grid-column:1 / -1 !important;
        margin-top:3px !important;
        padding-top:5px !important;
        border-top:1px solid rgba(255,255,255,.12) !important;
      }

      body.mobile-optimized.mobile-legend-open #mobileControlsToggle,
      body.mobile-optimized.mobile-legend-open.mobile-controls-open #mobileControlsToggle{
        top:calc(230px + env(safe-area-inset-top)) !important;
        bottom:auto !important;
      }
    }

    @media (max-width:430px) and (orientation:portrait){
      body.mobile-optimized #legendDock{
        min-width:172px !important;
        height:43px !important;
        max-height:43px !important;
        padding:7px 12px !important;
      }

      #mobileControlsToggle,
      body.mobile-controls-open #mobileControlsToggle,
      body.mobile-legend-open #mobileControlsToggle{
        top:calc(58px + env(safe-area-inset-top)) !important;
        bottom:auto !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock{
        width:min(324px, calc(100vw - 18px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
      }

      body.mobile-optimized.mobile-legend-open #legendDock .legend-row,
      body.mobile-optimized.mobile-legend-open #legendDock .legend-row:nth-child(n+9){
        font-size:9px !important;
        column-gap:5px !important;
      }

      body.mobile-optimized.mobile-legend-open #mobileControlsToggle,
      body.mobile-optimized.mobile-legend-open.mobile-controls-open #mobileControlsToggle{
        top:calc(222px + env(safe-area-inset-top)) !important;
      }
    }

    @media (max-width: 900px) and (orientation: landscape), (max-width:1366px) and (any-pointer:coarse) and (orientation: landscape), (max-height: 560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock{
        top:calc(7px + env(safe-area-inset-top)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        height:38px !important;
        max-height:38px !important;
        min-width:164px !important;
      }

      #mobileControlsToggle,
      body.mobile-controls-open #mobileControlsToggle,
      body.mobile-legend-open #mobileControlsToggle{
        top:calc(51px + env(safe-area-inset-top)) !important;
        left:calc(8px + env(safe-area-inset-left)) !important;
        bottom:auto !important;
      }

      body.mobile-optimized.mobile-legend-open #mobileControlsToggle,
      body.mobile-optimized.mobile-legend-open.mobile-controls-open #mobileControlsToggle{
        top:calc(202px + env(safe-area-inset-top)) !important;
      }
    }


    #playBtn.is-playing{
      color:#1d4ed8 !important;
      font-size:20px !important;
      letter-spacing:-.08em !important;
      padding-left:0 !important;
    }

    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      #playBtn.is-playing{
        font-size:18px !important;
      }
    }


    @media (min-width: 761px) and (max-height: 920px){
      #leftPanel{
        top:12px !important;
        bottom:152px !important;
        left:12px !important;
        width:310px !important;
        gap:7px !important;
        padding-right:2px !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        overscroll-behavior:contain !important;
      }

      #rightRail{
        top:12px !important;
        bottom:152px !important;
        right:12px !important;
        width:214px !important;
        gap:8px !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        overscroll-behavior:contain !important;
      }

      #legendDock{
        top:12px !important;
        left:334px !important;
        width:176px !important;
        padding:10px !important;
      }

      .brand{
        min-height:70px !important;
        padding:9px 12px !important;
      }

      h1{
        font-size:clamp(18px, 1.7vw, 26px) !important;
        line-height:.94 !important;
      }

      .panel-card,
      .rail-card{
        padding:8px 10px !important;
        border-radius:16px !important;
      }

      .compact-card{
        padding:8px 10px !important;
      }

      .section-title{
        margin-bottom:5px !important;
      }

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

      .pill{
        min-height:20px !important;
        padding:0 7px !important;
        font-size:9px !important;
      }

      .button-grid-2,
      .segmented-control{
        gap:5px !important;
      }

      button,
      select,
      .segmented-control button,
      .datum-card .segmented-control button{
        min-height:32px !important;
        font-size:11px !important;
        padding:6px 8px !important;
      }

      .datum-card,
      .opacity-card{
        min-height:86px !important;
        padding-top:8px !important;
        padding-bottom:8px !important;
      }

      .opacity-card .control-row{
        gap:5px !important;
      }

      .opacity-card .muted{
        display:none !important;
      }

      .snapshot-card .stat-grid{
        gap:6px !important;
      }

      .snapshot-card .stat-box{
        min-height:64px !important;
        padding:9px 10px !important;
        border-radius:14px !important;
        gap:3px !important;
      }

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

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

      #timeSubText,
      .stat-sub{
        font-size:10px !important;
      }

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

      .legend-title{
        font-size:12px !important;
        margin-bottom:5px !important;
      }

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

      .legend-row{
        font-size:10px !important;
        gap:6px !important;
      }

      .legend-swatch{
        width:11px !important;
        height:11px !important;
      }

      .layer-item{
        padding:8px 9px !important;
        border-radius:12px !important;
      }

      .toggle{
        width:38px !important;
        height:22px !important;
      }

      .toggle::after{
        width:16px !important;
        height:16px !important;
      }

      .toggle.on::after{
        left:19px !important;
      }

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

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

      .top-tide-list{
        gap:6px !important;
      }

      .top-tide-item{
        padding:7px 8px !important;
        border-radius:12px !important;
        gap:2px !important;
      }

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

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

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

      .download-launch-meta,
      .right-rail-note{
        font-size:10px !important;
        line-height:1.35 !important;
      }

      .download-launch-btn,
      .right-rail-action{
        min-height:36px !important;
        font-size:11px !important;
      }

      #timelineDock{
        left:12px !important;
        right:12px !important;
        bottom:10px !important;
      }

      .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-top:12px !important;
        margin-right:232px !important;
      }
    }

    @media (min-width: 761px) and (max-height: 760px){
      #leftPanel,
      #rightRail{
        bottom:134px !important;
      }
      #timelineDock{
        padding:22px 10px 8px !important;
      }
      .timeline-day{
        padding:7px 6px !important;
      }
      .playFab{
        width:40px !important;
        min-width:40px !important;
        height:40px !important;
        min-height:40px !important;
      }
      .miniAction{
        min-height:28px !important;
        padding:0 9px !important;
      }
    }


    #leftPanel,
    body.observed-mode #leftPanel{
      bottom:16px !important;
      max-height:calc(100vh - 32px) !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) {
      #timelineDock{
        left:352px !important;
        right:16px !important;
      }

      body.observed-mode #timelineDock{
        left:352px !important;
        right:16px !important;
      }
    }


    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse) {
      #timelineDock,
      body.observed-mode #timelineDock{
        left:16px !important;
        right:16px !important;
      }

      #leftPanel,
      body.observed-mode #leftPanel{
        bottom:132px !important;
        max-height:calc(100vh - 148px) !important;
      }
    }


    #rightRail{
      bottom:16px !important;
      z-index:1350;
    }

    #rightRail #legendDock.legend-card{
      position:relative !important;
      top:auto !important;
      left:auto !important;
      right:auto !important;
      bottom:auto !important;
      width:100% !important;
      padding:12px !important;
      margin:0 !important;
      cursor:default;
      pointer-events:auto;
      overflow:hidden;
      touch-action:none;
    }

    #legendDock.legend-card.legend-floating-user{
      position:fixed !important;
      width:220px !important;
      max-width:min(280px, calc(100vw - 32px)) !important;
      z-index:5200 !important;
      margin:0 !important;
      pointer-events:auto;
      touch-action:none;
    }

    .legend-header{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:8px;
      cursor:grab;
      user-select:none;
      -webkit-user-select:none;
      touch-action:none;
    }

    .legend-header:active{
      cursor:grabbing;
    }

    .legend-header-text{
      min-width:0;
      display:grid;
      gap:1px;
    }

    .legend-header-actions{
      display:flex;
      align-items:center;
      gap:6px;
      flex:0 0 auto;
    }

    .legend-drag-hint{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:18px;
      height:22px;
      color:var(--muted);
      font-size:13px;
      line-height:1;
      letter-spacing:-.15em;
      opacity:.8;
    }

    .legend-expand-btn{
      width:26px;
      min-width:26px;
      height:26px;
      min-height:26px;
      padding:0;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:13px;
      line-height:1;
      font-weight:950;
      background:rgba(255,255,255,.07);
      color:#fff;
      border:1px solid rgba(255,255,255,.16);
      box-shadow:none;
      transform:none !important;
    }

    .legend-expand-btn:hover:not(:disabled){
      background:rgba(255,255,255,.13);
      box-shadow:none;
    }

    #legendDock.legend-collapsed .legend-body{
      display:none !important;
    }

    #legendDock.legend-collapsed{
      padding-bottom:10px !important;
    }

    #legendDock.legend-expanded .legend-body{
      display:block;
      margin-top:8px;
    }

    #legendDock.legend-expanded .legend-expand-btn{
      transform:rotate(180deg) !important;
    }

    #legendDock .legend-title{
      margin:0 !important;
      line-height:1.12;
      white-space:normal;
    }

    #legendDock .legend-body{
      max-height:min(46vh, 360px);
      overflow:auto;
      -webkit-overflow-scrolling:touch;
      padding-right:2px;
    }

    #legendDock .legend-help-btn{
      cursor:pointer;
    }


    #legendDock.legend-floating-user.legend-expanded .legend-body{
      max-height:min(52vh, 420px);
    }


    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse) {
      #rightRail #legendDock.legend-card{
        position:relative !important;
        width:100% !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{
        --shore-left-pane-width:320px;
        --shore-left-pane-left:16px;
        --shore-left-pane-gap:8px;
        --shore-left-pane-right:352px;
      }

      #leftPanel,
      body.observed-mode #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,
      body.observed-mode.observed-fit-tight #leftPanel,
      body.observed-mode.observed-fit-ultra #leftPanel,
      html.os-mac body.observed-mode #leftPanel,
      html.os-mac body.observed-mode.calendar-picker-open #leftPanel,
      html.os-windows body.observed-mode #leftPanel,
      html.os-windows body.observed-mode.calendar-picker-open #leftPanel{
        left:var(--shore-left-pane-left) !important;
        width:var(--shore-left-pane-width) !important;
        min-width:var(--shore-left-pane-width) !important;
        max-width:var(--shore-left-pane-width) !important;
        box-sizing:border-box !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        gap:var(--shore-left-pane-gap) !important;
        padding:0 !important;
        overflow-x:hidden !important;
        scrollbar-gutter:auto !important;
      }

      body:not(.observed-mode) #leftPanel{
        top:16px !important;
        bottom:var(--left-panel-bottom, 132px) !important;
        height:auto !important;
        max-height:calc(100vh - 16px - var(--left-panel-bottom, 132px)) !important;
        overflow-y:auto !important;
      }

      body.observed-mode #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,
      body.observed-mode.observed-fit-tight #leftPanel,
      body.observed-mode.observed-fit-ultra #leftPanel,
      html.os-mac body.observed-mode #leftPanel,
      html.os-mac body.observed-mode.calendar-picker-open #leftPanel,
      html.os-windows body.observed-mode #leftPanel,
      html.os-windows body.observed-mode.calendar-picker-open #leftPanel{
        top:16px !important;
        bottom:16px !important;
        height:auto !important;
        max-height:calc(100vh - 32px) !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        grid-template-columns:none !important;
        grid-auto-flow:row !important;
        align-content:stretch !important;
      }

      #leftPanel > .panel-card,
      body.observed-mode #leftPanel > .panel-card,
      body.observed-mode.calendar-picker-open #leftPanel > .panel-card,
      body.observed-tight #leftPanel > .panel-card,
      body.observed-ultra-tight #leftPanel > .panel-card,
      body.observed-fit-tight #leftPanel > .panel-card,
      body.observed-fit-ultra #leftPanel > .panel-card{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        box-sizing:border-box !important;
        flex-shrink:0 !important;
        grid-column:auto !important;
        overflow:visible !important;
      }

      body.observed-mode #forecastScenarioCard,
      body.observed-mode #leftPanel > .forecast-scenario-card,
      body.observed-mode.calendar-picker-open #forecastScenarioCard,
      body.observed-mode.calendar-picker-open #leftPanel > .forecast-scenario-card{
        display:none !important;
        visibility:hidden !important;
        height:0 !important;
        min-height:0 !important;
        max-height:0 !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        overflow:hidden !important;
        flex:0 0 0 !important;
      }

      body.observed-mode #leftPanel > .brand,
      body.observed-mode.calendar-picker-open #leftPanel > .brand{
        flex:0 0 auto !important;
        min-height:92px !important;
        height:auto !important;
        max-height:none !important;
        padding:12px 14px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel .shorelysafe-logo,
      body.observed-mode.calendar-picker-open #leftPanel .shorelysafe-logo{
        max-height:22px !important;
        margin:0 auto 6px !important;
      }

      body.observed-mode #leftPanel #brandTitle,
      body.observed-mode.calendar-picker-open #leftPanel #brandTitle,
      body.observed-mode #leftPanel .brand h1,
      body.observed-mode.calendar-picker-open #leftPanel .brand h1{
        font-size:27px !important;
        line-height:.92 !important;
        letter-spacing:-.045em !important;
      }

      body.observed-mode #leftPanel > .data-source-card,
      body.observed-mode #leftPanel > .overlay-card,
      body.observed-mode.calendar-picker-open #leftPanel > .data-source-card,
      body.observed-mode.calendar-picker-open #leftPanel > .overlay-card{
        flex:0 0 auto !important;
        min-height:96px !important;
        height:auto !important;
        max-height:none !important;
        padding:12px 14px 13px !important;
        display:flex !important;
        flex-direction:column !important;
        justify-content:flex-start !important;
        gap:9px !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel > .datum-card,
      body.observed-mode.calendar-picker-open #leftPanel > .datum-card{
        flex:0 0 auto !important;
        min-height:104px !important;
        height:auto !important;
        max-height:none !important;
        padding:12px 14px 13px !important;
        display:flex !important;
        flex-direction:column !important;
        justify-content:flex-start !important;
        gap:9px !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel .section-title,
      body.observed-mode.calendar-picker-open #leftPanel .section-title{
        min-height:26px !important;
        height:auto !important;
        margin:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:8px !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel .title-with-help,
      body.observed-mode.calendar-picker-open #leftPanel .title-with-help{
        flex:1 1 auto !important;
        min-width:0 !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel .section-title h2,
      body.observed-mode.calendar-picker-open #leftPanel .section-title h2{
        display:block !important;
        flex:1 1 auto !important;
        min-width:0 !important;
        max-width:none !important;
        margin:0 !important;
        font-size:14px !important;
        line-height:1.15 !important;
        white-space:nowrap !important;
        overflow:visible !important;
        text-overflow:clip !important;
      }

      body.observed-mode #leftPanel .pill,
      body.observed-mode.calendar-picker-open #leftPanel .pill{
        flex:0 0 auto !important;
        min-width:auto !important;
        max-width:none !important;
        min-height:23px !important;
        height:auto !important;
        padding:3px 10px !important;
        font-size:10px !important;
        line-height:1.15 !important;
        overflow:visible !important;
        text-overflow:clip !important;
        white-space:nowrap !important;
      }

      body.observed-mode #leftPanel .button-grid-2,
      body.observed-mode.calendar-picker-open #leftPanel .button-grid-2,
      body.observed-mode #leftPanel .segmented-control,
      body.observed-mode.calendar-picker-open #leftPanel .segmented-control{
        flex:0 0 auto !important;
        display:grid !important;
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:8px !important;
        min-height:0 !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel button,
      body.observed-mode #leftPanel select,
      body.observed-mode.calendar-picker-open #leftPanel button,
      body.observed-mode.calendar-picker-open #leftPanel select{
        min-height:40px !important;
        height:auto !important;
        padding:8px 10px !important;
        font-size:12px !important;
        line-height:1.15 !important;
        border-radius:13px !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel .datum-card .segmented-control button,
      body.observed-mode.calendar-picker-open #leftPanel .datum-card .segmented-control button{
        min-height:44px !important;
        padding:7px 10px !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:center !important;
        justify-content:center !important;
        gap:2px !important;
        white-space:normal !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel .datum-offset,
      body.observed-mode.calendar-picker-open #leftPanel .datum-offset{
        display:block !important;
        font-size:9px !important;
        line-height:1.05 !important;
        margin-top:0 !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel .help-btn,
      body.observed-mode.calendar-picker-open #leftPanel .help-btn{
        width:24px !important;
        min-width:24px !important;
        height:24px !important;
        min-height:24px !important;
        padding:0 !important;
        border-radius:999px !important;
      }

      body.observed-mode #leftPanel > .snapshot-card,
      body.observed-mode.calendar-picker-open #leftPanel > .snapshot-card{
        flex:0 0 auto !important;
        min-height:150px !important;
        height:auto !important;
        max-height:none !important;
        padding:12px 14px 13px !important;
        display:flex !important;
        flex-direction:column !important;
        gap:8px !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel > .snapshot-card .section-title,
      body.observed-mode.calendar-picker-open #leftPanel > .snapshot-card .section-title{
        justify-content:center !important;
        min-height:22px !important;
      }

      body.observed-mode #leftPanel .snapshot-card .stat-grid,
      body.observed-mode.calendar-picker-open #leftPanel .snapshot-card .stat-grid{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:7px !important;
        flex:0 0 auto !important;
        min-height:0 !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel .snapshot-card .stat-box,
      body.observed-mode.calendar-picker-open #leftPanel .snapshot-card .stat-box{
        min-height:56px !important;
        height:auto !important;
        max-height:none !important;
        padding:8px 10px !important;
        gap:3px !important;
        border-radius:15px !important;
        overflow:visible !important;
      }

      body.observed-mode #timeText,
      body.observed-mode.calendar-picker-open #timeText{
        font-size:13.5px !important;
        line-height:1.12 !important;
        white-space:nowrap !important;
        overflow:visible !important;
        text-overflow:clip !important;
      }

      body.observed-mode #stageText,
      body.observed-mode.calendar-picker-open #stageText{
        font-size:23px !important;
        line-height:1.02 !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel .stat-label,
      body.observed-mode.calendar-picker-open #leftPanel .stat-label{
        font-size:9.5px !important;
        line-height:1.05 !important;
      }

      body.observed-mode #leftPanel .stat-sub,
      body.observed-mode.calendar-picker-open #leftPanel .stat-sub{
        font-size:9.5px !important;
        line-height:1.05 !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel > .calendar-card.active,
      body.observed-mode.calendar-picker-open #leftPanel > .calendar-card.active{
        flex:0 0 auto !important;
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
        padding:10px 12px !important;
        gap:6px !important;
        overflow:visible !important;
      }

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

      body.observed-mode #leftPanel .calendar-toolbar > button,
      body.observed-mode #leftPanel .calendar-title-btn,
      body.observed-mode.calendar-picker-open #leftPanel .calendar-toolbar > button,
      body.observed-mode.calendar-picker-open #leftPanel .calendar-title-btn{
        min-height:34px !important;
        height:auto !important;
        font-size:12px !important;
        border-radius:11px !important;
      }

      body.observed-mode #calendarPopover.open,
      body.observed-mode.calendar-picker-open #calendarPopover.open{
        padding:8px !important;
        gap:7px !important;
        border-radius:14px !important;
      }

      body.observed-mode #calendarPopover .calendar-popover-grid,
      body.observed-mode.calendar-picker-open #calendarPopover .calendar-popover-grid{
        grid-template-columns:1fr 1fr 42px !important;
        gap:6px !important;
      }

      body.observed-mode #calendarPopover label,
      body.observed-mode.calendar-picker-open #calendarPopover label{
        gap:3px !important;
        font-size:8.5px !important;
        line-height:1 !important;
      }

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

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

      body.observed-mode #leftPanel .calendar-day,
      body.observed-mode.calendar-picker-open #leftPanel .calendar-day{
        min-height:27px !important;
        height:27px !important;
        max-height:27px !important;
        font-size:10.5px !important;
        border-radius:9px !important;
      }

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

      body.observed-mode #leftPanel .calendar-nav-btn,
      body.observed-mode #leftPanel .day-nav-center,
      body.observed-mode.calendar-picker-open #leftPanel .calendar-nav-btn,
      body.observed-mode.calendar-picker-open #leftPanel .day-nav-center{
        min-height:34px !important;
        height:auto !important;
        font-size:12px !important;
        border-radius:11px !important;
        padding:4px 7px !important;
      }

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

      body.observed-mode #leftPanel .calendar-key-item,
      body.observed-mode.calendar-picker-open #leftPanel .calendar-key-item{
        min-height:25px !important;
        height:auto !important;
        max-height:none !important;
        padding:0 6px !important;
        font-size:8.5px !important;
        line-height:1.05 !important;
        gap:4px !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel > .opacity-card,
      body.observed-mode #leftPanel > .panel-card.compact-card.opacity-card,
      body.observed-mode.calendar-picker-open #leftPanel > .opacity-card,
      body.observed-mode.calendar-picker-open #leftPanel > .panel-card.compact-card.opacity-card{
        flex:0 0 auto !important;
        min-height:84px !important;
        height:auto !important;
        max-height:none !important;
        padding:10px 14px !important;
        display:flex !important;
        flex-direction:column !important;
        justify-content:center !important;
        gap:5px !important;
        overflow:visible !important;
      }

      body.observed-mode #leftPanel > .opacity-card .section-title,
      body.observed-mode.calendar-picker-open #leftPanel > .opacity-card .section-title{
        min-height:22px !important;
        margin:0 !important;
      }

      body.observed-mode #leftPanel > .opacity-card .control-row,
      body.observed-mode.calendar-picker-open #leftPanel > .opacity-card .control-row{
        flex:0 0 auto !important;
        display:grid !important;
        align-content:center !important;
        gap:4px !important;
      }

      body.observed-mode #leftPanel > .opacity-card .muted,
      body.observed-mode.calendar-picker-open #leftPanel > .opacity-card .muted{
        display:block !important;
        font-size:9.5px !important;
        line-height:1.1 !important;
      }

      body:not(.observed-mode) #leftPanel > .opacity-card,
      body:not(.observed-mode) #leftPanel > .panel-card.compact-card.opacity-card{
        flex:0 0 82px !important;
        height:82px !important;
        min-height:82px !important;
        max-height:82px !important;
        padding:9px 12px !important;
        justify-content:center !important;
        overflow:visible !important;
      }

      body:not(.observed-mode) #leftPanel > .data-source-card,
      body:not(.observed-mode) #leftPanel > .forecast-scenario-card,
      body:not(.observed-mode) #leftPanel > .overlay-card,
      body:not(.observed-mode) #leftPanel > .datum-card{
        min-height:88px !important;
        height:auto !important;
        max-height:none !important;
        padding:11px 12px !important;
        overflow:visible !important;
      }

      body.observed-mode #legendDock,
      body.observed-mode.calendar-picker-open #legendDock{
        left:var(--shore-left-pane-right) !important;
      }

      body.observed-mode #timelineDock,
      body.observed-mode.calendar-picker-open #timelineDock{
        left:var(--shore-left-pane-right) !important;
      }

      .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-right:240px !important;
      }
    }


    #mapTitleBadge{
      position:fixed;
      top:18px;
      left:50%;
      transform:translateX(-50%);
      z-index:1275;
      pointer-events:none;
      max-width:min(620px, calc(100vw - 760px));
      min-width:300px;
      padding:8px 18px 9px;
      border-radius:999px;
      border:1px solid rgba(191,219,254,.30);
      background:linear-gradient(180deg, rgba(15,23,42,.70), rgba(15,23,42,.52));
      box-shadow:0 14px 34px rgba(15,23,42,.30), inset 0 1px 0 rgba(255,255,255,.10);
      backdrop-filter:blur(12px);
      -webkit-backdrop-filter:blur(12px);
      text-align:center;
      font-size:clamp(22px, 2.15vw, 34px);
      line-height:1;
      font-weight:950;
      letter-spacing:-.045em;
      color:#dbeafe;
      -webkit-text-fill-color:#dbeafe;
      text-shadow:0 2px 10px rgba(15,23,42,.72);
      filter:none;
      white-space:nowrap;
    }

    @media (max-width: 980px){
      #mapTitleBadge{
        top:12px !important;
        min-width:0 !important;
        max-width:calc(100vw - 32px) !important;
        font-size:clamp(20px, 6.4vw, 30px) !important;
      }
    }

    #leftPanel > .brand{
      min-height:76px !important;
      height:auto !important;
      padding:16px 20px !important;
      display:flex !important;
      align-items:center !important;
      justify-content:center !important;
      overflow:visible !important;
    }

    #leftPanel > .brand .brand-stack{
      width:100% !important;
      display:flex !important;
      align-items:center !important;
      justify-content:center !important;
    }

    #leftPanel > .brand .shorelysafe-logo{
      display:block !important;
      width:min(230px, 94%) !important;
      max-width:230px !important;
      max-height:48px !important;
      margin:0 auto !important;
      object-fit:contain !important;
    }

    #leftPanel > .brand .brand-top,
    #leftPanel > .brand #brandTitle,
    #leftPanel > .brand h1{
      display:none !important;
    }

    #legendDock.legend-card,
    #legendDock.map-floating.legend-card,
    body.observed-mode #legendDock.legend-card,
    body.calendar-picker-open #legendDock.legend-card{
      position:fixed !important;
      top:16px !important;
      left:352px !important;
      right:auto !important;
      bottom:auto !important;
      width:182px !important;
      max-width:182px !important;
      margin:0 !important;
      cursor:default !important;
      touch-action:auto !important;
      user-select:auto !important;
      -webkit-user-select:auto !important;
      z-index:1200 !important;
    }

    #legendDock.legend-floating-user{
      position:fixed !important;
      top:16px !important;
      left:352px !important;
      right:auto !important;
      bottom:auto !important;
      width:182px !important;
      max-width:182px !important;
    }

    #legendHeader,
    #legendDock .legend-header{
      cursor:default !important;
      touch-action:auto !important;
      user-select:auto !important;
      -webkit-user-select:auto !important;
    }

    #legendHeader:active,
    #legendDock .legend-header:active{
      cursor:default !important;
    }

    #legendDock .legend-drag-hint,
    .legend-drag-hint{
      display:none !important;
    }

    .opacity-card .control-row .muted{
      display:none !important;
    }

    .opacity-card{
      min-height:82px !important;
      height:auto !important;
      padding-top:12px !important;
      padding-bottom:12px !important;
      justify-content:center !important;
      overflow:visible !important;
    }

    .opacity-card .section-title{
      margin-bottom:10px !important;
    }

    .opacity-card .control-row{
      gap:0 !important;
      align-content:center !important;
    }

    @media (max-width: 1200px){
      #mapTitleBadge{
        top:10px;
        max-width:calc(100vw - 40px);
        min-width:0;
        font-size:clamp(20px, 3.2vw, 30px);
      }
    }

    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse) {
      #mapTitleBadge{
        display:none !important;
      }

      #legendDock.legend-card,
      #legendDock.map-floating.legend-card,
      body.observed-mode #legendDock.legend-card,
      body.calendar-picker-open #legendDock.legend-card{
        position:relative !important;
        top:auto !important;
        left:auto !important;
        right:auto !important;
        bottom:auto !important;
        width:100% !important;
        max-width:100% !important;
      }
    }



    #rightRail{
      gap:12px !important;
    }

    #rightRail .right-logo-card,
    #rightRail .layers-card{
      width:100% !important;
      min-height:104px !important;
      border-radius:16px !important;
      padding:12px !important;
      display:flex !important;
      align-items:center !important;
      justify-content:center !important;
      overflow:visible !important;
    }

    #rightRail .right-logo-card{
      background:rgba(11,18,32,.88) !important;
      border:1px solid var(--line) !important;
      box-shadow:0 16px 32px rgba(15,23,42,.18) !important;
      backdrop-filter:blur(14px) !important;
      -webkit-backdrop-filter:blur(16px) !important;
    }

    #rightRail .right-logo-card .right-rail-logo,
    #rightRail .right-logo-card .shorelysafe-logo{
      display:block !important;
      width:min(170px, 92%) !important;
      max-width:170px !important;
      max-height:62px !important;
      height:auto !important;
      margin:0 auto !important;
      object-fit:contain !important;
      filter:none !important;
    }

    #rightRail .layers-card{
      align-items:stretch !important;
      flex-direction:column !important;
      justify-content:flex-start !important;
    }

    #rightRail .layers-card .rail-head{
      margin-bottom:8px !important;
    }

    #leftPanel > .brand{
      display:none !important;
    }

    @media (max-width: 980px){
      #rightRail .right-logo-card{
        display:none !important;
      }
    }


    #timelineDock,
    body.observed-mode #timelineDock,
    body.observed-mode.calendar-picker-open #timelineDock,
    html.os-mac body.observed-mode #timelineDock,
    html.os-windows body.observed-mode #timelineDock{
      left:16px !important;
      right:16px !important;
      bottom:16px !important;
      z-index:1200 !important;
    }

    #leftPanel{
      z-index:1450 !important;
    }

    #rightRail{
      z-index:1450 !important;
    }


    #calendarPopover,
    body.observed-mode #calendarPopover,
    body.observed-mode.calendar-picker-open #calendarPopover{
      display:none !important;
      position:fixed !important;
      inset:0 !important;
      z-index:6500 !important;
      width:100vw !important;
      height:100vh !important;
      padding:20px !important;
      border:0 !important;
      border-radius:0 !important;
      background:rgba(5,11,22,.56) !important;
      box-shadow:none !important;
      backdrop-filter:blur(8px) !important;
      -webkit-backdrop-filter:blur(8px) !important;
      align-items:center !important;
      justify-content:center !important;
      gap:0 !important;
      overflow:auto !important;
    }

    #calendarPopover.open,
    body.observed-mode #calendarPopover.open,
    body.observed-mode.calendar-picker-open #calendarPopover.open{
      display:flex !important;
    }

    #calendarPopover .calendar-popover-grid,
    body.observed-mode #calendarPopover .calendar-popover-grid,
    body.observed-mode.calendar-picker-open #calendarPopover .calendar-popover-grid{
      width:min(390px, calc(100vw - 32px)) !important;
      display:grid !important;
      grid-template-columns:1fr 1fr !important;
      gap:12px !important;
      align-items:end !important;
      padding:18px !important;
      border-radius:24px !important;
      border:1px solid rgba(191,219,254,.22) !important;
      background:rgba(11,18,32,.97) !important;
      box-shadow:0 28px 70px rgba(0,0,0,.42) !important;
    }

    #calendarPopover .calendar-popover-grid::before{
      content:"Choose month";
      grid-column:1 / -1;
      margin:0 0 2px;
      color:#ffffff;
      font-size:18px;
      line-height:1.15;
      font-weight:900;
      letter-spacing:-.025em;
    }

    #calendarPopover label,
    body.observed-mode #calendarPopover label,
    body.observed-mode.calendar-picker-open #calendarPopover label{
      display:grid !important;
      gap:6px !important;
      color:var(--muted) !important;
      font-size:10px !important;
      font-weight:900 !important;
      text-transform:uppercase !important;
      letter-spacing:.08em !important;
    }

    #calendarPopover select,
    body.observed-mode #calendarPopover select,
    body.observed-mode.calendar-picker-open #calendarPopover select{
      width:100% !important;
      min-height:44px !important;
      padding:0 12px !important;
      border-radius:14px !important;
      border:1px solid rgba(191,219,254,.16) !important;
      background:rgba(255,255,255,.055) !important;
      color:var(--text) !important;
      font-size:13px !important;
      font-weight:850 !important;
    }

    #calendarGoBtn,
    body.observed-mode #calendarGoBtn,
    body.observed-mode.calendar-picker-open #calendarGoBtn{
      grid-column:1 / -1 !important;
      width:100% !important;
      min-height:44px !important;
      border-radius:14px !important;
      background:linear-gradient(180deg, rgba(96,165,250,.24), rgba(96,165,250,.14)) !important;
      border-color:rgba(191,219,254,.48) !important;
      color:#eef6ff !important;
      font-weight:900 !important;
    }


    body.observed-mode.calendar-picker-open #leftPanel,
    html.os-mac body.observed-mode.calendar-picker-open #leftPanel,
    html.os-windows body.observed-mode.calendar-picker-open #leftPanel{
      width:320px !important;
      min-width:320px !important;
      max-width:320px !important;
      gap:8px !important;
      overflow-y:auto !important;
      overflow-x:hidden !important;
      scrollbar-gutter:auto !important;
    }

    body.observed-mode.calendar-picker-open .calendar-toolbar > button,
    body.observed-mode.calendar-picker-open .calendar-title-btn,
    body.observed-mode.calendar-picker-open .calendar-nav-btn,
    body.observed-mode.calendar-picker-open .day-nav-center,
    body.observed-mode.calendar-picker-open .calendar-day,
    body.observed-mode.calendar-picker-open .calendar-key-item,
    body.observed-mode.calendar-picker-open #leftPanel .opacity-card{
      max-height:none !important;
      overflow:visible !important;
    }


    .day-nav-center{
      padding:0 12px !important;
      overflow:visible !important;
    }

    .observed-date-input{
      width:100% !important;
      height:100% !important;
      min-height:42px !important;
      border:0 !important;
      outline:none !important;
      background:transparent !important;
      color:var(--text) !important;
      font:inherit !important;
      font-weight:900 !important;
      text-align:center !important;
      letter-spacing:-.015em !important;
      padding:0 !important;
      appearance:none !important;
      -webkit-appearance:none !important;
    }

    .observed-date-input::placeholder{
      color:rgba(169,182,211,.72) !important;
    }

    .observed-date-input:focus{
      color:#ffffff !important;
    }


    .top-tide-more-btn{
      width:100%;
      min-height:38px;
      border-radius:15px;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      background:rgba(96,165,250,.12);
      border:1px solid rgba(191,219,254,.38);
      color:#dbeafe;
      font-size:12px;
      font-weight:900;
      letter-spacing:-.01em;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
    }

    .top-tide-more-btn:hover:not(:disabled){
      background:rgba(96,165,250,.18);
      border-color:rgba(191,219,254,.62);
      transform:translateY(-1px);
    }

    .top-tide-more-plus{
      width:20px;
      height:20px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      background:#60a5fa;
      color:#071122;
      font-size:16px;
      line-height:1;
      font-weight:950;
    }

    .top-tides-modal{
      position:fixed;
      inset:0;
      z-index:6300;
      display:none;
      align-items:center;
      justify-content:center;
      padding:22px;
      background:rgba(5,11,22,.56);
      backdrop-filter:blur(8px);
      -webkit-backdrop-filter:blur(8px);
    }

    .top-tides-modal.open{
      display:flex;
    }

    .top-tides-modal-card{
      width:min(430px, calc(100vw - 32px));
      max-height:calc(100vh - 48px);
      overflow:auto;
      border-radius:24px;
      border:1px solid rgba(191,219,254,.18);
      background:rgba(11,18,32,.97);
      box-shadow:0 28px 70px rgba(0,0,0,.46);
      padding:16px;
      color:#eaf0ff;
    }

    .top-tides-modal-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
      margin-bottom:12px;
    }

    .top-tides-modal-head h3{
      margin:0;
      font-size:18px;
      line-height:1.1;
      font-weight:950;
      letter-spacing:-.03em;
      color:#ffffff;
    }

    .top-tides-modal-head p{
      margin:6px 0 0;
      color:var(--muted);
      font-size:11px;
      line-height:1.35;
      font-weight:750;
    }

    .top-tides-modal-close{
      width:34px;
      min-width:34px;
      height:34px;
      min-height:34px;
      padding:0;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      background:rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.14);
      color:#fff;
      font-size:20px;
      font-weight:950;
      line-height:1;
      transform:none !important;
      box-shadow:none !important;
    }

    .top-tides-modal-close:hover:not(:disabled){
      background:rgba(255,255,255,.12);
    }

    .top-tides-modal-list{
      display:grid;
      gap:9px;
    }

    .top-tide-modal-item{
      min-height:72px;
    }


    .datum-card .section-title{
      display:flex !important;
      align-items:center !important;
      justify-content:space-between !important;
      gap:8px !important;
    }

    .datum-card .title-with-help,
    body.observed-mode #leftPanel .datum-card .title-with-help,
    body.observed-mode.calendar-picker-open #leftPanel .datum-card .title-with-help{
      display:inline-flex !important;
      align-items:center !important;
      justify-content:flex-start !important;
      gap:6px !important;
      flex:0 0 auto !important;
      width:auto !important;
      min-width:0 !important;
      max-width:none !important;
      overflow:visible !important;
    }

    .datum-card .title-with-help h2,
    body.observed-mode #leftPanel .datum-card .title-with-help h2,
    body.observed-mode.calendar-picker-open #leftPanel .datum-card .title-with-help h2{
      flex:0 0 auto !important;
      width:auto !important;
      min-width:0 !important;
      max-width:none !important;
      margin:0 !important;
      white-space:nowrap !important;
      overflow:visible !important;
      text-overflow:clip !important;
    }

    .datum-card .help-btn,
    body.observed-mode #leftPanel .datum-card .help-btn,
    body.observed-mode.calendar-picker-open #leftPanel .datum-card .help-btn{
      flex:0 0 24px !important;
      width:24px !important;
      min-width:24px !important;
      height:24px !important;
      min-height:24px !important;
      margin-left:0 !important;
      padding:0 !important;
      display:inline-flex !important;
      align-items:center !important;
      justify-content:center !important;
      position:static !important;
      transform:none !important;
      vertical-align:middle !important;
    }

    .datum-card #datumPill,
    body.observed-mode #leftPanel .datum-card #datumPill,
    body.observed-mode.calendar-picker-open #leftPanel .datum-card #datumPill{
      margin-left:auto !important;
      flex:0 0 auto !important;
    }



    #calendarPopover,
    body #calendarPopover,
    body.observed-mode #calendarPopover,
    body.calendar-picker-open #calendarPopover,
    body.observed-mode.calendar-picker-open #calendarPopover{
      display:none !important;
      position:fixed !important;
      top:50% !important;
      left:50% !important;
      right:auto !important;
      bottom:auto !important;
      transform:translate(-50%, -50%) !important;
      z-index:9000 !important;
      width:min(410px, calc(100vw - 32px)) !important;
      height:auto !important;
      max-height:calc(100vh - 32px) !important;
      padding:0 !important;
      margin:0 !important;
      border:0 !important;
      border-radius:0 !important;
      background:transparent !important;
      box-shadow:none !important;
      backdrop-filter:none !important;
      -webkit-backdrop-filter:none !important;
      overflow:visible !important;
      pointer-events:none !important;
    }

    #calendarPopover.open,
    body #calendarPopover.open,
    body.observed-mode #calendarPopover.open,
    body.calendar-picker-open #calendarPopover.open,
    body.observed-mode.calendar-picker-open #calendarPopover.open{
      display:block !important;
      pointer-events:auto !important;
    }

    #calendarPopover .calendar-popover-grid,
    body #calendarPopover .calendar-popover-grid,
    body.observed-mode #calendarPopover .calendar-popover-grid,
    body.calendar-picker-open #calendarPopover .calendar-popover-grid,
    body.observed-mode.calendar-picker-open #calendarPopover .calendar-popover-grid{
      width:100% !important;
      max-width:100% !important;
      display:grid !important;
      grid-template-columns:1fr 1fr !important;
      gap:12px !important;
      align-items:end !important;
      padding:18px !important;
      border-radius:24px !important;
      border:1px solid rgba(191,219,254,.24) !important;
      background:rgba(11,18,32,.98) !important;
      box-shadow:0 28px 70px rgba(0,0,0,.46) !important;
      overflow:visible !important;
    }

    #calendarPopover .calendar-popover-grid::before{
      content:"Choose Month" !important;
      grid-column:1 / -1 !important;
      margin:0 0 2px !important;
      color:#ffffff !important;
      font-size:18px !important;
      line-height:1.15 !important;
      font-weight:900 !important;
      letter-spacing:-.025em !important;
    }

    #calendarPopover label,
    body #calendarPopover label,
    body.observed-mode #calendarPopover label,
    body.calendar-picker-open #calendarPopover label,
    body.observed-mode.calendar-picker-open #calendarPopover label{
      display:grid !important;
      gap:6px !important;
      color:var(--muted) !important;
      font-size:10px !important;
      font-weight:900 !important;
      text-transform:uppercase !important;
      letter-spacing:.08em !important;
      line-height:1.1 !important;
    }

    #calendarPopover select,
    body #calendarPopover select,
    body.observed-mode #calendarPopover select,
    body.calendar-picker-open #calendarPopover select,
    body.observed-mode.calendar-picker-open #calendarPopover select{
      width:100% !important;
      min-height:44px !important;
      height:44px !important;
      padding:0 12px !important;
      border-radius:14px !important;
      border:1px solid rgba(191,219,254,.18) !important;
      background:#172033 !important;
      color:var(--text) !important;
      font-size:13px !important;
      font-weight:850 !important;
      outline:none !important;
    }

    #calendarGoBtn,
    body #calendarGoBtn,
    body.observed-mode #calendarGoBtn,
    body.calendar-picker-open #calendarGoBtn,
    body.observed-mode.calendar-picker-open #calendarGoBtn{
      grid-column:1 / -1 !important;
      width:100% !important;
      min-height:44px !important;
      border-radius:14px !important;
      background:linear-gradient(180deg, rgba(96,165,250,.26), rgba(96,165,250,.15)) !important;
      border-color:rgba(191,219,254,.50) !important;
      color:#eef6ff !important;
      font-size:13px !important;
      font-weight:900 !important;
    }


    body.calendar-picker-open #leftPanel,
    body.observed-mode.calendar-picker-open #leftPanel,
    html.os-mac body.observed-mode.calendar-picker-open #leftPanel,
    html.os-windows body.observed-mode.calendar-picker-open #leftPanel{
      filter:none !important;
      opacity:1 !important;
      background:transparent !important;
    }

    body.calendar-picker-open #calendarCard,
    body.observed-mode.calendar-picker-open #calendarCard,
    body.calendar-picker-open #calendarGrid,
    body.observed-mode.calendar-picker-open #calendarGrid{
      filter:none !important;
      opacity:1 !important;
      background:inherit !important;
    }


    html body #calendarPopover,
    html body.observed-mode #calendarPopover,
    html body.calendar-picker-open #calendarPopover,
    html body.observed-mode.calendar-picker-open #calendarPopover{
      position:fixed !important;
      top:50% !important;
      left:50% !important;
      right:auto !important;
      bottom:auto !important;
      transform:translate(-50%, -50%) !important;
      z-index:12000 !important;
      width:min(410px, calc(100vw - 32px)) !important;
      max-width:calc(100vw - 32px) !important;
      height:auto !important;
      max-height:calc(100vh - 32px) !important;
      margin:0 !important;
      padding:0 !important;
      display:none !important;
      background:transparent !important;
      border:0 !important;
      box-shadow:none !important;
      overflow:visible !important;
      pointer-events:none !important;
    }

    html body #calendarPopover.open,
    html body.observed-mode #calendarPopover.open,
    html body.calendar-picker-open #calendarPopover.open,
    html body.observed-mode.calendar-picker-open #calendarPopover.open{
      display:block !important;
      pointer-events:auto !important;
    }

    html body #calendarPopover .calendar-popover-grid{
      position:relative !important;
      width:100% !important;
      display:grid !important;
      grid-template-columns:1fr 1fr !important;
      gap:12px !important;
      align-items:end !important;
      padding:18px !important;
      border-radius:24px !important;
      border:1px solid rgba(191,219,254,.24) !important;
      background:rgba(11,18,32,.98) !important;
      box-shadow:0 28px 70px rgba(0,0,0,.46) !important;
      overflow:visible !important;
    }

    html body #calendarPopover.open ~ *{
      filter:none;
    }



    .title-with-help{
      display:inline-flex !important;
      align-items:center !important;
      justify-content:flex-start !important;
      gap:6px !important;
      min-width:0 !important;
      max-width:100% !important;
    }

    .title-with-help h2{
      margin:0 !important;
      white-space:nowrap !important;
      overflow:visible !important;
      text-overflow:clip !important;
    }

    .help-btn{
      flex:0 0 24px !important;
      width:24px !important;
      min-width:24px !important;
      height:24px !important;
      min-height:24px !important;
      padding:0 !important;
      border-radius:999px !important;
      display:inline-flex !important;
      align-items:center !important;
      justify-content:center !important;
      font-size:12px !important;
      font-weight:950 !important;
      line-height:1 !important;
      background:rgba(255,255,255,.075) !important;
      color:#ffffff !important;
      border:1px solid rgba(255,255,255,.18) !important;
      box-shadow:none !important;
      transform:none !important;
    }

    .help-btn:hover:not(:disabled){
      background:rgba(96,165,250,.18) !important;
      border-color:rgba(191,219,254,.42) !important;
    }

    .legend-header{
      display:flex !important;
      align-items:flex-start !important;
      justify-content:space-between !important;
      gap:10px !important;
      margin-bottom:8px !important;
    }

    .legend-header-text{
      min-width:0 !important;
    }

    .legend-header-actions{
      display:flex !important;
      align-items:flex-start !important;
      justify-content:flex-end !important;
      flex:0 0 auto !important;
    }

    #legendDock .legend-help-btn{
      width:22px !important;
      min-width:22px !important;
      height:22px !important;
      min-height:22px !important;
      font-size:11px !important;
    }

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

    .legend-row{
      grid-template-columns:16px minmax(0, 1fr) !important;
      gap:11px !important;
      align-items:center !important;
      line-height:1.25 !important;
    }

    .legend-swatch{
      justify-self:center !important;
      flex:0 0 auto !important;
    }

    .top-tide-info-note{
      margin-top:9px;
      padding:9px 10px;
      border-radius:13px;
      border:1px solid rgba(191,219,254,.16);
      background:rgba(255,255,255,.035);
      color:var(--muted);
      font-size:10.5px;
      line-height:1.35;
      font-weight:750;
      text-align:center;
    }

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

    .info-modal-body{
      font-size:14px !important;
      line-height:1.55 !important;
    }

    .info-modal-body p{
      margin:0 0 12px;
    }

    .info-modal-body p:last-child{
      margin-bottom:0;
    }

    .info-modal-body ul{
      margin:0;
      padding-left:18px;
      display:grid;
      gap:8px;
    }

    .info-modal-body li{
      margin:0;
    }

    #timelineDock.top-tide-crest-only #timelineDayTabs,
    #timelineDock.top-tide-crest-only #hourSlider{
      opacity:.38;
      pointer-events:none;
    }

    #timelineDock.top-tide-crest-only .timeline-trackRow{
      opacity:.9;
    }



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

    #leftPanel .section-title .title-with-help,
    body.observed-mode #leftPanel .section-title .title-with-help,
    body.observed-mode.calendar-picker-open #leftPanel .section-title .title-with-help{
      display:inline-flex !important;
      align-items:center !important;
      justify-content:flex-start !important;
      gap:6px !important;
      flex:0 0 auto !important;
      width:auto !important;
      min-width:0 !important;
      max-width:none !important;
      overflow:visible !important;
    }

    #leftPanel .section-title .title-with-help h2,
    body.observed-mode #leftPanel .section-title .title-with-help h2,
    body.observed-mode.calendar-picker-open #leftPanel .section-title .title-with-help h2{
      flex:0 0 auto !important;
      width:auto !important;
      min-width:0 !important;
      max-width:none !important;
      margin:0 !important;
      white-space:nowrap !important;
      overflow:visible !important;
      text-overflow:clip !important;
    }

    #leftPanel .section-title .title-with-help .help-btn,
    body.observed-mode #leftPanel .section-title .title-with-help .help-btn,
    body.observed-mode.calendar-picker-open #leftPanel .section-title .title-with-help .help-btn{
      position:static !important;
      flex:0 0 24px !important;
      width:24px !important;
      min-width:24px !important;
      height:24px !important;
      min-height:24px !important;
      margin:0 !important;
      padding:0 !important;
      transform:none !important;
      display:inline-flex !important;
      align-items:center !important;
      justify-content:center !important;
    }

    #leftPanel .section-title > .pill,
    body.observed-mode #leftPanel .section-title > .pill,
    body.observed-mode.calendar-picker-open #leftPanel .section-title > .pill{
      margin-left:auto !important;
      flex:0 0 auto !important;
    }

    .top-tide-info-note{
      display: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) {
      html.os-windows,
      html.win-compact-ui{
        --win-left-width:320px;
        --win-right-width:220px;
        --win-left-x:16px;
        --win-right-x:16px;
        --win-top-y:16px;
        --win-bottom-y:118px;
      }

      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,
      html.os-windows body.observed-tight #leftPanel,
      html.os-windows body.observed-ultra-tight #leftPanel,
      html.os-windows body.observed-fit-tight #leftPanel,
      html.os-windows body.observed-fit-ultra #leftPanel{
        position:fixed !important;
        display:flex !important;
        flex-direction:column !important;
        grid-template-columns:none !important;
        top:var(--win-top-y) !important;
        bottom:var(--win-bottom-y) !important;
        left:var(--win-left-x) !important;
        width:var(--win-left-width) !important;
        min-width:var(--win-left-width) !important;
        max-width:var(--win-left-width) !important;
        gap:8px !important;
        padding:0 3px 4px 0 !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        transform:none !important;
        scale:1 !important;
        zoom:var(--win-ui-zoom, .86) !important;
        align-content:normal !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:9px 11px !important;
        border-radius:16px !important;
        min-height:auto !important;
        box-shadow:0 12px 24px rgba(15,23,42,.16) !important;
      }

      html.os-windows #leftPanel .compact-card,
      html.win-compact-ui #leftPanel .compact-card{
        min-height:80px !important;
      }

      html.os-windows #leftPanel .datum-card,
      html.win-compact-ui #leftPanel .datum-card{
        min-height:86px !important;
      }

      html.os-windows #leftPanel .opacity-card,
      html.win-compact-ui #leftPanel .opacity-card{
        min-height:74px !important;
        padding-bottom:8px !important;
      }

      html.os-windows .section-title,
      html.win-compact-ui .section-title{
        margin-bottom:5px !important;
        min-height:22px !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:12px !important;
        line-height:1.1 !important;
      }

      html.os-windows .title-with-help,
      html.win-compact-ui .title-with-help{
        gap:5px !important;
      }

      html.os-windows .help-btn,
      html.win-compact-ui .help-btn{
        width:20px !important;
        min-width:20px !important;
        height:20px !important;
        min-height:20px !important;
        font-size:10px !important;
      }

      html.os-windows .pill,
      html.win-compact-ui .pill{
        min-height:20px !important;
        padding:0 7px !important;
        font-size:9px !important;
      }

      html.os-windows .button-grid-2,
      html.win-compact-ui .button-grid-2,
      html.os-windows .button-grid-3,
      html.win-compact-ui .button-grid-3,
      html.os-windows .segmented-control,
      html.win-compact-ui .segmented-control{
        gap:5px !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:32px !important;
        padding:6px 8px !important;
        font-size:11px !important;
        border-radius:11px !important;
      }

      html.os-windows .snapshot-card .stat-grid,
      html.win-compact-ui .snapshot-card .stat-grid{
        gap:7px !important;
      }

      html.os-windows .snapshot-card .stat-box,
      html.win-compact-ui .snapshot-card .stat-box{
        min-height:62px !important;
        padding:9px 10px !important;
        border-radius:14px !important;
        gap:3px !important;
      }

      html.os-windows .stat-label,
      html.win-compact-ui .stat-label{
        font-size:9px !important;
        letter-spacing:.10em !important;
      }

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

      html.os-windows #stageText,
      html.win-compact-ui #stageText{
        font-size:20px !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:10px !important;
      }

      html.os-windows .calendar-head,
      html.win-compact-ui .calendar-head,
      html.os-windows .calendar-grid,
      html.win-compact-ui .calendar-grid{
        gap:5px !important;
      }

      html.os-windows .calendar-head div,
      html.win-compact-ui .calendar-head div{
        font-size:11px !important;
      }

      html.os-windows .calendar-day,
      html.win-compact-ui .calendar-day{
        min-height:36px !important;
        border-radius:11px !important;
        font-size:13px !important;
      }

      html.os-windows .day-nav,
      html.win-compact-ui .day-nav{
        grid-template-columns:38px minmax(0, 1fr) 38px !important;
        gap:6px !important;
      }

      html.os-windows .calendar-nav-btn,
      html.win-compact-ui .calendar-nav-btn,
      html.os-windows .day-nav-center,
      html.win-compact-ui .day-nav-center{
        min-height:42px !important;
        border-radius:13px !important;
      }

      html.os-windows .calendar-key,
      html.win-compact-ui .calendar-key{
        gap:5px !important;
        margin-top:5px !important;
      }

      html.os-windows .calendar-key-item,
      html.win-compact-ui .calendar-key-item{
        min-height:28px !important;
        padding:0 8px !important;
        font-size:10px !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{
        position:fixed !important;
        top:var(--win-top-y) !important;
        left:318px !important;
        width:182px !important;
        max-width:182px !important;
        padding:10px !important;
        transform:none !important;
        scale:1 !important;
        zoom:var(--win-ui-zoom, .86) !important;
        z-index:1450 !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        max-height:calc(100vh - 150px) !important;
      }

      html.os-windows .legend-list,
      html.win-compact-ui .legend-list{
        gap:7px !important;
      }

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

      html.os-windows .legend-swatch,
      html.win-compact-ui .legend-swatch{
        width:11px !important;
        height:11px !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{
        position:fixed !important;
        top:var(--win-top-y) !important;
        right:var(--win-right-x) !important;
        bottom:var(--win-bottom-y) !important;
        width:var(--win-right-width) !important;
        min-width:var(--win-right-width) !important;
        max-width:var(--win-right-width) !important;
        gap:8px !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        transform:none !important;
        scale:1 !important;
        zoom:var(--win-ui-zoom, .86) !important;
      }

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

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

      html.os-windows .toggle,
      html.win-compact-ui .toggle{
        width:38px !important;
        height:22px !important;
      }

      html.os-windows .toggle::after,
      html.win-compact-ui .toggle::after{
        width:16px !important;
        height:16px !important;
      }

      html.os-windows .toggle.on::after,
      html.win-compact-ui .toggle.on::after{
        left:19px !important;
      }

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

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

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

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

      html.os-windows #mapTitleBadge,
      html.win-compact-ui #mapTitleBadge{
        transform:translateX(-50%) !important;
        zoom:var(--win-ui-zoom, .86) !important;
        transform-origin:top center !important;
      }

      html.os-windows .leaflet-top.leaflet-right .leaflet-control-zoom,
      html.win-compact-ui .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-top:16px !important;
        margin-right:240px !important;
        transform:none !important;
        zoom:var(--win-ui-zoom, .86) !important;
        transform-origin:top right !important;
      }

      html.os-windows #timelineDock,
      html.win-compact-ui #timelineDock,
      html.os-windows body.observed-mode #timelineDock,
      html.win-compact-ui body.observed-mode #timelineDock,
      html.os-windows body.observed-mode.calendar-picker-open #timelineDock,
      html.win-compact-ui body.observed-mode.calendar-picker-open #timelineDock{
        left:16px !important;
        right:16px !important;
        bottom:12px !important;
        padding:20px 10px 8px !important;
        border-radius:15px !important;
        transform:none !important;
        zoom:1 !important;
      }

      html.os-windows .playFab,
      html.win-compact-ui .playFab{
        width:38px !important;
        min-width:38px !important;
        height:38px !important;
        min-height:38px !important;
        font-size:18px !important;
      }

      html.os-windows .miniAction,
      html.win-compact-ui .miniAction{
        min-height:28px !important;
        padding:0 9px !important;
        font-size:9px !important;
      }

      html.os-windows .timeline-day,
      html.win-compact-ui .timeline-day{
        padding:7px 6px !important;
        font-size:10px !important;
      }

      html.os-windows #timelineBubble,
      html.win-compact-ui #timelineBubble{
        top:-10px !important;
        padding:5px 10px !important;
        font-size:11px !important;
      }

      html.os-windows .timeline-scale,
      html.win-compact-ui .timeline-scale,
      html.os-windows .timeline-end,
      html.win-compact-ui .timeline-end{
        font-size: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) {
      html.os-windows,
      html.win-compact-ui{
        --win-ui-zoom:.78;
        --win-bottom-y:104px;
      }
    }


    #playBtn{
      pointer-events:auto !important;
      position:relative !important;
      z-index:4 !important;
      touch-action:manipulation !important;
    }

    #timelineDock,
    #timelineDock *{
      pointer-events:auto;
    }

    #legendDock.legend-card,
    #legendDock.map-floating.legend-card,
    body.observed-mode #legendDock.legend-card,
    body.calendar-picker-open #legendDock.legend-card{
      width:158px !important;
      max-width:158px !important;
      min-width:158px !important;
      padding:10px 10px 11px !important;
    }

    #legendDock .legend-header{
      align-items:flex-start !important;
      gap:6px !important;
    }

    #legendDock .legend-header-actions{
      gap:4px !important;
    }

    #legendDock .legend-title{
      font-size:12px !important;
      line-height:1.08 !important;
    }

    #legendDock .legend-body{
      max-height:min(68vh, 540px) !important;
      overflow-y:auto !important;
      overflow-x:hidden !important;
      padding-right:3px !important;
    }

    #legendDock .legend-list{
      gap:7px !important;
    }

    #legendDock .legend-row{
      grid-template-columns:12px minmax(0, 1fr) !important;
      column-gap:7px !important;
      row-gap:0 !important;
      font-size:10px !important;
      line-height:1.18 !important;
      align-items:start !important;
    }

    #legendDock .legend-label,
    #legendDock .legend-row span:last-child{
      overflow-wrap:break-word !important;
      word-break:normal !important;
      hyphens:auto !important;
    }

    #legendDock .legend-swatch{
      width:10px !important;
      height:10px !important;
      margin-top:1px !important;
      border-radius:4px !important;
    }

    #legendDock .legend-swatch.legend-line{
      width:12px !important;
      border-top-width:3px !important;
      margin-top:5px !important;
    }

    #legendDock .legend-help-btn,
    #legendDock .legend-collapse-btn{
      width:22px !important;
      min-width:22px !important;
      height:22px !important;
      min-height:22px !important;
      font-size:12px !important;
    }

    #legendDock.legend-collapsed{
      height:auto !important;
      min-height:0 !important;
      padding-bottom:10px !important;
    }

    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse) {
      #legendDock.legend-card,
      #legendDock.map-floating.legend-card,
      body.observed-mode #legendDock.legend-card,
      body.calendar-picker-open #legendDock.legend-card{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
      }
    }


    #timelineDock,
    body.observed-mode #timelineDock,
    body.observed-mode.calendar-picker-open #timelineDock{
      z-index:1700 !important;
      pointer-events:auto !important;
    }

    #timelineDock .timeline-controls,
    #timelineDock .playFab,
    #playBtn{
      pointer-events:auto !important;
      position:relative !important;
      z-index:1710 !important;
      touch-action:manipulation !important;
      cursor:pointer !important;
    }

    #playBtn:disabled{
      opacity:1 !important;
      cursor:pointer !important;
      pointer-events:auto !important;
    }

    #legendDock.legend-card,
    #legendDock.map-floating.legend-card,
    body.observed-mode #legendDock.legend-card,
    body.calendar-picker-open #legendDock.legend-card{
      width:144px !important;
      max-width:144px !important;
      min-width:144px !important;
      padding:10px 9px 11px !important;
      max-height:min(78vh, 620px) !important;
    }

    #legendDock .legend-body{
      max-height:min(72vh, 570px) !important;
      overflow-y:auto !important;
      overflow-x:hidden !important;
      padding-right:3px !important;
    }

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

    #legendDock .legend-row{
      grid-template-columns:11px minmax(0, 1fr) !important;
      gap:6px !important;
      align-items:start !important;
      font-size:9.5px !important;
      line-height:1.18 !important;
    }

    #legendDock .legend-swatch{
      width:9px !important;
      height:9px !important;
      margin-top:2px !important;
      border-radius:4px !important;
    }

    #legendDock .legend-swatch.legend-line{
      width:11px !important;
      border-top-width:3px !important;
      margin-top:5px !important;
    }

    #legendDock .legend-help-btn,
    #legendDock .legend-collapse-btn{
      width:21px !important;
      min-width:21px !important;
      height:21px !important;
      min-height:21px !important;
      font-size:11px !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 #legendDock.legend-card,
      html.win-compact-ui #legendDock.legend-card,
      html.os-windows #legendDock.map-floating.legend-card,
      html.win-compact-ui #legendDock.map-floating.legend-card,
      html.os-windows body.observed-mode #legendDock.legend-card,
      html.win-compact-ui body.observed-mode #legendDock.legend-card{
        left:356px !important;
        right:auto !important;
        width:146px !important;
        min-width:146px !important;
        max-width:146px !important;
      }

      html.os-windows #leftPanel,
      html.win-compact-ui #leftPanel{
        z-index:1250 !important;
      }

      html.os-windows #timelineDock,
      html.win-compact-ui #timelineDock{
        z-index:2600 !important;
      }

      html.os-windows #playBtn,
      html.win-compact-ui #playBtn{
        pointer-events:auto !important;
        position:relative !important;
        z-index:2700 !important;
        opacity:1 !important;
      }
    }


    body.observed-mode #leftPanel{
      display:flex !important;
      flex-direction:column !important;
      grid-template-columns:none !important;
      align-content:stretch !important;
    }

    body.observed-mode #leftPanel > .data-source-card{
      order:1 !important;
    }

    body.observed-mode #leftPanel > #calendarCard.calendar-card.active{
      order:2 !important;
      display:grid !important;
      grid-column:auto !important;
    }

    body.observed-mode #leftPanel > .overlay-card{
      order:3 !important;
    }

    body.observed-mode #leftPanel > .datum-card{
      order:4 !important;
    }

    body.observed-mode #leftPanel > .snapshot-card{
      order:5 !important;
    }

    body.observed-mode #leftPanel > .opacity-card{
      order:6 !important;
    }

    body.observed-mode #leftPanel > .mobile-top-tides-card{
      order:7 !important;
    }

    body.observed-mode #leftPanel > .forecast-scenario-card{
      display:none !important;
    }


    #legendDock .legend-title{
      font-size:13.5px !important;
      line-height:1.1 !important;
      letter-spacing:-.02em !important;
    }

    #legendDock .legend-row{
      font-size:10.7px !important;
      line-height:1.24 !important;
      font-weight:820 !important;
      grid-template-columns:12px minmax(0, 1fr) !important;
      column-gap:7px !important;
      row-gap:0 !important;
    }

    #legendDock .legend-swatch{
      width:10px !important;
      height:10px !important;
      margin-top:2px !important;
    }

    #legendDock .legend-swatch.legend-line{
      width:12px !important;
      margin-top:6px !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) {
      #legendDock.legend-card,
      #legendDock.map-floating.legend-card,
      body.observed-mode #legendDock.legend-card,
      body.calendar-picker-open #legendDock.legend-card{
        width:150px !important;
        min-width:150px !important;
        max-width:150px !important;
      }

      html.os-windows #legendDock.legend-card,
      html.win-compact-ui #legendDock.legend-card,
      html.os-windows #legendDock.map-floating.legend-card,
      html.win-compact-ui #legendDock.map-floating.legend-card,
      html.os-windows body.observed-mode #legendDock.legend-card,
      html.win-compact-ui body.observed-mode #legendDock.legend-card{
        left:356px !important;
        right:auto !important;
        width:150px !important;
        min-width:150px !important;
        max-width:150px !important;
      }
    }



    #legendDock.legend-card,
    #legendDock.map-floating.legend-card,
    body.observed-mode #legendDock.legend-card,
    body.calendar-picker-open #legendDock.legend-card{
      width:156px !important;
      min-width:156px !important;
      max-width:156px !important;
      height:auto !important;
      min-height:0 !important;
      max-height:min(82vh, 680px) !important;
      padding:10px 9px 13px !important;
      overflow:visible !important;
    }

    #legendDock .legend-body{
      max-height:min(78vh, 630px) !important;
      overflow-y:auto !important;
      overflow-x:hidden !important;
      padding-right:3px !important;
      padding-bottom:8px !important;
    }

    #legendDock .legend-list{
      gap:8px !important;
      padding-bottom:4px !important;
    }

    #legendDock .legend-row.legend-row-boundary{
      display:grid !important;
      grid-template-columns:13px minmax(0, 1fr) !important;
      align-items:center !important;
      min-height:20px !important;
      margin-top:5px !important;
      padding-top:8px !important;
      padding-bottom:2px !important;
      line-height:1.18 !important;
      overflow:visible !important;
    }

    #legendDock .legend-row.legend-row-boundary span:last-child,
    #legendDock .legend-row.legend-row-boundary .legend-label{
      display:block !important;
      white-space:normal !important;
      overflow:visible !important;
      text-overflow:clip !important;
      word-break:normal !important;
      overflow-wrap:normal !important;
      hyphens:none !important;
      font-size:10.2px !important;
      line-height:1.16 !important;
    }

    #legendDock .legend-row.legend-row-boundary .legend-swatch.legend-line{
      width:13px !important;
      margin-top:0 !important;
      align-self:center !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 #legendDock.legend-card,
      html.win-compact-ui #legendDock.legend-card,
      html.os-windows #legendDock.map-floating.legend-card,
      html.win-compact-ui #legendDock.map-floating.legend-card,
      html.os-windows body.observed-mode #legendDock.legend-card,
      html.win-compact-ui body.observed-mode #legendDock.legend-card{
        left:356px !important;
        right:auto !important;
        width:156px !important;
        min-width:156px !important;
        max-width:156px !important;
      }
    }


    #legendDock.legend-card,
    #legendDock.map-floating.legend-card{
      overflow:visible !important;
      padding-bottom:18px !important;
    }

    #legendDock .legend-body{
      overflow-y:visible !important;
      overflow-x:visible !important;
      max-height:none !important;
      padding-bottom:14px !important;
    }

    #legendDock .legend-list{
      overflow:visible !important;
      padding-bottom:10px !important;
    }

    #legendDock .legend-row.legend-row-boundary{
      display:grid !important;
      grid-template-columns:16px minmax(0, 1fr) !important;
      column-gap:8px !important;
      align-items:center !important;
      min-height:30px !important;
      margin-top:8px !important;
      padding-top:12px !important;
      padding-bottom:6px !important;
      overflow:visible !important;
      border-top:1px solid rgba(255,255,255,.10) !important;
    }

    #legendDock .legend-row.legend-row-boundary .legend-swatch.legend-line{
      display:block !important;
      width:16px !important;
      min-width:16px !important;
      height:4px !important;
      min-height:4px !important;
      border:0 !important;
      border-top:0 !important;
      border-radius:999px !important;
      background:var(--boundary-color) !important;
      margin:0 !important;
      align-self:center !important;
      justify-self:start !important;
      overflow:visible !important;
      transform:none !important;
    }

    #legendDock .legend-row.legend-row-boundary .legend-boundary-label,
    #legendDock .legend-row.legend-row-boundary .legend-label,
    #legendDock .legend-row.legend-row-boundary span:last-child{
      display:block !important;
      white-space:normal !important;
      overflow:visible !important;
      text-overflow:clip !important;
      word-break:normal !important;
      overflow-wrap:normal !important;
      hyphens:none !important;
      font-size:10.8px !important;
      line-height:1.18 !important;
      padding-bottom:1px !important;
    }

    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse) {
      #legendDock .legend-body{
        overflow-y:auto !important;
        overflow-x:hidden !important;
        max-height:min(70vh, 620px) !important;
      }
    }


    #legendDock.legend-card,
    #legendDock.map-floating.legend-card{
      padding-bottom:9px !important;
    }

    #legendDock .legend-body{
      padding-bottom:0 !important;
    }

    #legendDock .legend-list{
      padding-bottom:0 !important;
      gap:7px !important;
    }

    #legendDock .legend-row.legend-row-boundary{
      min-height:22px !important;
      margin-top:5px !important;
      padding-top:9px !important;
      padding-bottom:0 !important;
      align-items:center !important;
      overflow:visible !important;
    }

    #legendDock .legend-row.legend-row-boundary .legend-swatch.legend-line{
      display:block !important;
      width:16px !important;
      min-width:16px !important;
      height:4px !important;
      min-height:4px !important;
      border:0 !important;
      border-top:0 !important;
      border-radius:999px !important;
      background:var(--boundary-color) !important;
      margin:0 !important;
      align-self:center !important;
      justify-self:start !important;
      overflow:visible !important;
    }

    #legendDock .legend-row.legend-row-boundary .legend-boundary-label,
    #legendDock .legend-row.legend-row-boundary .legend-label,
    #legendDock .legend-row.legend-row-boundary span:last-child{
      line-height:1.12 !important;
      padding-bottom:0 !important;
    }


    #rightRail,
    body.observed-mode #rightRail,
    body.calendar-picker-open #rightRail{
      background:transparent !important;
      box-shadow:none !important;
      filter:none !important;
      backdrop-filter:none !important;
      -webkit-backdrop-filter:none !important;
      overflow-x:visible !important;
    }

    #rightRail::before,
    #rightRail::after{
      content:none !important;
      display:none !important;
    }

    #rightRail .rail-card{
      box-shadow:none !important;
      filter:none !important;
      backdrop-filter:none !important;
      -webkit-backdrop-filter:none !important;
    }

    #rightRail .rail-card::before,
    #rightRail .rail-card::after{
      content:none !important;
      display:none !important;
    }



    .export-stage-legend{
      background:rgba(11,18,32,.93) !important;
      box-shadow:0 12px 26px rgba(0,0,0,.22) !important;
      backdrop-filter:none !important;
      -webkit-backdrop-filter:none !important;
      overflow:hidden !important;
      height:auto !important;
      max-height:none !important;
      padding:14px !important;
      border-radius:22px !important;
    }

    .export-stage-legend::before,
    .export-stage-legend::after,
    .export-stage-legend *::before,
    .export-stage-legend *::after{
      box-shadow:none !important;
      filter:none !important;
    }

    .export-stage-legend .legend-row{
      background:transparent !important;
      box-shadow:none !important;
      overflow:visible !important;
    }

    .export-stage-legend .legend-row-boundary{
      margin-top:8px !important;
      padding-top:10px !important;
      padding-bottom:2px !important;
      min-height:24px !important;
      border-top:1px solid rgba(255,255,255,.12) !important;
    }

    .export-stage-legend .legend-swatch.legend-line{
      height:4px !important;
      min-height:4px !important;
      border:0 !important;
      border-top:0 !important;
      background:var(--boundary-color) !important;
      border-radius:999px !important;
      align-self:center !important;
    }

    #downloadExtentControl button{
      text-transform:none;
    }


.export-extent-help{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:center;
  margin-top:6px;
  padding:8px 10px;
  border:1px solid rgba(191,219,254,.12);
  border-radius:13px;
  background:rgba(255,255,255,.035);
  color:rgba(199,210,254,.86);
  font-size:10.5px;
  line-height:1.35;
  text-transform:none;
  letter-spacing:normal;
}
.export-extent-help strong{
  color:#eaf0ff;
  font-weight:950;
}
.export-adjust-view-btn{
  min-height:30px !important;
  padding:0 10px !important;
  border-radius:999px !important;
  font-size:10px !important;
  font-weight:900 !important;
  white-space:nowrap;
  background:rgba(96,165,250,.12) !important;
  border-color:rgba(191,219,254,.28) !important;
  color:#dbeafe !important;
  box-shadow:none !important;
  transform:none !important;
}
.export-adjust-view-btn:hover{
  background:rgba(96,165,250,.18) !important;
  border-color:rgba(191,219,254,.48) !important;
  box-shadow:none !important;
  transform:none !important;
}

.timeline-flood-key{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 7px;
  padding:0 4px;
  color:#dbe8ff;
  font-size:10.5px;
  font-weight:850;
  line-height:1.1;
}
.timeline-key-item{
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
  opacity:.96;
}
.timeline-key-swatch{
  width:11px;
  height:11px;
  border-radius:999px;
  display:inline-block;
  border:1px solid rgba(255,255,255,.20);
  box-shadow:0 1px 3px rgba(0,0,0,.22);
}
.timeline-key-swatch.no-flood{ background:rgba(121,221,90,.92); }
.timeline-key-swatch.minor-flood{ background:rgba(213,138,0,.92); }
.timeline-key-swatch.moderate-flood{ background:rgba(216,75,103,.92); }
.timeline-key-swatch.major-flood{ background:rgba(124,92,224,.92); }

#timelineDock.top-tide-crest-only .timeline-flood-key{
  opacity:.42;
}

@media (max-width:720px){
  .export-extent-help{
    grid-template-columns:1fr;
  }
  .export-adjust-view-btn{
    width:100%;
  }
  .timeline-flood-key{
    justify-content:flex-start;
    gap:8px;
    font-size:9.5px;
  }
}


#timelineDock{
  padding-top:22px !important;
  padding-bottom:8px !important;
}
#timelineDock .timeline-top{
  margin-bottom:6px !important;
}
#timelineDock .timeline-flood-key{
  order:2;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  margin:0 0 5px 0 !important;
  padding:0 6px !important;
  font-size:10px !important;
  line-height:1.05 !important;
}
#timelineDock .timeline-days{
  order:3;
  margin-bottom:5px !important;
  min-height:16px !important;
  height:16px !important;
  max-height:16px !important;
  border-radius:8px !important;
}
#timelineDock .timeline-day{
  min-height:16px !important;
  height:16px !important;
  max-height:16px !important;
  padding:2px 6px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:9px !important;
  line-height:1 !important;
}
#timelineDock .timeline-trackRow{
  margin-top:1px !important;
}
#timelineDock #hourSlider{
  height:3px !important;
}
#timelineDock #hourSlider::-webkit-slider-thumb{
  width:14px !important;
  height:14px !important;
}
#timelineDock #hourSlider::-moz-range-thumb{
  width:14px !important;
  height:14px !important;
}
html.os-windows #timelineDock,
html.win-compact-ui #timelineDock{
  padding-top:20px !important;
  padding-bottom:7px !important;
}
html.os-windows #timelineDock .timeline-days,
html.win-compact-ui #timelineDock .timeline-days,
html.os-windows #timelineDock .timeline-day,
html.win-compact-ui #timelineDock .timeline-day{
  min-height:14px !important;
  height:14px !important;
  max-height:14px !important;
}
html.os-windows #timelineDock .timeline-day,
html.win-compact-ui #timelineDock .timeline-day{
  padding:1px 5px !important;
  font-size:8px !important;
}
html.os-windows #timelineDock .timeline-flood-key,
html.win-compact-ui #timelineDock .timeline-flood-key{
  margin-bottom:4px !important;
  font-size:9px !important;
  gap:8px !important;
}
@media (max-width:720px){
  #timelineDock .timeline-flood-key{
    justify-content:flex-start !important;
    gap:7px !important;
    font-size:9px !important;
  }
  #timelineDock .timeline-days,
  #timelineDock .timeline-day{
    min-height:14px !important;
    height:14px !important;
    max-height:14px !important;
  }
  #timelineDock .timeline-day{
    font-size:8px !important;
    padding:1px 4px !important;
  }
}



#timelineDock{
  padding-top:20px !important;
  padding-bottom:7px !important;
}

#timelineDock .timeline-flood-key{
  margin:0 0 5px 0 !important;
  font-size:10.5px !important;
  line-height:1.05 !important;
}

#timelineDock .timeline-days{
  min-height:10px !important;
  height:10px !important;
  max-height:10px !important;
  margin-bottom:7px !important;
  border-radius:999px !important;
  overflow:visible !important;
  align-items:center !important;
  background:rgba(255,255,255,.035) !important;
}

#timelineDock .timeline-day{
  min-height:10px !important;
  height:10px !important;
  max-height:10px !important;
  padding:0 6px !important;
  border-radius:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
  font-size:10.5px !important;
  line-height:10px !important;
  font-weight:900 !important;
  color:#f8fbff !important;
  text-shadow:0 1px 2px rgba(3,8,18,.70), 0 0 5px rgba(3,8,18,.35) !important;
}

#timelineDock .timeline-day:first-child{
  border-top-left-radius:999px !important;
  border-bottom-left-radius:999px !important;
}

#timelineDock .timeline-day:last-child{
  border-top-right-radius:999px !important;
  border-bottom-right-radius:999px !important;
}

#timelineDock .timeline-day.active{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

#timelineDock .timeline-trackRow{
  margin-top:0 !important;
}

#timelineDock #hourSlider{
  height:2px !important;
}

#timelineDock #hourSlider::-webkit-slider-thumb{
  width:13px !important;
  height:13px !important;
}

#timelineDock #hourSlider::-moz-range-thumb{
  width:13px !important;
  height:13px !important;
}

html.os-windows #timelineDock .timeline-days,
html.win-compact-ui #timelineDock .timeline-days{
  min-height:9px !important;
  height:9px !important;
  max-height:9px !important;
}

html.os-windows #timelineDock .timeline-day,
html.win-compact-ui #timelineDock .timeline-day{
  min-height:9px !important;
  height:9px !important;
  max-height:9px !important;
  padding:0 5px !important;
  font-size:10px !important;
  line-height:9px !important;
}

html.os-windows #timelineDock .timeline-flood-key,
html.win-compact-ui #timelineDock .timeline-flood-key{
  font-size:10px !important;
}

@media (max-width:720px){
  #timelineDock .timeline-days,
  #timelineDock .timeline-day{
    min-height:9px !important;
    height:9px !important;
    max-height:9px !important;
  }
  #timelineDock .timeline-day{
    font-size:9.5px !important;
    line-height:9px !important;
    padding:0 4px !important;
  }
}


#timelineDock{
  height:96px !important;
  min-height:96px !important;
  max-height:96px !important;
  padding:0 16px 10px !important;
  border-radius:16px !important;
  overflow:visible !important;
}

#timelineDock .timeline-top{
  position:absolute !important;
  top:18px !important;
  left:18px !important;
  right:auto !important;
  margin:0 !important;
  z-index:6 !important;
  display:flex !important;
  align-items:center !important;
}

#timelineDock .timeline-controls{
  gap:7px !important;
}

#timelineDock .playFab{
  width:40px !important;
  min-width:40px !important;
  height:40px !important;
  min-height:40px !important;
  font-size:20px !important;
}

#timelineDock .miniAction{
  min-height:28px !important;
  height:28px !important;
  padding:0 10px !important;
  font-size:9px !important;
}

#timelineDock .timeline-flood-key{
  position:absolute !important;
  top:35px !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  z-index:5 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  gap:12px !important;
  margin:0 !important;
  padding:0 8px !important;
  font-size:11px !important;
  line-height:1.05 !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

#timelineDock .timeline-key-swatch{
  width:12px !important;
  height:12px !important;
}

#timelineDock .timeline-days{
  position:absolute !important;
  left:18px !important;
  right:18px !important;
  bottom:31px !important;
  min-height:17px !important;
  height:17px !important;
  max-height:17px !important;
  margin:0 !important;
  border-radius:999px !important;
  overflow:hidden !important;
  align-items:stretch !important;
  background:rgba(255,255,255,.04) !important;
}

#timelineDock .timeline-day{
  min-height:17px !important;
  height:17px !important;
  max-height:17px !important;
  padding:0 8px !important;
  border-radius:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  font-size:11.5px !important;
  line-height:17px !important;
  font-weight:950 !important;
  color:#f8fbff !important;
  text-shadow:0 1px 2px rgba(3,8,18,.82), 0 0 5px rgba(3,8,18,.38) !important;
}

#timelineDock .timeline-day.active{
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.58), inset 0 1px 0 rgba(255,255,255,.20) !important;
}

#timelineDock .timeline-trackRow{
  position:absolute !important;
  left:18px !important;
  right:18px !important;
  bottom:8px !important;
  margin:0 !important;
  z-index:4 !important;
}

#timelineDock .timeline-end,
#timelineDock .timeline-scale{
  font-size:10px !important;
  line-height:1 !important;
}

#timelineBubble{
  top:-15px !important;
  z-index:7 !important;
}

html.os-windows #timelineDock,
html.win-compact-ui #timelineDock{
  height:92px !important;
  min-height:92px !important;
  max-height:92px !important;
  padding:0 14px 9px !important;
}

html.os-windows #timelineDock .timeline-top,
html.win-compact-ui #timelineDock .timeline-top{
  top:16px !important;
  left:16px !important;
}

html.os-windows #timelineDock .playFab,
html.win-compact-ui #timelineDock .playFab{
  width:38px !important;
  min-width:38px !important;
  height:38px !important;
  min-height:38px !important;
  font-size:19px !important;
}

html.os-windows #timelineDock .miniAction,
html.win-compact-ui #timelineDock .miniAction{
  min-height:27px !important;
  height:27px !important;
  font-size:8.5px !important;
}

html.os-windows #timelineDock .timeline-flood-key,
html.win-compact-ui #timelineDock .timeline-flood-key{
  top:33px !important;
  font-size:10.5px !important;
  gap:10px !important;
}

html.os-windows #timelineDock .timeline-days,
html.win-compact-ui #timelineDock .timeline-days{
  left:16px !important;
  right:16px !important;
  bottom:29px !important;
  min-height:16px !important;
  height:16px !important;
  max-height:16px !important;
}

html.os-windows #timelineDock .timeline-day,
html.win-compact-ui #timelineDock .timeline-day{
  min-height:16px !important;
  height:16px !important;
  max-height:16px !important;
  font-size:11px !important;
  line-height:16px !important;
  padding:0 7px !important;
}

html.os-windows #timelineDock .timeline-trackRow,
html.win-compact-ui #timelineDock .timeline-trackRow{
  left:16px !important;
  right:16px !important;
  bottom:7px !important;
}

@media (max-width:720px){
  #timelineDock{
    height:96px !important;
    min-height:96px !important;
    max-height:96px !important;
  }
  #timelineDock .timeline-flood-key{
    top:38px !important;
    left:14px !important;
    right:14px !important;
    transform:none !important;
    justify-content:center !important;
    white-space:normal !important;
    font-size:9.5px !important;
    gap:7px !important;
  }
  #timelineDock .timeline-days,
  #timelineDock .timeline-day{
    min-height:15px !important;
    height:15px !important;
    max-height:15px !important;
  }
  #timelineDock .timeline-day{
    font-size:9.5px !important;
    line-height:15px !important;
    padding:0 4px !important;
  }
}


#timelineDock{
  height:112px !important;
  min-height:112px !important;
  max-height:112px !important;
  padding:0 16px 10px !important;
  overflow:visible !important;
}

#timelineDock .timeline-top{
  top:16px !important;
  left:18px !important;
  z-index:8 !important;
}

#timelineDock .playFab{
  width:42px !important;
  min-width:42px !important;
  height:42px !important;
  min-height:42px !important;
  font-size:21px !important;
  flex:0 0 42px !important;
}

#timelineDock .miniAction{
  min-height:29px !important;
  height:29px !important;
}

#timelineDock .timeline-flood-key{
  top:48px !important;
  z-index:5 !important;
  font-size:11.5px !important;
  gap:13px !important;
}

#timelineDock .timeline-days{
  bottom:32px !important;
  min-height:18px !important;
  height:18px !important;
  max-height:18px !important;
}

#timelineDock .timeline-day{
  min-height:18px !important;
  height:18px !important;
  max-height:18px !important;
  font-size:12px !important;
  line-height:18px !important;
}

#timelineDock .timeline-trackRow{
  bottom:9px !important;
}

#timelineBubble{
  top:-16px !important;
}

html.os-windows #timelineDock,
html.win-compact-ui #timelineDock{
  height:108px !important;
  min-height:108px !important;
  max-height:108px !important;
}

html.os-windows #timelineDock .timeline-top,
html.win-compact-ui #timelineDock .timeline-top{
  top:15px !important;
  left:16px !important;
}

html.os-windows #timelineDock .playFab,
html.win-compact-ui #timelineDock .playFab{
  width:40px !important;
  min-width:40px !important;
  height:40px !important;
  min-height:40px !important;
  font-size:20px !important;
  flex:0 0 40px !important;
}

html.os-windows #timelineDock .timeline-flood-key,
html.win-compact-ui #timelineDock .timeline-flood-key{
  top:46px !important;
  font-size:11px !important;
  gap:11px !important;
}

html.os-windows #timelineDock .timeline-days,
html.win-compact-ui #timelineDock .timeline-days{
  bottom:30px !important;
  min-height:17px !important;
  height:17px !important;
  max-height:17px !important;
}

html.os-windows #timelineDock .timeline-day,
html.win-compact-ui #timelineDock .timeline-day{
  min-height:17px !important;
  height:17px !important;
  max-height:17px !important;
  font-size:11.5px !important;
  line-height:17px !important;
}

html.os-windows #timelineDock .timeline-trackRow,
html.win-compact-ui #timelineDock .timeline-trackRow{
  bottom:8px !important;
}

@media (max-width:720px){
  #timelineDock{
    height:112px !important;
    min-height:112px !important;
    max-height:112px !important;
  }
  #timelineDock .timeline-top{
    top:14px !important;
  }
  #timelineDock .timeline-flood-key{
    top:50px !important;
  }
  #timelineDock .timeline-days,
  #timelineDock .timeline-day{
    min-height:17px !important;
    height:17px !important;
    max-height:17px !important;
  }
}


#timelineDock .timeline-flood-key{
  top:39px !important;
  transform:translateX(-50%) !important;
  font-size:13px !important;
  line-height:1.15 !important;
  font-weight:950 !important;
  gap:18px !important;
  align-items:center !important;
  justify-content:center !important;
  z-index:9 !important;
  margin:0 !important;
  padding:0 !important;
}

#timelineDock .timeline-key-item{
  font-size:13px !important;
  line-height:1.15 !important;
  font-weight:950 !important;
  gap:7px !important;
  white-space:nowrap !important;
}

#timelineDock .timeline-key-swatch{
  width:13px !important;
  height:13px !important;
  min-width:13px !important;
  min-height:13px !important;
  border-radius:999px !important;
  flex:0 0 13px !important;
}


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

html.os-windows #timelineDock .timeline-flood-key,
html.win-compact-ui #timelineDock .timeline-flood-key{
  top:38px !important;
  font-size:12.5px !important;
  gap:16px !important;
}

html.os-windows #timelineDock .timeline-key-item,
html.win-compact-ui #timelineDock .timeline-key-item{
  font-size:12.5px !important;
  gap:6px !important;
}

html.os-windows #timelineDock .timeline-key-swatch,
html.win-compact-ui #timelineDock .timeline-key-swatch{
  width:12px !important;
  height:12px !important;
  min-width:12px !important;
  min-height:12px !important;
  flex-basis:12px !important;
}

@media (max-width:720px){
  #timelineDock .timeline-flood-key{
    top:40px !important;
    font-size:12px !important;
    gap:11px !important;
    flex-wrap:wrap !important;
    row-gap:4px !important;
    max-width:calc(100% - 26px) !important;
  }
  #timelineDock .timeline-key-item{
    font-size:12px !important;
    gap:5px !important;
  }
  #timelineDock .timeline-key-swatch{
    width:11px !important;
    height:11px !important;
    min-width:11px !important;
    min-height:11px !important;
    flex-basis:11px !important;
  }
}


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

    #exportTimePicker.export-picker{
      gap:12px;
      padding:12px;
      contain:none;
    }

    .export-two-calendar-row{
      display:grid !important;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:14px;
      align-items:start;
    }



    .export-picked-date{
      width:100%;
      min-height:48px;
      justify-content:center;
      border-radius:16px;
      border:1px solid rgba(191,219,254,.22);
      background:rgba(96,165,250,.12);
      color:#eef6ff;
      font-size:15px;
      font-weight:950;
      letter-spacing:-.02em;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
    }

    .export-picked-date:hover:not(:disabled){
      transform:none;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
      background:rgba(96,165,250,.16);
    }

    .export-time-field{
      display:grid;
      gap:6px;
      color:var(--muted);
      font-size:10px;
      font-weight:900;
      text-transform:uppercase;
      letter-spacing:.09em;
    }

    .export-time-field select{
      width:100%;
      min-height:44px;
      padding:0 12px;
      border-radius:14px;
      border:1px solid rgba(191,219,254,.18);
      background:rgba(255,255,255,.055);
      color:#eaf0ff;
      font-size:14px;
      font-weight:900;
      text-align:center;
      text-align-last:center;
    }

    @media (max-width: 780px){
      #downloadModal .download-modal-card{
        width:min(640px, calc(100vw - 32px));
      }
      .export-two-calendar-row{
        grid-template-columns:1fr !important;
      }
    }

    .export-manual-input.selected-date-flash{
      animation:export-picked-date-red-flash 1.15s ease-in-out 2;
    }

    #rightRail .right-logo-card .right-logo-link{
      display:flex !important;
      align-items:center !important;
      justify-content:center !important;
      width:100% !important;
      height:100% !important;
      min-height:80px !important;
      border-radius:12px !important;
      text-decoration:none !important;
      cursor:pointer !important;
      outline:none !important;
    }

    #rightRail .right-logo-card .right-logo-link:focus-visible{
      box-shadow:0 0 0 2px rgba(191,219,254,.78) !important;
    }

    .leaflet-top.leaflet-right .leaflet-control-zoom{
      margin-top:26px !important;
      margin-right:248px !important;
    }

    html.os-windows .leaflet-top.leaflet-right .leaflet-control-zoom,
    html.win-compact-ui .leaflet-top.leaflet-right .leaflet-control-zoom{
      margin-top:26px !important;
      margin-right:248px !important;
      transform:none !important;
      zoom:var(--win-ui-zoom, .86) !important;
      transform-origin:top right !important;
    }



    html{
      -webkit-text-size-adjust:100%;
      text-size-adjust:100%;
    }

    @supports (height:100dvh){
      html, body, #app, #mapWrap, #map{ height:100dvh; }
    }

    @media (pointer:coarse){
      button,
      select,
      input,
      .calendar-day,
      .export-calendar-day,
      .export-hour-btn{
        touch-action:manipulation;
      }
    }

    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      :root{
        --mobile-safe-top:env(safe-area-inset-top, 0px);
        --mobile-safe-right:env(safe-area-inset-right, 0px);
        --mobile-safe-bottom:env(safe-area-inset-bottom, 0px);
        --mobile-safe-left:env(safe-area-inset-left, 0px);
      }

      body.mobile-optimized #leftPanel{
        top:calc(8px + var(--mobile-safe-top)) !important;
        left:calc(8px + var(--mobile-safe-left)) !important;
        right:calc(8px + var(--mobile-safe-right)) !important;
        bottom:calc(108px + var(--mobile-safe-bottom)) !important;
        width:auto !important;
        max-width:none !important;
        max-height:calc(100dvh - 124px - var(--mobile-safe-top) - var(--mobile-safe-bottom)) !important;
        padding:0 2px 4px 0 !important;
        gap:8px !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        overscroll-behavior:contain !important;
        -webkit-overflow-scrolling:touch !important;
        scrollbar-gutter:stable both-edges !important;
      }

      body.mobile-optimized:not(.mobile-controls-open) #leftPanel{
        transform:translateY(calc(-100% - 18px)) !important;
        pointer-events:none !important;
      }

      body.mobile-optimized.mobile-controls-open #leftPanel{
        transform:none !important;
        pointer-events:auto !important;
      }

      body.mobile-optimized #mobileControlsToggle{
        display:flex !important;
        position:fixed !important;
        left:calc(12px + var(--mobile-safe-left)) !important;
        bottom:calc(112px + var(--mobile-safe-bottom)) !important;
        z-index:6500 !important;
        min-width:104px !important;
        min-height:46px !important;
        align-items:center !important;
        justify-content:center !important;
        border-radius:999px !important;
        background:rgba(11,18,32,.96) !important;
        border:1px solid rgba(191,219,254,.26) !important;
        box-shadow:0 18px 36px rgba(0,0,0,.38) !important;
        color:#eaf0ff !important;
        font-size:13px !important;
        font-weight:950 !important;
        letter-spacing:.02em !important;
        padding:0 16px !important;
      }

      body.mobile-optimized #mobileDrawerBackdrop{
        position:fixed !important;
        inset:0 !important;
        z-index:1240 !important;
        display:none !important;
        background:rgba(5,11,22,.42) !important;
        backdrop-filter:blur(3px) !important;
        -webkit-backdrop-filter:blur(3px) !important;
      }


      body.mobile-optimized .panel-card,
      body.mobile-optimized .rail-card{
        border-radius:18px !important;
        padding:10px 11px !important;
        box-shadow:0 14px 28px rgba(0,0,0,.22) !important;
      }

      body.mobile-optimized .brand{
        min-height:88px !important;
        padding:10px 12px !important;
      }

      body.mobile-optimized .shorelysafe-logo{
        max-height:34px !important;
        margin-bottom:6px !important;
      }

      body.mobile-optimized h1{
        font-size:clamp(20px, 7vw, 28px) !important;
        line-height:.95 !important;
      }

      body.mobile-optimized .section-title{
        gap:6px !important;
        margin-bottom:7px !important;
      }

      body.mobile-optimized .section-title h2,
      body.mobile-optimized .rail-head h3{
        font-size:13px !important;
      }

      body.mobile-optimized button,
      body.mobile-optimized select,
      body.mobile-optimized input[type="text"],
      body.mobile-optimized input[type="search"],
      body.mobile-optimized input[type="datetime-local"]{
        min-height:44px !important;
        font-size:16px !important;
      }

      body.mobile-optimized .button-grid-2,
      body.mobile-optimized .button-grid-3{
        gap:6px !important;
      }

      body.mobile-optimized .button-grid-3 button,
      body.mobile-optimized .segmented-control button,
      body.mobile-optimized .export-segmented button{
        min-height:42px !important;
        padding:7px 8px !important;
        font-size:12px !important;
      }

      body.mobile-optimized .datum-card,
      body.mobile-optimized .opacity-card{
        min-height:auto !important;
      }

      body.mobile-optimized .snapshot-card .stat-grid{
        grid-template-columns:1fr 1fr !important;
        gap:7px !important;
      }

      body.mobile-optimized .snapshot-card .stat-box{
        min-height:74px !important;
        padding:10px 9px !important;
      }

      body.mobile-optimized #timeText{
        font-size:clamp(13px, 4.2vw, 17px) !important;
      }

      body.mobile-optimized #stageText{
        font-size:clamp(21px, 7vw, 28px) !important;
      }

      body.mobile-optimized #legendDock{
        top:calc(10px + var(--mobile-safe-top)) !important;
        left:auto !important;
        right:calc(8px + var(--mobile-safe-right)) !important;
        width:min(168px, calc(50vw - 14px)) !important;
        max-width:168px !important;
        padding:10px !important;
        border-radius:18px !important;
      }

      body.mobile-optimized .legend-row{
        grid-template-columns:12px 1fr !important;
        gap:6px !important;
        font-size:10px !important;
      }

      body.mobile-optimized .legend-title{
        font-size:12px !important;
      }

      body.mobile-optimized #timelineDock{
        left:calc(8px + var(--mobile-safe-left)) !important;
        right:calc(8px + var(--mobile-safe-right)) !important;
        bottom:calc(8px + var(--mobile-safe-bottom)) !important;
        height:94px !important;
        min-height:94px !important;
        max-height:94px !important;
        padding:0 10px 8px !important;
        border-radius:18px !important;
      }

      body.mobile-optimized .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-top:calc(10px + var(--mobile-safe-top)) !important;
        margin-right:calc(10px + var(--mobile-safe-right)) !important;
        transform:none !important;
        zoom:1 !important;
      }


    }

    @media (max-width: 480px) and (orientation: portrait){
      body.mobile-optimized .snapshot-card .stat-grid{
        grid-template-columns:1fr !important;
      }

      body.mobile-optimized #legendDock{
        width:150px !important;
        max-width:150px !important;
      }

      body.mobile-optimized .calendar-head,
      body.mobile-optimized .calendar-grid{
        gap:4px !important;
      }

      body.mobile-optimized .calendar-day{
        min-height:34px !important;
        border-radius:11px !important;
        font-size:13px !important;
      }

      body.mobile-optimized .calendar-key{
        grid-template-columns:1fr 1fr 1fr !important;
        gap:5px !important;
      }

      body.mobile-optimized .calendar-key-item{
        min-height:30px !important;
        padding:0 6px !important;
        font-size:10.5px !important;
      }
    }

    @media (max-width:360px) and (orientation:portrait){
      body.mobile-optimized #legendDock{
        display:none !important;
      }

      body.mobile-optimized #mobileControlsToggle{
        min-width:96px !important;
        min-height:44px !important;
        font-size:12px !important;
      }
    }

    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      .download-modal.open{
        align-items:stretch !important;
        justify-content:center !important;
        padding:calc(8px + env(safe-area-inset-top, 0px)) calc(8px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(8px + env(safe-area-inset-left, 0px)) !important;
        overflow:hidden !important;
      }

      .download-modal-card,
      #downloadModal .download-modal-card,
      .export-order-modal-card{
        width:100% !important;
        max-width:none !important;
        height:auto !important;
        max-height:calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        border-radius:22px !important;
        padding:12px !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        overscroll-behavior:contain !important;
        -webkit-overflow-scrolling:touch !important;
      }

      .download-modal-head{
        position:sticky !important;
        top:-12px !important;
        z-index:3 !important;
        margin:-12px -12px 10px !important;
        padding:12px !important;
        background:rgba(11,18,32,.985) !important;
        border-bottom:1px solid rgba(191,219,254,.12) !important;
      }

      .download-modal-head h3{
        font-size:17px !important;
        line-height:1.1 !important;
      }

      .download-modal-head-actions{
        gap:6px !important;
      }

      .download-reset-btn,
      .download-modal-close,
      .modal-close,
      .export-progress-close{
        min-width:44px !important;
        width:auto !important;
        min-height:44px !important;
        height:44px !important;
        padding:0 12px !important;
      }

      .download-modal-sub{
        margin:0 0 10px !important;
        font-size:13px !important;
        line-height:1.35 !important;
      }

      .download-grid,
      .download-modal .download-grid{
        gap:10px !important;
      }

      .download-field{
        gap:6px !important;
        font-size:10px !important;
      }

      .download-field select,
      .download-field input[type="datetime-local"],
      .export-time-field select,
      .export-manual-input,
      .town-address-input{
        min-height:48px !important;
        font-size:16px !important;
      }

      .download-actions{
        position:sticky !important;
        bottom:-12px !important;
        z-index:3 !important;
        margin:8px -12px -12px !important;
        padding:10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        background:rgba(11,18,32,.985) !important;
        border-top:1px solid rgba(191,219,254,.12) !important;
      }

      .download-btn,
      .download-launch-btn{
        min-height:50px !important;
        font-size:15px !important;
      }

      #exportTimePicker.export-picker{
        gap:10px !important;
        padding:10px !important;
        border-radius:18px !important;
        overflow:hidden !important;
      }

      .export-two-calendar-row,
      .export-datetime-row{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:10px !important;
      }


      .export-picked-date,
      .export-calendar-panel .export-manual-input,
      .export-manual-input{
        min-height:50px !important;
        font-size:16px !important;
        border-radius:15px !important;
        padding:0 12px !important;
      }

      .export-wheel-grid{
        grid-template-columns:1fr 1fr 1fr 1fr !important;
        gap:5px !important;
      }

      .export-wheel-field select{
        min-height:58px !important;
        max-height:58px !important;
        font-size:16px !important;
        border-radius:13px !important;
      }


      .export-range-status{
        grid-template-columns:1fr !important;
      }

      .export-progress-overlay.open{
        align-items:center !important;
        padding:calc(12px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)) !important;
      }

      .export-progress-card{
        width:100% !important;
        max-width:420px !important;
        border-radius:22px !important;
        padding:22px 16px 18px !important;
      }
    }

    @media (max-width: 390px) and (orientation: portrait){
      .download-modal-card,
      #downloadModal .download-modal-card{
        padding:10px !important;
      }

      .download-modal-head{
        margin:-10px -10px 8px !important;
        padding:10px !important;
      }

      .download-modal-head h3{
        font-size:15px !important;
      }

      .download-reset-btn{
        padding:0 10px !important;
        font-size:10px !important;
      }

      .export-calendar-panel,
      .export-datetime-panel,
      #exportTimePicker.export-picker{
        padding:8px !important;
      }


    }

    @media (max-height: 560px) and (orientation: landscape) and (pointer:coarse) {
      body.mobile-optimized #leftPanel{
        top:calc(6px + env(safe-area-inset-top, 0px)) !important;
        bottom:calc(72px + env(safe-area-inset-bottom, 0px)) !important;
        width:min(360px, calc(48vw - 12px)) !important;
        right:auto !important;
        max-height:calc(100dvh - 84px) !important;
      }

      body.mobile-optimized #mobileControlsToggle{
        bottom:calc(76px + env(safe-area-inset-bottom, 0px)) !important;
      }

      body.mobile-optimized #timelineDock{
        height:64px !important;
        min-height:64px !important;
        max-height:64px !important;
      }

      body.mobile-optimized #legendDock{
        display:none !important;
      }

      .download-modal.open{
        padding:6px !important;
      }

      .download-modal-card,
      #downloadModal .download-modal-card{
        max-height:calc(100dvh - 12px) !important;
        border-radius:18px !important;
      }

      .export-two-calendar-row{
        grid-template-columns:1fr 1fr !important;
        gap:8px !important;
      }

    }


    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      :root{
        --pjm-safe-top:env(safe-area-inset-top, 0px);
        --pjm-safe-right:env(safe-area-inset-right, 0px);
        --pjm-safe-bottom:env(safe-area-inset-bottom, 0px);
        --pjm-safe-left:env(safe-area-inset-left, 0px);
        --pjm-edge:8px;
        --pjm-timeline-h:142px;
        --pjm-legend-w:min(282px, calc(100vw - 96px));
      }

      html,
      body,
      #app,
      #mapWrap,
      #map{
        width:100vw !important;
        height:100dvh !important;
        min-height:100dvh !important;
        overflow:hidden !important;
      }

      body{
        position:fixed !important;
        inset:0 !important;
        touch-action:manipulation !important;
        -webkit-tap-highlight-color:transparent !important;
      }


      body.mobile-optimized #legendDock{
        position:fixed !important;
        top:calc(var(--pjm-edge) + var(--pjm-safe-top)) !important;
        left:calc(var(--pjm-edge) + var(--pjm-safe-left)) !important;
        right:auto !important;
        bottom:auto !important;
        z-index:5200 !important;
        width:var(--pjm-legend-w) !important;
        max-width:var(--pjm-legend-w) !important;
        min-height:48px !important;
        max-height:54px !important;
        display:grid !important;
        grid-template-columns:96px minmax(0, 1fr) !important;
        align-items:center !important;
        gap:9px !important;
        padding:8px 9px !important;
        border-radius:20px !important;
        overflow:hidden !important;
        background:rgba(11,18,32,.94) !important;
        border:1px solid rgba(191,219,254,.20) !important;
        box-shadow:0 16px 34px rgba(0,0,0,.34) !important;
        backdrop-filter:blur(16px) !important;
        -webkit-backdrop-filter:blur(16px) !important;
        transform:none !important;
        touch-action:manipulation !important;
      }

      body.mobile-optimized #legendDock::before{
        content:"" !important;
        display:block !important;
        width:96px !important;
        height:16px !important;
        border-radius:999px !important;
        border:1px solid rgba(255,255,255,.26) !important;
        box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 4px 10px rgba(0,0,0,.18) !important;
        background:linear-gradient(90deg,
          var(--depth-0) 0 12%,
          var(--depth-1) 12% 24%,
          var(--depth-2) 24% 36%,
          var(--depth-4) 36% 48%,
          var(--depth-5) 48% 60%,
          var(--depth-6) 60% 72%,
          var(--depth-8) 72% 86%,
          var(--depth-10) 86% 100%) !important;
      }

      body.mobile-optimized #legendDock[data-legend-mode="dynamic"]::before{
        background:linear-gradient(90deg,
          var(--minor) 0 33.333%,
          var(--moderate) 33.333% 66.666%,
          var(--major) 66.666% 100%) !important;
      }

      body.mobile-optimized #legendDock::after{
        content:none !important;
        display:none !important;
      }

      body.mobile-optimized #legendDock .legend-header{
        min-width:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:6px !important;
        cursor:default !important;
        touch-action:manipulation !important;
      }

      body.mobile-optimized #legendDock .legend-header-text{
        min-width:0 !important;
        display:block !important;
      }

      body.mobile-optimized #legendDock .legend-title{
        margin:0 !important;
        padding:0 !important;
        max-width:100% !important;
        font-size:13px !important;
        line-height:1.05 !important;
        font-weight:950 !important;
        letter-spacing:-.03em !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
      }

      body.mobile-optimized #legendDock .legend-sub,
      body.mobile-optimized #legendDock .legend-body,
      body.mobile-optimized #legendDock .legend-note{
        display:none !important;
      }

      body.mobile-optimized #legendDock .legend-header-actions{
        display:flex !important;
        align-items:center !important;
        gap:5px !important;
        flex:0 0 auto !important;
      }

      body.mobile-optimized #legendDock .legend-help-btn{
        width:34px !important;
        min-width:34px !important;
        height:34px !important;
        min-height:34px !important;
        padding:0 !important;
        border-radius:999px !important;
        font-size:16px !important;
        font-weight:950 !important;
      }

      body.mobile-optimized #legendDock .legend-collapse-btn{
        display:none !important;
      }


      body.mobile-optimized #mobileControlsToggle{
        position:fixed !important;
        top:calc(66px + var(--pjm-safe-top)) !important;
        left:calc(12px + var(--pjm-safe-left)) !important;
        right:auto !important;
        bottom:auto !important;
        z-index:5300 !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:9px !important;
        width:auto !important;
        min-width:134px !important;
        min-height:48px !important;
        padding:0 18px !important;
        border-radius:999px !important;
        background:rgba(11,18,32,.96) !important;
        border:1px solid rgba(191,219,254,.26) !important;
        color:#eaf0ff !important;
        box-shadow:0 18px 36px rgba(0,0,0,.38) !important;
        font-size:15px !important;
        font-weight:950 !important;
        letter-spacing:-.02em !important;
        backdrop-filter:blur(16px) !important;
        -webkit-backdrop-filter:blur(16px) !important;
        transform:none !important;
      }

      body.mobile-optimized #mobileDrawerBackdrop{
        position:fixed !important;
        inset:0 !important;
        z-index:5150 !important;
        display:none !important;
        background:rgba(5,11,22,.40) !important;
        backdrop-filter:blur(3px) !important;
        -webkit-backdrop-filter:blur(3px) !important;
      }

      body.mobile-optimized.mobile-controls-open #mobileDrawerBackdrop{
        display:block !important;
      }

      body.mobile-optimized #leftPanel{
        position:fixed !important;
        top:calc(8px + var(--pjm-safe-top)) !important;
        left:calc(8px + var(--pjm-safe-left)) !important;
        right:auto !important;
        bottom:calc(var(--pjm-timeline-h) + 18px + var(--pjm-safe-bottom)) !important;
        width:min(372px, calc(100vw - 24px - var(--pjm-safe-left) - var(--pjm-safe-right))) !important;
        max-width:min(372px, calc(100vw - 24px - var(--pjm-safe-left) - var(--pjm-safe-right))) !important;
        max-height:calc(100dvh - var(--pjm-timeline-h) - 34px - var(--pjm-safe-top) - var(--pjm-safe-bottom)) !important;
        padding:10px 8px 10px 10px !important;
        border-radius:24px !important;
        border:1px solid rgba(191,219,254,.18) !important;
        background:rgba(11,18,32,.975) !important;
        box-shadow:0 26px 70px rgba(0,0,0,.50) !important;
        z-index:5250 !important;
        opacity:0 !important;
        pointer-events:none !important;
        transform:translateX(calc(-100% - 18px)) !important;
        transition:transform .22s ease, opacity .18s ease !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        overscroll-behavior:contain !important;
        -webkit-overflow-scrolling:touch !important;
        scrollbar-gutter:auto !important;
      }

      body.mobile-optimized.mobile-controls-open #leftPanel{
        opacity:1 !important;
        pointer-events:auto !important;
        transform:translateX(0) !important;
      }

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

      body.mobile-optimized #leftPanel .panel-card,
      body.mobile-optimized #leftPanel .rail-card{
        width:100% !important;
        padding:10px 11px !important;
        border-radius:18px !important;
        box-shadow:none !important;
      }

      body.mobile-optimized #rightRail{
        display:none !important;
      }

      body.mobile-optimized #mobileRailMount{
        display:grid !important;
        gap:8px !important;
      }


      body.mobile-optimized .leaflet-top.leaflet-right .leaflet-control-zoom{
        margin-top:calc(18px + var(--pjm-safe-top)) !important;
        margin-right:calc(10px + var(--pjm-safe-right)) !important;
        transform:none !important;
        zoom:1 !important;
      }


      body.mobile-optimized #timelineDock{
        position:fixed !important;
        left:calc(8px + var(--pjm-safe-left)) !important;
        right:calc(8px + var(--pjm-safe-right)) !important;
        bottom:calc(8px + var(--pjm-safe-bottom)) !important;
        z-index:5100 !important;
        height:var(--pjm-timeline-h) !important;
        min-height:var(--pjm-timeline-h) !important;
        max-height:var(--pjm-timeline-h) !important;
        display:grid !important;
        grid-template-rows:44px 22px 26px 24px !important;
        gap:6px !important;
        align-items:stretch !important;
        padding:14px 12px 10px !important;
        border-radius:24px !important;
        overflow:visible !important;
        background:rgba(31,41,55,.94) !important;
        border:1px solid rgba(191,219,254,.18) !important;
        box-shadow:0 18px 44px rgba(0,0,0,.42) !important;
        backdrop-filter:blur(16px) !important;
        -webkit-backdrop-filter:blur(16px) !important;
      }

      body.mobile-optimized #timelineBubble{
        position:absolute !important;
        top:-35px !important;
        left:50% !important;
        transform:translateX(-50%) !important;
        z-index:4 !important;
        max-width:calc(100vw - 48px) !important;
        padding:8px 18px !important;
        border-radius:999px !important;
        font-size:15px !important;
        line-height:1 !important;
        font-weight:950 !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
      }

      body.mobile-optimized #timelineDock .timeline-top{
        position:relative !important;
        top:auto !important;
        left:auto !important;
        right:auto !important;
        bottom:auto !important;
        z-index:2 !important;
        display:grid !important;
        grid-template-columns:auto minmax(0, 1fr) !important;
        gap:8px !important;
        align-items:center !important;
        justify-content:stretch !important;
        min-height:0 !important;
        height:44px !important;
        margin:0 !important;
        order:0 !important;
      }

      body.mobile-optimized #timelineDock .timeline-controls{
        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:7px !important;
        min-width:0 !important;
      }

      body.mobile-optimized #timelineDock .playFab{
        width:46px !important;
        min-width:46px !important;
        height:46px !important;
        min-height:46px !important;
        padding:0 !important;
        border-radius:999px !important;
        font-size:21px !important;
        line-height:1 !important;
      }

      body.mobile-optimized #timelineDock .miniAction{
        width:auto !important;
        min-width:64px !important;
        min-height:36px !important;
        height:36px !important;
        padding:0 10px !important;
        border-radius:999px !important;
        font-size:11px !important;
        line-height:1 !important;
        letter-spacing:.10em !important;
      }

      body.mobile-optimized #timelineDock .timeline-meta{
        display:block !important;
        justify-self:end !important;
        align-self:center !important;
        min-width:0 !important;
        max-width:128px !important;
        color:#dbe8ff !important;
        font-size:12px !important;
        line-height:1.15 !important;
        font-weight:900 !important;
        text-align:right !important;
        white-space:normal !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
      }

      body.mobile-optimized #timelineDock .timeline-flood-key{
        position:relative !important;
        top:auto !important;
        left:auto !important;
        right:auto !important;
        bottom:auto !important;
        transform:none !important;
        z-index:2 !important;
        order:0 !important;
        display:grid !important;
        grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
        align-items:center !important;
        justify-items:center !important;
        gap:4px !important;
        width:100% !important;
        height:22px !important;
        min-height:22px !important;
        max-height:22px !important;
        margin:0 !important;
        padding:0 !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        font-size:0 !important;
        line-height:1 !important;
      }

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

      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:11px !important;
        line-height:1 !important;
        font-weight:900 !important;
      }

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

      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;
        border-radius:999px !important;
      }

      body.mobile-optimized #timelineDock .timeline-days{
        position:relative !important;
        top:auto !important;
        left:auto !important;
        right:auto !important;
        bottom:auto !important;
        z-index:1 !important;
        display:flex !important;
        align-items:stretch !important;
        width:100% !important;
        height:26px !important;
        min-height:26px !important;
        max-height:26px !important;
        margin:0 !important;
        border-radius:999px !important;
        overflow:hidden !important;
        background:rgba(255,255,255,.08) !important;
      }

      body.mobile-optimized #timelineDock .timeline-day{
        flex:1 1 0 !important;
        min-width:0 !important;
        height:26px !important;
        min-height:26px !important;
        max-height:26px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 4px !important;
        border-radius:0 !important;
        font-size:13px !important;
        line-height:1 !important;
        font-weight:950 !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
      }

      body.mobile-optimized #timelineDock .timeline-trackRow{
        position:relative !important;
        top:auto !important;
        left:auto !important;
        right:auto !important;
        bottom:auto !important;
        z-index:2 !important;
        display:grid !important;
        grid-template-columns:minmax(58px, auto) minmax(0, 1fr) minmax(82px, auto) !important;
        gap:8px !important;
        align-items:center !important;
        width:100% !important;
        height:24px !important;
        min-height:24px !important;
        max-height:24px !important;
        margin:0 !important;
      }

      body.mobile-optimized #timelineDock .timeline-end,
      body.mobile-optimized #timelineDock .timeline-scale{
        min-width:0 !important;
        color:#c7d2fe !important;
        font-size:12px !important;
        line-height:1 !important;
        font-weight:900 !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
      }

      body.mobile-optimized #timelineDock .timeline-scale{
        text-align:right !important;
      }

      body.mobile-optimized #timelineDock #hourSlider{
        width:100% !important;
        height:4px !important;
        min-height:4px !important;
        margin:0 !important;
      }

      body.mobile-optimized #timelineDock #hourSlider::-webkit-slider-thumb{
        width:20px !important;
        height:20px !important;
      }

      body.mobile-optimized #timelineDock #hourSlider::-moz-range-thumb{
        width:20px !important;
        height:20px !important;
      }
    }

    @media (max-width: 380px) and (orientation: portrait){
      :root{
        --pjm-timeline-h:136px;
      }

      body.mobile-optimized #legendDock{
        width:min(250px, calc(100vw - 84px)) !important;
        max-width:min(250px, calc(100vw - 84px)) !important;
        grid-template-columns:76px minmax(0, 1fr) !important;
      }

      body.mobile-optimized #legendDock::before{
        width:76px !important;
      }

      body.mobile-optimized #mobileControlsToggle{
        top:calc(64px + var(--pjm-safe-top)) !important;
        min-width:124px !important;
        min-height:46px !important;
        font-size:14px !important;
      }

      body.mobile-optimized #timelineDock{
        grid-template-rows:42px 20px 24px 22px !important;
        gap:6px !important;
        padding:12px 10px 9px !important;
      }

      body.mobile-optimized #timelineDock .playFab{
        width:44px !important;
        min-width:44px !important;
        height:44px !important;
        min-height:44px !important;
      }

      body.mobile-optimized #timelineDock .miniAction{
        min-width:58px !important;
        min-height:34px !important;
        height:34px !important;
        padding:0 8px !important;
        font-size:10px !important;
      }

      body.mobile-optimized #timelineDock .timeline-meta{
        max-width:112px !important;
        font-size:11px !important;
      }


      body.mobile-optimized #timelineDock .timeline-day{
        height:24px !important;
        min-height:24px !important;
        max-height:24px !important;
        font-size:12px !important;
      }

      body.mobile-optimized #timelineDock .timeline-end,
      body.mobile-optimized #timelineDock .timeline-scale{
        font-size:11px !important;
      }
    }

    @media (max-height: 560px) and (orientation: landscape) and (pointer:coarse) {
      :root{
        --pjm-timeline-h:88px;
      }

      body.mobile-optimized #legendDock{
        width:min(240px, calc(44vw - 8px)) !important;
        max-width:min(240px, calc(44vw - 8px)) !important;
      }

      body.mobile-optimized #mobileControlsToggle{
        top:calc(64px + var(--pjm-safe-top)) !important;
      }

      body.mobile-optimized #leftPanel{
        width:min(360px, calc(54vw - 12px)) !important;
        max-width:min(360px, calc(54vw - 12px)) !important;
        bottom:calc(var(--pjm-timeline-h) + 14px + var(--pjm-safe-bottom)) !important;
      }

      body.mobile-optimized #timelineDock{
        height:var(--pjm-timeline-h) !important;
        min-height:var(--pjm-timeline-h) !important;
        max-height:var(--pjm-timeline-h) !important;
        grid-template-rows:34px 18px 20px !important;
        gap:4px !important;
        padding:8px 12px 8px !important;
      }

      body.mobile-optimized #timelineDock .timeline-top{
        height:34px !important;
      }

      body.mobile-optimized #timelineDock .playFab{
        width:36px !important;
        min-width:36px !important;
        height:36px !important;
        min-height:36px !important;
        font-size:18px !important;
      }

      body.mobile-optimized #timelineDock .miniAction{
        min-width:56px !important;
        min-height:30px !important;
        height:30px !important;
        font-size:9px !important;
      }

      body.mobile-optimized #timelineDock .timeline-flood-key{
        height:18px !important;
        min-height:18px !important;
        max-height:18px !important;
      }

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

      body.mobile-optimized #timelineDock .timeline-trackRow{
        height:20px !important;
        min-height:20px !important;
        max-height:20px !important;
      }
    }


    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized #legendDock{
        display:grid !important;
        grid-template-columns:minmax(0, 1fr) 46px !important;
        align-items:center !important;
        gap:10px !important;
        height:76px !important;
        min-height:76px !important;
        max-height:76px !important;
        padding:12px 14px !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #legendDock::before{
        width:100% !important;
        max-width:212px !important;
        min-width:0 !important;
        height:30px !important;
        justify-self:start !important;
        align-self:center !important;
      }

      body.mobile-optimized #legendDock .legend-title,
      body.mobile-optimized #legendDock .legend-sub,
      body.mobile-optimized #legendDock .legend-list,
      body.mobile-optimized #legendDock .legend-note,
      body.mobile-optimized #legendDock .legend-row,
      body.mobile-optimized #legendDock .legend-body{
        display:none !important;
      }

      body.mobile-optimized #legendDock .legend-help-btn,
      body.mobile-optimized #legendDock .help-btn,
      body.mobile-optimized #legendHelpBtn,
      body.mobile-optimized #floodDepthHelpBtn{
        width:46px !important;
        min-width:46px !important;
        height:46px !important;
        min-height:46px !important;
        margin:0 !important;
        padding:0 !important;
        justify-self:end !important;
        align-self:center !important;
        border-radius:999px !important;
        font-size:20px !important;
        line-height:1 !important;
      }

      body.mobile-optimized #mobileControlsToggle{
        top:calc(86px + var(--pjm-safe-top)) !important;
        left:calc(12px + var(--pjm-safe-left)) !important;
        height:56px !important;
        min-height:56px !important;
        max-height:56px !important;
        min-width:236px !important;
        max-width:calc(100vw - 86px - var(--pjm-safe-left) - var(--pjm-safe-right)) !important;
        padding:0 22px !important;
        overflow:hidden !important;
        white-space:nowrap !important;
      }

      body.mobile-optimized #timelineDock{

        height:var(--pjm-timeline-h) !important;
        min-height:var(--pjm-timeline-h) !important;
        max-height:var(--pjm-timeline-h) !important;
        grid-template-rows:40px 20px 24px 22px !important;
        gap:4px !important;
        padding:10px 10px 8px !important;
        overflow:hidden !important;
        contain:layout paint !important;
      }

      body.mobile-optimized #timelineDock .timeline-top{
        height:40px !important;
        min-height:40px !important;
        max-height:40px !important;
        grid-template-columns:minmax(0, 1fr) !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #timelineDock .timeline-controls{
        width:100% !important;
        max-width:100% !important;
        height:40px !important;
        min-height:40px !important;
        max-height:40px !important;
        gap:6px !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #timelineDock .playFab{
        width:40px !important;
        min-width:40px !important;
        height:40px !important;
        min-height:40px !important;
        max-height:40px !important;
        font-size:18px !important;
      }

      body.mobile-optimized #timelineDock .miniAction{
        min-width:70px !important;
        height:34px !important;
        min-height:34px !important;
        max-height:34px !important;
        padding:0 9px !important;
        font-size:10px !important;
        letter-spacing:.09em !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        white-space:nowrap !important;
      }

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

      body.mobile-optimized #timelineDock .timeline-flood-key{
        height:20px !important;
        min-height:20px !important;
        max-height:20px !important;
        gap:2px !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #timelineDock .timeline-key-item{
        height:20px !important;
        min-height:20px !important;
        max-height:20px !important;
        gap:4px !important;
      }

      body.mobile-optimized #timelineDock .timeline-key-item::after{
        font-size:11px !important;
        max-width:calc(100% - 14px) !important;
      }

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

      body.mobile-optimized #timelineDock .timeline-days{
        height:24px !important;
        min-height:24px !important;
        max-height:24px !important;
        margin:0 !important;
        align-self:center !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #timelineDock .timeline-day{
        height:24px !important;
        min-height:24px !important;
        max-height:24px !important;
        padding:0 2px !important;
        font-size:13px !important;
        line-height:1 !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        white-space:nowrap !important;
      }

      body.mobile-optimized #timelineDock .timeline-trackRow{
        height:22px !important;
        min-height:22px !important;
        max-height:22px !important;
        grid-template-columns:92px minmax(0, 1fr) 112px !important;
        gap:7px !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #timelineDock .timeline-end,
      body.mobile-optimized #timelineDock .timeline-scale{
        font-size:12px !important;
        line-height:1 !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        white-space:nowrap !important;
      }

      body.mobile-optimized #timelineDock #hourSlider{
        height:4px !important;
        min-height:4px !important;
        align-self:center !important;
      }

      body.mobile-optimized #timelineDock #hourSlider::-webkit-slider-thumb{
        width:18px !important;
        height:18px !important;
      }

      body.mobile-optimized #timelineDock #hourSlider::-moz-range-thumb{
        width:18px !important;
        height:18px !important;
      }
    }

    @media (max-width: 380px) and (orientation: portrait){
      body.mobile-optimized #timelineDock{
        grid-template-rows:38px 18px 22px 20px !important;
        gap:4px !important;
        padding:10px 9px 8px !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #timelineDock .timeline-top,
      body.mobile-optimized #timelineDock .timeline-controls{
        height:38px !important;
        min-height:38px !important;
        max-height:38px !important;
      }

      body.mobile-optimized #timelineDock .playFab{
        width:38px !important;
        min-width:38px !important;
        height:38px !important;
        min-height:38px !important;
      }

      body.mobile-optimized #timelineDock .miniAction{
        min-width:62px !important;
        height:32px !important;
        min-height:32px !important;
        max-height:32px !important;
        padding:0 7px !important;
        font-size:9px !important;
      }

      body.mobile-optimized #timelineDock .timeline-flood-key,
      body.mobile-optimized #timelineDock .timeline-key-item{
        height:18px !important;
        min-height:18px !important;
        max-height:18px !important;
      }

      body.mobile-optimized #timelineDock .timeline-key-item::after{
        font-size:10px !important;
      }

      body.mobile-optimized #timelineDock .timeline-days,
      body.mobile-optimized #timelineDock .timeline-day{
        height:22px !important;
        min-height:22px !important;
        max-height:22px !important;
        font-size:12px !important;
      }

      body.mobile-optimized #timelineDock .timeline-trackRow{
        height:20px !important;
        min-height:20px !important;
        max-height:20px !important;
        grid-template-columns:82px minmax(0, 1fr) 98px !important;
        gap:6px !important;
      }

      body.mobile-optimized #timelineDock .timeline-end,
      body.mobile-optimized #timelineDock .timeline-scale{
        font-size:10px !important;
      }
    }


    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized #timelineDock{
        position:fixed !important;
        overflow:hidden !important;
        contain:none !important;
      }


      body.mobile-optimized #timelineDock .timeline-top{
        padding-right:132px !important;
        box-sizing:border-box !important;
      }


      body.mobile-optimized #timelineDock #legendDock,
      body.mobile-optimized #legendDock{
        position:absolute !important;
        top:10px !important;
        right:10px !important;
        bottom:auto !important;
        left:auto !important;
        z-index:6 !important;
        width:122px !important;
        min-width:122px !important;
        max-width:122px !important;
        height:30px !important;
        min-height:30px !important;
        max-height:30px !important;
        display:grid !important;
        grid-template-columns:minmax(0, 1fr) 28px !important;
        align-items:center !important;
        justify-content:stretch !important;
        gap:6px !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        border-radius:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        transform:none !important;
        overflow:hidden !important;
        pointer-events:auto !important;
      }


      body.mobile-optimized #timelineDock #legendDock::before,
      body.mobile-optimized #legendDock::before{
        content:"" !important;
        display:block !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        height:14px !important;
        min-height:14px !important;
        max-height:14px !important;
        align-self:center !important;
        justify-self:stretch !important;
        border-radius:999px !important;
        border:1px solid rgba(255,255,255,.34) !important;
        background:linear-gradient(90deg,
          var(--depth-0) 0 11%,
          var(--depth-1) 11% 22%,
          var(--depth-2) 22% 33%,
          var(--depth-3) 33% 44%,
          var(--depth-4) 44% 55%,
          var(--depth-5) 55% 66%,
          var(--depth-6) 66% 77%,
          var(--depth-8) 77% 89%,
          var(--depth-10) 89% 100%) !important;
        box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 2px 6px rgba(0,0,0,.22) !important;
      }

      body.mobile-optimized #timelineDock #legendDock[data-legend-mode="dynamic"]::before,
      body.mobile-optimized #legendDock[data-legend-mode="dynamic"]::before{
        background:linear-gradient(90deg,
          var(--minor) 0 33.333%,
          var(--moderate) 33.333% 66.666%,
          var(--major) 66.666% 100%) !important;
      }


      body.mobile-optimized #timelineDock #legendDock .legend-title,
      body.mobile-optimized #timelineDock #legendDock .legend-sub,
      body.mobile-optimized #timelineDock #legendDock .legend-body,
      body.mobile-optimized #timelineDock #legendDock .legend-note,
      body.mobile-optimized #timelineDock #legendDock .legend-list,
      body.mobile-optimized #timelineDock #legendDock .legend-row,
      body.mobile-optimized #timelineDock #legendDock .legend-header-text,
      body.mobile-optimized #legendDock .legend-title,
      body.mobile-optimized #legendDock .legend-sub,
      body.mobile-optimized #legendDock .legend-body,
      body.mobile-optimized #legendDock .legend-note,
      body.mobile-optimized #legendDock .legend-list,
      body.mobile-optimized #legendDock .legend-row,
      body.mobile-optimized #legendDock .legend-header-text{
        display:none !important;
      }

      body.mobile-optimized #timelineDock #legendDock .legend-header,
      body.mobile-optimized #legendDock .legend-header{
        display:contents !important;
      }

      body.mobile-optimized #timelineDock #legendDock .legend-header-actions,
      body.mobile-optimized #legendDock .legend-header-actions{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:28px !important;
        min-width:28px !important;
        max-width:28px !important;
        height:28px !important;
        min-height:28px !important;
        max-height:28px !important;
        margin:0 !important;
        padding:0 !important;
        gap:0 !important;
      }

      body.mobile-optimized #timelineDock #legendDock .legend-help-btn,
      body.mobile-optimized #timelineDock #legendDock .help-btn,
      body.mobile-optimized #timelineDock #legendHelpBtn,
      body.mobile-optimized #timelineDock #floodDepthHelpBtn,
      body.mobile-optimized #legendDock .legend-help-btn,
      body.mobile-optimized #legendDock .help-btn,
      body.mobile-optimized #legendHelpBtn,
      body.mobile-optimized #floodDepthHelpBtn{
        display:grid !important;
        place-items:center !important;
        width:28px !important;
        min-width:28px !important;
        max-width:28px !important;
        height:28px !important;
        min-height:28px !important;
        max-height:28px !important;
        margin:0 !important;
        padding:0 !important;
        border-radius:999px !important;
        font-size:13px !important;
        line-height:1 !important;
        font-weight:950 !important;
        color:#eaf0ff !important;
        background:rgba(255,255,255,.075) !important;
        border:1px solid rgba(255,255,255,.18) !important;
        box-shadow:none !important;
        transform:none !important;
      }

      body.mobile-optimized #timelineDock #legendDock .legend-collapse-btn,
      body.mobile-optimized #legendDock .legend-collapse-btn{
        display:none !important;
      }
    }

    @media (max-width: 380px) and (orientation: portrait){
      body.mobile-optimized #timelineDock .timeline-top{
        padding-right:112px !important;
      }

      body.mobile-optimized #timelineDock #legendDock,
      body.mobile-optimized #legendDock{
        top:9px !important;
        right:9px !important;
        width:104px !important;
        min-width:104px !important;
        max-width:104px !important;
        height:26px !important;
        min-height:26px !important;
        max-height:26px !important;
        grid-template-columns:minmax(0, 1fr) 24px !important;
        gap:5px !important;
      }

      body.mobile-optimized #timelineDock #legendDock::before,
      body.mobile-optimized #legendDock::before{
        height:12px !important;
        min-height:12px !important;
        max-height:12px !important;
      }

      body.mobile-optimized #timelineDock #legendDock .legend-header-actions,
      body.mobile-optimized #legendDock .legend-header-actions,
      body.mobile-optimized #timelineDock #legendDock .legend-help-btn,
      body.mobile-optimized #timelineDock #legendDock .help-btn,
      body.mobile-optimized #timelineDock #legendHelpBtn,
      body.mobile-optimized #timelineDock #floodDepthHelpBtn,
      body.mobile-optimized #legendDock .legend-help-btn,
      body.mobile-optimized #legendDock .help-btn,
      body.mobile-optimized #legendHelpBtn,
      body.mobile-optimized #floodDepthHelpBtn{
        width:24px !important;
        min-width:24px !important;
        max-width:24px !important;
        height:24px !important;
        min-height:24px !important;
        max-height:24px !important;
        font-size:12px !important;
      }
    }


    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized #mobileDrawerBackdrop,
      body.mobile-optimized.mobile-controls-open #mobileDrawerBackdrop{
        position:fixed !important;
        inset:0 !important;
        z-index:5000 !important;
        display:block !important;
        opacity:0 !important;
        pointer-events:none !important;
        background:rgba(5,11,22,.24) !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        filter:none !important;
        -webkit-filter:none !important;
        transform:none !important;
      }

      body.mobile-optimized.mobile-controls-open #mobileDrawerBackdrop{
        opacity:1 !important;
      }

      body.mobile-optimized #leftPanel{
        z-index:5400 !important;
        background:#0b1220 !important;
        border:1px solid rgba(191,219,254,.22) !important;
        box-shadow:0 22px 58px rgba(0,0,0,.48) !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        filter:none !important;
        -webkit-filter:none !important;
        opacity:0 !important;
        visibility:hidden !important;
        pointer-events:none !important;
        transform:translate3d(calc(-100% - 18px), 0, 0) !important;
        transition:opacity .16s ease, transform .20s ease, visibility .16s ease !important;
        will-change:transform, opacity !important;
        backface-visibility:hidden !important;
        -webkit-backface-visibility:hidden !important;
        -webkit-font-smoothing:antialiased !important;
        text-rendering:optimizeLegibility !important;
      }

      body.mobile-optimized.mobile-controls-open #leftPanel{
        opacity:1 !important;
        visibility:visible !important;
        pointer-events:auto !important;
        transform:none !important;
        will-change:auto !important;
      }

      body.mobile-optimized #leftPanel,
      body.mobile-optimized #leftPanel *{
        filter:none !important;
        -webkit-filter:none !important;
      }

      body.mobile-optimized #leftPanel .panel-card,
      body.mobile-optimized #leftPanel .rail-card,
      body.mobile-optimized #leftPanel .stat-box,
      body.mobile-optimized #leftPanel .layer-item,
      body.mobile-optimized #leftPanel .top-tide-item{
        background:rgba(255,255,255,.055) !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
      }

      body.mobile-optimized #mobileControlsToggle{
        z-index:5500 !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        filter:none !important;
        -webkit-filter:none !important;
      }
    }

    @media (max-width: 900px) and (orientation: landscape), (max-width:1366px) and (any-pointer:coarse) and (orientation: landscape), (max-height: 560px) and (pointer:coarse) {
      body.mobile-optimized #leftPanel{
        transform:translate3d(calc(-100% - 18px), 0, 0) !important;
      }

      body.mobile-optimized.mobile-controls-open #leftPanel{
        transform:none !important;
      }
    }



    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized #mobileControlsToggle,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle{
        position:fixed !important;
        top:max(12px, env(safe-area-inset-top, 0px) + 8px) !important;
        left:max(12px, env(safe-area-inset-left, 0px) + 10px) !important;
        right:auto !important;
        bottom:auto !important;
        z-index:5400 !important;
        width:44px !important;
        min-width:44px !important;
        max-width:44px !important;
        height:38px !important;
        min-height:38px !important;
        max-height:38px !important;
        padding:0 !important;
        display:grid !important;
        place-items:center !important;
        border-radius:999px !important;
        border:1px solid rgba(191,219,254,.22) !important;
        background:rgba(11,18,32,.92) !important;
        box-shadow:0 12px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06) !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        color:transparent !important;
        font-size:0 !important;
        line-height:1 !important;
        letter-spacing:0 !important;
        text-indent:0 !important;
        overflow:hidden !important;
        transform:none !important;
      }

      body.mobile-optimized #mobileControlsToggle span,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle span,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle span{
        display:none !important;
      }

      body.mobile-optimized #mobileControlsToggle::after,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle::after,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle::after{
        content:none !important;
        display:none !important;
      }

      body.mobile-optimized #mobileControlsToggle::before,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle::before,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle::before{
        content:"" !important;
        display:block !important;
        width:18px !important;
        height:2.5px !important;
        border-radius:999px !important;
        background:#eaf0ff !important;
        box-shadow:0 -6px 0 #eaf0ff, 0 6px 0 #eaf0ff !important;
        transform:none !important;
        opacity:.96 !important;
      }

      body.mobile-optimized #mobileControlsToggle:hover:not(:disabled),
      body.mobile-optimized #mobileControlsToggle:active{
        transform:none !important;
        background:rgba(15,23,42,.97) !important;
        box-shadow:0 12px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08) !important;
      }

      body.mobile-optimized #mapTitleBadge{
        display:block !important;
        position:fixed !important;
        top:max(12px, env(safe-area-inset-top, 0px) + 8px) !important;
        left:50% !important;
        right:auto !important;
        bottom:auto !important;
        transform:translateX(-50%) !important;
        z-index:5350 !important;
        width:auto !important;
        min-width:0 !important;
        max-width:calc(100vw - 150px) !important;
        height:38px !important;
        min-height:38px !important;
        max-height:38px !important;
        padding:0 14px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        border-radius:999px !important;
        border:1px solid rgba(191,219,254,.22) !important;
        background:rgba(11,18,32,.88) !important;
        box-shadow:0 12px 28px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.06) !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        color:#eaf0ff !important;
        -webkit-text-fill-color:#eaf0ff !important;
        text-shadow:0 2px 8px rgba(0,0,0,.45) !important;
        font-size:clamp(14px, 4.2vw, 18px) !important;
        line-height:1 !important;
        font-weight:950 !important;
        letter-spacing:-.035em !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        pointer-events:none !important;
      }
    }

    @media (max-width: 390px){
      body.mobile-optimized #mobileControlsToggle,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle{
        width:40px !important;
        min-width:40px !important;
        max-width:40px !important;
        height:36px !important;
        min-height:36px !important;
        max-height:36px !important;
      }

      body.mobile-optimized #mobileControlsToggle::before,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle::before,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle::before{
        width:17px !important;
        height:2.25px !important;
        box-shadow:0 -5.5px 0 #eaf0ff, 0 5.5px 0 #eaf0ff !important;
      }

      body.mobile-optimized #mapTitleBadge{
        height:36px !important;
        min-height:36px !important;
        max-height:36px !important;
        max-width:calc(100vw - 138px) !important;
        padding:0 11px !important;
        font-size:clamp(13px, 4.0vw, 16px) !important;
      }
    }



    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized #mobileControlsToggle,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 !important;
        line-height:0 !important;
        text-align:center !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #mobileControlsToggle::before,
      body.mobile-optimized #mobileControlsToggle::after,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle::before,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle::after,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle::before,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle::after{
        content:none !important;
        display:none !important;
      }

      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle .mobile-controls-icon,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle .mobile-controls-icon{
        position:relative !important;
        display:block !important;
        width:22px !important;
        height:16px !important;
        margin:0 !important;
        padding:0 !important;
        flex:0 0 22px !important;
        transform:translateY(0) !important;
        pointer-events:none !important;
      }

      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon i,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle .mobile-controls-icon i,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle .mobile-controls-icon i{
        position:absolute !important;
        left:0 !important;
        width:22px !important;
        height:3px !important;
        border-radius:999px !important;
        background:#eaf0ff !important;
        box-shadow:0 1px 2px rgba(0,0,0,.28) !important;
        display:block !important;
        margin:0 !important;
        padding:0 !important;
      }

      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon i:nth-child(1){ top:0 !important; }
      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon i:nth-child(2){ top:6.5px !important; }
      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon i:nth-child(3){ bottom:0 !important; }
    }

    @media (max-width: 390px){
      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle .mobile-controls-icon,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle .mobile-controls-icon{
        width:20px !important;
        height:15px !important;
        flex-basis:20px !important;
      }
      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon i,
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle .mobile-controls-icon i,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle .mobile-controls-icon i{
        width:20px !important;
        height:2.75px !important;
      }
      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon i:nth-child(2){ top:6.1px !important; }
    }


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

  body.mobile-optimized #timelineBubble{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    position:absolute !important;
    top:-36px !important;

    transform:translateX(-50%) !important;
    z-index:9999 !important;
    min-width:0 !important;
    max-width:calc(100vw - 54px) !important;
    min-height:28px !important;
    height:auto !important;
    padding:7px 16px 8px !important;
    border-radius:999px !important;
    background:#d58a00 !important;
    color:#ffffff !important;
    border:0 !important;
    box-shadow:0 12px 26px rgba(0,0,0,.34) !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:15px !important;
    line-height:1 !important;
    font-weight:950 !important;
    letter-spacing:.01em !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    pointer-events:none !important;
  }

  body.mobile-optimized #timelineBubble::after{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    left:50% !important;
    bottom:-6px !important;
    transform:translateX(-50%) !important;
    width:0 !important;
    height:0 !important;
    border-left:6px solid transparent !important;
    border-right:6px solid transparent !important;
    border-top:6px solid #d58a00 !important;
    background:transparent !important;
  }

  body.mobile-optimized #timelineDock .timeline-top,
  body.mobile-optimized #timelineDock #legendDock,
  body.mobile-optimized #timelineDock .timeline-flood-key,
  body.mobile-optimized #timelineDock .timeline-trackRow,
  body.mobile-optimized #timelineDock .timeline-days{
    z-index:auto;
  }
}

@media (max-width: 380px) and (orientation: portrait){
  body.mobile-optimized #timelineBubble{
    top:-32px !important;
    min-height:25px !important;
    padding:6px 13px 7px !important;
    font-size:13px !important;
    max-width:calc(100vw - 42px) !important;
  }
}

@media (max-width: 900px) and (orientation: landscape), (max-width:1366px) and (any-pointer:coarse) and (orientation: landscape), (max-height: 560px) and (pointer:coarse) {
  body.mobile-optimized #timelineBubble{
    top:-26px !important;
    min-height:22px !important;
    padding:5px 11px 6px !important;
    font-size:11px !important;
    max-width:calc(100vw - 40px) !important;
  }
}


    @media (max-width: 760px), (hover:none) and (pointer:coarse){
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle,
      body.mobile-optimized.mobile-controls-open.mobile-legend-open #mobileControlsToggle{
        opacity:0 !important;
        visibility:hidden !important;
        pointer-events:none !important;
        transform:none !important;
      }


      body.mobile-optimized.mobile-controls-open #leftPanel{
        z-index:5700 !important;
      }

      body.mobile-optimized.mobile-controls-open #leftPanel .panel-card:first-child{
        margin-top:0 !important;
      }
    }



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

      body.mobile-optimized.mobile-controls-open #mobileControlsClose{
        position:sticky !important;
        top:0 !important;
        z-index:5900 !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 0 8px auto !important;
        padding:0 !important;
        display:grid !important;
        place-items:center !important;
        border-radius:999px !important;
        border:1px solid rgba(191,219,254,.24) !important;
        background:rgba(15,23,42,.98) !important;
        color:#eaf0ff !important;
        -webkit-text-fill-color:#eaf0ff !important;
        box-shadow:0 10px 24px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08) !important;
        font-size:24px !important;
        line-height:1 !important;
        font-weight:900 !important;
        letter-spacing:0 !important;
        text-indent:0 !important;
        text-align:center !important;
        cursor:pointer !important;
        pointer-events:auto !important;
        opacity:1 !important;
        visibility:visible !important;
        transform:none !important;
        filter:none !important;
        -webkit-filter:none !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
      }

      body.mobile-optimized.mobile-controls-open #mobileControlsClose:hover,
      body.mobile-optimized.mobile-controls-open #mobileControlsClose:active{
        transform:none !important;
        background:rgba(30,41,59,.98) !important;
        box-shadow:0 10px 24px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.10) !important;
      }
    }

    @media (max-width: 390px){
      body.mobile-optimized.mobile-controls-open #mobileControlsClose{
        width:36px !important;
        min-width:36px !important;
        max-width:36px !important;
        height:36px !important;
        min-height:36px !important;
        max-height:36px !important;
        font-size:22px !important;
        margin-bottom:7px !important;
      }
    }


    @media (orientation: landscape) and (pointer: coarse), (max-height: 560px) and (pointer:coarse) {
      :root{
        --pjm-timeline-h:124px !important;
      }

      body.mobile-optimized #timelineDock{
        height:var(--pjm-timeline-h) !important;
        min-height:var(--pjm-timeline-h) !important;
        max-height:var(--pjm-timeline-h) !important;
        grid-template-rows:34px 18px 20px 24px !important;
        gap:4px !important;
        padding:8px 12px 8px !important;
        overflow:visible !important;
        contain:none !important;
        bottom:calc(8px + var(--pjm-safe-bottom)) !important;
      }

      body.mobile-optimized #timelineDock .timeline-top{
        grid-row:1 !important;
        height:34px !important;
        min-height:34px !important;
        max-height:34px !important;
        padding-right:132px !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #timelineDock .timeline-flood-key{
        grid-row:2 !important;
        display:grid !important;
        height:18px !important;
        min-height:18px !important;
        max-height:18px !important;
        overflow:hidden !important;
        margin:0 !important;
      }

      body.mobile-optimized #timelineDock .timeline-trackRow{
        grid-row:3 !important;
        display:grid !important;
        height:20px !important;
        min-height:20px !important;
        max-height:20px !important;
        grid-template-columns:88px minmax(0, 1fr) 108px !important;
        gap:7px !important;
        overflow:visible !important;
        margin:0 !important;
        align-self:center !important;
      }

      body.mobile-optimized #timelineDock .timeline-days{
        grid-row:4 !important;
        display:flex !important;
        visibility:visible !important;
        opacity:1 !important;
        height:24px !important;
        min-height:24px !important;
        max-height:24px !important;
        width:100% !important;
        margin:0 !important;
        align-self:end !important;
        border-radius:999px !important;
        overflow:hidden !important;
        background:rgba(255,255,255,.10) !important;
        z-index:3 !important;
      }

      body.mobile-optimized #timelineDock .timeline-day{
        display:flex !important;
        flex:1 1 0 !important;
        min-width:0 !important;
        height:24px !important;
        min-height:24px !important;
        max-height:24px !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 4px !important;
        font-size:13px !important;
        line-height:1 !important;
        font-weight:950 !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
      }

      body.mobile-optimized #timelineDock .playFab{
        width:38px !important;
        min-width:38px !important;
        height:38px !important;
        min-height:38px !important;
        max-height:38px !important;
        font-size:18px !important;
      }

      body.mobile-optimized #timelineDock .miniAction{
        min-width:68px !important;
        height:31px !important;
        min-height:31px !important;
        max-height:31px !important;
        padding:0 9px !important;
        font-size:9.5px !important;
        letter-spacing:.09em !important;
      }

      body.mobile-optimized #timelineDock .timeline-key-item::after{
        font-size:10.5px !important;
      }

      body.mobile-optimized #timelineDock .timeline-end,
      body.mobile-optimized #timelineDock .timeline-scale{
        font-size:11px !important;
        line-height:1 !important;
      }

      body.mobile-optimized #timelineDock #hourSlider{
        height:4px !important;
        min-height:4px !important;
        margin:0 !important;
      }

      body.mobile-optimized #timelineDock #hourSlider::-webkit-slider-thumb{
        width:18px !important;
        height:18px !important;
      }

      body.mobile-optimized #timelineDock #hourSlider::-moz-range-thumb{
        width:18px !important;
        height:18px !important;
      }

      body.mobile-optimized #timelineBubble{
        top:-28px !important;
        z-index:9999 !important;
      }
    }


    @media (orientation: landscape) and (max-height: 620px){
      :root{
        --pj-long-safe-top:env(safe-area-inset-top, 0px);
        --pj-long-safe-right:env(safe-area-inset-right, 0px);
        --pj-long-safe-bottom:env(safe-area-inset-bottom, 0px);
        --pj-long-safe-left:env(safe-area-inset-left, 0px);
        --pj-long-top-y:calc(var(--pj-long-safe-top) + 8px);
        --pj-long-pill-h:118px;
      }

      html,
      body,
      #app,
      #mapWrap,
      #map{
        height:100svh !important;
        min-height:100svh !important;
        max-height:100svh !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #mapTitleBadge{
        display:flex !important;
        position:fixed !important;
        z-index:1800 !important;
        top:var(--pj-long-top-y) !important;
        left:50% !important;
        transform:translateX(-50%) !important;
        width:auto !important;
        min-width:0 !important;
        max-width:42vw !important;
        height:42px !important;
        min-height:42px !important;
        max-height:42px !important;
        padding:0 20px !important;
        border-radius:999px !important;
        align-items:center !important;
        justify-content:center !important;
        font-size:19px !important;
        line-height:1 !important;
        font-weight:950 !important;
        letter-spacing:-.035em !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        background:rgba(11,18,32,.92) !important;
        border:1px solid rgba(191,219,254,.22) !important;
        box-shadow:0 12px 30px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08) !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        pointer-events:none !important;
      }

      body.mobile-optimized #mobileControlsToggle,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle{
        display:grid !important;
        position:fixed !important;
        z-index:1850 !important;
        top:var(--pj-long-top-y) !important;
        left:calc(var(--pj-long-safe-left) + 14px) !important;
        width:42px !important;
        min-width:42px !important;
        max-width:42px !important;
        height:42px !important;
        min-height:42px !important;
        max-height:42px !important;
        padding:0 !important;
        border-radius:999px !important;
        place-items:center !important;
        background:rgba(11,18,32,.92) !important;
        border:1px solid rgba(191,219,254,.20) !important;
        box-shadow:0 12px 26px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.08) !important;
        transform:none !important;
      }

      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle .mobile-controls-icon{
        width:21px !important;
        height:16px !important;
        display:block !important;
        position:relative !important;
        margin:0 !important;
        transform:none !important;
      }

      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon i,
      body.mobile-optimized.mobile-legend-open #mobileControlsToggle .mobile-controls-icon i{
        left:0 !important;
        width:21px !important;
        height:3px !important;
        border-radius:999px !important;
        background:#eaf0ff !important;
      }
      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon i:nth-child(1){ top:0 !important; }
      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon i:nth-child(2){ top:6.5px !important; }
      body.mobile-optimized #mobileControlsToggle .mobile-controls-icon i:nth-child(3){ bottom:0 !important; }

      body.mobile-optimized.mobile-controls-open #mobileControlsToggle{
        opacity:0 !important;
        visibility:hidden !important;
        pointer-events:none !important;
      }

      .leaflet-top.leaflet-right{
        top:var(--pj-long-top-y) !important;
        right:calc(var(--pj-long-safe-right) + 14px) !important;
      }

      body.mobile-optimized .leaflet-control-zoom{
        border-radius:999px !important;
        box-shadow:0 14px 30px rgba(0,0,0,.34) !important;
      }

      body.mobile-optimized .leaflet-control-zoom a{
        width:40px !important;
        height:40px !important;
        line-height:40px !important;
        font-size:22px !important;
        background:rgba(11,18,32,.94) !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
      }

      body.mobile-optimized #timelineDock{
        position:fixed !important;
        z-index:1700 !important;
        left:50% !important;
        right:auto !important;
        bottom:calc(var(--pj-long-safe-bottom) + 7px) !important;
        transform:translateX(-50%) !important;
        width:min(84vw, 820px) !important;
        min-width:0 !important;
        max-width:calc(100vw - var(--pj-long-safe-left) - var(--pj-long-safe-right) - 28px) !important;
        height:var(--pj-long-pill-h) !important;
        min-height:var(--pj-long-pill-h) !important;
        max-height:var(--pj-long-pill-h) !important;
        display:grid !important;
        grid-template-columns:1fr !important;
        grid-template-rows:34px 18px 19px 24px !important;
        gap:4px !important;
        padding:8px 12px 9px !important;
        border-radius:22px !important;
        overflow:visible !important;
        contain:none !important;
        background:rgba(31,43,58,.96) !important;
        border:1px solid rgba(191,219,254,.22) !important;
        box-shadow:0 18px 44px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08) !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
      }

      body.mobile-optimized #timelineDock .timeline-top{
        grid-row:1 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:8px !important;
        height:34px !important;
        min-height:34px !important;
        max-height:34px !important;
        margin:0 !important;
        padding:0 138px 0 0 !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #timelineDock .timeline-controls{
        display:flex !important;
        align-items:center !important;
        gap:7px !important;
        min-width:0 !important;
      }

      body.mobile-optimized #timelineDock .playFab{
        width:36px !important;
        min-width:36px !important;
        max-width:36px !important;
        height:36px !important;
        min-height:36px !important;
        max-height:36px !important;
        font-size:17px !important;
        line-height:1 !important;
      }

      body.mobile-optimized #timelineDock .miniAction{
        min-width:66px !important;
        max-width:74px !important;
        height:30px !important;
        min-height:30px !important;
        max-height:30px !important;
        padding:0 9px !important;
        border-radius:999px !important;
        font-size:9px !important;
        line-height:1 !important;
        letter-spacing:.09em !important;
      }

      body.mobile-optimized #timelineDock #legendDock,
      body.mobile-optimized #legendDock{
        position:absolute !important;
        top:11px !important;
        right:11px !important;
        left:auto !important;
        bottom:auto !important;
        transform:none !important;
        z-index:5 !important;
        width:128px !important;
        min-width:128px !important;
        max-width:128px !important;
        height:28px !important;
        min-height:28px !important;
        max-height:28px !important;
        display:grid !important;
        grid-template-columns:minmax(0,1fr) 26px !important;
        gap:6px !important;
        align-items:center !important;
        padding:0 !important;
        margin:0 !important;
        background:transparent !important;
        border:0 !important;
        box-shadow:none !important;
        overflow:hidden !important;
        pointer-events:auto !important;
      }

      body.mobile-optimized #timelineDock #legendDock::before,
      body.mobile-optimized #legendDock::before{
        content:"" !important;
        display:block !important;
        width:100% !important;
        height:15px !important;
        min-height:15px !important;
        max-height:15px !important;
        border-radius:999px !important;
        border:1px solid rgba(255,255,255,.20) !important;
        background:linear-gradient(90deg,
          var(--depth-0) 0 10%,
          var(--depth-1) 10% 20%,
          var(--depth-2) 20% 30%,
          var(--depth-3) 30% 40%,
          var(--depth-4) 40% 50%,
          var(--depth-5) 50% 60%,
          var(--depth-6) 60% 70%,
          var(--depth-7) 70% 80%,
          var(--depth-8) 80% 90%,
          var(--depth-9) 90% 100%) !important;
      }

      body.mobile-optimized #timelineDock #legendDock .legend-header-actions,
      body.mobile-optimized #legendDock .legend-header-actions,
      body.mobile-optimized #timelineDock #legendDock .legend-help-btn,
      body.mobile-optimized #timelineDock #legendDock .help-btn,
      body.mobile-optimized #timelineDock #legendHelpBtn,
      body.mobile-optimized #timelineDock #floodDepthHelpBtn,
      body.mobile-optimized #legendDock .legend-help-btn,
      body.mobile-optimized #legendDock .help-btn,
      body.mobile-optimized #legendHelpBtn,
      body.mobile-optimized #floodDepthHelpBtn{
        width:26px !important;
        min-width:26px !important;
        max-width:26px !important;
        height:26px !important;
        min-height:26px !important;
        max-height:26px !important;
        display:grid !important;
        place-items:center !important;
        font-size:12px !important;
        line-height:1 !important;
        border-radius:999px !important;
      }

      body.mobile-optimized #timelineDock .timeline-flood-key{
        grid-row:2 !important;
        display:grid !important;
        grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
        align-items:center !important;
        justify-items:center !important;
        gap:4px !important;
        width:100% !important;
        height:18px !important;
        min-height:18px !important;
        max-height:18px !important;
        margin:0 !important;
        padding:0 !important;
        overflow:hidden !important;
        font-size:0 !important;
        line-height:1 !important;
      }

      body.mobile-optimized #timelineDock .timeline-key-item{
        width:100% !important;
        min-width:0 !important;
        height:18px !important;
        min-height:18px !important;
        max-height:18px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:4px !important;
        overflow:hidden !important;
        white-space:nowrap !important;
        font-size:0 !important;
        line-height:1 !important;
      }

      body.mobile-optimized #timelineDock .timeline-key-item::after{
        font-size:10px !important;
        line-height:1 !important;
        font-weight:950 !important;
        color:#eaf0ff !important;
        max-width:calc(100% - 13px) !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
      }

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

      body.mobile-optimized #timelineDock .timeline-trackRow{
        grid-row:3 !important;
        display:grid !important;
        grid-template-columns:86px minmax(0,1fr) 104px !important;
        gap:7px !important;
        align-items:center !important;
        height:19px !important;
        min-height:19px !important;
        max-height:19px !important;
        margin:0 !important;
        overflow:visible !important;
      }

      body.mobile-optimized #timelineDock .timeline-end,
      body.mobile-optimized #timelineDock .timeline-scale{
        font-size:10.5px !important;
        line-height:1 !important;
        font-weight:950 !important;
        color:#c7d2fe !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
      }

      body.mobile-optimized #timelineDock #hourSlider{
        height:4px !important;
        min-height:4px !important;
        margin:0 !important;
      }

      body.mobile-optimized #timelineDock #hourSlider::-webkit-slider-thumb{
        width:17px !important;
        height:17px !important;
      }

      body.mobile-optimized #timelineDock #hourSlider::-moz-range-thumb{
        width:17px !important;
        height:17px !important;
      }

      body.mobile-optimized #timelineDock .timeline-days{
        grid-row:4 !important;
        display:flex !important;
        visibility:visible !important;
        opacity:1 !important;
        width:100% !important;
        height:24px !important;
        min-height:24px !important;
        max-height:24px !important;
        margin:0 !important;
        padding:0 !important;
        align-self:end !important;
        border-radius:999px !important;
        overflow:hidden !important;
        background:rgba(255,255,255,.10) !important;
      }

      body.mobile-optimized #timelineDock .timeline-day{
        flex:1 1 0 !important;
        min-width:0 !important;
        height:24px !important;
        min-height:24px !important;
        max-height:24px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 5px !important;
        font-size:13px !important;
        line-height:1 !important;
        font-weight:950 !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
      }

      body.mobile-optimized #timelineBubble{
        display:flex !important;
        top:-27px !important;
        min-height:22px !important;
        padding:5px 12px 6px !important;
        border-radius:999px !important;
        font-size:11px !important;
        line-height:1 !important;
        z-index:9999 !important;
        max-width:calc(100vw - 48px) !important;
      }


      body.mobile-optimized #leftPanel{
        top:calc(var(--pj-long-safe-top) + 8px) !important;
        bottom:calc(var(--pj-long-pill-h) + var(--pj-long-safe-bottom) + 18px) !important;
        left:calc(var(--pj-long-safe-left) + 8px) !important;
        width:min(46vw, 440px) !important;
        max-width:min(46vw, 440px) !important;
        height:auto !important;
        max-height:calc(100svh - var(--pj-long-pill-h) - var(--pj-long-safe-top) - var(--pj-long-safe-bottom) - 28px) !important;
        padding:10px 10px 12px !important;
        border-radius:20px !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        scrollbar-width:thin !important;
        background:#0b1220 !important;
      }

      body.mobile-optimized.mobile-controls-open #leftPanel{
        transform:none !important;
        opacity:1 !important;
        visibility:visible !important;
        pointer-events:auto !important;
      }

      body.mobile-optimized.mobile-controls-open #mobileControlsClose{
        position:sticky !important;
        top:0 !important;
        width:32px !important;
        min-width:32px !important;
        max-width:32px !important;
        height:32px !important;
        min-height:32px !important;
        max-height:32px !important;
        margin:0 0 7px auto !important;
        font-size:20px !important;
      }

      body.mobile-optimized #leftPanel .panel-card{
        border-radius:16px !important;
        padding:10px !important;
        margin:0 0 8px !important;
      }

      body.mobile-optimized #leftPanel .section-title{
        margin-bottom:7px !important;
      }

      body.mobile-optimized #leftPanel .section-title h2{
        font-size:13px !important;
        line-height:1.05 !important;
      }

      body.mobile-optimized #leftPanel button,
      body.mobile-optimized #leftPanel .segmented-control button{
        min-height:34px !important;
        height:34px !important;
        font-size:12px !important;
        border-radius:12px !important;
      }

      body.mobile-optimized #leftPanel .button-grid-2,
      body.mobile-optimized #leftPanel .button-grid-3{
        gap:6px !important;
      }

      body.mobile-optimized #leftPanel .snapshot-card .stat-grid{
        grid-template-columns:1fr 1fr !important;
        gap:7px !important;
      }

      body.mobile-optimized #leftPanel .snapshot-card .stat-box{
        padding:10px 8px !important;
        border-radius:14px !important;
      }

      body.mobile-optimized #leftPanel .stat-value{
        font-size:15px !important;
      }
    }

    @media (orientation:landscape) and (max-height:420px){

      body.mobile-optimized #mapTitleBadge{
        height:36px !important;
        min-height:36px !important;
        max-height:36px !important;
        padding:0 16px !important;
        font-size:17px !important;
        max-width:38vw !important;
      }

      body.mobile-optimized #mobileControlsToggle{
        width:38px !important;
        min-width:38px !important;
        max-width:38px !important;
        height:38px !important;
        min-height:38px !important;
        max-height:38px !important;
      }

      body.mobile-optimized .leaflet-control-zoom a{
        width:36px !important;
        height:36px !important;
        line-height:36px !important;
      }

      body.mobile-optimized #timelineDock{
        width:min(86vw, 780px) !important;
        grid-template-rows:31px 16px 17px 22px !important;
        gap:3px !important;
        padding:7px 11px 8px !important;
      }

      body.mobile-optimized #timelineDock .timeline-top{
        height:31px !important;
        min-height:31px !important;
        max-height:31px !important;
        padding-right:122px !important;
      }

      body.mobile-optimized #timelineDock .playFab{
        width:32px !important;
        min-width:32px !important;
        height:32px !important;
        min-height:32px !important;
      }

      body.mobile-optimized #timelineDock .miniAction{
        min-width:58px !important;
        max-width:66px !important;
        height:27px !important;
        min-height:27px !important;
        max-height:27px !important;
        font-size:8.5px !important;
      }

      body.mobile-optimized #timelineDock #legendDock,
      body.mobile-optimized #legendDock{
        width:116px !important;
        min-width:116px !important;
        max-width:116px !important;
        height:25px !important;
        min-height:25px !important;
        max-height:25px !important;
        grid-template-columns:minmax(0,1fr) 24px !important;
        gap:5px !important;
        top:9px !important;
        right:10px !important;
      }

      body.mobile-optimized #timelineDock #legendDock::before,
      body.mobile-optimized #legendDock::before{
        height:13px !important;
        min-height:13px !important;
        max-height:13px !important;
      }

      body.mobile-optimized #timelineDock .timeline-flood-key{
        height:16px !important;
        min-height:16px !important;
        max-height:16px !important;
      }


      body.mobile-optimized #timelineDock .timeline-trackRow{
        grid-template-columns:76px minmax(0,1fr) 92px !important;
        height:17px !important;
        min-height:17px !important;
        max-height:17px !important;
      }

      body.mobile-optimized #timelineDock .timeline-end,
      body.mobile-optimized #timelineDock .timeline-scale{
        font-size:9.5px !important;
      }

      body.mobile-optimized #timelineDock .timeline-days,
      body.mobile-optimized #timelineDock .timeline-day{
        height:22px !important;
        min-height:22px !important;
        max-height:22px !important;
        font-size:12px !important;
      }

      body.mobile-optimized #timelineBubble{
        top:-24px !important;
        min-height:20px !important;
        padding:4px 10px 5px !important;
        font-size:10px !important;
      }
    }



    @media (orientation: landscape) and (max-height: 620px){
      :root{
        --pj-long-pill-h:118px;
      }

      body.mobile-optimized #timelineDock{
        width:min(78vw, 820px) !important;
        max-width:calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 42px) !important;
        height:var(--pj-long-pill-h) !important;
        min-height:var(--pj-long-pill-h) !important;
        max-height:var(--pj-long-pill-h) !important;
        grid-template-rows:32px 18px 20px 24px !important;
        gap:3px !important;
        padding:8px 14px 9px !important;
        border-radius:24px !important;
        overflow:visible !important;
      }

      body.mobile-optimized #timelineDock .timeline-top{
        grid-row:1 !important;
        height:32px !important;
        min-height:32px !important;
        max-height:32px !important;
        padding:0 150px 0 0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:8px !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #timelineDock .timeline-controls{
        display:flex !important;
        align-items:center !important;
        gap:7px !important;
        width:auto !important;
        min-width:0 !important;
        max-width:none !important;
      }

      body.mobile-optimized #timelineDock .playFab{
        width:35px !important;
        min-width:35px !important;
        max-width:35px !important;
        height:35px !important;
        min-height:35px !important;
        max-height:35px !important;
        flex:0 0 35px !important;
      }

      body.mobile-optimized #timelineDock .miniAction{
        width:66px !important;
        min-width:66px !important;
        max-width:66px !important;
        height:29px !important;
        min-height:29px !important;
        max-height:29px !important;
        padding:0 8px !important;
        font-size:8.8px !important;
        letter-spacing:.10em !important;
        flex:0 0 66px !important;
      }

      body.mobile-optimized #timelineDock #legendDock,
      body.mobile-optimized #legendDock{
        top:10px !important;
        right:12px !important;
        width:128px !important;
        min-width:128px !important;
        max-width:128px !important;
        height:28px !important;
        min-height:28px !important;
        max-height:28px !important;
      }

      body.mobile-optimized #timelineDock .timeline-flood-key{
        grid-row:2 !important;
        width:min(570px, calc(100% - 20px)) !important;
        max-width:min(570px, calc(100% - 20px)) !important;
        justify-self:center !important;
        height:18px !important;
        min-height:18px !important;
        max-height:18px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:16px !important;
        margin:0 auto !important;
        padding:0 !important;
        overflow:hidden !important;
      }

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

      body.mobile-optimized #timelineDock .timeline-key-item::after{
        font-size:10px !important;
        line-height:1 !important;
        font-weight:950 !important;
        white-space:nowrap !important;
      }

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

      body.mobile-optimized #timelineDock .timeline-trackRow{
        grid-row:3 !important;
        width:calc(100% - 10px) !important;
        max-width:calc(100% - 10px) !important;
        justify-self:center !important;
        display:grid !important;
        grid-template-columns:minmax(82px, max-content) minmax(180px, 1fr) minmax(96px, max-content) !important;
        gap:10px !important;
        align-items:center !important;
        height:20px !important;
        min-height:20px !important;
        max-height:20px !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
      }

      body.mobile-optimized #timelineDock .timeline-end,
      body.mobile-optimized #timelineDock .timeline-scale{
        display:block !important;
        min-width:0 !important;
        width:auto !important;
        max-width:132px !important;
        font-size:10.5px !important;
        line-height:1 !important;
        font-weight:950 !important;
        color:#c7d2fe !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
      }

      body.mobile-optimized #timelineDock .timeline-scale{
        text-align:right !important;
        justify-self:end !important;
      }

      body.mobile-optimized #timelineDock #hourSlider{
        display:block !important;
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
        height:4px !important;
        min-height:4px !important;
        margin:0 !important;
        justify-self:stretch !important;
      }

      body.mobile-optimized #timelineDock .timeline-days{
        grid-row:4 !important;
        width:100% !important;
        height:24px !important;
        min-height:24px !important;
        max-height:24px !important;
        margin:0 !important;
        padding:0 !important;
        display:flex !important;
        align-items:stretch !important;
        justify-content:stretch !important;
        align-self:end !important;
        border-radius:999px !important;
        overflow:hidden !important;
      }

      body.mobile-optimized #timelineDock .timeline-day{
        height:24px !important;
        min-height:24px !important;
        max-height:24px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        font-size:12.5px !important;
        line-height:1 !important;
        padding:0 5px !important;
      }

      body.mobile-optimized #timelineBubble{
        top:-28px !important;
        min-height:22px !important;
        padding:5px 12px 6px !important;
        font-size:10.5px !important;
        line-height:1 !important;
        z-index:9999 !important;
      }

      body.mobile-optimized #mapTitleBadge{
        top:calc(env(safe-area-inset-top, 0px) + 8px) !important;
        height:40px !important;
        min-height:40px !important;
        max-height:40px !important;
        font-size:18px !important;
        max-width:40vw !important;
      }

      body.mobile-optimized #mobileControlsToggle{
        top:calc(env(safe-area-inset-top, 0px) + 8px) !important;
        width:40px !important;
        min-width:40px !important;
        max-width:40px !important;
        height:40px !important;
        min-height:40px !important;
        max-height:40px !important;
      }
    }

    @media (orientation:landscape) and (max-height:420px){
      :root{ --pj-long-pill-h:108px; }

      body.mobile-optimized #timelineDock{
        width:min(76vw, 760px) !important;
        grid-template-rows:30px 16px 18px 22px !important;
        gap:3px !important;
        padding:7px 12px 8px !important;
        border-radius:22px !important;
      }

      body.mobile-optimized #timelineDock .timeline-top{
        height:30px !important;
        min-height:30px !important;
        max-height:30px !important;
        padding-right:122px !important;
      }

      body.mobile-optimized #timelineDock .playFab{
        width:32px !important;
        min-width:32px !important;
        height:32px !important;
        min-height:32px !important;
        flex-basis:32px !important;
      }

      body.mobile-optimized #timelineDock .miniAction{
        width:58px !important;
        min-width:58px !important;
        max-width:58px !important;
        height:26px !important;
        min-height:26px !important;
        max-height:26px !important;
        font-size:8px !important;
      }

      body.mobile-optimized #timelineDock #legendDock,
      body.mobile-optimized #legendDock{
        width:112px !important;
        min-width:112px !important;
        max-width:112px !important;
        height:25px !important;
        min-height:25px !important;
        max-height:25px !important;
        top:8px !important;
        right:10px !important;
      }

      body.mobile-optimized #timelineDock .timeline-flood-key{
        width:min(500px, calc(100% - 18px)) !important;
        max-width:min(500px, calc(100% - 18px)) !important;
        height:16px !important;
        min-height:16px !important;
        max-height:16px !important;
        gap:12px !important;
      }

      body.mobile-optimized #timelineDock .timeline-key-item::after{
        font-size:9px !important;
      }

      body.mobile-optimized #timelineDock .timeline-trackRow{
        grid-template-columns:minmax(74px, max-content) minmax(160px, 1fr) minmax(88px, max-content) !important;
        height:18px !important;
        min-height:18px !important;
        max-height:18px !important;
      }

      body.mobile-optimized #timelineDock .timeline-end,
      body.mobile-optimized #timelineDock .timeline-scale{
        font-size:9px !important;
        max-width:112px !important;
      }

      body.mobile-optimized #timelineDock .timeline-days,
      body.mobile-optimized #timelineDock .timeline-day{
        height:22px !important;
        min-height:22px !important;
        max-height:22px !important;
        font-size:11px !important;
      }

      body.mobile-optimized #timelineBubble{
        top:-24px !important;
        min-height:20px !important;
        padding:4px 10px 5px !important;
        font-size:9.5px !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) {
      #leftPanel{
        top:16px !important;
        padding-top:0 !important;
      }

      #leftPanel > #mobileControlsClose,
      #leftPanel > #mobileRailMount,
      #leftPanel > .brand{
        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;
        padding:0 !important;
        margin:0 !important;
        border:0 !important;
        overflow:hidden !important;
        flex:0 0 0 !important;
        order:-999 !important;
        pointer-events:none !important;
      }

      #leftPanel > .data-source-card,
      #leftPanel > .panel-card:first-of-type{
        margin-top:0 !important;
      }
    }


    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized.mobile-controls-open #leftPanel > #mobileControlsClose{
        display:grid !important;
        visibility:visible !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 0 8px auto !important;
        padding:0 !important;
        border:1px solid rgba(255,255,255,.16) !important;
        overflow:visible !important;
        flex:0 0 auto !important;
        pointer-events:auto !important;
      }
    }



    

    #mobileControlsClose{
      display:none;
    }

    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      body.mobile-optimized.mobile-controls-open #mobileControlsToggle,
      body.mobile-optimized.mobile-controls-open.mobile-legend-open #mobileControlsToggle{
        opacity:0 !important;
        visibility:hidden !important;
        pointer-events:none !important;
      }

      body.mobile-optimized.mobile-controls-open #leftPanel{
        position:fixed !important;
        padding-top:56px !important;
        z-index:5700 !important;
      }

      body.mobile-optimized.mobile-controls-open #leftPanel > #mobileControlsClose{
        position:absolute !important;
        top:12px !important;
        right:12px !important;
        z-index:6000 !important;
        display:grid !important;
        place-items:center !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;
        border-radius:999px !important;
        border:1px solid rgba(191,219,254,.34) !important;
        background:rgba(15,23,42,.98) !important;
        color:#eaf0ff !important;
        -webkit-text-fill-color:#eaf0ff !important;
        box-shadow:0 10px 24px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.10) !important;
        font-size:26px !important;
        line-height:34px !important;
        font-weight:900 !important;
        letter-spacing:0 !important;
        text-indent:0 !important;
        text-align:center !important;
        cursor:pointer !important;
        pointer-events:auto !important;
        opacity:1 !important;
        visibility:visible !important;
        transform:none !important;
        filter:none !important;
        -webkit-filter:none !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        appearance:none !important;
        -webkit-appearance:none !important;
      }

      body.mobile-optimized.mobile-controls-open #leftPanel > #mobileControlsClose:hover,
      body.mobile-optimized.mobile-controls-open #leftPanel > #mobileControlsClose:active{
        transform:none !important;
        background:rgba(30,41,59,.98) !important;
        box-shadow:0 10px 24px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.12) !important;
      }
    }


    #mapTitleBadge.shorely-title-badge{
      display:flex !important;
      align-items:center !important;
      justify-content:center !important;
      gap:12px !important;
      padding:8px 14px !important;
      white-space:nowrap !important;
    }

    .shorely-title-text{
      display:inline-block;
      font-weight:950;
      letter-spacing:-.03em;
      line-height:1;
    }

    .shorely-title-logo{
      display:block;
      object-fit:contain;
      max-height:30px;
      max-width:92px;
      flex:0 0 auto;
      filter:drop-shadow(0 7px 12px rgba(0,0,0,.25));
    }

    .shorely-title-logo-town{ max-width:108px; }
    .shorely-title-logo-shorelysafe{ max-width:108px; }

    .calendar-title-btn,
    #monthLabel{
      text-align:center !important;
      justify-content:center !important;
      width:100% !important;
    }

    .calendar-popover-head{
      display:grid !important;
      grid-template-columns:30px 1fr 30px !important;
      align-items:center !important;
      text-align:center !important;
    }

    .calendar-popover-head span{
      grid-column:2 !important;
      justify-self:center !important;
      text-align:center !important;
      width:100% !important;
    }

    .calendar-popover-close{
      grid-column:3 !important;
      justify-self:end !important;
    }

    .calendar-popover-grid{
      grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) !important;
      align-items:end !important;
    }

    .calendar-popover-grid label,
    .calendar-popover-grid select{
      text-align:center !important;
      text-align-last:center !important;
    }

    #calendarGoBtn{
      grid-column:1 / -1 !important;
      justify-self:center !important;
      min-width:96px !important;
    }

    .shorely-address-marker-wrap{
      background:transparent !important;
      border:0 !important;
    }

    .shorely-address-marker{
      width:26px;
      height:26px;
      border-radius:999px;
      display:grid;
      place-items:center;
      background:#2B286F;
      border:2px solid rgba(255,255,255,.95);
      box-shadow:0 8px 18px rgba(0,0,0,.35), 0 0 0 2px rgba(43,40,111,.20);
    }

    .shorely-address-marker span{
      width:8px;
      height:8px;
      border-radius:999px;
      background:#ffffff;
      box-shadow:0 0 0 1px rgba(255,255,255,.40);
    }

    .snapshot-card .stat-box.snapshot-water-minor{
      background:linear-gradient(180deg, rgba(213,138,0,.42), rgba(213,138,0,.20)) !important;
      border-color:rgba(213,138,0,.82) !important;
      box-shadow:0 12px 26px rgba(213,138,0,.16), inset 0 1px 0 rgba(255,255,255,.10) !important;
    }

    .snapshot-card .stat-box.snapshot-water-moderate{
      background:linear-gradient(180deg, rgba(216,75,103,.44), rgba(216,75,103,.20)) !important;
      border-color:rgba(216,75,103,.84) !important;
      box-shadow:0 12px 26px rgba(216,75,103,.16), inset 0 1px 0 rgba(255,255,255,.10) !important;
    }

    .snapshot-card .stat-box.snapshot-water-major{
      background:linear-gradient(180deg, rgba(124,92,224,.48), rgba(124,92,224,.22)) !important;
      border-color:rgba(124,92,224,.88) !important;
      box-shadow:0 12px 26px rgba(124,92,224,.20), inset 0 1px 0 rgba(255,255,255,.10) !important;
    }

    #timelineBubble{
      background:rgba(11,18,32,.96) !important;
      border:1px solid rgba(191,219,254,.18) !important;
      display:flex !important;
      align-items:center !important;
      justify-content:center !important;
      gap:10px !important;
      max-width:min(760px, calc(100vw - 52px)) !important;
      white-space:nowrap !important;
    }

    #timelineBubble::after{ border-top-color:rgba(11,18,32,.96) !important; }
    .timeline-bubble-edge{ color:#a9b6d3; font-size:10px; font-weight:850; }
    .timeline-bubble-current{ color:#fff; font-size:13px; font-weight:950; }

    .timeline-trackRow{
      grid-template-columns:1fr !important;
    }

    .timeline-end,
    .timeline-scale{
      display:none !important;
    }

    @media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
      #mapTitleBadge.shorely-title-badge{
        gap:7px !important;
        max-width:calc(100vw - 16px) !important;
        padding:6px 9px !important;
      }

      .shorely-title-logo{ max-height:22px; max-width:70px; }
      .shorely-title-logo-town{ max-width:78px; }
      .shorely-title-logo-shorelysafe{ max-width:78px; }
      .shorely-title-text{ font-size:15px !important; }

      body.mobile-optimized #timelineDock #legendDock,
      body.mobile-optimized #timelineDock .legend-card,
      body.mobile-optimized #timelineDock .timeline-flood-key{
        display:none !important;
        visibility:hidden !important;
        pointer-events:none !important;
      }

      body.mobile-optimized.mobile-controls-open #leftPanel{
        padding-top:50px !important;
      }

      body.mobile-optimized.mobile-controls-open #leftPanel > #mobileControlsClose{
        position:fixed !important;
        top:calc(10px + env(safe-area-inset-top)) !important;
        right:calc(12px + env(safe-area-inset-right)) !important;
        left:auto !important;
        z-index:9000 !important;
        display:grid !important;
        place-items:center !important;
      }

      body.mobile-optimized #leftPanel > .overlay-card{ order:20 !important; }
      body.mobile-optimized #leftPanel > .datum-card{ order:30 !important; }
      body.mobile-optimized #leftPanel > #calendarCard{ order:40 !important; }
      body.mobile-optimized #leftPanel > .mobile-top-tides-card{ order:50 !important; }
      body.mobile-optimized #leftPanel > .snapshot-card{ order:60 !important; }
      body.mobile-optimized #mobileRailMount > .download-launch-card,
      body.mobile-optimized #mobileRailMount > .download-card{ order:70 !important; }
      body.mobile-optimized #mobileRailMount > #townAddressCard,
      body.mobile-optimized #mobileRailMount > .town-address-card{ order:80 !important; }

      body.mobile-optimized #timelineBubble{
        top:-13px !important;
        gap:6px !important;
        max-width:calc(100vw - 24px) !important;
        padding:4px 8px !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) {
  #leftPanel,
  body.observed-mode #leftPanel,
  body.calendar-picker-open #leftPanel,
  body.observed-mode.calendar-picker-open #leftPanel,
  html.os-windows body.observed-mode #leftPanel,
  html.os-windows body.observed-mode.calendar-picker-open #leftPanel{
    top:16px !important;
    bottom:132px !important;
    height:auto !important;
    max-height:calc(100vh - 148px) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding:0 3px 0 0 !important;
    scrollbar-gutter:stable !important;
    z-index:1450 !important;
  }

  #rightRail,
  body.observed-mode #rightRail,
  body.calendar-picker-open #rightRail,
  body.observed-mode.calendar-picker-open #rightRail{
    top:16px !important;
    bottom:132px !important;
    height:auto !important;
    max-height:calc(100vh - 148px) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    z-index:1450 !important;
  }

  #timelineDock,
  body.observed-mode #timelineDock,
  body.calendar-picker-open #timelineDock,
  body.observed-mode.calendar-picker-open #timelineDock{
    left:16px !important;
    right:16px !important;
    bottom:16px !important;
    z-index:1300 !important;
    max-height:108px !important;
    overflow:visible !important;
  }
}


#calendarTitleBtn,
.calendar-title-btn{
  display:grid !important;
  grid-template-columns:1fr auto 1fr !important;
  align-items:center !important;
  justify-items:center !important;
  text-align:center !important;
}
#calendarTitleBtn #monthLabel,
.calendar-title-btn #monthLabel{
  grid-column:2 !important;
  justify-self:center !important;
  text-align:center !important;
  width:auto !important;
  min-width:0 !important;
}
#calendarTitleBtn .caret,
.calendar-title-btn .caret{
  grid-column:3 !important;
  justify-self:start !important;
  margin-left:6px !important;
}


#calendarPopover,
body #calendarPopover,
body.observed-mode #calendarPopover,
body.calendar-picker-open #calendarPopover,
body.observed-mode.calendar-picker-open #calendarPopover{
  display:none !important;
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100dvh !important;
  transform:none !important;
  z-index:12000 !important;
  padding:18px !important;
  border:0 !important;
  border-radius:0 !important;
  background:rgba(5,11,22,.58) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  overflow:hidden !important;
  align-items:center !important;
  justify-content:center !important;
}
#calendarPopover.open,
body #calendarPopover.open,
body.observed-mode #calendarPopover.open,
body.calendar-picker-open #calendarPopover.open,
body.observed-mode.calendar-picker-open #calendarPopover.open{
  display:flex !important;
}
#calendarPopover .calendar-popover-head{
  display:none !important;
}
#calendarPopover .calendar-popover-grid,
body #calendarPopover .calendar-popover-grid,
body.observed-mode #calendarPopover .calendar-popover-grid,
body.calendar-picker-open #calendarPopover .calendar-popover-grid,
body.observed-mode.calendar-picker-open #calendarPopover .calendar-popover-grid{
  position:relative !important;
  width:min(390px, calc(100vw - 32px)) !important;
  max-width:min(390px, calc(100vw - 32px)) !important;
  max-height:calc(100dvh - 36px) !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:12px !important;
  align-items:start !important;
  padding:54px 18px 18px !important;
  border-radius:24px !important;
  border:1px solid rgba(191,219,254,.24) !important;
  background:rgba(11,18,32,.985) !important;
  box-shadow:0 28px 70px rgba(0,0,0,.46) !important;
  overflow:visible !important;
}
#calendarPopover .calendar-popover-grid::before{
  content:"Choose Month" !important;
  position:absolute !important;
  top:18px !important;
  left:52px !important;
  right:52px !important;
  margin:0 !important;
  text-align:center !important;
  color:#ffffff !important;
  font-size:18px !important;
  line-height:1.15 !important;
  font-weight:950 !important;
  letter-spacing:-.025em !important;
}
#calendarPopover .calendar-popover-grid::after{
  content:"×" !important;
  position:absolute !important;
  top:12px !important;
  right:14px !important;
  width:34px !important;
  height:34px !important;
  border-radius:999px !important;
  display:grid !important;
  place-items:center !important;
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(255,255,255,.15) !important;
  color:#eaf0ff !important;
  font-size:22px !important;
  font-weight:900 !important;
  pointer-events:none !important;
}
#calendarPopover label,
body #calendarPopover label,
body.observed-mode #calendarPopover label,
body.calendar-picker-open #calendarPopover label,
body.observed-mode.calendar-picker-open #calendarPopover label{
  display:grid !important;
  gap:7px !important;
  color:#c7d2fe !important;
  font-size:10px !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.09em !important;
  line-height:1.1 !important;
  text-align:center !important;
  justify-items:center !important;
}
#calendarPopover select,
body #calendarPopover select,
body.observed-mode #calendarPopover select,
body.calendar-picker-open #calendarPopover select,
body.observed-mode.calendar-picker-open #calendarPopover select{
  width:100% !important;
  min-height:44px !important;
  height:44px !important;
  padding:0 12px !important;
  border-radius:14px !important;
  background:#172033 !important;
  border:1px solid rgba(191,219,254,.20) !important;
  color:#eaf0ff !important;
  font-size:13px !important;
  font-weight:900 !important;
  text-align:center !important;
  text-align-last:center !important;
}
#calendarGoBtn,
body #calendarGoBtn,
body.observed-mode #calendarGoBtn,
body.calendar-picker-open #calendarGoBtn,
body.observed-mode.calendar-picker-open #calendarGoBtn{
  grid-column:1 / -1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:46px !important;
  margin-top:2px !important;
  border-radius:14px !important;
  background:linear-gradient(180deg, rgba(96,165,250,.34), rgba(96,165,250,.18)) !important;
  border-color:rgba(191,219,254,.56) !important;
  color:#eef6ff !important;
  font-size:13px !important;
  font-weight:950 !important;
  visibility:visible !important;
  opacity:1 !important;
}


#calendarPopover.windows-datebar .native-datebar-field{
  display:none !important;
}
#calendarPopover .windows-datebar-controls{
  grid-column:1 / -1 !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:12px !important;
  width:100% !important;
}
#calendarPopover .windows-datebar-field{
  position:relative !important;
  display:grid !important;
  gap:7px !important;
  min-width:0 !important;
  text-align:center !important;
}
#calendarPopover .windows-datebar-label{
  color:#c7d2fe !important;
  font-size:10px !important;
  font-weight:950 !important;
  letter-spacing:.09em !important;
  line-height:1.1 !important;
  text-transform:uppercase !important;
  text-align:center !important;
}
#calendarPopover .windows-datebar-button{
  width:100% !important;
  min-height:44px !important;
  border-radius:14px !important;
  background:#172033 !important;
  border:1px solid rgba(191,219,254,.20) !important;
  color:#eaf0ff !important;
  font-size:13px !important;
  font-weight:950 !important;
  text-align:center !important;
  justify-content:center !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04) !important;
}
#calendarPopover .windows-datebar-menu{
  position:absolute !important;
  top:calc(100% + 6px) !important;
  left:0 !important;
  right:0 !important;
  z-index:3 !important;
  display:none !important;
  max-height:min(34dvh, 260px) !important;
  overflow-y:auto !important;
  padding:6px !important;
  border-radius:14px !important;
  border:1px solid rgba(191,219,254,.20) !important;
  background:#111827 !important;
  box-shadow:0 18px 34px rgba(0,0,0,.42) !important;
}
#calendarPopover .windows-datebar-field.open .windows-datebar-menu{
  display:grid !important;
  gap:4px !important;
}
#calendarPopover .windows-datebar-option{
  min-height:34px !important;
  padding:0 8px !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.04) !important;
  border:1px solid rgba(255,255,255,.06) !important;
  color:#eaf0ff !important;
  font-size:12px !important;
  font-weight:850 !important;
  text-align:center !important;
  justify-content:center !important;
}
#calendarPopover .windows-datebar-option.active{
  background:rgba(96,165,250,.22) !important;
  border-color:rgba(191,219,254,.58) !important;
}
@media (max-width:430px){
  #calendarPopover .calendar-popover-grid{
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;
    padding:52px 14px 14px !important;
  }
}


#timelineBubble{
  background:rgba(11,18,32,.97) !important;
  border:1px solid rgba(191,219,254,.22) !important;
  color:#eaf0ff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  max-width:min(850px, calc(100vw - 44px)) !important;
  min-width:min(420px, calc(100vw - 44px)) !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.timeline-bubble-edge{
  color:#a9b6d3 !important;
  font-size:10px !important;
  font-weight:850 !important;
  flex:0 1 auto !important;
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.timeline-bubble-current{
  color:#ffffff !important;
  font-size:13px !important;
  font-weight:950 !important;
  flex:0 0 auto !important;
}
.timeline-bubble-stage{
  color:#ffffff !important;
  font-size:12px !important;
  font-weight:950 !important;
  flex:0 0 auto !important;
  padding:2px 8px !important;
  border-radius:999px !important;
  background:rgba(96,165,250,.18) !important;
  border:1px solid rgba(191,219,254,.22) !important;
}
.timeline-trackRow,
body .timeline-trackRow{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) !important;
  gap:0 !important;
  width:100% !important;
}
.timeline-end,
.timeline-scale{
  display:none !important;
}
#hourSlider{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  grid-column:1 / -1 !important;
}


@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  body.mobile-optimized #timelineDock #legendDock,
  body.mobile-optimized #timelineDock .legend-card{
    display:none !important;
  }
  body.mobile-optimized #legendDock,
  body.mobile-optimized #legendDock.legend-card,
  body.mobile-optimized #legendDock.map-floating.legend-card,
  body.mobile-optimized.mobile-legend-open #legendDock{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    position:fixed !important;
    top:calc(56px + env(safe-area-inset-top)) !important;
    left:calc(9px + env(safe-area-inset-left)) !important;
    right:auto !important;
    bottom:auto !important;
    width:min(218px, calc(100vw - 18px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
    min-width:0 !important;
    max-width:min(218px, calc(100vw - 18px)) !important;
    height:auto !important;
    max-height:min(48dvh, 330px) !important;
    padding:9px 10px !important;
    border-radius:16px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    z-index:4300 !important;
    background:rgba(11,18,32,.96) !important;
    border:1px solid rgba(191,219,254,.20) !important;
    box-shadow:0 14px 30px rgba(0,0,0,.30) !important;
    pointer-events:auto !important;
    touch-action:pan-y !important;
    transform:none !important;
  }
  body.mobile-optimized #legendDock::before,
  body.mobile-optimized #legendDock::after,
  body.mobile-optimized.mobile-legend-open #legendDock::before,
  body.mobile-optimized.mobile-legend-open #legendDock::after{
    content:none !important;
    display:none !important;
  }
  body.mobile-optimized #legendDock .legend-title,
  body.mobile-optimized.mobile-legend-open #legendDock .legend-title{
    display:block !important;
    margin:0 0 6px 0 !important;
    font-size:12px !important;
    line-height:1.05 !important;
    color:#ffffff !important;
    white-space:normal !important;
  }
  body.mobile-optimized #legendDock .legend-body,
  body.mobile-optimized.mobile-legend-open #legendDock .legend-body,
  body.mobile-optimized #legendDock .legend-list,
  body.mobile-optimized.mobile-legend-open #legendDock .legend-list{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:4px !important;
    max-height:none !important;
    overflow:visible !important;
  }
  body.mobile-optimized #legendDock .legend-row,
  body.mobile-optimized #legendDock .legend-row:nth-child(n),
  body.mobile-optimized.mobile-legend-open #legendDock .legend-row,
  body.mobile-optimized.mobile-legend-open #legendDock .legend-row:nth-child(n){
    display:grid !important;
    grid-template-columns:11px minmax(0, 1fr) !important;
    gap:6px !important;
    align-items:center !important;
    font-size:9.5px !important;
    line-height:1.08 !important;
    font-weight:850 !important;
  }
  body.mobile-optimized #legendDock .legend-swatch{
    width:10px !important;
    height:10px !important;
    border-radius:4px !important;
  }
  body.mobile-optimized #legendDock .legend-header-actions{
    display:none !important;
  }
  body.mobile-optimized #mobileControlsToggle,
  body.mobile-optimized.mobile-controls-open #mobileControlsToggle,
  body.mobile-optimized.mobile-legend-open #mobileControlsToggle{
    top:max(12px, env(safe-area-inset-top, 0px) + 8px) !important;
    left:max(12px, env(safe-area-inset-left, 0px) + 10px) !important;
    bottom:auto !important;
    right:auto !important;
    z-index:5500 !important;
  }
  body.mobile-optimized #leftPanel,
  body.mobile-optimized.mobile-controls-open #leftPanel{
    top:calc(8px + env(safe-area-inset-top)) !important;
    bottom:calc(88px + env(safe-area-inset-bottom)) !important;
    left:calc(8px + env(safe-area-inset-left)) !important;
    right:calc(8px + env(safe-area-inset-right)) !important;
    max-height:none !important;
    overflow-y:auto !important;
  }
  body.mobile-optimized.mobile-controls-open #leftPanel > #mobileControlsClose{
    position:fixed !important;
    top:calc(10px + env(safe-area-inset-top)) !important;
    right:calc(12px + env(safe-area-inset-right)) !important;
    z-index:9000 !important;
  }
  body.mobile-optimized #timelineDock{
    left:calc(8px + env(safe-area-inset-left)) !important;
    right:calc(8px + env(safe-area-inset-right)) !important;
    bottom:calc(5px + env(safe-area-inset-bottom)) !important;
    max-height:78px !important;
    overflow:visible !important;
    padding:14px 8px 5px !important;
  }
  body.mobile-optimized #timelineFloodKey,
  body.mobile-optimized .timeline-flood-key{
    display:none !important;
  }
  body.mobile-optimized #timelineBubble{
    min-width:0 !important;
    max-width:calc(100vw - 24px) !important;
    width:auto !important;
    gap:6px !important;
    padding:4px 8px !important;
    font-size:9px !important;
  }
  body.mobile-optimized .timeline-bubble-edge{ font-size:7.5px !important; }
  body.mobile-optimized .timeline-bubble-current{ font-size:9px !important; }
  body.mobile-optimized .timeline-bubble-stage{ font-size:8.5px !important; padding:1px 6px !important; }
  body.mobile-optimized .timeline-trackRow{ grid-template-columns:minmax(0, 1fr) !important; width:100% !important; }
  body.mobile-optimized #hourSlider{ width:100% !important; }
}


@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  body.mobile-optimized #leftPanel > .data-source-card{ order:1 !important; }
  body.mobile-optimized #leftPanel > #forecastScenarioCard{ order:2 !important; }
  body.mobile-optimized #leftPanel > .overlay-card{ order:10 !important; }
  body.mobile-optimized #leftPanel > .datum-card{ order:20 !important; }
  body.mobile-optimized #leftPanel > #calendarCard{ order:30 !important; }
  body.mobile-optimized #leftPanel > .mobile-top-tides-card{ order:40 !important; }
  body.mobile-optimized #leftPanel > .snapshot-card{ order:50 !important; }
  body.mobile-optimized #leftPanel > .opacity-card{ order:90 !important; }
  body.mobile-optimized #mobileRailMount{ display:flex !important; flex-direction:column !important; gap:8px !important; order:60 !important; }
  body.mobile-optimized #mobileRailMount > #downloadCard,
  body.mobile-optimized #mobileRailMount > .download-launch-card,
  body.mobile-optimized #mobileRailMount > .download-card{ order:60 !important; }
  body.mobile-optimized #mobileRailMount > #townAddressCard,
  body.mobile-optimized #mobileRailMount > .town-address-card{ order:70 !important; }
}


    #mapTitleLogo{
      display:none !important;
    }

    #mapTitleBadge.shorely-title-badge{
      gap:12px !important;
    }

    #mapTitlePartnerLogo.shorely-title-logo,
    #mapTitlePartnerLogo.shorely-title-logo-shorelysafe{
      display:block;
      max-height:30px !important;
      max-width:108px !important;
      width:auto !important;
      height:auto !important;
      object-fit:contain !important;
      flex:0 0 auto !important;
    }

    #rightRail .right-logo-card{
      min-height:86px !important;
      height:auto !important;
      padding:10px !important;
      overflow:visible !important;
    }

    #rightRail .right-logo-card .right-rail-logo,
    #rightRail .right-logo-card .shorelysafe-logo{
      width:min(150px, 92%) !important;
      max-width:150px !important;
      max-height:58px !important;
      height:auto !important;
      object-fit:contain !important;
      margin:0 auto !important;
    }

    #rightRail .layers-card{
      min-height:unset !important;
      height:auto !important;
      padding:10px !important;
      overflow:visible !important;
      align-items:stretch !important;
      justify-content:flex-start !important;
    }

    #rightRail .layers-card .rail-head{
      margin-bottom:7px !important;
      flex:0 0 auto !important;
    }

    #rightRail .layer-list{
      display:grid !important;
      gap:7px !important;
      overflow:visible !important;
      min-height:0 !important;
    }

    #rightRail .layer-item{
      min-height:42px !important;
      height:auto !important;
      padding:8px 9px !important;
      display:grid !important;
      grid-template-columns:38px minmax(0, 1fr) !important;
      align-items:center !important;
      gap:8px !important;
      overflow:visible !important;
    }

    #rightRail .layer-meta{
      min-width:0 !important;
      overflow:visible !important;
    }

    #rightRail .layer-name{
      white-space:normal !important;
      overflow:visible !important;
      text-overflow:clip !important;
      line-height:1.1 !important;
      font-size:12px !important;
      letter-spacing:-.01em !important;
    }

    #rightRail .toggle{
      width:36px !important;
      height:22px !important;
      flex:0 0 36px !important;
    }

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

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

    html.os-windows #rightRail,
    html.win-compact-ui #rightRail{
      width:220px !important;
      min-width:220px !important;
      max-width:220px !important;
    }

    html.os-windows #rightRail .layers-card,
    html.win-compact-ui #rightRail .layers-card{
      min-height:unset !important;
      height:auto !important;
      overflow:visible !important;
    }

    html.os-windows #rightRail .layer-item,
    html.win-compact-ui #rightRail .layer-item{
      min-height:40px !important;
      padding:7px 8px !important;
      grid-template-columns:36px minmax(0, 1fr) !important;
      gap:7px !important;
    }

    html.os-windows #rightRail .layer-name,
    html.win-compact-ui #rightRail .layer-name{
      font-size:11px !important;
      line-height:1.08 !important;
    }

    @media (max-width: 980px), (pointer: coarse){
      #rightRail{
        right:8px !important;
        width:176px !important;
        min-width:176px !important;
        max-width:176px !important;
        gap:7px !important;
      }

      #rightRail .right-logo-card{
        display:flex !important;
        min-height:72px !important;
        padding:8px !important;
      }

      #rightRail .right-logo-card .right-rail-logo,
      #rightRail .right-logo-card .shorelysafe-logo{
        width:min(130px, 92%) !important;
        max-width:130px !important;
        max-height:50px !important;
      }

      #rightRail .layers-card{
        padding:8px !important;
      }

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

      #rightRail .layer-item{
        min-height:38px !important;
        padding:7px 8px !important;
        grid-template-columns:34px minmax(0, 1fr) !important;
        gap:7px !important;
      }

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

      #rightRail .toggle{
        width:32px !important;
        height:20px !important;
        flex-basis:32px !important;
      }

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

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

      #mapTitlePartnerLogo.shorely-title-logo,
      #mapTitlePartnerLogo.shorely-title-logo-shorelysafe{
        max-height:22px !important;
        max-width:78px !important;
      }
    }



#timelineBubble .timeline-bubble-stage{
  color:#ffffff !important;
  border-width:1px !important;
  border-style:solid !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), 0 7px 16px rgba(0,0,0,.18) !important;
}
#timelineBubble .timeline-bubble-stage-none{
  background:rgba(96,165,250,.26) !important;
  border-color:rgba(191,219,254,.64) !important;
}
#timelineBubble .timeline-bubble-stage-minor{
  background:linear-gradient(180deg, rgba(213,138,0,.95), rgba(153,92,0,.92)) !important;
  border-color:rgba(255,205,120,.92) !important;
}
#timelineBubble .timeline-bubble-stage-moderate{
  background:linear-gradient(180deg, rgba(216,75,103,.96), rgba(159,39,65,.94)) !important;
  border-color:rgba(255,170,190,.92) !important;
}
#timelineBubble .timeline-bubble-stage-major{
  background:linear-gradient(180deg, rgba(124,92,224,.98), rgba(79,56,167,.95)) !important;
  border-color:rgba(205,190,255,.94) !important;
}



@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  body.mobile-optimized #timelineBubble,
  body.mobile-optimized #timelineBubble.timeline-bubble-stage-none,
  body.mobile-optimized #timelineBubble.timeline-bubble-stage-minor,
  body.mobile-optimized #timelineBubble.timeline-bubble-stage-moderate,
  body.mobile-optimized #timelineBubble.timeline-bubble-stage-major{
    background:rgba(11,18,32,.97) !important;
    border:1px solid rgba(191,219,254,.22) !important;
    color:#eaf0ff !important;
    box-shadow:0 12px 26px rgba(0,0,0,.34) !important;
  }

  body.mobile-optimized #timelineBubble::after{
    border-top-color:rgba(11,18,32,.97) !important;
  }

  body.mobile-optimized #timelineBubble .timeline-bubble-edge{
    color:#a9b6d3 !important;
  }

  body.mobile-optimized #timelineBubble .timeline-bubble-current{
    color:#ffffff !important;
  }

  body.mobile-optimized #timelineBubble .timeline-bubble-stage{
    color:#ffffff !important;
    border-width:1px !important;
    border-style:solid !important;
    border-radius:999px !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.16), 0 5px 12px rgba(0,0,0,.20) !important;
  }

  body.mobile-optimized #timelineBubble .timeline-bubble-stage-none{
    background:rgba(96,165,250,.26) !important;
    border-color:rgba(191,219,254,.64) !important;
  }

  body.mobile-optimized #timelineBubble .timeline-bubble-stage-minor{
    background:linear-gradient(180deg, rgba(213,138,0,.95), rgba(153,92,0,.92)) !important;
    border-color:rgba(255,205,120,.92) !important;
  }

  body.mobile-optimized #timelineBubble .timeline-bubble-stage-moderate{
    background:linear-gradient(180deg, rgba(216,75,103,.96), rgba(159,39,65,.94)) !important;
    border-color:rgba(255,170,190,.92) !important;
  }

  body.mobile-optimized #timelineBubble .timeline-bubble-stage-major{
    background:linear-gradient(180deg, rgba(124,92,224,.98), rgba(79,56,167,.95)) !important;
    border-color:rgba(205,190,255,.94) !important;
  }
}




:root{
  --pj-slider-thumb-size:16px;
  --pj-slider-thumb-half:8px;
}

#timelineDock{
  overflow:visible !important;
}

#timelineDock .timeline-trackRow{
  box-sizing:border-box !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
}


#timelineDock #hourSlider{
  width:calc(100% - var(--pj-slider-thumb-size)) !important;
  max-width:calc(100% - var(--pj-slider-thumb-size)) !important;
  min-width:0 !important;
  margin-left:var(--pj-slider-thumb-half) !important;
  margin-right:var(--pj-slider-thumb-half) !important;
  box-sizing:border-box !important;
  display:block !important;
  overflow:visible !important;
}

#timelineDock #hourSlider::-webkit-slider-thumb{
  width:var(--pj-slider-thumb-size) !important;
  height:var(--pj-slider-thumb-size) !important;
  box-sizing:border-box !important;
}

#timelineDock #hourSlider::-moz-range-thumb{
  width:var(--pj-slider-thumb-size) !important;
  height:var(--pj-slider-thumb-size) !important;
  box-sizing:border-box !important;
}

.timeline-interval-toggle{
  display:inline-grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:3px !important;
  align-items:center !important;
  width:112px !important;
  min-width:112px !important;
  height:34px !important;
  min-height:34px !important;
  padding:3px !important;
  border-radius:999px !important;
  border:1px solid rgba(191,219,254,.22) !important;
  background:rgba(11,18,32,.62) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
  flex:0 0 auto !important;
}

.timeline-interval-toggle button{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-width:0 !important;
  height:28px !important;
  min-height:28px !important;
  padding:0 6px !important;
  border:0 !important;
  border-radius:999px !important;
  background:transparent !important;
  color:#c7d2fe !important;
  box-shadow:none !important;
  font-size:11px !important;
  line-height:1 !important;
  font-weight:950 !important;
  letter-spacing:0 !important;
  white-space:nowrap !important;
  text-transform:none !important;
  transform:none !important;
}

.timeline-interval-toggle button:hover:not(:disabled){
  transform:none !important;
  box-shadow:none !important;
  color:#ffffff !important;
  background:rgba(255,255,255,.08) !important;
}

.timeline-interval-toggle button.active{
  background:linear-gradient(180deg, rgba(96,165,250,.36), rgba(96,165,250,.18)) !important;
  color:#ffffff !important;
  border-color:transparent !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 8px 16px rgba(15,23,42,.16) !important;
}


@media (max-width:900px), (max-width:1366px) and (any-pointer:coarse), (max-height:560px) and (pointer:coarse) {
  body.mobile-optimized #timelineDock #hourSlider{
    width:calc(100% - var(--pj-slider-thumb-size)) !important;
    max-width:calc(100% - var(--pj-slider-thumb-size)) !important;
    margin-left:var(--pj-slider-thumb-half) !important;
    margin-right:var(--pj-slider-thumb-half) !important;
  }

  body.mobile-optimized .timeline-interval-toggle{
    width:92px !important;
    min-width:92px !important;
    height:30px !important;
    min-height:30px !important;
    padding:2px !important;
    gap:2px !important;
  }

  body.mobile-optimized .timeline-interval-toggle button{
    height:26px !important;
    min-height:26px !important;
    padding:0 4px !important;
    font-size:10px !important;
  }
}

@media (max-width:360px){
  body.mobile-optimized .timeline-interval-toggle{
    width:84px !important;
    min-width:84px !important;
  }

  body.mobile-optimized .timeline-interval-toggle button{
    font-size:9px !important;
  }
}

html.os-windows #timelineDock #hourSlider,
html.win-compact-ui #timelineDock #hourSlider{
  width:calc(100% - var(--pj-slider-thumb-size)) !important;
  max-width:calc(100% - var(--pj-slider-thumb-size)) !important;
  margin-left:var(--pj-slider-thumb-half) !important;
  margin-right:var(--pj-slider-thumb-half) !important;
}

    #gifSpeedField[hidden]{display:none !important}
  