/*
 * Core: the base, the layout, the header and footer, the button set and every part more than one area of the site
 * draws. Every page loads it. What only some pages draw is in css/, loaded only on those pages (PageStylesheets.cs,
 * #303): a rule goes there when only those pages draw it.
 */

/*
 * Global base styles.
 * ---------------------------------------------------------------------------
 * Bootstrap's reboot sets the page font, colour and background through its own
 * --bs-body-* custom properties. Rather than fighting it with overrides, the
 * brand tokens are assigned INTO those properties: Bootstrap then themes every
 * component it ships (navbar, dropdown, buttons, forms) from the ÁLFAR QUEST
 * palette, and the administrator's colour settings in MainLayout - which
 * override the --aq-* tokens on :root - keep flowing through automatically.
 */
:root {
    --bs-body-bg: var(--aq-bg-100);
    --bs-body-color: var(--aq-text-100);
    --bs-body-font-family: var(--aq-font-secondary);
    --bs-heading-color: var(--aq-text-100);
    --bs-link-color: var(--aq-primary);
    --bs-link-hover-color: var(--aq-text-100);
    --bs-border-color: var(--aq-border);
    --bs-emphasis-color: var(--aq-text-100);
}

/* The edge of a control is --aq-border-strong (3:1, WCAG 1.4.11); --aq-border stays for dividers (A11Y-05). */
.form-control,
.form-select,
.form-check-input {
    border-color: var(--aq-border-strong);
}

/* Keeps the footer at the bottom on short pages instead of leaving a white
   gap below it, which is what the screenshot of an almost-empty page showed. */
html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Headings use the display font; body copy keeps the secondary font. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--aq-font-primary);
    letter-spacing: 0.01em;
}

/* The routed page content sits between the header and the footer and takes up
   whatever space is left. */
.site-main {
    flex: 1 0 auto;
}

/* "Skip to content" (WCAG 2.4.1, #289): out of sight until a keyboard focuses it, then the gilded button over the
   header. <main id="site-content" tabindex="-1"> is what it lands on, so the focus ring is not wanted there. */
.site-skip-link {
    position: fixed;
    top: var(--aq-space-2);
    left: var(--aq-space-2);
    z-index: 2000;
    transform: translateY(-300%);
}

.site-skip-link:focus,
.site-skip-link:focus-visible {
    transform: none;
}

#site-content:focus {
    outline: none;
}

/* Shared content wrapper for ordinary (non-homepage) pages. */
.page {
    max-width: var(--aq-content-width);
    padding: var(--aq-space-12) var(--aq-space-6);
    margin-inline: auto;
}

.page__heading {
    margin-block-end: var(--aq-space-4);
    font-size: var(--aq-text-3xl);
}

/* Pages that open straight on their content (05/11/2026): the big title and its description are gone, the h1 stays
   for screen readers (.visually-hidden), so the room kept above it for the title closes up. The selectors outrank the
   pages' scoped rules (.artists[b-...], .artists__filters[b-...]), which load after this file. */
section.page-top-compact.page-top-compact {
    padding-block-start: var(--aq-space-6);
}

.page-top-compact > .visually-hidden:first-child + * {
    margin-block-start: 0;
}

@media (max-width: 767.98px) {
    section.page-top-compact.page-top-compact {
        padding-block-start: var(--aq-space-4);
    }
}

.page__intro {
    max-width: 60ch;
    color: var(--aq-text-300);
    font-size: var(--aq-text-lg);
}

.contact-social a {
    display: inline-block;
    padding: var(--aq-space-2) var(--aq-space-6);
    border: 1px solid color-mix(in srgb, var(--aq-accent) 60%, transparent);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color var(--aq-transition);
}

.contact-social a:hover,
.contact-social a:focus-visible {
    background: color-mix(in srgb, var(--aq-accent) 15%, transparent);
}

/* Honest "nothing configured yet" state. The project never ships invented band
   copy, so an unconfigured page says so plainly. */
.empty-state {
    max-width: var(--aq-content-width);
    padding: var(--aq-space-16) var(--aq-space-6);
    margin-inline: auto;
    text-align: center;
}

.empty-state p {
    color: var(--aq-text-300);
}

/* Marks seeded sample copy and untranslated content so it can never be
   mistaken for the band's own words. */
.placeholder-note {
    display: inline-block;
    padding: var(--aq-space-1) var(--aq-space-3);
    border: 1px dashed var(--aq-border);
    border-radius: var(--aq-radius-sm);
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

/* Secondary heading used by the catalogue pages to separate groups, such as
   the permanent line-up from guest artists, or history from fiction. */
.page__subheading {
    margin-block: var(--aq-space-8) var(--aq-space-4);
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-2xl);
    font-weight: 700;
}

/* "Back to the listing" link at the foot of every detail page. */
.page__back {
    margin-block-start: var(--aq-space-8);
}

/* Shown only when a query has not resolved yet, which under static server
   rendering means the database is unreachable. */
.loading {
    padding: var(--aq-space-12) var(--aq-space-6);
    color: var(--aq-text-300);
    text-align: center;
}

/* ---- Catalogue listings --------------------------------------------------
   Releases, members, lore articles and merch all render as card grids. They
   share one auto-fitting grid so a listing never leaves a ragged last row,
   whatever the band publishes. Global, not component-scoped, because the
   cards are split across page and shared components. */
.release-list,
.member-list,
.lore-list,
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: var(--aq-space-6);
    padding: 0;
    list-style: none;
}

.release-card,
.member-card,
.lore-card,
.merch-card {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
    padding: var(--aq-space-4);
    background: var(--aq-bg-200);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
}

.release-card__link,
.member-card__link,
.lore-card__link {
    color: inherit;
    text-decoration: none;
}

.release-card__link:hover .release-card__title,
.release-card__link:focus-visible .release-card__title,
.member-card__link:hover .member-card__name,
.member-card__link:focus-visible .member-card__name,
.lore-card__link:hover .lore-card__title,
.lore-card__link:focus-visible .lore-card__title {
    color: var(--aq-primary);
}

.release-card__meta,
.member-card__role,
.merch-card__price,
.lore-card__badge {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-3);
    margin: 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.release-card__description,
.member-card__bio,
.lore-card__summary,
.merch-card__description {
    margin: 0;
    color: var(--aq-text-200);
    font-size: var(--aq-text-sm);
}

/* ---- Member cards --------------------------------------------------------- */
.member-card {
    gap: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--aq-shadow);
    transition:
        transform var(--aq-transition),
        border-color var(--aq-transition);
}

.member-card:hover,
.member-card:focus-within {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--aq-accent) 50%, transparent);
}

.member-card .member-card__portrait {
    border-radius: 0;
}

.member-card .member-card__portrait img {
    aspect-ratio: 4 / 5;
}

.member-card__name {
    margin: var(--aq-space-4) var(--aq-space-4) var(--aq-space-1);
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-xl);
    font-weight: 700;
}

.member-card .member-card__role {
    padding-inline: var(--aq-space-4);
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.member-card .member-card__bio {
    display: -webkit-box;
    margin-block-start: var(--aq-space-3);
    padding-inline: var(--aq-space-4);
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
}

.member-card > :last-child {
    margin-block-end: var(--aq-space-4);
}

/* ---- Lore cards ------------------------------------------------------------
   Image edge to edge, title in the display face; fiction keeps its purple
   edge and its "Fiction" label. */
.lore-card {
    gap: var(--aq-space-2);
    padding: 0 0 var(--aq-space-4);
    overflow: hidden;
    box-shadow: var(--aq-shadow);
    transition: transform var(--aq-transition);
}

.lore-card__title {
    margin: var(--aq-space-4) var(--aq-space-4) 0;
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-xl);
    font-weight: 700;
}

/* ---- Merch cards ----------------------------------------------------------- */
.merch-card .merch-card__price,
.merch-card .merch-card__description,
.merch-card .merch-card__cta {
    margin: 0;
    padding-inline: var(--aq-space-4);
}

.merch-card__cta a {
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    font-weight: 600;
    text-decoration: none;
}

/* A page that opens with a PageBanner already has its title; the content
   starts closer to the banner, which fades into it. */
.page--after-banner {
    padding-block-start: var(--aq-space-6);
}

/* ---- Release detail ------------------------------------------------------
   A banner of its own: the cover blurred into a backdrop, the sharp cover
   beside the title, then the tracklist with the credits alongside. */
.release-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--aq-header-height) + var(--aq-space-12)) var(--aq-space-6) var(--aq-space-12);
    background: var(--aq-bg-200);
}

.release-hero__backdrop .site-image,
.release-hero__backdrop img {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.release-hero__back {
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    text-decoration: none;
}

.release-hero__type {
    margin: 0;
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.release__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-4);
    margin: 0;
    color: var(--aq-text-300);
}

.release__streaming a {
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-2);
    padding: var(--aq-space-2) var(--aq-space-4);
    background: color-mix(in srgb, var(--aq-bg-100) 60%, transparent);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    text-decoration: none;
    transition: border-color var(--aq-transition), color var(--aq-transition);
}

.release__streaming a:hover,
.release__streaming a:focus-visible {
    border-color: var(--aq-accent);
    color: var(--aq-accent-light);
}

/* Numbered by the list itself (each item carries its track number), with the
   number styled as a gold marker. */
.tracklist {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-inline-start: 2.5rem;
    list-style: decimal-leading-zero;
}

/* ---- Press page (DECISIONS #79, #81, #121, #124) ------------------------- */
.press__file > :not(.press__preview) {
    margin-inline: var(--aq-space-4);
}

.press__title a {
    color: var(--aq-text-100);
    text-decoration: none;
}

.press__title a:hover,
.press__title a:focus-visible {
    color: var(--aq-accent-light);
}

/* ---- Support page (DECISIONS #78) ---------------------------------------- */
.release__press > :last-child,
.tracklist__lyrics-text > :last-child {
    margin-block-end: 0;
}

.lore__body > :first-child {
    margin-block-start: 0;
}

.member-card__bio > :last-child,
.member__bio > :last-child,
.member__background > :last-child,
.member__contributions > :last-child {
    margin-block-end: 0;
}

/* ---- Timeline -----------------------------------------------------------
   A single vertical rule with a dot for each event, as in the redesign. Band
   history gets a gold dot and fiction a purple one - but the kind label on
   every event is what carries the meaning, never the colour alone. */
.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-8);
    margin: 0;
    padding-inline-start: 2.5rem;
    border-inline-start: 2px solid var(--aq-border);
    list-style: none;
}

.timeline__date {
    margin: 0;
    color: var(--aq-accent);
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-lg);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.timeline__title {
    margin-block: var(--aq-space-1) var(--aq-space-2);
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-xl);
    font-weight: 700;
}

.timeline__title a {
    color: var(--aq-text-100);
    text-decoration: none;
}

.timeline__title a:hover,
.timeline__title a:focus-visible {
    color: var(--aq-accent-light);
}

.timeline__image {
    max-width: 32rem;
    margin-block: var(--aq-space-3);
}

.timeline__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-3);
    margin: 0;
    font-size: var(--aq-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.timeline__kind,
.lore__badge {
    color: var(--aq-primary);
    font-weight: 600;
}

.timeline__description {
    color: var(--aq-text-200);
}

.timeline__description > :last-child {
    margin-block-end: 0;
}

/* ---- History navigation (DECISIONS #71) --------------------------------- */

/* Real history / fiction / both. Plain links, so they work without script
   and the current one is marked with aria-current rather than colour alone. */
.history-filter,
.timeline-years {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
    margin-block: var(--aq-space-4);
}

.history-filter__option,
.timeline-years a {
    padding: var(--aq-space-1) var(--aq-space-3);
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
    text-decoration: none;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
}

.history-filter__option:hover,
.history-filter__option:focus-visible,
.timeline-years a:hover,
.timeline-years a:focus-visible {
    color: var(--aq-accent-light);
    border-color: var(--aq-accent);
}

.timeline__year {
    margin-block: var(--aq-space-8) var(--aq-space-4);
    color: var(--aq-accent-light);
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-2xl);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.timeline__link-kind {
    color: var(--aq-text-300);
    margin-inline-end: var(--aq-space-1);
}

.admin-panel p {
    color: var(--aq-text-300);
}

/* The 70ch measure above is for prose. A panel wrapping a listing table needs
   the full width, or the reorder column wraps onto its own line. */
.admin-panel:has(.admin-table) {
    max-width: none;
}

.admin-table__actions form {
    margin: 0;
}

/* Keeps the parent dropdown from stretching the Nesting column to the width of
   its longest option, which would squeeze the Actions column off narrow
   screens. */
.admin-table__nest select {
  min-width: 8rem;
  max-width: 12rem;
}

/* ---- Admin redesign (DECISIONS #90) -------------------------------------- */

/* The admin's Bootstrap buttons are drawn as the site's button set: see "The button set" below (#304). */
.admin-shell .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-2);
}

/* Shown only once admin.js has run, so it never appears as a dead field. */
html.admin-js .admin-sidebar__filter {
    display: flex;
}

.admin-page-header__description,
.admin-page-header__text p {
    max-width: 70ch;
    margin: 0 0 var(--aq-space-2);
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.row-menu__panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 13rem;
    width: max-content;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: var(--aq-space-1);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    background: var(--aq-bg-100);
    box-shadow: var(--aq-shadow);
    white-space: normal;
}

/* Every action inside reads as a menu item, whatever it was before. */
.row-menu__panel > form,
.row-menu__panel > .confirm-delete {
    margin: 0;
}

.row-menu__panel .btn,
.row-menu__panel > a,
.row-menu__panel .confirm-delete__toggle {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: var(--aq-space-2) var(--aq-space-3);
    border: 0;
    border-radius: var(--aq-radius-sm);
    background: transparent;
    box-shadow: none;
    color: var(--aq-text-100);
    font-size: var(--aq-text-sm);
    font-weight: 500;
    letter-spacing: normal;
    text-align: start;
    text-decoration: none;
    text-transform: none;
}

.row-menu__panel .btn:hover,
.row-menu__panel > a:hover,
.row-menu__panel .confirm-delete__toggle:hover {
    background: rgb(255 255 255 / 6%);
}

/* Dashboard: attention list beside the public-site overview. */
.dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    gap: var(--aq-space-6);
    align-items: start;
}

.dashboard .admin-panel {
    max-width: none;
    margin: 0;
}

@media (width < 992px) {
    .dashboard {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (width < 768px) {
    /* Long values (URLs, slugs, badges) wrap inside the card instead of pushing it past the edge. */
    .admin-table td {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-table td > * {
        min-width: 0;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ---- Fan pages (DECISIONS #83) -------------------------------------------- */
.fan-page {
    max-width: 52rem;
}

.fan-admin__filters .form-control {
    flex: 1 1 14rem;
}

/* ---- Privacy policy (DECISIONS #335; Figma page 40, B1 and M1) ---- */
.privacy__summary ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--aq-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.privacy__toc a {
    display: flex;
    gap: var(--aq-space-2);
    color: var(--aq-text-200);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    text-decoration: none;
}

.privacy__toc a:hover {
    color: var(--aq-text-100);
}

@media (width < 700px) {
    .privacy__toc a {
        padding: 0.35rem 0.75rem;
        border: 1px solid var(--aq-border);
        border-radius: var(--aq-radius-pill);
        font-size: var(--aq-text-xs);
    }
}

/* ---- Song page (DECISIONS #88; Figma "Song · Into the Crystal Deep") ---- */
.song__jump a {
    color: var(--aq-text-300);
    text-decoration: none;
}

.song__jump a:hover,
.song__jump a:focus-visible {
    color: var(--aq-accent-light);
}

.song__section--alt {
    background: var(--aq-bg-200);
}

.song__prose {
    font-family: var(--aq-font-secondary);
    font-size: var(--aq-text-lg);
    line-height: 1.75;
    color: var(--aq-text-100);
}

.song__prose a {
    color: var(--aq-accent-light);
}

.song__chapter {
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aq-accent-light);
    text-decoration: none;
}

.song__step {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-1);
    padding: var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-100);
}

.song__step-date {
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aq-accent);
}

.song__step-title {
    font-size: var(--aq-text-sm);
    color: var(--aq-text-100);
}

.song__quote {
    margin: 0;
    padding-inline-start: var(--aq-space-6);
    border-inline-start: 3px solid var(--aq-accent);
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-xl);
    font-variant: small-caps;
    color: var(--aq-accent-light);
}

.song__lyrics {
    font-family: var(--aq-font-secondary);
    font-size: var(--aq-text-lg);
    line-height: 1.8;
    color: var(--aq-text-200);
}

.song__neighbours {
    display: flex;
    justify-content: space-between;
    gap: var(--aq-space-6);
    padding: var(--aq-space-8) clamp(1rem, 5vw, 4rem);
    background: var(--aq-bg-200);
}

.song__neighbour-label {
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aq-accent);
}

.song__neighbour-title {
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-xl);
    font-variant: small-caps;
    color: var(--aq-text-100);
}

.tracklist__title a {
    color: inherit;
    text-decoration: none;
}

.tracklist__title a:hover,
.tracklist__title a:focus-visible {
    color: var(--aq-accent-light);
    text-decoration: underline;
}

/* ---- History & Lore v2 (DECISIONS #88; Figma "History & Lore v2") ---- */
.history-switch a {
    padding: var(--aq-space-2) var(--aq-space-4);
    border-radius: var(--aq-radius-pill);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    font-weight: 500;
    color: var(--aq-text-100);
    text-decoration: none;
}

.history-switch a:hover,
.history-switch a:focus-visible {
    background: var(--aq-accent);
    color: var(--aq-bg-100);
}

/* ==========================================================================
   The button set (DECISIONS #97; usability audit UI-02, #304). One set for the whole site, documented in
   docs/brand-reference/DESIGN-TOKENS.md ("Buttons"):
     btn-gold     the main action: the accent, filled, with its glow
     btn-outline  a second action: the accent's edge on a clear ground
     btn-ghost    a quiet action that reads as a link (Remove, Leave, Withdraw…)
   and three modifiers that go on any of them: btn--small, btn--wide (the full width), btn--danger (deletes,
   leaves, takes down). Bootstrap's .btn-primary / .btn-outline-light / .btn-sm, which the admin is built on, are
   drawn as btn-gold / btn-outline / btn--small just below. Icon buttons, the radio's round controls and menu
   triggers are their own controls; anything else uses this set, not a new class (ButtonSystemTests).
   ========================================================================== */
.btn-gold,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--aq-space-2);
    padding: var(--aq-space-3) var(--aq-space-6);
    border-radius: var(--aq-radius-pill);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: opacity var(--aq-transition), background var(--aq-transition);
}

.btn-gold {
    background: var(--aq-accent);
    border: 0;
    box-shadow: var(--aq-accent-glow);
    color: var(--aq-bg-100);
}

.btn-gold:hover,
.btn-gold:focus-visible {
    opacity: 0.88;
    color: var(--aq-bg-100);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--aq-accent);
    color: var(--aq-accent-light);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: color-mix(in srgb, var(--aq-accent) 12%, transparent);
    color: var(--aq-accent-light);
}

/* The account's text buttons were the first of these (account__link-button): no box, the readable accent, underlined. */
.btn-ghost {
    padding: 0;
    background: none;
    border: 0;
    color: var(--aq-accent-light);
    text-decoration: underline;
    cursor: pointer;
}

.btn--wide {
    width: 100%;
}

.btn--small {
    padding: var(--aq-space-2) var(--aq-space-4);
    font-size: var(--aq-text-xs);
}

.btn-gold.btn--danger {
    background: var(--aq-danger);
    box-shadow: none;
    color: var(--aq-text-100);
}

.btn-outline.btn--danger {
    border-color: var(--aq-danger-edge);
    color: var(--aq-danger-text);
}

.btn-outline.btn--danger:hover,
.btn-outline.btn--danger:focus-visible {
    background: color-mix(in srgb, var(--aq-danger) 18%, transparent);
    color: var(--aq-danger-text);
}

.btn-ghost.btn--danger {
    color: var(--aq-danger-text);
}

/* --- Comments --------------------------------------------------------------- */
.comments {
    padding: var(--aq-space-16) var(--aq-space-4);
}

.comments__feedback {
    margin: 0 0 var(--aq-space-6);
    padding: var(--aq-space-3) var(--aq-space-4);
    background: color-mix(in srgb, var(--aq-accent) 10%, var(--aq-bg-200));
    border: 1px solid color-mix(in srgb, var(--aq-accent) 40%, transparent);
    border-radius: var(--aq-radius);
    font-size: var(--aq-text-sm);
}

.comments__feedback--error {
    background: color-mix(in srgb, #c0392b 14%, var(--aq-bg-200));
    border-color: color-mix(in srgb, #c0392b 55%, transparent);
}

.comments__invite,
.comments__composer {
    margin-bottom: var(--aq-space-8);
    padding: var(--aq-space-6);
    background: var(--aq-bg-200);
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius-lg);
}

.comments__invite {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-4);
}

.comments__invite-link {
    color: var(--aq-accent-light);
    font-size: var(--aq-text-sm);
}

.comments__composer-main {
    flex: 1;
    min-width: 0;
}

.comments__as {
    display: block;
    margin-bottom: var(--aq-space-2);
    color: var(--aq-text-200);
    font-size: var(--aq-text-sm);
}

.comments__as a {
    margin-left: var(--aq-space-2);
    color: var(--aq-accent-light);
}

.comments textarea {
    width: 100%;
    padding: var(--aq-space-3) var(--aq-space-4);
    background: var(--aq-bg-100);
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius);
    color: var(--aq-text-100);
    font: inherit;
    resize: vertical;
}

.comments textarea:focus {
    outline: 2px solid var(--aq-accent);
    outline-offset: 1px;
}

.comments__composer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--aq-space-4);
    margin-top: var(--aq-space-3);
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.comment {
    display: flex;
    gap: var(--aq-space-4);
    scroll-margin-top: calc(var(--aq-header-height) + var(--aq-space-4));
}

/* The comment a phone notification or a bell link names (js/comment-target.js, DECISIONS #331): the chat's gold glow. */
.comment.is-flash {
    border-radius: var(--aq-radius);
    animation: dm-flash 2.4s ease-out;
}

.comment__avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--aq-accent);
    border-radius: 50%;
    color: var(--aq-accent-light);
    font-family: var(--aq-font-display);
    font-weight: 700;
}

.comment__avatar--fan,
.comment__avatar--band {
    background: var(--aq-accent);
    color: var(--aq-bg-100);
}

.comment__main {
    flex: 1;
    min-width: 0;
}

.comment__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--aq-space-2);
    margin: 0 0 var(--aq-space-1);
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.comment__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--aq-space-4);
    margin-top: var(--aq-space-2);
    font-size: var(--aq-text-xs);
}

/* The chat's reactions on a comment (DECISIONS #228): the chips, then "☺+ React", on one line above
   the other actions. The bar opens above the line; js/comment-reactions.js places it on the screen. */
.comment__feel {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-1-5);
    margin-top: var(--aq-space-2);
}

.comment__feel .dm-reactions {
    flex-basis: auto;
    margin: 0;
}

.comment__feel .dm-reactions form {
    margin: 0;
}

.comment__react .dm-react__button {
    display: inline-flex;
    gap: var(--aq-space-1);
    align-items: center;
    padding: 3px 10px;
    border: 1px solid var(--aq-border);
    color: var(--aq-text-200);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.comment:has(.comment__react[open]) {
    position: relative;
    z-index: 5;
}

.comment__like[aria-pressed="true"] {
    color: #e5484d;
}

.comment__like:hover,
.comment__link:hover,
.comment__reply summary:hover {
    color: var(--aq-accent-light);
}

.comment__reply[open] form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--aq-space-2);
    margin-top: var(--aq-space-2);
}

@media (max-width: 575.98px) {
    .comments__composer .comment__avatar {
        display: none;
    }

}

/* ==========================================================================
   The book reader (DECISIONS #98; Figma "Reader · Desktop", "Reader gate",
   "Mobile reader")
   ========================================================================== */
.reader-main {
    min-height: 100vh;
    background: var(--aq-bg-100);
}

.reader {
    --reader-size: 1.0625rem;
    --reader-own: #e5484d;
}

/* --- Bar --------------------------------------------------------------------- */
.reader-bar__title strong {
    font-size: var(--aq-text-xs);
    font-weight: 500;
}

.reader-editions a,
.reader-gate__editions a {
    padding: var(--aq-space-1) var(--aq-space-3);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-100);
    font-size: var(--aq-text-sm);
    text-decoration: none;
}

.reader-editions a[aria-current="page"],
.reader-gate__editions a[aria-current="page"] {
    background: var(--aq-accent);
    color: var(--aq-bg-100);
    font-weight: 600;
}

/* --- Chapter list ------------------------------------------------------------- */
.reader-toc__card .reader-eyebrow {
    margin: 0;
}

/* As a button it plays the song (DECISIONS #111). */
button.reader-listen {
    width: 100%;
    border: 1px solid transparent;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.reader-listen .reader-eyebrow {
    margin: 0;
}

/* --- The text ------------------------------------------------------------------- */
.reader .mark {
    padding: 0;
    background: none;
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    cursor: pointer;
}

.reader .mark--community {
    text-decoration-color: var(--aq-accent);
    color: var(--aq-accent-light);
}

.reader .mark--own {
    text-decoration-color: var(--reader-own);
    color: #ff8f93;
}

.reader--quiet .mark--community {
    color: inherit;
    text-decoration: none;
    cursor: text;
}

/* --- Selection toolbar ------------------------------------------------------------- */
.reader-toolbar button[hidden] {
    display: none;
}

/* --- Notes panel ----------------------------------------------------------------- */
.reader-note__action.is-liked {
    color: #e5484d;
}

.reader-compose textarea {
    width: 100%;
    padding: var(--aq-space-3);
    background: var(--aq-bg-100);
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius);
    color: var(--aq-text-100);
    font: inherit;
}

.reader-compose__visibility input:checked + span {
    background: var(--aq-accent);
    border-color: var(--aq-accent);
    color: var(--aq-bg-100);
}

/* --- Narrower screens ------------------------------------------------------------- */
@media (max-width: 899.98px) {
    .reader-editions a {
        padding: var(--aq-space-1) var(--aq-space-2);
        font-size: var(--aq-text-xs);
    }
}

/* ==========================================================================
   The lore quiz (DECISIONS #100; Figma "Quiz hub", "Quiz question") */
.quiz-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: var(--aq-space-4);
    margin: var(--aq-space-6) 0;
    padding: 0;
    list-style: none;
}

.quiz-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--aq-bg-200);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    color: var(--aq-text-100);
    text-decoration: none;
    transition: border-color var(--aq-transition), transform var(--aq-transition);
}

.quiz-card:hover,
.quiz-card:focus-visible {
    border-color: var(--aq-accent);
    transform: translateY(-2px);
}

.quiz-card__image {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.quiz-card__body {
    display: grid;
    gap: var(--aq-space-1);
    padding: var(--aq-space-4);
}

.quiz-card__eyebrow {
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
}

.quiz-card__title {
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-lg);
}

.quiz-card__meta {
    color: var(--aq-text-200);
    font-size: var(--aq-text-xs);
}

/* --- Playing ------------------------------------------------------------------ */
.quiz-play__footer .quiz-play__score {
    margin: 0;
}

button.quiz-option {
    cursor: pointer;
    transition: border-color var(--aq-transition);
}

/* --- The profile picture (DECISIONS #105) --------------------------------------- */

/* A fan's picture beside comments and book notes. */
img.comment__avatar,
img.reader-note__avatar {
    padding: 0;
    object-fit: cover;
}

/* ==========================================================================
   History & Lore, as in Figma "History & Lore v2 · Desktop" (DECISIONS #110)
   ========================================================================== */

/* The first way in is shown chosen, as in the design. */
.history-switch a:first-child {
    background: var(--aq-accent);
    color: var(--aq-bg-100);
}

