.top-frame {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  box-sizing: border-box;
  width: 100%;
  padding: 24px 16px 16px;
}

.header-buttons-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.header-buttons-row .crest,
.header-buttons-row .icon-button:not(.search-bar) {
  flex-shrink: 0;
}

.status-bar {
  position: relative;
  width: 100%;
  height: 62px;
  /* Real fetched fill + "hero glass" effect (node 486:11794, re-confirmed
     live — a vertical gradient, not the flat fill an earlier pull had). */
  background: linear-gradient(180deg, rgba(48, 4, 83, 0.04) 50%, rgba(48, 4, 83, 0) 100%);
  backdrop-filter: var(--topnav-hero-glass-blur);
  -webkit-backdrop-filter: var(--topnav-hero-glass-blur);
}

/* SF Pro Text Semibold 17px — Apple system font, so -apple-system (real SF
   Pro on Apple platforms) with the standard system fallback elsewhere.
   Box: Figma's 84.8px-wide text area inside its 120.5px leading box (left
   18px), vertically centered at y=32. */
.status-bar__time {
  position: absolute;
  left: 31.4px;
  top: 21px;
  width: 84.8px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  color: var(--text-invert-white);
}

/* Figma's 108x26 trailing cluster (right 24.25px, top 19px); children
   positioned at its own inset offsets. */
.status-bar__indicators {
  position: absolute;
  right: 24.25px;
  top: 19px;
  width: 108px;
  height: 26px;
}

.status-bar__indicators > * {
  position: absolute;
}

.status-bar__signal { left: 18.09px; top: 7.1px; width: 19.2px; height: 12px; }
.status-bar__wifi { left: 44.79px; top: 7.2px; width: 17.14px; height: 12.1px; }

.status-bar__battery-border {
  left: 69px;
  top: 7px;
  box-sizing: border-box;
  width: 25px;
  height: 13px;
  border: 1px solid #fff;
  border-radius: 4.3px;
  opacity: 0.35;
}

.status-bar__battery-cap { left: 95px; top: 11.67px; width: 1.328px; height: 4px; }

.status-bar__battery-capacity {
  left: 71px;
  top: 9px;
  width: 21px;
  height: 9px;
  background: #fff;
  border-radius: 2.5px;
}

.crest {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 40px;
  padding: 2px;
  cursor: pointer;
}

.crest__clip {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  mix-blend-mode: multiply;
}

.crest__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.headline {
  display: flex;
  align-items: baseline;
  width: 100%;
  color: var(--text-invert-white);
  text-transform: uppercase;
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.headline__cap {
  flex-shrink: 0;
  margin-right: -1px;
  font-size: 37px;
  line-height: 0.9;
  letter-spacing: -0.74px;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.headline__rest {
  flex: 1 0 0;
  min-width: 1px;
  font-size: 27px;
  line-height: 0.9;
  letter-spacing: -0.54px;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* top is set in JS (see positionBackgroundWatermark in app.js), not a fixed
   px here — it needs to sit at the vertical center of #chat-list's own
   viewport specifically (excluding the navbar overlay), and both the frame's
   overall height and #chat-list's share of it are viewport-responsive now,
   not the fixed 844px this was once calculated against. */
.background-watermark {
  position: absolute;
  z-index: -1;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  border-radius: 300px;
  filter: blur(3px);
  opacity: 0.1;
  pointer-events: none;
  overflow: hidden;
}

.background-watermark__clip {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 300px;
  overflow: hidden;
  mix-blend-mode: multiply;
}

.background-watermark__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
