/* SWWEATHER live map - every rule scoped to #wx so the map can sit inside another app (SW INSPECT /m/weather). */
#wx { --wbg: #11161c; --wpanel: rgba(20, 26, 33, .94); --wline: #2c3743; --wtx: #e6edf3; --wmut: #9aa7b4; --wacc: #4fc3f7;
      --wtile: #1b232c; --wbtn: #1f2933; --wsea: #0b0f14; --wcard: #19212a;
      position: relative; overflow: hidden; background: #0b0f14; color: var(--wtx); font-family: "Segoe UI", Arial, sans-serif; }
#wx.wx-full { position: fixed; inset: 0; }
#wx { z-index: 0; isolation: isolate; }   /* the map's own layers never rise above the host app's overlays (menu sheets) */
#wx .leaflet-bottom { bottom: calc(var(--wtb, 52px) + 14px); }   /* zoom + attribution above the time bar, never on top of a time button */
#wx * { box-sizing: border-box; }
#wx .wx-map { position: absolute; inset: 0; background: var(--wsea); }
#wx .leaflet-container { background: var(--wsea); font-family: inherit; }
#wx .ui { position: absolute; z-index: 1000; background: var(--wpanel); border: 1px solid var(--wline); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.4); color: var(--wtx); }
#wx .wx-brand { top: 10px; left: 10px; padding: 7px 12px; max-width: calc(100% - 200px); }
#wx.wx-hosted .wx-brand { display: none; }   /* inside SW INSPECT the page header carries the name and the run time (owner 29 Oct) */
#wx .wx-brand b { font-size: 15px; letter-spacing: .5px; }
#wx .wx-brand div { font-size: 11px; color: var(--wmut); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wx .wx-layers { top: 10px; right: 10px; padding: 6px; display: flex; flex-direction: column; gap: 5px; width: 168px; }
#wx .seg { display: flex; border: 1px solid var(--wline); border-radius: 6px; overflow: hidden; background: var(--wtile); padding: 0; margin: 0; gap: 0; box-shadow: none; }
#wx .seg button { flex: 1; background: none; color: var(--wtx); border: 0; padding: 6px 4px; cursor: pointer; font-size: 12px; }
#wx .seg button.on { background: var(--wacc); color: #04121b; font-weight: 700; }
#wx .tg { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 4px; cursor: pointer; user-select: none; margin: 0;
           color: var(--wtx); font-weight: 400; text-transform: none; letter-spacing: normal; }
#wx button { font-family: inherit; line-height: normal; text-transform: none; letter-spacing: normal; min-height: 0; box-shadow: none; }
#wx .tg input { accent-color: var(--wacc); margin: 0; }
#wx .wbtn { width: 100%; background: var(--wbtn); color: var(--wtx); border: 1px solid var(--wline); border-radius: 6px; padding: 6px; cursor: pointer; font-size: 12px; }
#wx .wx-lt { display: none; }
#wx .wx-panel { top: 10px; right: 188px; width: 380px; max-height: calc(100% - 120px); overflow: auto; padding: 0; display: none; }
#wx .wx-panel.open { display: block; }
#wx .wx-tabs { display: flex; position: sticky; top: 0; background: var(--wpanel); border-bottom: 1px solid var(--wline); }
#wx .wx-tabs button { flex: 1; background: none; border: 0; color: var(--wmut); padding: 8px 4px; cursor: pointer; font-size: 12px; }
#wx .wx-tabs button.on { color: var(--wtx); border-bottom: 2px solid var(--wacc); }
#wx .wx-pbody { padding: 8px 10px; font-size: 12px; line-height: 1.45; }
#wx .wx-pbody li { margin-bottom: 5px; }
#wx .wx-pbody ul { padding-left: 16px; margin: 4px 0; }
#wx .wx-pbody .card { background: var(--wcard); border: 1px solid var(--wline); border-left: 5px solid #999; padding: 4px 6px; margin-bottom: 6px; border-radius: 4px; }
#wx .wx-pbody .card .t1 { display: flex; align-items: center; gap: 4px; }
#wx .wx-pbody .card .r { margin-left: auto; color: var(--wmut); font-size: 11px; }
#wx .wx-pbody .card .k { color: var(--wmut); }
#wx .wx-pbody table { width: 100%; border-collapse: collapse; }
#wx .wx-pbody td, #wx .wx-pbody th { border-bottom: 1px solid var(--wline); padding: 3px 2px; text-align: left; font-size: 11.5px; }
#wx .wx-legend { left: 10px; bottom: calc(var(--wtb, 52px) + 18px); padding: 6px 10px; font-size: 11px; }
#wx .wx-legend .bar { width: 240px; height: 9px; border-radius: 3px; margin: 3px 0 1px; }
#wx .wx-legend .ticks { position: relative; height: 12px; width: 240px; color: var(--wmut); }
#wx .wx-legend .ticks span { position: absolute; transform: translateX(-50%); }
#wx .wx-legend.nocol { display: none; }
#wx.wx-wait .wx-legend, #wx.wx-wait .leaflet-bottom { visibility: hidden; }
#wx .wx-src { display: none; color: var(--wmut); margin-top: 2px; }
#wx .wx-time { left: 10px; right: 10px; bottom: 10px; padding: 6px 8px; display: flex; align-items: center; gap: 6px; overflow-x: auto; }
#wx .wx-play { background: var(--wacc); color: #04121b; border: 0; border-radius: 50%; width: 34px; height: 34px; font-size: 14px; cursor: pointer; flex: none; }
#wx .st { flex: 1; min-width: 92px; background: var(--wtile); border: 1px solid var(--wline); color: var(--wtx); border-radius: 6px; padding: 4px 6px; cursor: pointer; text-align: center; }
#wx .st b { display: block; font-size: 12px; }
#wx .st span { font-size: 10.5px; color: var(--wmut); }
#wx .st.on { background: var(--wacc); border-color: var(--wacc); color: #04121b; }
#wx .st.on span { color: #04121b; }
#wx .wx-drawer { left: 10px; right: 10px; bottom: 74px; padding: 8px; display: none; background: #fff; color: #222; max-height: 45%; overflow: auto; }
#wx .wx-drawer.open { display: block; }
#wx.wx-dbot .wx-legend, #wx.wx-dbot .wx-quick { display: none !important; }   /* a bottom drawer covers them (23 Nov) */
#wx .wx-drawer h3 { margin: 0 0 6px; font-size: 14px; display: flex; justify-content: space-between; color: #222; }
#wx .wx-drawer h3 button { background: none; border: 0; font-size: 18px; cursor: pointer; }
#wx .wx-drawer table.t { min-width: 1000px; }
#wx .wx-msg { left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 18px; font-size: 13px; display: none; }
#wx .iso { color: #fff; font-size: 10px; text-shadow: 0 0 3px #000; white-space: nowrap; }
#wx .cl { font-weight: 800; font-size: 16px; text-shadow: 0 0 4px #000; text-align: center; line-height: 1; }
#wx .cl small { display: block; font-size: 10px; font-weight: 600; }
#wx .leaflet-popup-content-wrapper { background: var(--wpanel); color: var(--wtx); border: 1px solid var(--wline); border-radius: 8px; }
#wx .leaflet-popup-tip { background: var(--wpanel); }
#wx .pp { font-size: 12.5px; line-height: 1.55; min-width: 190px; }
#wx .pp .h { color: var(--wmut); font-size: 11px; }
#wx .leaflet-tooltip.storm { background: rgba(20,26,33,.9); color: #fff; border: 1px solid #555; font-size: 11px; }
#wx .wx-diamond { width: 12px; height: 12px; background: #aa00ff; border: 1px solid #fff; transform: rotate(45deg); }

#wx .seg5 button { padding: 6px 2px; font-size: 11px; }
#wx .segm button { padding: 4px 2px; font-size: 11.5px; }
#wx .st.noec { opacity: .45; }
#wx .wx-pbody img.wx-imd { width: 100%; border: 1px solid var(--wline); border-radius: 4px; cursor: zoom-in; background: #fff; }
#wx .wx-drawer img.wx-imdbig { width: 100%; max-width: 1100px; display: block; margin: 0 auto; }
#wx .wx-layers { width: 292px; }
#wx .wx-panel { right: 312px; }
#wx .wx-next { display: none; }
#wx .wx-tools { display: flex; gap: 5px; }
#wx .wx-tools .wbtn { flex: 1; }
#wx .wbtn.on, #wx .wx-pause.on { background: #ffeb3b; color: #111; border-color: #ffeb3b; font-weight: 700; }
#wx .wx-pause { background: var(--wbtn); color: var(--wtx); border: 1px solid var(--wline); border-radius: 50%; width: 34px; height: 34px; font-size: 12px; cursor: pointer; flex: none; }
#wx .st.low { border-style: dashed; opacity: .85; }
#wx .wx-pos { left: 450px; bottom: calc(var(--wtb, 52px) + 18px); padding: 5px 10px; font-size: 11.5px; white-space: nowrap; max-width: calc(100% - 520px); overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
#wx .wx-pos.idle { display: none; }
#wx .wx-mlive { color: #ffeb3b; }
#wx .wx-mbox { right: 10px; bottom: 130px; width: 300px; padding: 8px 10px; display: none; font-size: 12px; }
#wx .wx-mbox .mh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; gap: 6px; }
#wx .wx-mbox .mh span { display: flex; gap: 4px; }
#wx .wx-mbox .mh .wbtn { width: auto; padding: 3px 7px; font-size: 11px; }
#wx .wx-mbox table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
#wx .wx-mbox th, #wx .wx-mbox td { text-align: right; padding: 2px 3px; border-bottom: 1px solid var(--wline); font-size: 11.5px; }
#wx .wx-mbox th:first-child, #wx .wx-mbox td:first-child { text-align: left; }
#wx .wx-mbox tr.tot td { font-weight: 700; color: #ffeb3b; border-bottom: 0; }
#wx .wx-mbox .h { color: var(--wmut); font-size: 11px; margin-top: 4px; }
#wx .wx-mlabel { color: #111; background: #ffeb3b; border-radius: 3px; font-size: 10.5px; font-weight: 700; text-align: center; white-space: nowrap; line-height: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* layer box: tiles, four to a row (owner 27 Oct) */
#wx .wx-body { display: flex; flex-direction: column; gap: 4px; }
#wx .wx-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--wmut); margin: 4px 2px 0; }
#wx .wx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
#wx .tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 56px; padding: 5px 2px;
            background: var(--wtile); color: var(--wtx); border: 1px solid var(--wline); border-radius: 7px; cursor: pointer; text-align: center; }
