/*
 * hesskey-band.css — the unified brand band (extracted from the web-app's
 * approved Private redesign, 2026-06-12). Shared by /web-app/ and /foundation/
 * so the two can't drift (one source of truth, like hesskey-nav's TABS).
 *
 * Per-page accent: set --band-color (band background) and --band-ink (the
 * active-tab pill's text) on :root. Defaults reproduce the web-app's green
 * exactly, so a page that sets nothing looks identical to before:
 *
 *   /web-app/   → green   (defaults; no override needed)
 *   /foundation/→ purple  (:root { --band-color:#7B1FA2; --band-ink:#6A1B9A })
 *
 * Requires hesskey-app-theme.css (the --app-* tokens) loaded first, and
 * body.authed to reveal the band + its controls.
 */

.band {
  display: none;
  align-items: center; justify-content: space-between;
  background: var(--band-color, var(--app-green-500)); padding: 12px 28px; color: #fff;
  position: relative;
}
body.authed .band { display: flex; }
.band .brand { display: flex; align-items: center; gap: 14px; }
.band .disc {
  width: 50px; height: 50px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.band .disc img { width: 38px; height: 38px; }
.band .tt { font-size: 20px; font-weight: 800; letter-spacing: .2px; }
.band .st { font-size: 12.5px; opacity: .85; margin-top: 1px; font-weight: 500; }
.band .ctrl { display: flex; align-items: center; gap: 10px; }
.band-tabs { display: flex; align-items: center; gap: 4px; margin-right: 16px; }
.band-tab {
  color: rgba(255,255,255,.88); font-size: 13px; font-weight: 650;
  padding: 7px 13px; border-radius: 999px; text-decoration: none; cursor: pointer;
}
.band-tab:hover { background: rgba(255,255,255,.16); color: #fff; }
.band-tab.on { background: #fff; color: var(--band-ink, var(--app-green-700)); }
body.authed .logo-wrap { display: none; }
.tb-btn {
  width: 40px; height: 40px;
  border-radius: var(--app-r-full);
  background: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  display: none; /* shown when authenticated */
  align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  transition: box-shadow .15s ease, transform .1s ease;
}
body.authed .tb-btn { display: flex; }
.tb-btn:hover { box-shadow: var(--app-shadow-md); transform: translateY(-1px); }
.tb-btn.active { border-color: currentColor; }
.tb-btn svg { width: 20px; height: 20px; }
.tb-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px;
  border-radius: var(--app-r-full);
  background: var(--app-green-600);
  color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px;
  text-align: center;
  padding: 0 4px;
  box-sizing: border-box;
  display: none;
}
.tb-badge.show { display: block; }

/* ── top-bar dropdown panel ───────────────────────────────────────────── */
.tb-panel {
  position: absolute;
  top: calc(100% + 8px); right: 28px;
  width: min(360px, calc(100vw - 48px));
  background: var(--app-surface);
  /* The panel lives inside .band (color:#fff), so without this it inherits white —
     .kv .k has its own grey but the .v values + the h3 heading would be white-on-white
     ("no info shown"). Re-assert dark text on the surface. */
  color: var(--app-text-dark);
  border-radius: var(--app-r-lg);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-lg);
  padding: var(--app-sp-md);
  display: none;
  z-index: 60;
  text-align: left;
}
.tb-panel.open { display: block; }
.tb-panel h3 { margin: 0 0 8px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--app-border); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--app-text-med); }
.kv .v { font-weight: 600; text-align: right; word-break: break-all; }
