/* JEAN SOUSA® LAB — sistema de interface da plataforma
   Conceito: um estúdio de chão escuro. Cada laboratório aparece pela própria amostra;
   o que une é a grade, a tipografia, a barra e o comportamento — não o nome. */
:root {
  /* cor — MD JEAN v1.0: preto, off-white e cinzas; o lilás é o único acento (80/15/5) */
  --ink: #0A0A0A;        /* chão */
  --ink-2: #121212;      /* superfícies */
  --ink-3: #1C1C1D;      /* realce, hover */
  --line: #282828;       /* fios */
  --bone: #F4F4F0;       /* texto principal (off-white) */
  --mute: #A5A7A5;       /* texto secundário */
  --faint: #777A78;      /* rótulos apagados */
  --ac: #a6adf7;      /* lilás — cor-base da marca (MD JEAN) */
  --acl: #d3d6fb; --acll: #eceefe; --acd: #7f88ee; --acdd: #5560d4; --acx: #1a1c3a; /* escala do lilás */
  --ac-ink: #0A0A0A;  /* texto sobre lilás: sempre preto */
  --danger: #E26D5A;
  --ok: #7FB685;

  /* tipo */
  /* etapa 9: MD JEAN em toda a plataforma (antes Archivo / Instrument Serif / Inter Tight / Geist Mono,
     que só sobravam na página 404 e na landing reserva). Os laboratórios carregam as próprias fontes. */
  --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Montserrat', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --mono: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* escala */
  --t-xs: 11px; --t-sm: 13px; --t-md: 15px; --t-lg: 19px;
  --t-xl: clamp(28px, 3.4vw, 40px);
  --t-hero: clamp(44px, 7.4vw, 112px);

  --bar-h: 40px;
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 4px;           /* raio pequeno: chips, tabs, inputs (não mudar) */

  /* migração visual · etapa 1 (23/10/2026): tokens do MD JEAN §11, ainda sem uso */
  --r-card: 28px;          /* cards e mídia grandes */
  --r-card-sm: 18px;       /* elementos pequenos dentro de cards */
  --r-pill: 999px;         /* botões cápsula */
  --ln-card: rgb(var(--veil) / .10); /* contorno 1px de card, sem sombra */
  --sp-section: clamp(56px, 8vw, 96px); /* respiro vertical entre seções */
  --sp-card: clamp(20px, 2.4vw, 28px);  /* padding interno de card */
  --sp-gap: 20px;          /* espaço entre elementos relacionados */

  /* design system · etapa 2: nomes do MD JEAN apontando para os valores atuais (sem cor nova) */
  --bg: var(--ink); --t: var(--bone); --t2: var(--mute); --mu: var(--faint); --ln: rgb(var(--veil) / .12);
  --surface-0: var(--ink);   /* seção principal */
  --surface-1: #0F0F10;      /* seção alternada / card (mesmo tom já usado em .pr-card) */
  --surface-2: var(--acx);   /* área de apoio em lilás quase preto */
  --elev: none;              /* cards sem sombra: separação por superfície + contorno 1px */
  --font-ds: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; /* MD JEAN: só Montserrat nos componentes novos */
  --tr-display: -.04em; --lh-display: .98;   /* título grande, leve, tracking apertado */
  --tr-title: -.025em;  --lh-title: 1.08;
  --tr-body: -.012em;   --lh-body: 1.47;
  --t-ds-kick: 12px; --t-ds-body: 17px; --t-ds-title: clamp(26px, 3vw, 40px); --t-ds-hero: clamp(44px, 6.4vw, 88px);
  --measure: 60ch;           /* largura máxima de parágrafo */
  --wrap: 1280px;            /* largura máxima de conteúdo */

  /* TEMA (25/10/2026) — tokens que viram no claro. Tudo que for véu, fio ou cor de
     marca deve sair daqui, nunca cravado no CSS, senão não acende.
     --veil: a tinta dos véus. No escuro é branco sobre preto; no claro, preto sobre
     off-white. Use sempre rgb(var(--veil) / .08), nunca a cor branca cravada. */
  --veil: 255 255 255;
  --ac-g1: #eceefe; --ac-g2: #a6adf7; --ac-g3: #7f88ee; /* degradê do texto de acento */
  --glow-1: rgba(166,173,247,.20);  /* brilho de fundo, o único efeito permitido */
  --glow-2: rgba(127,136,238,.18);
  --shadow-up: none;         /* no escuro a separação é por superfície, não por sombra */
  --ac-soft: rgba(166,173,247,.40);  /* contorno de realce em lilás */
  --ac-hover: #b6bcf9;               /* lilás no hover: clareia no escuro, escurece no claro */
  --media-fade: 10 10 10;            /* véu que escurece a amostra da ferramenta no cartão */
  --on-media: 244 244 240;           /* texto por cima desse véu */
  --shadow-pop: 0 18px 40px -12px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.2);
  --shadow-pop-lg: 0 24px 60px -12px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ==========================================================================
   TEMA CLARO — paleta vinda do CARROSSEL, que o Jean já aprovou lá dentro.
   No claro o acento ESCURECE (#a6adf7 → #5560d4) para ter contraste sobre o
   off-white, e o texto sobre o acento clareia. As superfícies sobem em vez de
   descer: o cartão fica mais claro que o chão.
   Os dois blocos abaixo são iguais de propósito: o primeiro é a escolha da
   pessoa, o segundo é o padrão de quem nunca escolheu. Mudou um, mude o outro.
   ========================================================================== */
:root[data-theme="light"] {
  --ink: #E9E9E5; --ink-2: #F6F6F3; --ink-3: #EDEDE9; --line: #D7D7D1;
  --bone: #0A0A0A; --mute: #5F615F; --faint: #6B6D67;
  --ac: #4e59cb; --acl: #7f88ee; --acll: #5560d4; --acd: #3f49b8; --acdd: #2f3894; --acx: #E7E8FB;
  --ac-ink: #F4F4F0;
  --danger: #B4432C; --ok: #3F7A48;
  --bg: var(--ink); --t: var(--bone); --t2: var(--mute); --mu: var(--faint);
  --ln: rgba(10,10,10,.14); --ln-card: rgba(10,10,10,.12);
  --surface-0: #E9E9E5; --surface-1: #F6F6F3; --surface-2: #E7E8FB;
  --veil: 10 10 10;
  --ac-g1: #7f88ee; --ac-g2: #4e59cb; --ac-g3: #3f49b8;
  --glow-1: rgba(85,96,212,.10); --glow-2: rgba(85,96,212,.07);
  --shadow-up: 0 1px 2px rgba(10,10,10,.05), 0 8px 24px rgba(10,10,10,.06);
  --ac-soft: rgba(78,89,203,.45);
  --ac-hover: #3f49b8;
  /* o cartão de ferramenta NÃO acende: a amostra dentro dele é arte feita no preto,
     e um véu claro por cima dela vira cinza. Fica escuro nos dois temas, como
     uma foto numa parede branca. */
  --media-fade: 10 10 10;
  --on-media: 244 244 240;
  --shadow-pop: 0 10px 28px -10px rgba(10,10,10,.18), 0 1px 3px rgba(10,10,10,.08);
  --shadow-pop-lg: 0 20px 50px -14px rgba(10,10,10,.22);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #E9E9E5; --ink-2: #F6F6F3; --ink-3: #EDEDE9; --line: #D7D7D1;
    --bone: #0A0A0A; --mute: #5F615F; --faint: #6B6D67;
    --ac: #4e59cb; --acl: #7f88ee; --acll: #5560d4; --acd: #3f49b8; --acdd: #2f3894; --acx: #E7E8FB;
    --ac-ink: #F4F4F0;
    --danger: #B4432C; --ok: #3F7A48;
    --bg: var(--ink); --t: var(--bone); --t2: var(--mute); --mu: var(--faint);
    --ln: rgba(10,10,10,.14); --ln-card: rgba(10,10,10,.12);
    --surface-0: #E9E9E5; --surface-1: #F6F6F3; --surface-2: #E7E8FB;
    --veil: 10 10 10;
    --ac-g1: #7f88ee; --ac-g2: #4e59cb; --ac-g3: #3f49b8;
    --glow-1: rgba(85,96,212,.10); --glow-2: rgba(85,96,212,.07);
    --shadow-up: 0 1px 2px rgba(10,10,10,.05), 0 8px 24px rgba(10,10,10,.06);
    --ac-soft: rgba(78,89,203,.45);
    --ac-hover: #3f49b8;
    --media-fade: 10 10 10;
    --on-media: 244 244 240;
    --shadow-pop: 0 10px 28px -10px rgba(10,10,10,.18), 0 1px 3px rgba(10,10,10,.08);
    --shadow-pop-lg: 0 20px 50px -14px rgba(10,10,10,.22);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 var(--t-md)/1.5 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }
img, video, iframe { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--ac); color: var(--ac-ink); }