#wx .tile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#wx .tile span { font-size: 11px; font-weight: 600; line-height: 1.15; }
#wx .tile small { font-size: 9.5px; color: var(--wmut); line-height: 1.1; }
#wx .tile:hover { border-color: var(--wacc); }
#wx .tile.on { background: var(--wacc); border-color: var(--wacc); color: #04121b; }
#wx .tile.on small { color: #0b3247; }
#wx .tile[disabled] { opacity: .6; cursor: progress; }
#wx .segm { margin-bottom: 2px; }
/* day theme */
#wx.day { --wpanel: rgba(255, 255, 255, .96); --wline: #cfd8e0; --wtx: #1b2733; --wmut: #5f6b76; --wacc: #0b7fc1;
          --wtile: #f1f5f8; --wbtn: #ffffff; --wsea: #dce8f2; --wcard: #f7f9fb; }
#wx.day .tile.on { color: #ffffff; } #wx.day .tile.on small { color: #e3f2fd; }
#wx.day .seg button.on { color: #ffffff; }
#wx.day .st.on, #wx.day .st.on span { color: #ffffff; }
#wx.day .wx-play { color: #ffffff; }
#wx.day .iso { color: #1b2733; text-shadow: 0 0 3px #fff, 0 0 2px #fff; }
#wx.day .cl { text-shadow: 0 0 4px #fff, 0 0 2px #fff; }
#wx.day .cl small { color: #1b2733; }
#wx.day .leaflet-tooltip.storm { background: rgba(255,255,255,.95); color: #1b2733; border-color: #9aa7b4; }
#wx.day .wx-next { color: #9a5b00; }
#wx.day .wx-mbox tr.tot td, #wx.day .wx-mlive { color: #9a5b00; }   /* yellow on white could not be read (28 Oct) */
#wx.day .ui { box-shadow: 0 2px 10px rgba(30, 50, 70, .18); }

@media (max-width: 760px) {
  #wx .wx-layers { width: 236px; }
  #wx .wx-layers:not(.open) .wx-body { display: none; }
  #wx .tile { min-height: 50px; }
  #wx .tile span { font-size: 12px !important; }
  #wx .tile small { font-size: 12px !important; }
  #wx .wx-sec { font-size: 12px; }
  #wx { font-size: 12px; }
  #wx .wx-brand div, #wx .wx-next, #wx .wx-pos, #wx .tg, #wx .st span, #wx .iso, #wx .cl small, #wx .wx-mlabel,
  #wx .leaflet-tooltip.storm, #wx .leaflet-control-attribution, #wx .wx-pbody, #wx .wx-pbody td, #wx .wx-pbody th,
  #wx .wx-mbox, #wx .wx-mbox td, #wx .wx-mbox th, #wx .wx-mbox .h, #wx .wx-legend { font-size: 12px !important; }
  #wx .st b { font-size: 13px; }
  #wx .seg5 { flex-wrap: wrap; }
  #wx .seg5 button { font-size: 12px; flex: 1 0 31%; padding: 4px 1px; }
  #wx .segm button { font-size: 12px; }
  #wx .seg button, #wx .wbtn, #wx .wx-tabs button, #wx .wx-mbox .mh .wbtn { min-height: 34px; }
  #wx .leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 36px !important; }
  #wx .wx-drawer h3 button { min-width: 36px; min-height: 36px; }
  #wx .leaflet-bottom { bottom: calc(var(--wtb, 56px) + 14px); }
  #wx .wx-pos { left: 10px; bottom: 74px; max-width: calc(100% - 20px); font-size: 10.5px; }
  #wx .wx-mbox { left: 10px; right: 10px; width: auto; bottom: 110px; }
  #wx .wx-layers { width: 170px; }

  #wx .wx-layers { width: 150px; }
  #wx .wx-panel { right: 10px; left: 10px; width: auto; top: 64px; }
  #wx .wx-lt { display: block; }
  #wx .wx-legend { display: none; }
  #wx .st { min-width: 74px; }
  #wx .wx-brand { max-width: calc(100% - 180px); }
  /* phone tidy (owner 28 Oct): the header carries run + next update, so no info card; model + Layers in one row;
     colour key with its sources above the time bar; the position line shows only after a touch, under the top row */
  #wx[data-sub] .wx-brand { display: none; }
  #wx .wx-layers { top: 8px; right: 8px; left: auto; width: auto; flex-direction: row; flex-wrap: wrap; align-items: stretch; padding: 4px; }
  #wx .wx-layers .segm { width: 128px; margin: 0; }
  #wx .wx-layers .wx-lt { width: auto; padding: 0 12px; }
  #wx .wx-layers.open { left: 8px; }
  #wx .wx-layers.open .wx-lt { flex: 1; }
  #wx .wx-layers .wx-body { flex-basis: 100%; }
  #wx .leaflet-control-attribution { display: none; }
  #wx .wx-legend, #wx .wx-legend.nocol { display: block; left: 8px; right: 56px; bottom: calc(var(--wtb, 56px) + 16px); padding: 4px 8px; line-height: 1.3; }
  #wx .wx-legend .bar, #wx .wx-legend .ticks { width: 100%; }
  #wx .wx-src { display: block; }
  #wx .wx-pos, #wx .wx-pos.idle { display: none; }   /* phone: the tap pop-up says it all (owner 28 Oct: the same line twice) */
  #wx .wx-mbox { bottom: calc(var(--wtb, 56px) + 110px); }
}

/* ---- layer families, options, overlays (owner 28 Oct: small icons, only the chosen layer's options) ---- */
#wx .wx-layers { width: 300px; gap: 6px; }
#wx .wx-head { display: flex; gap: 5px; }
#wx .wx-head .segm { flex: 1; margin: 0; }
#wx .wx-head .wx-lt { width: auto; padding: 0 10px; }
#wx .wx-fams { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
#wx .fam, #wx .ov { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 1px; min-height: 44px;
                    background: var(--wtile); color: var(--wtx); border: 1px solid var(--wline); border-radius: 7px; cursor: pointer; font-family: inherit; }
#wx .fam svg, #wx .ov svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#wx .fam span, #wx .ov span { font-size: 10.5px; line-height: 1.1; white-space: nowrap; }
#wx .fam.on { background: var(--wacc); border-color: var(--wacc); color: #04121b; font-weight: 700; }
#wx.day .fam.on { color: #fff; }
#wx .fam.nodata { opacity: .45; }
#wx .fam:hover, #wx .ov:hover { border-color: var(--wacc); }
#wx .wx-opts { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 0; }
#wx .wx-opts[hidden] { display: none; }
#wx .chip { font: inherit; font-size: 12px; padding: 4px 10px; min-height: 30px; border-radius: 15px; border: 1px solid var(--wline);
            background: var(--wtile); color: var(--wtx); cursor: pointer; }
#wx .chip.on { background: var(--wacc); border-color: var(--wacc); color: #04121b; font-weight: 600; }
#wx.day .chip.on { color: #fff; }
#wx .chip.tog:not(.on) { color: var(--wmut); }
#wx .wx-ovs, #wx .wx-tools { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
#wx .wx-tools { grid-template-columns: repeat(5, 1fr); }
#wx .ov { min-height: 40px; color: var(--wmut); }
#wx .ov.on { color: var(--wtx); border-color: var(--wacc); box-shadow: inset 0 -3px 0 var(--wacc); }
#wx .ov.tool { color: var(--wtx); }

/* ---- slim colour key: name + bar, the rest behind the "i" ---- */
#wx .wx-legend { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; width: 430px; }
#wx .wx-lt1 { font-size: 12px; font-weight: 700; white-space: nowrap; }
#wx .wx-lt1 small { font-weight: 400; color: var(--wmut); }
#wx .wx-lbar { position: relative; flex: 1; min-width: 0; height: 16px; }
#wx .wx-legend .wx-lbar .bar { position: relative; width: 100%; height: 16px; margin: 0; border-radius: 8px; overflow: visible; }   /* SW INSPECT has a general .bar (overflow hidden, margin) */
#wx .wx-legend .wx-lbar .ticks { position: absolute; inset: 0; width: auto; height: 16px; color: #fff; margin: 0; display: block; }   /* and a general .ticks (flex, margin-top) */
#wx .wx-legend .wx-lbar .ticks span { top: 0; line-height: 16px; font-size: 11px; font-weight: 600; text-shadow: 0 0 3px #000, 0 0 2px #000; }
#wx .wx-legend .wx-lbar .ticks span:first-child { transform: none; padding-left: 5px; }
#wx .wx-legend .wx-lbar .ticks span:last-child { transform: translateX(-100%); padding-right: 5px; }
#wx .wx-lwarn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600;
                background: rgba(20, 26, 33, .82); color: #ffd54f; border-radius: 8px; }
