/* ============================================================================
   Raviera Intranet — design system no padrão do Raviera Connect (Inter, claro),
   layout inspirado nas referências (sidebar + Minha jornada + Loja + feed).
   Personalização (data-attributes no <html>):
     data-theme = light (padrão) | dark
     data-accent = azul|ciano|violeta|verde|dourado
     data-skin  = nenhuma | a temporada do mês (ver seasons.css e app/seasons.py)
   ========================================================================== */

/* ---------- Tokens (tema claro = padrão) ---------- */
:root {
  --bg: #f4f7fb;
  --bg-2: #edf2f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eaf0f6;
  --line: rgba(35, 64, 103, 0.12);
  --line-2: rgba(35, 64, 103, 0.07);
  --line-strong: rgba(var(--personal-accent-rgb), 0.4);
  --text: #162236;
  --muted: #627187;
  --muted-2: #7a889a;

  --gold: #c2a15a;
  --gold-soft: #ddc593;

  --radius: 20px;
  --radius-lg: 24px;
  --radius-sm: 14px;
  --shadow: 0 8px 28px rgba(31, 55, 86, 0.07);
  --shadow-lg: 0 24px 60px rgba(31, 55, 86, 0.13);

  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;

  --personal-accent: #35d0ff;
  --personal-accent-rgb: 53, 208, 255;
  --personal-accent-ink: #087faa;
  --accent-strong: var(--personal-accent-ink);
}

:root[data-accent="azul"] { --personal-accent: #35d0ff; --personal-accent-rgb: 53,208,255; --personal-accent-ink: #087faa; }
:root[data-accent="ciano"] { --personal-accent: #35e2f2; --personal-accent-rgb: 53,226,242; --personal-accent-ink: #087e8b; }
:root[data-accent="violeta"] { --personal-accent: #9c83ff; --personal-accent-rgb: 156,131,255; --personal-accent-ink: #5f49bf; }
:root[data-accent="verde"] { --personal-accent: #4ae09a; --personal-accent-rgb: 74,224,154; --personal-accent-ink: #16845b; }
:root[data-accent="dourado"] { --personal-accent: #f2c05e; --personal-accent-rgb: 242,192,94; --personal-accent-ink: #8d6514; }

/* As temporadas (data-skin) ganham do acento e moram no seasons.css, que é
   carregado depois deste arquivo — são doze campanhas, uma por mês, e cada uma
   tem cor no claro, cor no escuro e enfeite próprio. */

/* ---------- Tema escuro (estilo Connect) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05070a;
  --bg-2: #080c12;
  --surface: #0f1622;
  --surface-2: #131c2a;
  --surface-3: #1a2333;
  --line: rgba(145, 178, 221, 0.13);
  --line-2: rgba(145, 178, 221, 0.08);
  --text: #f4f8ff;
  --muted: #8f9bad;
  --muted-2: #657286;
  --gold: #ddc593;
  --gold-soft: #c2a15a;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.45);
  --accent-strong: var(--personal-accent);
}
:root { color-scheme: light; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh;
  background:
    radial-gradient(1100px 460px at 82% -12%, color-mix(in srgb, var(--personal-accent) 9%, transparent), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
input { font-family: inherit; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid rgba(var(--personal-accent-rgb), .55); outline-offset: 2px; }
::selection { background: rgba(var(--personal-accent-rgb), .22); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(var(--personal-accent-rgb), .22); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Layout ---------- */
.layout { min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 260px; display: flex; flex-direction: column; gap: 18px; padding: 24px 18px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line-2); }
.content { margin-left: 260px; min-height: 100dvh; }
.main { max-width: 1500px; min-width: 0; margin: 0 auto; padding: 22px 32px 60px; overflow-x: clip; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(30,24,45,.4); backdrop-filter: blur(3px); border: 0; }

/* Marca */
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(var(--personal-accent-rgb), .18)); }
.brand-copy strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.4px; line-height: 1; color: var(--text); }
.brand-copy small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-strong); margin-top: 3px; }

/* Nav */
.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: 14px; color: var(--muted); font-weight: 500; font-size: 14px; transition: background .18s ease, color .18s ease; }
.nav-link .icon { color: var(--muted-2); }
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link.is-active { background: rgba(var(--personal-accent-rgb), .14); color: var(--accent-strong); font-weight: 600; }
.nav-link.is-active .icon { color: var(--accent-strong); }
.nav-divider { height: 1px; margin: 8px 12px 6px; background: var(--line-2); }
.nav-link-connect { position: relative; color: var(--text); background: linear-gradient(115deg, rgba(var(--personal-accent-rgb), .13), rgba(var(--personal-accent-rgb), .035)); border: 1px solid rgba(var(--personal-accent-rgb), .15); }
.nav-link-connect .icon { color: var(--accent-strong); }
.nav-link-connect small { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); }

/* Saldo */
.saldo { position: relative; overflow: hidden; margin-top: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow); }
.saldo::after { content: ""; position: absolute; width: 120px; height: 120px; right: -70px; top: -70px; border-radius: 50%; border: 1px solid rgba(var(--personal-accent-rgb), .18); box-shadow: 0 0 0 18px rgba(var(--personal-accent-rgb), .04); pointer-events: none; }
.saldo-heading { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.saldo-heading > span { font-size: 11px; font-weight: 700; color: var(--accent-strong); }
.saldo-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.saldo-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; margin-top: 10px; }
.saldo-row-main { margin-top: 13px; }
.badge-ic { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.badge-ic.coin { border-radius: 50%; background: radial-gradient(circle at 32% 26%, #fff4c8 0 9%, #f4cd69 28%, #c78a22 76%, #8a5811 100%); color: #6b4e17; box-shadow: inset 0 0 0 2px rgba(255,255,255,.58), inset 0 0 0 4px rgba(119,74,10,.18), 0 7px 16px rgba(163,105,21,.22); }
.badge-ic.star { background: rgba(var(--personal-accent-rgb),.16); color: var(--accent-strong); }
.saldo-row b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.saldo-row small { display: block; font-size: 12px; color: var(--muted); }
.btn-block { width: 100%; margin-top: 14px; }

.side-user { display: flex; align-items: center; gap: 11px; padding: 8px 6px; }
.side-user .who { min-width: 0; flex: 1; }
.side-user b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user small { display: block; font-size: 12px; color: var(--muted); }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 15px 32px; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line-2); backdrop-filter: blur(16px); }
.search { flex: 1; max-width: 540px; margin: 0 auto; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.search .icon { color: var(--muted-2); }
.search input { flex: 1; border: 0; background: transparent; color: var(--text); font-size: 14px; outline: none; }
.search input::placeholder { color: var(--muted-2); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-assistant { display: none; }
.hamburger { display: none; }
.org-switcher { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; }
.org-switcher .icon { color: var(--muted-2); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }

/* ---------- Primitivos ---------- */
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
:root[data-theme="dark"] .card { background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, white 4%), var(--surface)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.025); }
.card-pad { padding: 22px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(140deg, rgba(var(--personal-accent-rgb),.35), rgba(var(--personal-accent-rgb),.62)); color: #fff; font-weight: 700; font-size: 13px; width: 40px; height: 40px; overflow: hidden; flex: none; }
.avatar.xs { width: 30px; height: 30px; font-size: 12px; }
.avatar.lg { width: 92px; height: 92px; font-size: 30px; }

/* Avatar clicável: leva ao perfil da pessoa sem mudar o desenho do avatar.
   O wrapper não impõe forma nenhuma — quem desenha continua sendo o filho
   (.avatar, .podium-avatar, imagem do feed…). */
.avatar-link { display: inline-flex; flex: none; line-height: 0; border-radius: 14px; }
.avatar-link:has(.avatar) { border-radius: 50%; }
.avatar-link > * { transition: box-shadow .18s ease, transform .18s ease; }
.avatar-link:hover > * { transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(var(--personal-accent-rgb), .55); }
.avatar-link:focus-visible { outline: 2px solid var(--personal-accent); outline-offset: 2px; }

/* Nome que leva ao perfil da pessoa: herda o estilo do texto e só sublinha no
   hover, para as telas não virarem um mar de links azuis. */
.social-person-link { color: inherit; font: inherit; text-decoration: none; }
.social-person-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.social-person-link:focus-visible { outline: 2px solid var(--personal-accent); outline-offset: 2px; border-radius: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 13px; border: 1px solid transparent; font-size: 14px; font-weight: 600; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease; }
.btn .icon { width: 17px; height: 17px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--personal-accent), var(--personal-accent-ink)); box-shadow: 0 10px 26px rgba(var(--personal-accent-rgb), .32); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(var(--personal-accent-rgb), .4); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--line-strong); color: var(--accent-strong); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 13px; border-radius: 11px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.pill-soft { color: var(--accent-strong); background: rgba(var(--personal-accent-rgb), .13); }
.pill-gold { color: #7a5a1c; background: rgba(194,161,90,.18); }

.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent-strong); }
.link-more:hover { text-decoration: underline; }
.sec { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sec h2 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 99px; background: var(--personal-accent); }

