@font-face{font-family:KSStatus;src:url('../../fonts/Rajdhani-Bold.ttf');font-weight:700;font-display:swap}
/* One clock, its local context and a quiet connection readout. No indicator surfaces. */
.ks-status-bar{position:absolute;inset:0;pointer-events:none;color:#fffdf5;font:700 32px/1.1 KSStatus,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;text-shadow:0 2px 4px #000,0 0 12px #0009;z-index:21;--status-ok:#70f0b0;--status-warning:#ffd16b;--status-off:#ff8989}
.ks-clock-cluster{position:absolute;display:flex;flex-direction:column;align-items:stretch;width:410px;min-width:0}
.ks-clock-time{width:100%;min-width:0;text-align:inherit;color:var(--text)}
.ks-clock-time[hidden]{display:none!important}
.ks-clock-time #clock{position:static;display:block;width:max-content;max-width:100%;margin:0;white-space:nowrap}
.ks-clock-time #clock[hidden]{display:none}
.ks-clock-meta{display:flex;align-items:center;justify-content:inherit;gap:24px;min-height:80px}
.ks-status-bar #date,.ks-status-bar .ks-status-item{position:relative;display:flex;align-items:center;gap:10px;flex:none;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;background-image:none;box-shadow:none;color:inherit;font:inherit;letter-spacing:0;text-align:left;text-shadow:inherit;white-space:nowrap}
.ks-status-bar #date{height:auto;font-size:32px;line-height:1.1}
.ks-status-bar .ks-status-item{min-height:80px;pointer-events:auto}
.ks-status-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.ks-status-value{display:block;white-space:nowrap}
.ks-status-caption{display:block;color:#e0e5ec;font:700 26px/1.1 KSStatus,sans-serif;white-space:nowrap}
.ks-status-temperature .ks-status-value{font-size:38px}
.ks-status-temperature .ks-status-caption{display:none}
.ks-status-item svg{display:block;width:34px;height:34px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #000)}
.ks-status-temperature[data-state=ready] svg{stroke:var(--status-warning)}
.ks-status-connections{position:absolute;display:flex;align-items:center;gap:32px}
.ks-status-connections .ks-status-item{font-size:30px}
.ks-status-connections .ks-status-copy{min-width:142px}
.ks-status-mark{display:none;stroke-width:2.8}
.ks-status-item[data-state=fixed] svg,.ks-status-item[data-state=online] svg{stroke:var(--status-ok)}
.ks-status-item[data-state=permission] svg,.ks-status-item[data-state=searching] svg,.ks-status-item[data-state=weak] svg,.ks-status-item[data-state=limited] svg{stroke:var(--status-warning)}
.ks-status-item[data-state=offline] svg,.ks-status-item[data-state=disabled] svg,.ks-status-item[data-state=unavailable] svg{stroke:var(--status-off)}
.ks-status-item[data-state=unknown] svg{stroke:#c5cedb}
.ks-status-item[data-state=offline] .ks-status-slash,.ks-status-item[data-state=disabled] .ks-status-slash,.ks-status-item[data-state=unavailable] .ks-status-slash{display:block;stroke:var(--status-off);stroke-width:3}
.ks-status-item[data-state=permission] .ks-status-attention,.ks-status-item[data-state=limited] .ks-status-attention{display:block}
.ks-status-bar .ks-status-item:focus-visible{outline:3px solid #fffdf5;outline-offset:6px}
.ks-status-bar .ks-status-item:active{color:var(--accent)}
.ks-status-bar .ks-status-item:disabled{cursor:default;opacity:1}

/* Garage: the time and its context sit above the vehicle identity. */
#stage[data-monitor-template=ks-garage-v1] .ks-clock-cluster{left:44px;bottom:330px;width:550px}
#stage[data-monitor-template=ks-garage-v1] .ks-clock-time #clock{left:auto;top:auto;line-height:.96}
#stage[data-monitor-template=ks-garage-v1] .ks-status-connections{right:44px;top:124px}
#stage[data-monitor-template=ks-garage-v1]>.ks-pages-viewport{top:220px}
#stage[data-monitor-template=ks-garage-v1].ks-monitor-open .ks-clock-cluster{left:auto;right:44px;top:124px;bottom:auto;width:auto;flex-direction:row;align-items:center;gap:28px}
#stage[data-monitor-template=ks-garage-v1].ks-monitor-open .ks-clock-time{width:auto}
#stage[data-monitor-template=ks-garage-v1].ks-monitor-open #clock{font-size:calc(64px * var(--clock-scale));letter-spacing:-2px}
#stage[data-monitor-template=ks-garage-v1].ks-monitor-open .ks-status-connections{left:44px;right:auto}
#stage[data-monitor-template=ks-garage-v1].ks-monitor-open>.ks-pages-viewport{top:220px}

/* Orbit: right-aligned context under the clock; settings keep their own column. */
#stage[data-monitor-template=ks-orbit-v1] .ks-clock-cluster{right:180px;top:18px;width:370px;align-items:flex-end}
#stage[data-monitor-template=ks-orbit-v1] .ks-clock-time{display:flex;justify-content:flex-end}
#stage[data-monitor-template=ks-orbit-v1] .ks-clock-meta{justify-content:flex-end}
#stage[data-monitor-template=ks-orbit-v1] .ks-status-connections{left:280px;top:24px}
#stage[data-monitor-template=ks-orbit-v1]>.ks-pages-viewport{top:208px}

/* Apex's low header keeps all supporting information on one horizontal baseline. */
#stage[data-monitor-template=ks-apex-v1] .ks-clock-cluster{right:32px;top:8px;width:auto;flex-direction:row;align-items:center;gap:28px}
#stage[data-monitor-template=ks-apex-v1] .ks-clock-time{width:auto}
#stage[data-monitor-template=ks-apex-v1] .ks-status-connections{left:250px;top:8px}
#stage[data-monitor-template=ks-apex-v1] .header-rule{display:none}
#stage[data-monitor-template=ks-apex-v1]>.ks-pages-viewport,#stage[data-monitor-template=ks-apex-v1] .vehicle-stage,#stage[data-monitor-template=ks-apex-v1] .cards{top:120px}

/* Shift: date and temperature share the clock's right-hand console. */
#stage[data-monitor-template=ks-shift-v1] .ks-clock-cluster{right:29px;top:16%;text-align:center}
#stage[data-monitor-template=ks-shift-v1] .ks-clock-time #clock{margin:0 auto}
#stage[data-monitor-template=ks-shift-v1] .ks-clock-meta{justify-content:center}
#stage[data-monitor-template=ks-shift-v1] .ks-status-connections{left:520px;top:24px}
#stage[data-monitor-template=ks-shift-v1].ks-monitor-open .ks-clock-cluster{right:130px;top:20px;width:auto;flex-direction:row;align-items:center;gap:24px}
#stage[data-monitor-template=ks-shift-v1].ks-monitor-open .ks-clock-time{width:auto}
#stage[data-monitor-template=ks-shift-v1].ks-monitor-open #clock{font-size:calc(58px * var(--clock-scale))!important;line-height:1.15;letter-spacing:-2px;padding:0 .05em}
#stage[data-monitor-template=ks-shift-v1].ks-monitor-open>.ks-pages-viewport{top:164px}
#stage[data-monitor-template=ks-shift-v1].ks-monitor-open .ks-monitor-header,#stage[data-monitor-template=ks-shift-v1].ks-monitor-open .ks-monitor-toolbar{padding-left:4px}

/* Desert: preserve the panoramic area and the right-hand menu's full width. */
#stage[data-monitor-template=ks-desert-v1] .ks-clock-cluster{right:24px;top:128px;text-align:center}
#stage[data-monitor-template=ks-desert-v1] .ks-clock-time #clock{margin:0 auto}
#stage[data-monitor-template=ks-desert-v1] .ks-clock-meta{justify-content:center}
#stage[data-monitor-template=ks-desert-v1] .ks-status-connections{left:280px;top:24px}
#stage[data-monitor-template=ks-desert-v1] .desert-menu{top:43%}

@media(min-aspect-ratio:2/1){
  #stage[data-monitor-template=ks-desert-v1] .ks-clock-cluster{top:104px}
  #stage[data-monitor-template=ks-desert-v1] .ks-clock-time #clock{font-size:142px!important}
}
/* Small head units keep a generous invisible touch area around the smaller readouts. */
@media(max-width:900px){
  .ks-status-bar .ks-status-item{min-height:104px}
  .ks-status-caption{font-size:28px}
  .ks-status-connections .ks-status-copy{min-width:148px}
  #stage[data-monitor-template=ks-garage-v1].ks-monitor-open>.ks-pages-viewport{top:244px}
  #stage[data-monitor-template=ks-orbit-v1]>.ks-pages-viewport{top:232px}
  #stage[data-monitor-template=ks-desert-v1].ks-monitor-open>.ks-pages-viewport{top:152px}
  #stage[data-monitor-template=ks-apex-v1]>.ks-pages-viewport,#stage[data-monitor-template=ks-apex-v1] .vehicle-stage,#stage[data-monitor-template=ks-apex-v1] .cards{top:132px}
}
#stage.ks-apps-open>.ks-status-bar{visibility:hidden;pointer-events:none}
#stage.ks-apps-open>.ks-status-bar .ks-status-item{pointer-events:none}