/* ---------- utilitários de tipo ---------- */
.mono { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; }
.display { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; line-height: .92; text-wrap: balance; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -.01em; color: var(--ac); background: linear-gradient(95deg, var(--acll) 0%, var(--ac) 45%, var(--acd) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .08em; }
.reg { font-size: .42em; vertical-align: .95em; font-weight: 600; margin-left: .04em; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; height: 44px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: transparent;
  font-weight: 600; font-size: var(--t-sm); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--ink-3); border-color: var(--line); }
.btn.primary { background: var(--ac); border-color: var(--ac); color: var(--ac-ink); }
.btn.primary:hover { background: var(--acl); border-color: var(--acl); }
.btn.sm { height: 34px; padding: 0 14px; }
@media (pointer: coarse) { .btn.sm { height: 40px; } } /* área de toque confortável no celular */
.btn .arr { font-family: var(--mono); transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================================
   LANDING
   ========================================================================== */
.lp { min-height: 100%; display: flex; flex-direction: column; }
.lp-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: 24px; height: 64px; padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.lp-bar.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: baseline; gap: .5em; text-decoration: none; white-space: nowrap; }
.brand b { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.brand b sup { font-size: 8px; vertical-align: 6px; }
.brand span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--mute); }
.lp-bar nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lp-bar nav a.link { padding: 8px 12px; text-decoration: none; color: var(--mute); font-size: var(--t-sm); }
.lp-bar nav a.link:hover { color: var(--bone); }

.hero { padding: clamp(36px, 6vw, 84px) var(--gutter) clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 36px) 40px; align-items: end; }
.hero > .eyebrow, .hero > h1 { grid-column: 1 / -1; }
.hero .eyebrow { color: var(--mute); display: flex; gap: 14px; flex-wrap: wrap; }
.hero .eyebrow i { font-style: normal; color: var(--ac); }
.hero h1 { margin: 0; font-size: var(--t-hero); max-width: 14ch; }
.hero h1 .serif-i { font-size: 1.08em; line-height: .8; }
.hero .lede { margin: 0; max-width: 56ch; color: var(--mute); font-size: var(--t-lg); line-height: 1.45; }
.hero .lede strong { color: var(--bone); font-weight: 500; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* parede de amostras */
.wall { padding: 0 var(--gutter) clamp(48px, 7vw, 96px); display: grid; gap: 12px; grid-template-columns: 1.15fr .85fr 1fr 1fr; align-items: end; }
.wall figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.wall .frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.wall figure:nth-child(1) .frame { aspect-ratio: 4 / 3.3; }
.wall figure:nth-child(2) .frame { aspect-ratio: 4 / 5.4; }
.wall figure:nth-child(3) .frame { aspect-ratio: 1 / 1; }
.wall figure:nth-child(4) .frame { aspect-ratio: 4 / 4.6; }
.wall figcaption { display: flex; justify-content: space-between; gap: 10px; color: var(--mute); }
.wall figcaption b { color: var(--bone); font-weight: 500; }

/* laboratórios (landing) */
.labs { border-top: 1px solid var(--line); }
.labs-head { padding: clamp(40px, 6vw, 80px) var(--gutter) 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.labs-head h2 { margin: 0; font-size: var(--t-xl); max-width: 18ch; }
.labs-head p { margin: 0; max-width: 46ch; color: var(--mute); }
.lab-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px) var(--gutter); border-top: 1px solid var(--line); align-items: center;
}
.lab-row:nth-child(even) .lab-copy { order: 2; }
.lab-copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.lab-copy h3 { margin: 0; font-size: clamp(34px, 5vw, 68px); }
.lab-copy p { margin: 0; color: var(--mute); max-width: 42ch; font-size: var(--t-lg); line-height: 1.45; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .04em; padding: 5px 9px; border: 1px solid var(--line); border-radius: 2px; color: var(--bone); white-space: nowrap; }
.lab-out { margin: 0; color: var(--faint); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.lab-out b { color: var(--mute); font-weight: 400; font-size: var(--t-sm); }
.lab-stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); min-width: 0; border: 1px solid var(--line); }

.lp-end { padding: clamp(56px, 9vw, 120px) var(--gutter); border-top: 1px solid var(--line); display: grid; gap: 24px; justify-items: start; }
.lp-end h2 { margin: 0; font-size: var(--t-hero); }
.lp-foot { margin-top: auto; padding: 22px var(--gutter); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); }
.lp-foot a { color: var(--mute); text-decoration: none; }
.lp-foot a:hover { color: var(--bone); }

/* ============================================================================
   AMOSTRAS (compartilhadas por landing, login, hub e launcher)
   ========================================================================== */
.sample { position: absolute; inset: 0; overflow: hidden; }
.sample img.cover, .sample video, .sample iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.sample iframe { pointer-events: none; }
.sample .poster { filter: saturate(1.05); }

/* lâminas em leque */
.sample.slides { background: var(--acx); display: grid; place-items: center; }
.sample.slides .fan { position: relative; height: 76%; aspect-ratio: 4 / 5; max-width: 40%; }
.l-thumb .sample.slides .fan { height: 70%; max-width: 70%; }
.sample.slides .fan img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px;
  box-shadow: var(--shadow-pop);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.sample.slides .fan img:nth-child(1) { transform: translateX(-34%) rotate(-7deg) scale(.9); }
.sample.slides .fan img:nth-child(2) { transform: translateX(-11%) rotate(-2.5deg) scale(.94); }
.sample.slides .fan img:nth-child(3) { transform: translateX(12%) rotate(2.5deg) scale(.94); }
.sample.slides .fan img:nth-child(4) { transform: translateX(34%) rotate(7deg) scale(.9); }
.sample.slides .fan img:nth-child(1) { z-index: 4; } .sample.slides .fan img:nth-child(2) { z-index: 3; }
.sample.slides .fan img:nth-child(3) { z-index: 2; } .sample.slides .fan img:nth-child(4) { z-index: 1; }
.spread:hover .sample.slides .fan img:nth-child(1), .spread:focus-within .sample.slides .fan img:nth-child(1) { transform: translateX(-78%) rotate(-3deg) scale(.86); }
.spread:hover .sample.slides .fan img:nth-child(2), .spread:focus-within .sample.slides .fan img:nth-child(2) { transform: translateX(-26%) rotate(-1deg) scale(.86); }
.spread:hover .sample.slides .fan img:nth-child(3), .spread:focus-within .sample.slides .fan img:nth-child(3) { transform: translateX(26%) rotate(1deg) scale(.86); }
.spread:hover .sample.slides .fan img:nth-child(4), .spread:focus-within .sample.slides .fan img:nth-child(4) { transform: translateX(78%) rotate(3deg) scale(.86); }

/* textura com troca de efeito */
.sample.texture img.cover { transition: opacity .35s; }
.sample .fxlabel {
  position: absolute; left: 12px; top: 12px; z-index: 2; padding: 4px 8px; border-radius: 2px;
  background: rgba(10, 10, 10, .78); color: var(--bone); backdrop-filter: blur(4px);
}
.sample .fxdots { position: absolute; right: 12px; top: 14px; z-index: 2; display: flex; gap: 5px; }
.sample .fxdots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(244, 244, 240, .35); }
.sample .fxdots i.on { background: var(--bone); }
.sample.video { background: rgb(var(--media-fade)); }
.sample.live { background: rgb(var(--media-fade)); }

/* ============================================================================
   LOGIN
   ========================================================================== */
