/* ============================================================================
   The frame around every screen: sticky header, main column, footer.
   ========================================================================== */

/* -------------------------------------------------------------- Header ---- */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: var(--sp-3); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-weight: 620; letter-spacing: -.01em; }

.header-right { display: flex; align-items: center; gap: var(--sp-3); }
.header-status {
  color: var(--text-muted);
  font-size: .8125rem;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main { max-width: 1200px; margin: 0 auto; padding: var(--sp-6) var(--sp-5) var(--sp-8); }

/* ------------------------------------------------------------- Footer ----- */

.app-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5) var(--sp-6);
  color: var(--text-faint);
  font-size: .8125rem;
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: space-between;
}

/* The running version, quiet enough to ignore until someone needs to quote it
   in a bug report. */
.app-version {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}