/* A milestone: date | marker and rule | text, then its chips under the text. */
.journey {
    width: 100%;
    max-width: 55rem;
}

.chip {
    display: inline-block;
    padding: var(--aq-space-2) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.125rem;
    text-decoration: none;
}

.chip:hover,
.chip:focus-visible {
    border-color: var(--aq-accent);
    color: var(--aq-accent-light);
}

#saga .character-card__body {
    gap: var(--aq-space-1);
    padding: var(--aq-space-4);
}

/* The service's mark inside its pill (DECISIONS #112). */
.platform-icon {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-4);
}

/* The cookie question for Google Analytics and the pixel (DECISIONS #119). */
.cookie-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-3) var(--aq-space-6);
    align-items: center;
    justify-content: center;
    padding: var(--aq-space-4);
    background: var(--aq-bg-100);
    border-top: 1px solid var(--aq-accent);
    box-shadow: 0 -8px 24px rgb(0 0 0 / 0.4);
}

.cookie-banner p {
    margin: 0;
    max-width: 40rem;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.cookie-banner form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
}

.press-filter a {
    padding: var(--aq-space-2) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: border-color var(--aq-transition), color var(--aq-transition);
}

.press-filter a:hover,
.press-filter a:focus-visible {
    border-color: var(--aq-accent);
    color: var(--aq-accent-light);
}

.press-filter a[aria-current="true"] {
    background: var(--aq-accent);
    border-color: var(--aq-accent);
    color: var(--aq-bg-100);
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--aq-radius-lg);
    background: #000;
}

.video-player img,
.video-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-player img {
    object-fit: cover;
}

.video-player__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.45));
    border: 0;
    color: #fff;
    cursor: pointer;
}

.video-player__play span {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--aq-accent);
    color: var(--aq-bg-100);
    font-size: 1.75rem;
    padding-inline-start: 0.3rem;
    box-shadow: 0 0 32px rgb(201 162 39 / 0.45);
}

.video-player__play:hover span,
.video-player__play:focus-visible span {
    transform: scale(1.06);
}

.press__video-meta a {
    color: inherit;
}

.press-item__title a {
    color: var(--aq-text-100);
    text-decoration: none;
}

.press-item__title a:hover,
.press-item__title a:focus-visible {
    color: var(--aq-accent-light);
}

.press-contact a {
    color: var(--aq-text-100);
}

/* ==========================================================================
   Maintenance mode (DECISIONS #129; Figma "Maintenance · Desktop/Mobile",
   "Admin · Maintenance mode")
   ========================================================================== */
.maintenance-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--aq-space-4) var(--aq-space-6);
}

.maintenance-header__logo img {
    width: auto;
    height: 3.5rem;
}

.maintenance-main {
    display: grid;
    min-height: calc(100svh - 5.5rem);
    place-items: center;
    padding: 7rem var(--aq-space-6) var(--aq-space-16);
    background:
        radial-gradient(ellipse 60% 45% at 50% 0%, color-mix(in srgb, #8a1c2b 45%, transparent), transparent 70%),
        radial-gradient(ellipse 80% 60% at 50% 60%, color-mix(in srgb, #8a1c2b 18%, transparent), transparent 75%),
        var(--aq-bg-100);
}

.maintenance {
    max-width: 44rem;
    text-align: center;
}

.maintenance__eyebrow {
    margin: 0 0 var(--aq-space-4);
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
}

.maintenance__title {
    margin: 0 0 var(--aq-space-4);
    font-family: var(--aq-font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
}

.maintenance__message {
    margin: 0 auto var(--aq-space-3);
    max-width: 34rem;
    color: var(--aq-text-200);
    font-size: var(--aq-text-lg);
}

.maintenance__back-by {
    margin: 0 0 var(--aq-space-6);
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
}

.maintenance__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--aq-space-4);
}

@media (max-width: 575.98px) {
    .maintenance__actions > a {
        width: 100%;
    }
}

.maintenance-footer {
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: center;
    justify-content: space-between;
    gap: var(--aq-space-4);
    padding: var(--aq-space-6);
    border-top: 1px solid var(--aq-border);
    background: var(--aq-bg-200);
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.maintenance-footer p {
    margin: 0;
}

.maintenance-footer__links {
    display: flex;
    gap: var(--aq-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.maintenance-footer__links svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 575.98px) {
    .maintenance-footer {
        justify-content: center;
        text-align: center;
    }
}

/* The bar staff see on the public site while it is closed. At the bottom
   of the window: the header sits over the page banners at the top. */
.maintenance-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 1040;
    padding: var(--aq-space-2) var(--aq-space-4);
    box-shadow: 0 -8px 24px rgb(0 0 0 / 40%);
    background: var(--aq-accent);
    color: var(--aq-bg-100);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    font-weight: 600;
    text-align: center;
}

.maintenance-bar a {
    margin-left: var(--aq-space-2);
    color: inherit;
    text-decoration: underline;
}

.maintenance-switch .form-check-input {
    order: 2;
    width: 3rem;
    height: 1.6rem;
    margin: 0;
    cursor: pointer;
}

/* ==========================================================================
   Verified badges (DECISIONS #130; Figma "Member badge", "Community comment")
   ========================================================================== */
.member-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px var(--aq-space-2);
    border: 1px solid currentColor;
    border-radius: var(--aq-radius-pill);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.member-badge--band {
    background: color-mix(in srgb, var(--aq-accent) 16%, transparent);
    color: var(--aq-accent-light);
}

.member-badge--crew {
    background: color-mix(in srgb, var(--aq-primary) 18%, transparent);
    color: color-mix(in srgb, var(--aq-primary) 55%, white);
}

.member-badge--guest {
    background: rgb(199 204 219 / 12%);
    color: #c7ccdb;
}

/* A verified artist (DECISIONS #176): the gold edge of the artist badge, no wash. */
.member-badge--artist {
    border-color: var(--aq-accent);
    background: transparent;
    color: var(--aq-accent-light);
}

/* ==========================================================================
   Public profiles (DECISIONS #131; Figma "Profile · Band member")
   ========================================================================== */
.profile__cover {
    position: relative;
    height: 220px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 90% at 50% 0%, color-mix(in srgb, #8a1c2b 45%, transparent), transparent 75%),
        var(--aq-bg-200);
}

/* The band's art, fading into the page (Figma "Cover"). */
.profile__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.profile__identity {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 28px;
    max-width: 1128px;
    margin: -64px auto 0;
    padding: 0 var(--aq-space-6);
}

.profile__avatar {
    display: grid;
    flex: none;
    width: 148px;
    height: 148px;
    place-items: center;
    border: 3px solid var(--aq-border);
    border-radius: 50%;
    background: color-mix(in srgb, var(--aq-bg-200) 80%, var(--aq-border));
    object-fit: cover;
    color: var(--aq-text-100);
    font-family: var(--aq-font-display);
    font-size: 3rem;
}

.profile__who {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: var(--aq-space-2);
}

.profile__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-3);
    margin: 0;
    font-family: var(--aq-font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
}

.profile__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.profile__stats a {
    color: inherit;
    text-decoration: none;
}

.profile__stats strong {
    margin-inline-end: var(--aq-space-1-5);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.profile__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-3);
    padding-bottom: var(--aq-space-2);
}

.profile__notice {
    max-width: 1128px;
    margin: var(--aq-space-4) auto 0;
    padding: 0 var(--aq-space-6);
    color: var(--aq-accent-light);
}

/* ---- Tabs (Figma "Tabs": chips, the current one filled gold) -------------- */
.profile__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1128px;
    margin: 0 auto;
    padding: var(--aq-space-8) var(--aq-space-6) var(--aq-space-2);
    scroll-margin-top: calc(var(--aq-header-height) + var(--aq-space-4));
}

.profile__tab:hover,
.profile__tab:focus-visible {
    border-color: var(--aq-accent);
    color: var(--aq-text-100);
}

.profile__tab.is-current {
    border-color: var(--aq-accent);
    background: var(--aq-accent);
    color: var(--aq-bg-100);
}

/* ---- Feed and side panel --------------------------------------------------- */
.profile__body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--aq-space-8);
    max-width: 1128px;
    margin: 0 auto;
    padding: var(--aq-space-4) var(--aq-space-6) var(--aq-space-16);
}

.profile__feed {
    display: flex;
    flex: 1 1 520px;
    flex-direction: column;
    gap: var(--aq-space-4);
    min-width: 0;
}

.profile__side {
    display: flex;
    flex: 0 1 340px;
    flex-direction: column;
    gap: var(--aq-space-4);
}

.profile__section-title {
    margin: 0;
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 20px;
    text-transform: uppercase;
}

.profile__empty {
    color: var(--aq-text-300);
}

.profile__empty a,
.profile-card__text a {
    color: var(--aq-accent-light);
}

.profile-activity,
.profile-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: var(--aq-space-5);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
}

.profile-card__text {
    margin: 0;
    font-size: var(--aq-text-sm);
    line-height: 22px;
}

.profile-activity__eyebrow {
    margin: 0;
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 20px;
}

.profile-activity__thumb {
    display: grid;
    flex: none;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: var(--aq-radius);
    background: color-mix(in srgb, var(--aq-bg-200) 80%, var(--aq-border));
    object-fit: cover;
}

.profile-activity__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--aq-space-1-5);
    min-width: 0;
}

a.profile-activity__title:hover,
a.profile-activity__title:focus-visible {
    color: var(--aq-accent-light);
}

/* Followers in the side panel: picture, name, and how the viewer stands. */
.profile-people {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-people__avatar {
    display: grid;
    flex: none;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--aq-bg-200) 80%, var(--aq-border));
    object-fit: cover;
    color: var(--aq-text-200);
    font-family: var(--aq-font-display);
    font-size: 0.85rem;
}

.profile-people__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--aq-text-100);
    font-size: var(--aq-text-sm);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- The profile cards (docs/profile-cards-plan.md, phase 2; Figma page 15) --- */
.profile-bands__logo,
.profile-row__logo {
    display: grid;
    flex: none;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--aq-border);
    background: color-mix(in srgb, var(--aq-bg-200) 80%, var(--aq-border));
    color: var(--aq-accent-light);
    font-family: var(--aq-font-display);
    font-weight: 700;
}

.profile-bands__logo {
    width: 40px;
    height: 40px;
    border-radius: var(--aq-radius-md);
    font-size: 1.1rem;
}

.profile-bands__logo img,
.profile-row__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-bands__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

/* On wider screens the new cards live in the side; the carousel is for phones (Figma M0). */
.profile-highlights {
    display: none;
}

/* A card's list in the middle column (Figma E1, E2, M1, M2). */
.profile-panel {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-4);
}

.profile-panel__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px;
}

.profile-panel__search input {
    width: 100%;
    padding: var(--aq-space-3) 18px var(--aq-space-3) 46px;
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius-pill);
    background: color-mix(in srgb, var(--aq-bg-200) 80%, var(--aq-border))
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23b4bdd4' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E")
        no-repeat 18px center / 18px;
    color: var(--aq-text-100);
    font: inherit;
    font-size: var(--aq-text-sm);
}

.profile-panel__search input:focus-visible {
    border-color: var(--aq-accent);
    outline: 2px solid var(--aq-accent);
    outline-offset: 2px;
}

.profile-panel__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-row {
    display: flex;
    gap: var(--aq-space-4);
    align-items: center;
    padding: var(--aq-space-4) 0;
    border-bottom: 1px solid var(--aq-border);
}

.profile-row:last-child {
    border-bottom: 0;
}

.profile-row__avatar {
    display: grid;
    flex: none;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--aq-bg-200) 80%, var(--aq-border));
    object-fit: cover;
    color: var(--aq-text-200);
    font-family: var(--aq-font-display);
}

.profile-row__logo {
    width: 56px;
    height: 56px;
    border-radius: var(--aq-radius-md);
    font-size: 1.4rem;
}

.profile-row__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.profile-row__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    text-decoration: none;
}

.profile-row__name a {
    color: inherit;
    text-decoration: none;
}

a.profile-row__name:hover,
a.profile-row__name:focus-visible,
.profile-row__name a:hover,
.profile-row__name a:focus-visible {
    color: var(--aq-accent-light);
}

.profile-panel__more {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-4);
    align-items: center;
    margin: 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

@media (width < 768px) {
    .profile-highlights {
        display: flex;
        flex-direction: column;
        gap: var(--aq-space-3);
        padding: var(--aq-space-4) var(--aq-space-6) 0;
    }

    /* A list opened on a phone takes the whole screen (Figma M1, M2). */
    .profile--panel .profile__cover,
    .profile--panel .profile__identity,
    .profile--panel .profile__tabs,
    .profile--panel .profile__side {
        display: none;
    }

    .profile-row__avatar,
    .profile-row__logo {
        width: 40px;
        height: 40px;
    }
}

.profile-achievements__stat strong {
    display: block;
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* On a phone the identity stacks, centred, like Figma "Profile · Band member · Mobile". */
@media (width < 768px) {
    .profile__cover {
        height: 150px;
    }

    .profile__identity {
        flex-direction: column;
        align-items: center;
        gap: var(--aq-space-4);
        margin-top: -56px;
        text-align: center;
    }

    .profile__avatar {
        width: 112px;
        height: 112px;
    }

    .profile__who {
        flex: none;
        align-items: center;
    }

    .profile__side {
        flex-basis: 100%;
    }
}

.follow-list__tabs a {
    color: var(--aq-text-300);
    text-decoration: none;
}

.follow-list__tabs a.is-current {
    color: var(--aq-accent-light);
    font-weight: 600;
}

.follow-list__avatar {
    display: grid;
    width: 44px;
    height: 44px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--aq-bg-300);
    object-fit: cover;
}

.follow-list__name {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2);
}

a.comment__author {
    color: inherit;
}

/* ==========================================================================
   Notifications and the like - a heart since DECISIONS #186 (#132) */
.notifications {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--aq-space-12) var(--aq-space-6);
}

.notifications__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notification {
    display: flex;
    gap: var(--aq-space-3);
    padding: var(--aq-space-3) var(--aq-space-4);
    border-bottom: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
}

.notification--unread {
    background: color-mix(in srgb, var(--aq-primary) 12%, transparent);
}

.notification__avatar {
    display: grid;
    width: 40px;
    height: 40px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--aq-bg-300);
    object-fit: cover;
}

.notification__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-1);
    margin: 0;
}

.notification__actor {
    color: var(--aq-text-100);
    font-weight: 600;
}

.notification__snippet {
    margin: var(--aq-space-1) 0 0;
    color: var(--aq-text-200);
    font-size: var(--aq-text-sm);
}

.notification__when {
    margin: var(--aq-space-1) 0 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.notification__main {
    flex: 1;
    min-width: 0;
}

.notification .follow-button {
    align-self: center;
}

/* Official app updates (docs/chat-link-previews-and-app-updates-plan.md, phase 2; Figma page 38, "Notification · App update"):
   "Official · when · View Update" under the words, and the unread dot. */
.notification--app-update {
    align-items: center;
}

.notification__avatar--official {
    border: 1.5px solid var(--aq-accent);
}

.notification__title {
    color: var(--aq-text-100);
    text-decoration: none;
}

a.notification__title:hover,
a.notification__title:focus-visible {
    text-decoration: underline;
}

.notification__snippet--plain {
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-1-5);
}

.notification__official {
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-weight: 500;
}

.notification__action {
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.notification__action:hover,
.notification__action:focus-visible {
    color: var(--aq-text-100);
    text-decoration: underline;
}

.notification__dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--aq-primary);
}

/* The compact lines (Carlos, 06/11/2026: Figma page 07, node 102:275), with Notifications__Dropdown: avatar 36, words 14/22
   in two lines at most, one line of snippet, the time at 11px, a dot for what is new. The bell's dropdown uses them too. */
.notifications--compact > .notification {
    position: relative;
    align-items: center;
    gap: var(--aq-space-3);
    padding: var(--aq-space-3) 18px;
    border-bottom: 0;
    border-radius: 0;
}

.notifications--compact > .notification--unread {
    background: color-mix(in srgb, var(--aq-primary) 10%, transparent);
}

.notifications--compact > .notification--unread::after {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--aq-primary);
    content: "";
}

.notifications--compact .notification__dot {
    display: none;
}

.notifications--compact .notification__avatar {
    width: 36px;
    height: 36px;
}

.notifications--compact .notification__line {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 14px;
    line-height: 22px;
}

.notifications--compact .notification__line > * + * {
    margin-left: var(--aq-space-1);
}

.notifications--compact .notification__snippet {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    font-size: 13px;
}

.notifications--compact .notification__when {
    margin-top: 0;
    font-size: 11px;
    line-height: 22px;
}

/* The bell's dropdown (Figma page 07, 102:275): over the page under the bell, on a computer. */
.notif-dropdown {
    position: fixed;
    z-index: 1060;
    display: flex;
    width: 400px;
    max-width: calc(100vw - 24px);
    max-height: min(560px, calc(100vh - 96px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    box-shadow: var(--aq-shadow);
}

.notif-dropdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--aq-space-3);
    padding: 14px 18px;
}

.notif-dropdown__head strong {
    font-family: var(--aq-font-primary);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.notif-dropdown__mark {
    padding: 0;
    border: 0;
    background: none;
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: 12px;
    font-weight: 500;
}

.notif-dropdown .notifications__list {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notif-dropdown__note {
    padding: var(--aq-space-3) 18px;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.notif-dropdown__foot {
    padding: var(--aq-space-3) 18px;
    border-top: 1px solid var(--aq-border);
    font-family: var(--aq-font-primary);
    font-size: 12px;
    text-align: center;
}

.notif-dropdown__foot a {
    color: var(--aq-accent-light);
    text-decoration: none;
}

.notifications__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--aq-space-3);
}

.notifications__people,
.follow-list__more a {
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
}

/* ==========================================================================
   Following everywhere, and the people directory (DECISIONS #146)
   ========================================================================== */
.follow-button {
    flex: none;
    margin: 0;
}

.follow-button button {
    white-space: nowrap;
}

.people {
    max-width: 1128px;
    margin: 0 auto;
    padding: var(--aq-space-12) var(--aq-space-6) var(--aq-space-16);
}

.people__eyebrow {
    margin: 0 0 var(--aq-space-2);
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
}

.people__search .form-control {
    border-radius: var(--aq-radius-pill);
}

.people__search .btn-gold {
    flex: none;
    white-space: nowrap;
}

.people__sort a {
    padding: var(--aq-space-1) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: 13px;
    text-decoration: none;
}

.people__sort a.is-current {
    border-color: var(--aq-accent);
    background: var(--aq-accent);
    color: var(--aq-bg-100);
}

.people__tip {
    padding: var(--aq-space-3) var(--aq-space-4);
    border: 1px dashed var(--aq-border);
    border-radius: var(--aq-radius);
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.people__tip a {
    color: var(--aq-accent-light);
}

.people__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--aq-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.person-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: var(--aq-space-2);
    padding: var(--aq-space-5) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
    text-align: center;
}

.people__tabs a {
    padding: var(--aq-space-1-5) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-200);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    text-decoration: none;
}

.people__tabs a.is-current {
    border-color: var(--aq-accent);
    color: var(--aq-accent-light);
}

.people__section-title {
    margin: var(--aq-space-6) 0 var(--aq-space-3);
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
}

.people__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--aq-space-4);
    margin-top: var(--aq-space-8);
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

@media (width < 576px) {
    .notification {
        flex-wrap: wrap;
    }

    .notification .follow-button {
        margin-left: 52px;
    }
}

/* ==========================================================================
   Direct messages (DECISIONS #133; Figma "Messages · Inbox", "· Mobile")
   ========================================================================== */
.dm {
    display: grid;
    grid-template-columns: 360px 1fr;
    /* One box of fixed height: a long inbox scrolls inside its column instead of stretching the
       conversation, which left an empty band under the message box. */
    grid-template-rows: minmax(0, 1fr);
    max-width: 1120px;
    height: clamp(520px, calc(100vh - var(--aq-header-height) - 2 * var(--aq-space-8)), 900px);
    margin: var(--aq-space-8) auto;
    overflow: hidden;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
}

/* On a computer Messages is a screen of its own: the box takes everything under the site header,
   there is no footer and the page never scrolls; the list and the conversation scroll inside
   (phones do the same with a conversation open, below). */
@media (min-width: 768px) {
    html:has(.dm),
    body:has(.dm) {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body:has(.dm) {
        height: 100dvh;
        min-height: 0;
    }

    body:has(.dm) .site-main {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    body:has(.dm) .site-footer {
        display: none;
    }

    .dm {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
    }
}

.dm__tabs a {
    color: var(--aq-text-300);
    text-decoration: none;
}

.dm__tabs a.is-current {
    color: var(--aq-accent-light);
    font-weight: 600;
}

.dm-row {
    display: flex;
    align-items: center;
    gap: var(--aq-space-3);
    padding: var(--aq-space-3) var(--aq-space-5);
    color: inherit;
    text-decoration: none;
}

.dm-row.is-current {
    background: color-mix(in srgb, var(--aq-primary) 14%, transparent);
}

.dm-row__last {
    overflow: hidden;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-row__when {
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.dm__back {
    display: none;
    color: var(--aq-text-100);
    font-size: 1.8rem;
    text-decoration: none;
}

.dm__profile {
    display: inline-flex;
    align-items: center;
    min-height: var(--aq-target-link, 32px);
    color: var(--aq-accent-light);
    font-size: var(--aq-text-sm);
}

.dm-mute__menu strong {
    padding: var(--aq-space-1) var(--aq-space-2);
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.dm-mute__menu button {
    padding: var(--aq-space-2);
    border: 0;
    border-radius: var(--aq-radius-sm);
    background: none;
    color: var(--aq-text-100);
    text-align: left;
}

.dm-mute__menu button:hover,
.dm-mute__menu button:focus-visible {
    background: var(--aq-bg-200, rgba(255, 255, 255, 0.08));
}

.dm__icon-link {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--aq-text-300);
}

.dm__icon-link:focus-visible {
    outline: 2px solid var(--aq-accent-light);
    outline-offset: 2px;
}

.dm-msg {
    display: flex;
    max-width: 75%;
    flex-direction: column;
    align-items: flex-start;
}

/* Translated conversations (DECISIONS #226; Figma 19 · S1-S8). The switch in the head: 🌐, "Translate · PT"
   and a switch on a computer; 🌐 and the switch on a phone. Purple is on. */
.dm-translate {
    position: relative;
    flex: none;
    margin: 0;
}

.dm-translate__switch {
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-2);
    padding: 5px var(--aq-space-1-5) 5px 10px;
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius-pill);
    background: transparent;
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
}

.dm-translate__switch.is-on {
    border-color: var(--aq-primary);
    background: color-mix(in srgb, var(--aq-primary) 18%, transparent);
    color: var(--aq-text-100);
}

.dm-translate__globe {
    font-size: 13px;
}

.dm-translate__track {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: var(--aq-radius-pill);
    background: rgb(255 255 255 / 18%);
    transition: background-color .15s;
}

.dm-translate__knob {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--aq-text-300);
    transition: transform .15s, background-color .15s;
}

.is-on .dm-translate__track {
    background: var(--aq-primary);
}

.is-on .dm-translate__knob {
    background: #fff;
    transform: translateX(13px);
}

/* The first time it is on (S2): where the language comes from. */
.dm-translate__tip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    width: min(306px, 80vw);
    margin: 0;
    padding: 10px var(--aq-space-3);
    border: 1px solid color-mix(in srgb, var(--aq-primary) 60%, transparent);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-100);
    color: var(--aq-text-100);
    font-size: var(--aq-text-xs);
    line-height: 1.4;
    white-space: normal;
}

.dm-tr__pending[hidden],
.dm-translate__tip[hidden] {
    display: none;
}

.dm-tr__line {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-1-5);
    align-items: center;
    width: fit-content;
    color: var(--aq-text-300);
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
    cursor: pointer;
    list-style: none;
}

.dm-tr__action {
    padding: 0;
    border: 0;
    background: none;
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.dm-tr__hide,
.dm-tr[open] .dm-tr__show {
    display: none;
}

.dm-tr[open] .dm-tr__hide {
    display: inline;
}

.dm-tr__label {
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.dm-tr__text {
    color: var(--aq-text-300);
    font-size: .875em;
    font-style: italic;
}

.dm-tr__pending {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-1-5);
    align-items: center;
    margin-top: var(--aq-space-1);
    color: var(--aq-text-300);
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
}

.dm-tr__failed {
    color: #ff8296;
}

/* On a phone only 🌐 and the switch, next to the name (S8). */
@media (max-width: 767.98px) {
    .dm-translate__label {
        display: none;
    }

    .dm-translate__switch {
        gap: var(--aq-space-1-5);
        padding: var(--aq-space-1) var(--aq-space-1) var(--aq-space-1) var(--aq-space-2);
    }

    .dm-translate__globe {
        font-size: 14px;
    }

    .dm-translate__track {
        width: 30px;
        height: 18px;
    }

    .dm-translate__knob {
        width: 14px;
        height: 14px;
    }

    .is-on .dm-translate__knob {
        transform: translateX(11px);
    }
}

.dm-msg__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2);
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.dm-msg__tool,
.profile__block-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
    cursor: pointer;
}

.dm__seen {
    align-self: flex-end;
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.dm-composer {
    display: flex;
    align-items: flex-end;
    gap: var(--aq-space-3);
    padding: var(--aq-space-3) var(--aq-space-5);
    border-top: 1px solid var(--aq-border);
}

/* Emoji and pictures in the message box (DECISIONS #198; Figma M1, M2). */
.dm-composer {
    flex-wrap: wrap;
    align-items: center;
}

.dm-composer__tools {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* At the foot of the conversation, the emoji open upwards. */
.dm-composer .social-popover {
    top: auto;
    bottom: calc(100% + 6px);
    left: var(--aq-space-5);
}

.dm-pictures a {
    display: block;
    min-height: 0;
}

.dm-pictures img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
    background: var(--aq-bg-300);
}

/* The pictures viewer (DECISIONS #225): full screen, one picture a screen, side by side to swipe. */
.dm-viewer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #000;
    color: #fff;
    overflow: hidden;
}

.dm-viewer[open] {
    display: block;
}

.dm-viewer::backdrop {
    background: #000;
}

.dm-viewer__bar {
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--aq-space-3);
    padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--aq-space-3) var(--aq-space-6);
    background: linear-gradient(rgba(0, 0, 0, .65), transparent);
    pointer-events: none;
}

.dm-viewer__bar > * {
    pointer-events: auto;
}

.dm-viewer__button {
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-1-5);
    min-width: 44px;
    min-height: 44px;
    padding: 0 var(--aq-space-3);
    border: 0;
    border-radius: var(--aq-radius-pill);
    background: rgba(255, 255, 255, .14);
    color: inherit;
    font: inherit;
    font-size: var(--aq-text-sm);
    justify-content: center;
    cursor: pointer;
}

.dm-viewer__button:disabled {
    opacity: .6;
}

.dm-viewer__count {
    font-size: var(--aq-text-sm);
    font-variant-numeric: tabular-nums;
}

