/* Keep the brand, subtitle, timer, and help action in a compact responsive bar. */
body { overflow-x: clip; }

.topbar,
.brand-lockup {
  min-width: 0;
}

.topbar {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding-left: clamp(24px, 2.4vw, 56px);
  padding-right: clamp(24px, 2.4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  border-bottom-color: transparent;
}

.brand-lockup {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
}

.brand { flex: none; }

.brand-subtitle {
  margin: 0;
  color: var(--ink);
  font: 600 clamp(15px, 1.3vw, 20px)/1.1 "DM Sans", sans-serif;
  letter-spacing: -.55px;
  white-space: nowrap;
}

.topbar-note {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
  white-space: nowrap;
}

.topbar-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
}

.topbar::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--cream);
  border-bottom: 1px solid #dfdacd;
  pointer-events: none;
}

.timer-card {
  width: 116px;
  height: 48px;
  flex: none;
}

.timer-value { font-size: 18px; }

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 5px 8px;
    height: auto;
    min-height: 72px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .brand-lockup { gap: 8px; }
  .brand-lockup { grid-column: 1; grid-row: 1; }
  .brand-subtitle {
    font-size: clamp(13px, 3.8vw, 18px);
    letter-spacing: -.4px;
  }
  .topbar-note {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    font-size: 10px;
  }
  .topbar-actions { grid-column: 2; grid-row: 1; gap: 7px; }
  .timer-card { width: 94px; height: 46px; }
  .timer-label { font-size: 7px; letter-spacing: .8px; }
  .timer-value { font-size: 17px; }
}

@media (max-width: 420px) {
  .topbar {
    min-height: 77px;
  }
  .brand-lockup {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .brand-subtitle { font-size: 13px; }
  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  .topbar-note {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    font-size: 9px;
  }
  .timer-card { width: 83px; height: 43px; }
  .timer-label { font-size: 6px; }
  .timer-value { font-size: 15px; }
}