#wx .wx-li { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--wline); background: var(--wtile); color: var(--wmut);
             font: italic 700 12px Georgia, serif; cursor: pointer; padding: 0; }
#wx .wx-ltip { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--wpanel); color: var(--wtx); border: 1px solid var(--wline);
               border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.45; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
#wx .wx-ltip[hidden] { display: none; }
#wx .wx-src { display: none; }

/* ---- time: one slim strip, a slider (owner 28 Oct: "dragging", "too much space lost in the bottom") ---- */
#wx .wx-time { padding: 4px 10px 4px 6px; gap: 6px; overflow: visible; }
#wx .wx-play { width: 34px; height: 34px; font-size: 13px; }
#wx .wx-play.on { background: #ffb300; color: #1b2733; }
#wx .wx-step { width: 30px; height: 34px; flex: none; border-radius: 8px; border: 1px solid var(--wline); background: var(--wbtn); color: var(--wtx);
               font-size: 22px; line-height: 1; cursor: pointer; padding: 0 0 3px; }
#wx .wx-step:hover { border-color: var(--wacc); }
#wx .wx-tl { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
#wx .wx-tnow { grid-row: 1 / span 2; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#wx .wx-tnow span { color: var(--wmut); font-size: 12px; }
#wx .wx-range { width: 100%; margin: 0; height: 24px; accent-color: var(--wacc); cursor: pointer; }
#wx .wx-days { position: relative; height: 13px; }
#wx .wx-days span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--wmut); white-space: nowrap; top: -1px; }
#wx .wx-days span:first-child { transform: none; }
#wx .wx-days span:first-child::before { left: 0; }
#wx .wx-days span::before { content: ""; position: absolute; left: 50%; top: -5px; width: 1px; height: 4px; background: var(--wmut); }

@media (max-width: 760px) {
  #wx .wx-layers { width: auto; }
  #wx .wx-layers.open { left: 8px; }
  #wx .wx-fams { grid-template-columns: repeat(5, 1fr); }
  #wx .wx-ovs { grid-template-columns: repeat(4, 1fr); }     /* phone (owner 28 Oct): overlays 4 a row, tools 5 a row - less height */
  #wx .wx-tools { grid-template-columns: repeat(5, 1fr); }
  #wx .fam span, #wx .ov span { font-size: 12px !important; }
  #wx .fam { min-height: 46px; }
  #wx .ov { min-height: 42px; padding: 3px 1px; }
  #wx .ov svg { width: 16px; height: 16px; }
  #wx .chip { font-size: 12px !important; min-height: 34px; }
  #wx .wx-legend, #wx .wx-legend.nocol { display: flex; width: auto; padding: 3px 6px 3px 8px; }
  #wx .wx-legend .wx-lbar .ticks span, #wx .wx-lwarn, #wx .wx-lt1 { font-size: 12px !important; }
  #wx .wx-li { width: 32px; height: 32px; }
  #wx .wx-ltip { font-size: 12px !important; }
  /* slim bar (owner 28 Oct): the time beside the slider, one row of controls */
  #wx .wx-time { padding: 3px 8px 2px 5px; gap: 5px; }
  #wx .wx-tl { grid-template-columns: auto 1fr; column-gap: 8px; }
  #wx .wx-tnow { grid-row: 1 / span 2; font-size: 12px; }
  #wx .wx-range { height: 26px; }
  #wx .wx-days span { font-size: 12px !important; }
  #wx .wx-days { height: 14px; }
  #wx .wx-play { width: 34px; height: 34px; }
  #wx .wx-step { width: 30px; height: 34px; }
}

/* burger (owner 28 Oct: less space) - the layer panel opens from it; its top row holds Data 1 / 2 and a close */
#wx .wx-layers:not(.open) { padding: 0; background: none; border: 0; box-shadow: none; width: auto; }
#wx .wx-layers:not(.open) .wx-body { display: none; }
#wx .wx-layers.open .wx-burger { display: none; }
#wx .wx-burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--wline); background: var(--wpanel); color: var(--wtx);
                 box-shadow: 0 4px 16px rgba(0,0,0,.3); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
#wx .wx-burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#wx .wx-btop { display: flex; gap: 6px; align-items: center; }
#wx .wx-btop .segm { flex: 1; margin: 0; }
#wx .wx-x { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--wline); background: var(--wtile); color: var(--wtx);
            font-size: 20px; line-height: 1; cursor: pointer; padding: 0 0 2px; }
#wx .wx-tabs .wx-pclose { flex: none; margin: 4px 6px 4px 0; width: 30px; height: 30px; border-bottom: 1px solid var(--wline); }
#wx .wx-drawer h3 .wx-x { min-width: 34px; }
@media (max-width: 760px) {
  #wx .wx-layers.open { left: 8px; right: 8px; width: auto; }
  #wx .wx-panel { top: 8px; }
  #wx .wx-burger { width: 46px; height: 46px; }
}

#wx .wx-enso { padding: 8px 10px 0; font-size: 12px; line-height: 1.45; color: var(--wtx); }
#wx .wx-enso:empty { display: none; }
#wx .wx-legend .wx-lbar .ticks span.dk { color: #1b2733; text-shadow: 0 0 3px #fff, 0 0 2px #fff; }
#wx .wx-src { padding: 6px 2px 0; font-size: 10.5px; line-height: 1.4; color: var(--wmut, #6b7785); }
#wx .wx-drawer.ports, #wx .wx-drawer.baro { top: 64px; bottom: auto; max-height: calc(100% - 140px); }
@media (min-width: 700px) {   /* a computer: a compact panel at the left, not a bar across the whole map (owner 29 Oct) */
  #wx .wx-drawer.ports, #wx .wx-drawer.baro { right: auto; width: 360px; max-height: calc(100% - 160px); }
}
#wx.wx-hosted .wx-drawer.ports, #wx.wx-hosted .wx-drawer.baro { top: 10px; }   /* no label box above it inside SW INSPECT */
#wx .wx-psearch { width: 100%; box-sizing: border-box; padding: 9px 10px; font-size: 15px; border: 1px solid #b0bec5; border-radius: 6px; margin-bottom: 6px; }
#wx .wx-plist { display: flex; flex-direction: column; gap: 2px; }
#wx .wx-pport { text-align: left; background: #f5f7f8; border: 1px solid #e1e7ec; border-radius: 5px; padding: 8px 10px; font-size: 14px; color: #17212b; cursor: pointer; min-height: 40px; }
#wx .wx-pport span { color: #607d8b; font-size: 12.5px; }
#wx .wx-pport:disabled { opacity: .55; }
#wx .wx-pnone, #wx .wx-pmsg { color: #607d8b; font-size: 13px; padding: 4px 2px; }
#wx .wx-pmsg:empty { display: none; }
#wx .wx-psrc { color: #90a4ae; font-size: 11px; margin-top: 8px; }
/* ship baro tool (11 Nov): height above keel + draught -> what the bridge barometer reads */
#wx .wx-brow { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; }
#wx .wx-brow span { flex: 1; color: #607d8b; }
#wx .wx-brow input { width: 84px; padding: 7px 8px; font-size: 15px; font-weight: 700; border: 1px solid #b0bec5; border-radius: 6px; }
#wx .wx-bres { font-size: 13px; color: #37474f; margin: 8px 0; line-height: 1.4; }
#wx .wx-bclr { background: none; border: 1px solid #b0bec5; border-radius: 6px; padding: 5px 12px; cursor: pointer; color: #37474f; }
#wx .iso.z5 { color: #6a1b9a; font-weight: 700; }
#wx:not(.day) .iso.z5 { color: #e1bee7; }
#wx .iso.siso { color: #0a3d91; font-weight: 700; }
#wx:not(.day) .iso.siso { color: #9fe3ff; }
/* SW INSPECT night mode inverts the page: the map is marked data-keepcolour (inverted back as a whole), so its own
   pictures and canvases must not be inverted a second time - the weather colours stay true (red = danger) */
html[data-theme=night] #wx img, html[data-theme=night] #wx canvas, html[data-theme=night] #wx video { filter: none !important; }
/* place names on the land (owner 29 Oct) */
#wx .wx-name { background: none; border: 0; white-space: nowrap; pointer-events: none; }
#wx .wx-name span { font: 600 12px/1 system-ui, "Segoe UI", sans-serif; color: #3d4650; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; }
#wx .wx-name.nc span { display: block; transform: translate(-50%, -50%); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #59626c; font-weight: 600; }
#wx .wx-name.np { display: flex; align-items: center; gap: 4px; transform: translate(-3px, -50%); }
#wx .wx-name.np i { width: 5px; height: 5px; border-radius: 50%; background: #2f3842; flex: none; box-shadow: 0 0 0 1.5px #fff; }
#wx:not(.day) .wx-name span { color: #e4ebf2; text-shadow: 0 0 2px #000, 0 0 3px #000; }
#wx:not(.day) .wx-name.nc span { color: #c3ced9; }
#wx:not(.day) .wx-name.np i { background: #e4ebf2; box-shadow: 0 0 0 1.5px #000; }
/* ---- IBF designated risk areas (owner 2 Nov): on = the weather off, so no time bar; waypoint labels from zoom 5 ---- */
#wx.wx-ibfon .wx-time { display: none; }
#wx .leaflet-tooltip.wx-ibfl { background: rgba(255,255,255,.94); color: #111; border: 1px solid #8a94a0; border-radius: 4px; box-shadow: none;
  padding: 1px 5px; font: 11px/1.25 Consolas, "Courier New", monospace; white-space: nowrap; }