.auth { min-height: 100%; display: grid; align-items: stretch; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.auth-side { padding: 24px var(--gutter) 32px; display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.auth-form { width: 100%; max-width: 400px; margin-block: auto; display: grid; gap: 22px; }
.auth-form h1 { margin: 0; font-size: clamp(36px, 4.4vw, 56px); }
.auth-form .sub { margin: -8px 0 0; color: var(--mute); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; gap: 3px; }
.tabs button { height: 34px; border: 0; border-radius: 2px; background: transparent; color: var(--mute); cursor: pointer; font-size: var(--t-sm); font-weight: 500; }
.tabs button[aria-selected="true"] { background: var(--ink-3); color: var(--bone); }
.field { display: grid; gap: 7px; }
.field label { color: var(--mute); }
.field input {
  height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2); color: var(--bone); font-size: var(--t-md);
}
.field input:hover { border-color: var(--line); }
.field input:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px rgba(166, 173, 247, .24); }
.form-err { margin: 0; color: var(--danger); font-size: var(--t-sm); min-height: 1.4em; }
.auth-form .btn.primary { height: 48px; justify-content: center; font-size: var(--t-md); }
.note { margin: 0; color: var(--faint); font-size: 12.5px; line-height: 1.5; }
.auth-art { position: relative; min-height: 420px; overflow: hidden; background: var(--ink); }
.auth-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 140px; z-index: 1; background: linear-gradient(to top, rgba(10,10,10,.7), transparent); pointer-events: none; }
.auth-art .cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; display: flex; justify-content: space-between; gap: 12px; color: rgba(244, 244, 240, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }

/* ============================================================================
   ÁREA AUTENTICADA — barra compartilhada
   ========================================================================== */
.app-shell { height: 100%; display: flex; flex-direction: column; }
.pbar {
  position: relative; z-index: 50; flex: none; height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 10px 0; display: flex; align-items: center; gap: 6px;
  background: var(--ink); border-bottom: 1px solid var(--line); font-size: var(--t-sm);
}
.pbar .brand { padding: 0 8px; height: 30px; align-items: center; border-radius: 3px; }
.pbar .brand:hover { background: var(--ink-3); }
.pbar .brand b { font-size: 12.5px; }
.pbar .sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.pbtn {
  height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 3px; background: transparent; color: var(--bone); cursor: pointer; white-space: nowrap;
}
.pbtn:hover, .pbtn[aria-expanded="true"] { background: var(--ink-3); }
.pbtn .lbl { color: var(--mute); }
.pbtn .cur { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 12px; letter-spacing: .01em; }
.pbtn svg { width: 12px; height: 12px; color: var(--mute); }
.pbar .grow { flex: 1; }
.kbd { font-family: var(--mono); font-size: 10.5px; color: var(--faint); border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; }
.avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ac); color: var(--ac-ink); font-weight: 700; font-size: 11px; }

/* menus */
.menu {
  position: absolute; top: calc(100% + 6px); z-index: 60; min-width: 220px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px;
  box-shadow: var(--shadow-pop-lg);
}
.menu.right { right: 10px; }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 2px; }
.menu .who b { font-weight: 600; }
.menu .who span { color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button.item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 3px; background: none; text-align: left; text-decoration: none; cursor: pointer; color: var(--bone);
}
.menu a:hover, .menu button.item:hover, .menu a:focus-visible, .menu button.item:focus-visible { background: var(--ink-3); outline: none; }
.menu .item.danger { color: var(--danger); }