.dm-viewer__strip {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.dm-viewer__strip::-webkit-scrollbar {
    display: none;
}

.dm-viewer__slide {
    display: flex;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    touch-action: pan-x pan-y;
}

.dm-viewer__slide img {
    display: block;
    flex: none;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Zoomed in: the picture is larger than the screen and moves under the finger; the strip waits. */
.dm-viewer__slide.is-zoomed {
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.dm-viewer__slide.is-zoomed img {
    max-width: none;
    max-height: none;
    height: auto;
}

.dm-viewer__step {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: var(--aq-radius-pill);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.dm-viewer__step--prev {
    left: 16px;
}

.dm-viewer__step--next {
    right: 16px;
}

.dm-viewer__step:disabled {
    visibility: hidden;
}

/* On a touch screen the swipe does it. */
@media (pointer: coarse) {
    .dm-viewer__step {
        display: none;
    }
}

.dm-music__summary {
    padding: var(--aq-space-2) 0;
    color: var(--aq-accent-light);
    font-size: var(--aq-text-sm);
    cursor: pointer;
}

.dm-music--scripted > .dm-music__summary {
    display: none;
}

.dm-music__paste {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-1);
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.dm-music-card .social-reco {
    grid-template-columns: 72px 1fr;
    gap: var(--aq-space-3);
    padding: var(--aq-space-3);
}

.dm-music-card .social-reco--youtube {
    grid-template-columns: 1fr;
}

.dm-music-card .social-reco__title {
    font-size: 1.05rem;
}

.dm-link {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-300);
    color: var(--aq-text-100);
    text-decoration: none;
    transition: border-color var(--aq-transition);
}

.dm-link--video,
.dm-link--image {
    flex-direction: column;
}

/* ▶ says it plays somewhere else; nothing plays here. */
.dm-link__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: rgb(0 0 0 / 55%);
    color: #fff;
}

.dm-link__icon {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
    color: var(--aq-text-300);
}

.dm-link__label {
    overflow: hidden;
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dm-link__text {
    color: var(--aq-text-300);
    font-size: 12px;
    line-height: 16px;
}

.dm-link__url {
    color: var(--aq-text-300);
}

.dm-link__domain {
    color: var(--aq-accent-light);
}

/* The link in the words, the one the card opens. */
.dm-msg__link {
    color: inherit;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.dm-linkprev[hidden] {
    display: none;
}

.dm-linkprev__card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 480px;
    height: 64px;
    padding: var(--aq-space-2) var(--aq-space-2) var(--aq-space-2) 11px;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-300);
}

.dm-linkprev__thumb {
    position: relative;
    display: block;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: var(--aq-radius);
    background: var(--aq-bg-200);
}

.dm-linkprev__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-linkprev__globe {
    position: absolute;
    top: 14px;
    left: 14px;
    display: none;
    color: var(--aq-text-300);
}

.dm-linkprev[data-state="fallback"] .dm-linkprev__globe {
    display: block;
}

.dm-linkprev__label {
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dm-linkprev__domain {
    color: var(--aq-accent-light);
    font-size: 11px;
    line-height: 14px;
}

/* ✕: a 44px target around a 28px circle. */
.dm-linkprev__remove {
    position: relative;
    display: grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: var(--aq-bg-200);
    color: var(--aq-text-100);
    font-size: 13px;
    line-height: 1;
}

.dm-linkprev__removed {
    display: none;
    align-items: center;
    gap: var(--aq-space-2);
    margin: 0;
    padding: 2px var(--aq-space-1);
    color: var(--aq-text-300);
    font-size: 12px;
}

.dm-linkprev__undo {
    padding: 0;
    border: 0;
    background: none;
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: 12px;
    font-weight: 600;
}

.dm-linkprev[data-state="removed"] .dm-linkprev__card {
    display: none;
}

.dm-linkprev[data-state="removed"] .dm-linkprev__removed {
    display: flex;
}

.dm-composer textarea {
    flex: 1;
    min-height: 44px;
    padding: var(--aq-space-2) var(--aq-space-4);
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius-xl);
    background: var(--aq-bg-100);
    color: var(--aq-text-100);
    resize: vertical;
}

.dm__request,
.dm__note,
.dm__notice,
.dm__error {
    margin: var(--aq-space-3) var(--aq-space-5);
    color: var(--aq-text-300);
}

.dm__request p {
    flex-basis: 100%;
    margin: 0;
    color: var(--aq-text-100);
}

.dm__error {
    color: #ff8a9a;
}

.dm__empty {
    padding: var(--aq-space-4) var(--aq-space-5);
    color: var(--aq-text-300);
}

@media (max-width: 767.98px) {
    .dm {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        min-height: 70vh;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

    .dm:not(.dm--open) .dm__thread {
        display: none;
    }

    /* An open conversation fills the screen under the site header: its name at the top and the
       message box at the bottom stay put, and only the messages scroll between them (#222).
       The page is exactly the visible height (--dm-vh from js/messages.js: less the keyboard when
       it is up) and the conversation takes what the header leaves, so a header the app hides, or
       a staff bar above it, leaves no band under the box (DECISIONS #223). */
    body:has(.dm--open) {
        height: var(--dm-vh, 100dvh);
        min-height: 0;
    }

    body:has(.dm--open) .site-main {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    /* The page itself does not scroll under an open conversation: only its messages do. */
    html:has(.dm--open),
    body:has(.dm--open) {
        overflow: hidden;
        overscroll-behavior: none;
    }

    /* So the site's menu, which opens inside the header, scrolls on its own there. */
    body:has(.dm--open) .site-header .navbar-collapse {
        max-height: calc(100dvh - var(--aq-header-height));
        overflow-y: auto;
    }

    body:has(.dm--open) .site-footer {
        display: none;
    }

    /* Inside a conversation the site's menu goes (Carlos, 04/11/2026): the conversation takes the whole screen,
       and its "‹" goes back one level, to the list, where the menu is again. */
    body:has(.dm--open) .site-header {
        display: none;
    }
}

/* ---- Group chats inside Messages (DECISIONS #219; Figma page 17, A1-A4, D1-D2) ---- */
.dm {
    position: relative;
}

.dm__requests {
    display: inline-flex;
    align-items: center;
    min-height: var(--aq-target-link, 32px);
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.dm__filters a {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: 0.8125rem;
    font-weight: 500;
}

.dm__filters a.is-current {
    border-color: var(--aq-accent);
    background: var(--aq-accent);
    color: var(--aq-bg-100);
    font-weight: 600;
}

.dm-row__mark {
    display: inline-flex;
    color: var(--aq-text-300);
}

.dm-row__owner {
    overflow: hidden;
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* A group's picture: a rounded square with a gold edge, its band's or club's mark in the corner. */
.dm-group-avatar {
    position: relative;
    display: inline-grid;
    flex: none;
    place-items: center;
    border: 1.5px solid var(--aq-accent);
    border-radius: var(--aq-radius-md);
    background: color-mix(in srgb, var(--aq-bg-200) 88%, white);
}

.dm-group-avatar > img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.dm-group-avatar__initials {
    color: var(--aq-accent-light);
    font-family: var(--aq-font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dm-group-avatar__owner {
    position: absolute;
    inset-block-end: -4px;
    inset-inline-end: -4px;
    display: grid;
    width: 18px;
    height: 18px;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--aq-accent);
    border-radius: 50%;
    background: var(--aq-bg-100);
    color: var(--aq-accent);
    font-size: 0.45rem;
    font-weight: 700;
}

.dm-group-avatar__owner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm__sub {
    flex-basis: 100%;
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.dm-owner-tag {
    padding: 0.1rem 0.6rem;
    border: 1px solid var(--aq-accent);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: 0.6875rem;
    font-weight: 500;
    text-decoration: none;
}

/* Who wrote it, above the bubble (Figma A2). */
.dm-msg__sender {
    display: flex;
    align-items: center;
    gap: var(--aq-space-2);
    margin-block: var(--aq-space-2) 0.15rem;
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
}

.dm-msg__sender a {
    color: inherit;
    text-decoration: none;
}

.dm-sender-tag {
    padding: 0.05rem 0.5rem;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-300);
    font-size: 0.625rem;
    font-weight: 500;
}

.dm-sender-tag--team,
.dm-sender-tag--admin {
    border-color: var(--aq-accent);
    color: var(--aq-accent-light);
}

.dm-sender-tag--moderator {
    border-color: var(--aq-primary);
    background: color-mix(in srgb, var(--aq-primary) 25%, transparent);
    color: var(--aq-text-100);
}

.dm-msg__tool--remove {
    color: #ff8a9a;
}

.dm__older a {
    color: var(--aq-accent-light);
}

/* An empty group (Figma E2). */
.dm__first {
    display: flex;
    margin: auto;
    flex-direction: column;
    align-items: center;
    gap: var(--aq-space-2);
    padding: var(--aq-space-6) var(--aq-space-4);
    text-align: center;
}

.dm__first strong {
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-lg, 1.25rem);
}

.dm__first span {
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.dm-details__eyebrow {
    margin: 0;
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.dm-details__close {
    color: var(--aq-text-100);
    font-size: 1.1rem;
    text-decoration: none;
}

.dm-details__identity h2 {
    margin: 0 0 var(--aq-space-2);
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-xl);
}

.dm-details__description {
    margin: 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.dm-details__rules li {
    padding: 0.15rem 0.6rem;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-300);
    font-size: 0.6875rem;
}

.dm-details__notify label {
    display: flex;
    align-items: center;
    gap: var(--aq-space-3);
    padding: var(--aq-space-2) var(--aq-space-3);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    cursor: pointer;
}

.dm-details__notify input {
    accent-color: var(--aq-accent);
}

.dm-details__notify span {
    display: flex;
    flex-direction: column;
}

.dm-details__notify small,
.dm-details__hint,
.dm-details__member small {
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.dm-details__members ul {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
    margin: var(--aq-space-2) 0 0;
    padding: 0;
    list-style: none;
}

.dm-details__members li {
    display: flex;
    align-items: center;
    gap: var(--aq-space-3);
}

/* ---- Chat Groups on profiles and in the dashboards (DECISIONS #219; Figma B1-B3, C1-C4) ---- */
.cg-directory {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-4);
}

.cg-card__text {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: var(--aq-space-1);
}

.cg-card__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2);
    margin: 0;
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-lg, 1.25rem);
}

.cg-card__action {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--aq-space-2);
}

.cg-card__action--row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-top: var(--aq-space-3);
}

.cg-tabs a,
.cg-filters a {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: 0.8125rem;
    text-decoration: none;
}

.cg-tabs a.is-current,
.cg-filters a.is-current {
    border-color: var(--aq-accent);
    background: var(--aq-accent);
    color: var(--aq-bg-100);
    font-weight: 600;
}

.cg-filters a {
    font-size: 0.75rem;
}

.cg-choice__option.is-on,
.cg-choice__option:has(input:checked) {
    border-color: var(--aq-accent);
    background: color-mix(in srgb, var(--aq-accent) 10%, transparent);
}

.cg-choice__option input {
    margin-top: 0.3rem;
    accent-color: var(--aq-accent);
}

.cg-choice__option span {
    display: flex;
    flex-direction: column;
}

.cg-danger {
    border-color: rgb(224 71 91 / 50%);
}

.cg-member,
.cg-report,
.cg-invitee {
    flex-wrap: wrap;
    padding-block: var(--aq-space-3);
    border-bottom: 1px solid var(--aq-border);
}

.cg-invitee.is-off {
    cursor: default;
}

.cg-invitee.is-off .studio-row__title {
    color: var(--aq-text-300);
    font-style: italic;
}

@media (max-width: 767.98px) {
    .cg-card {
        flex-wrap: wrap;
    }

    .cg-card__action {
        flex-basis: 100%;
        align-items: stretch;
    }
}

/* ---- The band's alerts: "ÁLFAR QUEST · Avisos" (DECISIONS #134) ----------- */
.announcement {
    max-width: 520px;
    padding: var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
}

.announcement--unread {
    border-color: var(--aq-primary);
}

.announcement__kind {
    margin: 0 0 var(--aq-space-2);
    color: var(--aq-primary);
    font-size: var(--aq-text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.announcement__image {
    display: block;
    width: 100%;
    max-height: 280px;
    margin-bottom: var(--aq-space-3);
    border-radius: var(--aq-radius);
    object-fit: cover;
}

.announcement__title {
    margin: 0 0 var(--aq-space-2);
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-lg);
}

.announcement__body {
    margin: 0 0 var(--aq-space-2);
    color: var(--aq-text-200);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.announcement__button {
    display: inline-block;
    margin-top: var(--aq-space-2);
}

.announcement__when {
    margin: var(--aq-space-3) 0 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

/* ---- Quiz seasons: ranking page and Hall of Champions (DECISIONS #138) ----
   Figma "Quiz · Monthly ranking" and "Quiz · Hall of Champions". Silver and
   bronze have no theme token yet; they live here with the medals. */
.quiz-season {
    --qs-silver: #c7ccdb;
    --qs-bronze: #cc854d;
    --qs-raised: color-mix(in srgb, var(--aq-bg-200) 88%, white);
    width: min(100% - 2rem, 1100px);
    margin: 0 auto;
    padding: var(--aq-space-8) 0 var(--aq-space-16);
}

.quiz-season__tab:hover {
    border-color: var(--aq-accent);
}

.quiz-season__tab.is-current {
    background: var(--aq-accent);
    border-color: var(--aq-accent);
    color: var(--aq-bg-100);
}

.quiz-board__table td:first-child {
    display: flex;
    align-items: center;
    gap: var(--aq-space-4);
}

.quiz-board__note,
.quiz-season__rule,
.season-countdown__when {
    margin: 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.season-countdown {
    display: flex;
    gap: 10px;
}

.season-countdown__unit {
    display: grid;
    place-items: center;
    gap: var(--aq-space-1);
    width: 72px;
    height: 72px;
    padding: var(--aq-space-2) 0;
    background: var(--qs-raised);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    text-align: center;
}

.season-countdown__unit strong {
    color: var(--aq-text-100);
    font-family: var(--aq-font-display);
    font-size: 1.5rem;
    line-height: 2rem;
}

.season-countdown__unit span {
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 2px;
}

@media (max-width: 640px) {
    .season-countdown__unit {
        width: 64px;
        height: 64px;
    }
}

/* ---- Monthly Rewards: the admin editor and the reward card (DECISIONS #139) ----
   Figma "Admin · Monthly Rewards · …" and "Reward card". Gold, silver and
   bronze are the medals' own colours, not the theme's accent. */
.rewards-tabs,
.reward-card,
.rewards-slot,
.rewards-preview,
.rewards-picker {
    --rw-gold: #c9a227;
    --rw-gold-light: #ecd27a;
    --rw-silver: #c7ccdb;
    --rw-bronze: #cc854d;
    --rw-crimson: #d4204a;
    --rw-raised: color-mix(in srgb, var(--aq-bg-200) 88%, white);
}

.rewards-tabs a,
.rewards-chips button,
.rewards-picker__filters a {
    padding: var(--aq-space-2) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    background: none;
    color: var(--aq-text-100);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
}

.rewards-tabs a.is-current,
.rewards-chips button.is-current,
.rewards-picker__filters a.is-current {
    background: #c9a227;
    border-color: #c9a227;
    color: #0d0a1a;
}

.rewards-season__next .form-text {
    color: #ecd27a;
}

/* The reward card, shared with the public rewards page. */
.reward-card {
    --medal: var(--rw-silver);
    overflow: hidden;
    width: 192px;
    background: var(--aq-bg-200);
    border: 1px solid var(--medal);
    border-radius: var(--aq-radius);
}

.reward-card--1 {
    --medal: var(--rw-gold);
    width: 252px;
    box-shadow: 0 0 20px rgb(201 163 38 / 35%);
}

.reward-card--3 {
    --medal: var(--rw-bronze);
}

.reward-card__image {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    place-items: center;
    background: var(--rw-raised);
    color: var(--medal);
    font-size: 2rem;
}

.reward-card__body {
    display: grid;
    gap: 5px;
    padding: var(--aq-space-3) 14px 14px;
}

.reward-card__badge {
    margin: 0;
    color: var(--aq-text-300);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.reward-card__place {
    color: var(--medal);
}

.reward-card__title {
    margin: 0;
    font-family: var(--aq-font-display);
    font-size: 0.75rem;
}

.reward-card--1 .reward-card__title {
    font-size: 1rem;
}

.reward-card__store {
    margin: 0;
    color: var(--rw-gold-light);
    font-size: 0.5625rem;
}

/* ---- The public prizes page, the hub's strip and the rules (DECISIONS #140) ----
   Figma "Quiz · Monthly Rewards · Desktop". */
.quiz-season.quiz-rewards {
    /* Three cards side by side: 320 + 420 + 320 and two gaps. */
    width: min(100% - 2rem, 1200px);
}

.quiz-season__prize span {
    display: inline-block;
    min-width: 1.75rem;
    color: var(--aq-accent);
    font-family: var(--aq-font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

.quiz-season__prize--2 span {
    color: var(--qs-silver);
}

.quiz-season__prize--3 span {
    color: var(--qs-bronze);
}

/* ---- The homepage's quiz season banner and pop-up (DECISIONS #141) ----
   Figma "Season banner" and "Season promo dialog". */
.season-banner,
.season-promo {
    --sp-gold: #c9a227;
    --sp-silver: #c7ccdb;
    --sp-bronze: #cc854d;
    --sp-raised: color-mix(in srgb, var(--aq-bg-200) 88%, white);
}

/* The pop-up. */
.season-promo {
    width: min(100% - 2rem, 460px);
    padding: var(--aq-space-1-5);
    overflow: visible;
    background: var(--aq-bg-200);
    border: 2px solid var(--sp-gold);
    border-radius: var(--aq-radius-lg);
    box-shadow: 0 0 40px rgb(201 163 38 / 28%), 0 24px 64px rgb(0 0 0 / 65%);
    color: var(--aq-text-100);
}

.season-promo::backdrop {
    background: rgb(5 3 12 / 70%);
}

.season-promo__more a,
.season-promo__more button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.season-promo__more a:hover,
.season-promo__more button:hover {
    color: var(--aq-text-100);
}

@media (prefers-reduced-motion: no-preference) {
    .season-promo[open] {
        animation: season-promo-in 0.35s ease-out;
    }

    @keyframes season-promo-in {
        from {
            opacity: 0;
            transform: translateY(16px) scale(0.98);
        }
    }
}

/* On a phone: a sheet from the bottom, not a box over the page. */
@media (max-width: 640px) {
    .season-promo {
        width: 100%;
        max-width: none;
        margin: auto 0 0;
        border-radius: var(--aq-radius-lg) var(--aq-radius-lg) 0 0;
        border-bottom: 0;
    }
}

/* ---- Quiz winners: the admin list and detail, and the claim page (DECISIONS #142) ---- */
.winner-head__eyebrow a {
    color: #cc854d;
    text-decoration: none;
}

.winner-step.is-done .winner-step__dot {
    border-color: #c9a227;
    background: #c9a227;
    color: #0d0a1a;
}

.winner-step.is-current .winner-step__dot {
    border-color: #8b6cff;
    background: #8b6cff;
    color: #fff;
}

.winner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--aq-space-5);
}

.quiz-claim__prize {
    display: grid;
    grid-template-columns: minmax(0, 240px) 1fr;
    align-items: center;
    gap: var(--aq-space-6);
    margin-bottom: var(--aq-space-8);
}

.quiz-claim__saved.is-current {
    border-color: #c9a227;
}

.quiz-claim__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--aq-space-3) var(--aq-space-4);
}

@media (max-width: 900px) {
    .winner-grid,
    .quiz-claim__prize,
    .quiz-claim__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Communities (DECISIONS #148; Figma "08 · Communities")
   ========================================================================== */
.communities {
    max-width: 1128px;
    margin: 0 auto;
    padding: var(--aq-space-12) var(--aq-space-6) var(--aq-space-16);
}

.communities__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--aq-space-6);
}

/* ---- The card (Figma "Community card") ---------------------------------- */
.community-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    box-shadow: 0 16px 40px rgb(0 0 0 / 35%);
}

.community-card__name a {
    color: var(--aq-text-100);
    text-decoration: none;
}

.community-card__name a:hover,
.community-card__name a:focus-visible {
    color: var(--aq-accent-light);
}

/* ---- The page's head (Figma "Community · Details") ---------------------- */

/* The logo stands in until the team uploads an avatar: it is wide, so it fits, uncropped. */
.community-card__avatar[src$="logo-600.png"],
.community-hero__avatar[src$="logo-600.png"],
.community-admin__avatar[src$="logo-600.png"] {
    padding: 8%;
    object-fit: contain;
}

.community__people > li {
    padding: var(--aq-space-3) 0;
    border-bottom: 1px solid var(--aq-border);
}

/* ---- People in a community ---------------------------------------------- */
a.community-person__name:hover,
a.community-person__name:focus-visible {
    color: var(--aq-accent-light);
}

/* ---- Managing ------------------------------------------------------------ */
.community-log {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--aq-text-sm);
}

.community-log li {
    padding: var(--aq-space-1) 0;
}

.community-log time {
    color: var(--aq-text-300);
}

/* ---- The forum (DECISIONS #149; Figma "Topic row", "Forum post") ---------- */
.topic-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 96px 150px;
    align-items: center;
    gap: var(--aq-space-4);
    padding: 14px var(--aq-space-5);
    border-bottom: 1px solid var(--aq-border);
}

.topic-row:last-child {
    border-bottom: 0;
}

.topic-row.is-pinned {
    background: color-mix(in srgb, var(--aq-primary) 7%, transparent);
}

/* ---- A topic ---------------------------------------------------------------- */
.forum-topic {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-4);
    max-width: 1128px;
    margin: 0 auto;
    padding: var(--aq-space-8) var(--aq-space-6) var(--aq-space-16);
}

.forum-topic__crumbs a {
    color: var(--aq-accent-light);
}

.forum-topic__tools button {
    width: 100%;
}

.forum-pager a,
.forum-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 var(--aq-space-2);
    border-radius: var(--aq-radius);
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
    text-decoration: none;
}

.forum-pager a {
    border: 1px solid var(--aq-border);
}

.forum-pager a:hover,
.forum-pager a:focus-visible {
    border-color: var(--aq-primary);
    color: var(--aq-text-100);
}

.forum-pager a.is-current {
    border-color: var(--aq-primary);
    background: var(--aq-primary);
    color: var(--aq-bg-100);
    font-weight: 700;
}

/* ---- A post: the author's column beside the message ------------------------ */
.forum-post {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    scroll-margin-top: 96px;
}

.forum-post--new {
    border-color: color-mix(in srgb, var(--aq-primary) 55%, var(--aq-border));
}

.forum-post--held {
    border-style: dashed;
}

.forum-post:target {
    box-shadow: 0 0 0 2px var(--aq-primary);
}

a.forum-post__name:hover,
a.forum-post__name:focus-visible {
    color: var(--aq-primary);
}

.forum-post__meta a {
    color: var(--aq-accent-light);
    font-weight: 600;
    text-decoration: none;
}

.forum-post__body a {
    color: var(--aq-accent-light);
}

/* ---- Writing ---------------------------------------------------------------- */
.forum-reply form {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-3);
}

/* ---- Forum, phase 4 (DECISIONS #151): likes, reports, mentions, following ---- */
.forum-post__report form,
.reported-post .community-ban form {
    flex-wrap: wrap;
    align-items: center;
}

.forum-post__report .form-select,
.forum-post__report .form-control {
    flex: 1 1 180px;
    min-width: 0;
}

/* =========================================================================
   Tabs & Playthroughs (docs/tabs-playthroughs-plan.md; Figma 09 · Tabs &
   Playthroughs): the song's section, its full area, an item's page and the
   viewer. Gold is the site's accent, the fans' pill its primary.
   ========================================================================= */
.music-viewer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--aq-space-3);
}

.music-viewer__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2);
    color: var(--aq-text-200);
    font-size: var(--aq-text-sm);
}

.music-viewer__track {
    max-width: 14rem;
    padding: var(--aq-space-1) var(--aq-space-2);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    background: var(--aq-bg-100);
    color: var(--aq-text-100);
}

.music-viewer__download {
    margin-inline-start: auto;
}

.music-viewer__stage {
    display: grid;
    justify-items: center;
    gap: var(--aq-space-4);
    max-height: 80vh;
    overflow: auto;
    padding: var(--aq-space-3);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    background: var(--aq-bg-100);
}

.music-viewer:fullscreen .music-viewer__stage {
    max-height: none;
    height: 100%;
}

.music-viewer:fullscreen {
    padding: var(--aq-space-4);
    background: var(--aq-bg-100);
    grid-template-rows: auto 1fr;
}

/* PDF pages and the score are drawn on paper, as printed. */
.music-viewer__page,
.music-viewer__score {
    max-width: none;
    background: #fff;
    box-shadow: 0 2px 12px rgb(0 0 0 / 40%);
}

.music-viewer__score {
    width: 100%;
}

.music-viewer__error {
    color: #fbbf24;
}

/* ---- The song's section ------------------------------------------------- */
/* An account menu group's pages as tabs (DECISIONS #487): Perfil · Senha, Pedidos · Endereços, Bastidores, Configurações. */
.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
    margin: 0 0 var(--aq-space-6);
}

.tabs-chip {
    display: inline-block;
    padding: var(--aq-space-1) var(--aq-space-3);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: 0.8125rem;
    text-decoration: none;
    white-space: nowrap;
}

.tabs-chip:hover,
.tabs-chip:focus-visible {
    border-color: var(--aq-accent);
    color: var(--aq-accent-light);
}

.tabs-chip.is-active {
    border-color: var(--aq-accent);
    background: var(--aq-accent);
    color: var(--aq-bg-100);
    font-weight: 600;
}

.tabs-chip.is-empty {
    border-style: dashed;
    color: var(--aq-text-300);
    font-style: italic;
}

/* ---- Cards -------------------------------------------------------------- */
.tabs-card {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-3);
    overflow: hidden;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    background: var(--aq-bg-200);
    box-shadow: 0 12px 32px rgb(0 0 0 / 35%);
}

.tabs-card__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.75rem;
    height: 3.25rem;
    border: 1px solid var(--aq-accent);
    border-radius: var(--aq-radius-sm);
    color: var(--aq-accent-light);
}

.tabs-card__heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--aq-space-1);
    min-width: 0;
}

.tabs-card__title a {
    color: var(--aq-text-100);
    text-decoration: none;
}

.tabs-card__title a:hover,
.tabs-card__title a:focus-visible {
    color: var(--aq-accent-light);
}

.tabs-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-4);
    padding-top: var(--aq-space-3);
    border-top: 1px solid var(--aq-border);
    font-size: var(--aq-text-xs);
    font-weight: 600;
}

.tabs-card__actions a {
    color: var(--aq-accent-light);
    text-decoration: none;
}

.tabs-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding-inline-start: 0.2rem;
    border-radius: 50%;
    background: var(--aq-accent);
    color: var(--aq-bg-100);
    transform: translate(-50%, -50%);
}

.tabs-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
    padding: 0 var(--aq-space-4) var(--aq-space-4);
}

.tabs-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2);
    font-size: var(--aq-text-sm);
}

.tabs-author__avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    overflow: hidden;
    border-radius: 50%;
    background: var(--aq-bg-100);
    color: var(--aq-text-100);
    object-fit: cover;
    font-weight: 600;
}

.tabs-author--compact .tabs-author__avatar {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.6875rem;
}

.tabs-author__avatar--band {
    border: 1px solid var(--aq-accent);
    color: var(--aq-accent-light);
    font-family: var(--aq-font-display);
}

.tabs-author__who {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--aq-space-1);
    min-width: 0;
}

.tabs-author__name {
    color: var(--aq-text-100);
    font-weight: 600;
    text-decoration: none;
}

a.tabs-author__name:hover,
a.tabs-author__name:focus-visible {
    color: var(--aq-accent-light);
}

