



.cluster { position: absolute; z-index: 4; right: var(--fa-gap); display: flex; flex-direction: column; gap: 2px; padding: 4px; background: var(--fa-surface); border-radius: 14px; box-shadow: var(--fa-shadow), var(--fa-ring); }
#cluster-tools { top: calc(var(--fa-gap) + env(safe-area-inset-top, 0px)); } #cluster-map { bottom: calc(var(--fa-gap) + env(safe-area-inset-bottom, 0px)); }
.cluster button { position: relative; display: flex; align-items: center; gap: 9px; height: 40px; min-width: 40px; padding: 0; border: none; border-radius: 10px; background: transparent; color: #4a4742; cursor: pointer;
  font-family: var(--fa-body); font-weight: 600; font-size: 13px; }
:root[data-fa-dark] .cluster button { color: var(--fa-mut); }
#cluster-tools button { padding: 0 12px 0 10px; justify-content: flex-start; }
#cluster-map button { justify-content: center; }
.cluster button svg { width: 18px; height: 18px; flex: none; } #cluster-map button svg { width: 19px; height: 19px; }
.cluster button:hover { background: var(--fa-wash); color: var(--fa-text); }
.cluster button.active, #catbtn.on { background: var(--fa-accent-soft); color: var(--fa-accent-strong); }
.cluster .sep { border-top: 1px solid var(--fa-line-2); margin: 2px 4px; }
#catbtn .cat-count, #catbtn-top .cat-count { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 15px; padding: 0 3px; border-radius: 6px; background: var(--fa-accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; display: none; }
#catbtn.on .cat-count, #catbtn-top.on .cat-count { display: block; } #catbtn.global .cat-count, #catbtn-top.global .cat-count { background: var(--fa-good); }

#cluster-map button::after { content: attr(data-tip); position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); background: var(--fa-text); color: var(--fa-surface);
  font-size: 12.5px; font-weight: 500; padding: 5px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
#cluster-map button:hover::after, #cluster-map button:focus-visible::after { opacity: 1; }

#measure-pill { position: absolute; z-index: 4; right: 64px; bottom: var(--fa-gap); display: none; align-items: baseline; gap: 8px; padding: 10px 14px; background: var(--fa-surface); border-radius: var(--fa-r-pill); box-shadow: var(--fa-shadow), var(--fa-ring); }
#measure-pill.open { display: flex; }
#measure-pill .m-num { font-weight: 700; font-size: 20px; line-height: 1; } #measure-pill .m-unit { font-size: 13px; color: var(--fa-mut); font-weight: 500; }
#measure-pill .m-hint { font-size: 12.5px; color: var(--fa-faint); margin-left: 6px; }
#measure-pill #measure-mode { margin: 0 0 0 8px; padding: 2px; } #measure-pill #measure-mode button { height: 28px; padding: 0 10px; font-size: 12.5px; }

.maplibregl-ctrl-bottom-left { display: none; }
.maplibregl-ctrl-bottom-right { margin: 0 62px 14px 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.maplibregl-ctrl-scale { border: none; background: color-mix(in srgb, var(--fa-surface) 85%, transparent); border-radius: 6px; color: var(--fa-mut); font-family: var(--fa-body); font-weight: 500; font-size: 11.5px; padding: 2px 8px; }
.maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--fa-surface) 85%, transparent); color: var(--fa-mut); border-radius: 6px; padding: 1px 8px; font-size: 11px; }
.maplibregl-ctrl-attrib a { color: var(--fa-accent-strong); }


#panel, #catpanel, #winpanel { width: var(--fa-w); border: none; border-radius: var(--fa-r); box-shadow: var(--fa-shadow-lg), var(--fa-ring); padding: 0 0 8px; }
#panel .panel-head, #catpanel .panel-head, #winpanel .panel-head { padding: 16px 16px 4px; }
.panel-head span { font-family: var(--fa-body); font-weight: 700; font-size: 17px; text-transform: none; letter-spacing: -0.005em; }
#panel section { padding: 12px 16px 4px; }
.layers-block label.toggle { padding: 12px 0; font-size: 15px; }
.layers-block input { border-radius: 999px; }


#global-pill { border: none; border-radius: var(--fa-r-pill); box-shadow: var(--fa-shadow), var(--fa-ring); padding: 8px 8px 8px 14px; }
#global-pill .gp-chip { width: 22px; height: 22px; border-radius: 7px; } #global-pill .gp-chip svg { width: 13px; height: 13px; }
#global-pill .gp-title { font-size: 14px; } #global-pill .gp-sub { font-family: var(--fa-body); font-weight: 500; font-size: 12px; text-transform: none; letter-spacing: 0; }
#global-pill .gp-act { border: none; border-radius: var(--fa-r-pill); font-family: var(--fa-body); font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0; padding: 6px 12px; }
#toast { border-radius: var(--fa-r-pill); font-family: var(--fa-body); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 13.5px; }


