/* Elevated IQ — Shared Header Template (v2)
   Minimal + safe: only status colors + small avatar styling.
*/

/* status colors */
#statusText.ok   { color: #16a34a; }  /* green = Up */
#statusText.bad  { color: #dc2626; }  /* red = Down */
#statusText.warn { color: #d97706; }  /* yellow = Maintenance (later) */

/* user avatar (shows blank circle if no avatar) */
.user-line{
  display:flex;
  align-items:center;
  gap:8px;
}
.user-avatar{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
  overflow:hidden;
  display:inline-grid;
  place-items:center;
  flex: 0 0 22px;
}
.user-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:0; /* becomes 1 on load */
}
/* Header layout + logo sizing (shared) */
#top-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
}

#brand{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 0;
}

#logo{
  height: 72px;   /* <- THIS is what you were missing */
  width: auto;
  max-width: 190px;
  display:block;
}

#brand-title{
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1.05;
}

#brand-subtitle{
  font-weight: 900;
  font-size: 21px;
  line-height: 1.1;
  margin-top: 4px;
}

.status-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content:flex-end;
}

.pill{
  display:flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(2,6,23,.10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(2,6,23,.08);
}

.pill > div{
  display:block;
  line-height: 1.2;
  white-space: nowrap;
}

.pill .muted{ opacity: .75; }

#backLink{ text-decoration:none; }
#backLink:hover{ text-decoration: underline; }
