/*! m0189t: tablet (iPad class, including iPadOS desktop mode that reports a Mac) touch friendly layer. Every rule is scoped to html.tablet or html.nogl, so desktop and phone are unchanged. */
html.tablet,html.tablet body{overscroll-behavior:none;touch-action:manipulation;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
html.tablet #c,html.tablet #tcLayer,html.tablet #bpFlatLayer,html.tablet #mapCanvas,html.tablet #mapFly{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
html.tablet #tcLayer *,html.tablet #tcBar,html.tablet #mobTabs{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
/* Safari paints a light native select unless appearance is reset, which made the text unreadable */
html.tablet body:not(.theme-mono) select{-webkit-appearance:none;appearance:none;background-color:#101832!important;color:#ece6d6!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23c9a65a' stroke-width='2'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:14px 9px!important;padding-right:36px!important;border:1px solid #c9a65a66!important}
html.tablet body #panel :is(button,select,.tab),html.tablet body .modal :is(button,select),html.tablet body #tcBar button,html.tablet body #lbBox button{min-height:46px}
html.tablet body #panel input[type=checkbox],html.tablet body .modal input[type=checkbox]{width:24px;height:24px}
html.tablet body #panel label{min-height:34px}
html.tablet .floatpanel>.grip .gmin{min-width:44px;min-height:34px}
html.tablet #mapPanel .mapRsz,html.tablet .floatpanel .rsz{width:30px;height:30px}
/* Landscape tablets: sheets dock on the right, bars keep finger sized heights */
html.tablet body.mob.mobLand{--mobTop:50px;--mobTab:60px}
html.tablet body.mob.mobLand .mobOn,html.tablet body.mob.mobLand #panel:not(.collapsed),html.tablet body.mob.mobLand #lbBox{width:min(470px,46vw)!important;border-radius:16px 0 0 16px!important;bottom:calc(var(--mobTab) + 8px + env(safe-area-inset-bottom))!important}
html.tablet body.mob #mobTabs>button,html.tablet body.mob #mobTabs>a{font-size:13px}
html.tablet body.mob #mobTabs i{font-size:21px}
html.tablet body.mob #csTopBar>button{min-height:46px;min-width:46px;flex:none!important}
html.tablet body.mob #csTopBar>#viewSwapBtn{min-width:56px}
/* Visible 2D and 3D switch, because touch has no right-click */
#viewSwapBtn{display:none}
html.tablet #viewSwapBtn{display:inline-flex;align-items:center;justify-content:center;min-width:56px;min-height:44px;padding:0 14px;border-radius:12px;font:700 15px/1 Inter,system-ui,sans-serif;letter-spacing:.02em;color:#ece6d6;background:#101832;border:1px solid #c9a65a99;cursor:pointer}
html.tablet #viewSwapBtn:active{background:#1a2650}
html.nogl #viewSwapBtn{display:none!important}
/* No 3D: calm ink background in place of the empty canvas */
html.nogl body{background:radial-gradient(ellipse at 50% 38%,#16224a 0,#0a1024 55%,#05070f 100%)}
/* Notices */
#csGLNote{position:fixed;left:50%;transform:translateX(-50%);top:calc(64px + env(safe-area-inset-top));z-index:95;max-width:min(560px,94vw);padding:12px 14px;border-radius:12px;background:#101832f2;color:#ece6d6;border:1px solid #c9a65a;font:500 14px/1.4 Inter,system-ui,sans-serif;box-shadow:0 10px 30px #000a}
#csGLNote b{color:#e6c77f}
#csGLNote .row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
#csGLNote button{min-height:44px;padding:0 14px;border-radius:10px;border:1px solid #c9a65a99;background:#18224a;color:#ece6d6;font:600 14px Inter,system-ui,sans-serif}
#csGLNote button.go{background:#c9a65a;color:#16120a;border-color:#c9a65a}
#csGLNote pre{display:none;margin:10px 0 0;max-height:150px;overflow:auto;padding:8px;border-radius:8px;background:#060a18;color:#b9c4e6;font:11px/1.35 ui-monospace,Menlo,monospace;white-space:pre-wrap;word-break:break-word;user-select:text;-webkit-user-select:text}
#csGLNote.det pre{display:block}