.tabs-author__count,
.tabs-author__handle {
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.tabs-author__handle {
    flex-basis: 100%;
}

/* ---- The song's area and an item's page ---------------------------------- */
.tabs-hero__eyebrow {
    margin: 0;
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tabs-hero__title {
    margin: 0;
    font-family: var(--aq-font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.tabs-sort a {
    color: var(--aq-text-300);
    text-decoration: none;
}

.tabs-sort a.is-active {
    color: var(--aq-accent-light);
    font-weight: 600;
}

.tabs-others a {
    color: var(--aq-text-100);
    font-weight: 600;
    text-decoration: none;
}

.tabs-tool {
    padding: var(--aq-space-1) var(--aq-space-2);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-sm);
    background: transparent;
    color: var(--aq-text-100);
    font-size: var(--aq-text-xs);
    cursor: pointer;
}

.tabs-tool:hover,
.tabs-tool:focus-visible {
    border-color: var(--aq-accent);
}

.tabs-viewer {
    padding: var(--aq-space-3);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    background: var(--aq-bg-200);
}

.tabs-viewer__note,
.tabs-viewer__loading {
    margin: 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
    text-align: center;
}

.tabs-player .video-player__play {
    text-decoration: none;
}

@media (max-width: 899.98px) {
    .music-viewer__download {
        margin-inline-start: 0;
    }
}

/* ---- Tabs & Playthroughs: sending (phase 4) ------------------------------- */
.tabs-alert {
    margin: 0;
    padding: var(--aq-space-3) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    background: var(--aq-bg-200);
    color: var(--aq-text-200);
    font-size: var(--aq-text-sm);
}

.tabs-alert p {
    margin: 0 0 var(--aq-space-2);
}

.tabs-field input:not([type="radio"]):not([type="checkbox"]),
.tabs-field select,
.tabs-field textarea {
    width: 100%;
    padding: var(--aq-space-2) var(--aq-space-3);
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius);
    background: var(--aq-bg-100);
    color: var(--aq-text-100);
    font: inherit;
}

.tabs-field small {
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.tabs-choice span {
    display: inline-block;
    padding: var(--aq-space-1) var(--aq-space-3);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-100);
    font-size: 0.8125rem;
    cursor: pointer;
}

.tabs-choice input:checked + span {
    border-color: var(--aq-accent);
    background: var(--aq-accent);
    color: var(--aq-bg-100);
    font-weight: 600;
}

.tabs-check input {
    margin-top: 0.2rem;
    accent-color: var(--aq-accent);
}

.tabs-check a {
    color: var(--aq-accent-light);
}

.tabs-mine,
.tabs-terms {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-4);
    max-width: 60rem;
    margin-inline: auto;
    padding: var(--aq-space-8) var(--aq-space-4) var(--aq-space-16);
}

.tabs-terms ol {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-3);
    color: var(--aq-text-200);
}

.tabs-row__action a {
    color: var(--aq-accent-light);
    text-decoration: none;
}

/* ---- Tabs & Playthroughs: the team's review (phase 5; Figma C2-C5) ------- */
.music-mod__tabs a {
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-2);
    padding: var(--aq-space-2) 0;
    border-bottom: 2px solid transparent;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
    text-decoration: none;
}

.music-mod__tabs a[aria-current="page"] {
    border-bottom-color: #ecd27a;
    color: var(--aq-text-100);
    font-weight: 600;
}

.tabs-report__text textarea {
    padding: var(--aq-space-2);
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius-sm);
    background: transparent;
    color: inherit;
}

/* ---- Tabs & Playthroughs: the bell and the profile (phase 6; Figma B5) ---- */
.notifications:has(.notifications__body--side) {
    max-width: 1080px;
}

.notifications__filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
    margin: var(--aq-space-4) 0 var(--aq-space-6);
}

.notifications__body--side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: start;
    gap: var(--aq-space-6);
}

.notifications__panel {
    display: grid;
    gap: var(--aq-space-2);
    padding: var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    color: var(--aq-text-200);
    font-size: var(--aq-text-sm);
}

.notifications__panel p {
    margin: 0;
}

.notifications__panel-title {
    color: var(--aq-accent-light);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.notifications__panel a {
    color: var(--aq-accent-light);
    font-weight: 600;
    text-decoration: none;
}

.notification__avatar--band {
    padding: var(--aq-space-1);
    background: #0b1020;
    object-fit: contain;
}

.profile-music__song a {
    color: inherit;
}

@media (max-width: 899.98px) {
    .notifications__body--side {
        grid-template-columns: 1fr;
    }
}

/* ---- Tabs & Playthroughs: keyboard (phase 7) ------------------------------- */

/* The viewer's stage takes focus, so the arrows scroll the score or PDF. */
.music-viewer__stage:focus-visible {
    outline: 2px solid var(--aq-accent);
    outline-offset: 2px;
}

/* The artist's dashboard (DECISIONS #179; Figma "B1"-"B6"): the frame and
   the pieces its pages share. */
.studio {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--aq-space-8) var(--aq-space-4) var(--aq-space-16);
}

.studio__layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--aq-space-10);
    align-items: start;
}

@media (width < 900px) {
    .studio__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--aq-space-6);
    }
}

/* The columns never grow past the screen: the phone menu scrolls inside its own. */
.studio__layout > * {
    min-width: 0;
}

.studio__nav-title,
.studio__eyebrow {
    margin: 0 0 var(--aq-space-3);
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
}

.studio__nav ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.studio__nav a {
    display: flex;
    justify-content: space-between;
    gap: var(--aq-space-2);
    padding: var(--aq-space-2) 10px;
    border-radius: var(--aq-radius);
    color: var(--aq-text-200, #d8dbe7);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.studio__nav a.is-current {
    background: var(--aq-bg-200);
    color: var(--aq-accent-light);
}

.studio__nav-note {
    margin: var(--aq-space-3) 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.studio__nav .studio__nav-back {
    display: inline-block;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
}

/* On a phone the menu is one scrolling line, not a column above the page. */
@media (width < 900px) {
    .studio__nav ul {
        flex-direction: row;
        gap: var(--aq-space-2);
        overflow-x: auto;
        padding-bottom: var(--aq-space-2);
    }

    .studio__nav ul a {
        white-space: nowrap;
        border: 1px solid var(--aq-border);
    }

    .studio__nav-note {
        display: none;
    }
}

.studio__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-4);
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--aq-space-6);
}

.studio__title {
    margin: 0;
    font-family: var(--aq-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.studio__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-3);
}

/* ---- The card (usability audit UI-03, #270) ---------------------------------------------------------------------
   The surface the card families share: the raised ground, the quiet edge, the md corners. A family adds its padding
   and layout (.studio-card, .sd-card, .wizard-card, which keeps its lg corners); a new card starts from .aq-card.
   Here, before the families, so a family's own rules still win as they did. */
.aq-card {
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
}

.studio-card {
    margin-bottom: var(--aq-space-6);
    padding: var(--aq-space-6);
}

.studio-card__title {
    margin: 0 0 var(--aq-space-4);
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
}

.studio-card form + form {
    margin-top: var(--aq-space-4);
}

.studio-notice {
    margin-bottom: var(--aq-space-6);
    padding: var(--aq-space-3) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
    font-size: var(--aq-text-sm);
}

.studio-notice--ok {
    border-color: var(--aq-accent);
}

.studio-notice--error {
    border-color: #ff8fa3;
    color: #ffc2cd;
}

.studio-list {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-3);
    margin: 0 0 var(--aq-space-8);
    padding: 0;
    list-style: none;
}

.studio-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-4);
    align-items: center;
    padding: var(--aq-space-3) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
}

.studio-row__main {
    flex: 1 1 220px;
    min-width: 0;
}

.studio-row__title {
    margin: 0;
    font-weight: 600;
}

.studio-row__sub,
.studio-row__when {
    margin: 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.studio-form {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-4);
}

.studio-form__note {
    margin: 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.studio-choices {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
}

.studio-choices label {
    display: inline-flex;
    gap: var(--aq-space-1-5);
    align-items: center;
    padding: var(--aq-space-1) var(--aq-space-3);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    font-size: var(--aq-text-sm);
    cursor: pointer;
}

.studio-choices input:checked + span {
    color: var(--aq-accent-light);
}

.studio-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-3);
    align-items: center;
}

a.studio-stat {
    color: inherit;
    text-decoration: none;
}

/* ---- Social timeline (DECISIONS #183; Figma "13 · Social Timeline") ---- */
.social-page__columns {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--aq-space-8);
}

.social-page__feed {
    display: flex;
    flex: 1 1 520px;
    flex-direction: column;
    gap: var(--aq-space-4);
    min-width: 0;
}

.social-page__side {
    display: flex;
    flex: 0 1 340px;
    flex-direction: column;
    gap: var(--aq-space-4);
}

.social-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
}

.social-card {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-3);
    padding: var(--aq-space-5);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    scroll-margin-top: calc(var(--aq-header-height) + var(--aq-space-4));
}

.social-card__avatar {
    flex: none;
    width: 44px;
    height: 44px;
    border: 2px solid var(--aq-border);
    border-radius: 50%;
    object-fit: cover;
}

.social-card__who {
    flex: 1;
    min-width: 0;
}

.social-card__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2);
    margin: 0;
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.social-card__name a {
    color: var(--aq-text-100);
    text-decoration: none;
}

.social-card__name a:hover,
.social-card__name a:focus-visible {
    color: var(--aq-accent-light);
}

/* The activity inside a card keeps the profile's look, a step lighter. */
.social-card__activity {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-100);
}

button.social-heart {
    cursor: pointer;
}

button.social-heart:hover,
button.social-heart:focus-visible {
    color: var(--aq-accent-light);
}

.social-heart.is-liked {
    background: rgb(201 162 39 / 0.16);
    color: var(--aq-accent-light);
}

.social-heart.is-liked svg {
    color: var(--aq-accent);
}

.social-card__menu[open] > summary,
.social-card__menu > summary:hover {
    background: var(--aq-bg-100);
    color: var(--aq-text-100);
}

.social-card__menu-panel {
    position: absolute;
    z-index: 5;
    right: 0;
    top: calc(100% + 6px);
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-3);
    width: min(420px, 80vw);
    padding: var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
}

.social-card__edit {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
}

.social-card__edit textarea,
.social-composer textarea {
    width: 100%;
    padding: var(--aq-space-3) var(--aq-space-4);
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-100);
    color: var(--aq-text-100);
    font: inherit;
    resize: vertical;
}

.social-card__edit textarea:focus,
.social-composer textarea:focus {
    border-color: var(--aq-accent);
    outline: 2px solid rgb(201 162 39 / 0.25);
}

.social-card__delete {
    padding: 0;
    border: 0;
    background: none;
    color: var(--aq-accent-light);
    font-size: var(--aq-text-sm);
    cursor: pointer;
}

.social-composer__box {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--aq-space-3);
    min-width: 0;
}

.social-composer__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--aq-space-2);
}

.social-composer__hint {
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.social-notice {
    margin: 0;
    padding: var(--aq-space-3) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
    color: var(--aq-text-200);
}

.social-notice--warn {
    border-color: var(--aq-accent);
    color: var(--aq-accent-light);
}

/* ---- Recommendations: Spotify and YouTube (DECISIONS #184) ---- */
.social-reco {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--aq-space-4);
    align-items: center;
    padding: var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-100);
}

/* Spotify's own player is a 152px strip: it takes the whole card once playing. */
.social-reco--spotify:has(.is-playing) {
    grid-template-columns: 1fr;
}

.social-reco__player .video-player__play span {
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
}

.social-reco__player--gone {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: var(--aq-radius);
    background: var(--aq-bg-200);
    color: var(--aq-text-300);
    font-size: 2rem;
}

.social-reco__info {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-1);
    min-width: 0;
}

.social-reco__info .profile-activity__eyebrow {
    display: flex;
    align-items: center;
    gap: var(--aq-space-1-5);
    margin: 0;
}

.social-reco__info .profile-activity__eyebrow svg {
    width: 18px;
    height: 18px;
}

.social-reco__title {
    margin: 0;
    color: var(--aq-text-100);
    font-family: var(--aq-font-display);
    font-size: var(--aq-text-xl);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.social-reco__subtitle {
    margin: 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.social-reco__open {
    color: var(--aq-accent-light);
    font-size: var(--aq-text-sm);
    font-weight: 600;
}

.social-reco__score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2) var(--aq-space-3);
    margin: 0;
    padding: var(--aq-space-3) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: rgb(108 76 214 / 0.08);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
}

.rating-dots__dot {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--aq-border);
    border-radius: 50%;
}

.rating-input__dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-1-5);
}

.rating-input__zero {
    padding: 2px 10px;
    border: 1.5px solid var(--aq-border-strong);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    cursor: pointer;
}

.rating-input__dot {
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--aq-border-strong);
    border-radius: 50%;
    cursor: pointer;
}

.rating-input__value {
    margin-inline-start: var(--aq-space-2);
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-weight: 600;
}

.social-recommend__source {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
    padding: var(--aq-space-6);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    color: var(--aq-text-100);
    text-decoration: none;
}

.social-recommend__form textarea {
    width: 100%;
    padding: var(--aq-space-3) var(--aq-space-4);
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-100);
    color: var(--aq-text-100);
    font: inherit;
}

.social-recommend__label {
    margin: 0 0 var(--aq-space-2);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    font-weight: 600;
}

.social-results {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-results__item {
    display: flex;
    align-items: center;
    gap: var(--aq-space-3);
    padding: 10px var(--aq-space-3);
    border-radius: var(--aq-radius-md);
    color: var(--aq-text-100);
    text-decoration: none;
}

.social-results__item:hover,
.social-results__item:focus-visible {
    background: rgb(108 76 214 / 0.18);
}

.social-results__item img,
.social-results__cover {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: var(--aq-radius);
    object-fit: cover;
}

.social-results__pick {
    color: var(--aq-accent-light);
    font-size: var(--aq-text-sm);
    font-weight: 600;
}

/* "Recommend music", step 2: Spotify songs while typing (music-search.js). */
.music-search {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-3);
}

.music-search__field {
    position: relative;
    display: block;
    flex: 1;
    min-width: 0;
}

.music-search__field .form-control {
    padding-left: 46px;
    padding-right: 44px;
    min-height: 48px;
}

.music-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    color: var(--aq-text-300);
    transform: translateY(-50%);
    pointer-events: none;
}

.music-search__spinner {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid color-mix(in srgb, var(--aq-accent) 25%, transparent);
    border-top-color: var(--aq-accent);
    border-radius: 50%;
    animation: music-search-spin 0.8s linear infinite;
}

.music-search__spinner[hidden] {
    display: none;
}

@keyframes music-search-spin {
    to { transform: rotate(360deg); }
}

.music-search__panel.social-popover {
    width: 100%;
    max-height: min(560px, 60vh);
    padding: var(--aq-space-1);
}

.music-search__option {
    display: flex;
    align-items: center;
    gap: var(--aq-space-3);
    min-height: 64px;
    padding: var(--aq-space-2) 10px;
    border-radius: var(--aq-radius-md);
    color: var(--aq-text-100);
    cursor: pointer;
}

.music-search__cover--blank {
    display: grid;
    place-items: center;
    color: var(--aq-text-300);
}

.music-search__length {
    flex: none;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
    font-variant-numeric: tabular-nums;
}

.music-search__status {
    margin: 0;
    padding: var(--aq-space-3);
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.music-search__status[hidden],
.music-search__list[hidden],
.music-search__footer[hidden] {
    display: none;
}

.music-search__status--warn {
    color: var(--aq-accent-light);
}

.music-search__chosen[hidden] {
    display: none;
}

.music-search__notice[hidden] {
    display: none;
}

/* ---- Community votes (DECISIONS #185) ---- */
.social-reco__community {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
}

.rating-dots--small .rating-dots__dot {
    width: 12px;
    height: 12px;
}

.social-reco__vote {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
    margin: 0;
}

.rating-input--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2) var(--aq-space-3);
}

.rating-input--compact .rating-input__dot {
    width: 18px;
    height: 18px;
}

/* ---- Comments on posts, shares (DECISIONS #186) ---- */
.social-card__actions {
    position: relative;
    flex-wrap: wrap;
}

a.social-heart {
    text-decoration: none;
}

a.social-heart:hover,
a.social-heart:focus-visible {
    color: var(--aq-accent-light);
}

.social-share-form[open] > summary {
    color: var(--aq-accent-light);
}

/* Opens as a panel under the row, as the post's menu, so the row stays in place. */
.social-share-form[open] > form {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 5;
    width: min(420px, 100%);
    padding: var(--aq-space-3);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
    box-shadow: 0 12px 32px rgb(0 0 0 / 0.45);
}

.social-shared {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
    padding: var(--aq-space-3) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-left: 3px solid var(--aq-accent);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-100);
}

.social-shared__who a,
.social-shared__who strong {
    color: var(--aq-text-100);
    font-weight: 600;
}

.social-page__back a {
    color: var(--aq-text-300);
}

/* ---- Mentions, emoji, stickers and pictures (DECISIONS #187; Figma D2-D5) ---- */
[data-compose] {
    position: relative;
}

.social-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--aq-text-300);
    cursor: pointer;
    list-style: none;
}

.social-tool[hidden] {
    display: none;
}

/* Sharing a band or a person in a comment (DECISIONS #273): the search under the box, the chosen one as a
   chip above the tools, and the card in the comment as in the chat. */
.comment-share {
    position: static;
}

.comment-share[hidden] {
    display: none;
}

.comment-share__panel {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
}

.comment-share__panel[hidden] {
    display: none;
}

.comment-share__kinds {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-1-5);
}

.comment-share__results {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-share__option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: var(--aq-space-1-5) var(--aq-space-2);
    border: 0;
    border-radius: var(--aq-radius);
    background: none;
    color: var(--aq-text-100);
    text-align: start;
    cursor: pointer;
}

.comment-share__avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--aq-bg-300);
    object-fit: cover;
}

.comment-share__who {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.comment-share__chosen[hidden] {
    display: none;
}

.comment-share__chosen img {
    border-radius: 50%;
    object-fit: cover;
}

.comment-voice__rec[hidden],
.comment-voice__ready[hidden],
.comment-voice__notice[hidden] {
    display: none;
}

.comment-voice__ready {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2);
    margin-top: var(--aq-space-2);
    padding: var(--aq-space-1-5) 10px;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
}

.social-popover {
    position: absolute;
    z-index: 20;
    left: 0;
    top: calc(100% + 6px);
    width: min(420px, 100%);
    max-height: 340px;
    overflow-y: auto;
    margin: 0;
    padding: var(--aq-space-2);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
}

.social-popover[hidden] {
    display: none;
}

/* Opened above its box where under it there is no room in sight (js/social-compose.js; DECISIONS #397). */
.social-popover.social-popover--up {
    top: auto;
    bottom: calc(100% + 6px);
}

.social-popover__heading {
    margin: var(--aq-space-2) var(--aq-space-2) var(--aq-space-1);
    color: var(--aq-text-300);
    font-family: var(--aq-font-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.social-mentions__option {
    display: flex;
    align-items: center;
    gap: var(--aq-space-3);
    width: 100%;
    padding: var(--aq-space-2);
    border: 0;
    border-radius: var(--aq-radius);
    background: transparent;
    color: var(--aq-text-100);
    text-align: left;
    cursor: pointer;
}

.social-mentions__option[aria-selected="true"],
.social-mentions__option:hover {
    background: rgb(201 162 39 / 0.14);
}

.social-mentions__option span {
    display: flex;
    flex-direction: column;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.social-mentions__option strong {
    color: var(--aq-text-100);
    font-weight: 600;
}

.social-mentions__avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--aq-bg-100);
    color: var(--aq-accent-light);
    object-fit: cover;
}

.social-emoji__search {
    width: 100%;
    margin-bottom: var(--aq-space-2);
    padding: var(--aq-space-2) 14px;
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius-pill);
    background: var(--aq-bg-100);
    color: var(--aq-text-100);
}

.social-emoji__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.social-emoji__grid .social-popover__heading {
    flex-basis: 100%;
}

.social-emoji__item {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: var(--aq-radius);
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
}

.social-emoji__item:hover,
.social-emoji__item:focus-visible {
    background: rgb(255 255 255 / 0.08);
}

.social-stickers__item img {
    width: 100%;
    height: auto;
}

.social-stickers__item:has(input:checked),
.social-stickers__item:has(input:focus-visible) {
    border-color: var(--aq-accent);
    background: rgb(201 162 39 / 0.12);
}

.social-previews {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
}

.social-previews:empty {
    display: none;
}

.social-preview figcaption,
.social-preview__warn {
    margin: 0;
    color: var(--aq-text-300);
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.aq-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aq-thumb {
    position: relative;
    flex: none;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 0;
    border-radius: var(--aq-radius-md);
    overflow: hidden;
    background: var(--aq-bg-300);
}

.aq-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aq-thumb__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 50%;
    background: rgb(5 7 13 / 78%);
    color: #fff;
    cursor: pointer;
}

/* A 40px touch area (Figma page 30), reaching up and out past the corner, never down over the middle of the
   thumbnail: there a tap opens the editor (DECISIONS #280), and on a 64px phone thumbnail an area centred on the ✕
   covered that middle, so the tap removed the picture instead. */
.aq-thumb__remove::before {
    content: "";
    position: absolute;
    inset: -12px -8px 0 -8px;
}

.aq-thumb__remove:hover,
.aq-thumb__remove:focus-visible {
    background: #05070d;
    border-color: #fff;
}

.aq-thumb--add {
    display: grid;
    place-items: center;
    border: 1.5px dashed var(--aq-text-300);
    background: transparent;
    color: var(--aq-text-300);
    cursor: pointer;
}

.aq-thumb--add:hover,
.aq-thumb--add:focus-visible {
    border-color: var(--aq-text-100);
    color: var(--aq-text-100);
}

.aq-thumb__ring {
    position: absolute;
    inset: 0;
    width: 30px;
    height: 30px;
    margin: auto;
    border: 3px solid rgb(255 255 255 / 25%);
    border-top-color: var(--aq-accent);
    border-radius: 50%;
    animation: aq-spin 0.9s linear infinite;
}

.aq-sending {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: var(--aq-space-1-5) 10px;
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-300);
    color: var(--aq-text-100);
    font-size: 0.8125rem;
}

.aq-sending__track {
    flex: 1 1 80px;
    max-width: 260px;
    height: 6px;
    border-radius: var(--aq-radius-pill);
    background: rgb(255 255 255 / 15%);
    overflow: hidden;
}

.aq-sending__track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--aq-accent);
    transition: width 0.2s ease;
}

.aq-sending__track > span.is-unknown {
    width: 40% !important;
    animation: aq-slide 1.2s ease-in-out infinite;
}

.aq-sending__cancel,
.aq-retry {
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-1-5);
    min-height: 32px;
    padding: var(--aq-space-1) var(--aq-space-3);
    border: 1px solid var(--aq-text-300);
    border-radius: var(--aq-radius-pill);
    background: transparent;
    color: var(--aq-text-100);
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
}

.aq-retry {
    border-color: #fff;
    background: #fff;
    color: #141a33;
    font-weight: 600;
}

.social-preview__warn.is-bad {
    color: #ffb3c0;
}

@keyframes aq-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes aq-slide {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(250%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .aq-thumb__ring,
    .aq-sending__track > span.is-unknown {
        animation-duration: 3s;
    }
}

@media (max-width: 767.98px) {
    .aq-thumb {
        width: 64px;
        height: 64px;
    }
}

/* A tap on a thumbnail opens the picture editor (DECISIONS #281); the pencil shows on hover, and stays once edited. */
.aq-thumb__edit {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.aq-thumb__pen {
    position: absolute;
    bottom: 4px;
    left: 4px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 50%;
    background: rgb(5 7 13 / 78%);
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.aq-thumb.is-edited .aq-thumb__pen,
.aq-thumb__edit:hover .aq-thumb__pen,
.aq-thumb__edit:focus-visible .aq-thumb__pen {
    opacity: 1;
}

@media (pointer: coarse) {
    .aq-thumb__pen {
        opacity: 1;
    }
}

/* The editor (Figma page 30, D4–D6, M4–M6): the whole screen, dark, the picture in the middle. */
.aq-editor {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #05070d;
    color: #f2f5ff;
    font-family: var(--aq-font-primary);
}

.aq-editor[open] {
    display: flex;
    flex-direction: column;
}

.aq-editor::backdrop {
    background: #05070d;
}

.aq-editor button {
    font: inherit;
}

.aq-editor__top,
.aq-editor__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--aq-space-3);
    padding: 10px var(--aq-space-5);
}

.aq-editor__top {
    padding-top: max(10px, env(safe-area-inset-top));
}

.aq-editor__foot {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.aq-editor__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.aq-editor__plain {
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-2);
    min-height: 40px;
    padding: var(--aq-space-1-5) 10px;
    border: 0;
    border-radius: var(--aq-radius-pill);
    background: none;
    color: inherit;
    cursor: pointer;
}

.aq-editor__plain:hover,
.aq-editor__plain:focus-visible {
    background: rgb(255 255 255 / 10%);
}

.aq-editor__plain:disabled {
    opacity: 0.4;
    cursor: default;
    background: none;
}

.aq-editor__stage {
    position: relative;
    flex: 1;
    min-height: 0;
}

.aq-editor__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: grab;
}

.aq-editor__canvas:active {
    cursor: grabbing;
}

.aq-editor__canvas:focus-visible {
    outline: 2px solid var(--aq-accent);
    outline-offset: -2px;
}

.aq-editor__hint {
    position: absolute;
    left: 50%;
    bottom: 12px;
    margin: 0;
    padding: 5px var(--aq-space-3);
    border-radius: var(--aq-radius-pill);
    background: rgb(5 7 13 / 72%);
    color: #f2f5ff;
    font-size: 0.75rem;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}

.aq-editor__hint:empty {
    display: none;
}

.aq-editor__palette {
    position: absolute;
    top: 50%;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--aq-space-3);
    padding: var(--aq-space-3) var(--aq-space-2);
    border-radius: var(--aq-radius-pill);
    background: rgb(26 31 53 / 92%);
    transform: translateY(-50%);
}

.aq-editor__palette[hidden] {
    display: none;
}

.aq-editor__widths {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-1-5);
    padding-top: var(--aq-space-1-5);
    border-top: 1px solid rgb(255 255 255 / 15%);
}

.aq-editor__width {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

.aq-editor__width::after {
    content: "";
    width: var(--dot);
    height: var(--dot);
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
}

.aq-editor__width.is-on::after {
    opacity: 1;
}

.aq-editor__swatches {
    display: flex;
    gap: var(--aq-space-2);
}

.aq-editor__swatch {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 50%;
    background: var(--swatch);
    cursor: pointer;
}

.aq-editor__swatch.is-on {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.aq-editor__context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--aq-space-2);
    min-height: 44px;
    padding: var(--aq-space-2) var(--aq-space-4) 0;
}

.aq-editor__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-1-5);
    min-height: 34px;
    padding: var(--aq-space-1) 14px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: var(--aq-radius-pill);
    background: none;
    color: #f2f5ff;
    font-size: 0.8125rem;
    cursor: pointer;
}

.aq-editor__chip.is-on {
    border-color: #fff;
    background: #fff;
    color: #141a33;
}

/* The crop step of a post's pictures (TASK 02 phase 3; DECISIONS #394): the recommended shape says so on its
   chip, and one line under the chips says why. */
.aq-editor__chip small {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.75;
    text-transform: uppercase;
}

.aq-editor__note {
    flex-basis: 100%;
    margin: 0;
    color: var(--aq-text-300);
    font-size: 0.75rem;
    text-align: center;
}

/* On a phone the chips are one row to swipe: the line would be lost in it, and the hint over the picture says how. */
@media (max-width: 767.98px) {
    .aq-editor__note {
        display: none;
    }
}

.aq-editor__range {
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-2);
    color: var(--aq-text-300);
    font-size: 0.8125rem;
}

.aq-editor__range input {
    width: 140px;
    accent-color: #fff;
}

.aq-editor__input {
    flex: 1 1 220px;
    max-width: 360px;
    min-height: 38px;
    padding: var(--aq-space-1-5) 14px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: var(--aq-radius-pill);
    background: rgb(255 255 255 / 8%);
    color: #fff;
    font-size: 1rem;
}

