  /* ---------- Modern Outdoor UI Typography & Ergonomic Controls ---------- */
  /* Strict single red Back/Exit button rule: in Touch Mode #tBackBtn is the sole red Back button; never duplicate #gStatExit */
  body.g-touch #gStatus .stExit,
  body.g-touch #gStatus.has-exit .stExit { display: none !important; }

  /* Calm neutral close buttons (reserve crimson strictly for destructive actions & active Back) */
  #gOffHub .ohClose,
  #gOffFrameTop .ohClose,
  #gHoriz .hzBtn.hzClose {
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid #314454; background: #18242e; color: #dbe7ef;
    font: 700 16px/1 system-ui, -apple-system, sans-serif;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: background .12s, transform .08s;
  }
  #gOffHub .ohClose:active,
  #gOffFrameTop .ohClose:active,
  #gHoriz .hzBtn.hzClose:active { background: #243645; transform: scale(.94); }

  /* Top status bar: crisp outdoor legibility */
  #gTop {
    padding: calc(8px + var(--safe-t)) 14px 8px;
    font: 700 13.5px/1.1 system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #14191d; border-bottom: 1px solid #26313a;
  }
  #gTop .mid { font-size: 14px; font-weight: 700; gap: 9px; color: #f4f9f6; }
  #gTop .clkL { font: 700 13px/1 ui-monospace, Menlo, monospace; color: #b7c5be; }
  #gTop .gpsR { font: 700 12.5px/1 ui-monospace, Menlo, monospace; color: #c7d5ce; gap: 6px; }

  /* Modern floating Touch Bar & Zoom stack */
  #gTouchBar { left: 10px; right: 10px; bottom: calc(12px + var(--safe-b)); gap: 8px; }
  #gTouchBar .tbGrp { gap: 7px; }
  .tFab {
    height: 48px; padding: 0 14px; border-radius: 14px;
    background: rgba(16, 22, 27, .94); color: #f2f7f4;
    border: 1.5px solid #3b4b57; box-shadow: 0 6px 18px rgba(0, 0, 0, .48);
    font: 700 14px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .02em;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .tFab.ico, .tFab.backBtn, .tFab.okBtn, .tFab.pri.ico { width: 48px; padding: 0; }
  .tFab.pri {
    background: linear-gradient(180deg, #256c41 0%, #1c5432 100%);
    border-color: #4ade80; color: #ffffff;
    box-shadow: 0 6px 18px rgba(20, 83, 45, .48);
  }
  #tZoomStack { right: 10px; bottom: calc(122px + var(--safe-b)); gap: 7px; align-items: center; }
  #tZoomStack .tSideSep {
    width: 24px; height: 1px; margin: 1px 0;
    background: rgba(255, 255, 255, .2); border-radius: 99px;
    pointer-events: none;
  }
  #tZoomStack button {
    width: 46px; height: 46px; border-radius: 14px;
    background: rgba(16, 22, 27, .92); color: #f2f7f4; border: 1.5px solid #3b4b57;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .45); font: 600 24px/1 system-ui;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  #tZoomStack button .uiIco { width: 20px; height: 20px; }
  #tLayersBtn {
    position: absolute; top: 10px; right: 10px; z-index: 950;
    display: none; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0; border-radius: 14px;
    background: rgba(16, 22, 27, .92); color: #f2f7f4; border: 1.5px solid #3b4b57;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .45); cursor: pointer;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    -webkit-tap-highlight-color: transparent;
  }
  #tLayersBtn.show { display: flex !important; }
  #tLayersBtn .uiIco { width: 20px; height: 20px; }
  #tLayersBtn:active { transform: scale(.94); }
  #gScreen #calPill { top: 18px; right: 64px; }
  #gScreen #ip:not(.route-dock) { top: 64px !important; }
  body.nav-on #gScreen #tLayersBtn { top: 140px; }
  body.horiz-on #gScreen #tLayersBtn,
  body.off-ui-on #gScreen #tLayersBtn,
  body.nav-car #gScreen #tLayersBtn { display: none !important; }
  @media (max-width: 390px) {
    #gTouchBar { left: 8px; right: 8px; gap: 6px; }
    #gTouchBar .tbGrp { gap: 6px; }
    .tFab { height: 46px; padding: 0 12px; font-size: 13.5px; }
    .tFab.ico, .tFab.backBtn, .tFab.okBtn, .tFab.pri.ico { width: 46px; padding: 0; }
    #tZoomStack { right: 8px; bottom: calc(116px + var(--safe-b)); gap: 6px; }
    #tZoomStack button { width: 44px; height: 44px; border-radius: 13px; }
    #tLayersBtn { top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 13px; }
    #gScreen #calPill { top: 16px; right: 60px; }
    #gScreen #ip:not(.route-dock) { top: 60px !important; }
  }

  /* Status strip */
  #gStatus {
    left: 10px; right: 10px; padding: 10px 14px; border-radius: 12px;
    background: rgba(15, 21, 26, .94); border: 1px solid #32414d;
    font: 600 13.5px/1.25 system-ui, -apple-system, 'Segoe UI', sans-serif;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  #gStatus .tag { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #86efac; }
  body.g-touch #gStatus { bottom: calc(70px + var(--safe-b)) !important; }
  #gScaleBar {
    border-radius: 8px; padding: 5px 9px 6px;
    font: 700 12px/1 ui-monospace, Menlo, monospace;
    background: rgba(15, 21, 26, .86); border: 1px solid rgba(255,255,255,.18);
  }

  /* Main Menu (#gMenu) & Menu Items (.gItem): spacious, legible outdoor style */
  #gMenu {
    width: min(86%, 340px) !important; max-width: 340px !important;
    border-radius: 16px 0 0 16px !important;
    background: rgba(14, 20, 25, .97) !important;
    border: 1px solid #2e3e4a !important; border-right: 0 !important;
    box-shadow: -10px 8px 32px rgba(0, 0, 0, .65) !important;
  }
  body.g-touch #gMenu {
    right: 10px !important; width: min(calc(100% - 20px), 360px) !important; max-width: 360px !important;
    bottom: calc(70px + var(--safe-b)) !important;
    max-height: calc(100% - 86px - var(--safe-b)) !important;
    border-radius: 18px !important; border: 1px solid #324452 !important;
  }
  #gMenuHd {
    padding: 12px 14px !important; background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid #263440 !important;
    color: #e6f0ea !important; font: 800 14px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    letter-spacing: .04em !important;
  }
  .gMenuCloseBtn {
    padding: 7px 12px !important; border-radius: 9px !important;
    background: #1d2a34 !important; color: #e2edf3 !important;
    border: 1px solid #364b5c !important;
    font: 700 13px/1 system-ui, -apple-system, sans-serif !important;
    min-height: 34px; display: inline-flex; align-items: center; justify-content: center;
  }
  #gMenuList { padding: 10px !important; gap: 7px !important; }
  .gItem {
    padding: 12px 14px !important; min-height: 54px; box-sizing: border-box;
    border-radius: 13px !important; gap: 3px;
    background: linear-gradient(180deg, #1b2630 0%, #151f27 100%) !important;
    border: 1px solid #283846 !important;
    color: #f4f9f6 !important;
    font: 600 15.5px/1.25 system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .24);
    transition: background .12s, border-color .12s, transform .08s, box-shadow .12s;
  }
  .gItem:hover { border-color: #3a5265 !important; background: #1e2c37 !important; }
  .gItem:active { transform: scale(.985); background: #21303b !important; }
  .gItem small {
    font: 500 12.5px/1.25 system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    color: #9cb3bf !important;
  }
  .gItem.sel {
    background: linear-gradient(180deg, #214530 0%, #183424 100%) !important;
    border-color: #4ade80 !important; color: #ffffff !important;
    box-shadow: inset 4px 0 0 #4ade80, 0 4px 12px rgba(34, 197, 94, .2) !important;
  }
  .gItem.sel small { color: #c7f9d8 !important; }
  .gItem.sosAct {
    background: linear-gradient(180deg, #3a191b 0%, #2a1214 100%) !important;
    border-color: #7f2d32 !important;
  }
  .gItem.sosAct.sel {
    background: linear-gradient(180deg, #521d20 0%, #3d1417 100%) !important;
    border-color: #f87171 !important;
    box-shadow: inset 4px 0 0 #f87171, 0 4px 12px rgba(248, 113, 113, .22) !important;
  }
  #gMenuFt {
    padding: 9px 14px !important;
    font: 600 12px/1.2 system-ui, -apple-system, sans-serif !important;
    color: #8da2ae !important; border-top: 1px solid #24313c !important;
  }

  /* Sheets, Search (#sb), Info panel (#ip), Route Dock & Markers */
  #gScreen #sheet {
    border-radius: 16px !important; padding: 14px 16px !important;
    background: rgba(15, 21, 26, .97) !important; border: 1px solid #304250 !important;
    font: 500 14.5px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .65) !important;
  }
  body.g-touch #gScreen #sheet {
    left: 10px !important; right: 10px !important; top: 10px !important;
    max-width: 520px !important; margin: 0 auto !important;
    border-radius: 18px !important; padding: 14px 16px !important;
  }
  #gScreen #sheet button,
  #gScreen #ip button {
    border-radius: 10px !important; padding: 10px 13px !important; min-height: 40px;
    font: 700 13.5px/1.15 system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  }
  #gScreen #sheet .optBtn {
    padding: 12px 14px !important; border-radius: 11px !important;
    font: 600 14.5px/1.25 system-ui !important;
  }
  #gScreen #sheet .optBtn b { font-size: 13.5px; }
  .mkRow { padding: 11px 0; gap: 8px; border-bottom: 1px solid #263440; }
  .mkRow .mkName { font: 700 15px/1.25 system-ui; }
  .mkRow .mkMeta { font: 500 12.5px/1.25 ui-monospace, Menlo, monospace; color: #9ab0bc; }
  .mkRow .mkAct button, .trkRow .trkAct button, .trkRow .trkAct2 button {
    border-radius: 9px !important; padding: 9px 6px !important; min-height: 38px;
    font: 700 12.5px/1 system-ui !important;
  }
  #gScreen #sb {
    border-radius: 16px !important; padding: 12px !important;
    background: rgba(15, 21, 26, .97) !important; border: 1px solid #304250 !important;
  }
  body.g-touch #gScreen #sb {
    left: 10px !important; right: 10px !important; top: 10px !important;
    max-width: 520px !important; margin: 0 auto !important;
    border-radius: 18px !important;
  }
  body.g-touch #gScreen #sb input {
    font: 600 16px/1.3 system-ui, -apple-system, sans-serif !important;
    padding: 11px 13px !important; border-radius: 11px !important;
    background: #10171d !important; border: 1.5px solid #2e4150 !important;
  }
  body.g-touch #gQuickCats { gap: 7px; margin: 10px 0 8px; }
  body.g-touch #gQuickCats button {
    min-height: 38px; padding: 7px 9px !important; border-radius: 10px !important;
    font: 600 12.5px/1.15 system-ui, -apple-system, sans-serif !important;
  }
  #gScreen #sr > div, #gScreen #sr .item {
    padding: 10px 8px !important; font-size: 14.5px !important;
  }
  #sr .srMeta .srBrg { font-size: 11.5px; }
  #gScreen #ip {
    border-radius: 14px !important; padding: 12px 14px !important;
    font: 500 13.5px/1.45 system-ui, -apple-system, sans-serif !important;
    background: rgba(15, 21, 26, .96) !important; border: 1px solid #324452 !important;
  }
  #gScreen #ip.route-dock {
    border-radius: 16px 16px 0 0 !important; padding: 10px 12px !important;
    max-width: 600px !important; margin: 0 auto !important;
  }
  body.g-touch #gScreen #ip.route-dock {
    bottom: calc(68px + var(--safe-b)) !important;
    left: 10px !important; right: 10px !important;
    border-radius: 16px !important; border: 1px solid #344755 !important;
    border-top: 2.5px solid #f0622b !important;
  }
  .rtHd .rtDist { font-size: 16.5px; }
  .rtHd .rtMeta { font-size: 12px; }
  .rtStats { font-size: 12.5px; }
  .rtAlts button {
    border-radius: 10px !important; padding: 8px 6px !important;
    font-size: 12.5px !important;
  }
  .rtAlts button small { font-size: 11px; }
  .rtActPrimary button, .rtAct button {
    border-radius: 10px !important; padding: 9px 8px !important; min-height: 40px;
    font-size: 13px !important;
  }

  /* Offline Maps Hub (#gOffHub) & Topo Region Frame (#gOffFrame) — clear, scannable, mobile+PC friendly */
  #gOffHub .ohHd { padding: 12px 14px; background: #101922; }
  #gOffHub .ohTitle { font: 800 16px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .02em; }
  #gOffHub .ohTitle small { font: 600 12.5px/1.25 system-ui, -apple-system, sans-serif; color: #95b0c1; margin-top: 3px; }
  #gOffHub .ohTabs { padding: 9px 14px; gap: 8px; }
  #gOffHub .ohTab {
    padding: 11px 10px; border-radius: 11px;
    font: 700 13.5px/1.15 system-ui, -apple-system, sans-serif;
  }
  #gOffHub .ohBody { padding: 12px 14px 20px; gap: 11px; }
  .ohNotice {
    padding: 12px 13px; border-radius: 12px;
    font: 500 13.5px/1.48 system-ui, -apple-system, 'Segoe UI', sans-serif;
  }
  .ohNoticeBtn {
    margin-top: 10px; padding: 11px 12px; border-radius: 10px;
    font: 700 13.5px/1.2 system-ui, -apple-system, sans-serif;
  }
  .ohSecTitle {
    font: 700 12px/1.2 system-ui, -apple-system, sans-serif; letter-spacing: .06em;
    color: #95b0c0; margin: 4px 2px 4px;
  }
  .ohCard { border-radius: 13px; padding: 13px 14px; }
  .ohName { font: 700 16px/1.25 system-ui, -apple-system, 'Segoe UI', sans-serif; }
  .ohMeta { font: 500 13px/1.38 system-ui, -apple-system, sans-serif; color: #9cb5c4; margin-top: 3px; }
  .ohBadge { font: 700 11.5px/1.1 system-ui, sans-serif; padding: 3px 7px; border-radius: 6px; margin-left: 6px; }
  .ohActs { gap: 8px; margin-top: 10px; }
  .ohBtn {
    padding: 10px 14px; min-height: 40px; border-radius: 10px;
    font: 700 13.5px/1.15 system-ui, -apple-system, sans-serif;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  }
  .ohProg { padding: 10px 11px; border-radius: 10px; }
  .ohBar { height: 8px; margin-top: 7px; }
  .ohSearch {
    padding: 12px 14px; border-radius: 12px;
    font: 600 15px/1.25 system-ui, -apple-system, sans-serif;
  }
  .ohContBtn {
    padding: 14px 15px; border-radius: 12px;
    font: 700 15.5px/1.2 system-ui, -apple-system, sans-serif;
  }
  .ohContBtn small { font: 600 13px/1 system-ui, sans-serif; color: #95b0c1; }
  #gOffFrameTop {
    padding: 10px 12px; border-radius: 13px;
  }
  #gOffFrameTop b { font-size: 14px; }
  #gOffFrameTop span { font: 500 12px/1.3 system-ui, -apple-system, sans-serif; }
  #gOffFrameBox { top: 82px; bottom: 206px; border-radius: 12px; }
  #gOffFrameTag { font: 700 12px/1.1 ui-monospace, Menlo, monospace; padding: 4px 10px; top: -13px; border-radius: 7px; }
  #gOffFrameDock {
    padding: 11px 12px; border-radius: 14px; gap: 8px;
  }
  .ofdNameIn {
    width: 100%; box-sizing: border-box;
    background: #101922; border: 1px solid #2b4257; color: #f2f8f5;
    border-radius: 9px; padding: 9px 11px;
    font: 600 14px/1.2 system-ui, -apple-system, sans-serif;
  }
  .ofdNameIn::placeholder { color: #7e98a8; font-weight: 500; }
  #gOffFrameDock .ofdChip {
    padding: 9px 8px; min-height: 38px; border-radius: 9px;
    font: 700 12.5px/1.15 system-ui, -apple-system, sans-serif;
  }
  #gOffFrameDock .ofdZoom {
    width: 38px; height: 38px; border-radius: 9px; font-size: 19px;
  }

  /* 2.5D Horizon Typography */
  #gHoriz .hzHd { padding: 7px 9px; gap: 5px; }
  #gHoriz .hzTitle b { font: 800 12.5px/1.15 system-ui, -apple-system, sans-serif; letter-spacing: .02em; }
  #gHoriz .hzTitle span { font: 600 11.5px/1.2 system-ui, -apple-system, sans-serif; color: #a3bac7; }
  #gHoriz .hzSwBtn { font: 700 12.5px/1 system-ui, -apple-system, sans-serif; padding: 7px 9px; border-radius: 7px; }
  #gHoriz .hzBtn { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; font-size: 13px; }
  #gHoriz .hzListBtn { font: 700 12.5px/1 ui-monospace, Menlo, monospace; padding: 0 9px; }
  #gHoriz .hzFoot { padding: 8px 12px; gap: 5px; }
  #gHoriz .hzTgtName { font: 700 15.5px/1.2 system-ui, -apple-system, sans-serif; }
  #gHoriz .hzTgtName small { font-size: 13px; }
  #gHoriz .hzTgtSub { font: 600 12.5px/1.25 system-ui, -apple-system, sans-serif; color: #b4c8d4; }
  #gHoriz .hzAct { padding: 8px 11px; border-radius: 9px; font: 700 13px/1 system-ui, -apple-system, sans-serif; }
  #gHoriz .hzDrHd b { font-size: 15px; }
  #gHoriz .hzDrTab { font-size: 12.5px; padding: 7px 11px; }
  #gHoriz .hzListRow { padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; }
  #gHoriz .hzListRowMain b { font-size: 14px; }
  #gHoriz .hzListRowMain small { font-size: 12px; }
  #gHoriz .hzListRowR { font-size: 13px; }
  #gHoriz .hzListRowR span { font-size: 11px; }
  #gHoriz .hzDrawer { top: 51px; }
  #gHoriz .hzLoad { font-size: 12px; padding: 6px 10px; border-radius: 8px; }
  /* Hide bottom map +/− buttons in Glove Mode (hardware +/- deck controls zoom) */
  body:not(.g-touch) #hzMapZoom { display: none !important; }

  /* Glove Mode high-contrast focus highlights for Offline Maps Hub & Panoramski Horizont */
  #gOffHub .g-sel,
  #gHoriz .g-sel {
    outline: 3px solid #facc15 !important;
    outline-offset: 1px !important;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, .28), 0 4px 12px rgba(0, 0, 0, .5) !important;
    border-color: #fde047 !important;
    position: relative;
    z-index: 4;
  }
  #gOffHub .ohContBtn.g-sel,
  #gHoriz .hzListRow.g-sel {
    background: #1d3c2b !important;
    color: #ffffff !important;
  }
  #gHoriz .hzAct.g-sel {
    background: #1f5c35 !important;
    color: #ffffff !important;
    transform: scale(1.04);
  }
  #gHoriz .hzAct.sec.g-sel {
    background: #1e425a !important;
    color: #ffffff !important;
  }

  /* ---------- Modern Monochrome Enlarged SVG Icon System & Pixel-Centered +/- Controls ---------- */
  .uiIco {
    width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.15;
    stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: inline-block; vertical-align: middle;
  }
  .uiIco.sm { width: 19px; height: 19px; stroke-width: 2.15; }
  .uiIco.xs { width: 16px; height: 16px; stroke-width: 2.2; }
  .zIco {
    width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6;
    stroke-linecap: round; stroke-linejoin: round; display: block; flex-shrink: 0;
  }

  /* Mathematical pixel-centering for ALL + / - buttons (Glove deck, Touch stack, Horizon map, Offline frame) */
  .gZoom button,
  #tZoomStack button,
  #hzMapZoom button,
  #gOffFrameDock .ofdZoom {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
  }
  .gZoom button .zIco { width: 22px; height: 22px; stroke-width: 2.6; }
  #tZoomStack button .zIco { width: 25px; height: 25px; stroke-width: 2.6; }
  #hzMapZoom button .zIco { width: 22px; height: 22px; stroke-width: 2.6; }
  #hzMapZoom button .uiIco { width: 22px; height: 22px; stroke-width: 2.2; }
  #gOffFrameDock .ofdZoom .zIco { width: 24px; height: 24px; stroke-width: 2.6; }

  /* 3-in-1 Locator button (#tLocBtn): idle (locate) -> north (compass) -> rot (heading arrow) */
  #tLocBtn .tLocSvg { width: 25px; height: 25px; display: block; flex-shrink: 0; }
  #tLocBtn .icoLoc, #tLocBtn .icoN, #tLocBtn .icoH { display: none; }
  #tLocBtn[data-state="idle"] .icoLoc,
  #tLocBtn:not([data-state]) .icoLoc { display: block; }
  #tLocBtn[data-state="north"] .icoN { display: block; }
  #tLocBtn[data-state="rot"] .icoH { display: block; }
  #tNorthBtn .tNorthSvg { width: 25px; height: 25px; display: block; flex-shrink: 0; }
  #tNorthBtn.rotated { border-color: #dc2626 !important; }

  /* Single Red Back button in Touch Mode: #tBackBtn handles Main Menu & submenus cleanly, hide duplicate header back button */
  body.g-touch #gMenuHd #gMenuBackBtn { display: none !important; }
  body.g-touch #gMenuHd .gMenuCloseBtn { padding: 0 !important; width: 38px; height: 38px; }

  /* Modern Menu Rows (.gItem) with clean unboxed enlarged monochrome icons (.mIco) & chevron (.mArr) */
  .gItem {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 11px 13px !important;
  }
  .gItemTxt {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
  }
  .gItemTxt > span {
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .gItemTxt > small {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mIco {
    width: 28px; height: 28px; border-radius: 0; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    color: var(--ui-text);
  }
  .mIco .uiIco { width: 24px; height: 24px; stroke-width: 2.15; }
  .mIco.tone-green,
  .mIco.tone-sky,
  .mIco.tone-amber,
  .mIco.tone-red,
  .mIco.tone-slate {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    color: var(--ui-text) !important;
  }
  .gItem.sel .mIco,
  .gItem.slide-hot .mIco {
    background: transparent !important;
    border: 0 !important;
    color: #ffffff !important;
  }
  .mArr {
    flex: none; color: var(--ui-text-dim);
    display: inline-flex; align-items: center; justify-content: center;
  }
  .gItem.sel .mArr,
  .gItem.slide-hot .mArr { color: #ffffff !important; }

  /* Inline-flex SVG icon alignment across Search, Horizon, Offline Hub & Frame */
  #gQuickCats button,
  #gHoriz .hzTitle b,
  #gHoriz .hzAct,
  #gHoriz .hzInfoActs button,
  #gOffHub .ohHdRow,
  #gOffHub .ohTab,
  .ohNoticeBtn,
  .ohSecIco,
  .ohBadge,
  #gOffFrameTop b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  #gHoriz .hzTitle b,
  #gOffHub .ohHdRow,
  .ohSecIco,
  #gOffFrameTop b {
    justify-content: flex-start;
  }
  .ohNoticeBtn { display: flex; width: 100%; }
  #gQuickCats button .uiIco { width: 18px; height: 18px; color: currentColor !important; }
  #tMenuBtn .uiIco { width: 25px; height: 25px; stroke-width: 2.4; }
  #tSearchBtn .uiIco, #tFolderBtn .uiIco, #tBackBtn .uiIco, #tOkBtn .uiIco { width: 24px; height: 24px; stroke-width: 2.25; }

  /* Glove Mode & Touch Mode zero-overlap Flexbox layout for Offline Topo Region Frame (#gOffFrame) */
  #gOffFrame.on {
    display: flex !important;
    flex-direction: column;
    padding: 8px 10px;
    gap: 18px;
    box-sizing: border-box;
    overflow: hidden;
  }
  #gOffFrameTop,
  #gOffFrameDock {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    flex: 0 0 auto;
    transform: none !important;
    width: 100%;
    box-sizing: border-box;
  }
  #gOffFrameBox {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    flex: 1 1 auto;
    min-height: 92px;
    width: 82%;
    margin: 0 auto;
    box-sizing: border-box;
  }
  body:not(.g-touch) #gOffFrame.on { padding: 6px 8px; gap: 16px; }
  body:not(.g-touch) #gOffFrameTop { padding: 7px 10px; }
  body:not(.g-touch) #gOffFrameTop b { font-size: 13px; }
  body:not(.g-touch) #gOffFrameTop span { font-size: 11px; }
  body:not(.g-touch) #gOffFrameDock { padding: 9px 10px; gap: 6px; }
  body:not(.g-touch) #gOffFrameDock .ofdZoom { display: none !important; }
  #gOffFrame .g-sel {
    outline: 3px solid #facc15 !important;
    outline-offset: 1px !important;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, .28), 0 4px 12px rgba(0, 0, 0, .5) !important;
    border-color: #fde047 !important;
    position: relative;
    z-index: 4;
  }
  #gOffFrame .ofdChip.g-sel {
    background: #1d3c2b !important;
    color: #ffffff !important;
  }

  /* Responsive Desktop / Tablet ergonomics (PC view) */
  @media (min-width: 768px) {
    #gOffHub .ohHd, #gOffHub .ohTabs, #gOffHub .ohBody {
      max-width: 760px; width: 100%; margin: 0 auto; box-sizing: border-box;
    }
    #gOffFrameTop, #gOffFrameDock {
      max-width: 680px; margin: 0 auto;
    }
    #gOffFrameBox { max-width: 580px; }
    #gHoriz { height: 62%; }
    body.g-touch #gStatus {
      max-width: 560px; left: 50%; right: auto; width: calc(100% - 24px);
      transform: translateX(-50%);
    }
    body.g-touch #gScreen #nav {
      max-width: 560px !important; left: 50% !important; right: auto !important;
      width: calc(100% - 24px) !important; transform: translateX(-50%);
    }
  }