/* RavCoins — moeda visual própria da intranet */
.ravcoin { --coin-size: 46px; position: relative; width: var(--coin-size); height: var(--coin-size); flex: none; display: grid; place-items: center; isolation: isolate; border: 1px solid #a96e16; border-radius: 50%; color: #70440b; background: radial-gradient(circle at 31% 24%, #fff9dc 0 8%, #f7d77e 23%, #e3ad3f 57%, #b97618 82%, #81500d 100%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.68), inset 0 0 0 6px rgba(117,69,8,.14), inset -8px -9px 16px rgba(106,58,5,.18), 0 10px 22px rgba(161,103,17,.25); }
.ravcoin::before { content: ""; position: absolute; inset: 13%; z-index: -1; border: 1px solid rgba(119,72,10,.42); border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,247,200,.34); }
.ravcoin::after { content: ""; position: absolute; inset: 4px 9px auto auto; width: 24%; height: 13%; border-radius: 99px; background: rgba(255,255,255,.72); transform: rotate(30deg); filter: blur(.2px); }
.ravcoin > span { font-family: Georgia, serif; font-size: calc(var(--coin-size) * .42); font-weight: 800; line-height: 1; text-shadow: 0 1px 0 rgba(255,255,255,.62); }
.ravcoin-xs { --coin-size: 28px; }
.ravcoin-sm { --coin-size: 38px; }
.ravcoin-md { --coin-size: 52px; }
.ravcoin-lg { --coin-size: 78px; }
.badge-ic.coin .icon { display: none; }
.badge-ic.coin::after { content: "R"; font-family: Georgia, serif; font-weight: 800; }
.coindot { width: 16px; height: 16px; display: inline-grid; place-items: center; border: 1px solid #b57a1c; border-radius: 50%; color: #7a4a0a; background: radial-gradient(circle at 32% 25%, #fff3bf, #ecc45e 55%, #bd7d1d); font: 800 8px/1 Georgia, serif; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }

/* ---------- Grades ---------- */
.row-top { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 20px; align-items: stretch; }
.row-mid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 20px; align-items: start; margin-top: 20px; }
.row-bot { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; align-items: start; margin-top: 20px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 20px; }
.col { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Início: painel compacto e responsivo ---------- */
.home-dashboard { display: flex; flex-direction: column; gap: 18px; }
.home-top { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 18px; align-items: stretch; }
.home-mid { display: grid; grid-template-columns: .88fr 1.32fr .88fr; gap: 18px; align-items: stretch; }
.home-top > *, .home-mid > * { min-width: 0; }
.home-dashboard .card-pad { padding: 19px; }
.home-dashboard .sec { margin-bottom: 11px; }
.home-dashboard .sec h2 { font-size: 15px; }

.hero.home-hero { min-height: 250px; border: 1px solid rgba(var(--personal-accent-rgb), .12); box-shadow: var(--shadow-lg); }
.home-hero .bg { background: radial-gradient(circle at 78% 20%, rgba(var(--personal-accent-rgb), .34), transparent 29%), radial-gradient(circle at 85% 74%, rgba(37,99,255,.2), transparent 32%), linear-gradient(130deg, #fafdff 0%, #eef8fd 45%, #d8f2fb 100%); }
:root[data-theme="dark"] .home-hero .bg { background: radial-gradient(circle at 78% 20%, rgba(var(--personal-accent-rgb), .22), transparent 29%), radial-gradient(circle at 85% 74%, rgba(37,99,255,.18), transparent 32%), linear-gradient(130deg, #0f1622 0%, #0c1724 52%, #08111c 100%); }
.hero.home-hero::after { background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 48%, rgba(255,255,255,.2) 73%, transparent 100%); }
:root[data-theme="dark"] .hero.home-hero::after { background: linear-gradient(90deg, rgba(9,13,20,.96) 0%, rgba(9,13,20,.82) 50%, rgba(9,13,20,.08) 78%, transparent 100%); }
.home-hero .hero-body { max-width: 66%; padding: 30px; }
.home-hero .hero-body h1 { margin-top: 8px; font-size: clamp(25px, 2.2vw, 32px); }
.home-hero .hero-body p { margin-top: 9px; max-width: 46ch; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.home-hero .hero-actions .btn { flex: 0 0 auto; margin-top: 0; white-space: nowrap; height: 40px; padding: 0 18px; font-size: 13px; border-radius: 11px; }
.home-hero .hero-status { white-space: nowrap; }
.hero-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.hero-status i { width: 7px; height: 7px; border-radius: 50%; background: #1ed8b0; box-shadow: 0 0 0 4px rgba(30,216,176,.12); }
.hero-orbits { position: absolute; z-index: 1; right: 5%; top: 50%; width: 132px; height: 132px; display: grid; place-items: center; border: 1px solid rgba(var(--personal-accent-rgb), .24); border-radius: 50%; transform: translateY(-50%); color: var(--accent-strong); }
.hero-orbits::before, .hero-orbits::after, .hero-orbits span { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(var(--personal-accent-rgb), .18); }
.hero-orbits::before { inset: 17px; }.hero-orbits::after { inset: 35px; }.hero-orbits span:first-child { width: 10px; height: 10px; top: 5px; left: 60px; border: 0; background: var(--personal-accent); box-shadow: 0 0 16px rgba(var(--personal-accent-rgb), .72); }
.hero-orbits span:nth-child(2) { width: 8px; height: 8px; bottom: 18px; left: 18px; border: 0; background: #2563ff; }
.hero-orbits b { font: 800 30px/1 Georgia, serif; }
:root[data-theme="light"] .hero-orbits b {
  min-width: 54px;
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--personal-accent-rgb), .38);
  border-radius: 50%;
  color: color-mix(in srgb, var(--personal-accent-ink) 88%, #10233d 12%);
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 10px 30px rgba(var(--personal-accent-rgb), .14);
  text-shadow: 0 1px 0 #fff;
}

:root[data-density="compacta"] .main { padding-top: 18px; padding-bottom: 18px; }
:root[data-density="compacta"] .card-pad { padding: 16px; }
:root[data-density="compacta"] .nav { gap: 2px; }
:root[data-density="compacta"] .nav-link { min-height: 44px; }
:root[data-density="compacta"] .page-heading { margin-bottom: 16px; }
:root[data-motion="reduzida"] *,
:root[data-motion="reduzida"] *::before,
:root[data-motion="reduzida"] *::after {
  scroll-behavior: auto !important;
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}

.journey-card { position: relative; overflow: hidden; background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-2) 76%, rgba(var(--personal-accent-rgb), .16))); }
.journey-card::after { content: ""; position: absolute; right: -48px; top: 30px; width: 118px; height: 118px; border: 1px solid rgba(var(--personal-accent-rgb), .1); border-radius: 50%; box-shadow: 0 0 0 22px rgba(var(--personal-accent-rgb), .025); pointer-events: none; }
.journey-balance { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.journey-balance-copy small, .journey-balance-copy span { display: block; color: var(--muted); font-size: 11.5px; }
.journey-balance-copy b { display: block; margin: 2px 0 -1px; font-size: 27px; line-height: 1; letter-spacing: -1px; }
.journey-balance-copy span { color: #9a6617; font-weight: 750; }
.journey-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.journey-metrics > div { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line-2); border-radius: 11px; background: color-mix(in srgb, var(--surface) 72%, transparent); }
.journey-metrics .ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--accent-strong); background: rgba(var(--personal-accent-rgb), .13); }
.journey-metrics .rank { color: #2563ff; background: rgba(37,99,255,.1); }
.journey-metrics b, .journey-metrics small { display: block; }
.journey-metrics b { font-size: 13px; line-height: 1.1; }.journey-metrics small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.journey-card .season { margin-top: 12px; padding-top: 11px; }
.season-progress { display: flex; align-items: center; gap: 8px; margin-top: 7px; }.season-progress .progress { flex: 1; }.season-progress > small { color: var(--muted); font-size: 11px; font-weight: 700; }

.store-card { display: flex; flex-direction: column; }
.store-list { flex: 1; min-height: 0; }
.store-card .store-item { padding: 8px 0; }
.store-card .store-item > .icon { color: var(--muted-2); }
.store-card .store-thumb { width: 38px; height: 38px; }
.store-card .store-foot { margin-top: 8px; }

.linkedin-card, .feed-card, .home-now { display: flex; min-height: 0; flex-direction: column; }
.linkedin-preview { position: relative; isolation: isolate; overflow: hidden; flex: 1; min-height: 145px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 18px; border: 1px solid rgba(10,102,194,.12); border-radius: 16px; background: radial-gradient(circle at 92% 12%, rgba(10,102,194,.18), transparent 34%), linear-gradient(135deg, #f9fcff, #edf5fc); transition: transform .18s ease, box-shadow .18s ease; }
:root[data-theme="dark"] .linkedin-preview { background: radial-gradient(circle at 92% 12%, rgba(10,102,194,.22), transparent 34%), linear-gradient(135deg, #101a27, #0d1621); }
.linkedin-preview:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10,102,194,.12); }
.linkedin-post-copy { position: relative; z-index: 2; min-width: 0; max-width: 85%; }
.linkedin-preview .eyebrow { color: #0a66c2; }
.linkedin-preview .li-title { display: -webkit-box; overflow: hidden; margin: 8px 0 7px; font-size: clamp(16px,1.35vw,22px); line-height: 1.18; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.linkedin-preview small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.linkedin-post-media { position: absolute; z-index: 0; inset: 0; }
.linkedin-post-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,14,28,.08) 3%, rgba(5,18,34,.48) 52%, rgba(4,14,29,.92) 100%); }
.linkedin-post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.linkedin-preview.has-post-image:hover .linkedin-post-media img { transform: scale(1.025); }
.linkedin-preview.has-post-image .linkedin-post-copy { max-width: 88%; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.24); }
.linkedin-preview.has-post-image .eyebrow, .linkedin-preview.has-post-image small { color: rgba(255,255,255,.88); }
.linkedin-post-date { font-weight: 700; }
.linkedin-arrow { position: relative; z-index: 2; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #0a66c2; box-shadow: 0 8px 20px rgba(4,31,61,.2); }
.linkedin-card .li-foot { margin-top: 9px; }.linkedin-card .li-foot span:last-child { margin-left: auto; color: #0a66c2; }
.linkedin-admin { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.linkedin-admin-btn { border: 1px solid rgba(10,102,194,.35); background: transparent; color: #0a66c2; font-size: 12px; font-weight: 650; padding: 6px 10px; border-radius: 9px; cursor: pointer; transition: background .15s ease; }
.linkedin-admin-btn:hover { background: rgba(10,102,194,.08); }
.linkedin-admin-btn.is-ghost { border-color: var(--line-2); color: var(--muted); }
.linkedin-admin-btn:disabled { opacity: .5; cursor: default; }

.feed-list { flex: 1; min-height: 0; display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); }
.feed-card .feed-item { min-height: 0; align-items: center; padding: 9px 0; }
.feed-copy { min-width: 0; flex: 1; }.feed-card .feed-item p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.feed-action { display: inline-flex; align-items: center; gap: 5px; padding: 4px; border: 0; background: transparent; color: inherit; }
.feed-action:hover, .feed-action.is-on { color: #e35472; }

.home-now { gap: 0; }
.home-celebration { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 14px; border-bottom: 1px solid var(--line-2); }
.celebration-copy b, .celebration-copy small { display: block; }.celebration-copy b { margin-top: 6px; font-size: 14px; }.celebration-copy small { margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.home-celebration .avatar-stack { margin-top: 0; flex: none; }
.home-poll { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 13px; }
.home-poll > p { margin: 8px 0 11px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.home-poll > div { display: flex; align-items: center; gap: 10px; }.home-poll > div small { color: var(--muted); font-size: 11.5px; }

.home-quickbar { display: grid; grid-template-columns: 155px repeat(5,minmax(0,1fr)); align-items: stretch; gap: 9px; padding: 11px; }
.quickbar-title { display: flex; flex-direction: column; justify-content: center; padding: 0 10px; }.quickbar-title b { margin-top: 7px; font-size: 14px; line-height: 1.25; }
.quick-action { min-width: 0; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--surface-2); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.quick-action:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface); }
.quick-action .tile-ic { width: 38px; height: 38px; border-radius: 12px; }.quick-action .tile-ic .icon { width: 18px; height: 18px; }
.quick-action b, .quick-action small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.quick-action b { font-size: 12px; }.quick-action small { margin-top: 2px; color: var(--muted); font-size: 11px; }.quick-arrow { color: var(--muted-2); }

@media (min-width: 1201px) and (min-height: 740px) {
  body.home-screen { overflow: hidden; }
  .home-screen .content { height: 100dvh; overflow: hidden; }
  .home-screen .main { height: calc(100dvh - 75px); padding: 14px 24px 16px; }
  .home-dashboard { height: 100%; display: grid; grid-template-rows: clamp(232px, 30vh, 270px) minmax(260px,1fr) 110px; gap: 12px; }
  .home-top, .home-mid, .home-quickbar { min-height: 0; }
  .home-top, .home-mid { gap: 12px; }
  .home-top > *, .home-mid > * { height: 100%; min-height: 0; overflow: hidden; }
  .hero.home-hero { min-height: 0; }
  .home-screen .home-quickbar { padding-right: 76px; }
  .home-screen .assistant-launcher { width: 48px; padding: 0; justify-content: center; font-size: 0; }
  .home-dashboard .card-pad { padding: 15px; }
  .journey-card .ravcoin-lg { --coin-size: 66px; }
  .home-hero .hero-body { padding: 24px; }
  .home-hero .hero-body h1 { font-size: clamp(24px, 2vw, 31px); }
}
@media (min-width: 1201px) and (min-height: 740px) and (max-height: 819px) {
  .store-card .store-item:nth-child(3) { display: none; }
  .home-hero .hero-body { max-width: 70%; padding: 14px 24px; }
  .home-hero .hero-body h1 { margin-top: 5px; font-size: 28px; }
  .home-hero .hero-body p { margin-top: 6px; font-size: 12px; line-height: 1.4; }
  .home-hero .hero-actions { margin-top: 8px; }
  .home-hero .hero-actions .btn { height: 38px; padding: 0 16px; }
  .home-hero .hero-status { font-size: 11px; }
}

/* Hero */
.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 292px; display: flex; box-shadow: var(--shadow-lg); }
.hero .bg { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 34%, rgba(255,255,255,.15) 62%, transparent 78%); }
:root[data-theme="dark"] .hero::after { background: linear-gradient(100deg, rgba(9,13,20,.92) 0%, rgba(9,13,20,.72) 36%, transparent 72%); }
.hero-body { position: relative; z-index: 1; align-self: center; padding: 40px; max-width: 58%; }
.hero-body h1 { font-size: clamp(30px, 3.3vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -1.4px; margin-top: 12px; }
.hero-body h1 .name { color: var(--accent-strong); }
.hero-body p { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 40ch; }
.hero-body .btn { margin-top: 22px; }

/* Minha jornada */
.journey-top { display: flex; align-items: center; gap: 16px; }
.medal { width: 84px; height: 84px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: #6b4e17; background: radial-gradient(circle at 35% 30%, #f3e3bd, #c2a15a 70%); box-shadow: inset 0 0 0 4px rgba(255,255,255,.4), 0 10px 22px rgba(170,130,55,.35); }
.journey-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.journey-row { display: flex; align-items: center; gap: 10px; }
.journey-row .ic { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.journey-row .ic.coin { background: rgba(194,161,90,.18); color: #8a6f30; }
.journey-row .ic.pts { background: rgba(var(--personal-accent-rgb),.16); color: var(--accent-strong); }
.journey-row b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.journey-row small { display: block; font-size: 12px; color: var(--muted); }
.season { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.season-head { display: flex; align-items: center; justify-content: space-between; }
.season-head b { font-size: 13px; font-weight: 700; }
.season-dates { font-size: 12px; color: var(--muted-2); margin: 8px 0 8px; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(var(--personal-accent-rgb),.7), var(--personal-accent)); }

/* Loja de experiências */
.store-item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.store-item:first-child { border-top: 0; }
.store-thumb { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.store-item .info { flex: 1; min-width: 0; }
.store-item b { display: block; font-size: 13px; font-weight: 700; }
.store-item small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.store-item .coindot { flex: none; }
.store-foot { margin-top: 12px; font-size: 12px; color: var(--muted-2); line-height: 1.45; }

/* LinkedIn */
.li-head { display: flex; align-items: center; gap: 8px; color: #0a66c2; font-weight: 700; font-size: 13px; }
.li-badge { width: 22px; height: 22px; border-radius: 6px; background: #0a66c2; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.li-title { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.4px; margin-top: 12px; }
.li-thumb { height: 152px; border-radius: var(--radius-sm); margin-top: 14px; }
.li-foot { display: flex; align-items: center; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.li-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* Feed */
.feed-item { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-2); }
.feed-item:first-child { border-top: 0; padding-top: 0; }
.feed-item .who { display: flex; align-items: center; gap: 8px; }
.feed-item .who b { font-size: 13px; font-weight: 700; }
.feed-item .who small { font-size: 12px; color: var(--muted-2); }
.feed-item p { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.feed-metrics { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: 12px; font-weight: 600; margin-left: auto; align-self: center; }
.feed-metrics span { display: inline-flex; align-items: center; gap: 5px; }

/* Atalhos */
.tile { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile-ic { width: 48px; height: 48px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, rgba(var(--personal-accent-rgb),.14), rgba(var(--personal-accent-rgb),.3)); color: var(--accent-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.tile-ic .icon { width: 22px; height: 22px; }
.tile h3 { font-size: 14px; font-weight: 700; }
.tile p { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Reconhecimento (aniversariantes) */
.congrats { text-align: center; padding: 10px 0 4px; }
.congrats .big { font-size: 24px; font-weight: 800; letter-spacing: -.4px; color: var(--accent-strong); }
.congrats p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.avatar-stack { display: flex; justify-content: center; margin-top: 14px; }
.avatar-stack .avatar { margin-left: -10px; box-shadow: 0 0 0 3px var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-more { background: rgba(var(--personal-accent-rgb),.16); color: var(--accent-strong); }

/* FAQ — um card por assunto, com acordeão dentro.
   Antes era uma lista corrida de 24 linhas iguais, difícil de varrer.
   O tom do assunto (--tone/--tone-ink, definidos na .faq-section) pinta o
   hover e o estado aberto, para a cor acompanhar o card onde a linha vive. */
.faq-item { border-top: 1px solid var(--line-2); }
.faq-item:first-child { border-top: 0; }
.faq-q { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 8px; border: 0; border-radius: 11px; background: none; text-align: left; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--text); transition: color .16s ease, background .16s ease; }
.faq-q:hover { color: var(--tone-ink, var(--accent-strong)); background: rgba(var(--tone, var(--personal-accent-rgb)), .07); }
.faq-q:focus-visible { outline: 2px solid var(--personal-accent); outline-offset: 1px; }
.faq-q-text { flex: 1; min-width: 0; }
/* A seta num disco próprio: dá alvo de clique visível e um estado de aberto
   que se lê de longe, em vez de um risco cinza solto na margem. */
.faq-chev { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--muted-2); background: var(--surface-3); transition: background .16s ease, color .16s ease; }
.faq-chev .icon { transition: transform .22s ease; }
.faq-q:hover .faq-chev { color: var(--tone-ink, var(--accent-strong)); background: rgba(var(--tone, var(--personal-accent-rgb)), .16); }
.faq-item.is-open .faq-q { color: var(--tone-ink, var(--accent-strong)); }
.faq-item.is-open .faq-chev { color: #fff; background: rgb(var(--tone, var(--personal-accent-rgb))); }
.faq-item.is-open .faq-chev .icon { transform: rotate(180deg); }
/* Resposta em painel tingido, com um fio do tom do assunto na borda: fecha o
   bloco visualmente e amarra a resposta à cor do card, sem outra divisória. */
.faq-a { display: none; max-width: 74ch; margin: 2px 8px 13px; padding: 12px 15px; border-left: 3px solid rgba(var(--tone, var(--personal-accent-rgb)), .45); border-radius: 4px 12px 12px 4px; background: var(--surface-2); font-size: 13px; color: var(--muted); line-height: 1.62; }
.faq-item.is-open .faq-a { display: block; animation: faq-reveal .22s ease; }
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Chatbot ---------- */
.assistant { position: fixed; right: 26px; bottom: 26px; z-index: 60; }
.assistant-launcher { display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px 0 16px; border-radius: 99px; border: 0; color: #fff; background: linear-gradient(135deg, var(--personal-accent), var(--personal-accent-ink)); box-shadow: 0 14px 34px rgba(var(--personal-accent-rgb),.4); font-weight: 700; font-size: 14px; }
.assistant-panel { position: absolute; right: 0; bottom: 0; width: min(360px, calc(100vw - 40px)); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.assistant-panel[hidden] { display: none; }
.assistant-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.assistant-head .icon { color: var(--accent-strong); }
.assistant-head b { font-size: 14px; font-weight: 700; flex: 1; }
.assistant-head .icon-btn { width: 30px; height: 30px; border: 0; background: transparent; }
.assistant-body { padding: 16px; }
.bubble { background: var(--surface-3); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--accent-strong); font-size: 12px; font-weight: 600; }
.chip:hover { border-color: var(--line-strong); }
.assistant-input { display: flex; align-items: center; gap: 8px; margin-top: 14px; height: 44px; padding: 0 6px 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); }
/* min-width: 0 é essencial: sem ele o input não encolhe abaixo da largura
   intrínseca e empurra o botão de enviar para fora do painel no celular. */
.assistant-input input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: none; font-size: 13px; color: var(--text); }
.assistant-send { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 0; color: #fff; background: linear-gradient(135deg, var(--personal-accent), var(--personal-accent-ink)); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Personalização ---------- */
.perso-wrap { position: relative; }
.perso-menu { position: absolute; right: 0; top: 52px; z-index: 70; width: 300px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.perso-menu[hidden] { display: none; }
.perso-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 14px; }
.perso-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.perso-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.theme-btn { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 600; }
.theme-btn.is-active { border-color: var(--line-strong); background: rgba(var(--personal-accent-rgb),.12); color: var(--accent-strong); }
.swatches { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 18px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 0; box-shadow: 0 0 0 1px var(--line); transition: transform .16s ease; }
.swatch:hover { transform: scale(1.12); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px currentColor; }
.skin-list { display: grid; gap: 7px; }
.skin-option { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-align: left; }
.skin-option:hover { border-color: var(--line-strong); }
.skin-option.is-active { border-color: var(--line-strong); background: rgba(var(--personal-accent-rgb),.1); }
.skin-option b { display: block; font-size: 13px; font-weight: 600; }
.skin-option span { display: block; font-size: 12px; color: var(--muted-2); }
.skin-option .check { color: var(--accent-strong); opacity: 0; }
.skin-option.is-active .check { opacity: 1; }

/* ---------- Perfil ---------- */
.profile-hero { position: relative; overflow: hidden; }
.profile-cover { height: 148px; background: radial-gradient(circle at 78% 20%, rgba(255,255,255,.42), transparent 18%), linear-gradient(120deg, rgba(var(--personal-accent-rgb),.6), color-mix(in srgb, var(--personal-accent) 26%, #2563ff)); }
.profile-body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 26px 26px; }
.profile-id { display: flex; align-items: flex-end; gap: 18px; margin-top: -46px; }
.profile-id .avatar.lg { box-shadow: 0 0 0 5px var(--surface); }
.profile-id .eyebrow { display: flex; margin: 0 0 8px; color: var(--muted); }
.profile-id h1 { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-top: 10px; }
.profile-id .role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.dept-pill { display: inline-flex; height: 26px; align-items: center; padding: 0 11px; border-radius: 99px; background: rgba(var(--personal-accent-rgb),.13); color: var(--accent-strong); font-size: 12px; font-weight: 700; }
.ring { position: relative; flex: none; }
.ring .lv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .lv b { font-size: 28px; font-weight: 800; line-height: 1; }
.ring .lv small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 16px 18px; }
.stat b { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.stat small { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); margin-top: 2px; }
.stat-coins { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; }
.stat-coins .ravcoin { grid-row: 1 / 3; }
.stat-coins small { grid-column: 2; }
.profile-personalization { scroll-margin-top: 86px; background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-2) 82%, rgba(var(--personal-accent-rgb), .14))); }
.profile-personalization > .eyebrow { margin-bottom: 9px; }
.profile-personalization .sec { margin-bottom: 7px; }
.profile-personalization-copy { margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.dash { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.score-row { margin-bottom: 14px; }
.score-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.score-top .v { color: var(--muted); } .score-top .v b { color: var(--text); }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.badge { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgba(var(--personal-accent-rgb),.05); }
.badge.locked { border-color: var(--line); background: transparent; opacity: .8; }
.badge-ico { width: 42px; height: 42px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(var(--personal-accent-rgb),.16); color: var(--accent-strong); }
.badge.locked .badge-ico { background: var(--surface-3); color: var(--muted-2); }
.badge b { display: block; font-size: 13px; font-weight: 700; }
.badge small { display: block; font-size: 12px; color: var(--muted); }
.badge .progress { margin-top: 6px; height: 5px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 15px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--personal-accent); box-shadow: 0 0 0 3px rgba(var(--personal-accent-rgb),.18); }
.tl-item p { font-size: 13px; } .tl-item small { font-size: 12px; color: var(--muted-2); }
.ledger-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-2); }
.ledger-row:first-child { border-top: 0; }
.ledger-row .lbl { font-size: 13px; } .ledger-row .when { font-size: 12px; color: var(--muted-2); }
.delta { font-size: 13px; font-weight: 700; } .delta.up { color: #3f9d6b; } .delta.down { color: #c46b7c; }
.dept-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.dept-dot { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.center-note { text-align: center; font-size: 12px; color: var(--muted-2); }

/* ---------- Páginas e módulos da intranet ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 18px 0 26px; }
.page-heading-copy { max-width: 760px; }
.page-heading h1 { margin-top: 10px; font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -2px; font-weight: 850; }
.page-heading p { margin-top: 10px; max-width: 68ch; color: var(--muted); font-size: 15px; }
.page-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.directory-section { margin-top: 24px; }
.directory-heading { align-items: flex-end; }
.directory-heading h2 { margin-top: 8px; font-size: 24px; }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0; }
.list-search { min-width: min(100%, 410px); height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted-2); box-shadow: var(--shadow); }
.list-search:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(var(--personal-accent-rgb), .09); }
.list-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.filter-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.chip.is-active { border-color: var(--line-strong); background: rgba(var(--personal-accent-rgb), .13); }
.link-button { padding: 0; border: 0; background: transparent; }
.empty-state, .empty-search-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 210px; text-align: center; color: var(--muted); }
.empty-state h2, .empty-state h3, .empty-search-state h3 { color: var(--text); }
.empty-state-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: rgba(var(--personal-accent-rgb), .12); color: var(--accent-strong); }

/* Departamentos */
.department-featured { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; overflow: hidden; position: relative; }
.department-featured::after { content: ""; position: absolute; right: -70px; width: 240px; height: 240px; border: 1px solid rgba(var(--personal-accent-rgb),.12); border-radius: 50%; box-shadow: 0 0 0 32px rgba(var(--personal-accent-rgb),.04), 0 0 0 64px rgba(var(--personal-accent-rgb),.025); pointer-events: none; }
.department-featured-icon, .department-icon { display: grid; place-items: center; color: var(--accent-strong); background: rgba(var(--personal-accent-rgb),.13); }
.department-featured-icon { width: 68px; height: 68px; border-radius: 20px; }
.department-featured-icon .icon { width: 30px; height: 30px; }
.department-featured-copy { position: relative; z-index: 1; }
.department-featured-copy h2 { margin-top: 7px; font-size: 24px; }
.department-featured-copy > p { margin-top: 5px; color: var(--muted); }
.department-featured-actions { position: relative; z-index: 1; display: flex; gap: 9px; }
.department-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.department-meta span { display: inline-flex; align-items: center; gap: 6px; }
.department-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.department-card { min-height: 310px; display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease; }
.department-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.department-card-head, .community-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.department-icon { width: 48px; height: 48px; border-radius: 15px; }
.department-card-copy { margin-top: 18px; }
.department-card-copy h3, .community-card-copy h3 { font-size: 18px; }
.department-card-copy p, .community-card-copy p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.department-owner { display: flex; gap: 9px; align-items: center; margin-top: 16px; }
.department-owner small, .department-owner b { display: block; font-size: 12px; }
.department-owner small { color: var(--muted-2); }
.service-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.service-pill { padding: 5px 9px; border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 12px; }
.department-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; }
.directory-help { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(120deg, rgba(var(--personal-accent-rgb),.14), var(--surface) 62%); }
.directory-help h2 { margin-top: 7px; font-size: 23px; }
.directory-help p { margin-top: 5px; color: var(--muted); }
.tone-green { color: #3f8e6a; background: rgba(79,180,128,.14); }
.tone-blue { color: #4e8ed5; background: rgba(78,142,213,.14); }
.tone-pink { color: #c76d93; background: rgba(199,109,147,.14); }
.tone-gold { color: #9a7836; background: rgba(194,161,90,.16); }
.tone-graphite { color: #77778c; background: rgba(123,123,143,.14); }
.tone-lavender { color: #7765bd; background: rgba(139,126,201,.15); }

/* Comunidades */
.community-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.community-overview .stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.stat-icon { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--accent-strong); background: rgba(var(--personal-accent-rgb), .13); }
.community-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 20px; align-items: start; }
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.community-card { display: flex; flex-direction: column; min-height: 270px; }
.community-card.is-joined { border-color: rgba(var(--personal-accent-rgb), .28); }
.community-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--accent-strong); background: rgba(var(--personal-accent-rgb), .13); }
.community-card-copy { margin-top: 18px; }
.community-metrics { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.community-metrics span { display: inline-flex; align-items: center; gap: 5px; }
.community-card-actions { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 20px; }
.community-aside { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 20px; }
.person-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.person-row:first-child { border-top: 0; }
.person-copy { min-width: 0; flex: 1; }
.person-copy b, .person-copy small, .person-copy span { display: block; }
.person-copy b { font-size: 13px; }.person-copy small, .person-copy span { color: var(--muted); font-size: 12px; }
.community-callout { background: linear-gradient(145deg, rgba(var(--personal-accent-rgb),.17), var(--surface)); }
.community-callout-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 14px; background: var(--personal-accent); color: #fff; }
.community-callout h2 { margin-top: 8px; }.community-callout p { margin: 8px 0 18px; color: var(--muted); }

/* Reconhecimentos */
.recognition-heading { align-items: center; }
.recognition-campaign { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; background: linear-gradient(120deg, rgba(var(--personal-accent-rgb),.18), var(--surface) 62%); }
.campaign-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--personal-accent); color: #fff; }
.campaign-copy h2 { margin-top: 6px; font-size: 22px; }.campaign-copy p { color: var(--muted); margin-top: 4px; }
.recognition-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 20px; align-items: start; margin-top: 20px; }
/* auto-fit em vez de duas colunas fixas: com o nome, o setor, a empresa e a
   cidade no mesmo cartão, coluna estreita quebrava o nome em três linhas. O
   mínimo de 288px é o que mantém o cartão legível — sobra largura, entram três;
   falta, cai para uma. */
.celebration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 11px; }
.celebration-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); transition: border-color .18s ease, transform .18s ease; }
.celebration-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.celebration-card .btn { grid-column: 1 / -1; }.celebration-card.is-celebrated { opacity: .75; }
.celebration-kind { color: var(--accent-strong); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.celebration-copy h3 { font-size: 14px; }.celebration-copy p { color: var(--muted); font-size: 12px; }
/* Empresa e cidade/UF: uma linha discreta, que só existe quando o NBS informa. */
.celebration-place { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.celebration-place span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); font-size: 12px; font-weight: 600; }
.celebration-place .icon { width: 12px; height: 12px; opacity: .75; }

/* ---------- Aniversariantes do mês ---------- */
/* Agenda compacta: o dia à esquerda, quem comemora nele à direita. A altura é
   limitada porque um mês tem ~25 dias com festa — sem o limite, a lista
   empurraria o mural de reconhecimentos para fora da tela. A moldura é o que
   avisa que a lista rola: sem ela, o corte no último dia visível parece o fim
   do mês. */
.month-scroll { max-height: 322px; padding: 5px; border: 1px solid var(--line-2); border-radius: 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.month-days { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.month-day { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 12px; padding: 6px 8px; border-radius: 12px; }
.month-day:hover { background: var(--surface-2); }
.month-day-date { display: flex; flex-direction: column; align-items: center; padding: 4px 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.month-day-date b { font-size: 15px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.month-day-date small { color: var(--muted-2); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.month-day.is-today .month-day-date { border-color: var(--personal-accent); background: rgba(var(--personal-accent-rgb),.14); }
.month-day.is-today .month-day-date b, .month-day.is-today .month-day-date small { color: var(--accent-strong); }
.month-day-people { display: flex; flex-wrap: wrap; gap: 7px 16px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.month-day-people > li { min-width: 0; }
.month-person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.month-person-copy { min-width: 0; }
.month-person-copy b, .month-person-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month-person-copy b { font-size: 12.5px; }
.month-person-copy small { color: var(--muted-2); font-size: 11.5px; }
a.month-person:hover .month-person-copy b { color: var(--accent-strong); }
.month-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.month-card-actions .btn { white-space: nowrap; }
.month-empty { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.month-past { margin-top: 10px; border-top: 1px solid var(--line-2); }
.month-past summary { display: flex; align-items: center; gap: 8px; padding: 11px 2px 0; color: var(--muted); font-size: 12px; font-weight: 700; list-style: none; cursor: pointer; }
.month-past summary::-webkit-details-marker { display: none; }
.month-past summary:hover { color: var(--accent-strong); }
.month-past-count { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px; background: var(--surface-3); color: var(--muted-2); font-size: 12px; font-weight: 800; }
.month-past[open] .month-scroll { margin-top: 9px; }
.month-past[open] summary { color: var(--accent-strong); }

/* Um compositor único mantém a agenda limpa: pessoa, data e mensagem ficam
   juntas apenas quando alguém decide agendar. */
.birthday-wish-dialog { width: min(500px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.birthday-wish-dialog::backdrop { background: rgba(30,24,45,.46); backdrop-filter: blur(3px); }
.birthday-wish-form { position: relative; display: grid; gap: 16px; padding: 24px; }
.birthday-dialog-head { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 13px; padding-right: 28px; }
.birthday-dialog-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(145deg, rgba(229,72,77,.18), rgba(229,72,77,.08)); color: #e5484d; }
.birthday-dialog-icon .icon { width: 22px; height: 22px; }
.birthday-wish-form h2 { margin-top: 4px; font-size: 19px; }
.birthday-dialog-head p { margin-top: 5px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.birthday-person-field { padding-top: 2px; }
.birthday-delivery-note { display: flex; align-items: flex-start; gap: 9px; margin: -4px 0 0; padding: 10px 12px; border: 1px solid rgba(var(--personal-accent-rgb),.18); border-radius: 12px; background: rgba(var(--personal-accent-rgb),.07); color: var(--muted); font-size: 12px; line-height: 1.45; }
.birthday-delivery-note[hidden] { display: none; }
.birthday-delivery-note .icon { flex: none; margin-top: 1px; color: var(--accent-strong); }
.birthday-delivery-note b { color: var(--text); }
.birthday-wish-form textarea { resize: vertical; min-height: 118px; }
.birthday-dialog-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted-2); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.birthday-dialog-close:hover { background: var(--surface-3); color: var(--text); }
.birthday-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.birthday-dialog-footer > span { color: var(--muted-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.birthday-dialog-footer > div { display: flex; gap: 8px; }

@media (max-width: 620px) {
  .month-card-actions { align-items: flex-end; flex-direction: column; }
  .birthday-dialog-footer { align-items: stretch; flex-direction: column; }
  .birthday-dialog-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
}

.recognition-post { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line-2); }.recognition-post:first-child { border-top: 0; }
.recognition-post-body { flex: 1; }.recognition-post-body > p { font-size: 13px; }.recognition-post blockquote { margin: 8px 0; padding: 11px 13px; border-left: 2px solid var(--personal-accent); border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.recognition-meta { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12px; }
.recognition-meta > span:first-child { margin-right: auto; }
.recognition-applause { border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.recognition-applause.is-on, .recognition-applause.is-active { color: var(--accent-strong); }
.recognition-delete { border: 0; background: transparent; color: var(--muted-2); font-size: 12px; cursor: pointer; text-decoration: underline; }
.recognition-delete:hover { color: #e5484d; }
.recognition-aside { position: sticky; top: 86px; }

/* ---------- Composer de reconhecimento ---------- */
.recognition-composer { padding: 0; overflow: hidden; }
.composer-head { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); background: linear-gradient(125deg, rgba(var(--personal-accent-rgb),.16), transparent 78%); }
.composer-badge { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--personal-accent); color: var(--personal-accent-ink); box-shadow: 0 8px 20px rgba(var(--personal-accent-rgb),.28); }
.composer-badge .icon { width: 22px; height: 22px; }
.recognition-composer h2 { margin-top: 3px; font-size: 20px; line-height: 1.2; }
.composer-lead { margin: 0; padding: 15px 20px 0; color: var(--muted); font-size: 12.5px; }
.recognition-composer .stack-form { padding: 15px 20px 20px; }
.recognition-composer .form-hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.recognition-composer .form-hint b { flex: none; color: var(--muted-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.recognition-composer .form-hint b.is-near { color: var(--accent-strong); }

/* ---------- Seletor de pessoas com busca ---------- */
.people-field > label { color: var(--muted); font-size: 12px; font-weight: 650; }
.people-picker { position: relative; display: grid; gap: 7px; }
.people-picker-control { position: relative; display: flex; align-items: center; }
.people-picker-ic { position: absolute; left: 13px; display: inline-flex; color: var(--muted-2); pointer-events: none; }
/* Prefixado por .form-field de propósito: sem isso a regra genérica
   `.form-field input` (mesmo peso, definida antes) vence e o campo perde o
   recuo — o ícone da lupa fica em cima da primeira letra. */
.form-field .people-picker-control input { -webkit-appearance: none; appearance: none; width: 100%; min-height: 46px; padding: 12px 42px 12px 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; outline: 0; transition: border-color .18s ease, box-shadow .18s ease; }
.form-field .people-picker-control input:focus { border-color: rgba(var(--personal-accent-rgb), .55); box-shadow: 0 0 0 3px rgba(var(--personal-accent-rgb), .1); }
.people-picker-clear { position: absolute; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted-2); cursor: pointer; }
.people-picker-clear:hover { background: var(--surface-3); color: var(--text); }
.people-picker-panel { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); }
/* A rolagem é da lista, não do painel: assim o rodapé com "mostrando 30 de
   589" fica sempre visível, em vez de sumir no fim do rolo. */
.people-picker-list { max-height: 268px; overflow-y: auto; }
.people-picker-more { margin: 4px 2px 2px; padding: 7px 8px 2px; border-top: 1px solid var(--line-2); color: var(--muted-2); font-size: 12px; }
.people-option { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; padding: 8px 9px; border-radius: 10px; cursor: pointer; }
.people-option.is-active, .people-option:hover { background: rgba(var(--personal-accent-rgb), .12); }
.people-option-copy { display: grid; gap: 1px; min-width: 0; }
.people-option-copy b { font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-option-copy small { color: var(--muted-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-picker-hint { margin: 0; color: var(--muted-2); font-size: 12px; }

/* Menções (@fulano) — static/js/mentions.js.
   O menu mora no <body> com position:fixed (como a barra do texto rico): dentro
   do compositor ele seria recortado pelo overflow do cartão. As opções reusam
   .people-option, que já é a linha "avatar + nome + cargo" do diretório. */
.mention-panel { position: fixed; z-index: 60; width: min(320px, calc(100vw - 16px)); padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); }
.mention-panel[hidden] { display: none; }
.mention-list { max-height: 244px; overflow-y: auto; }
.mention-option { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; padding: 8px 9px; border-radius: 10px; cursor: pointer; }
.mention-option.is-active, .mention-option:hover { background: rgba(var(--personal-accent-rgb), .12); }
.mention-option-copy { display: grid; gap: 1px; min-width: 0; }
.mention-option-copy b { font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-option-copy small { color: var(--muted-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* O "@Nome" já publicado. Peso em vez de cor de link: numa frase com três
   menções, três trechos azuis viram uma linha piscando. */
.social-mention { color: var(--personal-accent); font-weight: 650; text-decoration: none; border-radius: 4px; }
.social-mention:hover, .social-mention:focus-visible { text-decoration: underline; }
.people-picker-chosen { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid rgba(var(--personal-accent-rgb), .3); border-radius: 11px; background: rgba(var(--personal-accent-rgb), .09); color: var(--text); font-size: 12px; font-weight: 600; }
.people-chosen-mark { display: inline-grid; place-items: center; width: 17px; height: 17px; flex: none; border-radius: 50%; background: var(--personal-accent); color: var(--personal-accent-ink); font-size: 11.5px; font-weight: 800; }
.stack-form { display: grid; gap: 14px; }.form-field { display: grid; gap: 7px; }.form-field > span { color: var(--muted); font-size: 12px; font-weight: 650; }
/* appearance: none remove o visual nativo do iOS (seta dupla no select, sombra
   interna no textarea), que fazia o formulário parecer sem estilo no celular. */
.form-field select, .form-field textarea, .form-field input { -webkit-appearance: none; appearance: none; width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; resize: vertical; outline: 0; transition: border-color .18s ease, box-shadow .18s ease; }
.form-field textarea { min-height: 118px; line-height: 1.55; }
.form-field select { padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%238a94a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 13px 8px; }
.form-field select:focus, .form-field textarea:focus, .form-field input:focus { border-color: rgba(var(--personal-accent-rgb), .55); box-shadow: 0 0 0 3px rgba(var(--personal-accent-rgb), .1); }
.form-field select::-ms-expand { display: none; }

/* A lista que o <select> abre é desenhada pelo navegador, e ele tira o fundo
   dela do background-color do campo. Onde o campo é transparente — o filtro do
   admin é — a lista sai branca e herda `color: var(--text)`, que no tema escuro
   é quase branco: texto branco sobre branco, ilegível. Pintar o <option>
   resolve para qualquer select do app, transparente ou não. */
select option,
select optgroup {
  background-color: var(--surface);
  color: var(--text);
}
.form-field textarea::placeholder, .form-field input::placeholder { color: var(--muted-2); }
.form-hint { color: var(--muted-2); font-size: 12px; }
.recognition-guide, .boutique-rules { display: flex; align-items: flex-start; gap: 12px; }.recognition-guide h3, .boutique-rules h3 { font-size: 14px; }.recognition-guide p, .boutique-rules p { margin-top: 4px; color: var(--muted); font-size: 12px; }

/* Benefícios, ranking e boutique */
.benefit-summary { display: grid; grid-template-columns: .8fr .8fr 1.4fr; gap: 14px; }
.wallet-card, .points-card { display: flex; align-items: center; gap: 14px; }.wallet-card .badge-ic, .points-card .badge-ic { width: 50px; height: 50px; border-radius: 15px; }
.wallet-card small, .points-card small, .season-card small { color: var(--muted-2); }.wallet-card b, .points-card b { display: block; font-size: 27px; line-height: 1.1; }.wallet-card p, .points-card p { color: var(--muted); font-size: 12px; }
.season-card .sec { margin-bottom: 6px; }.season-card .progress { margin: 9px 0 6px; }
.benefits-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 20px; align-items: start; margin-top: 20px; }
.reward-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.reward-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.reward-visual { height: 118px; position: relative; display: flex; align-items: center; justify-content: center; }
.reward-tag { position: absolute; left: 12px; top: 12px; padding: 5px 9px; border-radius: 99px; background: rgba(0,0,0,.46); color: #fff; font-size: 11.5px; font-weight: 700; }
.reward-icon { color: rgba(255,255,255,.9); }.reward-icon .icon { width: 34px; height: 34px; }
.reward-body { padding: 15px; }.reward-body h3 { font-size: 16px; }.reward-body > p { margin-top: 5px; min-height: 38px; color: var(--muted); font-size: 12px; }
.reward-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }.reward-cost { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; }
.benefits-aside { position: sticky; top: 86px; }.ranking-list { list-style: none; margin: 0; padding: 0; }.ranking-item { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-top: 1px solid var(--line-2); }.ranking-item:first-child { border-top: 0; }.ranking-item.is-current { margin: 4px -10px; padding: 11px 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(var(--personal-accent-rgb),.08); }
.ranking-position { width: 26px; font-weight: 800; color: var(--muted-2); }.ranking-person { min-width: 0; flex: 1; }.ranking-person b, .ranking-person small { display: block; }.ranking-person b { font-size: 12px; }.ranking-person small { color: var(--muted); font-size: 11.5px; }
.ph-mentor { background: linear-gradient(135deg, #8d7eac, #d2bfd8); }.ph-playlist { background: linear-gradient(135deg, #4f8fa4, #b1d4cf); }

/* Acesso Rápido, conteúdo institucional e enquete */
.service-search { margin: 16px 0; }.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.service-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
/* Um brilho no canto que só acende sob o mouse: dá vida ao grid sem virar um
   tabuleiro colorido quando parado. */
.service-card::after { content: ""; position: absolute; right: -36px; top: -36px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--personal-accent-rgb), .16), transparent 68%); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.service-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.service-card:hover::after { opacity: 1; }
.service-card h3 { font-size: 14px; }.service-card p { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.service-card .tile-ic { transition: transform .18s ease; }.service-card:hover .tile-ic { transform: scale(1.07); }
.service-arrow { color: var(--muted-2); transition: transform .18s ease, color .18s ease; }
.service-card:hover .service-arrow { transform: translateX(3px); color: var(--accent-strong); }
.service-card-connect { border-color: rgba(var(--personal-accent-rgb), .2); background: linear-gradient(135deg, rgba(var(--personal-accent-rgb), .11), var(--surface)); }
.service-card-connect .tile-ic { color: var(--accent-strong); background: rgba(var(--personal-accent-rgb), .14); }
.service-connect-label { padding: 5px 9px; border-radius: 99px; color: var(--accent-strong); background: rgba(var(--personal-accent-rgb), .12); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
/* Sistemas de fora: o rótulo "Abrir" avisa que o clique troca de aplicação,
   antes de o navegador abrir a aba nova. */
.systems-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 12px; }
.system-card { position: relative; }
.system-open { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; border: 1px solid rgba(var(--personal-accent-rgb), .22); background: rgba(var(--personal-accent-rgb), .1); color: var(--accent-strong); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.system-card:hover .system-open { background: var(--personal-accent); border-color: var(--personal-accent); color: #fff; }

/* ---------- Nossa História ---------- */
.history-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px; background: linear-gradient(135deg, rgba(var(--personal-accent-rgb),.16), var(--surface) 58%); }
.history-hero-glow { position: absolute; inset: 0; pointer-events: none; }
.history-hero-glow i { position: absolute; border-radius: 50%; border: 1px solid rgba(var(--personal-accent-rgb),.16); }
.history-hero-glow i:first-child { right: 6%; top: -140px; width: 340px; height: 340px; }
.history-hero-glow i:last-child { right: 14%; top: -60px; width: 190px; height: 190px; }
.history-hero-copy { position: relative; z-index: 1; max-width: 62ch; }
.history-hero-copy h1 { margin-top: 9px; font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -1.6px; }
.history-hero-copy > p { margin: 12px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.history-hero-mark { position: relative; z-index: 1; flex: none; color: rgba(var(--personal-accent-rgb),.14); font-size: clamp(90px, 12vw, 190px); font-weight: 900; line-height: .85; letter-spacing: -8px; }

.history-pillars, .history-values { margin-top: 26px; }
.history-pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 14px; }
.history-pillar h3 { margin: 14px 0 6px; font-size: 15px; font-weight: 700; }
.history-pillar p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.history-value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 14px; }
/* O card do valor é um convite (link para o feed com o valor anexado), igual
   às direções da seta: mesmo hover, mesma barra de acento no topo e o CTA
   alinhado no pé para os quatro cards terminarem na mesma linha. */
.history-value { position: relative; display: flex; flex-direction: column; overflow: hidden; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.history-value:focus-visible { outline: 2px solid var(--personal-accent); outline-offset: 3px; }
.history-value::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #06a8e6, #0156a6); opacity: 0; transition: opacity .2s ease; }
.history-value:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.history-value:hover::after { opacity: 1; }
.history-value-index { position: absolute; right: 14px; top: 6px; color: rgba(var(--personal-accent-rgb),.16); font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -2px; }
.history-value h3 { position: relative; font-size: 15px; font-weight: 700; }
.history-value p { position: relative; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.history-value-cta { position: relative; display: inline-flex; align-items: flex-start; gap: 7px; margin-top: auto; padding-top: 13px; color: var(--muted-2); font-size: 12px; font-weight: 750; line-height: 1.4; transition: color .2s ease; }
.history-value-cta .icon { flex: none; margin-top: -1px; transition: color .2s ease; }
.history-value:hover .history-value-cta { color: var(--accent-strong); }
:root[data-motion="reduzida"] .history-value-cta,
:root[data-motion="reduzida"] .history-value-cta .icon { transition: none; }

/* A página reúne as três origens da intranet antiga em capítulos ancorados. */
.history-chapters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.history-chapters a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; transition: border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.history-chapters a b { font-size: 11.5px; font-weight: 900; letter-spacing: .08em; color: var(--accent-strong); }
.history-chapters a:hover { border-color: var(--line-strong); color: var(--accent-strong); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--personal-accent-rgb), .18); }
.history-story, .history-pillars, .history-values, .history-philosophy { scroll-margin-top: 90px; }

/* Capítulo 1 — o texto da história ao lado do vídeo "Linha do Tempo". */
.history-story { margin-top: 26px; }
.history-story-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 16px; align-items: stretch; }
.history-story-text { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.history-story-text p { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 68ch; }
.history-story-text .history-story-closing { color: var(--accent-strong); font-size: 15px; font-weight: 700; letter-spacing: -.1px; }
.history-video { margin: 0; display: flex; flex-direction: column; overflow: hidden; }
/* Sem min-height: com aspect-ratio ele viraria largura mínima (426px) e
   estouraria a tela no celular. O flex:1 já estica o quadro até o texto. */
.history-video-frame { position: relative; flex: 1; aspect-ratio: 16 / 9; background: #000; }
.history-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.history-video figcaption { display: flex; align-items: center; gap: 8px; padding: 13px 18px; color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* Capítulo 3 — Filosofia de Movimento. A seta é a da marca, redesenhada em
   SVG no template com os três tons do Icone.ico; aponta para a direita por
   padrão e cada card a gira via --arrow-rotation. */
/* Cores medidas no Icone.ico. Aqui elas são a marca, não o accent do usuário:
   a seta do logotipo é sempre azul, em qualquer tema ou cor de destaque. */
.history-seta { display: block; width: 100%; height: 100%; overflow: visible; }
.history-seta .seta-cyan { fill: #06a8e6; }
.history-seta .seta-mid { fill: #0498d6; }
.history-seta .seta-navy { fill: #0156a6; }
/* No escuro o marinho encostaria no fundo: os três tons sobem junto, mantendo
   o mesmo degrau entre eles. */
:root[data-theme="dark"] .history-seta .seta-cyan { fill: #2dbdf7; }
:root[data-theme="dark"] .history-seta .seta-mid { fill: #1f9ce8; }
:root[data-theme="dark"] .history-seta .seta-navy { fill: #2a6fc4; }

.history-philosophy { margin-top: 26px; }
.history-philosophy-lead { font-size: 17px; font-weight: 700; letter-spacing: -.3px; line-height: 1.45; }
/* Texto e seta dividem o card: a coluna de texto tem largura de leitura e a
   seta ocupa o resto, sem vão morto no meio. */
.history-manifesto { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 44px; padding: 32px 40px 32px 30px; overflow: hidden; background: radial-gradient(620px 320px at 92% 26%, rgba(var(--personal-accent-rgb), .16), transparent 68%), var(--surface); }
.history-manifesto-copy { max-width: 66ch; }
.history-manifesto-copy p + p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.history-manifesto-arrow { width: clamp(140px, 19vw, 235px); aspect-ratio: 1; filter: drop-shadow(0 18px 34px rgba(1, 86, 166, .26)); }

/* Flex e não grade: as cinco direções ficam lado a lado enquanto couberem, e a
   que sobrar numa tela mais estreita estica até fechar a linha. Em grade, a
   quinta pousaria sozinha numa coluna, com o buraco das outras quatro ao lado. */
.history-direction-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
/* O card é um <a> (leva ao feed com o texto da seta pronto): sem o color:
   inherit ele herdaria o azul de link e o texto institucional mudaria de cor. */
.history-direction { position: relative; display: flex; flex: 1 1 228px; flex-direction: column; overflow: hidden; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.history-direction:focus-visible { outline: 2px solid var(--personal-accent); outline-offset: 3px; }
.history-direction::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #06a8e6, #0156a6); opacity: 0; transition: opacity .2s ease; }
.history-direction:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.history-direction:hover::after { opacity: 1; }
/* A seta mora num tile quadrado (mesmo formato do .tile-ic do resto da
   intranet) e gira dentro dele para a direção que o card descreve. */
.history-direction-arrow { display: flex; width: 60px; height: 60px; align-items: center; justify-content: center; border-radius: 17px; background: linear-gradient(150deg, rgba(6, 168, 230, .13), rgba(1, 86, 166, .13)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
:root[data-theme="dark"] .history-direction-arrow { background: linear-gradient(150deg, rgba(45, 189, 247, .16), rgba(42, 111, 196, .16)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.history-direction-arrow .history-seta { width: 40px; height: 40px; transform: rotate(var(--arrow-rotation, 0deg)); transition: transform .3s cubic-bezier(.34, 1.4, .64, 1); }
/* No hover a seta anda um passo na direção para a qual aponta. */
.history-direction:hover .history-direction-arrow .history-seta { transform: rotate(var(--arrow-rotation, 0deg)) translateX(6px); }
/* Os cards da linha têm a mesma altura e textos de tamanhos diferentes (a
   diagonal ainda traz a nota em itálico): a cópia cresce e o convite desce até
   a base, senão cada um pousaria numa altura distinta. */
.history-direction-copy { display: flex; flex: 1; flex-direction: column; margin-top: 15px; }
.history-direction h3 { font-size: 15px; font-weight: 700; }
.history-direction-meaning { margin-top: 3px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.history-direction p:not(.history-direction-meaning) { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.65; }
/* O convite só ganha cor quando o card é apontado: em repouso ele não deve
   competir com o texto da direção. A seta acompanha o movimento da seta grande. */
/* align-items: flex-start porque o convite quebra em duas linhas nos cards
   estreitos: centralizado, o ícone pousava entre as linhas. */
.history-direction-cta { display: inline-flex; align-items: flex-start; gap: 7px; margin-top: auto; padding-top: 13px; color: var(--muted-2); font-size: 12px; font-weight: 750; line-height: 1.4; transition: color .2s ease; }
/* O ícone de republicar abre o convite e não escorrega no hover: deslizar um
   laço de setas para o lado lê como erro de renderização, não como movimento. */
.history-direction-cta .icon { flex: none; margin-top: -1px; transition: color .2s ease; }
.history-direction:hover .history-direction-cta { color: var(--accent-strong); }
:root[data-motion="reduzida"] .history-direction-cta,
:root[data-motion="reduzida"] .history-direction-cta .icon { transition: none; }

/* Fecho: a citação "Vida em Movimento" com a seta gigante de marca-d'água na
   posição nova (diagonal) e o convite para o PDF completo. */
.history-philosophy-quote { position: relative; overflow: hidden; margin-top: 16px; padding: 32px 36px; background: linear-gradient(135deg, rgba(var(--personal-accent-rgb), .15), var(--surface) 62%); }
.history-quote-watermark { position: absolute; right: -26px; bottom: -40px; width: 240px; aspect-ratio: 1; opacity: .14; pointer-events: none; }
.history-quote-watermark .history-seta { transform: rotate(-45deg); }
.history-philosophy-quote blockquote { position: relative; margin: 0; }
.history-philosophy-quote blockquote p { font-size: 19px; font-weight: 700; letter-spacing: -.4px; line-height: 1.5; max-width: 62ch; }
.history-philosophy-quote blockquote footer { margin-top: 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); }
.history-quote-cta { position: relative; margin-top: 20px; }
.history-quote-cta-tag { padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .22); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; }

/* Perguntas frequentes: cada assunto é um card num grid que se reequilibra
   sozinho. A versão em duas colunas de CSS deixava uma coluna curta e outra
   longa, porque um grupo não pode ser partido no meio. */
.faq-section { margin-top: 28px; }
/* O tom de cada assunto vira variável aqui (os mesmos pares das classes
   .tone-*): --tone tinge fundos, fios e bolinhas; --tone-ink é a versão
   legível para texto. Chip, card, seta e resposta compartilham a mesma cor
   sem que cada um precise conhecer a paleta. */
.faq-section [data-tone="green"] { --tone: 79,180,128; --tone-ink: #3f8e6a; }
.faq-section [data-tone="blue"] { --tone: 78,142,213; --tone-ink: #4e8ed5; }
.faq-section [data-tone="pink"] { --tone: 199,109,147; --tone-ink: #c76d93; }
.faq-section [data-tone="gold"] { --tone: 194,161,90; --tone-ink: #9a7836; }
.faq-section [data-tone="graphite"] { --tone: 123,123,143; --tone-ink: #77778c; }
.faq-section [data-tone="lavender"] { --tone: 139,126,201; --tone-ink: #7765bd; }
/* No escuro o tom puro afunda no fundo: clareia só a tinta do texto. */
:root[data-theme="dark"] .faq-section [data-tone] { --tone-ink: color-mix(in srgb, rgb(var(--tone)) 72%, #e8f1fb); }

.faq-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 4px; }
.faq-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-filters .chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.faq-filters .chip:hover { transform: translateY(-1px); border-color: rgba(var(--tone, var(--personal-accent-rgb)), .45); }
/* A bolinha é a legenda da cor: liga o chip ao card do assunto logo abaixo. */
.faq-filters .chip[data-tone]::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--tone)); box-shadow: 0 0 0 3px rgba(var(--tone), .16); }
/* O número dentro do chip fica discreto: informa sem competir com o rótulo. */
.faq-filters .chip b { padding: 0 6px; border-radius: 99px; background: rgba(var(--tone, var(--personal-accent-rgb)), .13); color: var(--tone-ink, var(--accent-strong)); font-size: 11.5px; font-weight: 800; }
.faq-filters .chip.is-active { border-color: rgba(var(--tone, var(--personal-accent-rgb)), .5); background: rgba(var(--tone, var(--personal-accent-rgb)), .13); color: var(--tone-ink, var(--accent-strong)); }
.faq-filters .chip.is-active b { background: var(--surface); }
.faq-count { color: var(--muted-2); font-size: 12px; font-weight: 600; }

/* auto-fill (e não auto-fit) mantém as colunas vazias: com um assunto só
   filtrado, o card guarda a largura de coluna em vez de esticar pela tela
   inteira e jogar a seta a meio metro da pergunta. */
.faq-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 14px; align-items: start; }
/* O fio de cor no topo é a assinatura do assunto: o olho acha o card pela cor
   antes de ler o título, no mesmo código de cores dos chips do filtro. */
.faq-card { position: relative; overflow: hidden; padding: 18px 14px 10px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.faq-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, rgba(var(--tone), .8), rgba(var(--tone), .05)); }
.faq-card:hover { border-color: rgba(var(--tone), .38); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.faq-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; padding: 0 4px 13px; border-bottom: 1px solid var(--line-2); }
.faq-card-head h3 { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; letter-spacing: -.2px; }
/* Sem background aqui: quem pinta é a classe .tone-* do assunto. */
.faq-card-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; box-shadow: inset 0 0 0 1px rgba(var(--tone), .2); transition: transform .18s ease; }
.faq-card-ic .icon { width: 19px; height: 19px; }
.faq-card:hover .faq-card-ic { transform: scale(1.06); }
.faq-card-count { flex: none; min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 7px; border-radius: 99px; background: rgba(var(--tone), .13); color: var(--tone-ink); font-size: 11.5px; font-weight: 800; }
.faq-list { display: flex; flex-direction: column; }

.faq-review { display: flex; align-items: flex-start; gap: 7px; margin-top: 11px; padding: 9px 11px; border-radius: 10px; background: rgba(194,161,90,.1); color: var(--muted-2); font-size: 12px; }
.faq-review .icon { flex: none; margin-top: 1px; width: 13px; height: 13px; color: #9a7836; }

/* Com a busca ativa, o acordeão sai do caminho: o que sobrou já vem aberto,
   porque quem buscou uma palavra quer ler a resposta, não abrir mais um clique. */
.faq-groups.is-searching .faq-a { display: block; }
.faq-groups.is-searching .faq-q { cursor: default; }
.faq-groups.is-searching .faq-q .chev { display: none; }

/* Página de departamento e busca */
.breadcrumbs { display: flex; align-items: center; gap: 7px; margin: 12px 0 18px; color: var(--muted); font-size: 12px; }.breadcrumbs a:hover { color: var(--accent-strong); }
.department-page-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 34px; background: linear-gradient(120deg, rgba(var(--personal-accent-rgb),.18), var(--surface) 55%); }.department-page-hero::after { content: ""; position: absolute; right: 8%; top: -120px; width: 310px; height: 310px; border-radius: 50%; border: 1px solid rgba(var(--personal-accent-rgb),.14); box-shadow: 0 0 0 46px rgba(var(--personal-accent-rgb),.04); }.department-page-hero > * { position: relative; z-index: 1; }.department-page-copy .department-icon { margin-bottom: 18px; }.department-page-copy h1 { margin-top: 8px; font-size: clamp(34px,4vw,50px); letter-spacing: -1.8px; }.department-page-copy > p { margin-top: 8px; color: var(--muted); }
.department-page-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 20px; margin-top: 20px; align-items: start; }.action-list { display: grid; gap: 9px; }.action-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); color: var(--text); text-align: left; }.action-row > span:nth-child(2) { flex: 1; }.action-row b, .action-row small { display: block; }.action-row b { font-size: 13px; }.action-row small { color: var(--muted); font-size: 12px; }.action-row:hover { border-color: var(--line-strong); }/* Eyebrow e avatar são inline-flex; lado a lado, o avatar estourava a borda do
   card. Em flex (nível de bloco), cada um ocupa a própria linha e o `auto`
   passa a centralizar o avatar de verdade. */
.contact-card { text-align: center; }.contact-card .eyebrow { display: flex; }.contact-card .avatar { display: flex; margin: 18px auto 10px; }.contact-card p { color: var(--muted); margin: 3px 0 16px; }.safety-section, .page-builder-preview { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; }.safety-section h2, .page-builder-preview h2 { margin-top: 6px; font-size: 23px; }.safety-section p, .page-builder-preview p { margin-top: 5px; color: var(--muted); }.safety-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.search-results { display: grid; gap: 10px; }.search-result { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 15px; }.search-result:hover { border-color: var(--line-strong); }.search-result small, .search-result b, .search-result p { display: block; }.search-result small { color: var(--accent-strong); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.search-result b { margin-top: 2px; font-size: 14px; }.search-result p { margin-top: 2px; color: var(--muted); font-size: 12px; }

/* Interações, assistente e mensagens */
.feed-action { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: inherit; }.feed-action.is-on { color: var(--accent-strong); }
/* O painel é uma coluna: cabeçalho e composer fixos, mensagens rolando no meio.
   Antes as mensagens tinham altura fixa (300px) e o composer podia sair do
   painel em telas baixas ou com o teclado aberto. */
.assistant-panel { display: flex; flex-direction: column; max-height: min(620px, calc(100dvh - 40px)); }
.assistant-head, .assistant-input, .assistant-panel .chips { flex: 0 0 auto; }
.assistant-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.assistant-messages { flex: 1 1 auto; min-height: 0; max-height: none; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; }.bubble-user { align-self: flex-end; max-width: 88%; color: #fff; background: linear-gradient(135deg, var(--personal-accent), var(--personal-accent-ink)); }.bubble-source { display: block; margin-top: 7px; color: var(--muted-2); font-size: 11.5px; }.bubble-typing { width: 54px; color: var(--muted-2); letter-spacing: .18em; }
.toast-stack { position: fixed; right: 24px; top: 84px; z-index: 100; width: min(360px, calc(100vw - 32px)); display: grid; gap: 9px; pointer-events: none; }.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); animation: toast-in .22s ease both; }.toast::before { content: ""; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--personal-accent); box-shadow: 0 0 10px rgba(var(--personal-accent-rgb),.6); }.toast.is-error::before { background: #e86b7d; }.toast p { flex: 1; font-size: 12px; }.toast button { border: 0; background: transparent; color: var(--muted); }.toast.is-leaving { opacity: 0; transform: translateY(-5px); transition: .18s ease; }@keyframes toast-in { from { opacity: 0; transform: translateY(-7px); } }
/* Confirmação de ação destrutiva (window.RavieraConfirm). O aviso é sóbrio: o
   vermelho fica no botão que executa, não na caixa inteira, senão a cor perde a
   função de apontar onde está o risco. */
.confirm-dialog { width: min(420px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.confirm-dialog::backdrop { background: rgba(30,24,45,.44); backdrop-filter: blur(3px); }
.confirm-dialog form { display: grid; gap: 10px; }
.confirm-dialog-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--personal-accent-ink); background: rgba(var(--personal-accent-rgb),.13); font-size: 15px; font-weight: 800; }
.confirm-dialog.is-danger .confirm-dialog-mark { color: #c7465b; background: rgba(199,70,91,.12); }
.confirm-dialog h2 { margin: 2px 0 0; font-size: 17px; }
.confirm-dialog p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.confirm-dialog blockquote { margin: 0; padding: 10px 12px; border-left: 2px solid var(--line-strong); border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--muted); font-size: 12px; line-height: 1.5; }
.confirm-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.confirm-dialog-actions button { min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.confirm-dialog-actions .confirm-cancel:hover { border-color: var(--line-strong); background: var(--surface-2); }
.confirm-dialog-actions .confirm-accept { border-color: transparent; color: #fff; background: var(--personal-accent-ink); }
.confirm-dialog.is-danger .confirm-accept { background: #c7465b; }
.confirm-dialog-actions .confirm-accept:hover { filter: brightness(1.07); }

.row-top > *, .row-mid > *, .row-bot > *, .tiles > *, .dash > *, .community-layout > *, .recognition-layout > *, .benefits-layout > *, .faq-groups > *, .department-page-grid > * { min-width: 0; }

/* A atmosfera e o enfeite da temporada mudam o clima sem apagar o tema
   escolhido. Ficam na .season-decor (seasons.css), uma camada só para eles. */

/* ---------- Placeholders de imagem ---------- */
.ph { background-size: cover; background-position: center; }
.ph-villa { background: radial-gradient(120% 130% at 78% 12%, #e6d3b6 0%, transparent 46%), linear-gradient(120deg, #6a6193, #9a86a3 45%, #d9b48f); }
.ph-villa2 { background: radial-gradient(120% 120% at 30% 10%, #dfe7ef 0%, transparent 42%), linear-gradient(120deg, #9fb0c9, #cdb8c9 60%, #e7d9c6); }
.ph-lunch { background: linear-gradient(135deg, #c9a98a, #e6d3bf); }
.ph-coffee { background: linear-gradient(135deg, #b79b86, #dcc6b2); }
.ph-off { background: linear-gradient(135deg, #8fb0c4, #cfe0e6); }

/* ---------- Erro ---------- */
.error-shell { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.error-code { font-size: clamp(80px, 16vw, 150px); font-weight: 900; letter-spacing: -6px; color: var(--surface-3); line-height: 1; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .row-top { grid-template-columns: 1fr 1fr; } .row-top .hero { grid-column: 1 / -1; }
  .row-bot { grid-template-columns: 1fr 1fr; } .tiles { grid-template-columns: repeat(3, 1fr); }
  .home-top { grid-template-columns: 1fr 1fr; }.home-top .home-hero { grid-column: 1 / -1; }
  .home-mid { grid-template-columns: 1fr 1fr; }.home-now { grid-column: 1 / -1; }
  .home-quickbar { grid-template-columns: repeat(3,minmax(0,1fr)); }.quickbar-title { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
}
@media (max-width: 1080px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .content { margin-left: 0; } .hamburger { display: inline-flex; }
  .topbar-assistant { display: inline-flex; }.assistant-launcher { display: none; }
  .main { padding: 18px 16px 80px; } .topbar { padding: 13px 16px; }
  .row-mid, .dash, .community-layout, .recognition-layout, .benefits-layout, .department-page-grid { grid-template-columns: 1fr; } .search { max-width: none; }
  .home-top, .home-mid { grid-template-columns: 1fr; }.home-top .home-hero, .home-now { grid-column: auto; }
  .home-quickbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .community-aside, .recognition-aside, .benefits-aside { position: static; }
  .department-grid, .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .topbar { gap: 8px; }.topbar-right { gap: 6px; }.topbar-right > .icon-btn:nth-of-type(2), .topbar-right > .icon-btn:nth-of-type(3), .org-switcher { display: none; }
  .search { order: 3; width: 100%; flex-basis: 100%; height: 40px; }.topbar { flex-wrap: wrap; }.topbar-left { flex: 1; }
  .assistant { right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); }.assistant-launcher { width: 48px; padding: 0; justify-content: center; font-size: 0; }
  /* Folha ancorada acima do lançador: a altura acompanha a viewport visível
     (dvh), então o composer não fica atrás do teclado do celular. */
  .assistant-panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; max-height: min(560px, calc(100dvh - 130px)); }
  .assistant-body { padding: 13px; }
  /* Sugestões em linha rolável: empilhadas, comiam metade da tela. A máscara
     à direita indica que há mais opções para arrastar. */
  .assistant-panel .chips { flex-wrap: nowrap; overflow-x: auto; margin-top: 11px; padding-bottom: 3px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .assistant-panel .chips::-webkit-scrollbar { display: none; }
  .assistant-panel .chip { flex: 0 0 auto; }
  /* 16px evita o zoom automático do iOS ao focar o campo. */
  .assistant-input { margin-top: 11px; }.assistant-input input { font-size: 16px; }
  .page-heading { align-items: flex-start; flex-direction: column; }.page-heading-actions { justify-content: flex-start; }.page-heading h1 { letter-spacing: -1.4px; }
  .department-featured { grid-template-columns: auto 1fr; }.department-featured-actions { grid-column: 1/-1; }.department-featured-actions .btn { flex: 1; }
  .directory-toolbar { align-items: stretch; flex-direction: column; }.filter-pills { justify-content: flex-start; }
  .department-grid, .community-grid, .service-grid, .reward-grid, .faq-groups { grid-template-columns: 1fr; }
  .benefit-summary { grid-template-columns: 1fr 1fr; }.season-card { grid-column: 1/-1; }
  .department-page-hero, .safety-section, .page-builder-preview { align-items: flex-start; flex-direction: column; }.safety-links { justify-content: flex-start; }
  /* A terceira coluna (selo de recompensa) espremia o texto da campanha. */
  .recognition-campaign { grid-template-columns: auto minmax(0, 1fr); }
  .recognition-campaign > .pill { grid-column: 1 / -1; justify-self: start; }
  /* O "60" gigante não cabe ao lado do texto em tela estreita. */
  .history-hero { flex-direction: column; align-items: flex-start; padding: 28px; }
  .history-hero-mark { display: none; }
  .history-story-grid { grid-template-columns: 1fr; }
  .history-pillars .sec { align-items: flex-start; flex-direction: column; gap: 10px; }
  .history-manifesto { grid-template-columns: 1fr; padding: 26px; }
  .history-manifesto-arrow { width: 118px; justify-self: end; }
  .row-top, .row-bot { grid-template-columns: 1fr; } .tiles, .stat-grid, .badges { grid-template-columns: 1fr 1fr; }
  .hero-body { max-width: 100%; padding: 26px; }
  .home-hero .hero-body { max-width: 76%; }.hero-orbits { right: 7%; }
}
@media (max-width: 480px) {
  .main { padding-left: 12px; padding-right: 12px; }.topbar { padding-left: 12px; padding-right: 12px; }
  .page-heading h1 { font-size: 34px; }.page-heading-actions, .page-heading-actions .btn { width: 100%; }
  .tiles, .stat-grid, .badges, .community-overview, .benefit-summary, .celebration-grid { grid-template-columns: 1fr; }.season-card { grid-column: auto; }
  .department-featured { grid-template-columns: 1fr; }.department-featured-actions { grid-column: auto; flex-direction: column; }
  .recognition-campaign { grid-template-columns: auto 1fr; }.recognition-campaign > .pill { grid-column: 1/-1; justify-self: start; }
  .reward-footer, .recognition-meta { align-items: flex-start; flex-direction: column; }
  .profile-id { align-items: flex-start; flex-direction: column; }.profile-body { padding-left: 18px; padding-right: 18px; }
  .row-top, .row-mid, .row-bot, .tiles { grid-template-columns: minmax(0,1fr); }
  .journey-top { align-items: flex-start; }.medal { width: 70px; height: 70px; }.journey-list { min-width: 0; }
  .sec { gap: 10px; }.sec > * { min-width: 0; }.link-more { white-space: nowrap; }
  .home-quickbar { grid-template-columns: 1fr; }.quickbar-title { align-items: flex-start; flex-direction: column; gap: 0; }
  .home-hero .hero-body { max-width: 100%; }.hero-orbits { display: none; }.hero-actions { align-items: flex-start; flex-direction: column; }
  .journey-metrics { grid-template-columns: 1fr; }.home-celebration { align-items: flex-start; flex-direction: column; }.home-celebration .avatar-stack { justify-content: flex-start; }
  .journey-card .season-head { align-items: flex-start; flex-direction: column; gap: 7px; }
}

/* ---------- Refinamento 2026: navegação essencial, Ravi e início editorial ---------- */
:root[data-theme="light"] body {
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(var(--personal-accent-rgb), .13), transparent 64%),
    linear-gradient(180deg, #f7fbff 0, var(--bg) 380px);
}
:root[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #fff 0%, #fafdff 100%);
  box-shadow: 12px 0 38px rgba(26, 83, 130, .035);
}
/* O rodapé da barra lateral virou gatilho do menu da conta (ideia do Connect).
   A divisória e o "empurra para baixo" passaram do botão para o invólucro, que
   agora é quem fecha a coluna. */
.side-user-menu { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line-2); }
.side-user { width: 100%; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .18s ease; }
.side-user:hover, .side-user[aria-expanded="true"] { background: var(--surface-3); }
.side-user[aria-expanded="true"] .icon { color: var(--accent-strong); transform: rotate(180deg); }
.side-user .icon { transition: color .18s ease, transform .18s ease; }
.profile-menu { position: relative; }
.topbar-profile { display: inline-flex; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: border-color .18s ease, transform .18s ease; }
.topbar-profile:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.topbar-profile:focus-visible { outline: 3px solid rgba(var(--personal-accent-rgb), .2); outline-offset: 3px; }
.profile-menu-panel {
  position: absolute; z-index: 35; top: calc(100% + 10px); right: 0; width: 220px;
  padding: 8px; border: 1px solid var(--line); border-radius: 15px;
  background: var(--surface); box-shadow: 0 18px 48px rgba(18, 50, 78, .16);
}
/* O painel do rodapé abre para cima e ocupa a largura da barra: para baixo não
   há espaço, e alinhar à direita deixaria a borda fora da coluna. */
.side-user-menu .profile-menu-panel { top: auto; bottom: calc(100% + 10px); right: auto; left: 0; width: 100%; box-shadow: 0 -14px 44px rgba(18, 50, 78, .16); }
.profile-menu-panel[hidden] { display: none; }
.profile-menu-identity { display: flex; align-items: center; gap: 10px; padding: 8px 8px 11px; border-bottom: 1px solid var(--line-2); }
.profile-menu-identity > span:last-child { min-width: 0; }
.profile-menu-identity strong, .profile-menu-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-identity strong { color: var(--text); font-size: 12px; }
.profile-menu-identity small { margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.profile-menu-panel form { margin: 0; }
.profile-menu-action {
  display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 4px; padding: 9px 10px;
  border: 0; border-radius: 10px; background: transparent; color: var(--text);
  font: inherit; font-size: 12px; font-weight: 650; text-align: left; cursor: pointer;
}
.profile-menu-action:hover, .profile-menu-action:focus-visible { outline: none; background: var(--surface-2); }
.profile-menu-action.is-logout { color: #d63c43; }
.profile-menu-action.is-logout:hover, .profile-menu-action.is-logout:focus-visible { background: rgba(214, 60, 67, .09); }
/* Bloco de gestão (Administração, Comunicação): separado do resto do menu por um
   traço, como o cabeçalho de identidade lá em cima. O traço fica embaixo do
   grupo, e não em cima, para o grupo encostar no cabeçalho e ler como uma
   continuação dele — quem você é, e o que isso te abre. */
.profile-menu-group { padding-bottom: 5px; border-bottom: 1px solid var(--line-2); }
.profile-menu-group .profile-menu-action { color: var(--brand-ink, var(--text)); }
.ravi-entry { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 4px 13px 4px 5px; border: 1px solid rgba(var(--personal-accent-rgb), .28); border-radius: 99px; color: var(--text); background: linear-gradient(135deg, rgba(var(--personal-accent-rgb), .12), var(--surface)); box-shadow: 0 8px 24px rgba(25, 104, 153, .07); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ravi-entry:hover { transform: translateY(-1px); border-color: rgba(var(--personal-accent-rgb), .55); box-shadow: 0 10px 26px rgba(var(--personal-accent-rgb), .14); }
.ravi-avatar { width: 31px; height: 31px; display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--personal-accent), var(--personal-accent-ink)); box-shadow: 0 5px 14px rgba(var(--personal-accent-rgb), .28); font-size: 12px; font-weight: 850; }
.ravi-entry-copy b, .ravi-entry-copy small { display: block; text-align: left; line-height: 1.1; }
.ravi-entry-copy b { font-size: 12px; }.ravi-entry-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.ravi-avatar-panel { width: 36px; height: 36px; }
.assistant-head > div { min-width: 0; flex: 1; }
.assistant-head > div b, .assistant-head > div small { display: block; }
.assistant-head > div small { margin-top: 1px; color: var(--muted); font-size: 11.5px; }

.home-dashboard-v2 .home-top { grid-template-columns: 1.55fr .92fr 1.02fr; }
.home-mid-v2 { grid-template-columns: minmax(270px, .74fr) minmax(0, 1.76fr); }
.journey-card-clean { border-color: rgba(var(--personal-accent-rgb), .16); background: linear-gradient(145deg, var(--surface) 20%, color-mix(in srgb, var(--surface-2) 78%, rgba(var(--personal-accent-rgb), .24))); }
.journey-card-clean::after { width: 150px; height: 150px; right: -72px; top: 15px; box-shadow: 0 0 0 30px rgba(var(--personal-accent-rgb), .035); }
.journey-score { position: relative; z-index: 1; padding: 13px 14px; border: 1px solid rgba(var(--personal-accent-rgb), .18); border-radius: 15px; background: linear-gradient(135deg, rgba(var(--personal-accent-rgb), .13), rgba(37, 99, 255, .045)); }
.journey-score-label, .journey-score span { display: block; color: var(--muted); font-size: 11px; }
.journey-score strong { display: block; margin: 3px 0 1px; color: var(--text); font-size: 29px; line-height: 1; letter-spacing: -1.2px; }
.journey-score > span:last-child { color: var(--accent-strong); font-weight: 750; }
.journey-metrics-clean { margin-top: 9px; }
.journey-card-clean .season { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.journey-card-clean .season-head > span { color: var(--accent-strong); font-size: 11px; font-weight: 750; }
.store-intro { margin: -3px 0 5px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.store-card .store-item small { color: var(--accent-strong); font-size: 11.5px; font-weight: 700; }

.linkedin-card-connected { border-color: rgba(10, 102, 194, .12); background: linear-gradient(150deg, var(--surface), color-mix(in srgb, var(--surface-2) 76%, #dff2ff 24%)); }
.connected-state, .feed-live { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.connected-state i, .feed-live i { width: 7px; height: 7px; border-radius: 50%; background: #20c997; box-shadow: 0 0 0 4px rgba(32, 201, 151, .11); }
.connected-state.is-cached i { background: #f4b740; box-shadow: 0 0 0 4px rgba(244,183,64,.13); }
.linkedin-card-connected .linkedin-preview { min-height: 0; }
.linkedin-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; color: #0a66c2; font-size: 12px; font-weight: 750; }
.linkedin-cta:hover { text-decoration: underline; }

.feed-card-live { border-color: rgba(var(--personal-accent-rgb), .15); }
.feed-heading { align-items: flex-end; }
.feed-heading .eyebrow { margin-bottom: 3px; font-size: 11px; color: var(--accent-strong); }
.feed-heading h2 { font-size: 18px !important; }
/* Composer em duas linhas (campo em cima, ações embaixo): numa única linha o
   campo de texto era esmagado pelos botões em qualquer largura. */
.feed-composer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid rgba(var(--personal-accent-rgb), .18); border-radius: 15px; background: linear-gradient(135deg, rgba(var(--personal-accent-rgb), .07), var(--surface-2)); }
.feed-composer > .avatar, .feed-composer > .feed-avatar-image { grid-area: 1 / 1; }
.feed-composer-field { grid-area: 1 / 2 / 2 / 4; min-width: 0; }
.feed-composer-field input { width: 100%; min-width: 0; min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 99px; outline: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; transition: border-color .18s ease, box-shadow .18s ease; }
.feed-composer-field input:focus { border-color: rgba(var(--personal-accent-rgb), .55); box-shadow: 0 0 0 3px rgba(var(--personal-accent-rgb), .1); }
.feed-composer-field input::placeholder { color: var(--muted-2); }
.feed-list-live { display: block; overflow-y: auto; overscroll-behavior: contain; margin-top: 7px; padding-right: 5px; }
.feed-list-live .feed-item { min-height: 72px; }
.feed-list-live .feed-item:first-child { padding-top: 8px; }
.feed-list-live .feed-copy .who b { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A prévia é um atalho: o card inteiro abre a publicação no feed. O realce fica
   na largura do card (sem margem negativa) porque a lista rola e qualquer
   estouro horizontal viraria uma segunda barra de rolagem. */
.feed-list-live .feed-item[data-feed-open] { border-radius: 10px; cursor: pointer; transition: background-color .16s ease; }
.feed-list-live .feed-item[data-feed-open]:hover { background: rgba(var(--personal-accent-rgb), .06); }
.feed-item-permalink { color: inherit; text-decoration: none; }
.feed-item-permalink:hover small { color: var(--accent-strong); text-decoration: underline; }
.feed-item-permalink:focus-visible { border-radius: 6px; outline: 2px solid rgba(var(--personal-accent-rgb), .55); outline-offset: 2px; }
/* Vazio com forma: antes era uma frase solta no meio de um vão grande. */
.feed-empty { display: grid; justify-items: center; align-content: start; gap: 5px; min-height: 0; margin-top: 14px; padding: 24px 18px; border: 1px dashed var(--line-strong); border-radius: 15px; background: var(--surface-2); text-align: center; }
.feed-empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 13px; color: var(--accent-strong); background: rgba(var(--personal-accent-rgb), .11); }
.feed-empty-icon .icon { width: 21px; height: 21px; }
.feed-empty b { color: var(--text); font-size: 13px; }
.feed-empty span { max-width: 34ch; color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (min-width: 1201px) and (min-height: 740px) {
  .home-dashboard.home-dashboard-v2 { grid-template-rows: clamp(232px, 31vh, 270px) minmax(0, 1fr); }
  .home-dashboard-v2 .home-top, .home-dashboard-v2 .home-mid { min-height: 0; }
  .home-dashboard-v2 .home-mid > * { height: 100%; min-height: 0; overflow: hidden; }
  .home-dashboard-v2 .linkedin-preview { flex: 1; }
  .home-dashboard-v2 .feed-card-live { display: flex; }
  .home-dashboard-v2 .feed-list-live { flex: 1; }
}
@media (max-width: 1200px) {
  .home-dashboard-v2 .home-top { grid-template-columns: 1fr 1fr; }
  .home-dashboard-v2 .home-top .home-hero { grid-column: 1 / -1; }
  .home-dashboard-v2 .home-mid-v2 { grid-template-columns: .8fr 1.2fr; }
}
@media (max-width: 1080px) {
  .home-dashboard-v2 .home-top { grid-template-columns: 1fr; }
  .home-dashboard-v2 .home-top .home-hero { grid-column: auto; }
  .home-dashboard-v2 .home-mid-v2 { grid-template-columns: 1fr; }
  .home-dashboard-v2 .feed-list-live { max-height: 430px; }
}
@media (max-width: 760px) {
  .topbar-right > .icon-btn { display: none; }
  .ravi-entry { width: 42px; padding: 4px; justify-content: center; }
  .ravi-entry-copy { display: none; }
  .feed-composer { padding: 10px; gap: 9px; }
  .feed-list-live .feed-item { align-items: flex-start; flex-wrap: wrap; }
  .feed-list-live .feed-metrics { width: 100%; margin-left: 42px; justify-content: flex-start; }
}

/* ---------- Início compacto: jornada, fotos no feed e Ravi flutuante ---------- */
.journey-balance-modern {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 15px; border: 1px solid rgba(var(--personal-accent-rgb), .22);
  border-radius: 15px; background: linear-gradient(135deg, rgba(var(--personal-accent-rgb), .15), rgba(37, 99, 255, .045));
}
.journey-balance-copy-modern > span, .journey-balance-copy-modern > small { display: block; color: var(--muted); font-size: 11px; }
.journey-balance-copy-modern > strong { display: block; margin: 2px 0 1px; font-size: 30px; line-height: 1; letter-spacing: -1.2px; }
.journey-balance-copy-modern > small { color: var(--accent-strong); font-weight: 800; letter-spacing: .03em; }
.journey-spark { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border: 1px solid rgba(var(--personal-accent-rgb), .24); border-radius: 13px; color: var(--accent-strong); background: color-mix(in srgb, var(--surface) 76%, transparent); box-shadow: 0 9px 24px rgba(var(--personal-accent-rgb), .13); }
a.journey-spark { cursor: pointer; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.journey-spark:hover { transform: translateY(-1px); border-color: rgba(var(--personal-accent-rgb), .5); box-shadow: 0 12px 28px rgba(var(--personal-accent-rgb), .2); }
.journey-stats-modern { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.journey-stats-modern > div { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 12px; background: color-mix(in srgb, var(--surface) 76%, transparent); }
.journey-stats-modern > div > span { width: 29px; height: 29px; display: grid; place-items: center; flex: none; border-radius: 9px; color: var(--accent-strong); background: rgba(var(--personal-accent-rgb), .12); }
.journey-stats-modern p { min-width: 0; }.journey-stats-modern b, .journey-stats-modern small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-stats-modern b { font-size: 13px; line-height: 1.1; }.journey-stats-modern small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.ravi-launcher { height: 52px; padding: 5px 16px 5px 6px; border: 1px solid rgba(var(--personal-accent-rgb), .28); color: var(--text); background: color-mix(in srgb, var(--surface) 93%, rgba(var(--personal-accent-rgb), .16)); box-shadow: 0 16px 38px rgba(24, 64, 104, .17); }
.home-screen .assistant-launcher.ravi-launcher { width: auto; padding: 5px 16px 5px 6px; justify-content: flex-start; font-size: inherit; }
.ravi-launcher:hover { transform: translateY(-2px); border-color: rgba(var(--personal-accent-rgb), .55); box-shadow: 0 19px 42px rgba(var(--personal-accent-rgb), .18); }
.ravi-launcher > span:last-child { display: block; text-align: left; line-height: 1.05; }
.ravi-launcher b, .ravi-launcher small { display: block; }.ravi-launcher b { font-size: 12px; }.ravi-launcher small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
.assistant-panel { bottom: 64px; }

.feed-avatar-image { object-fit: cover; background: var(--surface-3); }
.feed-image-button { grid-area: 2 / 2; justify-self: start; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface); font-size: 11.5px; font-weight: 700; cursor: pointer; transition: color .18s ease, border-color .18s ease; }
.feed-composer > .btn { grid-area: 2 / 3; justify-self: end; }
.feed-image-button:hover { color: var(--accent-strong); border-color: var(--line-strong); }.feed-image-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.feed-image-preview { grid-area: 3 / 2 / 4 / 4; position: relative; width: 100%; max-width: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-3); }
.feed-image-preview img { width: 100%; max-height: 110px; object-fit: cover; }.feed-image-preview button { position: absolute; top: 5px; right: 5px; width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; background: rgba(10,22,38,.72); font-size: 18px; line-height: 1; }
.feed-post-image { width: min(100%, 420px); max-height: 160px; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 12px; object-fit: cover; background: var(--surface-3); }
.feed-linkedin-preview { display: flex; width: min(100%,440px); min-width: 0; margin-top: 7px; overflow: hidden; border: 1px solid rgba(10,102,194,.2); border-radius: 11px; color: var(--text); background: color-mix(in srgb,var(--surface-2) 88%,#e5f3ff 12%); text-decoration: none; }
.feed-linkedin-preview:hover { border-color: rgba(10,102,194,.42); background: color-mix(in srgb,var(--surface-2) 80%,#dcebfa 20%); }
.feed-linkedin-preview > img { width: 74px; min-height: 64px; flex: 0 0 74px; object-fit: cover; background: var(--surface-3); }
.feed-linkedin-copy { min-width: 0; padding: 8px 10px; }
.feed-linkedin-copy b,.feed-linkedin-copy span,.feed-linkedin-copy small { display: block; }
.feed-linkedin-copy b { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.feed-linkedin-copy b i { display: inline-grid; width: 17px; height: 17px; margin-right: 4px; place-items: center; border-radius: 4px; color: #fff; background: #0a66c2; font-size: 11px; font-style: normal; }
.feed-linkedin-copy > span { display: -webkit-box; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.feed-linkedin-copy small { margin-top: 5px; color: #0a66c2; font-size: 11px; font-weight: 750; }
.feed-list-live .feed-item:has(.feed-post-image) { align-items: flex-start; }
.feed-list-live .feed-item:has(.feed-linkedin-preview) { align-items: flex-start; }
.feed-list-live .feed-item:has(.feed-post-image) .feed-metrics { align-self: flex-start; margin-top: 3px; }

@media (min-width: 1201px) {
  body.home-screen { height: 100dvh; overflow: hidden; }
  .home-screen .layout, .home-screen .content { height: 100dvh; min-height: 0; overflow: hidden; }
  .home-screen .main { height: calc(100dvh - 75px); min-height: 0; padding: 14px 24px 15px; }
  .home-dashboard.home-dashboard-v2 { height: 100%; min-height: 0; display: grid; grid-template-rows: clamp(224px, 31vh, 264px) minmax(0, 1fr); gap: 12px; }
  .home-dashboard-v2 .home-top, .home-dashboard-v2 .home-mid { min-height: 0; gap: 12px; }
  .home-dashboard-v2 .home-top > *, .home-dashboard-v2 .home-mid > * { height: 100%; min-height: 0; overflow: hidden; }
  .home-dashboard-v2 .feed-card-live { display: flex; }
  .home-dashboard-v2 .feed-list-live { flex: 1; min-height: 0; }
}
@media (min-width: 1201px) and (max-height: 819px) {
  .home-dashboard.home-dashboard-v2 { grid-template-rows: 220px minmax(0, 1fr); }
  .home-dashboard-v2 .card-pad { padding: 13px; }
  .home-dashboard-v2 .sec { margin-bottom: 8px; }
  .journey-balance-modern { padding: 10px 12px; }.journey-balance-copy-modern > strong { font-size: 25px; }.journey-spark { width: 36px; height: 36px; }
  .journey-stats-modern { margin-top: 7px; }.journey-stats-modern > div { padding: 7px 8px; }
  .store-card .store-item { padding: 6px 0; }.store-card .store-thumb { width: 34px; height: 34px; }
  .feed-composer { padding: 8px; }.feed-list-live .feed-item { min-height: 62px; padding: 7px 0; }
  .linkedin-cta { margin-top: 7px; }
}
@media (max-width: 1080px) {
  .assistant { bottom: calc(18px + env(safe-area-inset-bottom)); }
  .assistant-panel { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .ravi-launcher { display: inline-flex; }
}
@media (max-width: 760px) {
  .home-screen .assistant-launcher.ravi-launcher, .ravi-launcher { width: 48px; height: 48px; padding: 5px; justify-content: center; }
  .ravi-launcher > span:last-child { display: none; }
  .feed-composer > .btn { padding: 0 14px; }
}
/* Mesma receita do card de evento no feed: superfície do tema com um véu do
   acento, para não virar um retângulo branco no tema escuro. */
.feed-event-preview {
  display: grid;
  gap: 7px;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid rgba(var(--personal-accent-rgb), .28);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(var(--personal-accent-rgb), .1), var(--surface-2) 62%);
}

.feed-event-preview > b {
  color: var(--text);
  font-size: .96rem;
}

.feed-event-preview time {
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 750;
  text-transform: capitalize;
}

.feed-event-preview > p {
  margin: 0;
  color: var(--muted);
}

.feed-event-preview > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
}

.feed-event-preview > div span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(var(--personal-accent-rgb), .15);
  color: var(--accent-strong);
  font-size: .75rem;
  font-weight: 750;
}

.feed-event-preview > div small {
  color: var(--muted-2);
}

.feed-event-preview > a {
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 750;
}
.global-search {
  position: relative;
}

.global-search-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 9px);
  left: 50%;
  width: min(680px, calc(100vw - 32px));
  max-height: min(68vh, 620px);
  padding: 10px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(16, 30, 49, .22);
  transform: translateX(-50%);
}

.global-search-panel[hidden] {
  display: none;
}

.global-search-status {
  padding: 17px 14px;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

.global-search-groups {
  display: grid;
  gap: 9px;
}

.global-search-groups[hidden] {
  display: none;
}

.global-search-group {
  display: grid;
  gap: 3px;
}

.global-search-group + .global-search-group {
  padding-top: 9px;
  border-top: 1px solid var(--line-2);
}

.global-search-group h3 {
  margin: 0;
  padding: 4px 8px 3px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.global-search-result {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
  border-radius: 11px;
  color: var(--text);
}

.global-search-result:hover,
.global-search-result:focus-visible {
  background: var(--surface-2);
  outline: none;
}

.global-search-result-kind,
.search-result-kind {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: rgba(var(--personal-accent-rgb), .13);
  color: var(--accent-strong);
  font-size: .75rem;
  font-weight: 850;
}

[data-category="people"] { background: #e9f7fd; color: #087fa1; }
[data-category="posts"] { background: #edf7ed; color: #37823d; }
[data-category="documents"] { background: #fff5df; color: #9b6a08; }
[data-category="events"] { background: #f2edff; color: #6d50a7; }
[data-category="policies"] { background: #ffecf0; color: #a43d55; }
[data-category="portals"] { background: #e9f4ff; color: #356ca8; }
[data-category="communities"] { background: #eaf9f6; color: #258171; }
[data-category="links"] { background: #f1f3f6; color: #59697a; }

.global-search-result-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.global-search-result-copy b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result-copy b {
  font-size: .84rem;
}

.global-search-result-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.global-search-result-meta {
  color: var(--accent-strong);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.global-search-all {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 11px 12px;
  border: 0;
  border-top: 1px solid var(--line-2);
  background: transparent;
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.global-search-all[hidden] {
  display: none;
}

.search-result-groups {
  display: grid;
  gap: 27px;
}

.search-result-group {
  display: grid;
  gap: 11px;
}

.search-result-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-result-group-heading h2 {
  margin: 0;
  font-size: 1.08rem;
}

.search-result-group-heading span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .global-search-panel {
    position: fixed;
    top: 112px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 135px);
    transform: none;
  }
}

/* ============================================================================
   Texto rico (rt-*) — formatação leve compartilhada por feed, eventos e
   estúdio de páginas. Os slugs espelham app/richtext.py (fonte da verdade no
   backend) e static/js/richtext.js (editor). Cores têm par claro/escuro.
   ========================================================================== */
:root {
  --rt-cor-vermelho: #c23b3b;
  --rt-cor-laranja: #b35b17;
  --rt-cor-dourado: #96741d;
  --rt-cor-verde: #1e7d4f;
  --rt-cor-ciano: #0c7f99;
  --rt-cor-azul: #2563c4;
  --rt-cor-violeta: #6d4fc9;
  --rt-cor-rosa: #b8447f;
  --rt-cor-grafite: #5b6a7e;

  --rt-marca-amarelo: rgba(255, 214, 51, 0.42);
  --rt-marca-verde: rgba(74, 222, 128, 0.32);
  --rt-marca-ciano: rgba(103, 232, 249, 0.35);
  --rt-marca-rosa: rgba(249, 168, 212, 0.42);
  --rt-marca-violeta: rgba(196, 181, 253, 0.42);
  --rt-marca-laranja: rgba(253, 186, 116, 0.42);
  --rt-marca-cinza: rgba(148, 163, 184, 0.28);

  --rt-font-titulo: "Poppins", "Segoe UI", var(--font);
  --rt-font-elegante: "Playfair Display", Georgia, "Times New Roman", serif;
  --rt-font-manuscrita: "Caveat", "Segoe Script", "Comic Sans MS", cursive;
  --rt-font-mono: "Cascadia Code", "Consolas", "Courier New", monospace;
  --rt-font-impacto: "Anton", "Arial Black", "Segoe UI Black", sans-serif;
  --rt-font-editorial: "Lora", Georgia, "Book Antiqua", serif;
  --rt-font-condensada: "Oswald", "Arial Narrow", "Segoe UI Semibold", sans-serif;
  --rt-font-arredondada: "Quicksand", "Trebuchet MS", var(--font);
  --rt-font-tecnica: "Space Grotesk", "Segoe UI", var(--font);
  --rt-font-romantica: "Dancing Script", "Segoe Script", cursive;
  --rt-font-maquina: "Special Elite", "Courier New", monospace;
}
:root[data-theme="dark"] {
  --rt-cor-vermelho: #ff8484;
  --rt-cor-laranja: #ffa15e;
  --rt-cor-dourado: #e9c774;
  --rt-cor-verde: #5cd996;
  --rt-cor-ciano: #57d4ee;
  --rt-cor-azul: #7fb0ff;
  --rt-cor-violeta: #b09aff;
  --rt-cor-rosa: #f48cbe;
  --rt-cor-grafite: #9fb0c4;

  --rt-marca-amarelo: rgba(250, 204, 21, 0.28);
  --rt-marca-verde: rgba(52, 211, 153, 0.26);
  --rt-marca-ciano: rgba(34, 211, 238, 0.24);
  --rt-marca-rosa: rgba(244, 114, 182, 0.28);
  --rt-marca-violeta: rgba(167, 139, 250, 0.28);
  --rt-marca-laranja: rgba(251, 146, 60, 0.26);
  --rt-marca-cinza: rgba(148, 163, 184, 0.22);
}

.rt-cor-vermelho { color: var(--rt-cor-vermelho); }
.rt-cor-laranja { color: var(--rt-cor-laranja); }
.rt-cor-dourado { color: var(--rt-cor-dourado); }
.rt-cor-verde { color: var(--rt-cor-verde); }
.rt-cor-ciano { color: var(--rt-cor-ciano); }
.rt-cor-azul { color: var(--rt-cor-azul); }
.rt-cor-violeta { color: var(--rt-cor-violeta); }
.rt-cor-rosa { color: var(--rt-cor-rosa); }
.rt-cor-grafite { color: var(--rt-cor-grafite); }

span[class*="rt-marca-"] {
  border-radius: 0.22em;
  padding: 0.02em 0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.rt-marca-amarelo { background: var(--rt-marca-amarelo); }
.rt-marca-verde { background: var(--rt-marca-verde); }
.rt-marca-ciano { background: var(--rt-marca-ciano); }
.rt-marca-rosa { background: var(--rt-marca-rosa); }
.rt-marca-violeta { background: var(--rt-marca-violeta); }
.rt-marca-laranja { background: var(--rt-marca-laranja); }
.rt-marca-cinza { background: var(--rt-marca-cinza); }

.rt-font-titulo { font-family: var(--rt-font-titulo); letter-spacing: -0.01em; }
.rt-font-elegante { font-family: var(--rt-font-elegante); font-size: 1.05em; }
.rt-font-manuscrita { font-family: var(--rt-font-manuscrita); font-size: 1.22em; line-height: 1.15; }
.rt-font-mono { font-family: var(--rt-font-mono); font-size: 0.94em; }
.rt-font-impacto { font-family: var(--rt-font-impacto); letter-spacing: 0.01em; text-transform: uppercase; }
.rt-font-editorial { font-family: var(--rt-font-editorial); font-size: 1.03em; }
.rt-font-condensada { font-family: var(--rt-font-condensada); letter-spacing: 0.02em; }
.rt-font-arredondada { font-family: var(--rt-font-arredondada); font-weight: 600; }
.rt-font-tecnica { font-family: var(--rt-font-tecnica); letter-spacing: -0.015em; }
.rt-font-romantica { font-family: var(--rt-font-romantica); font-size: 1.28em; line-height: 1.2; }
.rt-font-maquina { font-family: var(--rt-font-maquina); font-size: 0.96em; }

/* Link dentro do texto rico — a mesma cara no editor e na página publicada.
   Herda a cor de acento da pessoa (temporada/tema), mas mantém o sublinhado:
   cor sozinha não é sinal suficiente de que dá para clicar. */
.rt-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.rt-link:hover,
.rt-link:focus-visible { text-decoration-thickness: 2px; }

/* ---------- Editor (contenteditable) ---------- */
.rt-editor {
  outline: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 1.5em;
}
/* O texto de exemplo não pode ocupar uma linha própria: se ocupasse, o cursor
   desceria para a linha de baixo e ficaria fora do lugar. Float de altura zero
   resolve — a caixa não toca nenhuma linha, então o cursor continua na primeira
   e o texto aparece exatamente onde a digitação começa, seja qual for o
   preenchimento do campo. */
.rt-editor.is-empty::before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  color: var(--muted-2);
  pointer-events: none;
}

/* ---------- Barra de formatação ---------- */
.rt-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  width: fit-content;
  max-width: 100%;
}
.rt-btn {
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1 var(--font);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.rt-btn:hover { background: var(--surface-3); color: var(--text); }
.rt-btn.is-active {
  background: rgba(var(--personal-accent-rgb), 0.16);
  color: var(--accent-strong);
}
.rt-btn .rt-b { font-weight: 800; }
.rt-btn .rt-i { font-style: italic; font-family: Georgia, serif; font-weight: 600; }
.rt-btn .rt-u { text-decoration: underline; }
.rt-btn .rt-s { text-decoration: line-through; }
.rt-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; flex: none; }
.rt-group { position: relative; }

.rt-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
}
.rt-pop.is-open { display: block; }
.rt-pop-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 8px 2px;
}
.rt-swatches { display: grid; grid-template-columns: repeat(5, 28px); gap: 7px; }
.rt-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  padding: 0;
}
.rt-swatch:hover { transform: scale(1.12); border-color: var(--accent-strong); }
.rt-swatch.is-active { border-color: var(--accent-strong); box-shadow: 0 0 0 2px rgba(var(--personal-accent-rgb), 0.25); }
.rt-swatch.is-none {
  background:
    linear-gradient(to top right, transparent 44%, #d05050 46%, #d05050 54%, transparent 56%),
    var(--surface);
}
.rt-fontlist { display: grid; gap: 2px; min-width: 190px; }
.rt-fontopt {
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text);
  font-size: 14.5px;
  cursor: pointer;
}
.rt-fontopt:hover { background: var(--surface-3); }
.rt-fontopt.is-active { background: rgba(var(--personal-accent-rgb), 0.14); color: var(--accent-strong); }
.rt-fontopt small { display: block; font-size: 12px; color: var(--muted-2); font-family: var(--font); }

/* Bolha do link: um campo e duas ações, na largura de um endereço curto. */
.rt-linkform { display: grid; gap: 8px; width: 246px; max-width: 70vw; }
.rt-linkinput {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font: 500 13px/1 var(--font);
}
.rt-linkinput:focus { outline: none; border-color: var(--accent-strong); }
.rt-linkinput.is-invalid { border-color: var(--rt-cor-vermelho); }
.rt-linkactions { display: flex; justify-content: flex-end; gap: 6px; }
.rt-linkbtn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font: 600 12px/1 var(--font);
  cursor: pointer;
}
.rt-linkbtn:hover { background: var(--surface-3); color: var(--text); }
/* Mesma receita do .btn-primary: o par acento/tinta garante o contraste do
   texto branco nos dois temas (o acento sozinho clareia demais no escuro). */
.rt-linkbtn.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--personal-accent), var(--personal-accent-ink));
  color: #fff;
}
.rt-linkbtn.is-primary:hover { filter: brightness(1.06); color: #fff; }

.rt-wrap { position: relative; display: grid; gap: 6px; min-width: 0; }

/* Barra flutuante: sobe colada na seleção (gesto do WhatsApp/Medium). Vive no
   <body> com position:fixed, então nenhum card a recorta. */
.rt-float {
  position: fixed;
  z-index: 200;
  animation: rt-float-in 0.12s ease-out;
}
.rt-float .rt-btn { min-width: 36px; height: 34px; font-size: 15px; }
.rt-float .rt-toolbar {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 5px 6px;
  gap: 3px;
  flex-wrap: nowrap;
}
.rt-float .rt-btn { min-width: 34px; height: 32px; font-size: 14px; }
.rt-float::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  transform: rotate(45deg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.rt-float.is-below::after {
  bottom: auto;
  top: -5px;
  border: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
@keyframes rt-float-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
:root[data-motion="reduzida"] .rt-float { animation: none; }

.rt-aa { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Corretor ortográfico ----------------------------------------
   O sublinhado vive numa Custom Highlight API: não existe elemento nenhum
   embaixo da palavra errada, então nada disso interfere no cursor nem nas
   classes de formatação. */
::highlight(rt-erro) {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #d92d20;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
:root[data-theme="dark"] ::highlight(rt-erro) { text-decoration-color: #ff8a80; }

/* Campo simples (input/textarea): a Custom Highlight API não alcança o texto de
   dentro, então o sublinhado vai num espelho desenhado exatamente por cima —
   mesmo texto, transparente, só a onda visível. Fica acima do campo (o fundo do
   input esconderia a onda) e não recebe clique. */
.rt-spell-mirror {
  /* left/top/width/height vêm do JS, medidos no próprio campo. */
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-style: solid;
  border-color: transparent;
  color: transparent;
  pointer-events: none;
}
.rt-spell-mirror-text { white-space: pre; }
/* Textarea: o texto começa no topo e quebra linha como o campo real. */
.rt-spell-mirror.is-multiline { align-items: flex-start; }
.rt-spell-mirror.is-multiline .rt-spell-mirror-text {
  display: block;
  width: 100%;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.rt-spell-mark {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #d92d20;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
:root[data-theme="dark"] .rt-spell-mark { text-decoration-color: #ff8a80; }

.rt-spell-pop {
  position: fixed;
  z-index: 80;
  min-width: 190px;
  max-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  animation: rt-float-in 0.12s ease-out;
}
:root[data-motion="reduzida"] .rt-spell-pop { animation: none; }
.rt-spell-list { display: flex; flex-direction: column; gap: 2px; }
.rt-spell-sug {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.rt-spell-sug.is-first { color: var(--accent-strong); }
.rt-spell-sug:hover,
.rt-spell-sug:focus-visible { background: rgba(var(--personal-accent-rgb), 0.12); outline: none; }
.rt-spell-loading,
.rt-spell-empty {
  margin: 0;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--muted-2);
}
.rt-spell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}
.rt-spell-action {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted-2);
  cursor: pointer;
  white-space: nowrap;
}
.rt-spell-action:hover,
.rt-spell-action:focus-visible { background: var(--surface-2); color: var(--text); outline: none; }

/* ---------- Botão "Aa" que abre a barra (modo recolhido) ---------- */