.aq-editor__input:disabled {
    opacity: 0.5;
}

.aq-editor__tools {
    display: flex;
    justify-content: center;
    gap: var(--aq-space-1-5);
    width: max-content;
    max-width: calc(100% - 24px);
    margin: 10px auto 0;
    padding: var(--aq-space-1-5);
    border-radius: var(--aq-radius-pill);
    background: #1a1f35;
}

.aq-editor__tool {
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-2);
    min-height: 40px;
    padding: var(--aq-space-1-5) var(--aq-space-4);
    border: 0;
    border-radius: var(--aq-radius-pill);
    background: none;
    color: #f2f5ff;
    font-size: 0.8125rem;
    cursor: pointer;
}

.aq-editor__tool.is-on {
    background: #e2b33a;
    color: #141a33;
}

.aq-editor__strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.aq-editor__thumb {
    flex: none;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: var(--aq-radius-md);
    overflow: hidden;
    cursor: pointer;
}

.aq-editor__thumb.is-on {
    outline: 3px solid #e2b33a;
    outline-offset: -3px;
}

.aq-editor__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aq-editor__done {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: var(--aq-space-2);
    min-height: 48px;
    margin-left: auto;
    padding: 10px 22px;
    border: 0;
    border-radius: var(--aq-radius-pill);
    background: #e2b33a;
    color: #141a33;
    font-weight: 600;
    cursor: pointer;
}

.aq-editor__done:disabled {
    opacity: 0.6;
}

@media (max-width: 767.98px) {
    .aq-editor__top,
    .aq-editor__foot {
        padding-inline: var(--aq-space-3);
    }

    .aq-editor__title {
        display: none;
    }

    .aq-editor__plain span,
    .aq-editor__tool span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .aq-editor__tool {
        padding: var(--aq-space-1-5) var(--aq-space-3);
    }

    .aq-editor__palette {
        right: 10px;
    }

    .aq-editor__context {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .aq-editor__context > * {
        flex: none;
    }

    .aq-editor__input {
        flex: 0 0 200px;
    }

    .aq-editor__range input {
        width: 110px;
    }

    .aq-editor__done span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .aq-editor__done {
        width: 56px;
        height: 56px;
        justify-content: center;
        padding: 0;
    }
}

/* A post's pictures, as on Instagram: every one whole (never cropped), in the author's order, one at a time; swiped,
   or stepped with the arrows at its sides (shown by js/feed-carousel.js), "2/5" over it and dots under it. No scrollbar.
   Two fingers zoom a lifted copy (.aq-zoom-copy), so the page itself never pinch-zooms over a picture. */
.social-pictures {
    position: relative;
    overflow: hidden;
    border-radius: var(--aq-radius-md);
}

.social-strip__track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
}

.social-strip__track::-webkit-scrollbar {
    display: none;
}

.social-strip__track:focus-visible {
    outline: 2px solid var(--aq-accent);
    outline-offset: -2px;
}

.social-strip__slide {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    justify-content: center;
    background: rgb(0 0 0 / 45%);
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.social-pictures img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(75vh, 640px);
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}

.social-strip__count {
    position: absolute;
    top: var(--aq-space-3);
    right: var(--aq-space-3);
    padding: var(--aq-space-1) var(--aq-space-2);
    border-radius: var(--aq-radius-pill);
    background: rgb(0 0 0 / 65%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
}

.social-strip__arrow {
    position: absolute;
    top: 50%;
    display: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 85%);
    box-shadow: 0 1px 6px rgb(0 0 0 / 35%);
    color: #111;
    cursor: pointer;
    transform: translateY(-50%);
}

.social-strip__arrow--prev {
    left: var(--aq-space-2);
}

.social-strip__arrow--next {
    right: var(--aq-space-2);
}

.aq-carousel .social-strip__arrow {
    display: flex;
}

.aq-carousel .social-strip.is-start .social-strip__arrow--prev,
.aq-carousel .social-strip.is-end .social-strip__arrow--next {
    display: none;
}

.social-strip__arrow:hover {
    background: #fff;
}

.social-strip__arrow:focus-visible {
    outline: 2px solid var(--aq-accent);
    outline-offset: 2px;
}

.social-strip__dots {
    display: flex;
    justify-content: center;
    gap: var(--aq-space-1);
    margin-top: var(--aq-space-2);
}

.social-strip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--aq-text-300) 40%, transparent);
    transition: background-color 0.2s;
}

.social-strip__dot.is-on {
    background: var(--aq-accent);
}

.aq-zoom-shade {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: #000;
    opacity: 0;
    pointer-events: none;
}

.aq-zoom-copy {
    position: fixed;
    z-index: 1091;
    max-width: none;
    max-height: none;
    object-fit: contain;
    pointer-events: none;
    will-change: transform;
}

.aq-zoom-copy.is-leaving,
.aq-zoom-shade.is-leaving {
    transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .social-strip__dot {
        transition: none;
    }
}

/* Editing a post's pictures from its menu: each one small, with "keep" and its place; then "add more". */
.social-edit-pictures {
    display: grid;
    gap: var(--aq-space-2);
    margin: 0;
    padding: 0;
    border: 0;
}

.social-edit-pictures legend {
    margin-bottom: var(--aq-space-2);
    font-size: 0.85rem;
    font-weight: 600;
}

.social-edit-pictures__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: var(--aq-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-edit-pictures__item {
    display: grid;
    gap: var(--aq-space-1);
    font-size: 0.8rem;
}

.social-edit-pictures__item img {
    width: 100%;
    height: 72px;
    border-radius: var(--aq-radius-sm);
    object-fit: cover;
}

.social-edit-pictures__keep,
.social-edit-pictures__order,
.social-edit-pictures__add {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-1);
    align-items: center;
}

.social-edit-pictures__add {
    font-size: 0.85rem;
}

.comment__sticker {
    display: block;
    width: 120px;
    height: 120px;
    margin-top: var(--aq-space-2);
}

.comment__picture img {
    display: block;
    max-width: min(360px, 100%);
    height: auto;
    margin-top: var(--aq-space-2);
    border-radius: var(--aq-radius-md);
}

/* ---- The band's official posts (DECISIONS #189; Figma B6b) ---- */
.social-card--official {
    border-color: var(--aq-accent);
}

.social-card__artwork {
    width: 100%;
    height: auto;
    max-height: 420px;
    border-radius: var(--aq-radius-md);
    object-fit: cover;
}

/* ---- Admin → Social moderation (DECISIONS #190; Figma F2) ---- */
.social-report__reasons {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-1);
}

/* ---- "Posting as", band and Fan Club timelines (Bands & Fan Clubs phase 10; Figma S06, S24, S31, M4) ---- */
.posting-as {
    position: relative;
    margin-bottom: var(--aq-space-3);
}

.posting-as__panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + var(--aq-space-2));
    left: 0;
    width: min(360px, calc(100vw - 2 * var(--aq-space-4)));
    padding: var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
}

.posting-as__option {
    display: flex;
    align-items: center;
    gap: var(--aq-space-3);
    width: 100%;
    margin-bottom: var(--aq-space-2);
    padding: var(--aq-space-3);
    border: 1px solid transparent;
    border-radius: var(--aq-radius-lg);
    background: none;
    color: var(--aq-text-100);
    text-align: left;
}

.posting-as__option:hover,
.posting-as__option:focus-visible,
.posting-as__option.is-current {
    border-color: var(--aq-accent);
}

.posting-as__avatar {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* A band's or Fan Club's logo in a small round avatar: whole, not cropped like a face. */
img.avatar--logo {
    object-fit: contain;
    padding: 2px;
    background: var(--aq-bg-100);
}

.posting-as__option .posting-as__avatar {
    width: 36px;
    height: 36px;
}

.posting-as__avatar--empty {
    display: inline-grid;
    place-items: center;
    background: var(--aq-primary);
    color: var(--aq-text-100);
    font-size: 0.75rem;
}

.posting-as__who {
    display: grid;
    flex: 1;
}

.posting-as__role,
.posting-as__note {
    color: var(--aq-text-300);
    font-size: 0.8rem;
}

.posting-as__check {
    color: var(--aq-accent);
}

/* On a phone the choice opens from the bottom (M4). */
@media (max-width: 640px) {
    .posting-as__panel {
        position: fixed;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        border-radius: var(--aq-radius-lg) var(--aq-radius-lg) 0 0;
    }
}

.social-track__cover {
    flex: none;
    border-radius: var(--aq-radius-sm);
    object-fit: cover;
}

.entity-follow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-3);
    margin-top: var(--aq-space-3);
}

/* A band's or Fan Club's Timeline: the composer and each post apart, as on a profile (.profile__feed). */
.entity-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-4);
    margin-bottom: var(--aq-space-8);
}

.site-me__item.is-current {
    color: var(--aq-accent);
}

b.posting-as__avatar--empty {
    font-weight: 600;
}

.profile-song .social-reco,
.account-song .social-reco {
    grid-template-columns: 72px 1fr;
    gap: var(--aq-space-3);
    padding: var(--aq-space-3);
}

.profile-song .social-reco__title,
.account-song .social-reco__title {
    font-size: 1.05rem;
}

.share-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-card__song.is-playing {
    padding: 0;
    background: transparent;
}

.share-card__song.is-playing iframe {
    width: 100%;
    height: 80px;
    border: 0;
    border-radius: var(--aq-radius-md);
}

.dm-plus__item[hidden] {
    display: none;
}

.dm-plus__item > span:last-of-type {
    display: flex;
    flex-direction: column;
}

.dm-share[hidden] {
    display: none;
}

.dm-share__result img,
.dm-share__initial {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dm-share__who {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

/* Each platform is one block (name, address, state), so a state never reads as the next button's. */
.smartlink-button:has(.smartlink-button__lookup) {
    row-gap: var(--aq-space-2);
    padding-bottom: var(--aq-space-3);
    border-bottom: 1px solid var(--aq-border);
}

/* The smartlink landing for bands (decision S9; Figma S1, S2). */
.smartlink-landing {
    max-width: 75rem;
    margin: 0 auto;
    padding: var(--aq-space-12) var(--aq-space-4) var(--aq-space-16);
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-16);
}

.smartlink-landing h1,
.smartlink-landing h2 {
    font-family: var(--aq-font-display, Cinzel, Georgia, serif);
    margin: 0;
}

.smartlink-landing__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--aq-space-4);
    text-align: center;
}

.smartlink-landing__hero h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.1;
    max-width: 18ch;
}

.smartlink-landing__kicker {
    margin: 0;
    color: var(--aq-accent);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
}

.smartlink-landing__lead {
    max-width: 46rem;
    color: var(--aq-text-300);
    font-size: 1.15rem;
}

.smartlink-landing__chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--aq-space-2);
}

.smartlink-landing__chips li {
    padding: var(--aq-space-1-5) 14px;
    border: 1px solid var(--aq-accent);
    border-radius: var(--aq-radius-pill);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.smartlink-landing__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--aq-space-3);
}

.smartlink-landing__phones {
    display: flex;
    justify-content: center;
    gap: var(--aq-space-8);
    margin-top: var(--aq-space-8);
}

.smartlink-landing__phones img {
    width: min(320px, 44vw);
    height: auto;
    filter: drop-shadow(0 30px 60px rgb(0 0 0 / 50%));
}

.smartlink-landing__feature {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--aq-space-12);
    align-items: center;
    margin-bottom: var(--aq-space-16);
}

.smartlink-landing__feature.is-flipped .smartlink-landing__copy {
    order: 2;
}

.smartlink-landing__copy {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-3);
}

.smartlink-landing__copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.smartlink-landing__copy p {
    margin: 0;
    color: var(--aq-text-300);
}

.smartlink-landing__copy ul,
.smartlink-landing__steps ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--aq-space-2);
}

.smartlink-landing__print {
    margin: 0;
}

.smartlink-landing__print img {
    width: 100%;
    height: auto;
    border-radius: var(--aq-radius-lg);
    box-shadow: 0 24px 60px rgb(0 0 0 / 45%);
}

.smartlink-landing__steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--aq-space-4);
    text-align: center;
}

.smartlink-landing__steps ol {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: var(--aq-space-4);
    width: 100%;
    counter-reset: step;
}

.smartlink-landing__steps li {
    counter-increment: step;
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
    padding: var(--aq-space-6);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    text-align: start;
}

.smartlink-landing__steps li::before {
    content: counter(step);
    font-family: var(--aq-font-display, Cinzel, Georgia, serif);
    font-size: 2.5rem;
    color: var(--aq-accent-light);
}

.smartlink-landing__steps li span {
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.smartlink-landing__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--aq-space-4);
    padding: var(--aq-space-12) var(--aq-space-6);
    border: 1px solid var(--aq-accent);
    border-radius: var(--aq-radius-xl);
    background: var(--aq-bg-200);
    text-align: center;
}

.smartlink-landing__cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    max-width: 24ch;
}

.smartlink-landing__cta p {
    margin: 0;
    color: var(--aq-text-300);
}

@media (max-width: 767.98px) {
    .smartlink-landing__feature {
        grid-template-columns: 1fr;
        gap: var(--aq-space-6);
        margin-bottom: var(--aq-space-12);
    }

    .smartlink-landing__feature.is-flipped .smartlink-landing__copy {
        order: 0;
    }

    .smartlink-landing__phones {
        gap: var(--aq-space-3);
    }
}

/* The "@" list in the message box (DECISIONS #205; Figma S2-S4): above the box. */
.dm-composer .dm-at.social-popover {
    top: auto;
    bottom: calc(100% + 6px);
    left: var(--aq-space-5);
    width: min(440px, calc(100% - 2 * var(--aq-space-5)));
    max-height: 360px;
    padding: var(--aq-space-1-5);
}

.dm-at__option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: var(--aq-space-3);
    padding: var(--aq-space-2) 10px;
    border: 0;
    border-radius: var(--aq-radius-md);
    background: transparent;
    color: var(--aq-text-100);
    text-align: left;
    cursor: pointer;
}

.dm-at__avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--aq-bg-300);
    color: var(--aq-accent-light);
    object-fit: cover;
}

.dm-at__who {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

@media (width < 768px) {
    .dm-composer .dm-at.social-popover {
        left: 8px;
        width: calc(100% - 16px);
    }
}

.dm-reply[hidden],
.dm-reply [hidden] {
    display: none;
}

@keyframes dm-flash {
    0%,
    60% {
        box-shadow: 0 0 0 2px var(--aq-accent), var(--aq-accent-glow);
    }

    100% {
        box-shadow: none;
    }
}

.dm__back-to-reply[hidden] {
    display: none;
}

.dm-sheet[hidden] {
    display: none;
}

.dm-sheet__panel {
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: var(--aq-space-2) 0 calc(var(--aq-space-6) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-xl) var(--aq-radius-xl) 0 0;
    background: var(--aq-bg-200);
}

/* Voice messages (DECISIONS #221; Figma M7, V1-V3, S1-S4). */
.dm-voice {
    display: flex;
    width: 300px; /* not min(…, 100%): see .dm-music-card */
    max-width: 100%;
    align-items: center;
    gap: var(--aq-space-3);
    padding: var(--aq-space-2);
    border-radius: var(--aq-radius-xl);
    background: var(--aq-bg-300);
}

.dm-voice__play {
    display: grid;
    width: 38px;
    height: 38px;
    flex: none;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--aq-accent, #c9a227);
    color: var(--aq-bg-100, #0d0a1a);
    cursor: pointer;
}

.dm-voice__icon-pause,
.dm-voice.is-playing .dm-voice__icon-play {
    display: none;
}

.dm-voice.is-playing .dm-voice__icon-pause {
    display: block;
}

.dm-voice__track {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: var(--aq-space-1);
}

.dm-voice__wave {
    display: flex;
    height: 24px;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

.dm-voice__wave i {
    flex: 1;
    min-height: 3px;
    height: calc(var(--h, .3) * 100%);
    border-radius: var(--aq-radius-sm);
    background: currentColor;
    opacity: .35;
}

.dm-rec__live {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: var(--aq-space-3);
    padding: var(--aq-space-2) var(--aq-space-4);
    border: 1px solid #d4204a;
    border-radius: var(--aq-radius-pill);
    background: var(--aq-bg-100, #0d0a1a);
}

.dm-rec__dot {
    width: 10px;
    height: 10px;
    flex: none;
    border-radius: 50%;
    background: #d4204a;
    animation: dm-rec-pulse 1s ease-in-out infinite;
}

.dm-rec__wave {
    display: flex;
    flex: 1;
    height: 24px;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    overflow: hidden;
}

.dm-rec__tool {
    display: grid;
    width: 40px;
    height: 40px;
    flex: none;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--aq-text-200, inherit);
    cursor: pointer;
}

.dm-composer.is-recording textarea,
.dm-composer.is-recording .dm-composer__tools,
.dm-composer.is-recording [data-dm-send],
.dm-composer.is-recording [data-dm-mic] {
    display: none;
}

@media (max-width: 720px) {
    .dm-voice {
        width: 240px;
    }
}

/* ---- Stickers and mentions in Messages (DECISIONS #224; Figma page 18, S1-S5, M1-M3) ---- */
.dm-composer {
    position: relative;
}

.dm-stickers__panel {
    position: absolute;
    z-index: 30;
    bottom: calc(100% + 8px);
    left: var(--aq-space-5);
    display: flex;
    width: min(420px, calc(100% - 2 * var(--aq-space-5)));
    max-height: min(520px, 70vh);
    flex-direction: column;
    gap: var(--aq-space-3);
    padding: 14px var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    box-shadow: 0 12px 32px rgb(0 0 0 / 0.45);
}

.dm-stickers__tab {
    flex: none;
    padding: var(--aq-space-1-5) var(--aq-space-3);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    background: transparent;
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.dm-stickers__cell img,
.dm-stickers__cell .dm-sticker-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dm-stickers__menu {
    position: absolute;
    z-index: 35;
    display: flex;
    min-width: 220px;
    flex-direction: column;
    padding: var(--aq-space-1-5);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
    box-shadow: 0 10px 24px rgb(0 0 0 / 0.45);
}

.dm-stickers__menu[hidden] {
    display: none;
}

.dm-stickers__menu button {
    padding: var(--aq-space-2) var(--aq-space-3);
    border: 0;
    border-radius: var(--aq-radius);
    background: transparent;
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    text-align: left;
}

.dm-stickers__menu button:hover,
.dm-stickers__menu button:focus-visible {
    background: color-mix(in srgb, var(--aq-primary) 25%, transparent);
    color: var(--aq-accent-light);
}

.dm-stickers__scrim[hidden] {
    display: none;
}

.dm-stickers__crop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--aq-space-1-5);
    margin: var(--aq-space-2) 0 var(--aq-space-3);
}

.dm-stickers__crop canvas,
.dm-stickers__crop img {
    width: 220px;
    height: 220px;
    border: 2px dashed var(--aq-accent);
    border-radius: var(--aq-radius-lg);
    background: repeating-conic-gradient(var(--aq-bg-100) 0 25%, var(--aq-bg-200) 0 50%) 0 0 / 20px 20px;
    object-fit: contain;
    cursor: grab;
    touch-action: none;
}

/* A sticker in the conversation (S2): no bubble, 128 px. */
.dm-sticker .dm-sticker-img,
.dm-sticker img {
    display: block;
    width: 128px;
    height: 128px;
    object-fit: contain;
}

.dm__mention-jump a {
    display: inline-block;
    padding: 7px 14px;
    border-radius: var(--aq-radius-pill);
    background: var(--aq-accent);
    color: var(--aq-bg-100);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgb(0 0 0 / 0.35);
}

/* The phone (S3, M3): the panel is a sheet where the keyboard would be, the list full width,
   over the radio playing at the foot of the page (1040) as the "+" sheet is. */
@media (max-width: 767.98px) {
    .dm-stickers__panel {
        position: fixed;
        z-index: 1042;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 60vh;
        padding: 10px var(--aq-space-3) calc(var(--aq-space-6) + env(safe-area-inset-bottom));
        border-width: 1px 0 0;
        border-radius: var(--aq-radius-xl) var(--aq-radius-xl) 0 0;
    }

    .dm-composer .dm-at.social-popover {
        left: 0;
        width: 100%;
        border-radius: 0;
    }
}

/* Reactions (DECISIONS #228; Figma 07 · E1-E3). The chips sit on a line of their own above the time, one per
   emoji; the reader's is purple. Hovering or focusing one says who gave it. */
.dm-reactions {
    display: flex;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: var(--aq-space-1-5);
    margin-bottom: 2px;
}

.dm-reaction {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-1);
    padding: 2px 9px 2px var(--aq-space-2);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    background: var(--aq-bg-300);
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
}

.dm-react__button:hover,
.dm-react__button:focus-visible,
.dm-react[open] > .dm-react__button {
    background: color-mix(in srgb, var(--aq-accent) 14%, transparent);
    color: var(--aq-accent-light);
}

/* The quick bar (E1) opens above the bubble. js/messages.js then places it on the screen (fixed), above
   or below the message, so the conversation's scrolling never cuts it. */
.dm-react__panel {
    position: absolute;
    z-index: 25;
    bottom: calc(100% + 6px);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px var(--aq-space-1-5);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    background: var(--aq-bg-200);
    box-shadow: 0 8px 24px rgb(0 0 0 / 45%);
}

.dm-react__quick {
    display: flex;
    gap: 2px;
}

.dm-react__emoji,
.dm-react__more {
    display: grid;
    width: 36px;
    height: 36px;
    flex: none;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--aq-text-300);
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.1s;
}

/* The whole list (E2): the message box's 48, with its search and this device's recent ones. */
.dm-react__all {
    display: flex;
    width: calc(8 * 38px + 7 * 2px);
    flex-direction: column;
    gap: var(--aq-space-2);
}

.dm-react__search {
    width: 100%;
    padding: 7px var(--aq-space-3);
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-100);
    color: var(--aq-text-100);
    font-size: var(--aq-text-sm);
}

.dm-react__grid .dm-react__emoji {
    width: 38px;
    height: 38px;
    border-radius: var(--aq-radius);
}

.dm-react-sheet .dm-react__all {
    width: 100%;
    max-width: calc(8 * 40px + 7 * 2px);
    margin: 0 auto;
}

.dm-react-sheet .dm-react__grid .dm-react__emoji {
    width: 100%;
    max-width: 40px;
    height: 40px;
    font-size: 24px;
}

.dm-who__tab {
    flex: none;
    padding: var(--aq-space-1-5) var(--aq-space-3);
    border: 0;
    border-radius: var(--aq-radius-pill);
    background: var(--aq-bg-300);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.dm-who__tab.is-on {
    background: var(--aq-accent);
    color: var(--aq-bg-100);
}

.dm-who__row,
.dm-who__you {
    display: flex;
    width: 100%;
    align-items: center;
    gap: var(--aq-space-3);
    padding: 10px 0;
}

.dm-who__avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--aq-bg-300);
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-weight: 600;
}

.dm-who__name {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   Events (docs/events-venues-plan.md, phase 1; Figma page 21, E01–E04): */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--aq-space-6);
}

.event-card {
    overflow: hidden;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
    transition: border-color var(--aq-transition), transform var(--aq-transition);
}

.event-card:hover,
.event-card:focus-within {
    border-color: var(--aq-accent);
    transform: translateY(-2px);
}

.event-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.event-card__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card__poster-empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--aq-text-300);
    font-family: var(--aq-font-display);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.event-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--aq-space-2);
    padding: var(--aq-space-4) var(--aq-space-4) var(--aq-space-4);
}

.event-card__foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
    margin-top: auto;
    padding-top: var(--aq-space-2);
}

.event-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border: 1px solid var(--aq-accent);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.event-pill--type {
    border-color: var(--aq-primary);
    background: var(--aq-primary);
    color: var(--aq-primary-foreground);
}

.event-pill--dim {
    border-color: var(--aq-border);
    background: var(--aq-bg-300);
    color: var(--aq-text-200);
}

.event-detail__cover img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.event-detail__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--aq-space-6);
    align-items: start;
}

.event-people {
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-people__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-3);
    padding: var(--aq-space-3) 0;
    border-top: 1px solid var(--aq-border);
}

.event-people__row:first-child {
    border-top: 0;
}

.event-people__name {
    font-weight: 600;
}

.event-people__note {
    flex: 1;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

/* A field the server requires (RequiredMark, #252), and the message beside a field a refused save is about. */
.req {
    margin-inline-start: 0.3em;
    color: var(--aq-accent);
    font-size: 0.8em;
}

.form-control[aria-invalid="true"],
.form-select[aria-invalid="true"] {
    border-color: #ff8fa3;
}

.event-steps__item.is-done .event-steps__n {
    background: var(--aq-accent);
    color: var(--aq-bg-100);
}

.event-steps__item.is-current .event-steps__n {
    background: var(--aq-text-100);
    color: var(--aq-bg-100);
}

.event-check {
    display: flex;
    align-items: center;
    gap: var(--aq-space-2);
    margin: var(--aq-space-2) 0;
}

.event-poster {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: var(--aq-space-6);
    align-items: start;
}

.event-poster__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 860px) {
    .event-detail__cols,
    .event-poster {
        grid-template-columns: minmax(0, 1fr);
    }

    /* The current step shows its name; it gives way (ellipsis) before the row can pass the edge. */
    .event-steps ol:has(.is-current) {
        display: flex;
    }
}

.events-page .page__heading,
.event-form .page__heading {
    font-family: var(--aq-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.event-typechip:hover,
.event-typechip.is-current {
    border-color: var(--aq-accent);
    background: var(--aq-accent);
    color: var(--aq-bg-100);
}

.studio-card .studio-buttons form + form,
.event-form__nav form + form {
    margin-top: 0;
}

.event-intro a,
.event-detail__by a {
    color: var(--aq-accent-light);
}

.event-detail a:not([class*="btn-"]),
.event-form a:not([class*="btn-"]),
.event-people a {
    color: var(--aq-accent-light);
}

@media (max-width: 600px) {
    .event-people__note {
        flex-basis: 100%;
        order: 3;
    }
}

.event-filterbox__row .form-control,
.event-filterbox__row .form-select {
    flex: 1 1 180px;
    border-radius: var(--aq-radius-pill);
}

.event-calendar__day.is-other {
    background: var(--aq-bg-200);
    color: var(--aq-text-300);
}

.event-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--aq-space-1-5);
    margin-bottom: var(--aq-space-6);
}

.event-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--aq-radius);
    object-fit: cover;
}

.event-rsvp {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
    margin-bottom: var(--aq-space-3);
}

.event-rsvp form {
    flex: 1 1 120px;
}

.event-rsvp button {
    width: 100%;
}

.event-embed__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-embed__body {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-1-5);
    padding: var(--aq-space-4);
}

.event-grid--profile {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--aq-space-4);
}

/* ==========================================================================
   Band signup wizard (docs/band-signup-wizard-plan.md, phase 4; Figma page 20:
   W1, W1b, W2, W3, W3b, E1–E10, M1–M3). Two columns on a desktop, one on a
   phone, the main button pinned to the bottom of the screen there.
   ========================================================================== */
.wizard {
    padding: var(--aq-space-8) 0 var(--aq-space-16);
}

.wizard-steps__item.is-current,
.wizard-steps__item.is-done {
    color: var(--aq-text-100);
}

.wizard-steps__item.is-current .wizard-steps__dot,
.wizard-steps__item.is-done .wizard-steps__dot {
    border-color: var(--aq-accent);
    background: var(--aq-accent);
    color: var(--aq-bg-100);
}

.wizard .account__error {
    margin: var(--aq-space-1) 0 0;
    color: #ff8fa6;
    font-size: var(--aq-text-sm);
}