#wx .leaflet-tooltip.wx-ibfl b { font-family: system-ui, "Segoe UI", sans-serif; }
#wx .leaflet-tooltip.wx-ibfl:before { display: none; }
#wx.wx-ibffar .leaflet-tooltip.wx-ibfl.wp, #wx .leaflet-tooltip.wx-ibfl.wp.hid { visibility: hidden; }
#wx .wx-legend.ibf { flex-wrap: wrap; row-gap: 3px; width: auto; max-width: calc(100% - 76px); }
#wx .wx-legend.ibf .wx-lt1 { flex: 1 1 auto; white-space: normal; }
#wx .wx-ibfkey { order: 3; flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-width: 0; font-size: 11.5px; font-weight: 600; }
#wx .wx-ibfkey i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; opacity: .8; }
#wx .wx-ibfold { color: #b3261e; font-weight: 700; }
/* Emission Manager (owner 5 Nov, Windy-style): the layers down the right side, a quick card (isobars / flow lines / stations,
   Data 1 / Data 2) and the station winds. Computer only - the phone keeps the menu. */
/* the layers down the right side (owner 5 Nov: the label + round icon look; our teal, not another map's orange) */
#wx .wx-rail { position: absolute; z-index: 1000; right: 10px; top: 62px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
#wx .wx-rail button { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; }
#wx .wx-rail span { background: rgba(15, 20, 26, .62); padding: 4px 10px; border-radius: 14px; font-size: 13px; font-weight: 600; text-shadow: 0 1px 2px #000; }
#wx .wx-rail i { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 20, 26, .78); border: 2px solid rgba(255, 255, 255, .25); }
#wx .wx-rail svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#wx .wx-rail button:hover span { background: rgba(15, 20, 26, .85); }
#wx .wx-rail button.on i { background: #0e8fbf; border-color: #bff0ff; }
#wx .wx-rail button.on span { background: #0e8fbf; color: #fff; text-shadow: none; }
#wx .wx-rail button.nodata { opacity: .45; }
/* quick buttons (owner 5 Nov): round icons like the layer list, the words only on hover */
#wx .wx-quick { position: absolute; z-index: 1000; right: 56px; bottom: calc(var(--wtb, 52px) + 18px); display: flex; gap: 6px; align-items: center; }
#wx .wx-quick button { position: relative; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; }
#wx .wx-quick i { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 20, 26, .78); border: 2px solid rgba(255, 255, 255, .25); font-style: normal; }
#wx .wx-quick svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#wx .wx-quick em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
#wx .wx-quick button.on i { background: #0e8fbf; border-color: #bff0ff; }
#wx .wx-quick button:hover i { border-color: #bff0ff; }
#wx .wx-quick span { position: absolute; bottom: calc(100% + 6px); right: 0; white-space: nowrap; background: rgba(15, 20, 26, .88); color: #fff;
  padding: 4px 10px; border-radius: 14px; font-size: 12px; font-weight: 600; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s, visibility .12s; }
#wx .wx-quick button:hover span, #wx .wx-quick button:focus-visible span { opacity: 1; visibility: visible; }
#wx .wx-quick .qsep { width: 1px; height: 26px; background: rgba(255, 255, 255, .35); margin: 0 2px; }
#wx .wx-obi { background: none; border: 0; }
/* a station: our own tag - wind colour strip with the arrow, the knots on white (not another map's chip) */
#wx .wx-ob { transform: translate(-50%, -50%); display: inline-flex; align-items: stretch; white-space: nowrap; border-radius: 3px; overflow: hidden;
  background: #f7fafc; color: #13202b; font: 700 11.5px/15px 'Segoe UI', Arial, sans-serif; box-shadow: 0 1px 3px rgba(0,0,0,.5); cursor: pointer; }
