/* A separate, in-flow row: navigation and the chat composer retain their space. */
:root { --matching-strip-height: 42px; }
.matching-countdown {
  box-sizing: border-box;
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 3px 10px;
  width: 100%;
  height: var(--matching-strip-height);
  min-height: var(--matching-strip-height);
  padding: 7px max(16px, env(safe-area-inset-right)) 7px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--border, #e1d7d0);
  background: var(--surface, var(--bg, #fcfaf6));
  color: var(--text, #403236);
  font: 500 12px/1.5 var(--sans, sans-serif);
  letter-spacing: .01em;
}
.matching-countdown__digits {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent, #934761);
}
.matching-countdown__detail { color: inherit; font-weight: 400; }
.matching-countdown__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Chat owns the viewport; account for this row instead of pushing its input offscreen. */
body > .matching-countdown ~ .app { height: calc(100vh - var(--matching-strip-height)); height: calc(100dvh - var(--matching-strip-height)); }
@media (max-width: 760px) {
  :root { --matching-strip-height: 64px; }
  .matching-countdown { height: var(--matching-strip-height); align-content: center; gap: 2px 8px; }
  .matching-countdown__detail { width: 100%; text-align: right; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .matching-countdown, .matching-countdown * { animation: none !important; transition: none !important; }
}