/* launcher */
.launcher { left: 8px; width: min(460px, calc(100vw - 16px)); padding: 8px; }
.launcher .lh { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 10px; color: var(--faint); }
.l-tool {
  display: grid !important; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px !important;
  padding: 8px !important;
}
.l-thumb { position: relative; width: 64px; height: 64px; border-radius: 3px; overflow: hidden; background: var(--ink-3); }
.l-tool .nm { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 14px; letter-spacing: -.005em; display: block; }
.l-tool .ds { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.35; margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.l-tool .st { color: var(--faint); }
.l-tool[aria-current="page"] .st { color: var(--ac); }
.launcher .lf { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

/* ============================================================================
   CREATIVE HUB
   ========================================================================== */
.app-main { flex: 1; min-height: 0; position: relative; }
.page { position: absolute; inset: 0; overflow: auto; }
.hub { padding: clamp(28px, 4vw, 56px) var(--gutter) 56px; display: grid; gap: clamp(24px, 3vw, 40px); }
.hub-head { display: grid; gap: 14px; }
.hub-head .meta { color: var(--mute); display: flex; gap: 14px; flex-wrap: wrap; }
.hub-head h1 { margin: 0; font-size: clamp(40px, 6.4vw, 96px); max-width: 16ch; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.mod {
  position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 6px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: border-color .2s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.mod:hover { border-color: var(--ac-soft); }
.mod .stage { position: relative; height: clamp(260px, 30vw, 420px); }
.mod.span-7 { grid-column: span 7; } .mod.span-5 { grid-column: span 5; } .mod.span-12 { grid-column: span 12; } .mod.span-6 { grid-column: span 6; }
.mod .copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: end; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.mod .copy h2 { margin: 0; font-size: clamp(26px, 2.8vw, 40px); grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mod .copy h2 .chip { font-family: var(--mono); font-stretch: 100%; font-weight: 400; font-size: 10.5px; letter-spacing: .06em; color: var(--ac); text-transform: uppercase; }
.mod .copy p { margin: 0; color: var(--mute); max-width: 48ch; }
.mod .copy .go { align-self: end; }
.mod .copy .facts { grid-column: 1 / -1; }
.mod .cap { position: absolute; left: 12px; bottom: 12px; z-index: 3; padding: 4px 8px; border-radius: 2px; background: rgba(10, 10, 10, .72); color: rgba(244, 244, 240, .86); backdrop-filter: blur(4px); max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod.soon { pointer-events: none; }
.mod.soon .stage { filter: grayscale(1) brightness(.5); }

.strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); }
.strip a { color: var(--mute); text-decoration: none; }
.strip a:hover { color: var(--bone); }

/* ============================================================================
   FERRAMENTA
   ========================================================================== */
.frames { position: absolute; inset: 0; }
.frames iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--ink); }
.frames iframe.off { display: none; }
.loading {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--ink); color: var(--mute); transition: opacity .3s;
}
.loading .display { font-size: clamp(32px, 6vw, 72px); color: var(--bone); }
.loading .bar { width: 120px; height: 2px; background: var(--line); overflow: hidden; }
.loading .bar i { display: block; width: 40%; height: 100%; background: var(--ac); animation: load 1s ease-in-out infinite; }
.loading.done { opacity: 0; pointer-events: none; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ============================================================================
   CONTA / SUPORTE
   ========================================================================== */
.doc { padding: clamp(28px, 4vw, 56px) var(--gutter) 64px; display: grid; gap: 32px; max-width: 1080px; }
.doc h1 { margin: 0; font-size: clamp(36px, 5vw, 72px); }
.doc h2 { margin: 0 0 12px; font-size: var(--t-lg); font-weight: 600; }
.panel { border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2); padding: 22px; display: grid; gap: 16px; }
.panel .row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center; }
.panel .row > span:first-child { color: var(--mute); }
.panel form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.panel form .field { flex: 1 1 240px; }
.toolslist { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.toolslist .tr { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); align-items: start; background: var(--ink-2); }
.toolslist .tr:first-child { border-top: 0; }
.toolslist .tr.th { background: var(--ink); color: var(--faint); }
.toolslist b { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 14px; }
.toolslist span { color: var(--mute); min-width: 0; }
.qa { display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.qa summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::after { content: '+'; font-family: var(--mono); color: var(--mute); }
.qa details[open] summary::after { content: '−'; }
.qa p { margin: 10px 0 0; color: var(--mute); max-width: 70ch; }
.contact { display: flex; flex-wrap: wrap; gap: 10px; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 100; transform: translate(-50%, 10px);
  padding: 10px 16px; border-radius: 4px; background: var(--bone); color: var(--ink); font-weight: 500; font-size: var(--t-sm);
  opacity: 0; pointer-events: none; transition: .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1080px) {
  .wall { grid-template-columns: 1fr 1fr; align-items: start; }
  .mod.span-7, .mod.span-5 { grid-column: span 6; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .lab-row { grid-template-columns: minmax(0, 1fr); }
  .lab-row:nth-child(even) .lab-copy { order: 0; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { min-height: 260px; order: -1; }
  .mod.span-7, .mod.span-5, .mod.span-6 { grid-column: span 12; }
  .panel .row, .toolslist .tr { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .toolslist .tr.th { display: none; }
  .pbar .kbd, .pbtn .lbl, .lp-bar nav a.link.hide-sm { display: none; }
}
@media (max-width: 480px) {
  .wall { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .mod .copy { grid-template-columns: minmax(0, 1fr); }
  /* barra do app em telas estreitas: o nome da ferramenta encolhe com reticências, o avatar nunca sai da tela */
  .pbar { gap: 2px; padding-left: 6px; padding-right: 6px; }
  .pbar .sep { display: none; }
  .pbar .brand, .pbar .pbtn { flex: none; }
  .pbar .pbtn:first-of-type { flex: 0 1 auto; min-width: 0; }
  .pbtn .cur { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* CTA em cápsula (MD JEAN: botões com canto totalmente arredondado) */
.btn { border-radius: 999px; padding: 0 22px; }
.btn.sm { padding: 0 16px; }
.ld .btn.lg { padding: 0 30px; }
.auth .tabs, .auth .tabs button { border-radius: 999px; }

/* ============================================================================
   ENTRAR / CRIAR CONTA — cartão dividido no centro, sobre o retrato desfocado
   (estrutura inspirada na referência; acabamento MD JEAN: preto, lilás, sem vidro)
   ========================================================================== */
.auth { position: relative; min-height: 100%; display: grid; place-items: center; grid-template-columns: none; padding: 72px 20px; overflow: hidden; isolation: isolate; background: var(--ink); }
.auth-bg { position: absolute; inset: -60px; z-index: -2; background-size: cover; background-position: center 30%; filter: blur(48px) saturate(.8) brightness(.42); transform: scale(1.1); }
.auth::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(10,10,10,.2), rgba(10,10,10,.75) 100%); }
.auth::after { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -160px; z-index: -1; border-radius: 50%; background: rgba(127,136,238,.18); filter: blur(90px); pointer-events: none; }
.auth-brand { position: absolute; top: 24px; left: 28px; }
.auth-brand b { font-size: 15px; }
.auth-card { width: min(940px, 100%); min-height: 560px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: var(--ink); border: 1px solid rgb(var(--veil) / .10); box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); }
.auth-side { padding: 56px clamp(28px, 5vw, 64px) 32px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.auth-form { max-width: 340px; margin: 0 auto; width: 100%; gap: 18px; }
.auth-form h1 { margin: 0; text-align: center; font-family: var(--body); font-weight: 300; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.auth-form .sub { margin: -6px 0 10px; text-align: center; color: var(--mute); font-size: 14px; line-height: 1.5; text-wrap: balance; }
.auth .field { gap: 8px; }
.auth .field label { font-size: 12.5px; color: var(--mute); font-family: var(--body); letter-spacing: 0; text-transform: none; }
.auth .field input { height: 44px; border-radius: 12px; background: var(--ink-3); border: 1px solid rgb(var(--veil) / .10); padding: 0 14px; font-size: 14px; }
.auth .field input::placeholder { color: var(--faint); }
.auth .pass { position: relative; }
.auth .pass input { width: 100%; padding-right: 44px; }
.auth .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.auth .eye svg { width: 17px; height: 17px; }
.auth .eye:hover, .auth .eye[aria-pressed="true"] { color: var(--ac); }
.auth .form-err { min-height: 0; text-align: center; }
.auth .form-err:empty { display: none; }
.auth-form .btn.primary { height: 48px; margin-top: 8px; justify-content: center; font-size: 15px; font-weight: 600; }
.auth .swap { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--mute); }
.auth .swap-a { color: var(--ac); text-decoration: none; }
.auth .swap-a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth .note { text-align: center; font-size: 11.5px; color: var(--faint); margin-top: auto; }
/* retrato com véu lilás (MD: soft-light ~38% + escurecimento de baixo para cima) */
.auth-art { position: relative; margin: 0; min-height: 0; overflow: hidden; background: var(--ink); }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.auth-art::before { content: ''; position: absolute; inset: 0; background: var(--acd); mix-blend-mode: soft-light; opacity: .38; z-index: 1; }
.auth-art::after { content: ''; position: absolute; inset: 40% 0 0 0; height: auto; background: linear-gradient(to top, rgba(10,10,10,.85), transparent); z-index: 1; }
.auth-art figcaption { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; display: grid; justify-items: center; gap: 4px; color: var(--bone); }
.auth-art figcaption b { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.auth-art figcaption span { font-size: 10.5px; letter-spacing: .16em; color: rgb(var(--on-media) / .7); }
@media (max-width: 760px) {
  .auth { padding: 72px 16px 32px; place-items: start center; }
  .auth-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-art { order: -1; height: 200px; }
  .auth-art img { object-position: center 20%; }
  .auth-side { padding: 32px 22px 24px; }
}
@media (max-width: 760px) { .auth-art figcaption { display: none; } .auth-art img { object-position: center 18%; } }

/* ============================================================================
   ÁREA LOGADA v3 — menu lateral + barra de caminho + Creative Hub em cartões
   (estrutura inspirada na referência; acabamento MD JEAN: preto, lilás, cápsulas, raios 20–28)
   ========================================================================== */
.app-shell { --side: 252px; height: 100%; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); flex-direction: initial; transition: grid-template-columns .25s cubic-bezier(.2,.7,.2,1); }
.app-shell.side-min, .app-shell.in-tool { --side: 68px; }
.app-col { min-width: 0; display: flex; flex-direction: column; height: 100%; }
/* menu lateral */
.side { height: 100%; min-width: 0; display: flex; flex-direction: column; background: var(--surface-1); border-right: 1px solid rgb(var(--veil) / .08); overflow: hidden; }
.side-top { height: 60px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 0 20px; }
.side-top .brand b { font-size: 16px; }
.side-tg { width: 34px; height: 34px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.side-tg:hover { background: var(--ink-3); color: var(--bone); }
.side-tg svg, .sic svg { width: 19px; height: 19px; }
.side-list { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.side-h { margin: 18px 12px 6px; color: var(--faint); font-size: 10.5px; letter-spacing: .14em; white-space: nowrap; }
.sitem { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; color: var(--mute); text-decoration: none; font-size: 14px; white-space: nowrap; border: 1px solid transparent; }
.sitem:hover { background: rgb(var(--veil) / .04); color: var(--bone); }
.sitem[aria-current="page"] { background: rgba(166,173,247,.08); border-color: rgba(166,173,247,.22); color: var(--bone); }
.sitem[aria-current="page"]::before { content: ''; position: absolute; left: -10px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--ac); }
.sitem[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.sic { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; overflow: hidden; position: relative; }
.sic .sample { position: absolute; inset: 0; }
.sic .sample img, .sic .sample video { width: 100%; height: 100%; object-fit: cover; }
.sic .sample.slides .fan { position: absolute; inset: 0; }
.sic .sample.slides .fan img { position: absolute; inset: 0; transform: none !important; width: 100%; height: 100%; object-fit: cover; }
.sic .sample.slides .fan img:not(:first-child) { display: none; }
.slab { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.sitem .slab { font-weight: 500; }
.sitem[data-slug] .slab { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 12.5px; letter-spacing: .01em; }
.sitem .chip { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); }
.side-sep { height: 1px; background: rgb(var(--veil) / .08); margin: 14px 12px; flex: none; }
.side-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 12px 16px 16px; border-top: 1px solid rgb(var(--veil) / .08); }
.side-foot .who { min-width: 0; flex: 1; display: grid; }
.side-foot .who b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who span { font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-out { width: 34px; height: 34px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.side-out svg { width: 18px; height: 18px; }
.side-out:hover { background: var(--ink-3); color: var(--bone); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ac); color: var(--ac-ink); font-weight: 700; font-size: 12px; flex: none; }
/* menu recolhido: só ícones */
.side-min .side-top, .in-tool .side-top { padding: 0; justify-content: center; }
.side-min .side-top .brand, .in-tool .side-top .brand,
.side-min .slab, .in-tool .slab, .side-min .side-h, .in-tool .side-h, .side-min .sitem .chip, .in-tool .sitem .chip,
.side-min .side-foot .who, .in-tool .side-foot .who, .side-min .side-foot .avatar, .in-tool .side-foot .avatar { display: none; }
.side-min .sitem, .in-tool .sitem { justify-content: center; padding: 0; }
.side-min .side-sep, .in-tool .side-sep { margin: 14px 8px; }
.side-min .side-foot, .in-tool .side-foot { justify-content: center; padding: 12px 0 16px; }
.in-tool .side-tg { display: none; }
.in-tool .side-top::after { content: ''; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(145deg, var(--ac-g1), var(--ac-g2) 48%, var(--ac-g3)); transform: rotate(7deg); }
/* barra do topo */
.pbar { height: 60px; padding: 0 20px 0 24px; gap: 12px; background: var(--ink); border-bottom: 1px solid rgb(var(--veil) / .08); }
.pbar .brand, .pbar .sep, .pbar > .kbd { display: none; }
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; }
.crumb-home { color: var(--faint); text-decoration: none; white-space: nowrap; }
.crumb-home:hover { color: var(--bone); }
.crumb-sep { color: var(--line); }
.crumbs .cur { font-family: var(--body); font-stretch: 100%; font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--bone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbtn { height: 40px; border-radius: 999px; }
.pbtn.search { width: min(340px, 34vw); justify-content: flex-start; gap: 10px; padding: 0 6px 0 14px; border: 1px solid rgb(var(--veil) / .10); background: var(--ink-2); color: var(--faint); }
.pbtn.search:hover { border-color: var(--ac-soft); background: var(--ink-3); }
.pbtn.search .ic svg { width: 17px; height: 17px; }
.pbtn.search .lbl { flex: 1; text-align: left; color: var(--faint); font-size: 13.5px; display: inline; }
.pbtn.search .kbd { border-radius: 999px; padding: 3px 9px; background: rgba(166,173,247,.12); border-color: rgba(166,173,247,.25); color: var(--ac); }
.pbtn[title="Conta"] { padding: 0 4px; }
.side-open-btn { display: none; width: 40px; padding: 0; justify-content: center; }
.side-open-btn svg { width: 20px; height: 20px; }
.menu { border-radius: 16px; }
.menu.launcher { right: 74px; left: auto; top: 54px; }
.menu.right { top: 54px; }
.menu a, .menu button.item { border-radius: 10px; }
.side-scrim { display: none; }

/* Creative Hub */
.hub { padding: 28px clamp(16px, 3vw, 40px) 64px; display: grid; gap: 28px; max-width: 1560px; }
.hub-head { gap: 8px; }
.hub-head .meta { color: var(--faint); font-size: 11px; letter-spacing: .14em; }
.hub-head h1 { font-family: var(--body); font-weight: 300; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -.035em; max-width: none; }
.hub-head h1 .serif-i { font-size: 1.12em; }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
/* 7 ferramentas (FluxMotion entrou em 19/10/2026): 4 + 3 no desktop largo; 3 + 3 + 1 em telas médias; 2 colunas no tablet; 1 no celular */
.tiles > .tile { grid-column: span 3; } /* 10 ferramentas no Hub (9 do passe + Grids): 4 + 4 + 2 */
@media (max-width: 1280px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tiles > .tile, .tiles > .tile:nth-child(n+5) { grid-column: auto; } .tiles > .tile:last-child:nth-child(3n+1) { grid-column: span 3; } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles > .tile:last-child:nth-child(3n+1) { grid-column: auto; } .tiles > .tile:last-child:nth-child(odd) { grid-column: span 2; } }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } .tiles > .tile:last-child:nth-child(odd) { grid-column: auto; } }
.tile { position: relative; min-height: clamp(300px, 26vw, 380px); display: flex; flex-direction: column; padding: 22px; border-radius: 22px; overflow: hidden; isolation: isolate; text-decoration: none; color: rgb(var(--on-media)); background: rgb(var(--media-fade)); border: 1px solid rgb(var(--veil) / .09); transition: border-color .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.tile:hover { border-color: var(--ac-soft); transform: translateY(-2px); }
.tile-bg { position: absolute; inset: 0; z-index: -1; }
.tile-bg .sample { position: absolute; inset: 0; height: 100%; }
.tile-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--media-fade) / .82) 0%, rgb(var(--media-fade) / .25) 38%, rgb(var(--media-fade) / .55) 55%, rgb(var(--media-fade) / .95) 78%, rgb(var(--media-fade)) 100%); z-index: 4; }
.tile-top .mono { color: rgb(var(--on-media) / .7); font-size: 10.5px; letter-spacing: .14em; }
.tile h2 { margin: 14px 0 0; font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -.01em; line-height: 1; }
.tile-d { margin: auto 0 0; padding-top: 16px; color: rgb(var(--on-media) / .78); font-size: 13.5px; line-height: 1.5; max-width: 32ch; text-wrap: pretty; }
.tile-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(var(--veil) / .22); background: rgb(var(--media-fade) / .45); font-size: 12.5px; font-weight: 500; color: rgb(var(--on-media)); }
.pill svg { width: 14px; height: 14px; }
.tile:hover .pill { background: var(--ac); border-color: var(--ac); color: var(--ac-ink); }
.tile-rl { font-size: 10.5px; color: rgb(var(--on-media) / .6); letter-spacing: .08em; }
.tile.soon { pointer-events: none; }
.tile.soon .tile-bg { filter: grayscale(1) brightness(.5); }
/* chamada */
.hub-banner { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 32px clamp(24px, 3vw, 40px); border-radius: 26px; background: var(--ink-2); border: 1px solid rgb(var(--veil) / .09); }
.hub-banner::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; top: -260px; border-radius: 50%; background: var(--glow-2); filter: blur(90px); }
.hub-banner .k { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 11px; letter-spacing: .16em; }
.tile-ic { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(145deg, var(--ac-g1), var(--ac-g2) 48%, var(--ac-g3)); transform: rotate(7deg); display: inline-block; }
.hub-banner h2 { margin: 0; font-family: var(--body); font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.03em; line-height: 1.08; max-width: 22ch; }
.hub-banner p:not(.k) { margin: 12px 0 0; color: var(--mute); font-size: 15px; line-height: 1.55; max-width: 56ch; }
.banner-go { display: inline-flex; align-items: center; gap: 14px; flex: none; color: var(--bone); text-decoration: none; font-size: 14px; font-weight: 500; }
.go-dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ac); color: var(--ac-ink); transition: transform .2s; }
.go-dot svg { width: 20px; height: 20px; }
.banner-go:hover .go-dot { transform: rotate(45deg); }
/* seções */
.hub-sec { display: grid; gap: 16px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sec-h h3, .cont h3 { margin: 0; font-family: var(--body); font-weight: 400; font-size: 22px; letter-spacing: -.02em; }
.sec-h p, .cont .sub { margin: 6px 0 0; color: var(--faint); font-size: 13px; }
.sec-more { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); text-decoration: none; font-size: 13.5px; white-space: nowrap; }
.sec-more svg { width: 14px; height: 14px; }
.sec-more:hover { color: var(--ac); }
.models { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.model { display: grid; gap: 0; border-radius: 18px; overflow: hidden; border: 1px solid rgb(var(--veil) / .09); background: var(--ink-2); text-decoration: none; color: var(--bone); transition: border-color .2s; }
.model:hover { border-color: var(--ac-soft); }
.model-img { aspect-ratio: 4 / 3.4; overflow: hidden; }
.model-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .4s; }
.model:hover .model-img img { transform: scale(1.04); }
.model-n { display: grid; gap: 4px; padding: 12px 14px 14px; border-top: 1px solid rgb(var(--veil) / .08); }
.model-n b { font-size: 13.5px; font-weight: 500; }
.model-n span { color: var(--faint); font-size: 10px; letter-spacing: .1em; }
/* números + continuidade */
.hub-panel { border-radius: 26px; border: 1px solid rgb(var(--veil) / .09); background: var(--surface-1); overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid rgb(var(--veil) / .08); }
.stat { display: grid; gap: 8px; padding: 24px 28px; align-content: start; }
.stat + .stat { border-left: 1px solid rgb(var(--veil) / .08); }
.stat .mono { color: var(--faint); font-size: 10.5px; letter-spacing: .14em; }
.stat b { font-family: var(--body); font-weight: 300; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat > span:last-child { color: var(--faint); font-size: 12.5px; }
.panel-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.cont { padding: 28px; display: grid; gap: 0; align-content: start; }
.cont-list { margin-top: 18px; display: grid; gap: 10px; }
.cont-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid rgb(var(--veil) / .08); background: var(--ink-2); text-decoration: none; color: var(--bone); transition: border-color .2s; }
.cont-row:hover { border-color: rgba(166,173,247,.35); }
.cont-th { position: relative; height: 68px; border-radius: 10px; overflow: hidden; }
.cont-th .sample { position: absolute; inset: 0; height: 100%; }
.cont-tx { display: grid; gap: 4px; min-width: 0; }
.cont-tx .mono { color: var(--faint); font-size: 10px; letter-spacing: .12em; }
.cont-tx b { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 14px; }
.cont-go { color: var(--ac); font-size: 12.5px; }
.cont-ar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); }
.cont-ar svg { width: 16px; height: 16px; }
.cont-row:hover .cont-ar { color: var(--ac); }
.hub-poster { position: relative; display: block; min-height: 360px; overflow: hidden; isolation: isolate; border-left: 1px solid rgb(var(--veil) / .08); text-decoration: none; color: var(--bone); }
.poster-grid { position: absolute; inset: -10%; z-index: -2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-6deg) scale(1.05); opacity: .75; }
.poster-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.hub-poster::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,.15), rgba(10,10,10,.9) 78%); }
.poster-tx { position: absolute; left: 0; right: 0; bottom: 28px; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 0 24px; }
.poster-tx .mono { color: var(--ac); font-size: 10.5px; letter-spacing: .16em; }
.poster-tx b { font-family: var(--body); font-weight: 300; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.1; }
.hub-poster:hover .pill { background: var(--ac); border-color: var(--ac); color: var(--ac-ink); }
/* canais */
.chans { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; }
.chan { position: relative; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; border-radius: 22px; overflow: hidden; isolation: isolate; border: 1px solid rgb(var(--veil) / .09); background: var(--ink-2); text-decoration: none; color: var(--bone); transition: border-color .2s; }
.chan:hover { border-color: var(--ac-soft); }
.chan > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: transform .5s; }
.chan:hover > img { transform: scale(1.04); }
.chan::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,.1), rgba(10,10,10,.9)); }
.chan-tx { display: grid; gap: 4px; }
.chan b { font-family: var(--body); font-weight: 400; font-size: 22px; letter-spacing: -.02em; }
.chan-tx span, .chan.help > span:last-child { color: rgb(var(--on-media) / .7); font-size: 13px; line-height: 1.45; }
.chan-ar { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(var(--veil) / .2); }
.chan-ar svg { width: 15px; height: 15px; }
.chan.help { justify-content: space-between; background: var(--ink-2); }
.chan.help::after { display: none; }
.chan-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(166,173,247,.1); color: var(--ac); }
.chan-ic svg { width: 20px; height: 20px; }
/* Conta e Suporte dentro do novo layout */
.doc { padding: 28px clamp(16px, 3vw, 40px) 64px; }
.doc h1 { font-family: var(--body); font-weight: 300; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.035em; }
.panel, .toolslist { border-radius: 20px; }