.hint-popup .maplibregl-popup-content { background: var(--fa-text); color: var(--fa-surface); padding: 5px 9px; border-radius: 8px; font-family: var(--fa-body); font-weight: 500; font-size: 12.5px; text-transform: none; letter-spacing: 0; box-shadow: none; }








#whatsonbtn { position: relative; }
#whatsonbtn .win-dot, #whatsonbtn-top .win-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--fa-accent); display: none; }
#whatsonbtn.on .win-dot, #whatsonbtn-top.on .win-dot { display: block; }
















#winpanel { position: fixed; z-index: 5; top: 8vh; left: 50%; transform: translateX(-50%); width: 640px; max-width: calc(100vw - 32px); max-height: 84dvh; overflow-y: auto; box-sizing: border-box;
  background: var(--fa-surface); display: none; }
#winpanel.open { display: block; }
#win-body { padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
#win-tabs { margin: 0; }
#win-spans { display: flex; gap: 6px; }
#win-spans button { flex: 1; border: none; border-radius: var(--fa-r-md); padding: 9px 4px; background: var(--fa-wash); color: var(--fa-mut); font-family: var(--fa-body); font-weight: 600; font-size: 13px; cursor: pointer; }
#win-spans button.on { background: var(--fa-accent-soft); color: var(--fa-accent-strong); }
#win-note { font-size: 12.5px; color: var(--fa-mut); line-height: 1.45; }
#win-grid-head small { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 11.5px; color: var(--fa-faint); }
#win-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 8px; }
.win-cell { border: none; border-radius: 10px; padding: 8px 0 5px; background: transparent; color: var(--fa-text); font-family: var(--fa-body); font-size: 12.5px; font-weight: 500; line-height: 1.1; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.win-cell:hover { background: var(--fa-wash); }
.win-cell.mid { background: color-mix(in srgb, #c1901e 8%, var(--fa-surface)); }
.win-cell.dense { background: color-mix(in srgb, #c1901e 18%, var(--fa-surface)); font-weight: 700; }
.win-cell.in { box-shadow: inset 0 0 0 2px var(--fa-accent); }
.win-cell .wc-m small { font-weight: 500; color: var(--fa-faint); font-size: 10px; }
.win-cell .wc-n { font-size: 10.5px; color: var(--fa-faint); } .win-cell.dense .wc-n { color: var(--fa-warn); }



.win-cell .wc-ticks { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; min-height: 8px; max-width: 46px; margin-top: 2px; }
.tick { display: inline-block; width: 4px; height: 7px; border-radius: 1px; background: #9db8cc; vertical-align: middle; }
.tick.lw { background: #3f6b8c; }
.tick.reg { background: transparent; box-shadow: inset 0 0 0 1.5px #9db8cc; } .tick.reg.lw { box-shadow: inset 0 0 0 1.5px #3f6b8c; }
.tick.per { width: 9px; height: 3px; background: #3f6b8c; opacity: .55; }
:root[data-fa-dark] .tick { background: #7ea3c8; } :root[data-fa-dark] .tick.lw { background: #cfe1f2; }
:root[data-fa-dark] .tick.reg { background: transparent; box-shadow: inset 0 0 0 1.5px #7ea3c8; } :root[data-fa-dark] .tick.reg.lw { box-shadow: inset 0 0 0 1.5px #cfe1f2; }
#win-legend { margin-top: 10px; font-size: 11.5px; color: var(--fa-faint); line-height: 1.6; } #win-legend .tick { margin: 0 3px 0 6px; }
#win-month-list .wd { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid var(--fa-line-2); font-size: 13.5px; line-height: 1.35; }
#win-month-list .wd-day { flex: none; width: 74px; font-weight: 600; color: var(--fa-accent-strong); } #win-month-list .wd-txt small { color: var(--fa-faint); }


.hint-popup .mt { min-width: 168px; }
.hint-popup .mt-head { font-size: 12.5px; } .hint-popup .mt-head b { font-weight: 700; }
.hint-popup .mt-bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin: 6px 0 2px; }
.hint-popup .mt-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1; gap: 2px; }
.hint-popup .mt-col i { display: block; width: 100%; min-width: 8px; background: #e0b25a; border-radius: 2px 2px 0 0; } .hint-popup .mt-col i.z { background: rgba(255,255,255,.18); }
.hint-popup .mt-col b { font-size: 8.5px; font-weight: 600; color: #c9c5bb; line-height: 1; letter-spacing: -0.02em; }
.hint-popup .mt-col i { min-width: 14px; }
.hint-popup .mt-words { font-size: 11.5px; color: #c9c5bb; line-height: 1.35; white-space: normal; max-width: 220px; }
