/* SVAATsoft suite badge: matches the identity block in the SPX Viewer.
   Scoped to the three other tool pages; TGP navigation and footer are untouched. */
.stsoft-app-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 17px 20px;
  border: 1px solid #293747;
  border-radius: 10px;
  background: #121b24;
  color: #e9eff5;
  font: 14px/1.5 "Segoe UI", system-ui, sans-serif;
}
.stsoft-app-header__brand {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 94px;
  height: 39px;
  flex: 0 0 94px;
  padding: 0 8px;
  border-radius: 10px;
  background: #213e3a;
  color: #82dec9;
  font: 700 15px/1 monospace;
  white-space: nowrap;
}
.stsoft-app-header__identity {min-width: 0;flex: 1 1 auto;}
.stsoft-app-header__name {
  display: block;
  color: #e9eff5;
  font: 700 clamp(17px,2vw,20px)/1.25 "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.02em;
}
.stsoft-app-header__detail {
  display: block;
  margin-top: 3px;
  color: #a7b4c2;
  font: 12px/1.4 "Segoe UI", system-ui, sans-serif;
}
@media (max-width: 520px) {
  .stsoft-app-header {gap: 11px;padding: 13px 12px; margin-bottom: 12px;}
  .stsoft-app-header__brand {width: 82px;flex-basis: 82px;height: 37px;font-size: 13px;}
  .stsoft-app-header__name {font-size: 17px;}
  .stsoft-app-header__detail {font-size: 11px;}
}


/* Software version stays beside the app name on every SVAATsoft tool. */
.stsoft-app-header__version {
  display: inline-block;
  margin-left: 7px;
  color: #9bc9bd;
  font: 600 11px/1.3 Consolas, Monaco, monospace;
  white-space: nowrap;
  vertical-align: baseline;
  letter-spacing: .035em;
}

/* All tools put their processing status at the far right of the app header.
   Online AI is deliberately distinguished from browser-local file processing. */
.stsoft-app-header__status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 7px;
  margin-left: auto;
  color: #a7b4c2;
  font: 12px/1.45 "Segoe UI", system-ui, sans-serif;
  white-space: nowrap;
  text-align: right;
}
.stsoft-app-header__status::before {
  content: "";
  display: inline-block;
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #82dec9;
}
.stsoft-app-header__status--online::before {background: #66c4f3;}

@media(max-width: 680px) {
  .stsoft-app-header__status {
    flex: 1 0 100%;
    order: 10;
    margin-left: 0;
    padding-top: 7px;
    border-top: 1px solid #293747;
    font-size: 11px;
  }
  /* SPX's own header retains its native layout and uses this same status. */
  #spx-app > header .stsoft-app-header__status {
    flex: 1 0 100%;
    order: 20;
  }
}