/* responsivo */
@media (max-width: 1200px) {
  /* .tiles: auto-fit */
  .chans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgb(var(--veil) / .08); }
}
@media (max-width: 900px) {
  .panel-split { grid-template-columns: minmax(0, 1fr); }
  .hub-poster { border-left: 0; border-top: 1px solid rgb(var(--veil) / .08); min-height: 300px; }
  .hub-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .app-shell, .app-shell.side-min, .app-shell.in-tool { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 80; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
  .side-open .side { transform: none; }
  .side-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(0,0,0,.55); }
  /* no celular o menu aberto sempre mostra os nomes */
  .app-shell .side .side-top { padding: 0 12px 0 20px; justify-content: space-between; }
  .app-shell .side .side-top .brand, .app-shell .side .slab, .app-shell .side .side-h { display: revert; }
  .app-shell .side .side-foot .who { display: grid; }
  .app-shell .side .side-foot .avatar { display: grid; }
  .app-shell .side .side-foot { justify-content: flex-start; padding: 14px 12px 16px 16px; }
  .app-shell .side .sitem { justify-content: flex-start; padding: 0 12px; }
  .app-shell .side .side-tg { display: none; }
  .app-shell.in-tool .side-top::after { display: none; }
  .side-open-btn { display: inline-flex; }
  .pbar { padding: 0 12px; }
  .pbtn.search { width: 40px; padding: 0; justify-content: center; }
  .pbtn.search .lbl, .pbtn.search .kbd { display: none; }
  .tiles, .chans { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 260px; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat { padding: 18px; }
  .cont { padding: 20px; }
  .cont-row { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .crumb-home, .crumb-sep { display: none; }
}
.tile .fxlabel, .tile .fxdots, .tile .cap { display: none; }

/* ============================================================================
   ENTRADA — painel em movimento: lâminas de carrossel rolando + gravações das ferramentas
   ========================================================================== */
.auth-art.reel { display: grid; place-items: center; background: var(--ink); isolation: isolate; }
.auth-art.reel::before { background: radial-gradient(60% 50% at 50% 50%, rgba(127,136,238,.22), transparent 70%); mix-blend-mode: normal; opacity: 1; z-index: 1; pointer-events: none; }
.auth-art.reel::after { inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,.9) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 70%, rgba(10,10,10,.92) 100%); pointer-events: none; }
.reel-cols { position: absolute; inset: -30% -18%; z-index: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; transform: rotate(-9deg); opacity: .5; }
.reel-col { overflow: hidden; }
.reel-col > div { display: grid; gap: 14px; animation: reel-up 38s linear infinite; will-change: transform; }
.reel-col.down > div { animation-name: reel-down; animation-duration: 44s; }
.reel-col:nth-child(3) > div { animation-duration: 34s; }
.auth-art.reel .reel-col img { position: static; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; border: 1px solid rgb(var(--veil) / .08); display: block; }
@keyframes reel-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
@keyframes reel-down { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }

.reel-win { position: relative; z-index: 2; width: min(86%, 400px); border-radius: 20px; overflow: hidden; background: var(--ink-2); border: 1px solid rgb(var(--veil) / .14); box-shadow: 0 30px 80px -24px rgba(0,0,0,.9), 0 0 0 6px rgba(166,173,247,.06); transition: opacity .28s ease, transform .28s ease; }
.reel-win.is-swap { opacity: 0; transform: translateY(8px) scale(.985); }
.reel-bar { height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid rgb(var(--veil) / .08); background: var(--ink-2); }
.reel-bar .dots { display: flex; gap: 6px; }
.reel-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--veil) / .16); }
.reel-chip { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,244,240,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-chip b { color: var(--ac); font-weight: 500; }
.reel-v { aspect-ratio: 16 / 10; background: var(--ink); }
.reel-v video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-prog { display: flex; gap: 6px; padding: 10px 14px 12px; background: var(--ink-2); }
.reel-prog i { flex: 1; height: 3px; border-radius: 99px; background: rgb(var(--veil) / .2); overflow: hidden; position: relative; }
.reel-prog i::after { content: ''; position: absolute; inset: -8px 0; }
.reel-prog span { position: absolute; left: 0; top: 0; height: 3px; width: 0; border-radius: inherit; background: var(--ac); }
.reel-prog i.done span { width: 100%; }
.reel-prog i.on span { animation: reel-fill 6.5s linear forwards; }
@keyframes reel-fill { from { width: 0; } to { width: 100%; } }
.auth-art.reel figcaption { z-index: 3; }

.auth-art.reel.still .reel-col > div { animation: none; }
.auth-art.reel.still .reel-prog i.on span { animation: none; width: 100%; }
@media (prefers-reduced-motion: reduce) { .reel-col > div, .reel-prog i.on span { animation: none !important; } }
@media (max-width: 760px) {
  .auth-art.reel { height: 230px; }
  .reel-cols { inset: -40% -10%; gap: 10px; }
  .reel-col > div { gap: 10px; }
  .reel-win { width: min(64%, 240px); border-radius: 14px; }
  .reel-bar { height: 26px; }
  .reel-prog { padding: 8px 10px 9px; }
}

/* =====================================================================
   DESIGN SYSTEM · etapa 2 (23/10/2026)
   Componentes reutilizáveis guiados por tokens. Princípios de composição
   (galeria editorial: card 28px sem sombra, seções alternadas, respiro,
   botões discretos), sempre em preto, lilás e Montserrat (MD JEAN).
   Ainda não aplicados em nenhuma página: prefixo .ds- evita colisão.
   ===================================================================== */
.ds-root { font-family: var(--font-ds); }

/* seção: respiro vertical generoso; .alt alterna a superfície */
.ds-section { padding: var(--sp-section) var(--gutter); background: var(--surface-0); }
.ds-section.alt { background: var(--surface-1); }
.ds-section.support { background: var(--surface-2); }
.ds-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; }

