/* Preserve the existing palette and font; section > group > tool are consistent. */
.side-top { align-items: flex-start; }
.side-brand { position: relative; align-items: flex-start; padding-right: 22px; }
.side-brand .dot { margin-top: 5px; }
.side-brand-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
#sideBrandName { font-size: 13px; font-weight: 700; line-height: 1.45; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
#sideBrandType { font-size: 11px; line-height: 1.45; color: var(--text-muted); }
.side-brand::after { content: '⌄'; position: absolute; right: 8px; top: 10px; color: var(--text-muted); }
.side-brand select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.side-brand:focus-within { outline: 2px solid var(--grad-2); outline-offset: 2px; }
.tool-grp > summary, .tool-grp-flat { font-size: 13.5px; font-weight: 700; line-height: 1.5; color: var(--text); }
.tool-grp-flat { padding: 8px 10px; }
.tool-sub .tool-label { min-width: 0; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.5; }
.tool-sub .tool-item { font-weight: 400; }
.tool-sub .tool-item[aria-current="true"] { font-weight: 700; color: var(--text); }
.tool-room { flex: none; }

/* Trial entry repairs: existing colors and typography, readable over photos. */
a.tool-item, a.card-cta { text-decoration: none; }
.agent-card.is-disabled > .badge,
.preset-card.has-media .preset-soon-badge {
  background: #07070f; color: #fff; border: 1px solid rgba(255,255,255,.55);
  opacity: 1; text-shadow: none; box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.cards-entry > div:first-child { flex: 1; min-width: 0; }
.cards-entry select { width: 100%; max-width: 100%; }
.cards-entry-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#step-3pro .step3-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
@media(max-width: 600px) {
  .cards-entry { align-items: stretch; flex-direction: column; }
  .cards-entry-actions .btn { flex: 1 1 140px; white-space: nowrap; padding-inline: 18px; }
  #step-3pro .step3-foot .btn { min-width: 0; width: 100%; }
  .ma-topbar { flex-wrap: wrap; gap: 12px; }
  .ma-topbar .topbar-left { flex: 1 0 100%; min-width: 0; }
  .ma-topbar .topbar-actions { flex: 1 0 100%; flex-wrap: wrap; justify-content: flex-start; gap: 8px 12px; }
  .ma-topbar .topbar-actions > * { flex-shrink: 0; white-space: nowrap; }
  .ma-topbar #quotaChip { max-width: none; }
}