.wizard .account__trap {
    position: absolute;
    inset-inline-start: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wizard .form-label {
    color: var(--aq-text-200);
    font-size: var(--aq-text-sm);
    font-weight: 600;
}

.wizard .form-text {
    margin: 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.wizard-bar .is-busy {
    opacity: 0.7;
    cursor: progress;
}

.wizard-pair__box.is-current {
    border-color: var(--aq-accent);
    background: color-mix(in srgb, var(--aq-accent) 8%, transparent);
}

@media (max-width: 899.98px) {
    .wizard {
        padding-top: var(--aq-space-6);
        padding-bottom: 7rem;
    }

    /* The pinned bar (two rows at most, ~8rem) never covers the footer's last row (#251). */
    body:has(.wizard .wizard-bar) {
        padding-bottom: calc(9rem + env(safe-area-inset-bottom));
    }
}

/* The tutorial after registering a band (Figma T1–T4, M4–M7): the landings' tour on the site's own page. */
.band-welcome {
    padding: var(--aq-space-8) var(--aq-space-4) var(--aq-space-16);
}

@media (max-width: 767.98px) {
    .band-welcome {
        padding-inline: 0;
    }
}

/* --- Group chat radio, phase 2 (docs/chat-radio-plan.md; Figma page 22) ------------- */

/* The chat's radio line under the head went in the global radio's phase 5: the head's button opens the radio. */
.radio {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-6);
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--aq-space-8) var(--aq-space-4) var(--aq-space-16);
}

.radio-tabs a {
    padding-bottom: var(--aq-space-3);
    border-bottom: 2px solid transparent;
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.radio-filter__note a {
    color: var(--aq-accent-light);
}

.radio-chip span {
    color: var(--aq-text-300);
}

.radio-chip.is-current {
    border-color: var(--aq-accent);
    background: color-mix(in srgb, var(--aq-accent) 18%, var(--aq-bg-300));
}

.radio-row:hover {
    background: var(--aq-bg-300);
}

.radio-row__song strong {
    overflow: hidden;
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radio-row__song > span {
    overflow: hidden;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radio-spotify svg {
    width: 20px;
    height: 20px;
}

.radio-mine__count strong {
    color: var(--aq-accent-light);
    font-size: var(--aq-text-3xl);
}

.radio-mine__pips span.is-on {
    background: var(--aq-accent);
}

.radio-search__source svg {
    width: 16px;
    height: 16px;
}

.radio-result__badge {
    padding: var(--aq-space-1) var(--aq-space-3);
    border-radius: var(--aq-radius-pill);
    background: var(--aq-bg-300);
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

/* Where a song can play (hybrid radio, phase 2; Figma "Hybrid · Source badge"): small, never a big logo. */
.radio-sources {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-1);
    margin-top: 2px;
}

.radio-source {
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-1);
    padding: 1px var(--aq-space-2) 1px var(--aq-space-1-5);
    border-radius: var(--aq-radius-pill);
    font-family: var(--aq-font-primary);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
}

.radio-source svg {
    width: 12px;
    height: 12px;
}

.radio-source--spotify {
    background: var(--aq-bg-300);
    color: var(--aq-text-100);
}

.radio-source--mp3 {
    background: color-mix(in srgb, var(--aq-accent) 16%, transparent);
    color: var(--aq-accent-light);
}

/* MP3 only for now (extra phase 1): a song only on Spotify, kept for its member to replace; it does not play. */
.radio-source--off {
    border: 1px dashed var(--aq-border);
    color: var(--aq-text-200);
}

.radio-person__who strong {
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
}

.radio-person__who span,
.radio-person__list span {
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

@media (max-width: 720px) {
    .radio {
        padding-top: var(--aq-space-4);
    }
}

/* --- Group chat radio, phase 3: the player (docs/chat-radio-plan.md) ---------------------- */
.radio-play {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--aq-accent);
    border-radius: 50%;
    background: transparent;
    color: var(--aq-accent-light);
    font-size: 0.8rem;
}

.radio-play:hover,
.radio-play:focus-visible {
    background: var(--aq-accent);
    color: var(--aq-bg-100);
}

.radio-row.is-playing {
    background: color-mix(in srgb, var(--aq-accent) 12%, transparent);
}

/* The radio's own light player (hybrid phase 3; Figma "Chat Radio — Spotify & MP3 Hybrid", M1–M8, D1–D8).
   One row: 52px on a phone, 48px on a desktop. In a group's chat it docks over the chat's radio line
   (js/radio-player.js sets --aq-radio-top/left/width); elsewhere it sits at the bottom and the page keeps
   room for it (--aq-radio-h). */
html.aq-radio-on body {
    padding-bottom: var(--aq-radio-h, 52px);
}

html.aq-radio-on .dm {
    height: clamp(420px, calc(100vh - var(--aq-header-height) - 2 * var(--aq-space-8) - var(--aq-radio-h, 52px)), 900px);
}

.aq-radio {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    color: var(--aq-text-100);
    font-family: var(--aq-font-secondary);
}

.aq-radio[hidden] {
    display: none;
}

.aq-radio.is-docked {
    top: var(--aq-radio-top, auto);
    right: auto;
    bottom: auto;
    left: var(--aq-radio-left, 0);
    width: var(--aq-radio-width, 100%);
    /* Docked in the chat it is part of the page: under the site header (1030) and its menus. */
    z-index: 1020;
}

/* The expanded radio still opens over everything, the header included. */
.aq-radio.is-docked:has(> .aq-radio__panel:not([hidden])) {
    z-index: 1040;
}

.aq-radio__bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--aq-space-2);
    height: 52px;
    overflow: hidden;
    padding: 0 var(--aq-space-1) 0 var(--aq-space-3);
    border-top: 1px solid var(--aq-border);
    background: var(--aq-bg-200);
    cursor: pointer;
}

.aq-radio.is-docked .aq-radio__bar {
    border-top: 0;
    border-bottom: 1px solid var(--aq-border);
}

.aq-radio.is-hidden .aq-radio__bar {
    display: none;
}

.aq-radio__label {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: var(--aq-space-1-5);
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* A phone's bar has only the label's icon, play, the title, hide and expand. */
.aq-radio__bar .aq-radio__label-text,
.aq-radio__bar .aq-radio__cover,
.aq-radio__bar .aq-radio__badge,
.aq-radio__bar .aq-radio__time,
.aq-radio__bar .aq-radio__progress,
.aq-radio__bar .aq-radio__btn--wide,
.aq-radio__bar .aq-radio__volume,
.aq-radio__resume[hidden] {
    display: none;
}

.aq-radio__btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--aq-text-300);
    cursor: pointer;
}

.aq-radio__btn:hover,
.aq-radio__btn:focus-visible {
    background: var(--aq-bg-300);
    color: var(--aq-text-100);
}

.aq-radio__btn:focus-visible,
.aq-radio__title:focus-visible,
.aq-radio__pill:focus-visible {
    outline: 2px solid var(--aq-accent-light);
    outline-offset: 2px;
}

.aq-radio__btn--main {
    background: var(--aq-accent);
    color: var(--aq-bg-100);
}

.aq-radio__btn--main:hover,
.aq-radio__btn--main:focus-visible {
    background: var(--aq-accent-light);
    color: var(--aq-bg-100);
}

.aq-radio__btn--big {
    width: 56px;
    height: 56px;
}

.aq-radio__btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.aq-radio .aq-radio__icon-pause,
.aq-radio.is-playing .aq-radio__icon-play {
    display: none;
}

.aq-radio.is-playing .aq-radio__icon-pause {
    display: inline;
}

.aq-radio__title {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: var(--aq-space-1-5);
    min-width: 0;
    height: 44px;
    padding: 0 var(--aq-space-1);
    border: 0;
    border-radius: var(--aq-radius-sm);
    background: none;
    color: var(--aq-text-100);
    font: 500 14px/1.2 var(--aq-font-secondary);
    text-align: left;
    cursor: pointer;
}

.aq-radio__glyph {
    display: inline-flex;
    flex: none;
    color: var(--aq-accent-light);
}

.aq-radio__song {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aq-radio__paused {
    display: none;
    flex: none;
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: 11px;
}

.aq-radio.is-paused .aq-radio__song {
    color: var(--aq-text-300);
}

.aq-radio.is-paused .aq-radio__paused {
    display: inline;
}

.aq-radio__resume {
    flex: none;
}

/* The phone's progress: a 2px line along the bar's bottom. */
.aq-radio__line {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--aq-border);
}

.aq-radio__line span,
.aq-radio__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--aq-accent);
}

.aq-radio__note {
    margin: 0;
    padding: var(--aq-space-2) var(--aq-space-4);
    border-top: 1px solid var(--aq-border);
    background: var(--aq-bg-300);
    color: var(--aq-text-200);
    font-size: var(--aq-text-xs);
}

.aq-radio__note a {
    color: var(--aq-accent-light);
}

/* The invitation to connect Spotify (Figma "Conectar Spotify", C1/D1): two buttons, 44px targets on a phone. */
.aq-radio__note-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2);
    margin: var(--aq-space-1) var(--aq-space-2) 0 0;
    vertical-align: middle;
}

.aq-radio__note-actions .btn-gold,
.aq-radio__note-actions .btn-outline {
    min-height: 36px;
}

@media (max-width: 767.98px) {
    .aq-radio__note-actions .btn-gold,
    .aq-radio__note-actions .btn-outline,
    .aq-radio__note-actions .aq-radio__btn {
        min-height: 44px;
    }
}

.radio-source--none {
    background: color-mix(in srgb, #d4204a 16%, transparent);
    color: #ff8aa0;
}

/* The expanded radio: a sheet on a phone, a 440px drawer on a desktop. */
.aq-radio__panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1045;
    overflow-y: auto;
    max-height: calc(100dvh - 64px);
    padding: var(--aq-space-4) var(--aq-space-4) calc(var(--aq-space-6) + env(safe-area-inset-bottom, 0px));
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-xl) var(--aq-radius-xl) 0 0;
    background: var(--aq-bg-200);
    box-shadow: 0 -12px 40px rgb(0 0 0 / 55%);
    overscroll-behavior: contain;
}

.aq-radio__panel[hidden] {
    display: none;
}

.aq-radio__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--aq-space-2);
}

.aq-radio__panel-head h2 {
    margin: 0;
    color: var(--aq-accent-light);
    font-family: var(--aq-font-display);
    font-size: 1.1rem;
}

.aq-radio__now {
    display: flex;
    align-items: center;
    gap: var(--aq-space-3);
    margin-top: var(--aq-space-3);
}

.aq-radio__now-cover {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: var(--aq-radius-md);
    object-fit: cover;
}

.aq-radio__now-cover--none {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--aq-bg-300);
    color: var(--aq-accent-light);
    font-size: 1.6rem;
}

.aq-radio__now-cover--none[hidden] {
    display: none;
}

.aq-radio__now-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.aq-radio__now-text strong {
    font-size: 1.1rem;
    font-weight: 500;
}

.aq-radio__now-text > span {
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.aq-radio__now-source {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2);
    font-size: 12px;
}

.aq-radio__seek {
    display: block;
    margin-top: var(--aq-space-4);
}

.aq-radio__seek input,
.aq-radio__volume input {
    width: 100%;
    accent-color: var(--aq-accent);
}

.aq-radio__times {
    display: flex;
    justify-content: space-between;
    margin: 0;
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: 11px;
}

.aq-radio__panel-controls {
    display: flex;
    align-items: center;
    gap: var(--aq-space-2);
    margin-top: var(--aq-space-3);
}

.aq-radio__open {
    display: inline-flex;
    align-items: center;
    gap: var(--aq-space-1-5);
    margin-left: auto;
    padding: var(--aq-space-2) 0;
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: 12px;
}

.aq-radio__open[hidden] {
    display: none;
}

.aq-radio__own {
    margin: var(--aq-space-3) 0 0;
    padding: var(--aq-space-2) var(--aq-space-3);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-300);
    color: var(--aq-text-200);
    font-size: var(--aq-text-xs);
}

.aq-radio__sync {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--aq-space-2);
    margin-top: var(--aq-space-3);
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: 12px;
    font-weight: 600;
}

.aq-radio__sync.is-solo {
    color: var(--aq-text-300);
}

.aq-radio__sync [hidden] {
    display: none;
}

.radio-source--off {
    color: var(--aq-text-300);
    font-style: italic;
}

/* Managing from the expanded radio (hybrid phase 5): tabs, the member's five places, the unified search. */
.aq-radio__tabs {
    display: flex;
    margin-top: var(--aq-space-4);
    border-bottom: 1px solid var(--aq-border);
}

.aq-radio__tabs [role="tab"] {
    flex: 1 1 0;
    min-height: 44px;
    padding: var(--aq-space-2);
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.aq-radio__tabs [role="tab"][aria-selected="true"] {
    border-bottom-color: var(--aq-accent);
    color: var(--aq-accent-light);
}

.aq-radio__tabs [role="tab"]:focus-visible {
    outline: 2px solid var(--aq-accent-light);
    outline-offset: -2px;
}

[data-radio-pane] {
    margin-top: var(--aq-space-3);
}

[data-radio-pane][hidden],
.aq-radio__status[hidden],
.aq-radio__block[hidden],
.aq-radio__replacing[hidden] {
    display: none;
}

.aq-radio__status {
    margin: var(--aq-space-3) 0 0;
    padding: var(--aq-space-2) var(--aq-space-3);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-300);
    font-size: var(--aq-text-xs);
}

.aq-radio__status.is-error {
    background: color-mix(in srgb, #d4204a 16%, transparent);
}

.aq-radio__block,
.aq-radio__replacing {
    margin: 0 0 var(--aq-space-2);
    color: var(--aq-text-200);
    font-size: var(--aq-text-xs);
}

.aq-radio__mine,
.aq-radio__results {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.aq-radio__slot,
.aq-radio__result {
    display: flex;
    align-items: center;
    gap: var(--aq-space-2);
    min-height: 56px;
    padding: var(--aq-space-2) var(--aq-space-3);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-100);
}

.aq-radio__slot--free {
    border: 1px dashed var(--aq-border);
    background: transparent;
}

.aq-radio__slot--free.is-off {
    color: var(--aq-text-300);
}

.aq-radio__slot-n {
    flex: none;
    width: 20px;
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: 12px;
    text-align: center;
}

.aq-radio__slot-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.aq-radio__slot-text strong,
.aq-radio__slot-text > span:not(.radio-source) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aq-radio__slot-text > span:not(.radio-source):not(.aq-radio__there) {
    color: var(--aq-text-300);
    font-size: 12px;
}

.aq-radio__slot-text .radio-source {
    align-self: flex-start;
}

.aq-radio__slot-actions,
.aq-radio__slot-ask {
    display: inline-flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-1);
    font-size: 12px;
}

.aq-radio__slot-add {
    flex: 1 1 auto;
    min-height: 44px;
    border: 0;
    background: none;
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.aq-radio__result img,
.aq-radio__nocover {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: var(--aq-radius);
    object-fit: cover;
}

.aq-radio__nocover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--aq-bg-300);
    color: var(--aq-accent-light);
}

.aq-radio__there {
    color: var(--aq-accent-light);
    font-size: 11px;
}

.aq-radio__search {
    display: flex;
    gap: var(--aq-space-2);
    margin-bottom: var(--aq-space-3);
}

.aq-radio__search input {
    flex: 1 1 auto;
    min-width: 0;
}

.aq-radio__empty {
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.aq-radio__mod {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 0;
    border: 0;
    background: none;
    color: #ff8aa0;
    font-size: 11px;
    cursor: pointer;
}

.aq-radio__upnext {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.aq-radio__upnext li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px var(--aq-space-2);
    align-items: center;
    padding: var(--aq-space-2) var(--aq-space-3);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-100);
}

.aq-radio__upnext li.is-off {
    opacity: 0.7;
}