/* cabeçalho de seção: rótulo, título e link opcional do lado oposto */
.ds-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-gap); margin-bottom: calc(var(--sp-gap) * 2); }
.ds-kick { margin: 0 0 12px; font: 500 var(--t-ds-kick)/1 var(--font-ds); letter-spacing: .14em; text-transform: uppercase; color: var(--ac); }
.ds-title { margin: 0; font: 400 var(--t-ds-title)/var(--lh-title) var(--font-ds); letter-spacing: var(--tr-title); color: var(--t); text-wrap: balance; }
.ds-hero { margin: 0; font: 400 var(--t-ds-hero)/var(--lh-display) var(--font-ds); letter-spacing: var(--tr-display); color: var(--t); text-wrap: balance; }
.ds-lede { margin: 0; max-width: var(--measure); font: 400 var(--t-ds-body)/var(--lh-body) var(--font-ds); letter-spacing: var(--tr-body); color: var(--t2); text-wrap: pretty; }
.ds-hero + .ds-lede, .ds-title + .ds-lede { margin-top: 16px; }
.ds-link { display: inline-flex; align-items: center; gap: 6px; font: 500 15px/1 var(--font-ds); color: var(--ac); text-decoration: none; }
.ds-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* card: superfície + contorno 1px, raio 28px, sem sombra */
.ds-card { position: relative; display: grid; align-content: start; gap: 12px; padding: var(--sp-card); border-radius: var(--r-card); border: 1px solid var(--ln-card); background: var(--surface-1); box-shadow: var(--elev); overflow: hidden; color: var(--t); text-decoration: none; transition: border-color .2s; }
.ds-section.alt .ds-card { background: var(--surface-0); }
a.ds-card:hover { border-color: rgba(166,173,247,.35); }
.ds-card h3 { margin: 0; font: 500 clamp(19px, 1.8vw, 24px)/1.2 var(--font-ds); letter-spacing: -.015em; text-wrap: balance; }
.ds-card p { margin: 0; font: 400 15px/1.45 var(--font-ds); letter-spacing: var(--tr-body); color: var(--t2); text-wrap: pretty; }
/* card de mídia: a imagem é o destaque, encosta nas bordas e pode cortar */
.ds-card.media { padding: 0; gap: 0; }
.ds-card.media > img, .ds-card.media > video, .ds-card .ds-media { display: block; width: 100%; height: auto; aspect-ratio: var(--ds-ratio, 16 / 10); object-fit: cover; }
.ds-card.media .ds-cap { padding: var(--sp-card); display: grid; gap: 8px; }
.ds-card .ds-inner { border-radius: var(--r-card-sm); overflow: hidden; }

/* grade de cards com o mesmo respiro */
.ds-grid { display: grid; gap: var(--sp-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ds-grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }

/* pôster lilás (síntese, oferta): texto sempre preto */
.ds-poster { border-radius: var(--r-card); padding: calc(var(--sp-card) * 1.6); background: var(--ac); color: var(--ac-ink); }
.ds-poster .ds-title, .ds-poster .ds-lede, .ds-poster .ds-kick { color: var(--ac-ink); }

/* botão: reaproveita .btn; modificadores discretos */
.btn.cap { border-radius: var(--r-pill); font-family: var(--font-ds); font-weight: 500; letter-spacing: -.005em; }
.btn.cap.lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn.ghost { border-color: rgb(var(--veil) / .22); background: transparent; }

/* navegação local minimalista: rótulos sem caixa, um único botão de ação */
.ds-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ds-nav a { padding: 10px 14px; border-radius: var(--r-pill); font: 500 14px/1 var(--font-ds); letter-spacing: -.01em; color: var(--t2); text-decoration: none; }
.ds-nav a:hover, .ds-nav a[aria-current="page"] { color: var(--t); background: rgb(var(--veil) / .06); }

/* selo de texto simples (novo, em breve) */
.ds-tag { font: 600 12px/1 var(--font-ds); letter-spacing: .08em; text-transform: uppercase; color: var(--ac); }

@media (max-width: 640px) {
  .ds-head { align-items: flex-start; }
  .ds-card { border-radius: calc(var(--r-card) - 6px); }
}

/* =====================================================================
   DASHBOARD · etapa 4 (23/10/2026) — área de membros com o Design System
   Escopo: .app-shell (barra lateral, barra superior e páginas internas).
   Login/cadastro ficam fora (não usam .app-shell); laboratórios rodam em
   iframe e não herdam nada daqui. Mesma estrutura, mesmos links e rotas.
   ===================================================================== */
.app-shell {
  /* MD JEAN: só Montserrat (como a landing já faz); rótulos em caixa alta */
  --display: var(--font-ds); --body: var(--font-ds); --serif: var(--font-ds); --mono: var(--font-ds);
  font-family: var(--font-ds);
}
.app-shell .display { font-stretch: 100%; }
.app-shell .mono { font-weight: 600; letter-spacing: .12em; }
.app-shell .serif-i { font-style: normal; font-weight: 300; letter-spacing: -.03em; padding-right: 0; }
.app-shell .kbd { font-weight: 500; letter-spacing: .02em; text-transform: none; }

/* navegação lateral: discreta, nomes das ferramentas na mesma família */
.sitem { font-size: 13.5px; }
.sitem[data-slug] .slab { font-family: var(--font-ds); font-stretch: 100%; font-weight: 600; font-size: 12.5px; letter-spacing: .02em; }
.side-h { font-weight: 600; font-size: 10px; }

/* área do dashboard: mais respiro entre blocos, sem virar landing */
.hub { gap: clamp(32px, 3.2vw, 48px); padding-top: clamp(28px, 3vw, 44px); }
.hub-head { gap: 10px; }
.hub-head .meta { font-size: 11px; color: var(--t2); }
.hub-head h1 { font-weight: 400; font-size: clamp(30px, 3.2vw, 46px); letter-spacing: var(--tr-display); line-height: 1.04; }
.hub-head h1 .serif-i { font-size: 1em; }
.sec-h h3, .cont h3 { font-family: var(--font-ds); font-weight: 500; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -.02em; }

/* laboratórios: cards do mesmo tamanho, raio do sistema, sem sombra */
.tiles { gap: var(--sp-gap); }
.tile { border-radius: var(--r-card); border-color: var(--ln-card); box-shadow: var(--elev); padding: var(--sp-card); }
.tile-bg { background: var(--ink-2); }            /* fundo enquanto a prévia carrega */
.tile h2 { font-family: var(--font-ds); font-stretch: 100%; font-weight: 700; font-size: clamp(18px, 1.45vw, 24px); letter-spacing: -.005em; }
.tile-d { font-size: 14px; }
.tile.soon { opacity: .72; }                       /* acesso ainda indisponível */
.tile:focus-visible, .model:focus-visible, .chan:focus-visible, .cont-row:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }

/* faixa de chamada, modelos, painel e canais com os mesmos raios */
.hub-banner { border-radius: var(--r-card); border-color: var(--ln-card); }
.hub-banner h2 { font-weight: 400; letter-spacing: var(--tr-title); }
.model { border-radius: var(--r-card-sm); border-color: var(--ln-card); }
.model-n b { font-weight: 600; }
.hub-panel { border-radius: var(--r-card); border-color: var(--ln-card); background: var(--surface-1); }
.stat b { font-weight: 400; }
.cont-row { border-radius: var(--r-card-sm); }
.cont-th { border-radius: 12px; background: var(--ink-2); }
.cont-tx b { font-family: var(--font-ds); font-stretch: 100%; font-weight: 600; }
.poster-tx b { font-weight: 400; }
.chans { gap: var(--sp-gap); }
.chan { border-radius: var(--r-card); border-color: var(--ln-card); }
.chan b { font-weight: 500; }

