    /* ============================================================
       Componentes do /emilyboutique.
       Tokens (Primitives / Theme / Components) ficam em
       /static/partials/bio-tokens.css, carregado depois de
       /static/partials/tokens.css (compartilhado com o painel)
       pra ter precedência natural no cascade.
       ============================================================ */

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html {
      height: 100%;
      background-color: var(--bg);
      color: var(--text);
      overscroll-behavior: none;
    }

    body {
      font-family: var(--font-sans);
      height: 100%;
      height: 100dvh;
      margin: 0;
      padding: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      -webkit-font-smoothing: antialiased;
      -webkit-tap-highlight-color: transparent;
      background-color: var(--bg);
      background-image:
        radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 0% 30%, color-mix(in srgb, var(--sky) 8%, transparent) 0%, transparent 40%);
      overscroll-behavior: none;
    }

    /* Scroll container com rubber-band elástico nativo nos elementos sem descolar o fundo */
    .bio-scroll-wrapper {
      width: 100%;
      height: 100%;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 1rem 1rem 3rem;
      /* Permite o rubber band elástico nativo nos elementos internos */
      overscroll-behavior-y: auto;
      overscroll-behavior-x: none;
    }

    .container {
      width: 100%;
      max-width: 28rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: calc(4rem + max(1rem, env(safe-area-inset-top, 1rem)));
      padding-bottom: env(safe-area-inset-bottom, 1rem);
    }

    /* Espaço de respiração para as pílulas inferiores no estúdio */
    body.studio-mode .container {
      padding-bottom: calc(90px + env(safe-area-inset-bottom, 20px));
    }

    /* Quando o modal de produto estiver aberto no estúdio, o seletor esconde suavemente */
    body.sheet-open .studio-capsules-viewport,
    body.sheet-open .studio-bottom-dock {
      transform: translateY(120%) !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    /* Desktop (Linktree style): Fixa e restringe para a largura mobile no centro do monitor */
    @media (min-width: 30rem) {
      .fab--left {
        left: calc(50% - 14rem + 1rem);
      }
      .fab--right {
        right: calc(50% - 14rem + 1rem);
      }
    }

    /* === Profile header === */
    .profile { position: relative; margin-bottom: 0.5rem; display: flex; flex-direction: column; align-items: center; transition: margin 0.3s ease; }
    .avatar {
      width: 5.5rem;
      height: 5.5rem;
      border-radius: 9999px;
      padding: 2px;
      background: linear-gradient(135deg, var(--accent), var(--sky, var(--accent)));
      box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 20%, transparent);
      transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .avatar img {
      width: 100%;
      height: 100%;
      border-radius: 9999px;
      object-fit: cover;
      display: block;
      background: transparent !important;
      transition: all 0.35s ease;
    }
    .avatar .initials {
      width: 100%;
      height: 100%;
      border-radius: 9999px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      color: var(--text-muted);
      font-weight: 700;
      font-size: 1.5rem;
      transition: all 0.35s ease;
    }

    /* === Avatar Hero Mode (Linktree Pro Style) === */
    .profile--hero {
      margin-bottom: 1.25rem;
      padding-top: 0.25rem;
    }

    /* 1. Squircle Hero (Moldura ampla com curva iOS suave) */
    .avatar--hero {
      width: 9.5rem;
      height: 9.5rem;
      border-radius: 28%;
      padding: 3.5px;
      background: linear-gradient(135deg, var(--accent), var(--sky, var(--accent)));
      box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 35px color-mix(in srgb, var(--accent) 30%, transparent);
    }
    .avatar--hero img,
    .avatar--hero .initials {
      border-radius: calc(28% - 3px);
      font-size: 2.8rem;
    }

    /* 2. Cutout Hero (Recorte transparente com sombra de contorno e glow temático) */
    .avatar--hero.is-cutout {
      width: auto !important;
      height: 11.5rem !important;
      max-width: 16rem;
      border-radius: 0 !important;
      padding: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }
    .avatar--hero.is-cutout img {
      width: auto !important;
      height: 100% !important;
      max-height: 11.5rem;
      object-fit: contain;
      border-radius: 0 !important;
      background: transparent !important;
      filter:
        drop-shadow(0 14px 24px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 40%, transparent));
    }
    .avatar--hero.is-cutout .initials {
      width: 9.5rem;
      height: 9.5rem;
      border-radius: 28%;
      background: #111827;
    }

    .profile--hero .name {
      font-size: 1.45rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-top: 0.75rem;
    }
    .profile--hero .bio {
      font-size: 0.925rem;
      margin-top: 0.35rem;
      line-height: 1.45;
    }
    .verified {
      position: absolute;
      bottom: 0.25rem;
      right: 0.25rem;
      width: 1.25rem;
      height: 1.25rem;
      background: var(--accent);
      color: #000;
      border-radius: 9999px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: 700;
      border: 2px solid var(--bg);
    }

    .name {
      font-size: 1.25rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--text);
      text-align: center;
      margin-top: 0.25rem;
    }
    .handle {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--text-muted);
      text-align: center;
      margin-top: 0.125rem;
    }
    .bio {
      font-size: 0.875rem;
      color: var(--text-muted);
      text-align: center;
      margin-top: 0.25rem;
      line-height: 1.4;
      max-width: 28rem;
      padding: 0 1rem;
      white-space: pre-line;
    }

    /* === Social pills (abaixo do nome) ===
       Pílulas circulares pequenas, centradas, com espaçamento confortável.
       Reusa o sistema .icon + .icon--outline → mesmo desenho do share FAB.
       hover/active seguem o padrão dos cards (mesma elevation, mesmo border). */
    .social-pills {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      margin: 0.25rem 0 1.25rem;
    }
    .social-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 9999px;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-muted);
      text-decoration: none;
      transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
      -webkit-tap-highlight-color: transparent;
    }
    .social-pill:hover {
      background: var(--surface-2);
      color: var(--text);
      border-color: var(--border-strong);
    }
    .social-pill:active { transform: scale(0.94); }
    .social-pill:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }

    /* === WhatsApp hero CTA === */
    .cta-wa {
      width: 100%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      background: var(--cta-bg, var(--accent));
      color: var(--cta-color, var(--cta-text, #000));
      border: var(--cta-border, none);
      box-shadow: var(--cta-shadow, 0 10px 30px var(--accent-soft-2));
      border-radius: var(--radius-btn, 1rem);
      padding: var(--cta-padding, 0.875rem 1rem);
      font-weight: 600;
      text-decoration: none;
      font-size: 0.95rem;
      transition: opacity 0.15s, transform 0.05s;
      margin-top: 1.25rem;
    }
    .cta-wa:hover { opacity: 0.92; }
    .cta-wa:active { transform: scale(0.99); }
    .cta-wa svg { width: 1.25rem; height: 1.25rem; }

    /* === Section header === */
    .section-header {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 0.25rem;
      margin: 1.5rem 0 0.75rem;
    }
    .section-title {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
    }
    .section-count {
      font-size: 0.7rem;
      color: var(--text-hint);
    }

    /* === Cards === */
    .list { width: 100%; display: flex; flex-direction: column; gap: var(--list-gap, 0.75rem); }
    .card {
      background: var(--surface) !important;
      border: var(--card-border, 1px solid var(--border));
      backdrop-filter: var(--card-blur, blur(12px));
      -webkit-backdrop-filter: var(--card-blur, blur(12px));
      box-shadow: var(--card-shadow, none);
      border-radius: var(--radius-card, 1rem);
      padding: var(--card-padding, 1rem);
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      cursor: pointer;
      transition: border-color 0.15s, transform 0.05s, box-shadow 0.15s;
      text-align: left;
      width: 100%;
      color: inherit;
      font: inherit;
    }
    .card:hover { border-color: var(--border-strong, rgba(255, 255, 255, 0.16)); }
    .card:active { transform: scale(0.99); }

    .card-head { display: flex; gap: 0.75rem; align-items: flex-start; }
    .card-icon {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: var(--radius-card, 0.75rem);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      border: 1px solid;
      overflow: hidden;
    }
    .card-icon.has-img {
      padding: 0;
      border-color: rgba(255, 255, 255, 0.12);
    }
    .card-icon img.card-thumb {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: inherit;
    }
    .card-icon svg { width: 1.25rem; height: 1.25rem; }
    .card-body { flex: 1; min-width: 0; }
    .card-title-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
    .card-title { font-size: 0.875rem; font-weight: 600; color: var(--text); }
    .badge {
      font-size: 10px;
      font-weight: 600;
      padding: 0.125rem 0.5rem;
      border-radius: var(--radius-badge, 9999px);
      border: 1px solid;
    }
    .card-desc {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 0.25rem;
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .card-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 0.5rem;
      border-top: 1px solid var(--border);
      font-size: 0.75rem;
      color: var(--text-muted);
    }
    .card-foot .arrow { font-weight: 500; }

    /* Categoria → cor (respeita accent do tema selecionado) */
    :root {
      --tone: var(--accent);
      --tone-soft: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent));
    }
    .tone-emerald { --tone: var(--accent); --tone-soft: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); }
    .tone-sky     { --tone: var(--accent); --tone-soft: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); }
    .tone-purple  { --tone: var(--accent); --tone-soft: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); }
    .tone-amber   { --tone: var(--accent); --tone-soft: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); }
    .tone-slate   { --tone: var(--text-muted); --tone-soft: color-mix(in srgb, var(--text-muted) 12%, transparent); }
    .card-icon { background: var(--tone-soft); color: var(--tone); border-color: color-mix(in srgb, var(--tone) 20%, transparent); }
    .badge { background: var(--tone-soft); color: var(--tone); border-color: color-mix(in srgb, var(--tone) 25%, transparent); }
    .card-foot .arrow { color: var(--tone); }

    /* === Footer === */
    .page-footer {
      margin-top: 2.5rem;
      text-align: center;
      font-size: 11px;
      color: var(--text-hint);
    }
    .page-footer a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
    .page-footer a:hover { color: var(--text); }

    /* === FABs (corner buttons — Liquid Glass Studio Style) === */
    .fab {
      position: fixed;
      top: max(1rem, env(safe-area-inset-top, 1rem));
      width: 2.75rem;
      height: 2.75rem;
      border-radius: 9999px;
      background: rgba(15, 23, 42, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(20px) saturate(160%);
      -webkit-backdrop-filter: blur(20px) saturate(160%);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: rgba(255, 255, 255, 0.95);
      text-decoration: none;
      cursor: pointer;
      z-index: 50;
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
      will-change: transform;
      transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s, transform 0.15s, border-color 0.2s, box-shadow 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .fab:hover {
      background: rgba(15, 23, 42, 0.65);
      border-color: rgba(255, 255, 255, 0.35);
      color: #ffffff;
      transform: scale(1.06) translateZ(0);
    }
    .fab:active {
      transform: scale(0.94) translateZ(0);
      background: rgba(15, 23, 42, 0.75);
    }
    .fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    .fab--left  { left:  max(1rem, env(safe-area-inset-left, 1rem)); }
    .fab--right { right: max(1rem, env(safe-area-inset-right, 1rem)); }
    .fab.copied { background: var(--accent-soft-2); color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
    .fab svg { display: block; }  /* .icon controla width/height */

    /* === Icon system (padronizado) ===
       Todos os ícones SVG do template usam:
         - class="icon" (ou modificador --sm/--md/--lg)
         - viewBox="0 0 24 24"
         - fill="none" stroke="currentColor" stroke-width="1.75"
         - stroke-linecap="round" stroke-linejoin="round"
       NUNCA colocar width/height no HTML — só o .icon controla via CSS.
       Assim, se a gente mudar o tamanho padrão, TODOS os ícones seguem junto. */
    .icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; display: inline-block; }
    .icon--sm { width: 1rem; height: 1rem; }
    .icon--md { width: 1.5rem;   height: 1.5rem; }
    .icon--lg { width: 1.75rem;     height: 1.75rem;     }
    /* === Outline icons (stroke) ===
       O stroke "vaza" pra fora do viewBox, então um outline visualmente
       parece maior que um sólido do mesmo width. Pra terem o mesmo
       "tamanho efetivo" (largura incluindo o stroke), compenso o
       tamanho do viewBox subtraindo o stroke-width (atualmente 1.75).
       Se o stroke-width mudar, ajuste esta fórmula. */
    .icon--outline { width: calc(1.5rem - 1.75px); height: calc(1.5rem - 1.75px); }
    .icon--sm.icon--outline { width: calc(1rem - 1.75px); height: calc(1rem - 1.75px); }
    .icon--md.icon--outline { width: calc(1.5rem - 1.75px); height: calc(1.5rem - 1.75px); }
    .icon--lg.icon--outline { width: calc(1.75rem - 1.75px); height: calc(1.75rem - 1.75px); }

    /* === Logo animation (DESABILITADA por enquanto — versão estática) ===
       O snippet do logo é 8 setas convergentes em SVG estático, com
       transform="rotate(N 100 100)" nos <g>. Animação fica para depois
       (precisamos decidir se é via CSS conflict-safe ou <animateTransform>).
       Sobrescreve só `color` — o tamanho vem de .icon (1.5rem padrão).
       NUNCA setar width/height aqui, senão quebra o sistema de ícones. */
    .brand-logo {
      color: #cbd5e1;
      display: block;
    }

    /* === Bottom sheet modal === */
    .sheet-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 100000;
      display: none;
      align-items: flex-end;
      justify-content: center;
      padding: 0.75rem;
    }
    .sheet-overlay.open { display: flex; }
    .sheet {
      background: var(--surface) !important;
      border: 1px solid var(--border-strong, var(--border));
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      width: 100%;
      max-width: 28rem;
      border-radius: 1.5rem;
      padding: 1.25rem;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
      transform: translateY(100%);
      transition: transform 0.25s ease;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-bottom: 0.5rem;
      color: var(--text);
    }
    .sheet-overlay.open .sheet { transform: translateY(0); }
    .sheet-handle {
      width: 2.5rem;
      height: 0.25rem;
      background: color-mix(in srgb, var(--text-muted) 35%, transparent);
      border-radius: 9999px;
      align-self: center;
    }
    .sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
    .sheet-title-block { flex: 1; min-width: 0; }
    .sheet-badge {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--accent);
    }
    .sheet-title { font-size: 1.125rem; font-weight: 700; color: var(--text); margin-top: 0.25rem; }
    .sheet-close {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 1rem;
      padding: 0.25rem;
      cursor: pointer;
    }
    .sheet-close:hover { color: var(--text); }
    .sheet-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
    .sheet-meta {
      background: var(--surface-2, color-mix(in srgb, var(--bg) 60%, var(--surface)));
      border: 1px solid var(--border);
      border-radius: 0.75rem;
      padding: 0.75rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      font-size: 0.75rem;
      color: var(--text-muted);
    }
    .sheet-meta-row { display: flex; align-items: center; gap: 0.5rem; }
    .sheet-meta-row .check { color: var(--accent); }
    .sheet-cta-primary {
      width: 100%;
      background: var(--cta-bg, var(--accent));
      color: var(--cta-color, var(--cta-text, #000));
      border: var(--cta-border, none);
      border-radius: var(--radius-btn, 0.75rem);
      box-shadow: var(--cta-shadow, none);
      font-weight: 600;
      padding: var(--cta-padding, 0.75rem 1rem);
      font-size: 0.875rem;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.15s;
    }
    .sheet-cta-primary:hover { opacity: 0.92; }
    .sheet-cta-secondary {
      width: 100%;
      background: var(--surface-2, color-mix(in srgb, var(--text) 5%, transparent));
      color: var(--text-muted);
      font-size: 0.75rem;
      padding: 0.625rem 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-btn, 0.75rem);
      cursor: pointer;
      text-align: center;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
    }
    .sheet-cta-secondary:hover { color: var(--text); border-color: var(--border-strong, var(--border)); }

    /* === Accessibility: reduce motion === */
    @media (prefers-reduced-motion: reduce) {
      .card, .fab, .cta-wa, .sheet, .sheet-overlay { transition: none !important; }
    }