/* GridRivet v0.18.3 | Mission Typography & Command Legibility
   Built ON v0.18.2, not instead of it. Presentation only.
   Existing map color, symbols, controls, data bindings and permission gates untouched.
   Typography: Orbitron / Rajdhani / Space Grotesk; no blue theme accents. */
:root{
  --gr-type-brand:'Orbitron','Bahnschrift SemiCondensed',sans-serif;
  --gr-type-control:'Rajdhani','Bahnschrift SemiCondensed','Segoe UI',sans-serif;
  --gr-type-reading:'Space Grotesk','Segoe UI',Arial,sans-serif;
  --gr-type-contrast:#f2f4f5;
  --gr-type-subtle:#bec5c9;
}
/* Shared aerospace hierarchy for the working application. */
html body #appView.gridrivet-precision,
html body #loginView.launch-auth{font-family:var(--gr-type-reading)!important}
html body #appView.gridrivet-precision :is(.section-head h2,.guide-main h2,.guide-intro h3,
 .guide-form-heading strong,.guide-rail-brand strong,.gr-staff-post-head strong,
 .gr-map-section h3,.map-toolbox-head h3,.command-panel-head h3,
 .roster-toolbar h3,.dialog-form h2,.operation-card h3){
  font-family:var(--gr-type-control)!important;
  font-weight:650!important;letter-spacing:.035em!important;line-height:1.13!important;
}
html body #appView.gridrivet-precision :is(.section-head h2,.guide-main h2){font-size:clamp(25px,2.1vw,33px)!important}
html body #appView.gridrivet-precision :is(.command-panel-head h3,.roster-toolbar h3,
 .gr-map-section h3,.guide-form-heading strong){font-size:clamp(17px,1.3vw,21px)!important}
html body #appView.gridrivet-precision :is(.eyebrow,.guide-kicker,.guide-stage-head>span,
 .guide-step-button em,.gr-map-info-grid small,.map-toolbox-head .eyebrow,
 .section-kicker,.roster-toolbar .eyebrow,.command-panel-head .eyebrow){
  font-family:var(--gr-type-control)!important;font-size:clamp(11px,.84vw,13px)!important;
  font-weight:650!important;letter-spacing:.1em!important;color:var(--gr-type-subtle)!important;
}
html body #appView.gridrivet-precision :is(.section-head p,.guide-topline p,
 .guide-rail-brand p,.guide-digest p,.command-panel-head p,.roster-toolbar p,
 .guide-hint,.field-help,.guide-field em,.guide-return-bar small){
  font-family:var(--gr-type-reading)!important;font-size:13px!important;line-height:1.55!important;
  color:#bfc7cb!important;
}
html body #appView.gridrivet-precision :is(.sidebar .nav-btn,.sidebar .gr-advanced-nav>summary,
 .guide-step-button,.guide-link-btn,.guide-footer .btn,
 .btn,.map-toolbar button,.map-tool-grid button,.map-area-tool-grid button){
  font-family:var(--gr-type-control)!important;font-size:clamp(13px,.93vw,15px)!important;
  font-weight:650!important;letter-spacing:.045em!important;
}
html body #appView.gridrivet-precision :is(.sidebar .nav-btn,.sidebar .gr-advanced-nav>summary){min-height:43px!important}
html body #appView.gridrivet-precision :is(.guide-field input,.guide-field select,.guide-field textarea,
 .gr-roster-grid input,.gr-staff-slot select,.dialog-form input,.dialog-form select,
 .dialog-form textarea,.map-location-search){
  font-family:var(--gr-type-reading)!important;font-size:14px!important;line-height:1.4!important;
}
html body #appView.gridrivet-precision :is(.gr-staff-slot,.gr-roster-scroll,.guide-digest,
 .gr-map-dialog-content,.guide-stage-head,.guide-stat-grid){font-family:var(--gr-type-reading)!important}
html body #appView.gridrivet-precision :is(.operation-card,.guide-main,.guide-rail,
 .guide-panel-form,.command-briefing-panel,.roster-panel,.gr-staff-post){letter-spacing:normal}
html body #appView.gridrivet-precision :is(.guide-step-button strong,.gr-staff-post-head strong){font-size:15px!important}
html body #appView.gridrivet-precision :is(.guide-overall strong,.guide-step-number,.guide-stage-head strong){font-size:13px!important}
html body #appView.gridrivet-precision #mapPostSummaryDialog :is(p,li,dd,dt,span:not(.gr-map-readonly)){
  line-height:1.45;
}
html body #appView.gridrivet-precision #mapPostSummaryDialog .gr-map-dialog-inner h2{font-size:26px!important}
html body #appView.gridrivet-precision #mapPostSummaryDialog .gr-map-section h3{font-size:18px!important}
html body #appView.gridrivet-precision .gr-advanced-nav-content .nav-group-label{
  font-family:var(--gr-type-control)!important;font-size:12px!important;
}
/* Do not modify Leaflet tile panes or their image filters: v0.18.2 satellite stays full-color. */