@media (max-width: 640px) {
  .tile, .hub-banner, .hub-panel, .chan { border-radius: 22px; }
}
/* legibilidade: véu mais firme onde ficam a descrição e o botão; prévia visível no meio */
.tile-bg::after { background: linear-gradient(180deg, rgb(var(--media-fade) / .8) 0%, rgb(var(--media-fade) / .2) 30%, rgb(var(--media-fade) / .72) 50%, rgb(var(--media-fade) / .94) 64%, rgb(var(--media-fade)) 100%); }

/* =====================================================================
   ACESSO · etapa 5 (23/10/2026) — login e cadastro (.auth)
   Só visual: mesmos campos, validações, mensagens, rotas e fluxo do JSL_AUTH.
   (Não existe tela de recuperação de senha no projeto: nada foi criado.)
   ===================================================================== */
.auth {
  --display: var(--font-ds); --body: var(--font-ds); --serif: var(--font-ds); --mono: var(--font-ds);
  font-family: var(--font-ds);
}
.auth .mono { font-weight: 600; letter-spacing: .12em; }
.auth-card { box-shadow: var(--elev); border-color: var(--ln-card); border-radius: var(--r-card); }
.auth-form { gap: 20px; }
.auth-form h1 { font-weight: 400; letter-spacing: var(--tr-display); line-height: 1.06; text-wrap: balance; }
.auth-form .sub { letter-spacing: var(--tr-body); }
.auth .field label { font-weight: 500; font-size: 13px; color: var(--t2); }
.auth .field input { font-family: var(--font-ds); font-size: 15px; letter-spacing: -.005em; transition: border-color .2s, box-shadow .2s; }
.auth .field input:focus-visible { outline: none; }
/* botão: cápsula do sistema; carregando = desabilitado durante o envio */
.auth-form .btn.primary { border-radius: var(--r-pill); font-weight: 600; letter-spacing: -.005em; transition: opacity .2s, filter .2s; }
.auth-form .btn.primary:hover { filter: brightness(1.05); }
.auth-form .btn.primary:disabled { opacity: .6; cursor: progress; }
/* erro vindo da validação existente: legível, sem alarme visual */
.auth .form-err { padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(226,109,90,.35); background: rgba(226,109,90,.08); font-size: 13.5px; line-height: 1.45; }
.auth-form a { text-underline-offset: 3px; }
.auth-form a:focus-visible, .auth .eye:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: 8px; }
@media (max-width: 640px) {
  .auth-card { border-radius: 24px; }
}

/* etapa 9 · página 404 e landing reserva (.lp) no mesmo acabamento tipográfico do resto */
.lp .display, .lp h1, .lp h2 { font-stretch: 100%; }
.lp .serif-i { font-style: normal; font-weight: 300; letter-spacing: -.03em; padding-right: 0; }
.lp .mono { font-weight: 600; letter-spacing: .12em; }

/* ------------------------------------------------------------- APARÊNCIA
   Escolha de tema na tela de Conta. As amostras mostram o que vai acontecer:
   um quadradinho com o chão e o acento de cada tema. */
.panel-lede { margin: -6px 0 16px; color: var(--mute); font-size: 13.5px; max-width: 54ch; text-wrap: pretty; }
.tema-opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tema-op {
  display: grid; gap: 4px; justify-items: start; text-align: left; cursor: pointer;
  padding: 16px; border-radius: var(--r-card-sm); border: 1px solid var(--ln-card);
  background: transparent; color: var(--bone); font: inherit; transition: border-color .2s, background .2s;
}
.tema-op:hover { border-color: var(--ac-soft); background: rgb(var(--veil) / .04); }
.tema-op.on { border-color: var(--ac); background: rgb(var(--veil) / .05); }
.tema-op b { font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.tema-op .tema-d { color: var(--mute); font-size: 12.5px; line-height: 1.4; }
.tema-op:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.tema-am {
  width: 100%; height: 44px; margin-bottom: 8px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--ln-card); display: block; position: relative;
}
.tema-am::after { content: ''; position: absolute; left: 10px; bottom: 9px; width: 34px; height: 8px; border-radius: 999px; }
.tema-am-dark { background: #0A0A0A; }
.tema-am-dark::after { background: #a6adf7; }
.tema-am-light { background: #E9E9E5; }
.tema-am-light::after { background: #4e59cb; }
.tema-am-auto { background: linear-gradient(100deg, #0A0A0A 0 50%, #E9E9E5 50% 100%); }
.tema-am-auto::after { width: 26px; background: #a6adf7; }
.tema-am-auto::before { content: ''; position: absolute; right: 10px; bottom: 9px; width: 26px; height: 8px; border-radius: 999px; background: #4e59cb; }

/* link público da ferramenta aberta (barra do topo) */
.pub-link { text-decoration: none; }
.pub-link .ic svg { width: 15px; height: 15px; display: block; }
.pub-link .lbl { font-size: 12.5px; }
@media (max-width: 760px) { .pub-link .lbl { display: none; } }

/* -------------------------------------------------- RECUPERAR SENHA + AJUDA
   Tela "Esqueceu a senha?" (dois passos no mesmo cartão) e o pop-up flutuante
   "Precisa de ajuda?" das telas de entrada. Tokens do tema: funciona no claro e
   no escuro. Um acento por tela, como sempre. */
.auth-ic {
  width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center;
  border-radius: 50%; background: rgb(var(--veil) / .06); border: 1px solid rgb(var(--veil) / .10);
  color: var(--mute);
}
.auth-ic svg { width: 22px; height: 22px; }
.auth-form .auth-ic + h1 { text-align: center; }
.auth-form .auth-ic ~ .sub { text-align: center; }
.forgot-note {
  margin: 0 0 6px; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5;
  background: var(--acx); border: 1px solid rgb(var(--veil) / .10); color: var(--t2); text-wrap: pretty;
}
.forgot-note b { color: var(--ac); font-weight: 700; letter-spacing: .06em; }
.forgot-mail { color: var(--bone); font-weight: 600; overflow-wrap: anywhere; }
.btn .btn-ic { display: inline-flex; margin-right: 2px; }
.btn .btn-ic svg { width: 16px; height: 16px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.linklike:disabled { opacity: .5; cursor: default; }

/* botão flutuante + cartão de ajuda */
.help-wrap { position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 24px); z-index: 60; display: grid; justify-items: end; gap: 10px; }
.help-fab {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px;
  border-radius: 999px; cursor: pointer; font: 500 13.5px/1 var(--body); letter-spacing: -.01em;
  background: var(--surface-1); color: var(--bone); border: 1px solid rgb(var(--veil) / .14);
  box-shadow: var(--shadow-pop); transition: border-color .2s, transform .2s;
}
.help-fab:hover { border-color: var(--ac-soft); transform: translateY(-1px); }
.help-fab:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.help-fab-ic { display: inline-flex; color: var(--mute); }
.help-fab-ic svg { width: 16px; height: 16px; }
.help-pop {
  width: min(300px, calc(100vw - 32px)); padding: 8px; display: grid; gap: 2px;
  border-radius: var(--r-card-sm); background: var(--surface-1);
  border: 1px solid rgb(var(--veil) / .12); box-shadow: var(--shadow-pop);
  animation: help-in .18s ease;
}
@keyframes help-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .help-pop { animation: none; } }
.help-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 10px 12px; border-bottom: 1px solid rgb(var(--veil) / .08); margin-bottom: 4px; }
.help-top b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.help-x { width: 30px; height: 30px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--mute); cursor: pointer; }
.help-x:hover { background: rgb(var(--veil) / .07); color: var(--bone); }
.help-x svg { width: 14px; height: 14px; }
.help-it {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--t2); text-decoration: none; font-size: 14px; letter-spacing: -.01em; text-align: left; line-height: 1.35;
}
.help-it:hover { background: rgb(var(--veil) / .06); color: var(--bone); }
.help-it:focus-visible { outline: 2px solid var(--ac); outline-offset: -2px; }
.help-ic { flex: none; display: inline-flex; color: var(--mute); }
.help-it:hover .help-ic { color: var(--ac); }
.help-ic svg { width: 17px; height: 17px; }
