
      :root {
        --bg: #f2efe8;
        --bg-panel: rgba(255, 255, 255, 0.86);
        --ink: #141c26;
        --muted: #665f72;
        --line: rgba(28, 20, 44, 0.12);
        --accent: #1a3db8;
        --accent-strong: #0c1a4f;
        --teal: #00a7b7;
        --volt: #e8efff;
        --violet: #1a3db8;
        --blue: #1589ff;
        --warn: #e23d5b;
        --shadow: 0 18px 48px rgba(51, 34, 84, 0.16);
        --shadow-pop: 0 18px 42px rgba(255, 79, 216, 0.18);
        --radius-lg: 20px;
        --radius-md: 14px;
        --radius-sm: 10px;
        /* Spacing scale. The stylesheet previously used 29 distinct px values
           for padding/margin/gap, including every even number from 2 to 16;
           the near-duplicates (18/20/22/24/26/28 as card padding) were not
           deliberate choices. Map: 1-5 -> 1, 6-9 -> 2, 10-13 -> 3, 14-18 -> 4,
           20-28 -> 5, 32-40 -> 6. */
        --space-1: 4px;
        --space-2: 8px;
        --space-3: 12px;
        --space-4: 16px;
        --space-5: 24px;
        --space-6: 32px;
      }

      * {
        box-sizing: border-box;
      }

      /* Typography reset. Without this, any heading or paragraph not caught by
         one of the ~39 scoped rules inherits UA margins — at h2 { 2.8rem } that
         is roughly 37px above and below that nobody wrote. Rhythm is
         reintroduced deliberately below via adjacent-sibling rules, so no
         element carries a leading margin it did not ask for. */
      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      p,
      ul,
      ol {
        margin: 0;
      }

      /* Rhythm, reintroduced deliberately where the reset removed spacing that
         was load-bearing. Adjacent-sibling only — following .panel p + p, the
         one rule already doing this right — so a first child never carries a
         leading margin that pushes its whole container down. Everything else
         the reset zeroed was leading margin on a first child, which only ever
         added space above a section that already had its own. */
      .manifesto-section p + p {
        margin-top: var(--space-4);
      }

      /* A heading binds tightly to the prose it introduces; the gap between the
         two cells is the grid's 28px, not this. */
      .legal-grid h4 + p {
        margin-top: var(--space-2);
      }

      .manifesto-section h3 + * {
        margin-top: var(--space-4);
      }

      body {
        margin: 0;
        min-height: 100vh;
        background:
          linear-gradient(115deg, rgba(255, 79, 216, 0.14) 0 18%, transparent 18% 100%),
          linear-gradient(245deg, rgba(200, 255, 47, 0.18) 0 15%, transparent 15% 100%),
          linear-gradient(180deg, #fff9fd 0%, var(--bg) 52%, #ecf8ff 100%);
        color: var(--ink);
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      }

      button,
      input,
      textarea,
      select {
        font: inherit;
      }

      h1,
      h2,
      h3,
      .market-card-title,
      .market-pdp-title {
        font-family: Georgia, "Times New Roman", serif;
      }

      button {
        cursor: pointer;
      }

      button:focus-visible,
      input:focus-visible,
      textarea:focus-visible,
      select:focus-visible,
      a:focus-visible {
        outline: 3px solid rgba(255, 79, 216, 0.5);
        outline-offset: 3px;
      }

      .app-shell {
        width: min(1240px, calc(100vw - 32px));
        margin: 0 auto;
        padding: var(--space-5) 0 var(--space-6);
      }

      .hero {
        display: grid;
        gap: 12px;
        /* Persistent chrome on every view: keep it to a nav bar, not a
           masthead. Was 22px 24px with a 3.1rem title stacked over a tagline,
           which made this 208px tall to deliver a 43px nav. */
        padding: 12px 20px;
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 255, 0.88)),
          linear-gradient(90deg, rgba(255, 79, 216, 0.12), rgba(200, 255, 47, 0.12));
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
      }

      .hero-top {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        justify-content: space-between;
        align-items: center;
      }

      .title-wrap h1 {
        margin: 0;
        font-size: 1.55rem;
        line-height: 1.15;
        letter-spacing: 0;
      }

      /* The tagline is marketing copy and it sat in the chrome of every view.
         The Home hero already states the same thing ("AltHealth is a co-owned
         music universe..."), so it is redundant rather than lost. */
      .title-wrap p {
        display: none;
      }

      .mode-switch {
        display: inline-flex;
        gap: 6px;
        padding: 4px 6px;
        background: rgba(255, 255, 255, 0.74);
        border: 1px solid var(--line);
        border-radius: 999px;
        max-width: 100%;
      }

      .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
      }

      .mode-switch button {
        border: 0;
        border-radius: 999px;
        padding: 8px 13px;
        background: transparent;
        color: var(--muted);
        font-size: 0.88rem;
        font-weight: 750;
        transition: 160ms ease;
        white-space: nowrap;
      }

      .mode-switch button.active {
        background: var(--ink);
        color: #fff;
        box-shadow: 0 8px 18px rgba(20, 16, 25, 0.18);
      }

      .header-button {
        border: 0;
        border-radius: 999px;
        padding: 8px 14px;
        background: rgba(20, 16, 25, 0.08);
        color: var(--ink);
        font-size: 0.88rem;
        font-weight: 750;
      }

      .header-button.primary {
        background: linear-gradient(135deg, var(--ink), #3f235c);
        color: #fff;
      }

      .header-button.share-earn {
        background: linear-gradient(135deg, var(--blue), var(--violet));
        color: #fff;
        font-weight: 600;
      }
      .header-button.share-earn:hover {
        background: #1a63c8;
      }
      .panel,
      .task-card {
        background: var(--bg-panel);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
      }

      .status-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 16px;
        align-items: center;
        padding: 12px 16px;
        border-top: 1px solid var(--line);
        background: rgba(255, 251, 245, 0.72);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
      }

      .status-strip-item {
        display: inline-flex;
        gap: 8px;
        align-items: baseline;
        color: var(--muted);
        font-size: 0.84rem;
      }

      .status-strip-item strong {
        color: var(--ink);
        font-size: 0.9rem;
      }

      .status-seat-action {
        border: 0;
        padding: 0;
        background: transparent;
        color: var(--teal);
        font: inherit;
        font-size: 0.82rem;
        text-decoration: underline;
        text-underline-offset: 2px;
      }

      .status-seat-action:hover {
        color: var(--ink);
      }

      /* Status rail: every transient message (errors, info, connection) rides
         the nav row as a pill instead of a full-width banner. Banners cost
         ~55px of vertical chrome each and pushed the whole app down; these
         cost zero when there is nothing to say. */
      .status-rail {
        display: flex;
        /* flex-basis 0 is deliberate: .hero-top wraps before it shrinks, so a
           content-sized rail would push the nav onto a second row. At basis 0
           the rail is invisible to the wrap decision and simply takes whatever
           space is left over; the chips compress among themselves. */
        flex: 1 1 0;
        flex-wrap: nowrap;
        gap: 6px;
        align-items: center;
        /* Floor for legibility: below this a chip is a dot and an ellipsis, so
           in the pinched 760–1000px band let the rail take its own row instead
           of shrinking into nothing. */
        min-width: 180px;
        max-width: 32%;
      }

      .status-rail:empty {
        display: none;
      }

      .status-chip {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        /* Shrinkable so several chips at once compress with ellipses rather
           than wrapping the nav row onto a second line. */
        flex: 0 1 auto;
        max-width: 32ch;
        min-width: 0;
        padding: 5px 11px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(40, 31, 20, 0.04);
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 650;
        line-height: 1.35;
      }

      .status-chip::before {
        content: '';
        flex: 0 0 auto;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
      }

      .status-chip.pending::before {
        animation: conn-pulse 1.1s ease-in-out infinite;
      }

      @keyframes conn-pulse {
        0%, 100% { opacity: 0.35; }
        50% { opacity: 1; }
      }

      @media (prefers-reduced-motion: reduce) {
        .status-chip.pending::before {
          animation: none;
        }
      }

      .status-chip.error {
        color: var(--warn);
        border-color: rgba(226, 61, 91, 0.38);
        background: rgba(226, 61, 91, 0.1);
      }

      .status-chip.warn {
        color: #8a5a00;
        border-color: rgba(190, 130, 20, 0.38);
        background: rgba(226, 160, 40, 0.14);
      }

      .status-chip.info {
        color: var(--teal);
        border-color: rgba(31, 122, 120, 0.32);
        background: rgba(31, 122, 120, 0.1);
      }

      .status-chip-text {
        min-width: 3ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .status-chip.expanded {
        max-width: min(460px, 100%);
      }

      .status-chip.expanded .status-chip-text {
        overflow: visible;
        white-space: normal;
      }

      .status-chip-action,
      .status-chip-close {
        flex: 0 0 auto;
        border: 0;
        padding: 0;
        background: transparent;
        color: inherit;
        font: inherit;
      }

      .status-chip-action {
        text-decoration: underline;
        text-underline-offset: 2px;
      }

      .status-chip-action:hover {
        color: var(--ink);
      }

      .status-chip-close {
        font-size: 0.95rem;
        line-height: 1;
        opacity: 0.5;
      }

      .status-chip-close:hover {
        opacity: 1;
      }

      .view {
        display: none;
        margin-top: var(--space-4);
      }

      .view.active {
        display: block;
      }

      .home-grid {
        display: grid;
        gap: 28px;
      }

      .home-hero {
        display: grid;
        gap: 28px;
        align-items: stretch;
      }

  .band-showcase {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0d0b14;
    box-shadow: 0 18px 40px rgba(34, 24, 65, 0.18);
  }

  .band-showcase img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .band-showcase-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(14, 11, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(8px);
  }

      .band-showcase-copy strong {
        display: block;
        font-size: 1rem;
        letter-spacing: -0.02em;
        margin-bottom: 4px;
      }

      .band-showcase-copy span {
        display: block;
        font-size: 0.9rem;
        line-height: 1.45;
        color: rgba(255, 248, 239, 0.84);
      }

      .hero-kicker {
        display: inline-flex;
        width: fit-content;
        align-items: center;
        gap: 8px;
        padding: 7px 12px;
        border-radius: 999px;
        background: rgba(255, 79, 216, 0.1);
        color: var(--accent-strong);
        border: 1px solid rgba(255, 79, 216, 0.24);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
      }

      .home-copy h2 {
        margin: 0;
        font-size: 2.6rem;
        line-height: 1.05;
        letter-spacing: 0;
      }

      .home-copy p {
        margin: 0;
        max-width: 56ch;
        color: var(--muted);
        font-size: 1.04rem;
        line-height: 1.6;
      }

      .home-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 10px;
      }

      .hero-list {
        display: grid;
        gap: 10px;
      }

      .hero-list div {
        padding: 12px 14px;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid var(--line);
      }

      .hero-list strong {
        display: block;
        margin-bottom: 4px;
      }

      .feature-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
      }

      .feature-card {
        padding: var(--space-4);
      }

      .feature-card h3,
      .story-card h3 {
        margin: 0 0 10px;
        letter-spacing: -0.03em;
      }

      .story-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 22px;
      }

      .story-card {
        padding: var(--space-4);
      }

      .panel {
        padding: var(--space-4);
      }

      .panel h2,
      .panel h3 {
        margin: 0 0 12px;
        letter-spacing: -0.03em;
      }

      .panel p {
        margin: 0;
        color: var(--muted);
        line-height: 1.5;
      }

      .panel p + p {
        margin-top: 12px;
      }

      .stage-grid,
      .studio-grid {
        display: grid;
        gap: 18px;
      }

      .stage-panel {
        position: relative;
        overflow: hidden;
        padding: 0;
        background:
          radial-gradient(ellipse 75% 50% at 92% 8%,  rgba(111, 60, 255, 0.22) 0%, transparent 60%),
          radial-gradient(ellipse 60% 45% at 8%  92%, rgba(0, 167, 183, 0.2)  0%, transparent 55%),
          radial-gradient(ellipse 55% 60% at 50% 40%, rgba(255, 79, 216, 0.13) 0%, transparent 55%),
          #f2f0f8;
      }

      .stage-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
          linear-gradient(90deg,  rgba(111, 60, 255, 0.06) 1px, transparent 1px),
          linear-gradient(180deg, rgba(111, 60, 255, 0.04) 1px, transparent 1px);
        background-size: 38px 38px;
        mask-image: linear-gradient(180deg, rgba(0,0,0,0.65), transparent 55%);
      }

      .stage-panel > * {
        position: relative;
      }

      .feed-list,
      .task-list {
        display: grid;
        gap: 14px;
      }
      .task-card {
        padding: 18px;
      }

      .feed-meta,
      .task-meta,
      .inline-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        margin-bottom: 12px;
      }

      .pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(29, 28, 26, 0.07);
        color: var(--muted);
        font-size: 0.83rem;
      }

      .pill strong {
        color: var(--ink);
      }
      .task-card h4 {
        margin: 0 0 10px;
        font-size: 1.16rem;
      }
      .task-card p {
        margin: 0;
        color: var(--muted);
      }

      .published-work-card.is-uploading {
        border-color: rgba(0, 167, 183, 0.38);
        box-shadow: 0 12px 30px rgba(0, 167, 183, 0.12);
      }

      .published-upload-status {
        display: grid;
        gap: var(--space-2);
        margin-top: var(--space-3);
        color: var(--teal);
        font-size: 0.84rem;
        font-weight: 800;
      }

      .published-upload-track {
        height: 5px;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(0, 167, 183, 0.14);
      }

      .published-upload-track::after {
        content: "";
        display: block;
        width: 42%;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--teal), var(--blue));
        animation: published-upload-progress 1.15s ease-in-out infinite;
      }

      @keyframes published-upload-progress {
        0% { transform: translateX(-110%); }
        100% { transform: translateX(340%); }
      }

      @media (prefers-reduced-motion: reduce) {
        .published-upload-track::after {
          animation: none;
          transform: translateX(70%);
        }
      }
      /* Community engagement: vote, comment, sort/filter */
      .sort-tab {
        border: 1px solid transparent;
        background: transparent;
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 0.86rem;
        color: var(--ink);
        cursor: pointer;
        font-weight: 800;
        transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
      }
      .sort-tab.active {
        color: #fff;
        border-color: rgba(20, 16, 25, 0.08);
        background: linear-gradient(135deg, var(--ink), #4b2468);
        box-shadow: 0 10px 20px rgba(20, 16, 25, 0.16);
      }
      .sort-tab:hover {
        transform: translateY(-1px);
        background: rgba(20, 16, 25, 0.06);
      }
      .topic-filter {
        width: auto;
        min-width: 170px;
        font-size: 0.86rem;
        padding: 8px 34px 8px 13px;
        border: 1px solid rgba(20, 16, 25, 0.1);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.78);
        margin-left: auto;
        font-weight: 700;
      }

      .stage-panel .feed-list {
        gap: var(--space-4);
        padding: 0 var(--space-4) var(--space-4);
      }

      .stage-panel .empty-state {
        background: rgba(255, 255, 255, 0.72);
        border-style: solid;
        text-align: center;
      }

      .feed-visual {
        position: relative;
        min-height: 230px;
        background:
          linear-gradient(135deg, rgba(255, 79, 216, 0.5), rgba(0, 167, 183, 0.4)),
          linear-gradient(45deg, #21162c, #4f276d);
        overflow: hidden;
      }

      .feed-visual::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
          linear-gradient(115deg, transparent 0 28%, rgba(255, 255, 255, 0.24) 28% 33%, transparent 33% 100%),
          radial-gradient(circle at 18% 20%, rgba(200, 255, 47, 0.5), transparent 30%),
          radial-gradient(circle at 84% 82%, rgba(21, 137, 255, 0.45), transparent 34%);
      }

      .feed-image {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        pointer-events: none;
      }

      .feed-media {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        max-height: 420px;
        object-fit: contain;
        border-radius: 8px;
      }
      video.feed-media { pointer-events: auto; }
      .drop-card .feed-media { margin-bottom: 14px; }
      video.feed-media + .feed-visual-overlay { display: none; }

      .feed-image + .feed-visual-overlay {
        background: linear-gradient(180deg, transparent 38%, rgba(20, 16, 25, 0.78));
      }

      .feed-visual-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: flex-end;
        padding: 16px;
      }

      .feed-drop-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        max-width: 100%;
        padding: 8px 11px;
        border-radius: 999px;
        background: rgba(20, 16, 25, 0.78);
        color: #fff;
        font-size: 0.76rem;
        font-weight: 850;
        letter-spacing: 0.06em;
        text-transform: uppercase;
      }

      .feed-meta {
        gap: 7px;
        margin-bottom: 0;
      }

      .feed-meta .pill {
        padding: 5px 9px;
        background: rgba(20, 16, 25, 0.07);
        color: var(--ink);
        font-size: 0.76rem;
        font-weight: 750;
      }

      .topic-pill {
        background: rgba(0, 167, 183, 0.12) !important;
        color: #075d66 !important;
      }

      .card-engagement {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 0;
      }
      .card-vote {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 7px 10px;
        border-radius: 999px;
        background: rgba(255, 79, 216, 0.1);
      }
      .card-vote button {
        display: inline-grid;
        place-items: center;
        width: 24px;
        height: 24px;
        background: #fff;
        border: none;
        border-radius: 999px;
        color: var(--accent-strong);
        font-size: 0.82rem;
        padding: 0;
        line-height: 1;
        transition: transform 0.15s, background 0.15s, color 0.15s;
      }
      .card-vote button:hover,
      .card-vote button.voted {
        transform: translateY(-1px);
        background: var(--accent);
        color: #fff;
      }
      .card-vote .vote-count {
        font-size: 0.88rem;
        color: var(--ink);
        font-weight: 850;
        min-width: 16px;
      }
      .card-comments-link {
        margin-left: 0;
        font-size: 0.86rem;
        color: var(--ink);
        background: rgba(20, 16, 25, 0.07);
        border: none;
        border-radius: 999px;
        padding: 9px 13px;
        cursor: pointer;
        text-decoration: none;
        font-weight: 850;
        transition: background 0.15s, transform 0.15s;
      }
      .card-comments-link:hover {
        text-decoration: none;
        transform: translateY(-1px);
        background: rgba(0, 167, 183, 0.14);
      }
      .badge {
        display: inline-block;
        font-size: 0.72rem;
        padding: 5px 8px;
        border-radius: 999px;
        font-weight: bold;
        letter-spacing: 0.02em;
      }
      .badge-editorial {
        background: linear-gradient(135deg, var(--accent), var(--violet));
        color: #fff;
      }
      /* Outlined, not filled: the brand's own gradient reads as the brand
         speaking, and a guest piece is explicitly not that. */
      .badge-guest {
        background: transparent;
        color: var(--muted);
        border: 1px solid var(--line);
      }
      .drop-guest {
        font-size: 0.66rem;
        font-weight: bold;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 2px 7px;
        border-radius: 999px;
        color: var(--muted);
        border: 1px solid var(--line);
      }

      /* ─── Drop Wall ──────────────────────────────────── */
      .feed-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 24px;
        border-bottom: 1px solid rgba(20,16,25,0.07);
        flex-wrap: wrap;
      }
      .feed-bar-live {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(255,79,216,0.1);
        color: var(--accent-strong);
        font-size: 0.7rem;
        font-weight: 850;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        flex-shrink: 0;
      }
      .feed-bar-live::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
        animation: conn-pulse 1.1s ease-in-out infinite;
      }
      /* .panel h2 (0,1,1) out-specifies a bare .feed-bar-title (0,1,0) and was
         applying `margin: 0 0 12px`. With align-items:center the flex line
         centres the MARGIN box, so that pushed the title up by exactly half —
         6px — while the Live chip and item count sat centred. Scoped here so
         the title wins without touching the shared .panel rule. */
      .feed-bar .feed-bar-title {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 850;
        background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-family: Georgia, serif;
        white-space: nowrap;
      }
      .feed-bar-divider {
        width: 1px;
        height: 20px;
        background: rgba(20,16,25,0.12);
        flex-shrink: 0;
      }
      .feed-bar-count {
        font-size: 0.78rem;
        color: var(--muted);
        font-weight: 700;
        margin-right: auto;
      }
      .drop-wall {
        columns: 2;
        column-gap: var(--space-4);
        padding: var(--space-4);
      }
      .drop-wall > * {
        break-inside: avoid;
        margin-bottom: 18px;
      }
      .drop-wall .empty-state {
        column-span: all;
      }
      .drop-card {
        --creator-color: #ff4fd8;
        position: relative;
        overflow: hidden;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(20,16,25,0.09);
        border-top: 4px solid var(--creator-color);
        background:
          linear-gradient(160deg,
            color-mix(in srgb, var(--creator-color) 9%, white) 0%,
            white 100%);
        padding: 18px;
        transition: transform 160ms ease, box-shadow 160ms ease;
        cursor: pointer;
        display: block;
      }
      .drop-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 48px rgba(51,34,84,0.18);
      }
      .drop-top-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
      }
      .drop-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--creator-color);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--creator-color) 18%, transparent);
        flex-shrink: 0;
      }
      .drop-avatar-initials {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 2px solid var(--creator-color);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--creator-color) 18%, transparent);
        flex-shrink: 0;
        background: color-mix(in srgb, var(--creator-color) 12%, #fff);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.65rem;
        font-weight: 850;
        color: var(--creator-color);
        letter-spacing: 0.02em;
      }
      .drop-creator {
        font-size: 0.82rem;
        font-weight: 850;
        color: var(--creator-color);
      }
      .drop-time {
        font-size: 0.75rem;
        color: var(--muted);
        margin-left: auto;
      }
      .drop-title {
        margin: 0 0 6px;
        font-size: 1.05rem;
        line-height: 1.18;
        font-family: Georgia, serif;
        background: linear-gradient(135deg,
          var(--creator-color) 0%,
          color-mix(in srgb, var(--creator-color) 50%, var(--ink)) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }
      .drop-headline {
        margin: 0 0 10px;
        font-size: 0.88rem;
        color: var(--muted);
        line-height: 1.45;
      }
      .drop-lyric {
        margin: 10px 0;
        padding: 11px 14px;
        border-left: 3px solid var(--creator-color);
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        background: color-mix(in srgb, var(--creator-color) 7%, white);
        font-style: italic;
        font-size: 0.9rem;
        color: var(--ink);
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .drop-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 10px;
      }
      .drop-tag {
        display: inline-flex;
        align-items: center;
        padding: 3px 8px;
        border-radius: 999px;
        font-size: 0.74rem;
        font-weight: 750;
        color: var(--creator-color);
        background: color-mix(in srgb, var(--creator-color) 10%, transparent);
        border: 1px solid color-mix(in srgb, var(--creator-color) 24%, transparent);
      }
      .drop-engagement {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid rgba(20,16,25,0.07);
      }
      /* Featured — full-width dark two-column card */
      .drop-card.featured {
        column-span: all;
        border-top-color: var(--creator-color);
        background: #0d0b14;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-height: 210px;
      }
      .drop-featured-lyric-panel {
        padding: 24px;
        background: linear-gradient(145deg,
          color-mix(in srgb, var(--creator-color) 16%, #0d0b14) 0%, #0d0b14 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        border-right: 1px solid rgba(255,255,255,0.06);
      }
      .drop-featured-lyric-panel .drop-lyric {
        background: rgba(255,255,255,0.05);
        border-left-color: var(--creator-color);
        color: rgba(255,255,255,0.85);
        -webkit-line-clamp: 5;
        margin-top: 0;
      }
      .drop-featured-meta-panel {
        padding: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
      .drop-card.featured .drop-title {
        font-size: 1.22rem;
      }
      .drop-card.featured .drop-headline {
        color: rgba(255,255,255,0.55);
      }
      .drop-card.featured .drop-creator {
        color: var(--creator-color);
      }
      .drop-card.featured .drop-time {
        color: rgba(255,255,255,0.35);
      }
      .drop-card.featured .drop-engagement {
        border-top-color: rgba(255,255,255,0.08);
      }
      .drop-card.featured .drop-tag {
        color: var(--creator-color);
        background: color-mix(in srgb, var(--creator-color) 15%, transparent);
        border-color: color-mix(in srgb, var(--creator-color) 30%, transparent);
      }
      /* Compact — left accent border, no image, tight padding */
      .drop-card.compact {
        border-top: 1px solid rgba(20,16,25,0.09);
        border-left: 4px solid var(--creator-color);
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        padding: 13px 15px;
        background: rgba(255,255,255,0.8);
      }
      .drop-card.compact .drop-top-row {
        margin-bottom: 7px;
      }
      .drop-card.compact .drop-title {
        font-size: 0.92rem;
      }
      .drop-card.compact .drop-headline {
        font-size: 0.84rem;
        margin-bottom: 6px;
      }
      .drop-card.compact .drop-engagement {
        margin-top: 8px;
        padding-top: 8px;
      }

      /* Thread view */
      .thread-panel {
        padding: 0 var(--space-4) var(--space-4);
      }
      .thread-back {
        border: none;
        border-radius: 999px;
        background: rgba(20, 16, 25, 0.08);
        color: var(--ink);
        cursor: pointer;
        font-size: 0.88rem;
        padding: 8px 12px;
        margin-bottom: 16px;
        font-weight: 800;
      }
      .thread-back:hover {
        text-decoration: none;
        background: rgba(20, 16, 25, 0.12);
      }
      .thread-card {
        overflow: hidden;
        border: 1px solid rgba(20, 16, 25, 0.1);
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 18px 40px rgba(51, 34, 84, 0.14);
      }
      .thread-visual {
        position: relative;
        min-height: 160px;
        background:
          linear-gradient(135deg, rgba(255, 79, 216, 0.5), rgba(0, 167, 183, 0.4)),
          linear-gradient(45deg, #21162c, #4f276d);
      }
      .thread-content {
        display: grid;
        gap: var(--space-3);
        padding: var(--space-4);
      }
      .thread-content h3 {
        margin: 0;
        font-size: clamp(1.7rem, 3.6vw, 3rem);
        line-height: 1;
      }
      .thread-body {
        margin: 0;
        line-height: 1.6;
        color: var(--ink);
        white-space: pre-wrap;
        overflow-wrap: anywhere;
      }
      .comment-list {
        margin-top: 18px;
      }
      .comment-item {
        padding: 13px 14px;
        border: 1px solid rgba(20, 16, 25, 0.08);
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.68);
        margin-top: 8px;
      }
      .comment-item.depth-1 { margin-left: 24px; }
      .comment-item.depth-2 { margin-left: 48px; }
      .comment-item.depth-3 { margin-left: 72px; }
      .comment-meta {
        font-size: 0.78rem;
        color: var(--muted);
        margin-bottom: 4px;
      }
      .comment-body {
        font-size: 0.92rem;
        line-height: 1.5;
      }
      .comment-form {
        margin-top: 14px;
      }
      .comment-form textarea {
        width: 100%;
        min-height: 60px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        font-size: 0.9rem;
        resize: vertical;
      }
      .comment-form button {
        margin-top: 6px;
      }
      .reply-btn {
        background: none;
        border: none;
        color: var(--muted);
        font-size: 0.76rem;
        cursor: pointer;
        padding: 0;
      }
      .reply-btn:hover {
        color: var(--teal);
      }

      .studio-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(280px, 0.9fr);
        align-items: start;
      }

      .studio-column {
        display: grid;
        gap: 18px;
      }

      /* Creator Studio is a writer's room, not a three-column task dashboard. */
      .creator-studio {
        display: grid;
        grid-template-columns: minmax(230px, 0.72fr) minmax(0, 2.28fr);
        gap: var(--space-4);
        align-items: start;
      }

      .studio-work-rail {
        position: sticky;
        top: var(--space-4);
        display: grid;
        gap: var(--space-4);
      }

      .studio-rail-head {
        display: grid;
        gap: var(--space-3);
      }

      .studio-rail-head .btn {
        width: 100%;
      }

      .studio-work-group {
        display: grid;
        gap: 10px;
        min-width: 0;
      }

      .studio-work-group + .studio-work-group {
        padding-top: 14px;
        border-top: 1px solid rgba(40, 31, 20, 0.1);
      }

      .studio-work-group-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-2);
        color: var(--muted);
        font-size: 0.75rem;
        font-weight: 850;
        letter-spacing: 0.09em;
        text-transform: uppercase;
      }

      .studio-work-group-title > span:last-child {
        display: inline-grid;
        min-width: 24px;
        min-height: 24px;
        place-items: center;
        padding: 0 7px;
        border-radius: 999px;
        background: rgba(20, 16, 25, 0.055);
        color: var(--ink);
        font-size: 0.7rem;
        letter-spacing: 0;
      }

      .studio-work-group-list {
        display: grid;
        gap: var(--space-2);
        min-width: 0;
      }

      .studio-work-group-list > .empty-state {
        display: block;
        grid-column: 1 / -1;
        padding: 11px 12px;
        border: 0;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.42);
        color: var(--muted);
        font-size: 0.84rem;
        line-height: 1.45;
      }

      .studio-work-item {
        width: 100%;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        padding: 11px 12px;
        background: rgba(255, 255, 255, 0.64);
        color: var(--ink);
        text-align: left;
        display: grid;
        gap: 4px;
      }

      .studio-work-item:hover,
      .studio-work-item.selected {
        border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
        background: color-mix(in srgb, var(--accent) 7%, white);
      }

      .studio-work-item.selected {
        box-shadow: inset 3px 0 0 var(--accent);
      }

      .studio-work-item strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .studio-work-item span {
        color: var(--muted);
        font-size: 0.78rem;
      }

      .studio-editor {
        min-width: 0;
        padding: clamp(18px, 3vw, 34px);
        overflow: hidden;
      }

      .studio-editor-head {
        display: flex;
        justify-content: space-between;
        gap: var(--space-4);
        align-items: flex-start;
      }

      .studio-save-state {
        min-width: 92px;
        color: var(--muted);
        font-size: 0.82rem;
        font-weight: 800;
        text-align: right;
      }

      .studio-save-state[data-state="saving"],
      .studio-save-state[data-state="dirty"] {
        color: var(--violet);
      }

      .studio-save-state[data-state="error"] {
        color: var(--warn);
      }

      .story-thread {
        --thread-progress: 0%;
        position: relative;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2);
        margin: var(--space-5) 0 var(--space-6);
      }

      .story-thread::before,
      .story-thread::after {
        content: "";
        position: absolute;
        top: 10px;
        left: 10%;
        height: 3px;
        border-radius: 999px;
      }

      .story-thread::before {
        right: 10%;
        background: rgba(20, 16, 25, 0.1);
      }

      .story-thread::after {
        width: var(--thread-progress);
        max-width: 80%;
        background: linear-gradient(90deg, var(--accent), var(--teal), var(--violet));
        transition: width 220ms ease;
      }

      .story-thread-step {
        position: relative;
        z-index: 1;
        display: grid;
        justify-items: center;
        gap: 7px;
        color: var(--muted);
        font-size: 0.76rem;
        font-weight: 800;
      }

      .story-thread-step::before {
        content: "";
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 4px solid white;
        background: #d9d5df;
        box-shadow: 0 0 0 1px var(--line);
      }

      .story-thread-step.done::before,
      .story-thread-step.active::before {
        background: var(--accent);
      }

      .story-thread-step.review.done::before,
      .story-thread-step.review.active::before {
        background: var(--teal);
      }

      .story-thread-step.published.done::before,
      .story-thread-step.published.active::before {
        background: var(--violet);
      }

      .studio-brief {
        margin-bottom: var(--space-5);
        padding: var(--space-4);
        border-left: 3px solid var(--accent);
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        background: color-mix(in srgb, var(--accent) 6%, white);
      }

      .studio-brief-label {
        display: block;
        margin-bottom: 6px;
        color: var(--accent-strong);
        font-size: 0.72rem;
        font-weight: 850;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .studio-editor textarea#draft-body {
        min-height: 310px;
        font-size: 1.04rem;
        line-height: 1.65;
      }

      .studio-editor-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        margin-top: var(--space-5);
        padding-top: var(--space-4);
        border-top: 1px solid var(--line);
      }

      .studio-editor-actions .actions {
        margin-top: 0;
      }

      .studio-empty-invitation {
        min-height: 460px;
        display: grid;
        place-items: center;
        text-align: center;
      }

      .studio-empty-copy {
        max-width: 520px;
        display: grid;
        justify-items: center;
        gap: var(--space-4);
      }

      .studio-empty-copy h2 {
        max-width: 470px;
        font-size: clamp(2rem, 4vw, 3.4rem);
        line-height: 1;
      }

      .new-piece-form {
        margin-top: var(--space-5);
        padding: var(--space-5);
        border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
        border-radius: var(--radius-md);
        background: color-mix(in srgb, var(--accent) 5%, white);
        display: grid;
        gap: var(--space-4);
      }

      .studio-inline-error {
        color: var(--warn);
        font-size: 0.85rem;
        font-weight: 750;
      }

      @media (prefers-reduced-motion: reduce) {
        .story-thread::after {
          transition: none;
        }
      }

      .section-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        margin-bottom: 14px;
      }

      .section-head p {
        color: var(--muted);
        font-size: 0.95rem;
      }

      .stack {
        display: grid;
        gap: 12px;
      }

      .task-card.selected {
        border-color: rgba(170, 78, 34, 0.45);
        box-shadow: 0 14px 30px rgba(170, 78, 34, 0.14);
      }

      .actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
      }

      .btn {
        border: 0;
        border-radius: 999px;
        padding: 10px 16px;
        background: var(--ink);
        color: #fff8ef;
      }

      .btn.secondary {
        background: rgba(29, 28, 26, 0.08);
        color: var(--ink);
      }

      .btn.warn {
        background: var(--warn);
      }

      .btn.teal {
        background: var(--teal);
      }

      .btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
      }

      label {
        display: grid;
        gap: 8px;
        font-size: 0.95rem;
        color: var(--muted);
      }

      input,
      textarea,
      select {
        width: 100%;
        border: 1px solid rgba(40, 31, 20, 0.16);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.82);
        padding: 12px 14px;
        color: var(--ink);
      }

      textarea {
        min-height: 120px;
        resize: vertical;
      }

      .form-grid {
        display: grid;
        gap: 12px;
      }

      .mono {
        font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
      }

      .empty-state {
        padding: 18px;
        border: 1px dashed rgba(40, 31, 20, 0.18);
        border-radius: var(--radius-md);
        color: var(--muted);
        background: rgba(255, 255, 255, 0.45);
      }

      .detail-copy {
        display: grid;
        gap: 12px;
      }

      .detail-copy h3 {
        margin-bottom: 0;
      }

      .detail-copy pre {
        margin: 0;
        white-space: pre-wrap;
        word-break: break-word;
        background: rgba(29, 28, 26, 0.05);
        border-radius: var(--radius-md);
        padding: 14px;
        color: var(--ink);
      }

      .home-copy.wide h2 {
        max-width: 32ch;
      }

      .closing-hero {
        text-align: center;
        padding: var(--space-5);
      }

      .closing-hero h3 {
        font-size: clamp(1.4rem, 2.4vw, 2rem);
        line-height: 1.2;
        letter-spacing: -0.04em;
        max-width: 46ch;
        margin: 0 auto 16px;
      }

      .closing-hero p {
        max-width: 52ch;
        margin: 0 auto;
      }

      .closing-hero .home-actions {
        justify-content: center;
      }

      .universe-grid {
        display: grid;
        /* No margin-bottom: grid gaps do not collapse with margins, so pairing
           the two produced a 104px seam between blocks inside .universe-content.
           Spacing between blocks is the parent's gap alone. */
        gap: var(--space-5);
      }

      .universe-hero {
        padding: var(--space-5);
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 241, 255, 0.88)),
          linear-gradient(90deg, rgba(0, 167, 183, 0.12), rgba(255, 79, 216, 0.1));
      }

      .universe-copy .thread-back {
        margin-bottom: 24px;
      }

      .universe-copy h2 {
        margin: 12px 0 20px;
        font-size: 2.4rem;
        line-height: 1.15;
        letter-spacing: 0;
      }

      .universe-copy .lead {
        font-size: 1.25rem;
        line-height: 1.5;
        color: var(--muted);
        max-width: 800px;
      }

      .universe-content {
        display: grid;
        gap: var(--space-5);
        padding-bottom: 0;
      }

      .album-layout {
        display: grid;
        grid-template-columns: minmax(220px, 320px) 1fr;
        gap: 32px;
        align-items: start;
      }

      .album-art-wrap {
        position: sticky;
        top: 20px;
      }

      .album-art {
        width: 100%;
        height: auto;
        border-radius: var(--radius-sm);
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
        display: block;
      }

      .tracklist {
        list-style: none;
        margin: 16px 0 0;
        padding: 0;
        display: grid;
        gap: 4px;
      }

      .tracklist li {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.04);
      }

      .tracklist li:nth-child(odd) {
        background: rgba(255, 255, 255, 0.02);
      }

      .track-name::before {
        content: counter(track) ". ";
      }

      .tracklist {
        counter-reset: track;
      }

      .tracklist li {
        counter-increment: track;
      }

      .track-duration {
        opacity: 0.6;
      }

      .album-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 16px;
      }

      .album-link {
        padding: 10px 18px;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.08);
        color: inherit;
        text-decoration: none;
        font-weight: 600;
        transition: background 0.15s;
      }

      .album-link:hover {
        background: rgba(255, 255, 255, 0.18);
      }

      .market-section {
        margin-bottom: 24px;
      }

      .market-section-header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
      }

      .market-section-title {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--muted);
        margin: 0 0 10px;
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-weight: 850;
      }

      .market-count {
        font-size: 0.85rem;
        color: var(--muted);
      }

      .market-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .market-chip {
        border: 1px solid var(--line);
        background: var(--bg-panel);
        color: var(--ink);
        border-radius: 999px;
        padding: 6px 14px;
        font-size: 0.88rem;
        font-weight: 650;
        cursor: pointer;
        transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
      }

      .market-chip:hover {
        border-color: var(--ink);
      }

      .market-chip.active {
        background: var(--ink);
        color: #fff;
        border-color: var(--ink);
      }

      .market-empty-inline {
        font-size: 0.88rem;
        color: var(--muted);
      }

      .market-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
      }

      /* Product imagery. This file sizes every other image with fixed
         width/height + object-fit; a card thumbnail spans the card, so it uses
         aspect-ratio instead to stay square-ish as the grid column flexes.
         Placeholders keep the same box so a listing without images does not
         shift the grid relative to one that has them. */
      .market-card-thumb {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: var(--radius-sm);
        background: rgba(128, 128, 128, 0.12);
        display: block;
      }
      .market-card-thumb-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        opacity: 0.35;
      }
      .market-pdp-gallery { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 2px; }
      .market-pdp-image {
        width: 100%;
        max-height: 340px;
        aspect-ratio: 4 / 3;
        object-fit: contain;
        border-radius: var(--radius-sm);
        background: rgba(128, 128, 128, 0.10);
      }
      .market-pdp-image-placeholder {
        align-items: center;
        justify-content: center;
        font-size: 40px;
        opacity: 0.35;
      }
      .market-pdp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
      .market-pdp-thumb {
        width: 56px;
        height: 56px;
        object-fit: cover;
        border-radius: var(--radius-sm);
        border: 2px solid transparent;
        cursor: pointer;
        opacity: 0.65;
        transition: opacity 140ms ease, border-color 140ms ease;
      }
      .market-pdp-thumb:hover { opacity: 1; }
      .market-pdp-thumb.is-active { opacity: 1; border-color: var(--accent-strong); }

      .market-card {
        background: var(--bg-panel);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        padding: var(--space-4);
        box-shadow: 0 10px 26px rgba(51, 34, 84, 0.09);
        display: flex;
        flex-direction: column;
        gap: 8px;
        transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
      }

      .market-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
      }

      .market-card-kind {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--muted);
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-weight: 850;
      }

      .market-card-price {
        font-weight: 700;
        color: var(--accent-strong);
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      }

      .market-card-title {
        margin: 0;
        font-size: 1.08rem;
        line-height: 1.3;
      }

      .market-card-desc {
        margin: 0;
        color: var(--muted);
        font-size: 0.92rem;
        line-height: 1.45;
      }

      .market-card-meta {
        font-size: 0.85rem;
        color: var(--muted);
      }

      .market-card-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 4px;
      }

      .market-pill {
        font-size: 0.76rem;
        padding: 3px 9px;
        border-radius: 999px;
        background: rgba(40, 31, 20, 0.06);
        color: var(--ink);
      }

      .market-pill-cat {
        background: rgba(255, 79, 216, 0.12);
        color: var(--accent-strong);
      }

      .market-pill-tag {
        background: rgba(0, 167, 183, 0.12);
        color: var(--teal);
      }

      .market-empty {
        grid-column: 1 / -1;
        text-align: center;
        padding: 32px 16px;
        color: var(--muted);
        font-size: 0.95rem;
      }

      .market-card {
        cursor: pointer;
      }

      .market-card:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 79, 216, 0.34);
        box-shadow: var(--shadow-pop);
      }

      .market-hero-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 12px;
      }

      .market-cart-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid var(--line);
        background: var(--bg-panel);
        color: var(--ink);
        padding: 8px 14px;
        border-radius: 999px;
        cursor: pointer;
        font-size: 0.92rem;
        font-weight: 800;
      }

      .market-cart-button:hover {
        border-color: var(--ink);
      }

      .market-cart-button.has-items {
        background: var(--ink);
        color: #fff8ef;
        border-color: var(--ink);
      }

      .market-cart-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        border-radius: 999px;
        background: rgba(40, 31, 20, 0.12);
        font-size: 0.78rem;
        font-weight: 700;
      }

      .market-cart-button.has-items .market-cart-badge {
        background: rgba(255, 255, 255, 0.22);
        color: #fff8ef;
      }

      .market-cart-panel {
        background: var(--bg-panel);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        padding: 16px 18px;
        box-shadow: var(--shadow);
      }

      .market-cart-close {
        border: 0;
        background: transparent;
        color: var(--muted);
        font-size: 1.4rem;
        line-height: 1;
        cursor: pointer;
        padding: 0 4px;
      }

      .market-cart-close:hover {
        color: var(--ink);
      }

      .market-cart-empty {
        color: var(--muted);
        font-size: 0.92rem;
        padding: 10px 0;
      }

      .market-cart-lines {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 10px;
      }

      .market-cart-line {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-top: 1px solid var(--line);
      }

      .market-cart-line:first-child {
        border-top: 0;
      }

      .market-cart-line-title {
        font-weight: 600;
      }

      .market-cart-line-meta {
        font-size: 0.82rem;
        color: var(--muted);
      }

      .market-cart-line-price {
        font-weight: 700;
        color: var(--accent-strong);
      }

      .market-cart-line-remove {
        border: 0;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        font-size: 1rem;
        padding: 4px 8px;
        border-radius: 999px;
      }

      .market-cart-line-remove:hover {
        background: rgba(40, 31, 20, 0.06);
        color: var(--ink);
      }

      .market-cart-summary {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
      }

      .market-cart-total {
        font-size: 1.05rem;
        font-weight: 700;
      }

      .market-shipping-section {
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
      }

      .market-shipping-address-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 10px;
      }

      .market-shipping-address-form input {
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        font: inherit;
      }

      .market-shipping-rates {
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
      }

      .market-shipping-rates-title {
        font-weight: 600;
        font-size: 0.9rem;
        margin-bottom: 6px;
      }

      .market-shipping-rate-option {
        display: block;
        font-size: 0.9rem;
        padding: 4px 0;
        cursor: pointer;
      }

      .market-shipping-line {
        margin-top: 6px;
        font-size: 0.85rem;
        color: var(--muted);
      }

      .market-cart-actions {
        display: flex;
        gap: 8px;
      }

      .market-cart-checkout {
        background: var(--ink);
        color: #fff8ef;
        border: 1px solid var(--ink);
        padding: 8px 16px;
        border-radius: 999px;
        font-weight: 600;
        cursor: pointer;
      }

      .market-cart-checkout[disabled] {
        opacity: 0.5;
        cursor: not-allowed;
      }

      .market-cart-note {
        font-size: 0.82rem;
        color: var(--muted);
        text-align: right;
        margin-top: 6px;
      }

      .market-subnav {
        display: flex;
        gap: 4px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 16px;
      }

      .market-subnav-tab {
        border: 0;
        background: transparent;
        color: var(--muted);
        padding: 10px 16px;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
      }

      .market-subnav-tab:hover {
        color: var(--ink);
      }

      .market-subnav-tab.active {
        color: var(--ink);
        border-bottom-color: var(--accent-strong);
      }

      .market-orders-tabs {
        display: flex;
        gap: 4px;
        margin-bottom: 14px;
      }

      .market-orders-tab {
        border: 1px solid var(--line);
        background: transparent;
        color: var(--muted);
        padding: 6px 14px;
        border-radius: 999px;
        font-weight: 600;
        font-size: 0.86rem;
        cursor: pointer;
      }

      .market-orders-tab.active {
        background: var(--ink);
        color: #fff8ef;
        border-color: var(--ink);
      }

      .market-orders-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 14px;
      }

      .market-order-card {
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        padding: 14px 16px;
        background: var(--bg-panel);
        display: grid;
        gap: 8px;
      }

      .market-order-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 10px;
        flex-wrap: wrap;
      }

      .market-order-meta {
        font-size: 0.82rem;
        color: var(--muted);
      }

      .market-order-lines {
        list-style: none;
        margin: 6px 0 0;
        padding: 0;
        display: grid;
        gap: 6px;
      }

      .market-order-line {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 10px;
        align-items: center;
        font-size: 0.92rem;
        padding: 6px 0;
        border-top: 1px solid var(--line);
      }

      .market-order-line:first-child {
        border-top: 0;
      }

      .market-order-actions {
        display: flex;
        gap: 8px;
        margin-top: 6px;
      }

      .market-status-badge {
        display: inline-block;
        padding: 2px 10px;
        border-radius: 999px;
        font-size: 0.74rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
      }

      .market-status-badge.pending-payment {
        background: rgba(217, 138, 23, 0.15);
        color: #8a5300;
      }

      .market-status-badge.paid {
        background: rgba(36, 139, 86, 0.15);
        color: #1c6b3d;
      }

      .market-status-badge.payment-received {
        background: rgba(43, 99, 184, 0.15);
        color: #1b4b91;
      }

      .market-order-pay {
        display: flex;
        justify-content: flex-end;
        margin-top: 4px;
      }

      .market-pay-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 18px;
        border: none;
        border-radius: 999px;
        cursor: pointer;
        font-weight: 600;
        color: #fff8ef;
        background: linear-gradient(120deg, var(--accent), var(--violet));
        box-shadow: var(--shadow-pop);
        transition: transform 0.12s ease, box-shadow 0.12s ease;
      }

      .market-pay-btn:hover {
        transform: translateY(-1px);
      }

      .market-pay-btn:disabled {
        opacity: 0.6;
        cursor: default;
        transform: none;
      }

      .market-pay-arrow {
        transition: transform 0.12s ease;
      }

      .market-pay-btn:hover .market-pay-arrow {
        transform: translateX(3px);
      }

      .market-orders-empty {
        color: var(--muted);
        padding: 20px 0;
      }

      .market-payment-summary {
        margin: 12px 0 18px;
        padding: 12px 14px;
        background: rgba(40, 31, 20, 0.04);
        border-radius: var(--radius-md);
      }

      .market-payment-confirm {
        background: var(--ink);
        color: #fff8ef;
        border: 1px solid var(--ink);
        padding: 10px 20px;
        border-radius: 999px;
        font-weight: 700;
        cursor: pointer;
      }

      /* --- Seller refund control --- */

      .market-refund-btn {
        background: transparent;
        color: var(--ink);
        border: 1px solid var(--ink);
        padding: 10px 20px;
        border-radius: 999px;
        font-weight: 700;
        cursor: pointer;
      }

      .market-refund-btn:hover {
        background: rgba(0, 0, 0, 0.06);
      }

      .market-refund-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
      }

      .market-order-refunded {
        font-weight: 700;
      }

      .market-refund-funding {
        margin-top: 12px;
        padding: 12px;
        border: 1px solid rgba(190, 130, 20, 0.38);
        border-radius: 10px;
        background: rgba(190, 130, 20, 0.08);
      }

      .market-refund-funding p {
        margin: 5px 0 10px;
        font-size: 0.9rem;
      }

      .market-refund-summary {
        margin: 12px 0 4px;
      }

      .market-refund-row {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 5px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
      }

      .market-refund-label {
        display: block;
        margin: 14px 0 4px;
        font-weight: 700;
        font-size: 0.9rem;
      }

      .market-refund-input {
        width: 100%;
        padding: 9px 12px;
        border: 1px solid rgba(0, 0, 0, 0.25);
        border-radius: 10px;
        font: inherit;
        box-sizing: border-box;
      }

      .market-refund-help {
        margin-top: 4px;
        font-size: 0.85rem;
        opacity: 0.7;
      }

      .market-refund-help.invalid {
        opacity: 1;
        font-weight: 700;
      }

      .market-refund-warning {
        margin: 14px 0 0;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.2);
        background: rgba(0, 0, 0, 0.04);
        font-size: 0.9rem;
      }

      .market-refund-result {
        margin: 14px 0 0;
        padding: 12px;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.2);
        background: rgba(0, 0, 0, 0.04);
      }

      .market-refund-result-title {
        font-weight: 700;
        margin-bottom: 4px;
      }

      .market-payment-confirm[disabled] {
        opacity: 0.6;
        cursor: not-allowed;
      }

      .market-orders-refresh {
        background: transparent;
        border: 1px solid var(--line);
        padding: 4px 12px;
        border-radius: 999px;
        font-size: 0.82rem;
        cursor: pointer;
        color: var(--muted);
      }

      .market-modal[hidden] {
        display: none;
      }

      .market-modal {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-3);
      }

      .market-modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(29, 28, 26, 0.55);
        backdrop-filter: blur(2px);
      }

      .market-modal-dialog {
        position: relative;
        z-index: 1;
        background: var(--bg-panel);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        max-width: 560px;
        width: 100%;
        max-height: 90vh;
        overflow: auto;
        padding: var(--space-5);
      }

      .market-pdp-close {
        position: absolute;
        top: 12px;
        right: 14px;
        border: 0;
        background: transparent;
        color: var(--muted);
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 999px;
      }

      .market-pdp-close:hover {
        color: var(--ink);
        background: rgba(40, 31, 20, 0.06);
      }

      .market-pdp-kicker {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: var(--muted);
      }

      .market-pdp-title {
        margin: var(--space-1) 0 var(--space-1);
        font-size: 1.4rem;
      }

      .market-pdp-meta {
        font-size: 0.88rem;
        color: var(--muted);
      }

      .market-pdp-price {
        margin-top: var(--space-3);
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--accent-strong);
      }

      .market-pdp-desc {
        margin: var(--space-3) 0;
        color: var(--ink);
        line-height: 1.55;
      }

      .market-pdp-tags {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
        margin-bottom: var(--space-3);
      }

      .market-pdp-actions {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
      }

      .market-qty-input {
        width: 72px;
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        font-size: 1rem;
      }

      .market-add-button {
        background: var(--ink);
        color: #fff8ef;
        border: 1px solid var(--ink);
        padding: 10px 18px;
        border-radius: 999px;
        font-weight: 600;
        cursor: pointer;
      }

      .market-add-button:hover:not([disabled]) {
        background: var(--accent-strong);
        border-color: var(--accent-strong);
      }

      .market-add-button[disabled] {
        opacity: 0.5;
        cursor: not-allowed;
      }

      .market-add-hint {
        font-size: 0.82rem;
        color: var(--muted);
      }

      .roster-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
      }

      .faq-list {
        display: grid;
        gap: 12px;
      }

      .faq-item {
        padding: 0;
        overflow: hidden;
      }

      .faq-item > summary {
        list-style: none;
        cursor: pointer;
        padding: 20px 24px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
      }

      .faq-item > summary::-webkit-details-marker {
        display: none;
      }

      .faq-item > summary::after {
        content: "+";
        font-size: 1.4rem;
        line-height: 1;
        opacity: 0.5;
        transition: transform 0.2s ease;
      }

      .faq-item[open] > summary::after {
        content: "\2212";
      }

      .faq-item > p {
        margin: 0;
        padding: 0 24px 22px;
      }

      .member-card {
        padding: var(--space-4);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        transition: transform 160ms ease, box-shadow 160ms ease;
      }

      .member-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
      }

      .member-card h4 {
        margin: 0 0 8px;
        font-size: 1.4rem;
        color: var(--accent-strong);
      }

      .member-card .role {
        display: block;
        margin-bottom: 12px;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted);
      }

      .member-card p {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.5;
        color: var(--ink);
      }

      .manifesto-section {
        max-width: 900px;
        margin: 0 auto;
      }

      .manifesto-section h2 {
        text-align: center;
        font-size: clamp(2rem, 4vw, 2.8rem);
        margin-bottom: 32px;
      }

      .quote-panel {
        padding: var(--space-5);
        background: var(--ink);
        color: #fff8ef;
        border-radius: var(--radius-lg);
        text-align: center;
        margin: var(--space-5) 0;
      }

      .quote-panel p {
        font-size: clamp(1.4rem, 2.5vw, 1.8rem);
        font-style: italic;
        margin: 0;
        line-height: 1.4;
      }

      .legal-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
      }

      .opportunity-section {
        display: grid;
        gap: 32px;
      }

      .opportunity-section .section-head {
        text-align: center;
      }

      .opportunity-section .section-head h2 {
        font-size: 2.2rem;
        margin-bottom: 12px;
      }

      .coseller-form {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        margin: 8px 0;
      }
      .coseller-form input,
      .coseller-form select {
        flex: 1 1 180px;
        min-width: 140px;
      }
      .coseller-admin-grid {
        display: grid;
        gap: 18px;
        margin-top: 18px;
      }
      .coseller-admin-block {
        padding-top: 18px;
        border-top: 1px solid var(--line);
      }
      .coseller-admin-block h4 {
        margin: 0 0 6px;
        font-size: 1rem;
      }
      .coseller-admin-block p {
        margin: 0 0 12px;
        color: var(--muted);
        font-size: 0.92rem;
        line-height: 1.45;
      }
      .coseller-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
      }
      .coseller-referral-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
        margin-top: 14px;
      }
      .coseller-referral-block h4 {
        margin: 0 0 6px;
        font-size: 0.85rem;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .coseller-badge {
        display: inline-block;
        padding: 1px 7px;
        border-radius: 999px;
        font-size: 0.72rem;
        font-weight: 700;
        background: rgba(120, 200, 140, 0.16);
        color: #86e0a0;
      }
      .coseller-earnings-summary {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        margin: 14px 0;
      }
      .coseller-metric {
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.04);
        border-radius: 8px;
        padding: 12px;
      }
      .coseller-metric-label {
        color: var(--muted);
        font-size: 0.82rem;
        margin-bottom: 6px;
      }
      .coseller-metric-value {
        font-size: 1.1rem;
        font-weight: 700;
      }
      .coseller-metric-value strong {
        font-weight: 700;
      }
      .coseller-earning-group {
        margin-top: 16px;
      }
      .coseller-earning-title {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        color: var(--muted);
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
      }
      .coseller-earning-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
      }
      .coseller-earning-meta {
        color: var(--muted);
        font-size: 0.88rem;
        margin-top: 4px;
      }
      .coseller-earning-amount {
        text-align: right;
      }
      .coseller-earning-amount strong {
        display: block;
        font-size: 1rem;
      }
      .coseller-earning-amount span {
        color: var(--muted);
        display: block;
        font-size: 0.84rem;
        margin-top: 3px;
      }
      .coseller-url code {
        word-break: break-all;
        opacity: 0.8;
      }
      .coseller-share-action {
        margin: 14px 0 16px;
      }
      .avatar-profile {
        display: flex;
        flex-direction: column;
        gap: 18px;
      }
      .avatar-profile-head {
        display: flex;
        gap: 16px;
        align-items: flex-start;
      }
      .avatar-profile-headinfo {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
      }
      .avatar-profile-title {
        font-weight: 600;
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 10px;
      }
      .avatar-portrait-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 4px;
      }
      /* Connection strip: a quiet line, not a competing card. */
      .avatar-connection {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        font-size: 13px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(128, 128, 128, 0.18);
      }
      .avatar-connection-label {
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 11px;
        opacity: 0.6;
      }
      .avatar-connection-link { text-decoration: underline; opacity: 0.85; }
      .avatar-connection-link:hover { opacity: 1; }
      .avatar-connection-sep { opacity: 0.4; }
      .avatar-connection-cta { border-bottom: none; padding-bottom: 0; gap: 14px; }
      /* Empty state: portrait, explanation, one clear action. */
      .avatar-empty { align-items: center; text-align: center; gap: 14px; }
      .avatar-empty-copy { max-width: 46ch; }
      .avatar-empty-copy h3 { margin: 0 0 4px; font-size: 17px; }
      /* auto-fit stops the columns crushing on a narrow pane — the squish. */
      .avatar-form {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 14px 16px;
      }
      .avatar-field {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 13px;
        opacity: 0.9;
      }
      .avatar-field-wide { grid-column: 1 / -1; }
      .avatar-field input,
      .avatar-field textarea {
        font: inherit;
        padding: 9px 11px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.05);
        color: inherit;
        resize: vertical;
      }
      .avatar-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
      }
      @media (max-width: 640px) {
        .avatar-form { grid-template-columns: 1fr; }
      }
      .avatar-portrait {
        width: 72px;
        height: 72px;
        border-radius: 12px;
        object-fit: cover;
        background: rgba(255, 255, 255, 0.06);
        flex: 0 0 auto;
      }
      .avatar-portrait-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 22px;
        opacity: 0.7;
      }
      .avatar-status {
        display: inline-block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 2px 8px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.18);
      }
      .avatar-status.active { color: #7ee0a5; border-color: rgba(126, 224, 165, 0.4); }
      .avatar-status.pending { color: #e0c97e; border-color: rgba(224, 201, 126, 0.4); }
      .avatar-status.error { color: #e08a8a; border-color: rgba(224, 138, 138, 0.4); }
      .avatar-card-links {
        margin-top: 8px;
        font-size: 13px;
      }
      .avatar-card-links a { word-break: break-all; }
      .avatar-card-error {
        margin-top: 8px;
        font-size: 12px;
        color: #e08a8a;
        word-break: break-word;
      }

      /* Responsive overrides, ordered widest-first so the cascade is
         predictable: every block below also matches the widths above it,
         so a narrower breakpoint must come last to win. */

      @media (max-width: 1060px) {
        .home-hero,
        .feature-grid,
        .story-grid,
        .studio-grid,
        .universe-grid,
        .legal-grid {
          grid-template-columns: 1fr;
        }

      }

      @media (max-width: 900px) {
        .creator-studio {
          grid-template-columns: 1fr;
        }

        .studio-work-rail {
          position: static;
        }

        .studio-work-group-list {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
          gap: var(--space-2);
        }
      }

      @media (max-width: 760px) {
        .app-shell {
          width: 100%;
          padding: 12px 12px 28px;
          overflow-x: hidden;
        }

        .hero {
          gap: 14px;
          padding: 18px;
          border-radius: 0 0 var(--radius-lg) var(--radius-lg);
          margin: -12px -12px 0;
        }

        .hero-top {
          display: grid;
          /* Title and rail share the top row — "AltHealth" leaves plenty of
             room, so a message costs no extra height here either. */
          grid-template-columns: auto minmax(0, 1fr);
          gap: 12px;
          align-items: center;
        }

        .hero-actions {
          grid-column: 1 / -1;
        }

        .title-wrap h1 {
          font-size: 1.55rem;
        }

        .title-wrap p {
          max-width: 100%;
          font-size: 0.95rem;
          line-height: 1.45;
        }

        .hero-actions {
          display: grid;
          grid-template-columns: minmax(0, 1fr) auto;
          gap: 10px;
          width: 100%;
          align-items: center;
        }

        .status-rail {
          min-width: 0;
          max-width: 100%;
          justify-content: flex-end;
        }

        .status-chip {
          max-width: 100%;
        }

        .mode-switch {
          min-width: 0;
          overflow: visible;
          flex-wrap: wrap;
          border-radius: 16px;
          align-items: center;
        }

        .mode-switch button,
        .header-button {
          flex: 0 0 auto;
          min-height: 34px;
        }

        .header-button {
          justify-self: end;
        }

        .view {
          margin-top: 18px;
        }
      .panel,
      .task-card,
      .market-card {
          border-radius: var(--radius-md);
        }

        .home-grid,
        .universe-grid {
          gap: 18px;
        }

        .home-hero,
        .universe-hero {
          padding: var(--space-5);
        }

        .home-copy h2,
        .universe-copy h2 {
          font-size: 2.1rem;
          line-height: 1.1;
          max-width: 100%;
        }

        .universe-copy .lead,
        .home-copy p {
          font-size: 1rem;
          line-height: 1.55;
        }

        .band-showcase {
          aspect-ratio: 4 / 5;
          border-radius: var(--radius-md);
        }

        .band-showcase img {
          object-position: center top;
        }

        .band-showcase-copy {
          left: 12px;
          right: 12px;
          bottom: 12px;
          padding: 12px;
        }

        .market-hero-actions {
          justify-content: flex-start;
        }

        .market-subnav,
        .market-orders-tabs {
          overflow-x: auto;
          -webkit-overflow-scrolling: touch;
          scrollbar-width: none;
        }

        .market-subnav::-webkit-scrollbar,
        .market-orders-tabs::-webkit-scrollbar {
          display: none;
        }

        .market-section {
          margin-bottom: 20px;
        }

        .market-section-header {
          align-items: flex-start;
        }

        .market-grid {
          grid-template-columns: minmax(0, 1fr);
        }

        .market-modal {
          align-items: flex-end;
          padding: 12px;
        }

        .market-modal-dialog {
          max-height: 86vh;
          padding: 22px;
          border-radius: var(--radius-lg) var(--radius-lg) 12px 12px;
        }

        .market-pdp-actions {
          display: grid;
          grid-template-columns: auto minmax(0, 1fr);
          width: 100%;
        }

        .market-add-button,
        .market-payment-confirm {
          width: 100%;
          justify-content: center;
        }

        .feed-bar {
          padding: 11px 16px;
          gap: 8px;
        }

        .feed-bar-title {
          font-size: 0.95rem;
        }

        .topic-filter {
          width: 100%;
          margin-left: 0;
        }

        .drop-wall {
          columns: 1;
          padding: 14px 16px 20px;
        }

        .drop-card.featured {
          grid-template-columns: 1fr;
        }

        .drop-featured-lyric-panel {
          border-right: none;
          border-bottom: 1px solid rgba(255,255,255,0.06);
        }

        .thread-panel {
          padding: 0 18px 20px;
        }

        .thread-visual {
          min-height: 210px;
        }

        .thread-content {
          padding: 18px;
        }

        .status-strip {
          border-radius: var(--radius-md);
        }

        .studio-editor-head,
        .studio-editor-actions {
          align-items: stretch;
          flex-direction: column;
        }

        .studio-save-state {
          min-width: 0;
          text-align: left;
        }

        .story-thread {
          margin: var(--space-4) 0 var(--space-5);
        }

        .studio-editor textarea#draft-body {
          min-height: 240px;
        }

      }

      @media (max-width: 720px) {
        .album-layout {
          grid-template-columns: 1fr;
        }

        .album-art-wrap {
          position: static;
          max-width: 320px;
          margin: 0 auto;
        }

      }

      @media (max-width: 640px) {
        .coseller-earning-item {
          grid-template-columns: 1fr;
        }
        .coseller-earning-amount {
          text-align: left;
        }

      }

      @media (max-width: 430px) {
        .hero-actions {
          grid-template-columns: 1fr;
        }

        .header-button {
          justify-self: start;
        }

        .home-copy h2,
        .universe-copy h2 {
          font-size: 1.85rem;
        }

        .home-hero,
        .universe-hero {
          padding: var(--space-4);
        }

        .hero-kicker {
          max-width: 100%;
        }

      }