#wx .wx-ob i { font-style: normal; background: var(--c); color: #fff; width: 15px; display: flex; align-items: center; justify-content: center; }
#wx .wx-ob i b { display: inline-block; font-size: 10px; line-height: 1; }
#wx .wx-ob em { font-style: normal; padding: 0 4px; }
#wx .wx-ob.b { box-shadow: 0 0 0 1.5px #39c6e6, 0 1px 3px rgba(0,0,0,.5); }
#wx .wx-layers.open ~ .wx-rail, #wx .wx-layers.open ~ .wx-quick { display: none; }
#wx .wx-obp { font-size: 12px; color: #1b2733; } #wx .wx-obp span { color: #5b6b7b; } #wx .wx-obp table { margin-top: 4px; border-collapse: collapse; }
#wx .wx-obp td { padding: 1px 8px 1px 0; } #wx .wx-obp code { display: block; margin-top: 4px; font-size: 10.5px; color: #44525f; white-space: normal; }
@media (max-width: 899px) { #wx .wx-rail, #wx .wx-quick { display: none; } }
@media (min-width: 900px) and (max-width: 1023px) { #wx .wx-rail { gap: 3px; } }   /* 23 Nov: the rail ended under the quick buttons at 900 px wide */
#wx.wx-wait .wx-rail, #wx.wx-wait .wx-quick { visibility: hidden; }
/* the round menu button folds the rail and the quick buttons into it (11 Nov); a dot on it says they are folded */
#wx.wx-min .wx-rail, #wx.wx-min .wx-quick { display: none; }
@media (min-width: 900px) { #wx.wx-min .wx-burger { position: relative; } #wx.wx-min .wx-burger::after { content: ""; position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #0e8fbf; border: 2px solid var(--wpanel); } }
#wx .wx-rail [data-railmore] i { border-style: dashed; }
/* the time bar sits under the map, never on top of the weather (owner 5 Nov) */
#wx .wx-time { left: 0; right: 0; bottom: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: none; }
#wx:not(.wx-ibfon) .wx-map { bottom: var(--wtb, 52px); }
#wx:not(.wx-ibfon) .leaflet-bottom { bottom: 8px; }
#wx .wx-legend, #wx .wx-pos { bottom: calc(var(--wtb, 52px) + 8px); }
#wx .wx-quick { bottom: calc(var(--wtb, 52px) + 10px); }
#wx.wx-qup .wx-quick { bottom: calc(var(--wtb, 52px) + 52px); }

/* public page (www.seawise.in/weather): the same engine and layers; only what needs our server is off (port PDFs, live stations) */
.wx-pub [data-tool="port"], .wx-pub [data-ov="obs"], .wx-pub [data-q="obs"] { display: none !important; }
.wx-pub .wx-brand { display: none !important; }   /* the page header already says Seawise (owner 6 Nov: remove) */
/* playing (owner 6 Nov: jittery): each new colour picture fades in over the last one */
#wx .leaflet-image-layer.wx-col { transition: opacity .4s ease; }
#wx.wx-playing .leaflet-image-layer.wx-col { transition: opacity 1s ease; }
/* the layer buttons are icons only; the name shows on hover / keyboard focus (owner 6 Nov: every weather map) */
#wx .wx-rail button span { display: none; }
#wx .wx-rail button:hover span, #wx .wx-rail button:focus-visible span { display: inline-block; }
#wx .wx-play.wx-buf { animation: wxbuf 0.9s ease-in-out infinite; }
@keyframes wxbuf { 50% { opacity: .45; } }
/* swell 1 / 2 / 3 (owner 7 Nov): small round number chips before Height / Period */
#wx .chip.num { min-width: 30px; padding: 4px 0; text-align: center; }
#wx .chip.num + .chip:not(.num) { margin-left: 6px; }
#wx .chip.nodata { opacity: 0.45; }
/* forecast for any point (owner 7 Nov): chart + table, one model; label light / value bold */
#wx { --pt-w: #4fc3f7; --pt-h: #3fb59a; --pt-s1: #e6a331; --pt-s2: #b47ae8; }
#wx.day { --pt-w: #0b7fc1; --pt-h: #1f9d7a; --pt-s1: #d4831c; --pt-s2: #8a4fd0; }
#wx .wx-drawer.pt { background: var(--wcard); color: var(--wtx); max-height: 62%; padding: 8px 10px; z-index: 1003; }
#wx .wx-drawer.pt h3 { color: var(--wtx); }
#wx .wx-drawer.pt h3 button { color: var(--wtx); }
#wx .pt-msg { font-size: 12.5px; color: var(--wmut); padding: 6px 0; }
#wx .pt-top { display: flex; align-items: center; gap: 8px; position: relative; }
#wx .pt-keys { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--wmut); flex: 1; }
#wx .pt-key i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
#wx .pt-key i.ds { height: 0; border-top: 2px dashed var(--pt-w); background: none !important; }
#wx .pt-c { width: 100%; height: 150px; display: block; margin: 4px 0 2px; cursor: pointer; }
#wx .pt-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#wx .pt-t { border-collapse: collapse; font-size: 11.5px; white-space: nowrap; }
#wx .pt-t th, #wx .pt-t td { padding: 3px 5px; text-align: center; border-bottom: 1px solid var(--wline); cursor: pointer; }
#wx .pt-t thead th { font-weight: 400; color: var(--wmut); font-size: 10.5px; line-height: 1.25; vertical-align: bottom; }
#wx .pt-t thead th b { display: block; color: var(--wtx); font-weight: 600; }
#wx .pt-t thead th span { display: block; }
#wx .pt-t .rl { position: sticky; left: 0; z-index: 1; background: var(--wcard); text-align: left; font-weight: 400; color: var(--wmut); cursor: default; }
#wx .pt-t td b { font-weight: 700; }
#wx .pt-t td small { color: var(--wmut); margin-left: 2px; font-size: 10px; }
#wx .pt-t .d0 { border-left: 1px solid var(--wmut); }
#wx .pt-t .now { background: rgba(255, 179, 0, .22); }
#wx .pt-ar { display: inline-block; font-style: normal; margin-right: 2px; color: var(--wmut); }
#wx .pt-t .pt-no { color: var(--wmut); font-size: 10px; }
#wx .pt-t tr.pt-g > * { border-top: 1px solid var(--wmut); }
#wx .pt-t thead .pt-dirk { font-size: 9.5px; line-height: 1.25; vertical-align: bottom; white-space: nowrap; }
#wx .pp-pt { margin-top: 6px; font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 14px; border: 1px solid var(--wacc); background: none; color: var(--wacc); cursor: pointer; }
/* owner 7 Nov: no name / run box on the map (the time bar and the layer menu carry the model) */
#wx .wx-brand { display: none !important; }
#wx .pp-min { min-width: 0; line-height: 1.5; }
#wx .pp-min .l { color: var(--wmut); }
/* 9 Nov: swell where WAVEWATCH III has no separate swell - sharp stripes seen through the soft mask picture */
#wx .wx-hatch{background:repeating-linear-gradient(135deg,rgba(255,255,255,.62) 0 2px,rgba(255,255,255,0) 2px 9px);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
#wx .wx-lgap{display:flex;align-items:center;gap:4px;flex:none;font-size:11px;white-space:nowrap;color:var(--wmut)}
#wx .wx-lgap b{font-weight:400}
@media (max-width: 760px) { #wx .wx-lgap b{display:none} }
#wx .wx-lgap i{width:16px;height:9px;border-radius:2px;background:#6a8fb3 repeating-linear-gradient(135deg,rgba(255,255,255,.75) 0 2px,rgba(255,255,255,0) 2px 5px)}

/* named ocean currents (10 Nov): names along the lines, circles for strong local currents */
#wx .ocn-n span { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 11px; font-weight: 700; font-style: italic; cursor: pointer; text-shadow: 0 0 3px #000, 0 0 2px #000, 0 0 1px #000; }
#wx .ocnt-w span { color: #ffb6a4; }
#wx .ocnt-c span { color: #a9c9ff; }
#wx .ocnt-n span { color: #fff; }
#wx.day .ocnt-w span { color: #b3200e; text-shadow: 0 0 3px #fff, 0 0 2px #fff, 0 0 1px #fff; }
#wx.day .ocnt-c span { color: #0b3fa8; text-shadow: 0 0 3px #fff, 0 0 2px #fff, 0 0 1px #fff; }
#wx.day .ocnt-n span { color: #1b2733; text-shadow: 0 0 3px #fff, 0 0 2px #fff; }
#wx .ocn-s { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(8, 18, 28, 0.82); border: 1.5px solid #ffd54f; cursor: pointer; box-sizing: border-box; }
#wx .ocn-s svg { width: 13px; height: 13px; fill: none; stroke: #ffd54f; stroke-width: 2.4; stroke-linecap: round; }
#wx.wx-zlo .ocn-sm, #wx.wx-zvlo .ocn-md { display: none; }
/* cloud types (10 Nov): a code per block; Cb stands out; tap = pop-up with Auto-hide */
#wx .cty span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; font-size: 12px; font-weight: 700; color: #fff; cursor: pointer; text-shadow: 0 0 3px #000, 0 0 2px #000, 0 0 1px #000; }
#wx.day .cty span { color: #1b2733; text-shadow: 0 0 3px #fff, 0 0 2px #fff, 0 0 1px #fff; }
#wx .cty-Cb span { color: #ff7a6b; text-shadow: 0 0 3px #000, 0 0 2px #000, 0 0 1px #000; }   /* Cb: reddish text, no box (owner 10 Nov) */
#wx.day .cty-Cb span { color: #c62828; text-shadow: 0 0 3px #fff, 0 0 2px #fff, 0 0 1px #fff; }
#wx .cty-Cu span { color: #ffe082; }
#wx.day .cty-Cu span { color: #8a5a00; }
#wx .cty-ah { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; cursor: pointer; }
#wx .cty-ah input { margin: 0; }
#wx .pt-note { margin: 6px 2px 0; font-size: 12px; color: var(--wmut, #667); }   /* ship baro (10 Nov) */
#wx .wx-berg i { position: absolute; left: 2px; top: 2px; width: 8px; height: 8px; background: #e8f6ff; border: 1.5px solid #1d5fd1; transform: rotate(45deg); }   /* icebergs (18 Nov) */
#wx .wx-berg span { position: absolute; left: 14px; top: -3px; font: 600 11px system-ui, sans-serif; color: #0b2a4a; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
#wx.night .wx-berg span, #wx:not(.day) .wx-berg span { color: #e8f6ff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
#wx .wx-runpick { margin: 6px 0 0; width: 100%; font: inherit; font-size: 13px; padding: 4px 6px; border-radius: 6px; }   /* earlier runs (18 Nov) */
/* owner 19 Nov: each layer its own colour (wind / waves / swell = the 10-day chart lines); the chosen layer's name stays shown;
   its choices (flow lines, arrows, barbs) in words under it */
#wx [data-railfam="wind"], #wx .fam[data-fam="wind"], #wx [data-for="wind"] { --fc: #4fc3f7; }
#wx [data-railfam="waves"], #wx .fam[data-fam="waves"], #wx [data-for="waves"] { --fc: #3fb59a; }
#wx [data-railfam="swell"], #wx .fam[data-fam="swell"], #wx [data-for="swell"] { --fc: #e6a331; }
#wx [data-railfam="wwave"], #wx .fam[data-fam="wwave"], #wx [data-for="wwave"] { --fc: #9ccc65; }
#wx [data-railfam="current"], #wx .fam[data-fam="current"], #wx [data-for="current"] { --fc: #c58af0; }
#wx [data-railfam="pressure"], #wx .fam[data-fam="pressure"], #wx [data-for="pressure"] { --fc: #a7b8c4; }
#wx [data-railfam="clouds"], #wx .fam[data-fam="clouds"], #wx [data-for="clouds"] { --fc: #dfe6ea; }
#wx [data-railfam="vis"], #wx .fam[data-fam="vis"], #wx [data-for="vis"] { --fc: #f48fb1; }
#wx [data-railfam="air"], #wx .fam[data-fam="air"], #wx [data-for="air"] { --fc: #ff7a6b; }
#wx [data-railfam="sst"], #wx .fam[data-fam="sst"], #wx [data-for="sst"] { --fc: #ffcf4d; }
#wx .wx-rail [data-railfam] i { border-color: var(--fc); }
#wx .wx-rail [data-railfam] svg { stroke: var(--fc); }
#wx .wx-rail [data-railfam].on i { background: var(--fc); border-color: #fff; }
#wx .wx-rail [data-railfam].on svg { stroke: #0b1218; }
#wx .wx-rail [data-railfam].on span { display: inline-block; background: var(--fc); color: #0b1218; text-shadow: none; font-size: 11px; padding: 2px 8px; }
#wx .wx-rail .wx-ropt { display: flex; gap: 4px; margin: -2px 0 3px; }
#wx .wx-rail .wx-ropt button { display: inline-block; background: rgba(15, 20, 26, .8); border: 1px solid var(--fc); border-radius: 12px; padding: 3px 9px;
  font-size: 11.5px; font-weight: 600; color: #fff; }
#wx .wx-rail .wx-ropt button.on { background: var(--fc); color: #0b1218; }
#wx .wx-rail .wx-ropt button:not(.on) { color: rgba(255, 255, 255, .75); }
#wx .fam[data-fam]:not([data-fam="none"]) { box-shadow: inset 0 -3px 0 var(--fc); }
#wx .fam.on[data-fam]:not([data-fam="none"]) { background: var(--fc); border-color: var(--fc); color: #0b1218; }
/* the overlays in headed sections (owner 19 Nov) - each heading in its layer colour */
#wx .wx-ovs.wx-ovsecs { display: block; }
#wx .wx-ovsec { margin-top: 5px; }
#wx .wx-ovsec h4 { margin: 0 0 3px; padding-left: 7px; border-left: 3px solid var(--fc); font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: var(--wmut); line-height: 1.3; }
#wx .wx-ovg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
#wx .wx-ovg .ov span { white-space: normal; text-align: center; }
@media (max-width: 899px) { #wx .wx-ovg { grid-template-columns: repeat(5, 1fr); } #wx .wx-ovg .ov span { font-size: 11px !important; } }
/* the menu's three pages (owner 19 Nov: A's On map list + C's layout) */
#wx .wx-layers.open { max-height: calc(100% - var(--wtb, 52px) - 72px); overflow-y: auto; }   /* ends above the colour key (19 Nov: the key covered the last rows on phones) */
#wx .wx-mtabs, #wx .wx-segbar { display: flex; background: var(--wbtn); border: 1px solid var(--wline); border-radius: 9px; padding: 3px; gap: 2px; }
#wx .wx-mtabs button, #wx .wx-segbar button { flex: 1; font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 2px; border: 0; border-radius: 7px;
  background: none; color: var(--wmut); cursor: pointer; white-space: nowrap; }
#wx .wx-segbar button { font-size: 12px; padding: 5px 2px; }
#wx .wx-lwrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--wmut); }
#wx .wx-lwrow .wx-segbar { flex: 1; max-width: 260px; }
#wx .wx-aprow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-size: 11.5px; color: var(--wmut); }
#wx .wx-aprow span + .wx-segbar { margin-right: 6px; }
#wx .wx-segbar.wx-mini { padding: 2px; border-radius: 8px; }
#wx .wx-segbar.wx-mini button { flex: 0 0 auto; font-size: 11px; padding: 3px 8px; border-radius: 6px; }
#wx .wx-mtabs button.on, #wx .wx-segbar button.on { background: var(--wtx); color: var(--wbtn); }
#wx .wx-segbar button.nodata { opacity: .45; }
#wx .wx-mtn { display: inline-block; min-width: 16px; margin-left: 4px; padding: 0 4px; border-radius: 8px; background: var(--wacc); color: #04121b; font-size: 10.5px; line-height: 15px; }
#wx .wx-mtn[hidden] { display: none; }
#wx .wx-mpage { display: flex; flex-direction: column; gap: 6px; }
#wx .wx-mpage[hidden] { display: none; }
#wx .wx-opts { flex-direction: column; align-items: stretch; gap: 6px; }
#wx .wx-ovhead { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--wmut); padding: 0 2px; }
#wx .wx-clrov { font: inherit; font-size: 12px; font-weight: 700; color: var(--wacc); background: none; border: 0; cursor: pointer; padding: 2px 0; }
#wx .wx-mpage .wx-ovg, #wx .wx-opts .wx-ovg { display: flex; flex-direction: column; background: var(--wcard); border: 1px solid var(--wline); border-radius: 9px; overflow: hidden; }
#wx .wx-sw, #wx .ov.wx-sw { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 9px; width: 100%; min-height: 36px;
  font: inherit; text-align: left; padding: 6px 10px; margin: 0; background: none; border: 0; border-top: 1px solid var(--wline); border-radius: 0;
  box-shadow: none; color: var(--wtx); cursor: pointer; }
#wx .wx-sw:first-child, #wx .ov.wx-sw:first-child { border-top: 0; }
#wx .wx-sw:hover { background: var(--wbtn); border-color: var(--wline); }
#wx .wx-sw svg { width: 16px; height: 16px; flex: none; stroke: var(--wmut); }
#wx .wx-sw span, #wx .wx-ovg .ov.wx-sw span { flex: 1; font-size: 13px !important; white-space: normal; text-align: left; line-height: 1.25; }
#wx .wx-sw small { color: var(--wmut); font-size: 11px; text-align: right; }
#wx .wx-sw em { flex: 1; font-style: normal; font-size: 13px; }
#wx .wx-sw[data-tool="theme"] span { flex: none; color: var(--wacc); font-weight: 700; }
#wx .wx-sw.on, #wx .ov.wx-sw.on { box-shadow: none; border-color: var(--wline); }
#wx .ov.tool.wx-sw.on { background: var(--wbtn); }
#wx .wx-sw.nodata { opacity: .45; }
#wx .wx-sw .sw { width: 32px; height: 18px; border-radius: 9px; background: var(--wline); position: relative; flex: none; }
#wx .wx-sw .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--wmut); transition: left .12s; }
#wx .wx-sw.on .sw { background: var(--wacc); }
#wx .wx-sw.on .sw::after { left: 16px; background: #fff; }
#wx .wx-mpage .wx-ovsec { margin-top: 2px; }
/* 10-day forecast: Table / Symbols (owner 19 Nov) */
#wx .pt-view { flex: 0 0 auto; padding: 2px; }
#wx .pt-view button { flex: 0 0 auto; padding: 3px 10px; font-size: 11.5px; }
#wx .pt-sym td { min-width: 38px; padding: 3px 2px; line-height: 1.15; vertical-align: middle; border-bottom: 1px solid rgba(0,0,0,.18); }
#wx .pt-sym td b { display: block; font-size: 12px; }
#wx .pt-sym td small { display: block; margin: 0; font-size: 9.5px; color: inherit; opacity: .85; }
#wx .pt-sym .pt-arw { display: block; width: 12px; height: 12px; margin: 0 auto 1px; }
#wx .pt-sym .pt-sky { display: block; width: 26px; height: 22px; margin: 0 auto; overflow: visible; }
#wx .pt-sym .pt-low { color: #ff8a80; }
#wx.day .pt-sym .pt-low { color: #c62828; }
#wx .pt-sym .pt-tr { opacity: .7; }
#wx .pt-sym td.now { box-shadow: inset 0 0 0 2px #ffb300; }
/* SPOT: tap on the sea -> ring + flags (owner 19 Nov) */
#wx .wx-spot { pointer-events: none; }
#wx .wx-spot .sp-svg { position: absolute; overflow: visible; pointer-events: none; }
#wx .wx-spot .sp-ring { fill: rgba(10, 20, 30, .18); stroke: #fff; stroke-width: 1.5; stroke-opacity: .9; }
#wx .wx-spot .sp-dot { fill: #fff; stroke: #10202c; stroke-width: 1.5; }
#wx .wx-spot .sp-f { position: absolute; box-sizing: border-box; white-space: nowrap; background: var(--wcard); color: var(--wtx); border: 1.5px solid; border-radius: 8px;
  padding: 2px 7px; font-size: 12px; line-height: 1.25; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
#wx .wx-spot .sp-f span { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
#wx .wx-spot .sp-f b { font-weight: 700; }
#wx .wx-spot .sp-f em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--wmut); margin-left: 4px; }
#wx .wx-spot .sp-f small { font-weight: 400; color: var(--wmut); }
#wx .wx-spot .sp-f i { font-style: normal; color: var(--wmut); font-size: 10.5px; margin-left: 4px; }
#wx .wx-spot .sp-bar { position: absolute; left: 0; top: 44px; transform: translateX(-50%); pointer-events: auto; display: flex; align-items: center; gap: 4px;
  background: var(--wcard); color: var(--wtx); border-radius: 14px; padding: 3px 4px 3px 9px; box-shadow: 0 1px 5px rgba(0,0,0,.4); white-space: nowrap; font-size: 11px; }
#wx .wx-spot .sp-cap { color: var(--wmut); margin-right: 2px; }
#wx .wx-spot .sp-cap b { color: var(--wtx); }
#wx .wx-spot .sp-bar button { font: inherit; font-size: 11px; padding: 3px 8px; border-radius: 11px; border: 1px solid var(--wacc); background: none; color: var(--wacc); cursor: pointer; }
#wx .wx-spot .sp-bar button[data-sp="x"] { border-color: var(--wline); color: var(--wmut); padding: 3px 7px; }
@media (max-width: 519px) {
  #wx .wx-spot .sp-bar { flex-wrap: wrap; justify-content: center; width: 290px; border-radius: 12px; padding: 4px 6px; }
  #wx .wx-spot .sp-cap { flex-basis: 100%; text-align: center; margin: 0 0 2px; }
}
#wx .wx-spot.stale .sp-f, #wx .wx-spot.stale .sp-svg { opacity: .35; }
/* SPOT v6 (23 Nov): thin ring, thin arrows through the centre, ONE card beside it (Windy's lesson: words off the map) */
#wx .wx-spot .sp-ring { fill: none; stroke: #fff; stroke-width: 1.2; stroke-opacity: .95; }
#wx .wx-spot .sp-dot { fill: #fff; stroke: #10202c; stroke-width: 1; }
#wx .wx-spot .sp-ar line { stroke-width: 2; stroke-linecap: round; }
#wx .wx-spot .sp-ar path { stroke: rgba(5, 12, 20, .45); stroke-width: .6; }
#wx .wx-spot .sp-ar line, #wx .wx-spot .sp-ar path { filter: drop-shadow(0 0 1px rgba(5, 12, 20, .8)); }
#wx.day .wx-spot .sp-ring { stroke: #10202c; }
#wx.day .wx-spot .sp-dot { fill: #10202c; stroke: #fff; }
#wx .wx-spot .sp-card { transform: none; display: block; padding: 7px 9px 6px; border-radius: 12px; font-size: 12px; white-space: normal; }
#wx .wx-spot .sp-row { display: flex; align-items: baseline; gap: 6px; line-height: 1.2; padding: 1px 0; }
#wx .wx-spot .sp-row i { width: 8px; height: 8px; border-radius: 50%; flex: none; align-self: center; }
#wx .wx-spot .sp-k { color: var(--wmut); width: 46px; flex: none; }
#wx .wx-spot .sp-v { font-size: 13.5px; white-space: nowrap; }
#wx .wx-spot .sp-v small { font-size: 11px; font-weight: 400; color: var(--wmut); margin-left: 1px; }
#wx .wx-spot .sp-d { margin-left: auto; color: var(--wmut); font-size: 11px; white-space: nowrap; }
#wx .wx-spot .sp-d small { font-size: 9.5px; opacity: .8; margin-right: 1px; }
#wx .wx-spot .sp-card .sp-cap { display: block; margin: 5px 0 4px; padding-top: 5px; border-top: 1px solid var(--wline); font-size: 10.5px; line-height: 1.35; color: var(--wmut); }
#wx .wx-spot .sp-btns { display: flex; gap: 4px; align-items: center; }
#wx .wx-spot .sp-btns button { padding: 3px 9px; }
#wx .wx-spot .sp-btns button[data-sp="x"] { margin-left: auto; }
@media (max-width: 519px) { #wx .wx-spot .sp-card { padding: 6px 8px 6px; } }
#wx .pp-sym { margin-left: 4px; }
/* 20 Nov (owner: "give all info ... scroll the weather section vertically"): the tap pop-up lists everything, one row each;
   the list scrolls on a short screen (its height follows the map); label light, value bold */
#wx .pp-all { min-width: 236px; line-height: 1.5; }
#wx .pp-all .l { color: var(--wmut); }
#wx .pp-all .pp-hd { margin-bottom: 4px; }
#wx .pp-all .pp-sc { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-content: start; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: thin; padding-right: 4px; }
#wx .pp-all .pp-sc > .l { white-space: nowrap; }
#wx .pp-all .pp-sc small { font-size: 10px; }
#wx .pp-all .pp-ft .pp-pt { margin-top: 5px; }
/* 20 Nov: the spot PDF button in the 10-day card header */
#wx .pt-pdf { margin-left: 6px; font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 14px; border: 1px solid var(--wacc); background: none; color: var(--wacc); cursor: pointer; }
#wx .pt-pdf:disabled { opacity: .6; cursor: default; }
/* port search over every port + the port marker (21 Nov) */
#wx .wx-ppdf { font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: #0e7490; border-radius: 3px; padding: 1px 4px; vertical-align: 1px; }
#wx .wx-pport .wx-ppdf { color: #fff; font-size: 10.5px; }
#wx .wx-drawer h3 .pt-ppdf { margin-left: auto; margin-right: 6px; flex: none; font-size: 12.5px; font-weight: 700; min-width: 0; min-height: 30px; padding: 0 10px;
  border: 1px solid #0e7490; border-radius: 5px; background: #0e7490; color: #fff; cursor: pointer; align-self: center; }
#wx .wx-drawer h3 .pt-ppdf:disabled { opacity: .6; }
#wx .wx-pmk { background: none; border: 0; }
#wx .wx-pmk i { position: absolute; left: 0; top: 0; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: #c026d3; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #c026d3; }
#wx .wx-pml { position: absolute; left: 8px; bottom: 14px; transform: translateX(-50%); white-space: nowrap; background: #fff; color: #17212b; border: 1.5px solid #c026d3;
  border-radius: 6px; padding: 4px 26px 4px 8px; font: 12px/1.35 system-ui, sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.25); pointer-events: auto; }
#wx .wx-pml b { font-size: 13px; }
#wx .wx-pml span { color: #455a64; }
#wx .wx-pmx { position: absolute; right: 2px; top: 2px; width: 22px; height: 22px; border: 0; background: none; font-size: 16px; line-height: 1; color: #455a64; cursor: pointer; padding: 0; }

/* RICH LOOK (23 Nov, Tools > Look): deep glass panels, hairline borders, brass accent, rounder tiles - night and day */
#wx.rich { --wpanel: rgba(9, 15, 23, .80); --wline: rgba(255, 255, 255, .10); --wtx: #eef2f6; --wmut: #94a2b1; --wacc: #d9b86a;
           --wtile: rgba(255, 255, 255, .055); --wbtn: rgba(255, 255, 255, .07); --wsea: #0a1018; --wcard: rgba(255, 255, 255, .055); }
#wx.rich.day { --wpanel: rgba(255, 255, 255, .80); --wline: rgba(16, 32, 44, .12); --wtx: #15202b; --wmut: #5c6873; --wacc: #a37f2c;
               --wtile: rgba(16, 32, 44, .05); --wbtn: rgba(255, 255, 255, .6); --wsea: #d9e4ee; --wcard: rgba(16, 32, 44, .04); }
#wx.rich .ui { border-radius: 14px; -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
               box-shadow: 0 12px 32px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .07); }