.aq-radio__up-title {
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aq-radio__up-meta {
    grid-column: 1;
    overflow: hidden;
    color: var(--aq-text-300);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aq-radio__upnext .radio-source {
    grid-row: 1 / span 2;
    grid-column: 2;
}

.aq-radio__manage {
    display: block;
    margin-top: var(--aq-space-4);
    text-align: center;
}

/* The member's radios in the expanded radio (global radio, phase 7; Figma page 45, M09/D03). */
.aq-radio__radios {
    display: grid;
    gap: var(--aq-space-2);
    margin: var(--aq-space-3) 0 0;
    padding: 0;
    list-style: none;
}

.aq-radio__radio {
    display: flex;
    align-items: center;
    gap: var(--aq-space-3);
    padding: var(--aq-space-3);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-100);
}

.aq-radio__radio.is-current {
    border-color: var(--aq-accent);
    background: color-mix(in srgb, var(--aq-accent) 10%, var(--aq-bg-100));
}

.aq-radio__radio-text {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
}

.aq-radio__radio-text strong {
    overflow: hidden;
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aq-radio__radio-text span {
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.aq-radio__radio-text a {
    color: var(--aq-accent-light);
    font-size: var(--aq-text-xs);
}

.aq-radio__radio-on {
    flex: none;
    padding: 2px 10px;
    border: 1px solid var(--aq-accent);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.aq-radio__radio .btn--small {
    flex: none;
    min-height: 44px;
}

/* The radio closed (global radio, phase 5; Figma page 45, M06/W3): a round 56px button on a phone, a pill with the
   song on a computer, in the corner. The radio's notices and "Continue" sit just above it: there is no bar. */
.aq-radio__pill {
    position: fixed;
    right: calc(var(--aq-space-4) + env(safe-area-inset-right, 0px));
    bottom: calc(var(--aq-space-4) + env(safe-area-inset-bottom, 0px));
    display: inline-flex;
    align-items: center;
}

.aq-radio__pill[hidden] {
    display: none;
}

.aq-radio__mini-open {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid var(--aq-accent);
    border-radius: 50%;
    background: var(--aq-bg-200);
    color: var(--aq-accent-light);
    box-shadow: 0 6px 18px rgb(0 0 0 / 50%);
    cursor: pointer;
}

.aq-radio__mini-toggle {
    display: none;
}

.aq-radio__mini-open:focus-visible,
.aq-radio__mini-toggle:focus-visible,
.dm-radio-open:focus-visible {
    outline: 2px solid var(--aq-accent-light);
    outline-offset: 2px;
}

.aq-radio__mini-title {
    display: none;
}

@media (min-width: 768px) {
    .aq-radio__pill {
        gap: 0;
        border: 1px solid var(--aq-accent);
        border-radius: var(--aq-radius-pill);
        background: var(--aq-bg-200);
        box-shadow: 0 6px 18px rgb(0 0 0 / 50%);
    }

    .aq-radio__mini-toggle {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin-left: var(--aq-space-1);
        border: 0;
        border-radius: 50%;
        background: var(--aq-accent);
        color: var(--aq-bg-100);
        cursor: pointer;
    }

    .aq-radio__mini-open {
        display: inline-flex;
        gap: var(--aq-space-2);
        width: auto;
        max-width: 240px;
        height: 48px;
        padding: 0 var(--aq-space-4) 0 var(--aq-space-3);
        border: 0;
        border-radius: var(--aq-radius-pill);
        background: transparent;
        box-shadow: none;
    }

    .aq-radio__mini-title {
        display: block;
        overflow: hidden;
        font-family: var(--aq-font-primary);
        font-size: var(--aq-text-xs);
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.aq-radio__note,
.aq-radio__resume {
    position: fixed;
    right: calc(var(--aq-space-4) + env(safe-area-inset-right, 0px));
    bottom: calc(var(--aq-space-4) + 64px + env(safe-area-inset-bottom, 0px));
    max-width: min(360px, calc(100vw - 2 * var(--aq-space-4)));
    border-radius: var(--aq-radius-md);
    box-shadow: 0 6px 18px rgb(0 0 0 / 45%);
}

.aq-radio__note {
    border: 1px solid var(--aq-border);
}

/* With the radio open, its notices sit over the panel's foot. */
.aq-radio.is-expanded .aq-radio__note,
.aq-radio.is-expanded .aq-radio__resume {
    z-index: 1046;
}

/* The three bars that move while a song plays: in the corner button and in a chat head's radio button. */
.aq-radio__eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.aq-radio__eq i {
    width: 3px;
    height: 100%;
    border-radius: var(--aq-radius-sm);
    background: currentColor;
    transform-origin: bottom;
}

.aq-radio__eq i:nth-child(1) { height: 60%; }

.aq-radio__eq i:nth-child(3) { height: 40%; }

html.aq-radio-playing .aq-radio__eq i,
.dm-radio-open.is-here .aq-radio__eq i {
    animation: aq-radio-bars 1s ease-in-out infinite;
}

.aq-radio__eq i:nth-child(2) { animation-delay: -0.3s; }

.aq-radio__eq i:nth-child(3) { animation-delay: -0.6s; }

@keyframes aq-radio-bars {
    50% { transform: scaleY(0.35); }
}

@media (prefers-reduced-motion: reduce) {
    .aq-radio__eq i {
        animation: none !important;
    }
}

.dm-radio-open.is-here .dm-radio-open__icon {
    display: none;
}

.dm-radio-open.is-here .dm-radio-open__eq {
    display: inline-flex;
}

@media (min-width: 768px) {
    .aq-radio__bar {
        gap: var(--aq-space-3);
        height: 48px;
        padding: 0 var(--aq-space-3) 0 var(--aq-space-4);
    }

    .aq-radio__bar .aq-radio__label-text,
    .aq-radio__bar .aq-radio__badge,
    .aq-radio__bar .aq-radio__time {
        display: inline-flex;
        flex: none;
    }

    .aq-radio__bar .aq-radio__cover:not([hidden]) {
        display: block;
        flex: none;
        width: 32px;
        height: 32px;
        border-radius: var(--aq-radius);
        object-fit: cover;
    }

    .aq-radio__time {
        color: var(--aq-text-300);
        font-family: var(--aq-font-primary);
        font-size: 12px;
        font-variant-numeric: tabular-nums;
    }

    .aq-radio__bar .aq-radio__progress {
        display: block;
        flex: none;
        width: 120px;
        height: 4px;
        border-radius: var(--aq-radius-sm);
        background: var(--aq-border);
    }

    .aq-radio__line {
        display: none;
    }

    .aq-radio__btn {
        width: 36px;
        height: 36px;
    }

    .aq-radio__btn--big {
        width: 56px;
        height: 56px;
    }

    .aq-radio__bar .aq-radio__btn--wide {
        display: inline-flex;
    }

    .aq-radio__bar .aq-radio__volume {
        display: inline-flex;
        flex: none;
        align-items: center;
        gap: var(--aq-space-1-5);
        width: 110px;
        color: var(--aq-text-300);
    }

    /* A narrow conversation keeps the title first: the extras go as the bar gets shorter. */
    .aq-radio__bar {
        container-type: inline-size;
    }

    .aq-radio__panel {
        top: calc(var(--aq-header-height) + var(--aq-space-4));
        right: var(--aq-space-4);
        bottom: var(--aq-space-4);
        left: auto;
        width: 440px;
        max-height: none;
        border-radius: var(--aq-radius-lg);
        box-shadow: -12px 0 40px rgb(0 0 0 / 55%);
    }
}

@container (max-width: 820px) {
    .aq-radio__bar .aq-radio__volume {
        display: none;
    }
}

@container (max-width: 680px) {
    .aq-radio__bar .aq-radio__progress,
    .aq-radio__bar .aq-radio__label-text {
        display: none;
    }
}

@container (max-width: 560px) {
    .aq-radio__bar .aq-radio__badge,
    .aq-radio__bar .aq-radio__time,
    .aq-radio__bar .aq-radio__btn--wide,
    .aq-radio__bar .aq-radio__cover:not([hidden]) {
        display: none;
    }
}

@container (min-width: 561px) {
    .aq-radio__title {
        min-width: 120px;
    }
}

@media (max-width: 767.98px) {
    /* The open conversation fits the screen less the player (DECISIONS #223 keeps it to the visible height). */
    html.aq-radio-on body:has(.dm--open) {
        height: calc(var(--dm-vh, 100dvh) - var(--aq-radio-h, 52px));
        padding-bottom: 0;
    }
}

.venue-photos__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.venue-viewer__frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.chronicle-grid__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.chronicle-grid__link:hover img,
.chronicle-grid__link:focus-visible img {
    transform: scale(1.03);
}

.chronicle-reels {
    height: min(86vh, 782px);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior: contain;
    border-radius: var(--aq-radius-md);
    background: #000;
    scrollbar-width: none;
}

.chronicle-reels::-webkit-scrollbar {
    display: none;
}

.chronicle-reels:focus-visible {
    outline: 2px solid var(--aq-accent-light);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .chronicle-reels {
        height: calc(100svh - 120px);
        max-height: none;
        margin: 0 -16px;
        border-radius: 0;
    }
}

/* In the feed: the video itself, playing muted as it scrolls by (Figma page 21, section R). */
.social-chronicle {
    position: relative;
    width: min(100%, 360px);
    margin-top: var(--aq-space-2);
}

.social-chronicle .aq-video {
    border-radius: var(--aq-radius-md);
}

.social-chronicle__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: var(--aq-space-1-5);
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
}

.chronicle-manage__item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: var(--aq-space-4);
    align-items: start;
}

.chronicle-manage__poster {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: var(--aq-radius);
    background: var(--aq-bg-200);
}

.chronicle-manage__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chronicle-manage__title {
    font-weight: 600;
    margin: 0 0 var(--aq-space-1);
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-1-5);
    align-items: center;
}

.chronicle-manage__facts {
    color: var(--aq-text-300);
    font-size: 0.85rem;
    margin: 0 0 var(--aq-space-1);
}

.chronicle-manage__actions {
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: var(--aq-space-2);
}

.chronicle-checks .is-ok {
    color: var(--aq-success-text);
}

.chronicle-checks .is-error {
    color: var(--aq-danger-text);
}

/* --- Group chat albums, phase 4a (docs/chat-albums-plan.md; Figma page 25) ------------- */
.albums {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-6);
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--aq-space-8) var(--aq-space-4) var(--aq-space-16);
}

@media (max-width: 767.98px) {
    .albums {
        padding-top: var(--aq-space-4);
    }
}

/* --- Group chat polls, phase 5 (docs/chat-polls-plan.md; Figma page 27) ------------------ */
button.poll-option,
label.poll-option {
    cursor: pointer;
    transition: border-color var(--aq-transition);
}

.chronicle-overlay {
    width: min(92vw, 420px);
    max-height: 94vh;
    padding: 0;
    border: 0;
    border-radius: var(--aq-radius-lg);
    background: #000;
    color: #fff;
    overflow: hidden;
}

.chronicle-overlay::backdrop {
    background: rgb(0 0 0 / 80%);
}

/* --- Group chats, phase 6: one navigation on every page of a group (docs/chat-radio-plan.md) --- */

/* A Chronicle's video, Instagram-style: our own controls over a 9:16 frame (Figma page 21, section R). */
.aq-video {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.aq-video__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aq-video__toggle {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.aq-video__toggle:focus-visible {
    outline: 2px solid var(--aq-accent-light);
    outline-offset: -4px;
}

.aq-video__big {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: rgb(0 0 0 / 55%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

.aq-video.is-paused .aq-video__big {
    opacity: 1;
    transform: scale(1);
}

.aq-video__sound {
    position: absolute;
    right: 10px;
    bottom: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 55%);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 1;
}

.aq-video__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgb(255 255 255 / 25%);
    pointer-events: none;
}

.aq-video__progress > span {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
}

.aq-video__heart {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 6rem;
    line-height: 1;
    color: #ff3b5c;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 4px 18px rgb(0 0 0 / 40%);
}

.aq-video.is-hearted .aq-video__heart {
    animation: aq-video-heart 0.8s ease-out;
}

@keyframes aq-video-heart {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .aq-video.is-hearted .aq-video__heart {
        animation: none;
    }
}

/* ---- The feed on a phone (DECISIONS #278; Figma page 29, M7 and M8) ---- */
@media (max-width: 767.98px) {
    /* The page's side room, which a feed card reaches over to run edge to edge (the feed shell, at the end of this
       file): 12px on every page ("Edge to edge on a phone", below), 16px on the Community Feed. The words sit 14px in
       from the side (Figma A1). */
    :root {
        --aq-feed-gutter: 12px;
        --aq-feed-inset: 14px;
    }

    /* Every feed card (Figma A1): no border, corner or surface of its own, 8px from the next (the shell's gap). */
    .feed-shell > .feed-card {
        margin-inline: calc(-1 * var(--aq-feed-gutter));
        padding-inline: var(--aq-feed-inset);
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .feed-shell > .social-card {
        /* One post at a time comes to rest at the top (mobile feed phase 1, D2): "proximity", so a post taller than
           the screen is read to its end and never held. */
        scroll-snap-align: start;
        scroll-margin-top: 0;
    }

    html:has(.feed-shell > .social-card--chronicle) {
        scroll-snap-type: y proximity;
        scroll-padding-top: var(--aq-header-real, var(--aq-header-height));
        /* The header comes and goes over a Chronicle (#283): the Chronicle should move into its place, not be held. */
        overflow-anchor: none;
    }

    .feed-shell > .social-card--chronicle {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 1fr auto auto auto auto;
        column-gap: var(--aq-space-3);
        row-gap: var(--aq-space-1-5);
        height: calc(100svh - var(--aq-header-real, var(--aq-header-height)));
        height: calc(100dvh - var(--aq-header-real, var(--aq-header-height)));
        padding: 0 0 10px;
        overflow: hidden;
        border: 0;
        background: #000;
        scroll-snap-align: start;
        scroll-margin-top: 0;
    }

    /* A folded Chronicle (the Community Feed, DECISIONS #157's fold) is still this full-screen card on a phone: its
       rest shows as if it were not folded, through the wrapper (every "> ." rule below reaches through it), and its
       title line steps aside; the computer keeps the folded card and the overlay (js/feed-fold.js). */
    .feed-shell > .social-card--chronicle > .social-card__title-line {
        display: none;
    }

    /* A shade at the bottom so the words read over any video; it lets taps through to the video. */
    .feed-shell > .social-card--chronicle::after {
        content: "";
        position: absolute;
        inset: 45% 0 0;
        z-index: 1;
        background: linear-gradient(to bottom, rgb(0 0 0 / 0), rgb(0 0 0 / 0.8));
        pointer-events: none;
    }

    .social-card--chronicle .social-chronicle {
        display: contents;
    }

    .social-card--chronicle .social-chronicle .aq-video {
        grid-area: 1 / 1 / -1 / -1;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .social-card--chronicle .aq-video__sound {
        top: 8px;
        right: 16px;
        bottom: auto;
        z-index: 3;
        width: 38px;
        height: 38px;
        background: rgb(0 0 0 / 0.5);
    }

    :is(.social-card--chronicle, .social-card--chronicle > .social-card__fold) > .social-card__head,
    :is(.social-card--chronicle, .social-card--chronicle > .social-card__fold) > .social-card__body,
    .social-card--chronicle .social-chronicle__meta {
        position: relative;
        z-index: 2;
        grid-column: 1;
        margin: 0 0 0 14px;
        color: #fff;
        text-shadow: 0 1px 4px rgb(0 0 0 / 0.6);
    }

    :is(.social-card--chronicle, .social-card--chronicle > .social-card__fold) > .social-card__body {
        grid-row: 3;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .social-card--chronicle .social-card__actions .social-heart {
        flex-direction: column;
        gap: 2px;
        padding: var(--aq-space-1);
        color: #fff;
        filter: drop-shadow(0 1px 3px rgb(0 0 0 / 0.6));
    }

    .social-card--chronicle .social-notice--card {
        position: absolute;
        right: 0;
        bottom: calc(100% + 8px);
        width: min(300px, calc(100vw - 96px));
    }

    /* A Chronicle on screen takes all of it (Carlos, 05/11/2026; DECISIONS #283): js/chronicle-video.js sets
       html.aq-chronicle-full while one fills the screen, and the header and the radio bar step aside until an
       ordinary post comes, or the page is back at its top. */
    html.aq-chronicle-full:has(.feed-shell > .social-card--chronicle) {
        scroll-padding-top: 0;
    }

    html.aq-chronicle-full .site-header {
        display: none;
    }

    html.aq-chronicle-full .aq-radio {
        visibility: hidden;
        transform: translateY(100%);
    }
}

/* ---- The feed on a phone, Instagram-style (docs/mobile-feed-instagram-plan.md, phase 1; Figma page 36, A1-A3) ---- */
@media (max-width: 767.98px) {
    .feed-shell {
        gap: var(--aq-space-2);
    }

    html:has(.feed-shell > .social-card) {
        scroll-snap-type: y proximity;
        scroll-padding-top: var(--aq-header-real, var(--aq-header-height));
    }

    /* Not over a full-screen Chronicle, which has its own words and actions (#278): there it fell under them, cut
       (found on production, 05/11/2026). */
    :is(.social-card--chronicle, .social-card--chronicle > .social-card__fold) > .social-card__reacted {
        display: none;
    }

    .social-card__reacted a {
        color: inherit;
        text-decoration: none;
    }

    .social-card__reacted strong {
        color: var(--aq-text-100);
        font-weight: 600;
    }

    /* A long text: two lines under pictures, eight on its own, and "Read more" (js/feed-phone.js). */
    .social-card__body.is-clamped {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 8;
    }

    /* One comment of the preview on a phone (D6); "View all" takes to the rest. */
    .social-glimpse__line + .social-glimpse__line,
    .social-glimpse__all--computer {
        display: none;
    }

    /* The header steps aside while one scrolls down and comes back on the way up (D3). */
    html:has(.feed-shell > .social-card) .site-header {
        transition: transform 0.2s ease, background-color var(--aq-transition), border-color var(--aq-transition), box-shadow var(--aq-transition);
    }

    html.aq-header-away .site-header {
        transform: translateY(-100%);
    }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    html:has(.feed-shell > .social-card) .site-header {
        transition: none;
    }
}

/* ---- Recommended music and videos on a phone (docs/mobile-feed-instagram-plan.md, phase 5; Figma page 36, E1-E2) ----
   The same cards and behaviour as every post (D11 a): a recommended song or video is the post's media, so its words
   go under it (SocialFeed's social-card--media), and a video runs edge to edge like a picture. The filters are one row
   to swipe, not four (js/feed-phone.js shows the current one). The computer keeps both as they were. */
@media (max-width: 767.98px) {
    .social-filters {
        flex-wrap: nowrap;
        margin-inline: calc(-1 * var(--aq-space-4));
        padding: 2px var(--aq-space-4);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .social-filters > * {
        flex: none;
    }
}

/* ---- A Chronicle's full-screen player on a phone (docs/mobile-feed-instagram-plan.md, phase 2; Figma page 36, B1-B4) ----
   One Chronicle per swipe (D2). A tap lifts the feed's card itself over the page (js/chronicle-video.js): the same
   <video>, still playing, with the sound on (D4, D5), a close button and a time bar; the placeholder keeps its room. */
.aq-player {
    display: none;
}

@media (max-width: 767.98px) {
    .feed-shell > .social-card--chronicle,
    .aq-player-slot {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .aq-player-slot {
        background: #000;
    }

    /* No snapping under the player or a comment sheet (js/chronicle-video.js and js/feed-comments.js set these
       before anything moves): the page followed the card it rested on when the placeholder went in above it, and came
       back one item further (found on production, 05/11/2026). */
    html.aq-immersive-open:has(.feed-shell),
    html.aq-sheet-open:has(.feed-shell) {
        scroll-snap-type: none;
    }

    html.aq-immersive-open .aq-radio {
        visibility: hidden;
    }

    .is-immersive > .aq-player {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 3;
        pointer-events: none;
    }

    .aq-player__close {
        position: absolute;
        top: calc(12px + env(safe-area-inset-top, 0px));
        left: 12px;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 50%;
        background: rgb(0 0 0 / 55%);
        color: #fff;
        font-size: 1.1rem;
        pointer-events: auto;
    }

    .aq-player__close:focus-visible,
    .aq-player__seek:focus-visible {
        outline: 2px solid var(--aq-accent-light);
        outline-offset: 2px;
    }

    /* The time bar is Instagram's: one thin line at the video's foot, no knob and no clock; dragging it still seeks, and
       it thickens under the finger (Carlos, 10/11/2026; DECISIONS #421). The clock stays for screen readers. */
    .aq-player__time {
        position: absolute;
        right: 0;
        bottom: env(safe-area-inset-bottom, 0px);
        left: 0;
        display: flex;
        align-items: flex-end;
        height: 24px;
        pointer-events: auto;
    }

    .aq-player__time > span {
        position: absolute;
        width: 1px;
        height: 1px;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .aq-player__seek {
        flex: 1;
        min-width: 0;
        height: 24px;
        margin: 0;
        background: transparent;
        cursor: pointer;
        appearance: none;
    }

    .aq-player__seek::-webkit-slider-runnable-track {
        height: 3px;
        background: linear-gradient(to right, #fff var(--aq-seek, 0%), rgb(255 255 255 / 30%) var(--aq-seek, 0%));
    }

    .aq-player__seek::-moz-range-track {
        height: 3px;
        background: rgb(255 255 255 / 30%);
    }

    .aq-player__seek::-moz-range-progress {
        height: 3px;
        background: #fff;
    }

    .aq-player__seek::-webkit-slider-thumb {
        width: 0;
        height: 3px;
        border: 0;
        background: transparent;
        appearance: none;
    }

    .aq-player__seek::-moz-range-thumb {
        width: 0;
        height: 3px;
        border: 0;
        background: transparent;
    }

    .aq-player__seek:active::-webkit-slider-runnable-track {
        height: 6px;
    }

    .aq-player__seek:active::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
        margin-top: -4px;
        border-radius: 50%;
        background: #fff;
    }

    /* The thin bar of the feed has the time bar's job in the player. */
    .is-immersive .aq-video__progress {
        display: none;
    }
}

/* ---- A feed card's reactions and comments (DECISIONS #281; Figma page 29, D2, D7, M2, M5–M7b) ---- */
.social-card__comments {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
}

.social-glimpse {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-glimpse__avatar {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* The post's own comments section, drawn in the card: no page padding, a smaller heading. */
.social-card__thread .comments {
    padding: var(--aq-space-2) 0 0;
}

.social-card__thread .section-heading h2,
.social-card__thread .section-heading .section-heading__title {
    font-size: 1.1rem;
}

/* On a phone a Chronicle fills the screen (#278): its comments open as a sheet over the video, which goes on. */
@media (max-width: 767.98px) {
    :is(.social-card--chronicle, .social-card--chronicle > .social-card__fold) > .social-card__comments {
        display: none;
    }
}

/* ---- A post's comments as a sheet on a phone (docs/mobile-feed-instagram-plan.md, phase 3; Figma page 36, C1-C3) ---- */
@media (max-width: 767.98px) {
    .social-card__comments.is-sheet {
        position: fixed;
        right: 0;
        bottom: var(--aq-kb, 0px);
        left: 0;
        z-index: 1100;
        display: flex;
        flex-direction: column;
        gap: 0;
        height: min(70dvh, var(--aq-vvh, 100dvh));
        border-top: 1px solid var(--aq-border);
        border-radius: var(--aq-radius-xl) var(--aq-radius-xl) 0 0;
        background: var(--aq-bg-200);
        box-shadow: 0 -12px 32px rgb(0 0 0 / 0.5);
        transition: transform 0.25s ease;
        animation: aq-sheet-in 0.28s ease-out;
    }

    .is-sheet > .aq-sheet__veil {
        display: block;
        position: fixed;
        inset: 0;
        z-index: -1;
        background: rgb(0 0 0 / 0.55);
        touch-action: none;
    }

    .is-sheet > .aq-sheet__head {
        position: relative;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        padding: 14px var(--aq-space-2) var(--aq-space-2);
        border-bottom: 1px solid var(--aq-border);
        cursor: grab;
        touch-action: none;
    }

    .aq-sheet__handle {
        position: absolute;
        top: 6px;
        left: 50%;
        width: 40px;
        height: 4px;
        margin-left: -20px;
        border-radius: var(--aq-radius-sm);
        background: rgb(169 176 199 / 0.6);
    }

    .aq-sheet__close {
        grid-column: 3;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 50%;
        background: var(--aq-bg-300);
        color: var(--aq-text-100);
    }

    /* The section's own heading under the sheet's title said "Comments" twice; .social-card__comments too, or
       SectionHeading's scoped style (.section-heading[b-…], loaded after this file) shows it again. */
    .is-sheet > .social-glimpse__less,
    .social-card__comments.is-sheet .section-heading,
    .is-sheet .comments__note,
    .is-sheet label.comments__as,
    .is-sheet .comments__composer-foot > span {
        display: none;
    }

    .is-sheet .comments__column {
        display: flex;
        flex-direction: column;
    }

}

/* The site's two sheet motions (usability audit UI-05, #270): a bottom sheet rises (the comments, the dashboard panel
   and the header's account and language menus on a phone), a side panel slides in (the dashboard panel on a computer).
   A new sheet uses one of these, not a keyframe of its own (SheetMotionTests). */
@keyframes aq-sheet-in {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ---- A Chronicle's comments on a phone (docs/mobile-feed-instagram-plan.md, phase 4; Figma page 36, D1-D2) ---- */
@media (max-width: 767.98px) {
    .social-card--chronicle .social-chronicle .aq-video {
        transform-origin: 0 0;
        transition: transform 0.3s ease, border-radius 0.3s ease;
    }

    .social-card--chronicle.has-sheet .social-chronicle .aq-video {
        border-radius: var(--aq-radius-lg);
    }

    :is(.social-card--chronicle.has-sheet, .social-card--chronicle.has-sheet > .social-card__fold) > .social-card__head,
    :is(.social-card--chronicle.has-sheet, .social-card--chronicle.has-sheet > .social-card__fold) > .social-card__body,
    .social-card--chronicle.has-sheet .social-chronicle__meta,
    :is(.social-card--chronicle.has-sheet, .social-card--chronicle.has-sheet > .social-card__fold) > .social-card__feel,
    :is(.social-card--chronicle.has-sheet, .social-card--chronicle.has-sheet > .social-card__fold) > .social-card__actions,
    .social-card--chronicle.has-sheet::after,
    :is(.social-card--chronicle.has-sheet, .social-card--chronicle.has-sheet > .social-card__fold) > .aq-player {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    .social-card--chronicle .social-chronicle .aq-video {
        transition: none;
    }
}

/* ---- A feed card's share sheet (DECISIONS #284; Figma page 29, D3, D4, M3) ---- */
.social-share[open] > .social-share__panel {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-3);
    width: min(400px, calc(100vw - 32px));
    padding: var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.5);
}

.social-share__link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: var(--aq-space-2) var(--aq-space-3);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-100);
    overflow-wrap: anywhere;
}

.social-share__target {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--aq-space-1-5);
    padding: 0;
    border: 0;
    background: none;
    color: var(--aq-text-100);
    font-size: 0.78rem;
    text-align: center;
    text-decoration: none;
}

.social-share__target[hidden] {
    display: none;
}

.social-share__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--aq-bg-300);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ---- The feed's own track player (DECISIONS #285; Figma page 29, Feed/Track player) ----
   Spotify's cover as it is (rounded 8px, 4px on a phone, nothing over it), its logo always there and linking to the
   track; our controls under the words. A phone keeps its own volume, so only mute shows there. */
.feed-player {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--aq-space-3) var(--aq-space-4);
    align-items: start;
}

.feed-player__cover {
    width: 112px;
    height: 112px;
    border-radius: var(--aq-radius);
    object-fit: cover;
}

.feed-player__main {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-1);
    min-width: 0;
}

.feed-player__controls[hidden] {
    display: none;
}

.feed-player__toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--aq-accent);
    color: var(--aq-bg-100);
    font-size: 1rem;
    font-weight: 700;
}

.feed-player__seek {
    flex: 1 1 auto;
    min-width: 60px;
    accent-color: var(--aq-accent);
}

.feed-player__volume {
    width: 72px;
    accent-color: var(--aq-text-100);
}

.feed-player__embed[hidden] {
    display: none;
}

@media (max-width: 575.98px) {
    .feed-player__cover {
        width: 72px;
        height: 72px;
        border-radius: var(--aq-radius-sm);
    }
}

/* ---- Smartlinks dashboard (docs/band-dashboard-smartlinks-ux-plan.md; Figma page 31, B1, C2, E1) ---- */
.sd-linkcell img,
.sd-linkcell__art {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: var(--aq-radius);
    background: linear-gradient(135deg, var(--aq-primary), var(--aq-accent));
    object-fit: cover;
}

@media (width < 700px) {
    .sd-chart__dates span:nth-child(even):not(:last-child),
    .sd-chart__dates span:nth-last-child(2) {
        display: none;
    }
}

/* ---- Smartlinks → Geography (docs/smartlink-geo-analytics-plan.md §5; Figma page 39, B1, M1–M3) ---- */
a.sd-row__label {
    text-decoration: none;
}

.sd-geo-toggle a {
    padding: 0.25rem 0.6rem;
    border-radius: var(--aq-radius);
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    text-decoration: none;
}

.sd-geo-pager a {
    color: var(--aq-accent);
    font-weight: 700;
    text-decoration: none;
}

/* ---- Band dashboard's look (docs/band-dashboard-smartlinks-ux-plan.md §4.4; Figma page 31, B1, E1, E2) ---- */

/* Black behind every logo, so a transparent one reads the same on any band. */
.bd-head__logo img {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: cover;
}

/* The house band's wordmark: whole, with room around it, as on its public page. */
.bd-head__logo--brand img {
    padding: var(--aq-space-4);
    object-fit: contain;
}

.bd-head__link a {
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bd-nav__group {
    margin: var(--aq-space-3) var(--aq-space-3) var(--aq-space-1);
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bd-nav__group:first-child {
    margin-top: var(--aq-space-1);
}

/* ---- "Contribuir" one thing at a time (docs/band-contribute-simple-plan.md; Figma page 32) ---- */
.bc-bar > span {
    display: block;
    height: 100%;
    background: var(--aq-accent);
}

.bc-thumb img,
.bc-thumb span {
    display: grid;
    place-items: center;
    width: 140px;
    height: 140px;
    border: 2px solid var(--aq-accent);
    border-radius: 50%;
    background: var(--aq-bg-100);
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
    object-fit: cover;
    text-align: center;
}

.bc-thumb--cover img,
.bc-thumb--cover span {
    width: 100%;
    max-width: 100%;
    height: 140px;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
}

.bc-where__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc-photos__item {
    position: relative;
}

.bc-photos__edit {
    display: block;
    width: 108px;
    height: 108px;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-100) center / cover no-repeat;
    cursor: pointer;
}

.bc-photos__edit:hover,
.bc-photos__edit:focus-visible {
    border: 2px solid var(--aq-accent);
}

.bc-photos__edit::after {
    content: "✎";
    position: absolute;
    bottom: 6px;
    left: 6px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f6fa;
    color: #0b0a14;
    font-size: 0.8rem;
}

.bc-photos__edit:disabled::after {
    content: none;
}

.bc-photos__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #0b0a14;
    color: #f5f6fa;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.aq-editor__tool[hidden] {
    display: none;
}

/* ---- The smartlink editor (DECISIONS #372; Figma page 43, B1 desktop and M1 phone) ---- */
.studio__head:has(.studio__lead) {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--aq-space-1);
}

.sl-phone__art > img {
    width: 200px;
    height: 200px;
    border-radius: var(--aq-radius);
    object-fit: cover;
    box-shadow: 0 12px 28px rgb(0 0 0 / 50%);
}

.sl-phone__mark > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Image crop (docs/band-dashboard-smartlinks-ux-plan.md §4.6; Figma page 31, D2, D3, E4) ---- */
.ic {
    width: min(1040px, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    color: var(--aq-text-100);
    box-shadow: 0 24px 60px rgb(0 0 0 / 60%);
}

.ic::backdrop {
    background: rgb(5 4 12 / 80%);
}

.ic[data-shape="wide"] .ic__body {
    grid-template-columns: minmax(0, 1fr);
}

/* A square stage stays small enough for the dialog to fit a laptop screen. */
.ic:not([data-shape="wide"]) .ic__stage {
    width: auto;
    max-width: 100%;
    max-height: min(440px, 58dvh);
    margin-inline: auto;
}

.ic__zoom button,
.ic__tool,
.ic__seg button {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    background: none;
    color: var(--aq-text-100);
    font-size: var(--aq-text-xs);
    cursor: pointer;
}

.ic__seg button.is-on {
    background: var(--aq-primary);
    color: var(--aq-primary-foreground);
}

.ic[data-shape="circle"] .ic__fit,
.ic--contain[data-shape="circle"] .ic__bg {
    display: flex;
}

.ic__swatch.is-on {
    border-color: var(--aq-accent);
}

/* Phone (Figma E4): the whole screen, previews under the stage. */
@media (width < 700px) {
    .ic {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
    }
}

/* ---- The dashboards' side panel, lists and choices (docs/band-dashboard-menu-forms-plan.md §4.1; Figma page 33) ---- */

/* Their own classes, not .studio--band: the venue, fan club and promoter dashboards share the same lists. */
html.dd-open,
html:has(.dd) {
    overflow: hidden;
}

.dd {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    justify-content: flex-end;
}

@media (width < 700px) {
    .dd {
        align-items: flex-end;
    }
}

/* ---- The band's pick, one box and a live preview (docs/band-dashboard-menu-forms-plan.md §4.2; Figma page 33, B1, B2, M1, M2) ---- */
@keyframes pick-spin {
    to { transform: rotate(360deg); }
}

.pick-hit {
    display: flex;
    gap: var(--aq-space-3);
    align-items: center;
    width: 100%;
    padding: 0.55rem var(--aq-space-4);
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.pick-hit:hover,
.pick-hit.is-active {
    background: color-mix(in srgb, var(--aq-primary) 20%, transparent);
}

.pick-hit__cover {
    display: inline-grid;
    flex: none;
    width: 44px;
    height: 44px;
    overflow: hidden;
    place-items: center;
    border-radius: var(--aq-radius);
    background: color-mix(in srgb, var(--aq-accent) 18%, var(--aq-bg-100));
    color: var(--aq-accent-light);
}

.pick-hit__cover img {
    width: 44px;
    height: 44px;
    object-fit: cover;
}

.pick-hit__text {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.pick-hit__title {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pick-hit__sub {
    overflow: hidden;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- The band's line-up: tabs, drag to order, the side panel (docs/band-dashboard-menu-forms-plan.md §4.3; Figma page 33, C1, C2, M3) ---- */
.lineup-list__error {
    margin: var(--aq-space-2) 0 0;
    color: #e5484d;
    font-size: 0.875rem;
}

.lineup-person__avatar {
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.lineup-person__plain {
    color: var(--aq-accent);
    font-weight: 500;
}

/* ---- The house band's members as photo cards, and the member's side panel (Members & guests) ---- */
#member-panel .alert {
    margin: 0;
    padding: var(--aq-space-2) var(--aq-space-3);
    font-size: var(--aq-text-sm);
}

#member-panel .form-control,
#member-panel .form-select {
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
}

/* ---- A ⋯ menu: a <details>, so it opens without the script (docs/band-dashboard-menu-forms-plan.md §4.4) ---- */
.dash-menu {
    position: relative;
}

/* ---- Fan Clubs reviewed in the side panel, Chat Groups as cards (docs/band-dashboard-menu-forms-plan.md §4.6; Figma page 33, G1, H1, H2) ---- */
.cg-card__name {
    display: grid;
    flex: 1;
    gap: var(--aq-space-1);
    justify-items: start;
    min-width: 0;
}

.feed-player__connect[hidden] {
    display: none;
}

/* On a touch screen a long press opens the menu (M1), so with the script neither ⌄ nor ☺ is drawn there. */
@media (hover: none) {
    .dm__messages.has-menus .dm-menu__button,
    .dm__messages.has-menus .dm-msg__acts > .dm-react:not([open]) {
        display: none;
    }
}

.dm__messages:not(.has-menus) [data-dm-copy] {
    display: none;
}

/* The "+" stays while editing, with only Emoji in it (DECISIONS #339). */
.dm-composer.is-editing .dm-plus__item:not([data-emoji]),
.dm-composer.is-editing [data-dm-stickers],
.dm-composer.is-editing .dm-reply,
.dm-composer.is-editing .dm-composer__previews,
.dm-composer.is-editing .dm-composer__share,
.dm-composer.is-editing [data-dm-mic],
.dm__thread:has(.dm-composer.is-editing) .dm-music,
.dm__thread:has(.dm-composer.is-editing) .dm-share {
    display: none;
}

.dm-composer.is-editing [data-dm-send]:not([hidden]) {
    display: inline-grid;
    min-width: 44px;
    place-items: center;
    border-radius: 50%;
    font-size: 1.1rem;
}

.dm-composer.is-editing [data-dm-body] {
    /* The words being edited show whole, up to a few lines, where the browser can size a box to them. */
    max-height: 40vh;
    box-shadow: 0 0 0 1.5px var(--aq-primary);
    field-sizing: content;
}

/* The Community Feed's folded posts (SocialFeed Fold, js/feed-fold.js): the author and the post's first line only. A tap
   opens the rest in place (a post of words or pictures) or over the page (a Chronicle, playing with sound). */
.social-card__fold {
    display: flex;
    flex-direction: column;
    gap: inherit;
    min-width: 0;
}

.social-card--folded > .social-card__fold {
    display: none;
}

.social-card__title {
    display: flex;
    align-items: center;
    gap: var(--aq-space-3);
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--aq-text-100);
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-align: start;
    cursor: pointer;
}

.social-card__title-text {
    display: -webkit-box;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.social-card__title[aria-expanded="true"] .social-card__title-text {
    display: block;
    -webkit-line-clamp: unset;
}

.social-card__title-cue {
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--aq-border);
    border-radius: 50%;
    color: var(--aq-accent-light);
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

html.aq-fold-open .aq-radio {
    visibility: hidden;
}

.social-card.social-card--foldable.is-overlay .aq-video {
    max-height: min(70dvh, 760px);
    margin-inline: auto;
    border-radius: var(--aq-radius-md);
}

.social-card__overlay-close {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    flex: none;
    place-items: center;
    align-self: flex-end;
    width: 40px;
    height: 40px;
    margin: -8px -8px -40px 0;
    border: 1px solid var(--aq-border);
    border-radius: 50%;
    background: rgb(0 0 0 / 0.7);
    color: #fff;
    font-size: 1.1rem;
}

@media (max-width: 767.98px) {
    .social-card.social-card--foldable.is-overlay .aq-video {
        max-height: 72dvh;
        border-radius: var(--aq-radius);
    }

    .social-card__title-cue {
        width: 26px;
        height: 26px;
    }
}

/* ---- Edge to edge on a phone (05/11/2026) ----
   Under 768px the pages keep only 12px at the sides, for their words; under 480px (a phone held upright, where the
   cards stand one under the other) the cards run the full width of the screen too: no rounded corners or side
   borders, their words 12px in, and what they carry (pictures, a recommendation, an event) as wide as they are.
   ":not(#aq-edge)" outranks each page's own width and margins. The Community Feed keeps its own rules (.social-page,
   above), and so does every list in a feed shell (below, DECISIONS #311); the computer and the tablet are unchanged. */
@media (max-width: 767.98px) {
    :is(.page, .people, .communities, .community-manage, .community__body, .community__members,
        .community-hero__identity, .community-hero__notice, .events-page, .event-form, .event-detail__wrap,
        .follow-list, .forum-topic, .notifications, .profile__body, .profile__identity, .profile__notice,
        .profile__tabs, .chronicles-page, .artists, .home-section, .home-chronicle,
        .history-intro, .history-section, .quiz-hub, .release-hero, .smartlink-landing, .radio, .albums,
        .tabs-layout, .tabs-mine, .tabs-terms, .tabs-hero__inner, .cg-link-page, .empty-state):not(#aq-edge) {
        padding-inline: var(--aq-space-3);
    }
}

@media (max-width: 479.98px) {
    :is(.home-card, .home-chronicle__body, .member-card, .community-card, .communities__soon, .contact-card,
        .event-card, .event-filterbox, .merch-card, .person-card, .press-card, .press__file, .profile-card,
        .quiz-board, .quiz-card, .quiz-hall__season, .quiz-hall__winner, .quiz-ranking, .quiz-season__panel,
        .quiz-stats, .release-card, .release__aside, .saga-chapter, .character-card, .song-card, .studio-card,
        .support__option, .artist-card__link, .band-invite, .music-spotlight__art, .video-player, .comments,
        .comments__invite, .social-notice, .social-card):not(.social-page *):not(.feed-shell *):not(#aq-edge) {
        box-sizing: border-box;
        width: calc(100% + 24px);
        max-width: none;
        margin-inline: -12px;
        border-inline: 0;
        border-radius: 0;
    }

    /* Their words 12px in: the cards that had 16px or more at their sides. */
    :is(.home-chronicle__body, .contact-card, .person-card, .press-card, .profile-card, .quiz-board, .quiz-card,
        .quiz-hall__season, .quiz-hall__winner, .quiz-ranking, .quiz-season__panel, .quiz-stats, .saga-chapter,
        .studio-card, .support__option, .band-invite, .comments, .comments__invite, .social-notice,
        .social-card):not(.social-page *):not(.feed-shell *):not(#aq-edge) {
        padding-inline: var(--aq-space-3);
    }
}

/* ---- Feed shell and feed card (Carlos, 05/11/2026; Figma page 36 "Feed no celular", A1 and E1) ----
   One recipe for every list of cards on the site: the Community Feed and a post's page, the timelines (profile, band,
   Fan Club, venue), the profile's comments, achievements and follow lists, notifications, people, events, venues,
   bands, Fan Clubs, artists, communities, their topics and posts, and the music search. The host adds .feed-shell to
   the list (.feed-shell--grid when it is a grid) and .feed-card to each item; the rest is here, not per page.
   The computer keeps the feed's card as it was (Figma: "o computador não muda"): 16px between cards, each with a 1px
   --aq-border, 16px corners and the --aq-bg-200 surface. Under 768px (the phone block above, DECISIONS #278) the cards
   run edge to edge with no border, corner or surface, 8px apart, their words 14px in from the side. */
.feed-shell {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-4);
    min-width: 0;
}

.feed-card {
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    box-shadow: none;
}

.feed-shell > .notification,
.feed-shell > .profile-row,
.feed-shell > .social-results__item {
    padding: var(--aq-space-4) var(--aq-space-5);
}

@media (max-width: 767.98px) {
    .feed-shell > .notification,
    .feed-shell > .profile-row,
    .feed-shell > .social-results__item,
    .feed-shell > .topic-row,
    .feed-shell > .forum-post,
    .feed-shell > .profile-activity,
    .feed-shell > .person-card {
        padding-inline: var(--aq-feed-inset);
    }
}

/* ---- A Chronicle in the feed as the Figma's M7 and M7b (page 29; Carlos, 05/11/2026; DECISIONS #313) ---- */
@media (max-width: 767.98px) {
    /* The words' order on the grid: the author (row 2), the title (3), the words (4), the sound (5); the kind at the
       top left, out of the flow. The meta link lends its children to the grid and still opens the Chronicle's page. */
    .social-card--chronicle .social-chronicle__meta {
        display: contents;
    }

    .social-card--chronicle .social-chronicle__arrow {
        display: none;
    }

    :is(.social-card--chronicle, .social-card--chronicle > .social-card__fold) > .social-card__body {
        grid-row: 4;
        max-width: 300px;
        margin-left: var(--aq-space-4);
        font-family: var(--aq-font-secondary);
        font-size: 13px;
        line-height: 22px;
    }

    .social-card--chronicle .social-chronicle__sound {
        display: block;
        grid-row: 5;
        overflow: hidden;
        font-family: var(--aq-font-secondary);
        font-size: 12px;
        line-height: 22px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .social-card--chronicle .social-card__who {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--aq-space-2);
    }

    .social-card--chronicle .social-card__official,
    .social-card--chronicle .social-card__meta,
    .social-card--chronicle .social-card__name .member-badge {
        display: none;
    }

    .social-card--chronicle .social-card__follow {
        display: block;
        margin: 0;
    }

    /* The sound button draws the speaker (crossed while muted) instead of showing the emoji. */
    .social-card--chronicle .aq-video__sound > span {
        display: none;
    }

    .social-card--chronicle .aq-video__sound::before {
        content: "";
        display: block;
        width: 18px;
        height: 18px;
        margin: auto;
        background: #fff;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='m22 9-6 6'/%3E%3Cpath d='m16 9 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='m22 9-6 6'/%3E%3Cpath d='m16 9 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .social-card--chronicle .aq-video__sound[aria-pressed="true"]::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E");
    }

    html.aq-chronicle-full .feed-shell > .social-card--chronicle .aq-video__sound {
        top: calc(8px + env(safe-area-inset-top, 0px));
    }

    .social-card--chronicle .social-card__actions .social-heart {
        gap: 2px;
        padding: 0;
        font-family: var(--aq-font-primary);
        font-size: 13px;
        font-weight: 500;
        line-height: 18px;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 4px rgb(0 0 0 / 0.6);
    }

    .social-card--chronicle .social-card__actions .social-heart__emoji {
        font-size: 30px;
        line-height: 26px;
    }

    .social-card--chronicle .social-card__actions .social-react__open,
    :is(.social-card--chronicle, .social-card--chronicle > .social-card__fold) > .social-card__more {
        display: none;
    }

    /* The time bar, barely there as the Reels' (Carlos, 05/11; #317): 2px, a faint track, the played part soft white. */
    .social-card--chronicle .aq-video__progress {
        height: 2px;
        background: rgb(255 255 255 / 0.12);
    }

    .social-card--chronicle .aq-video__progress > span {
        background: rgb(255 255 255 / 0.6);
    }
}

/* ---- The comment sheet's lines and box, Instagram-style (Figma page 29 M7b and page 36 C1; Carlos, 05/11/2026; */
@media (max-width: 767.98px) {
    .is-sheet .comment {
        position: relative;
        gap: 10px;
        padding: 10px 28px 10px 0;
    }

    .is-sheet .comment__avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* The name and the words on one line (M7b); the line's time, the country and the "Edited" note stay out of it,
       the time showing under the words instead. */
    .is-sheet .comment__meta,
    .is-sheet .comment__body {
        display: inline;
        margin: 0;
        font-family: var(--aq-font-secondary);
        font-size: 14px;
        line-height: 20px;
    }

    .is-sheet .comment__meta > .comment__time,
    .is-sheet .comment__meta > .comment__country {
        display: none;
    }

    /* A band member's chip is the role alone with the mark, "◆ Bass", gold as ever (its full text stays for readers). */
    .is-sheet .comment__meta .member-badge--band[data-short] {
        margin: 0 2px;
        font-size: 0;
        vertical-align: 1px;
    }

    .is-sheet .comment__meta .member-badge--band[data-short]::before {
        content: attr(data-short);
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .is-sheet .comment__badge,
    .is-sheet .comment__meta .member-badge {
        padding: 0 var(--aq-space-1-5);
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .is-sheet .comment__actions summary,
    .is-sheet .comment__actions .comment__link,
    .is-sheet .comment__actions .social-report > summary {
        padding: 0;
        color: var(--aq-text-300);
        font: inherit;
        letter-spacing: inherit;
    }

    /* First in the row, before "Reply" (which the page puts first with order -1); a space after the name's line,
       which the markup gives none. */
    .is-sheet .comment__when {
        display: inline;
        order: -2;
    }

    .is-sheet .comment__feel .dm-reaction {
        padding: 0 var(--aq-space-1-5);
        font-size: 12px;
    }

    .is-sheet .comment__react > .dm-react__button {
        min-width: 0;
        min-height: 0;
        padding: var(--aq-space-1);
        border: 0;
        background: none;
        color: var(--aq-text-300);
        font-size: 0;
        line-height: 1;
    }

    .is-sheet .comments__composer > .comment__avatar--self {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .is-sheet .comments__composer-main {
        display: flex;
        flex: 1 1 0;
        flex-wrap: wrap;
        align-items: center;
        gap: 2px var(--aq-space-1-5);
        min-width: 0;
        padding: 3px var(--aq-space-1-5) 3px 14px;
        border: 1px solid var(--aq-border-strong);
        border-radius: var(--aq-radius-xl);
        background: var(--aq-bg-100);
    }

    .is-sheet .comments__composer-main > .comments__as-choice {
        flex: 1 1 100%;
        width: auto;
        padding: 2px var(--aq-space-6) 0 0;
        border: 0;
        background-color: transparent;
        color: var(--aq-text-300);
        font-size: 12px;
    }

    .is-sheet .comments__composer-main > .social-previews {
        flex: 1 1 100%;
        order: -1;
        margin: var(--aq-space-1) 0 0;
    }

    .is-sheet .comments__composer-main > .social-toolbar {
        flex: none;
        gap: 0;
        margin: 0;
    }

    /* Three tools in the pill - emoji, sticker, picture (Carlos, 05/11: the share card, the microphone and @ out of
       the line; they stay on the post's page). */
    .is-sheet .comments__composer-main :is([data-share-tool], [data-voice-mic], [data-at]) {
        display: none;
    }

    /* The emoji and the stickers open in a card over the list, above the pill (the box is the sheet's sticky bottom,
       its frame): under it they were cut by the sheet's edge (the stickers did, DECISIONS #397). */
    .is-sheet .comments__composer-main .social-tool-menu > .social-stickers,
    .is-sheet .comments__composer-main > .social-emoji {
        top: auto;
        right: 12px;
        bottom: calc(100% + 10px);
        left: 12px;
        width: auto;
        max-height: min(320px, 42vh);
        border-radius: var(--aq-radius-lg);
    }

    .is-sheet .comments__composer-main [data-count] {
        display: none;
    }

    .is-sheet .comments__composer-foot .btn-gold {
        min-height: 0;
        padding: 5px var(--aq-space-3);
        border-radius: var(--aq-radius-pill);
        font-size: 12px;
        line-height: 18px;
    }
}

/* ---- The message bar: Emoji and Stickers in the "+", a wider box (DECISIONS #339; Figma page 42) ---- */
.dm-composer {
    gap: var(--aq-space-2);
    padding: var(--aq-space-2) var(--aq-space-3);
}

.dm-composer > .social-emoji.social-popover,
.dm-stickers__panel {
    left: var(--aq-space-3);
}

@media (max-width: 600px) {
    .dm-composer {
        gap: var(--aq-space-1-5);
        padding: var(--aq-space-2);
    }

    .dm-composer textarea {
        padding-inline: var(--aq-space-3);
    }

    .dm-composer > .social-emoji.social-popover {
        left: var(--aq-space-2);
    }
}

/* ---- A profile's Galeria (TASK 03 phase 3; docs/gallery-grid-plan.md; Figma page 47, Concept C "Galeria do Reino") ---- */
.profile__tab-icon {
    width: 14px;
    height: 14px;
    flex: none;
}

.gallery-tile__counts .gallery-tile__icon {
    width: 15px;
    height: 15px;
}

.gallery-grid__more[aria-busy="true"] > .gallery-grid__placeholders {
    display: grid;
    order: -1;
}

.gallery-grid__placeholder:nth-child(4) {
    display: none;
}

@container gallery (min-width: 880px) {
    .gallery-grid__placeholder:nth-child(4) {
        display: block;
    }
}

/* ---- A Galeria's post, open (TASK 03 phase 4; docs/gallery-grid-plan.md; Figma page 47, Concept C "Post aberto") ---- */
.gallery-viewer {
    display: grid;
    gap: var(--aq-space-4);
    min-width: 0;
}

.gallery-viewer__frames:focus-visible {
    outline: 2px solid var(--aq-accent);
    outline-offset: -2px;
}

.gallery-viewer__arrow[hidden] {
    display: none;
}

.gallery-dialog .gallery-viewer {
    overflow: hidden;
    height: min(700px, 86vh);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-feed-card);
    gap: 0;
}

.gallery-dialog .gallery-viewer--words {
    height: auto;
    max-height: 86vh;
    margin: 0 auto;
}

.gallery-dialog .gallery-viewer__media {
    height: min(700px, 86vh);
    border-radius: 0;
}

.gallery-dialog .gallery-viewer__frames {
    height: 100%;
    max-width: 560px;
}

.gallery-dialog .gallery-viewer__side {
    height: 100%;
    overflow-y: auto;
    padding: var(--aq-space-4);
    overscroll-behavior: contain;
}

.gallery-dialog .gallery-viewer__steps {
    display: contents;
}

/* ---- A profile on a phone (Figma page 48, "Perfil no celular") -------------------------------------------------
   The Galeria at once: the header keeps the cover, the photo with the numbers beside it (as on Instagram), the name
   and the @handle line. The bands line, the bio, "Editar perfil" and the "Destaques" cards leave the screen; the bio,
   the bands and "Editar perfil" are in the ⋯ menu on the cover. The tabs are icons only, the open one gold with a line
   under it and its name small on the line above. A band's tabs too. A computer keeps everything as it was. */
.profile {
    position: relative;
}

@media (width < 768px) {
    .profile__more-button svg {
        width: 20px;
        height: 20px;
    }

    .profile__more-item svg {
        width: 20px;
        height: 20px;
        flex: none;
        color: var(--aq-accent);
    }

    .profile__more-band a {
        color: var(--aq-accent-light);
    }

    /* The photo on the left, the numbers on its right; the name and the rest below, across. */
    :is(.profile:not(.artist-profile), .profile.band-profile) .profile__identity {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: end;
        gap: var(--aq-space-1-5) var(--aq-space-4);
        margin-top: -44px;
        text-align: start;
    }

    :is(.profile:not(.artist-profile), .profile.band-profile) .profile__avatar {
        width: 88px;
        height: 88px;
        font-size: 2rem;
    }

    :is(.profile:not(.artist-profile), .profile.band-profile) .profile__who {
        display: contents;
    }

    :is(.profile:not(.artist-profile), .profile.band-profile) .profile__stats {
        display: grid;
        grid-column: 2;
        grid-row: 1;
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: column;
        gap: var(--aq-space-1);
        padding-bottom: 10px;
        text-align: center;
    }

    :is(.profile:not(.artist-profile), .profile.band-profile) .profile__stats > * {
        display: flex;
        flex-direction: column;
        font-size: 12px;
    }

    /* A band (DECISIONS #412): the summary, "Seguindo" with its notices (in the ⋯ menu) and the band's pick go too;
       "Seguir" stays in sight for someone who does not follow yet, and "Merchandise" always (TASK 01). */
    #band-summary,
    .band-head__actions--following > :not(.band-head__merch),
    #profile-bands,
    :is(.profile:not(.artist-profile), .profile.band-profile) .profile__bio,
    .profile__actions--mine,
    .profile-highlights {
        display: none;
    }

    .profile__tabs .profile__tab,
    .profile__tabs .profile__tab.is-current {
        display: flex;
        flex: 1 0 52px;
        justify-content: center;
        padding: 10px 0 9px;
        border: 0;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        background: none;
        color: var(--aq-text-300);
    }

    .profile__tabs .profile__tab-icon {
        display: block;
        width: 24px;
        height: 24px;
    }
}

/* ---- A Chronicle's cover from a scene of its video (Figma page 49) ----------------------------------------------
   The video stopped on the scene with a gold "CAPA" tag, a row of eight scenes (the nearest one framed in gold) and a
   bar; on a new Chronicle and in the edit panel. */
.chronicle-scene {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chronicle-scene[hidden] {
    display: none;
}

.chronicle-scene__shot.is-current {
    border-color: var(--aq-accent);
    opacity: 1;
}

/* ---- A band's Merchandise (TASK 01; docs/merchandise-plan.md; Figma page 52, Concept C) ----------------------------
   The product card (4:5 picture, gold badges, category, name, price, "Comprar agora ↗"), shared by the dashboard's
   preview and the band's page; the dashboard's list, numbers, editor, pictures and categories. */
.bm-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
}

.bm-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: color-mix(in srgb, var(--aq-bg-200) 70%, var(--aq-border));
}

.bm-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bm-card__media:hover img,
.bm-card__media:focus-visible img {
    transform: scale(1.03);
}

.bm-card--soldout .bm-card__media img {
    opacity: 0.55;
}

.bm-card__noimage {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--aq-text-300);
}

.bm-card__noimage svg {
    width: 44px;
    height: 44px;
}

.bm-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--aq-space-1-5);
}

.merch-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--aq-radius-pill);
    background: var(--aq-accent);
    color: #14110a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 16px;
    text-transform: uppercase;
}

.merch-badge--dark {
    background: rgb(0 0 0 / 65%);
    color: #fff;
}

.bm-card__availability {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.bm-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--aq-space-1-5);
    padding: var(--aq-space-3) 14px 14px;
}

