  /* 5-day Multi-Model Weather Sheet (Glove + Touch) */
  #gScreen #sheet.wx-sheet {
    left: 6px !important; right: 6px !important; top: 6px !important; bottom: auto !important;
    width: auto !important; max-width: none !important;
    height: auto !important; max-height: calc(100% - 14px) !important;
    padding: 8px 10px 10px !important;
    border-left: 1px solid #464e52 !important; border-right: 1px solid #464e52 !important;
    border-radius: 8px !important;
  }
  body.g-touch #gScreen #sheet.wx-sheet {
    left: 8px !important; right: 8px !important; top: 8px !important;
    max-height: calc(100% - 76px - var(--safe-b)) !important;
    border-radius: 10px !important;
    padding: 8px 10px 10px !important;
  }
  .wxSearchBox {
    position: relative; display: flex; align-items: center; gap: 5px;
    margin-bottom: 6px;
  }
  .wxSearchWrap {
    position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
  }
  #gScreen #sheet.wx-sheet .wxSearchInput {
    width: 100%; height: 32px; box-sizing: border-box;
    padding: 0 28px 0 9px !important; border-radius: 5px !important;
    background: #111517 !important; color: #eef3f0 !important;
    border: 1px solid #384146 !important;
    font: 600 12px/1 system-ui, -apple-system, sans-serif !important;
    outline: none;
  }
  #gScreen #sheet.wx-sheet .wxSearchInput:focus {
    border-color: #7fb069 !important; box-shadow: 0 0 0 1px rgba(127,176,105,.32);
  }
  #gScreen #sheet.wx-sheet .wxSearchInput::placeholder { color: #7e8b85; font-weight: 500; }
  #gScreen #sheet.wx-sheet .wxSearchInput::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
  .wxSearchClr {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; padding: 0 !important; border: 0 !important;
    background: transparent !important; color: #94a39c !important;
    font: 700 12px/1 system-ui, sans-serif !important; cursor: pointer;
    display: none; align-items: center; justify-content: center;
  }
  .wxSearchClr.on { display: inline-flex; }
  #gScreen #sheet.wx-sheet .wxSearchMyBtn {
    flex: 0 0 auto; width: 32px; height: 32px; padding: 0 !important;
    border-radius: 5px !important; background: #1b2225 !important;
    color: #9cc387 !important; border: 1px solid #384146 !important;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; cursor: pointer;
  }
  #gScreen #sheet.wx-sheet .wxSearchMyBtn:active { background: #26332c !important; }
  .wxRes {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
    background: #14191c; border: 1px solid #48555c; border-radius: 6px;
    box-shadow: 0 10px 26px rgba(0,0,0,.72); max-height: 204px; overflow-y: auto;
  }
  .wxRes.on { display: block; }
  #gScreen #sheet.wx-sheet .wxResItem {
    width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
    padding: 8px 9px !important; border: 0 !important; border-bottom: 1px solid #242c30 !important;
    border-radius: 0 !important; background: transparent !important; color: #eef3f0 !important;
    cursor: pointer;
  }
  #gScreen #sheet.wx-sheet .wxResItem:last-child { border-bottom: 0 !important; }
  #gScreen #sheet.wx-sheet .wxResItem:hover,
  #gScreen #sheet.wx-sheet .wxResItem:active { background: #222b2f !important; }
  .wxResIco { flex: none; font-size: 13px; width: 18px; text-align: center; }
  .wxResTxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .wxResNm { font: 700 12.5px/1.2 system-ui, sans-serif; color: #f3f7f4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wxResSub { font: 500 10.5px/1.22 system-ui, sans-serif; color: #b4c2ba; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wxResEle {
    flex: none; font: 700 10px/1.1 ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums;
    color: #9ad67f; background: rgba(154,214,127,.11); border: 1px solid rgba(154,214,127,.26);
    padding: 2px 5px; border-radius: 4px; white-space: nowrap;
  }
  .wxResEmpty { padding: 9px 10px; font: 600 11px/1.25 system-ui, sans-serif; color: #94a39c; text-align: center; }
  .wxTopBar {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    height: 26px; min-height: 26px; margin-bottom: 4px; overflow: hidden;
  }
  .wxLoc {
    flex: 1 1 auto; min-width: 0;
    font: 700 11px/1.2 system-ui, -apple-system, sans-serif;
    color: #b7c4bd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .wxResetBtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 3px;
    flex: 0 0 auto; width: 62px; height: 24px;
    font: 700 10.5px/1 system-ui, -apple-system, sans-serif;
    padding: 0 6px !important; border-radius: 4px !important;
    background: #1f2b24 !important; color: #9cc387 !important;
    border: 1px solid #486b52 !important; cursor: pointer; white-space: nowrap;
    visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity .12s ease;
  }
  .wxResetBtn.on {
    visibility: visible; opacity: 1; pointer-events: auto;
  }
  #gScreen #sheet.wx-sheet .wxResetBtn.gFocus {
    outline: none !important; box-shadow: none !important;
    background: #1f2b24 !important; color: #9cc387 !important;
  }
  .wxHero {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    margin: 0 0 6px;
  }
  .wxSubTitle {
    height: 14px; line-height: 14px; max-width: 100%;
    font: 700 10.5px/14px ui-monospace, Menlo, system-ui, sans-serif;
    color: #94a39c; text-transform: uppercase; letter-spacing: .04em;
    margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .wxTempRow {
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .wxIcon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex: none; }
  .wxTempVal {
    font: 900 32px/1.05 system-ui, -apple-system, sans-serif;
    color: #f3f7f4; letter-spacing: -.02em;
  }
  .wxWrap {
    width: 100%; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: #0e1214; border: 1px solid #2c3337; border-radius: 6px;
    cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
    position: relative;
  }
  .wxWrap.scrub { cursor: ew-resize; border-color: #38bdf8; }
  .wxWrap.wxFocus { border-color: #9cc387; box-shadow: 0 0 0 1px #9cc387; }
  body.g-touch .wxWrap.wxFocus { border-color: #2c3337; box-shadow: none; }
  .wxWrap::-webkit-scrollbar { height: 4px; }
  .wxWrap::-webkit-scrollbar-thumb { background: #3c464b; border-radius: 4px; }
  .wxSvg { display: block; height: auto; overflow: visible; }
  .wxHorizon { stroke: #334047; stroke-width: 1.8; }
  .wxNotice {
    display: none; margin-top: 6px; padding: 6px 8px;
    background: #1b2022; border: 1px solid #3c4448; border-radius: 4px;
    font: 600 11px/1.3 system-ui, -apple-system, sans-serif;
    color: #cbd5cf; text-align: center;
  }
  .wxNotice.err { border-color: #7f1d1d; background: #261415; color: #fca5a5; }
  .wxModels {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px;
    margin-top: 8px;
  }
  #gScreen #sheet .wxModBtn {
    font: 700 11px/1.2 ui-monospace, Menlo, system-ui, sans-serif !important;
    padding: 8px 4px !important; border-radius: 4px !important;
    background: #1b2022 !important; color: #b5c0ba !important;
    border: 1px solid #353d41 !important; cursor: pointer; text-align: center;
    transition: background .12s, border-color .12s, color .12s;
  }
  #gScreen #sheet .wxModBtn.active {
    background: #2f543d !important; border-color: #9cc387 !important; color: #ffffff !important;
  }
  #gScreen #sheet .wxModBtn.wxFocus {
    outline: 2px solid #ffffff !important; outline-offset: 1px !important;
  }
  body.g-touch #gScreen #sheet.wx-sheet .gFocus {
    outline: none !important; box-shadow: none !important; background-color: #2c3033 !important;
  }
  body.g-touch #gScreen #sheet .wxModBtn.wxFocus { outline: none !important; }
  .wxGloveHint {
    margin-top: 6px; text-align: center;
    font: 600 10px/1.2 ui-monospace, Menlo, monospace; color: #87948e;
  }
  body.g-touch .wxGloveHint { display: none !important; }

  /* OLED Battery Saver Overlay during active recording */
  #gOled {
    display: none; position: fixed; inset: 0; z-index: 3000; background: #000000;
    color: #748078; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; text-align: center; padding: 24px; user-select: none; touch-action: manipulation;
  }
  #gOled.on { display: flex; }
  #gOled .olClk { font: 700 44px/1 ui-monospace, Menlo, monospace; color: #5b665f; letter-spacing: .04em; }
  #gOled .olIco { width: 52px; height: 52px; display: none; align-items: center; justify-content: center; color: #6e9463; }
  #gOled .olIco.show { display: flex; }
  #gOled .olIco svg { width: 48px; height: 48px; display: block; }
  #gOled .olRec { font: 700 14px/1.3 ui-monospace, Menlo, monospace; color: #8c453e; letter-spacing: .08em; }
  #gOled .olStat { font: 700 20px/1.3 ui-monospace, Menlo, monospace; color: #6d7c72; }
  #gOled .olHint { margin-top: 24px; font: 500 11.5px/1.4 system-ui; color: #434b46; }
  .pwWarnBox {
    background: rgba(220, 38, 38, .18); border: 1px solid rgba(248, 113, 113, .55);
    border-left: 4px solid #ef4444; border-radius: 6px; padding: 8px 10px; margin: 6px 0 8px;
    color: #fee2e2; font: 600 12.5px/1.4 system-ui, -apple-system, sans-serif;
  }
  .pwWarnBox small { display: block; margin-top: 5px; color: #cbd5d0; font-weight: 500; font-size: 11.5px; }

  /* ---------- 2D Panoramski horizont (Vrhovi / Planine + 2D karta) ---------- */
  #gHoriz {
    display: none; position: absolute; top: 0; left: 0; right: 0; height: 56%;
    z-index: 1090; flex-direction: column;
    background: #0b1218; border-bottom: 2px solid #2c4036;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .58);
    color: #ecf3ee; user-select: none; overflow: hidden;
  }
  #gHoriz.on { display: flex; }
  body.horiz-on #gScreen #gScaleBar, body.horiz-on #gScreen #tZoomStack, body.horiz-on #gScreen #tZoomStack.show { display: none !important; }
  #gHoriz .hzHd {
    display: flex; align-items: center; gap: 6px; padding: 6px 8px;
    background: rgba(11, 18, 24, .96); border-bottom: 1px solid #22303a; flex-shrink: 0;
  }
  #gHoriz .hzTitle {
    min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px;
  }
  #gHoriz .hzTitle b {
    font: 700 11px/1.1 ui-monospace, Menlo, monospace; letter-spacing: .05em; color: #9ad67f;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #gHoriz .hzTitle span {
    font: 600 10px/1.15 system-ui, -apple-system, sans-serif; color: #95a9b5;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #gHoriz .hzSwitch {
    display: inline-flex; background: #142029; border: 1px solid #2c404e; border-radius: 7px;
    padding: 2px; gap: 2px; flex-shrink: 0;
  }
  #gHoriz .hzSwBtn {
    border: 0; background: transparent; color: #9eb3be; cursor: pointer;
    font: 700 11px/1 system-ui, -apple-system, sans-serif; padding: 6px 9px; border-radius: 5px;
    transition: background .15s, color .15s;
  }
  #gHoriz .hzSwBtn.on {
    background: #2f5b38; color: #f2fff4; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  }
  #gHoriz .hzBtn {
    border: 1px solid #2c404e; background: #142029; color: #cbd9e0; border-radius: 7px;
    min-width: 30px; height: 28px; padding: 0 7px; cursor: pointer; flex-shrink: 0;
    font: 700 12px/1 system-ui, -apple-system, sans-serif;
    display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  }
  #gHoriz .hzBtn.comp-on { background: #1c3a25; border-color: #4f8c56; color: #9ad67f; }
  #gHoriz .hzBtn.hzClose { background: #2c1b1d; border-color: #6b3035; color: #f5b4b4; }
  #gHoriz .hzStage {
    position: relative; flex: 1; min-height: 0; width: 100%; overflow: hidden;
    touch-action: none; cursor: grab;
  }
  #gHoriz .hzStage:active { cursor: grabbing; }
  #gHorizCvs { display: block; width: 100%; height: 100%; }
  #gHoriz .hzLoad {
    position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 6px;
    background: rgba(11, 18, 24, .82); border: 1px solid rgba(154, 214, 127, .35);
    color: #b7d7c2; font: 600 10.5px/1.2 ui-monospace, Menlo, monospace; pointer-events: none;
    display: none;
  }
  #gHoriz .hzLoad.on { display: block; }
  #hzMapZoom {
    display: none; position: absolute; right: 8px; bottom: 10px; z-index: 1085;
    flex-direction: column; gap: 5px;
  }
  body.horiz-on #hzMapZoom { display: flex; }
  #hzMapZoom button {
    width: 38px; height: 36px; border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(14, 22, 28, .88); color: #eef5f0;
    font: 700 18px/1 ui-monospace, Menlo, monospace; cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .42);
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
  }
  #hzMapZoom button:active { transform: scale(.93); background: #21343f; }
  #hzMapZoom button.hzFitBtn { font-size: 15px; height: 32px; color: #a7bcc9; }
  #hzMapZoom button.hzFitBtn.fit-on { border-color: #4f8c56; background: rgba(24, 52, 34, .92); color: #9ad67f; }
  #gHoriz .hzFoot {
    display: flex; flex-direction: column; gap: 4px; padding: 6px 8px;
    background: #101921; border-top: 1px solid #243542; flex-shrink: 0;
  }
  #gHoriz .hzFootTop {
    display: flex; align-items: center; gap: 6px; min-width: 0;
  }
  #gHoriz .hzTgtName {
    flex: 1; min-width: 0;
    font: 700 13px/1.15 system-ui, -apple-system, sans-serif; color: #f3f9f5;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #gHoriz .hzTgtName small { color: #9ad67f; font-weight: 600; margin-left: 4px; font-size: 11px; }
  #gHoriz .hzTgtSub {
    font: 600 10.5px/1.15 ui-monospace, Menlo, monospace; color: #a7bcc9;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #gHoriz .hzActs { display: flex; gap: 4px; flex-shrink: 0; }
  #gHoriz .hzAct {
    border: 1px solid #355040; background: #1d3626; color: #e9faed; border-radius: 6px;
    padding: 5px 7px; font: 700 10.5px/1 system-ui, -apple-system, sans-serif; cursor: pointer;
    white-space: nowrap;
  }
  #gHoriz .hzAct.sec { background: #182733; border-color: #2f4657; color: #d6e6f0; }
  #gHoriz .hzAct:disabled { opacity: .35; cursor: default; }
  #gHoriz .hzListBtn { font: 700 11px/1 ui-monospace, Menlo, monospace; padding: 0 7px; gap: 4px; color: #d7ebe0; }
  #gHoriz .hzListBtn.on { background: #1c3a25; border-color: #4f8c56; color: #9ad67f; }
  #gHoriz .hzTgtClick { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
  #gHoriz .hzDrawer {
    display: none; position: absolute; left: 0; right: 0; top: 41px; bottom: 0; z-index: 20;
    background: rgba(10, 17, 23, .97); backdrop-filter: blur(6px);
    flex-direction: column; overflow: hidden;
  }
  #gHoriz .hzDrawer.on { display: flex; }
  #gHoriz .hzDrHd {
    display: flex; align-items: center; gap: 6px; padding: 8px 10px;
    border-bottom: 1px solid #22323e; background: #0e1821; flex-shrink: 0;
  }
  #gHoriz .hzDrHd b { flex: 1; min-width: 0; font: 700 13px/1.2 system-ui, -apple-system, sans-serif; color: #f2fbf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #gHoriz .hzDrTabs { display: inline-flex; background: #15222c; border: 1px solid #2a3e4d; border-radius: 6px; padding: 2px; gap: 2px; }
  #gHoriz .hzDrTab { border: 0; background: transparent; color: #9ab0bc; font: 700 10.5px/1 system-ui, -apple-system, sans-serif; padding: 5px 8px; border-radius: 4px; cursor: pointer; }
  #gHoriz .hzDrTab.on { background: #2c5736; color: #f3fff5; }
  #gHoriz .hzDrBody { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 10px 10px; }
  #gHoriz .hzInfoGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-bottom: 6px; }
  #gHoriz .hzInfoBox { background: #12202a; border: 1px solid #223542; border-radius: 6px; padding: 5px 7px; }
  #gHoriz .hzInfoBox span { display: block; font: 600 9px/1.1 ui-monospace, Menlo, monospace; color: #8aa2b0; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
  #gHoriz .hzInfoBox b { display: block; font: 700 12px/1.15 system-ui, -apple-system, sans-serif; color: #eef7f1; }
  #gHoriz .hzInfoSub { font: 600 10px/1.25 ui-monospace, Menlo, monospace; color: #9db4c0; margin-bottom: 6px; }
  #gHoriz .hzInfoActs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  #gHoriz .hzInfoActs button { border: 1px solid #355040; background: #1d3626; color: #ecfaef; border-radius: 6px; padding: 7px 6px; font: 700 11px/1 system-ui, -apple-system, sans-serif; cursor: pointer; }
  #gHoriz .hzInfoActs button.sec { background: #162633; border-color: #2d4456; color: #d8e8f2; }
  #gHoriz .hzListRow {
    display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
    border: 1px solid #1e2e3a; background: #111d26; color: #edf6f0;
    border-radius: 7px; padding: 7px 9px; margin-bottom: 5px; cursor: pointer;
  }
  #gHoriz .hzListRow.in-view { border-color: #365941; background: #13241b; }
  #gHoriz .hzListRowMain { flex: 1; min-width: 0; }
  #gHoriz .hzListRowMain b { display: block; font: 700 12px/1.2 system-ui, -apple-system, sans-serif; color: #f3faf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #gHoriz .hzListRowMain small { display: block; font: 600 10px/1.2 ui-monospace, Menlo, monospace; color: #94acb8; margin-top: 2px; }
  #gHoriz .hzListRowR { text-align: right; flex-shrink: 0; font: 700 11px/1.2 ui-monospace, Menlo, monospace; color: #9ad67f; }
  #gHoriz .hzListRowR span { display: block; font-size: 9.5px; color: #a7bcc9; font-weight: 600; margin-top: 2px; }
  #gHoriz .hzBadge { display: inline-block; padding: 2px 5px; border-radius: 4px; background: #1d3428; border: 1px solid #396245; color: #9ad67f; font: 700 9.5px/1 ui-monospace, Menlo, monospace; vertical-align: middle; margin-right: 5px; }

  /* ---------- Global Offline Maps Hub (#gOffHub) & Interactive Region Frame (#gOffFrame) ---------- */
  body.off-ui-on #gScreen #tZoomStack,
  body.off-ui-on #gScreen #gStatus,
  body.off-ui-on #gScreen #gCross,
  body.off-ui-on #gScreen #gScaleBar,
  body.off-ui-on #gScreen #gPlaceSign,
  body.off-ui-on #gScreen #ip { display: none !important; }
  #gOffHub {
    position: absolute; inset: 0; z-index: 1140;
    display: none; flex-direction: column;
    background: #0b1117; color: #eef5f0;
  }
  #gOffHub.on { display: flex; }
  #gOffHub .ohHd {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    background: #101922; border-bottom: 1px solid #223242; flex-shrink: 0;
  }
  #gOffHub .ohTitle { flex: 1; min-width: 0; font: 800 13px/1.15 system-ui, -apple-system, sans-serif; letter-spacing: .04em; color: #f2f8f4; }
  #gOffHub .ohTitle small { display: block; font: 600 10px/1.2 ui-monospace, Menlo, monospace; color: #8da5b5; margin-top: 2px; letter-spacing: 0; }
  #gOffHub .ohClose {
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid #6b3035;
    background: #2c1b1d; color: #f5b4b4; font: 800 14px/1 sans-serif; cursor: pointer;
  }
  #gOffHub .ohTabs {
    display: flex; gap: 6px; padding: 7px 10px; background: #0e161e; border-bottom: 1px solid #1d2b38; flex-shrink: 0;
  }
  #gOffHub .ohTab {
    flex: 1; border: 1px solid #243646; background: #14202b; color: #9fb4c2;
    border-radius: 8px; padding: 8px 6px; font: 700 11.5px/1.1 system-ui, -apple-system, sans-serif; cursor: pointer;
  }
  #gOffHub .ohTab.on { background: #1d3c27; border-color: #468a55; color: #dff7e4; }
  #gOffHub .ohBody {
    flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px;
    display: flex; flex-direction: column; gap: 9px;
  }
  .ohNotice {
    background: linear-gradient(180deg, #1f1b10 0%, #17140c 100%);
    border: 1px solid #6b5320; border-radius: 10px; padding: 9px 10px;
    font: 500 11.5px/1.38 system-ui, -apple-system, sans-serif; color: #f3e4bd;
  }
  .ohNotice b { color: #fcd34d; }
  .ohNoticeBtn {
    margin-top: 7px; width: 100%; border: 1px solid #8a6b28; background: #33270f; color: #fde68a;
    border-radius: 7px; padding: 7px 10px; font: 700 11.5px/1.1 system-ui, -apple-system, sans-serif; cursor: pointer;
  }
  .ohCard {
    background: #121c26; border: 1px solid #223445; border-radius: 10px; padding: 10px;
  }
  .ohCard.rec { border-color: #3a7a4a; background: linear-gradient(180deg, #12231a 0%, #0f1b15 100%); }
  .ohSecTitle {
    font: 700 10.5px/1.1 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase;
    color: #849fb0; margin: 2px 2px 4px;
  }
  .ohRowTop { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
  .ohName { font: 800 13.5px/1.2 system-ui, -apple-system, sans-serif; color: #f4faf6; }
  .ohMeta { font: 600 10.5px/1.3 ui-monospace, Menlo, monospace; color: #95adb9; margin-top: 2px; }
  .ohBadge {
    display: inline-block; padding: 2px 6px; border-radius: 5px;
    font: 700 9.5px/1.1 ui-monospace, Menlo, monospace; vertical-align: middle; margin-left: 5px;
  }
  .ohBadge.ok { background: #193824; border: 1px solid #3c7d4d; color: #86efac; }
  .ohBadge.upd { background: #3b2a0d; border: 1px solid #b47c18; color: #fcd34d; }
  .ohActs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
  .ohBtn {
    border: 1px solid #366942; background: #1e472b; color: #e9faed;
    border-radius: 7px; padding: 7px 10px; font: 700 11.5px/1 system-ui, -apple-system, sans-serif; cursor: pointer;
  }
  .ohBtn.sec { background: #182734; border-color: #2f4659; color: #d4e4f0; }
  .ohBtn.upd { background: #3e2b0d; border-color: #b47c18; color: #fde68a; }
  .ohBtn.red { background: #34191c; border-color: #7c3038; color: #fca5a5; }
  .ohProg {
    margin-top: 8px; background: #0c141c; border: 1px solid #223344; border-radius: 7px; padding: 7px 8px;
  }
  .ohBar { height: 6px; border-radius: 99px; background: #1a2937; overflow: hidden; margin-top: 5px; }
  .ohBar > i { display: block; height: 100%; background: linear-gradient(90deg, #2ea043, #4ade80); width: 0%; transition: width .15s linear; }
  .ohSearch {
    width: 100%; box-sizing: border-box; background: #111b24; border: 1px solid #273a4c;
    color: #eef5f0; border-radius: 8px; padding: 8px 10px; font: 600 12.5px/1.2 system-ui, -apple-system, sans-serif;
  }
  .ohList { display: flex; flex-direction: column; gap: 6px; }
  .ohContBtn {
    display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left;
    background: #121d27; border: 1px solid #233444; color: #eef5f0;
    border-radius: 9px; padding: 10px 11px; cursor: pointer;
    font: 700 13px/1.2 system-ui, -apple-system, sans-serif;
  }
  .ohContBtn small { font: 600 10.5px/1 ui-monospace, Menlo, monospace; color: #8da6b8; }
  .ohDesc {
    font: 500 11px/1.3 system-ui, -apple-system, sans-serif; color: #a7bcc9; margin-top: 3px;
  }
  .ohHint {
    font: 500 11.5px/1.35 system-ui, -apple-system, sans-serif; color: #9ab2c2;
    padding: 0 2px;
  }
  .ohBackRow { display: flex; align-items: center; gap: 8px; }

  /* Interactive on-screen framing overlay for Alpska Topo */
  #gOffFrame {
    position: absolute; inset: 0; z-index: 1140; display: none; pointer-events: none;
  }
  #gOffFrame.on { display: block; }
  #gOffFrameTop {
    position: absolute; top: 8px; left: 10px; right: 10px; z-index: 3; pointer-events: auto;
    background: rgba(11, 17, 23, .95); border: 1px solid #3c734c; border-radius: 10px;
    padding: 7px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    color: #edf6f0; backdrop-filter: blur(4px);
  }
  #gOffFrameTop b { display: block; font: 800 12px/1.15 system-ui, -apple-system, sans-serif; color: #9ad67f; }
  #gOffFrameTop span { display: block; font: 600 10px/1.25 ui-monospace, Menlo, monospace; color: #c4d7e3; margin-top: 2px; }
  #gOffFrameBox {
    position: absolute; left: 10%; right: 10%; top: 72px; bottom: 162px; z-index: 1;
    border: 2.5px dashed #4ade80; border-radius: 10px; pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(7, 11, 16, 0.56), inset 0 0 0 1px rgba(255, 255, 255, .25);
  }
  #gOffFrameTag {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: #132c1c; border: 1px solid #4ade80; color: #d4fce0;
    padding: 2px 8px; border-radius: 6px; white-space: nowrap;
    font: 700 10px/1.1 ui-monospace, Menlo, monospace;
  }
  #gOffFrameDock {
    position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; pointer-events: auto;
    background: rgba(11, 17, 23, .96); border: 1px solid #2b4156; border-radius: 11px;
    padding: 8px 9px; color: #eef5f0; display: flex; flex-direction: column; gap: 6px;
  }
  #gOffFrameDock .ofdRow { display: flex; gap: 5px; align-items: center; flex-wrap: nowrap; }
  #gOffFrameDock .ofdChip {
    flex: 1; min-width: 0; border: 1px solid #283c4f; background: #14212c; color: #d9e7f0;
    border-radius: 7px; padding: 7px 5px; font: 700 10.5px/1.1 system-ui, -apple-system, sans-serif;
    cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
  }
  #gOffFrameDock .ofdChip.on {
    background: #1d3c27; border-color: #4ade80; color: #e9faed;
  }
  #gOffFrameDock .ofdZoom {
    width: 32px; height: 29px; flex: 0 0 auto; border: 1px solid #2d4356; background: #162430;
    color: #eef5f0; border-radius: 7px; font: 800 15px/1 sans-serif; cursor: pointer;
  }
  #gOffFrameEst { font: 600 12.5px/1.35 ui-monospace, Menlo, monospace; color: #c4d7e3; }
  #gOffFrameEst b { color: #f6fbf8; }
  #gOffFrameEst .warn { color: #fca5a5; }
  #gOffFrameProg { font: 600 12px/1.35 ui-monospace, Menlo, monospace; color: #86efac; min-height: 4px; }
  #gOffFrameProg:empty { display: none; }
  #gOffFrameProg .ohBar { margin-top: 5px; }
  .ohProgStats {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    margin-top: 5px; font: 600 11px/1.25 ui-monospace, Menlo, monospace; color: #9ec0d1;
    font-variant-numeric: tabular-nums;
  }
  .ohProgStats:empty { display: none; }
  .ohProgStats .thr, .ohProgStats .throt { color: #fcd34d; font-weight: 700; }

  /* Quality picker cards inside pre-download confirmation sheet */
  .ohPresetList { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
  #gScreen #sheet .ohPresetOpt {
    width: 100%; text-align: left; display: flex; flex-direction: column; gap: 3px;
    padding: 10px 12px !important; border-radius: 11px !important; cursor: pointer;
    background: #14202b !important; border: 1.5px solid #2b3f52 !important; color: #eef5f0 !important;
    white-space: normal !important; height: auto !important; min-height: 0 !important;
    box-shadow: none !important;
  }
  #gScreen #sheet .ohPresetOpt.on {
    background: #173322 !important; border-color: #4ade80 !important;
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .28) !important;
  }
  .ohPresetHead {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  }
  .ohPresetTitle {
    font: 700 12.5px/1.25 system-ui, -apple-system, sans-serif; color: #eef5f0;
  }
  .ohPresetSize {
    font: 700 11.5px/1 ui-monospace, Menlo, monospace; color: #86efac; white-space: nowrap; flex: none;
  }
  .ohPresetHint {
    font: 500 11.5px/1.35 system-ui, -apple-system, sans-serif; color: #9db6c6;
  }

  /* Floating background download indicator pill on the map */
  #gOffBgPill {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    z-index: 1080; display: none; align-items: center; gap: 7px;
    padding: 6px 12px 8px; border-radius: 999px; cursor: pointer;
    background: rgba(15, 23, 30, .93); color: #eef7f1;
    border: 1px solid #3c7d4d; box-shadow: 0 4px 14px rgba(0, 0, 0, .42);
    font: 700 11.5px/1 system-ui, -apple-system, sans-serif;
    font-variant-numeric: tabular-nums; white-space: nowrap; max-width: calc(100% - 170px);
    overflow: hidden; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  #gOffBgPill.on { display: inline-flex; }
  #gOffBgPill .bgDot {
    width: 7px; height: 7px; border-radius: 50%; flex: none;
    background: #4ade80; box-shadow: 0 0 0 2px rgba(74, 222, 128, .28);
    animation: offBgPulse 1.5s ease-in-out infinite;
  }
  #gOffBgPill.throttled .bgDot { background: #fbbf24; box-shadow: 0 0 0 2px rgba(251, 191, 36, .3); }
  #gOffBgTxt { overflow: hidden; text-overflow: ellipsis; }
  #gOffBgPill .bgBar {
    position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2.5px;
    border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden;
  }
  #gOffBgPill .bgBar > i {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, #22c55e, #86efac); transition: width .18s linear;
  }
  @keyframes offBgPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.82); }
  }
  body.nav-on #gScreen #gOffBgPill { top: 140px; }
  body.off-ui-on #gScreen #gOffBgPill,
  body.horiz-on #gScreen #gOffBgPill,
  body.terrain3d-on #gScreen #gOffBgPill,
  body.nav-car #gScreen #gOffBgPill { display: none !important; }


  /* Native MapLibre GL JS 3D terrain mode HUD cleanup */
  body.terrain3d-on #gCross,
  body.terrain3d-on #sight,
  body.terrain3d-on #gScaleBar,
  body.terrain3d-on #gStatus {
    display: none !important;
  }