#wx.rich.day .ui { box-shadow: 0 10px 28px rgba(20, 40, 60, .18), inset 0 1px 0 rgba(255, 255, 255, .6); }
#wx.rich .wx-brand b { letter-spacing: .09em; font-weight: 600; }
#wx.rich .seg, #wx.rich .wbtn, #wx.rich .st { border-radius: 10px; }
#wx.rich .tile { border-radius: 11px; }
#wx.rich .seg button.on, #wx.rich .tile.on, #wx.rich .st.on, #wx.rich .wx-play, #wx.rich.day .seg button.on, #wx.rich.day .tile.on, #wx.rich.day .st.on, #wx.rich.day .wx-play {
  background: linear-gradient(180deg, #e6c882 0%, #c9a257 100%); color: #1b1507; border-color: #c9a257; }
#wx.rich .tile.on small, #wx.rich .st.on span, #wx.rich.day .tile.on small, #wx.rich.day .st.on span { color: #4a3a14; }
#wx.rich .tile:hover { border-color: rgba(217, 184, 106, .7); }
#wx.rich .wx-tabs button.on { border-bottom-color: var(--wacc); }
#wx.rich .wx-legend .bar { height: 8px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
#wx.rich .wx-pbody .card { border-radius: 10px; }
#wx.rich .wx-spot .sp-bar { border-radius: 16px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#wx.rich .wx-spot .sp-bar button { border-radius: 12px; }
#wx.rich .leaflet-popup-content-wrapper { border-radius: 14px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
#wx.rich .wx-time { border-radius: 16px; }
/* tables and cards stay solid: a 10-day table over a blurred map could not be read (seen 23 Nov) */
#wx.rich .wx-drawer, #wx.rich .wx-panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 18, 26, .97); }
#wx.rich.day .wx-drawer, #wx.rich.day .wx-panel { background: rgba(255, 255, 255, .98); }

/* RICH LOOK 2 (23 Nov, owner: "now rest of the app make it rich") - every control, drawer and pop-up; brass for every hard yellow / teal */
#wx.rich { font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; --wglass: rgba(9, 15, 23, .72); --wsolid: #10161e; --wbrass: #d9b86a; --wbrass2: #e6c882; --wink: #1b1507; }
#wx.rich.day { --wglass: rgba(255, 255, 255, .72); --wsolid: #ffffff; --wbrass: #a37f2c; --wbrass2: #c9a257; --wacc: #7d5f1a; }   /* day accent darker: brass TEXT reads on white and on light glass (>= 4.5:1); the fills keep the lighter brass */
#wx.rich button, #wx.rich .tile, #wx.rich .fam, #wx.rich .ov, #wx.rich .chip, #wx.rich .st { transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s; }
#wx.rich :focus-visible { outline: 2px solid var(--wacc); outline-offset: 2px; }
#wx.rich .wx-tnow, #wx.rich .pt-t, #wx.rich .wx-mbox, #wx.rich .sp-card, #wx.rich .pp, #wx.rich .wx-legend { font-variant-numeric: tabular-nums; }
#wx.rich .ui, #wx.rich .wx-drawer, #wx.rich .wx-panel, #wx.rich .pt-tw, #wx.rich .wx-layers.open { scrollbar-width: thin; scrollbar-color: rgba(128, 144, 160, .45) transparent; }
/* the round buttons on the map: burger, rail, quick, zoom - glass discs with a hairline; brass ring on hover */
#wx.rich .wx-burger { background: var(--wglass); border: 1px solid var(--wline); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
#wx.rich .wx-burger:hover { border-color: var(--wacc); }
#wx.rich .wx-rail i, #wx.rich .wx-quick i { background: rgba(9, 15, 23, .72); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 16px rgba(0, 0, 0, .32); }
#wx.rich .wx-rail svg, #wx.rich .wx-quick svg { stroke-width: 1.6; }
#wx.rich .wx-rail button:hover i, #wx.rich .wx-quick button:hover i { border-color: var(--wbrass); }
#wx.rich .wx-rail span, #wx.rich .wx-quick span { background: rgba(9, 15, 23, .78); border: 1px solid rgba(255, 255, 255, .12); font-weight: 600; letter-spacing: .01em; text-shadow: none; }
#wx.rich .wx-rail [data-railfam].on i { border-color: rgba(255, 255, 255, .85); box-shadow: 0 6px 16px rgba(0, 0, 0, .32), 0 0 0 3px rgba(255, 255, 255, .14); }
#wx.rich .wx-quick button.on i { background: linear-gradient(180deg, var(--wbrass2) 0%, var(--wbrass) 100%); border-color: rgba(255, 255, 255, .7); }
#wx.rich .wx-quick button.on svg { stroke: var(--wink); }
#wx.rich .wx-quick button.on em { color: var(--wink); }
#wx.rich .wx-rail .wx-ropt button:not(.on) { background: rgba(9, 15, 23, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }   /* the ON pill keeps its layer colour */
#wx.rich .wx-quick .qsep { background: rgba(255, 255, 255, .22); }
@media (min-width: 900px) { #wx.rich.wx-min .wx-burger::after { background: var(--wbrass); } }
#wx.rich .leaflet-bar { border: 1px solid var(--wline); border-radius: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); overflow: hidden; }
#wx.rich .leaflet-bar a { background: var(--wglass); color: var(--wtx); border-bottom-color: var(--wline); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-weight: 400; }
#wx.rich .leaflet-bar a:hover { background: var(--wpanel); color: var(--wacc); }
#wx.rich .leaflet-control-attribution { background: var(--wglass); color: var(--wmut); border-radius: 8px 0 0 0; }
#wx.rich .leaflet-control-attribution a { color: var(--wmut); }
/* the menu: page tabs in brass, option bars quiet, tiles and list rows with hairlines, brass switches */
#wx.rich .wx-mtabs, #wx.rich .wx-segbar { background: var(--wtile); border-color: var(--wline); border-radius: 11px; }
#wx.rich .wx-mtabs button, #wx.rich .wx-segbar button { border-radius: 8px; font-weight: 600; }
#wx.rich .wx-mtabs button.on { background: linear-gradient(180deg, var(--wbrass2) 0%, var(--wbrass) 100%); color: var(--wink); }
#wx.rich .wx-segbar button.on { background: rgba(255, 255, 255, .16); color: var(--wtx); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
#wx.rich.day .wx-segbar button.on { background: rgba(16, 32, 44, .10); box-shadow: inset 0 0 0 1px rgba(16, 32, 44, .10); }
#wx.rich .wx-mtn { background: var(--wbrass); color: var(--wink); }
#wx.rich .wx-sec, #wx.rich .wx-ovsec h4 { letter-spacing: .12em; font-weight: 600; font-size: 10px; }
#wx.rich .wx-ovsec h4 { border-left-width: 2px; }
#wx.rich .fam, #wx.rich .ov { border-radius: 11px; }
#wx.rich .fam svg, #wx.rich .ov svg, #wx.rich .tile svg { stroke-width: 1.6; }
#wx.rich .fam:hover, #wx.rich .ov:hover, #wx.rich .chip:hover { border-color: var(--wbrass); }
#wx.rich .fam.on[data-fam]:not([data-fam="none"]) { box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
#wx.rich .chip { background: var(--wtile); }
#wx.rich .chip.on, #wx.rich.day .chip.on { background: linear-gradient(180deg, var(--wbrass2) 0%, var(--wbrass) 100%); border-color: var(--wbrass); color: var(--wink); }
#wx.rich .wx-mpage .wx-ovg, #wx.rich .wx-opts .wx-ovg { border-radius: 12px; background: var(--wtile); }
#wx.rich .wx-sw:hover { background: rgba(255, 255, 255, .06); }
#wx.rich.day .wx-sw:hover { background: rgba(16, 32, 44, .05); }
#wx.rich .wx-sw .sw { background: rgba(255, 255, 255, .14); }
#wx.rich.day .wx-sw .sw { background: rgba(16, 32, 44, .16); }
#wx.rich .wx-sw .sw::after { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
#wx.rich .wx-sw.on .sw { background: linear-gradient(180deg, var(--wbrass2) 0%, var(--wbrass) 100%); }
#wx.rich .wx-sw.on .sw::after { background: #fff; }
#wx.rich .wx-sw[data-tool="theme"] span, #wx.rich .wx-clrov { color: var(--wacc); }
#wx.rich .wx-x { background: var(--wtile); border-color: var(--wline); }
#wx.rich .wx-x:hover { border-color: var(--wacc); color: var(--wacc); }
#wx.rich .wx-runpick, #wx.rich .wx-psearch, #wx.rich .wx-brow input { background: var(--wtile); color: var(--wtx); border: 1px solid var(--wline); border-radius: 10px; font-family: inherit; }
#wx.rich .wx-runpick option { background: var(--wsolid); color: var(--wtx); }
#wx.rich .wx-psearch::placeholder { color: var(--wmut); }
#wx.rich .wx-psearch:focus, #wx.rich .wx-brow input:focus { border-color: var(--wacc); outline: none; }
/* colour key + its note */
#wx.rich .wx-lt1 { font-weight: 600; }
#wx.rich .wx-li { background: var(--wtile); border-color: var(--wline); color: var(--wacc); }
#wx.rich .wx-li:hover { border-color: var(--wacc); }
#wx.rich .wx-ltip { background: var(--wsolid); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
#wx.rich .wx-lwarn { background: rgba(9, 15, 23, .84); color: var(--wbrass2); border-radius: 8px; }
#wx.rich.day .wx-lwarn { background: rgba(255, 255, 255, .86); color: #8a6a1f; }
/* time bar: a glass strip, brass play, quiet step buttons */
#wx.rich .wx-time { background: rgba(9, 15, 23, .86); border-top: 1px solid var(--wline); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
#wx.rich.day .wx-time { background: rgba(255, 255, 255, .86); }
#wx.rich .wx-step { background: var(--wtile); border-radius: 10px; }
#wx.rich .wx-step:hover { border-color: var(--wacc); color: var(--wacc); }
#wx.rich .wx-play { box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
#wx.rich .wx-play.on, #wx.rich.day .wx-play.on { background: linear-gradient(180deg, #c9a257 0%, #a3803a 100%); color: var(--wink); }
#wx.rich .wx-tnow { font-weight: 600; }
#wx.rich .wx-days span::before { background: var(--wline); }
#wx.rich .wx-pause { background: var(--wtile); }
/* position line, measure: brass instead of the hard yellow */
#wx.rich .wx-pos { border-radius: 999px; padding: 5px 12px; }
#wx.rich .wx-mlabel { background: var(--wbrass2); color: var(--wink); border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
#wx.rich .wx-mlive, #wx.rich .wx-mbox tr.tot td, #wx.rich .wx-next { color: var(--wbrass2); }
#wx.rich.day .wx-mlive, #wx.rich.day .wx-mbox tr.tot td, #wx.rich.day .wx-next { color: #8a6a1f; }
#wx.rich .wbtn.on, #wx.rich .wx-pause.on { background: linear-gradient(180deg, var(--wbrass2) 0%, var(--wbrass) 100%); color: var(--wink); border-color: var(--wbrass); }
#wx.rich .wx-mbox .mh .wbtn { border-radius: 8px; }
#wx { --wnow: #ffb300; }
#wx.rich { --wnow: #d9b86a; }
#wx.rich.day { --wnow: #b8893a; }
#wx.rich .wx-mline { stroke: var(--wbrass2); }
#wx.rich .wx-mdot { fill: var(--wbrass2); stroke: var(--wink); }
/* drawers (ports, baro, IMD) follow the theme: the white sheet with grey text was Classic's */
#wx.rich .wx-drawer, #wx.rich .wx-drawer h3, #wx.rich .wx-drawer h3 button { color: var(--wtx); }
#wx.rich .wx-drawer, #wx.rich .wx-panel { background: var(--wsolid); border-radius: 16px; }
#wx.rich .wx-drawer.pt { border-radius: 16px 16px 0 0; }
#wx.rich .wx-tabs { background: var(--wsolid); }
#wx.rich .wx-tabs button.on { color: var(--wtx); }
#wx.rich .wx-pport { background: var(--wtile); border: 1px solid var(--wline); color: var(--wtx); border-radius: 10px; }
#wx.rich .wx-pport:hover { border-color: var(--wacc); }
#wx.rich .wx-pport span, #wx.rich .wx-pnone, #wx.rich .wx-pmsg, #wx.rich .wx-psrc, #wx.rich .wx-brow span, #wx.rich .wx-bres, #wx.rich .pt-note { color: var(--wmut); }
#wx.rich .wx-bres b, #wx.rich .wx-pport b { color: var(--wtx); }
#wx.rich .wx-bclr { border: 1px solid var(--wline); color: var(--wtx); background: var(--wtile); border-radius: 10px; }
#wx.rich .wx-ppdf { background: var(--wbrass); color: var(--wink); border-radius: 4px; }
#wx.rich .wx-drawer h3 .pt-ppdf, #wx.rich .pt-pdf, #wx.rich .pp-pt, #wx.rich .pp-sym { background: none; border: 1px solid var(--wacc); color: var(--wacc); border-radius: 999px; }
#wx.rich .wx-drawer h3 .pt-ppdf:hover, #wx.rich .pt-pdf:hover, #wx.rich .pp-pt:hover { background: linear-gradient(180deg, var(--wbrass2) 0%, var(--wbrass) 100%); color: var(--wink); }
#wx.rich .wx-pbody img.wx-imd { border-radius: 10px; }
/* the 10-day table: solid row-name column, brass for "now" */
#wx.rich .pt-t .rl { background: var(--wsolid); }
#wx.rich .pt-t .now { background: rgba(217, 184, 106, .18); }
#wx.rich .pt-sym td.now { box-shadow: inset 0 0 0 2px var(--wbrass); }
#wx.rich .pt-t .d0 { border-left-color: var(--wline); }
#wx.rich .pt-t tr.pt-g > * { border-top-color: var(--wline); }
#wx.rich .pt-t thead th b { font-weight: 600; }
#wx.rich .pt-view { background: var(--wtile); }
/* pop-ups and tooltips */
#wx.rich .leaflet-popup-content-wrapper { background: rgba(9, 15, 23, .88); border-color: var(--wline); box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
#wx.rich.day .leaflet-popup-content-wrapper { background: rgba(255, 255, 255, .9); }
#wx.rich .leaflet-popup-tip { background: rgba(9, 15, 23, .88); }
#wx.rich.day .leaflet-popup-tip { background: rgba(255, 255, 255, .9); }
#wx.rich .leaflet-popup-close-button { color: var(--wmut); }
#wx.rich .leaflet-tooltip.storm { background: rgba(9, 15, 23, .86); border-color: var(--wline); border-radius: 8px; color: var(--wtx); }
#wx.rich.day .leaflet-tooltip.storm { background: rgba(255, 255, 255, .92); }
#wx.rich .wx-msg { border-radius: 14px; letter-spacing: .01em; }
/* the spot card's buttons */
#wx.rich .wx-spot .sp-bar button[data-sp="x"] { border-color: var(--wline); color: var(--wmut); }
#wx.rich .wx-spot .sp-bar button:hover { background: linear-gradient(180deg, var(--wbrass2) 0%, var(--wbrass) 100%); color: var(--wink); border-color: var(--wbrass); }
