/* Shared surfaces and navigation for the MRT tracker. Rail colours and map symbols use the existing theme. */
:root {
  --ui-border: color-mix(in srgb, var(--fg) 15%, var(--panel));
  --ui-tint: color-mix(in srgb, var(--accent) 8%, var(--panel));
  --ui-radius: 14px;
}
body .app-header {border-bottom: 1px solid var(--ui-border); box-shadow: none}
body .app-header .search input {background:var(--panel);border:1px solid var(--ui-border);border-radius:12px;padding-inline-start:14px}
body .tview,body .views {background:var(--soft);border-radius:12px}
body .views button[aria-selected=true],body .tview button[aria-selected=true] {background:var(--panel);color:var(--fg);box-shadow:0 1px 3px #0002}
body :is(button,a,input,select,textarea,summary):focus-visible {outline:3px solid var(--accent);outline-offset:2px}
body .mob-nav {border-radius:16px;background:var(--panel);border-color:var(--ui-border)}
body .mob-nav button[aria-selected=true] {color:var(--accent)}
body :is(.home,.upd,.hist,.ask,.cam) {min-width:0}
body :is(.home,.upd,.hist,.ask,.cam,.sheet) h2 {letter-spacing:-.025em;line-height:1.16}
body :is(.card,.fav,.quick button,.tiles button,.ask-head,.cam-head,.hx-cam,.rt-form,.sheet,.simsheet,.status,.fleet) {
  border-color:var(--ui-border);border-radius:var(--ui-radius)
}
body .quick button {text-align:start; padding:16px; align-items:flex-start; background:var(--ui-tint);color:var(--fg)}
body .quick button svg,body .tiles button svg {color:var(--accent)}
body .tiles {gap:8px}
body .tiles button {background:var(--panel);line-height:1.25;min-height:64px}
body .fav-h,body .hm-h {align-items:center;gap:10px}
body .upd .card {background:var(--panel);padding:clamp(14px,2vw,24px);box-shadow:none}
body .news li + li,body .links a + a {border-block-start:1px solid var(--rule)}
body .ask-bar textarea {border-radius:12px;background:var(--panel)}
body .cam-angles,body .ask-sugg {gap:6px}
body .cam-box {overflow:hidden;border-radius:var(--ui-radius);background:#111}
body .board .row {min-height:52px}
body :is(.mi-t,.clock,.plat .t,.next) {font-variant-numeric:tabular-nums}
body #mapInfo {border-color:var(--ui-border);box-shadow:var(--shadow-float,0 10px 30px rgba(0,0,0,.16))}
body .mapctl button:focus-visible {outline-offset:-3px}
body .follow-stop {pointer-events:auto;border:1px solid var(--accent);background:var(--panel);color:var(--accent);font:600 13px var(--body);min-height:40px;border-radius:10px;padding:5px 12px}
body #alertBanner:has(.alert-map) {display:flex;gap:6px;align-items:stretch;margin-bottom:10px}
body #alertBanner:has(.alert-map) .alert {flex:1;min-width:0;margin:0;text-align:start}
body .alert-map {max-width:9em;color:var(--fg);background:var(--panel);border:1px solid var(--bad);font-size:13px}
body .sheet {overflow:hidden}
body .sheet .sheet-h {flex:0 0 auto}
body .sheet .sheet-body {flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:thin}
body #hxSheet {border:1px solid var(--ui-border);border-block-start:4px solid var(--c);background:var(--panel);color:var(--fg);box-shadow:0 12px 42px #0003}
body #hxSheet .sheet-h {border-bottom:1px solid var(--rule);padding-block:10px}
body #hxSheet .sheet-h h2 {font-size:clamp(21px,3vw,30px);line-height:1.15}
body #hxSheet .plat>div {padding-block:10px;gap:10px;border-block-end:1px solid var(--rule)}
body #hxSheet .plat .t em {font-size:1.13em;font-style:normal}
body #hxStatic>.mi-act:first-child {display:flex;gap:6px;flex-wrap:wrap}
body #hxSheet .hsub {color:var(--muted);letter-spacing:.015em}
@media(max-width:599px) {
  body #hxSheet {max-height:62dvh;border-radius:20px 20px 0 0}
  body #hxSheet.expanded {height:86dvh;max-height:86dvh}
  body #hxSheet .sheet-grab {display:block;touch-action:none;flex:0 0 22px;width:100%;margin:0;background:transparent;opacity:1}
  body #hxSheet .sheet-grab::after {content:"";display:block;width:44px;height:4px;margin:9px auto;border-radius:4px;background:var(--muted)}
  body .wrap .app-header .top {gap:8px}
  body .mob-nav .m-badge {font-variant-numeric:tabular-nums}
}
@media(min-width:600px) {
  body #hxSheet {position:fixed;left:auto;right:12px;top:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px));width:min(430px,46vw);max-height:none;transform:none;margin:0;border-radius:16px}
  body #hxSheet .sheet-grab {display:none}
  body #hxBg {background:transparent;pointer-events:none}
  body #sheet {left:auto;right:12px;top:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px));width:min(460px,54vw);max-height:none;border-radius:16px;border-top:0;border-left:6px solid var(--c)}
}
@media(min-width:600px) and (max-width:1023px) {
  body .mob-nav {left:16px;right:16px;bottom:max(10px,env(safe-area-inset-bottom,0px));max-width:560px;margin-inline:auto}
  body #mapInfo {max-height:min(54dvh,460px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:thin}
}
@media(min-width:768px) and (max-width:1023px) {
  body .simsheet {left:auto;right:0;top:0;bottom:0;width:min(440px,56vw);max-height:none;border-radius:16px 0 0 16px;border-top:0;border-left:6px solid #c2410c}
}
@media(min-width:701px) {
  body .home {max-width:1120px;width:100%;margin-inline:auto}
  body .fav-list {grid-template-columns:repeat(auto-fit,minmax(310px,1fr));align-items:start}
  body .tiles {grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
}
@media(min-width:1024px) {
  body #hxSheet {bottom:12px;width:min(440px,38vw)}
  body #sheet {top:0;bottom:0;right:0;width:min(480px,42vw);border-radius:0}
  body .upd {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}
  body #officialCard {grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce) {
  body :is(.mob-nav,.quick,.tiles,.sheet,.views,.tview) button {transition:none}
}

body #toolFilter {width:clamp(110px,40%,220px);min-height:40px;padding:8px 12px;border:1px solid var(--ui-border);border-radius:10px;background:var(--panel);color:var(--fg);font:inherit}
body #homeTools .tool-filtered {display:none!important}
body .splRow,body .b-stop {border-color:var(--ui-border);padding-block:10px}
body .splTime,body .splSlot,body .b-t {font-variant-numeric:tabular-nums}
body :is(.splHead,.sim-h,.cam-head,.ask-head) {border-bottom:1px solid var(--ui-border);padding-bottom:10px}
body .simsheet section {border-inline-start:3px solid var(--ui-border);padding-inline-start:12px}
body :is(.hist,.home,.sheet-body) .hchip {border-radius:10px;min-height:40px}