.bm-card__category {
    margin: 0;
    color: var(--aq-accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bm-card__name {
    margin: 0;
    color: var(--aq-text-100);
    font-family: var(--aq-font-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
}

.bm-card__name a {
    color: inherit;
    text-decoration: none;
}

.bm-card__price,
.merch-product__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--aq-space-2);
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

/* Its fans' reviews on the card (Stripe phase 23): small stars, the average and how many, above the price. */
.bm-card__rating {
    display: flex;
    align-items: baseline;
    gap: var(--aq-space-1);
    margin: 0;
    font-size: var(--aq-text-sm);
    color: var(--aq-text-300);
}


.bm-card__price strong,
.merch-product__price strong {
    display: inline;
}

.bm-card__price strong {
    margin: 0;
    padding: 0;
    color: var(--aq-accent);
    font-family: var(--aq-font-primary);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.bm-card__price s {
    color: var(--aq-text-300);
    font-size: 12px;
}

.bm-card__buy {
    margin-top: auto;
    text-align: center;
}

.merch-photos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-3);
    margin: 0 0 var(--aq-space-3);
    padding: 0;
    list-style: none;
}

.merch-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
    margin: 0 0 10px;
}

.merch-chip {
    padding: var(--aq-space-1-5) var(--aq-space-3);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-200, var(--aq-text-100));
    font-size: 13px;
}

/* ---- A band's Merchandise on its page (TASK 01, phase 4; Figma page 52, Concept C) ------------------------------- */
.bm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.bm-grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-bottom: 26px;
}

.merch-disclaimer {
    margin-top: 22px;
}

.merch-strip {
    margin: 0 0 22px;
}

@media (width < 768px) {
    .bm-grid,
    .bm-grid--featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--aq-space-3);
    }
}

/* The key to the ✦ mark, at the top of a form that mixes required and optional fields (#266). */
.form-legend {
    margin: 0 0 0.75rem;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.form-legend .req {
    margin-inline-start: 0;
}

/* A form on its way to the server (js/submit-guard.js, #288): the button says so until the page moves on. */
button[aria-busy="true"],
input[type="submit"][aria-busy="true"] {
    cursor: progress;
    opacity: 0.7;
}

/* ==== Power Metal Realm (docs/power-metal-realm-domain-plan.md, phase 2) ==== */

/* Room under the page for the phone's bottom bar (SiteHeader's .realm-tabbar). */
@media (width < 1200px) {
    body:has(.realm-tabbar) {
        padding-block-end: calc(var(--aq-space-16) + env(safe-area-inset-bottom));
    }
}

/* ---- Focus rings in rows that scroll sideways -------------------------------------------------------------
   overflow-x: auto clips on the other axis too, so the 2px ring a few px outside a tab is cut off. In these rows
   the ring is drawn inside the item (usability audit A11Y-06). */
.radio-tabs a:focus-visible,
.group-tabs__nav a:focus-visible,
.dm-who__tabs :is(a, button):focus-visible,
.dm-stickers__tabs :is(a, button):focus-visible,
.aq-editor__strip :is(a, button):focus-visible,
.venue-viewer__frames:focus-visible,
.gallery-viewer__frames:focus-visible,
.gallery-viewer__frames :is(a, button):focus-visible {
    outline-offset: -2px;
}

/* ---- Fans' reviews of a band's products (Stripe phase 19): the product page (store.css) and the band's Avaliações
   (studio.css) both show them, so they live here. ---- */
.merch-reviews {
    margin-top: var(--aq-space-6);
}

.merch-stars {
    color: var(--aq-accent);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.merch-reviews__average {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--aq-space-2);
}

.merch-reviews__average .merch-stars {
    font-size: 1.25rem;
}

.merch-reviews__list {
    display: grid;
    gap: var(--aq-space-3);
    margin: var(--aq-space-3) 0 0;
    padding: 0;
    list-style: none;
}

.merch-review {
    padding: var(--aq-space-3) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
}

.merch-review--own {
    border-color: var(--aq-accent);
}

/* Hidden by the band: a dashed edge and the muted text colour (never opacity, which drops the contrast). */
.merch-review--hidden {
    border-style: dashed;
    color: var(--aq-text-300);
}

.merch-review__head,
.merch-review__product {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--aq-space-2);
    margin: 0 0 var(--aq-space-1);
}

.merch-review__body {
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.merch-review__reply {
    margin-top: var(--aq-space-2);
    padding-left: var(--aq-space-3);
    border-left: 2px solid var(--aq-accent);
}

.merch-review__reply-by {
    margin: 0;
    font-weight: 700;
}

.merch-review__answer {
    display: grid;
    gap: var(--aq-space-2);
    margin-top: var(--aq-space-3);
}

.merch-review__answer button,
.merch-review form:last-child button {
    justify-self: start;
    margin-top: var(--aq-space-2);
}

.merch-review-form {
    display: grid;
    gap: var(--aq-space-3);
    margin-top: var(--aq-space-3);
}

/* Five stars, the best first in the markup and drawn right to left, so hovering or picking one lights it and those
   before it without a script. */
.merch-review-form__rating {
    margin: 0;
    padding: 0;
    border: 0;
}

.merch-review-form__stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: var(--aq-space-1);
}

.merch-review-form__stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.merch-review-form__stars label {
    font-size: 1.75rem;
    line-height: 1;
    color: var(--aq-text-300);
    cursor: pointer;
}

.merch-review-form__stars input:checked ~ label,
.merch-review-form__stars label:hover,
.merch-review-form__stars label:hover ~ label {
    color: var(--aq-accent);
}

.merch-review-form__stars input:focus-visible + label {
    outline: 2px solid var(--aq-accent);
    outline-offset: 2px;
}

.merch-review-form__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
}

/* ---- The featured giveaway's banner and a card's mini path (docs/giveaways/phase-4-plan.md; Figma page 65, A1, A8) ----
   Here, not in an area's file, because two areas draw them: the giveaways page (social) and the homepage (home).
   The banner is the giveaway's cover under a dark gradient with a gold edge; the mini path is one small circle per
   task, joined by short lines. */
.gw-banner {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 320px;
    border: 1px solid var(--aq-accent);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-bg-200);
    box-shadow: var(--aq-accent-glow);
}

.gw-banner__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gw-banner__body {
    position: relative;
    display: grid;
    gap: var(--aq-space-3);
    align-content: end;
    justify-items: start;
    padding: var(--aq-space-8);
    background: linear-gradient(90deg, var(--aq-footer-bottom-bg) 0%, var(--aq-overlay) 55%, transparent 100%);
}

.gw-banner__badges,
.gw-banner__eyebrow,
.gw-banner__title,
.gw-banner__line,
.gw-banner__ends,
.gw-banner__foot {
    margin: 0;
}

.gw-state {
    display: inline-flex;
    align-items: center;
    padding: var(--aq-space-1) var(--aq-space-3);
    border: 1px solid var(--aq-border-strong);
    border-radius: var(--aq-radius-pill);
    background: var(--aq-footer-bottom-bg);
    color: var(--aq-text-200);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
}

.gw-state--live {
    border-color: var(--aq-success);
    color: var(--aq-success-text);
}

.gw-banner__eyebrow {
    color: var(--aq-accent-light);
    font-family: var(--aq-font-secondary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.gw-banner__title {
    max-width: 34rem;
    color: var(--aq-text-100);
    font-family: var(--aq-font-display);
    font-size: clamp(1.5rem, 3.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
}

.gw-banner__line {
    color: var(--aq-text-200);
}

.gw-banner__countdown {
    display: grid;
    gap: var(--aq-space-2);
}

.gw-banner__ends {
    color: var(--aq-text-300);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gw-banner .season-countdown__unit {
    border-color: var(--aq-border-strong);
    background: var(--aq-footer-bottom-bg);
}

.gw-banner__foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-3) var(--aq-space-4);
    align-items: center;
}

.gw-banner__in {
    color: var(--aq-success-text);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    font-weight: 600;
}

.gw-mini {
    display: inline-flex;
    align-items: center;
}

.gw-mini__node {
    position: relative;
    display: inline-grid;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid var(--aq-accent);
    border-radius: 50%;
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-xs);
    font-weight: 600;
    line-height: 1;
    place-items: center;
}

.gw-mini__node + .gw-mini__node {
    margin-left: var(--aq-space-3);
}

/* The short line that joins a circle to the one before it. */
.gw-mini__node + .gw-mini__node::before {
    position: absolute;
    top: 50%;
    right: calc(100% + 1px);
    width: var(--aq-space-3);
    height: 1px;
    background: var(--aq-accent);
    content: "";
}

.gw-mini__node--done {
    border-color: var(--aq-success);
    background: var(--aq-success);
    color: var(--aq-bg-100);
}

@media (max-width: 640px) {
    .gw-banner {
        min-height: 0;
    }

    .gw-banner__body {
        padding: var(--aq-space-5);
        background: linear-gradient(180deg, var(--aq-overlay) 0%, var(--aq-footer-bottom-bg) 100%);
    }
}

/* The homepage's "Featured giveaways" (Figma A8): its heading with "See all" beside it, then the banner. */
.gw-home {
    display: grid;
    gap: var(--aq-space-4);

    /* The homepage's own sections' padding (RealmHome.razor.css, scoped to that component): 40 to 72px, 16 to 96px. */
    padding: clamp(var(--aq-space-10), 6vw, calc(var(--aq-space-16) + var(--aq-space-2))) clamp(var(--aq-space-4), 6.5vw, calc(var(--aq-space-16) + var(--aq-space-8)));
}

.gw-home__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2) var(--aq-space-4);
    align-items: baseline;
    justify-content: space-between;
}

.gw-home__title {
    margin: 0;
    color: var(--aq-text-100);
    font-family: var(--aq-font-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
}

.gw-home__all {
    display: inline-flex;
    align-items: center;
    min-height: var(--aq-target);
    color: var(--aq-accent-light);
    font-family: var(--aq-font-primary);
    font-size: var(--aq-text-sm);
    font-weight: 600;
    text-decoration: none;
}

.gw-home__all:hover,
.gw-home__all:focus-visible {
    text-decoration: underline;
}

/* The giveaways' ornament: a rule with a diamond at its middle. Here, not in an area's sheet, because the
   dashboard, the giveaways page, the cards and the home block all draw it. */
.gw-divider {
    display: flex;
    gap: var(--aq-space-3);
    align-items: center;
    margin: var(--aq-space-4) 0;
    color: var(--aq-accent);
    font-size: var(--aq-text-xs);
}

.gw-divider::before,
.gw-divider::after {
    flex: 1;
    height: 1px;
    background: var(--aq-border);
    content: "";
}
