/* Last stylesheet: mobile readability and coarse-pointer accessibility. */
#save-status {position:fixed;left:12px;right:12px;top:max(12px,env(safe-area-inset-top));z-index:100000;padding:14px;background:#562022;color:#fff;border-radius:12px;font:14px/1.5 sans-serif;}
#privacy-link {display:inline-block;padding:14px;color:#9be7ff;font:14px sans-serif;}
@media (pointer:coarse) {
  .con-act .btn,.sec-card .sec-x,.con-tabs button,.con-sub,.cb-tab,.cb-link {min-width:48px;min-height:48px;}
  #hud .hud-tools .btn {min-height:44px !important;font-size:11px;}
  #hud .sys-strip .sw .nm,#hud .sys-strip .sw .st,#hud .rcs-btn,#hud .thr-foot,#hud .warpbar .warp-state {font-size:11px;}
  #hud .sys-strip .sw {min-width:44px;min-height:44px;}
  #cb-in {font-size:16px;min-height:44px;}
  .con-body {font-size:14px;line-height:1.45;}
  #console {padding-bottom:env(safe-area-inset-bottom);}
}
:focus-visible {outline:2px solid #9be7ff !important;outline-offset:3px;}
/* Keep the tool row independent of screen height; reserve 44px touch targets. */
@media (pointer:coarse) {
  :root {--g-rcs:138px;}
  #hud .hud-tools {left:var(--pad-l);right:var(--pad-r);width:auto;flex-direction:row;overflow-x:auto;gap:4px;}
  #hud .hud-tools .btn {flex:1 0 44px;width:auto;height:44px !important;min-width:44px;}
  #hud .rcs {display:grid;width:138px;height:138px;}
  #hud .rcs-btn {min-height:44px;min-width:44px;}
  #hud .dash {height:250px;}
  #hud .thr-track {width:44px;}
  #hud .thr {grid-template-columns:44px 1fr;}
  #hud .thr-presets button {min-height:44px;font-size:11px;}
  #hud .thr-presets button:nth-child(2),#hud .thr-presets button:nth-child(3),#hud .thr-presets button:nth-child(5) {display:none;}
  #hud .warpbar {min-height:44px;}
  #hud .chatbox {bottom:calc(var(--pad-b) + 52px);right:158px;width:auto;}
  #hud .route {bottom:calc(var(--pad-b) + 110px);right:158px;}
  #hud .gauges {background:rgba(7,17,28,.92);}
  #console {background:rgba(7,13,22,.98);}
}
@media (pointer:coarse) and (orientation:landscape) {
  #hud .hud-tools {right:calc(var(--pad-r) + 102px);}
  #hud .dash {height:auto;}
  #hud .rcs {right:calc(var(--pad-r) + 102px);}
  #hud .chatbox {width:min(40vw,440px);right:auto;}
  #hud .route {bottom:auto;right:auto;}
}
@media (pointer:coarse) and (orientation:portrait) {
  .tutor {right:158px !important;bottom:calc(var(--pad-b) + 206px) !important;}
}