/* Command Display: readable on a laptop AND a large wall monitor.
   The original stylesheet uses 5-9px labels. Labels now start at 11px,
   operational values at 14px, with concise text clipping only where needed. */
html body .standalone-command-display{
  font-family:var(--gr-type-reading)!important;
  color:var(--gr-type-contrast)!important;
  grid-template-rows:80px 91px minmax(0,1fr) 68px 72px!important;
}
html body .standalone-command-display :is(.scd-brand strong,.scd-operation strong){
  font-family:var(--gr-type-brand)!important;font-weight:600!important;
  letter-spacing:.075em!important;line-height:1.15!important;
}
html body .standalone-command-display .scd-brand strong{font-size:clamp(19px,1.45vw,27px)!important}
html body .standalone-command-display .scd-operation strong{font-size:clamp(17px,1.3vw,24px)!important}
html body .standalone-command-display :is(.scd-brand small,.scd-operation span,
 .scd-event-clock span,.scd-header-status #scdLastSync){
  font-family:var(--gr-type-control)!important;font-size:11px!important;
  font-weight:600!important;letter-spacing:.09em!important;color:#b3bdc1!important;
}
html body .standalone-command-display .scd-header-status{gap:11px!important;min-width:0}
html body .standalone-command-display #scdConnection{
  font-family:var(--gr-type-control)!important;font-size:12px!important;font-weight:700!important;
}
html body .standalone-command-display :is(#scdClock,#scdEventClock){
  font-family:var(--gr-type-control)!important;font-size:clamp(20px,1.65vw,30px)!important;
  font-weight:600!important;font-variant-numeric:tabular-nums!important;
}
html body .standalone-command-display #exitCommandDisplay{
  min-height:38px!important;padding:0 14px!important;font-family:var(--gr-type-control)!important;
  font-size:13px!important;font-weight:700!important;
}
html body .standalone-command-display .scd-phase>div{padding:12px 15px!important;min-width:0}
html body .standalone-command-display .scd-phase span,
html body .standalone-command-display .scd-operational-picture span{
  font-family:var(--gr-type-control)!important;font-size:clamp(10px,.75vw,12px)!important;
  line-height:1.2!important;letter-spacing:.065em!important;color:#b7c0c4!important;
}
html body .standalone-command-display .scd-phase strong,
html body .standalone-command-display .scd-phase>div:first-child strong{
  font-family:var(--gr-type-control)!important;font-size:clamp(16px,1.05vw,21px)!important;
  font-weight:650!important;line-height:1.12!important;letter-spacing:.025em!important;
}
html body .standalone-command-display .scd-phase em{
  font-family:var(--gr-type-reading)!important;font-size:13px!important;
  font-weight:500!important;line-height:1.15!important;
}
html body .standalone-command-display .scd-body{
  grid-template-columns:minmax(0,1fr) clamp(360px,27vw,450px)!important;
}
html body .standalone-command-display :is(.scd-map-label span,.scd-map-label em,.scd-map-legend){
  font-family:var(--gr-type-control)!important;font-size:11px!important;line-height:1.25!important;
}
html body .standalone-command-display .scd-rail{min-width:0}
html body .standalone-command-display .scd-section-head{
  font-family:var(--gr-type-control)!important;font-size:13px!important;
  font-weight:700!important;letter-spacing:.09em!important;line-height:1.2!important;
  padding:12px 15px!important;
}
html body .standalone-command-display .scd-section-head strong{font-size:12px!important;font-weight:650!important}
html body .standalone-command-display #scdMovementList .scd-list-row{
  grid-template-columns:78px minmax(0,1fr)!important;padding:10px!important;gap:9px!important;
}
html body .standalone-command-display #scdMovementList .scd-list-row span{
  font-family:var(--gr-type-control)!important;font-size:12px!important;font-weight:700!important;
}
html body .standalone-command-display #scdMovementList .scd-list-row strong{
  font-family:var(--gr-type-reading)!important;font-size:14px!important;font-weight:600!important;
  line-height:1.3!important;overflow-wrap:anywhere;
}
html body .standalone-command-display #scdMovementList .scd-list-row small{
  font-family:var(--gr-type-reading)!important;font-size:12px!important;
  line-height:1.3!important;color:#bac2c6!important;
}
html body .standalone-command-display .scd-movement-group-head{
  font-family:var(--gr-type-control)!important;font-size:12px!important;
  font-weight:650!important;line-height:1.3!important;
}
html body .standalone-command-display .scd-live-task-board{padding:8px 10px!important;min-width:0}
html body .standalone-command-display .scd-task-group-label{
  font-family:var(--gr-type-control)!important;font-size:11px!important;
  font-weight:650!important;line-height:1.25!important;
}
html body .standalone-command-display .scd-task-top{
  grid-template-columns:minmax(60px,.8fr) minmax(0,1fr) auto!important;gap:6px!important;
}
html body .standalone-command-display .scd-task-top :is(span,strong,em){
  font-family:var(--gr-type-control)!important;font-size:11px!important;
  font-weight:650!important;line-height:1.25!important;
}
html body .standalone-command-display .scd-task-row{padding:10px!important}
html body .standalone-command-display .scd-task-row>b{
  font-family:var(--gr-type-reading)!important;font-size:14px!important;
  line-height:1.32!important;white-space:normal!important;
  display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
html body .standalone-command-display .scd-task-row>small{
  font-family:var(--gr-type-reading)!important;font-size:12px!important;
  line-height:1.3!important;color:#b4bdc1!important;
}
html body .standalone-command-display .scd-task-complete-note{font-size:12px!important}
html body .standalone-command-display .scd-operational-picture{
  grid-template-columns:minmax(165px,1.25fr) repeat(6,minmax(0,1fr))!important;
}
html body .standalone-command-display .scd-operational-picture>div{padding:0 11px!important}
html body .standalone-command-display .scd-operational-picture strong{
  font-family:var(--gr-type-control)!important;font-size:clamp(13px,.95vw,17px)!important;
  font-weight:700!important;letter-spacing:.02em!important;line-height:1.2!important;
}
html body .standalone-command-display .scd-op-picture-title strong{font-size:14px!important}
html body .standalone-command-display .scd-ticker{grid-template-columns:195px minmax(0,1fr)!important}
html body .standalone-command-display .scd-ticker-label :is(span,small){
  font-family:var(--gr-type-control)!important;font-size:10px!important;line-height:1.2!important;
}
html body .standalone-command-display .scd-ticker-label strong{
  font-family:var(--gr-type-control)!important;font-size:14px!important;line-height:1.2!important;
}
html body .standalone-command-display .scd-ticker-track{height:72px!important}
html body .standalone-command-display .scd-ticker-track span{
  font-family:var(--gr-type-reading)!important;font-size:14px!important;font-weight:500!important;
}
html body .standalone-command-display .scd-ticker-track b{font-size:11px!important}
html body .standalone-command-display .scd-marker span{
  font-family:var(--gr-type-control)!important;font-size:14px!important;font-weight:700!important;
}
html body .standalone-command-display .scd-marker small{
  font-family:var(--gr-type-reading)!important;font-size:11px!important;letter-spacing:.01em!important;
}
/* Keep large operational displays readable without sacrificing map space on laptops. */
@media(max-width:1250px){
  html body .standalone-command-display{grid-template-rows:70px 83px minmax(0,1fr) 64px 66px!important}
  html body .standalone-command-display .scd-header{gap:9px!important;padding:0 12px!important}
  html body .standalone-command-display .scd-body{grid-template-columns:minmax(0,1fr) 345px!important}
  html body .standalone-command-display .scd-operation{padding:0 12px!important}
  html body .standalone-command-display .scd-event-clock{display:none!important}
  html body .standalone-command-display .scd-header-status #scdLastSync{display:none!important}
  html body .standalone-command-display .scd-operational-picture{grid-template-columns:150px repeat(6,minmax(0,1fr))!important}
  html body .standalone-command-display .scd-operational-picture>div{padding:0 7px!important}
  html body .standalone-command-display .scd-operational-picture strong{font-size:13px!important}
  html body .standalone-command-display .scd-operational-picture span{font-size:10px!important}
}
@media(max-width:800px){
  html body .standalone-command-display{grid-template-rows:70px 94px minmax(0,1fr) 62px 60px!important}
  html body .standalone-command-display .scd-header{grid-template-columns:minmax(0,1fr) auto!important}
  html body .standalone-command-display .scd-operation{display:none!important}
  html body .standalone-command-display .scd-header-status{gap:6px!important}
  html body .standalone-command-display #scdConnection{display:none!important}
  html body .standalone-command-display .scd-phase{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body .standalone-command-display .scd-phase>div{padding:7px 10px!important}
  html body .standalone-command-display .scd-body{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(170px,1fr) minmax(150px,.62fr)!important;
  }
  html body .standalone-command-display .scd-rail{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:minmax(0,1fr)!important;overflow:hidden;
  }
  html body .standalone-command-display .scd-rail>section{min-height:0!important;overflow:auto!important}
  html body .standalone-command-display #scdMovementList{overflow:auto!important}
  html body .standalone-command-display .scd-auto-scroll-track.is-scrolling{animation:none!important;transform:none!important}
  html body .standalone-command-display .scd-operational-picture{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body .standalone-command-display .scd-operational-picture>div:nth-child(n+4){display:none!important}
  html body .standalone-command-display .scd-op-picture-title{display:none!important}
  html body .standalone-command-display .scd-ticker{grid-template-columns:110px minmax(0,1fr)!important}
  html body .standalone-command-display .scd-ticker-label{padding:0 8px!important}
  html body .standalone-command-display .scd-ticker-label strong{font-size:11px!important}
  html body #appView.gridrivet-precision :is(.section-head h2,.guide-main h2){font-size:25px!important}
}
/* Small phones are a readable, vertically scrollable overview rather than
   two cramped command rails. The map and every task list stay accessible. */
@media(max-width:600px){
  html body .standalone-command-display{
    display:block!important;overflow-y:auto!important;overscroll-behavior:contain;
    height:100dvh!important;
  }
  html body .standalone-command-display .scd-header{min-height:70px!important}
  html body .standalone-command-display .scd-phase{min-height:128px!important}
  html body .standalone-command-display .scd-body{display:block!important;min-height:0!important}
  html body .standalone-command-display .scd-map-panel{height:45dvh!important;min-height:260px!important}
  html body .standalone-command-display .scd-rail{display:block!important;min-height:0!important}
  html body .standalone-command-display .scd-rail>section{
    display:block!important;min-height:0!important;max-height:none!important;
  }
  html body .standalone-command-display #scdMovementList,
  html body .standalone-command-display .scd-live-task-board{
    max-height:260px!important;overflow-y:auto!important;
  }
  html body .standalone-command-display .scd-operational-picture{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    min-height:90px!important;
  }
  html body .standalone-command-display .scd-ticker{min-height:66px!important}
  html body .standalone-command-display .scd-ticker-track{height:66px!important}
}
/* Bring the regular Live Command workspace and staffing board up to the
   same readable type scale as the full-screen Command Display. */
html body #appView.gridrivet-precision .command-briefing-statusbar span,
html body #appView.gridrivet-precision .command-executive-strip span,
html body #appView.gridrivet-precision .command-kpis span,
html body #appView.gridrivet-precision .command-task-kpis span{
  font-family:var(--gr-type-control)!important;font-size:12px!important;
  font-weight:650!important;letter-spacing:.075em!important;color:#b6c0c4!important;
}
html body #appView.gridrivet-precision .command-briefing-statusbar strong{
  font-family:var(--gr-type-control)!important;font-size:16px!important;font-weight:650!important;
}
html body #appView.gridrivet-precision .command-executive-strip strong{
  font-family:var(--gr-type-control)!important;font-size:clamp(22px,1.75vw,29px)!important;
  font-weight:650!important;
}
html body #appView.gridrivet-precision .command-executive-strip small{
  font-family:var(--gr-type-reading)!important;font-size:11px!important;color:#b4bec2!important;
}
html body #appView.gridrivet-precision .command-panel-head .btn{
  font-family:var(--gr-type-control)!important;font-size:13px!important;
  min-height:34px!important;padding:0 12px!important;
}
html body #appView.gridrivet-precision :is(.gr-roster-grid th,.roster-table th){
  font-family:var(--gr-type-control)!important;font-size:12px!important;
  color:#c3cbce!important;letter-spacing:.07em!important;
}
html body #appView.gridrivet-precision :is(.gr-roster-grid td,.roster-table td){
  font-family:var(--gr-type-reading)!important;font-size:13px!important;line-height:1.4!important;
}
html body #appView.gridrivet-precision :is(.guide-step-button span,.guide-step-button strong,
 .guide-overall>span,.guide-overall>strong){font-family:var(--gr-type-control)!important}
html body #appView.gridrivet-precision :is(.guide-step-button span,.guide-overall>span){font-size:12px!important}
html body #appView.gridrivet-precision .guide-overall>strong{font-size:18px!important}
