/* rectop 11020400: Record + Export live in the top bar, next to the Sound / Console tabs */
.top-rec{display:flex;align-items:center;gap:6px;margin-left:12px;flex:none}
.top-rec .btn{white-space:nowrap;gap:7px;min-height:36px}
.top-rec #rec-take{min-width:96px;justify-content:center}
.top-rec #bounce svg{width:15px;height:15px;flex:none}
.top-rec #rec-opts{position:relative;width:36px;height:36px}
.top-rec #rec-opts svg{width:17px;height:17px}
.rt-n{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--pink);color:#fff;font:700 10px/17px var(--body);text-align:center;box-sizing:border-box}
.rt-n[hidden]{display:none}
.rec-grid .span3{grid-column:1 / -1}
.rec-grid .rt-note{margin:0 0 2px}
.rec-card.rt-flash{animation:rtflash 1.2s ease-out 1}
@keyframes rtflash{0%{box-shadow:0 0 0 2px var(--sun)}100%{box-shadow:0 0 0 2px transparent}}
@media (prefers-reduced-motion:reduce){.rec-card.rt-flash{animation:none;outline:2px solid var(--sun)}}
/* desktop: the search button sits in the flow so it never floats over the tabs or Record / Export */
@media (min-width:1021px){.ux100 .topbar .ux-find{position:static;transform:none}}
@media (min-width:1021px) and (max-width:1380px){.topbar .brand-tag{display:none}}
.topbar .brand{flex:none}
@media (min-width:1021px) and (max-width:1120px){.topbar{gap:8px;padding:0 10px}.topbar .mode-btn{padding:0 12px}.topbar .mode-btn svg{display:none}.top-rec{margin-left:8px;gap:5px}.top-rec #rec-take{min-width:0;padding:0 11px}.top-rec #bounce{padding:0 11px}.topbar .top-actions{gap:6px}}
/* tablet + phone: two rows. Row 1 brand + actions, row 2 tabs + Record / Export */
@media (max-width:1020px){
  .topbar{height:auto;min-height:var(--topbar);display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand acts" "modes rec";align-items:center;gap:8px 10px;padding:8px 12px}
  .topbar .brand{grid-area:brand}
  .topbar .top-actions{grid-area:acts;margin-left:0;justify-self:end}
  .topbar .modes{grid-area:modes;margin-left:0;justify-self:start}
  .topbar .top-rec{grid-area:rec;margin-left:0;justify-self:end}
}
@media (max-width:640px){
  .topbar{padding:6px 10px;gap:6px 8px}
  .topbar .mode-btn{padding:0 10px}
  .top-rec{gap:5px}
  .top-rec #rec-take{min-width:0;padding:0 10px;gap:6px}
  .top-rec #bounce{padding:0 10px;gap:6px}
}
/* very narrow phones: Export keeps its icon and accessible name, the word goes visually hidden */
@media (max-width:379px){.top-rec #bounce .tr-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.top-rec #bounce{width:40px;padding:0;justify-content:center}}
@media (max-width:340px){.topbar{grid-template-areas:"brand acts" "modes modes" "rec rec"}.topbar .top-rec{justify-self:start}}
