:root {
  color-scheme: dark;
  --ground: #04011c;
  --surface: #0e0b27;
  --soft: #120f2e;
  --ink: #f4f3ff;
  --ink-2: #cfcce6;
  --muted: #9e9bb8;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.05);
  --control: #2f2b52;
  --dash: #4a4482;
  --accent: #a59dff;
  --accent-ink: #c4bfff;
  --accent-tint: rgba(137, 129, 241, 0.16);
  --trial: #ffa766;
  --trial-tint: rgba(255, 150, 80, 0.14);
  --trial-soft: #1a1028;
  --trial-line: rgba(255, 150, 80, 0.35);
  --ok: #5ee39a;
  --ok-tint: rgba(46, 204, 113, 0.14);
  --bad: #ff8a80;
  --bad-tint: rgba(255, 99, 88, 0.14);
  --warn: #ffc46b;
  --neutral-tint: rgba(255, 255, 255, 0.07);
  --dark: #2a2746;
  --radius: 16px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px rgba(0, 0, 0, 0.35);
  --display: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(137, 129, 241, 0.28), transparent 70%),
    radial-gradient(800px 500px at 0% 100%, rgba(166, 128, 241, 0.16), transparent 70%),
    var(--ground);
  background-repeat: no-repeat;
  min-height: 100vh;
}
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
h1, h2 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; }
h2 { font-weight: 500; }
h2 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--neutral-tint); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.block { display: block; }
.text-bad { color: var(--bad); }
.text-warn { color: var(--warn); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Estrutura ---------- */

.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar {
  flex: 1 1 232px;
  padding: 24px 16px;
  background: rgba(10, 7, 34, 0.72);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.main { flex: 999 1 560px; min-width: 0; padding: 32px clamp(16px, 4vw, 40px) 64px; }
.container { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-lg { font-size: 24px; padding: 0; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { margin: 10px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav-item:hover { background: var(--ground); color: var(--ink); }
.nav-item.is-active { background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; }
.nav-item.is-soon { color: var(--muted); cursor: default; }
.nav-item.is-soon:hover { background: transparent; color: var(--muted); }
.tag { margin-left: auto; flex: none; white-space: nowrap; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 999px; background: var(--neutral-tint); color: var(--muted); }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--ground); border-radius: 10px; }
.mini-account { display: flex; align-items: center; gap: 10px; }
.mini-account-text { display: flex; flex-direction: column; min-width: 0; }
.mini-account-name { font-size: 14px; font-weight: 600; }

.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, #6f62e6, #8d5fe0); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 24px rgba(137, 129, 241, 0.35); }
.btn-primary:hover { background: linear-gradient(135deg, #7d71f0, #9a6cec); color: #fff; }
.btn-primary:disabled { box-shadow: none; background: #3a3566; color: #b7b3d6; cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--control); }
.btn-secondary:hover { background: var(--ground); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--ground); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.btn-link:hover { color: var(--ink); }

/* ---------- Cabeçalho e avisos ---------- */

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head p { margin-top: 4px; }
.eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 4px !important; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.back-link { display: inline-block; padding: 6px 0; font-size: 13px; font-weight: 600; text-decoration: none; }

.flash { padding: 12px 16px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.flash-ok { background: var(--ok-tint); border-color: rgba(94, 227, 154, 0.3); color: var(--ok); }
.flash-err { background: var(--bad-tint); border-color: rgba(255, 138, 128, 0.3); color: var(--bad); }

/* ---------- Cartões ---------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card-flush { padding: 0; gap: 0; overflow: hidden; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 20px; }
.card-head p { margin-top: 2px; }
.card-note { background: var(--soft); }
.card-trial { background: var(--trial-soft); border-color: var(--trial-line); }
.onboarding { align-items: flex-start; }
.empty { padding: 18px 20px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stat { gap: 10px; }
.stat-head { display: flex; align-items: center; gap: 10px; }
.meter-label { display: flex; justify-content: space-between; gap: 8px; }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, #8981f1, #5bc3ff); }

/* ---------- Lista de posts ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }
.post-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.post-when { width: 128px; flex: none; padding-top: 12px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.thumb { position: relative; width: 48px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; background: #2a2746; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-dark { background: #1b1740; color: #fff; }
.thumb-count { position: absolute; right: 3px; bottom: 3px; padding: 0 5px; border-radius: 999px; background: rgba(21, 23, 28, 0.85); color: #fff; font-size: 11px; font-weight: 700; }
.post-main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.post-title { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.post-note { font-size: 13px; }
.post-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; padding-top: 8px; }
.post-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.post-actions form { margin: 0; }

.pill { padding: 3px 8px; border-radius: 999px; background: var(--neutral-tint); color: var(--ink-2); font-weight: 600; }
.pill-trial { background: var(--trial-tint); color: var(--trial); }

.status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-scheduled { background: var(--accent-tint); color: var(--accent-ink); }
.status-processing { background: var(--neutral-tint); color: var(--ink-2); }
.status-published { background: var(--ok-tint); color: var(--ok); }
.status-failed { background: var(--bad-tint); color: var(--bad); }
.status-canceled { background: var(--neutral-tint); color: var(--muted); }

/* ---------- Formulário ---------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-row label { font-size: 13px; font-weight: 600; }
.field-row { display: flex; justify-content: space-between; gap: 8px; }
input[type='password'], input[type='text'], input[type='url'], input[type='time'], input[type='datetime-local'], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control); border-radius: 10px;
  font: inherit; font-size: 14px; color: var(--ink); background: var(--surface);
}
input[type='datetime-local'] { max-width: 280px; }
textarea { resize: vertical; line-height: 1.5; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px;
  border: 1.5px solid var(--control); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer;
}
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-square { padding: 0 18px; }
.chip:has(input:checked) { border-color: transparent; background: linear-gradient(135deg, #6f62e6, #8d5fe0); color: #fff; }
.chip:has(input[type='checkbox']:checked) { border-color: var(--accent); background: var(--accent-tint); color: var(--ink); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px;
  padding: 20px; border: 1.5px dashed var(--dash); border-radius: var(--radius); background: var(--soft); text-align: center; cursor: pointer; color: var(--ink-2);
}
.dropzone.is-over { border-color: var(--accent); background: var(--accent-tint); }
.dropzone:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone-title { font-size: 15px; font-weight: 600; color: var(--ink); }

.media-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.media-list:empty { display: none; }
.media-item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.media-item .thumb { width: 56px; height: 56px; }
.media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-name { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-index { width: 22px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.media-tools { display: flex; gap: 4px; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 16px; cursor: pointer; }
.icon-btn:hover { background: var(--ground); }
.icon-btn:disabled { opacity: 0.4; cursor: default; }
.progress { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }

.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.check input, .choice input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.choice-list { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.choice-list legend { padding: 0; margin-bottom: 8px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.choice input { margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.card-trial .choice input { accent-color: var(--trial); }
.card-trial .choice:has(input:checked) { border-color: var(--trial); background: var(--surface); }
.when-field { padding: 4px 0 4px 44px; }

.trial-head { display: flex; align-items: flex-start; gap: 12px; }
.trial-head p { margin-top: 4px; color: var(--ink-2); }
.trial-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; background: #c2560f; color: #fff; display: inline-flex; align-items: center; justify-content: center; }

.actions-bar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.form-error { color: var(--bad); font-size: 14px; flex: 1 1 260px; }

/* ---------- Contas ---------- */

.account-list { list-style: none; margin: 0; padding: 0; }
.account-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line-2); }
.account-row:first-child { border-top: 0; }
.account-main { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.account-actions { display: flex; gap: 8px; }
.account-actions form { margin: 0; }

/* ---------- Login ---------- */

.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.login-card h1 { font-size: 26px; margin-top: 8px; }

@media (max-width: 640px) {
  .post-when { width: 100%; padding-top: 0; }
  .post-side { align-items: flex-start; margin-left: 0; width: 100%; padding-top: 0; }
  .when-field { padding-left: 0; }
}

.who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }

/* ---------- Tema escuro (Nexi) ---------- */
.btn-secondary { background: rgba(255, 255, 255, 0.03); border-color: rgba(165, 157, 255, 0.45); }
.btn-secondary:hover { background: rgba(165, 157, 255, 0.12); }
.btn-ghost:hover, .nav-item:hover { background: rgba(255, 255, 255, 0.05); }
.nav-item.is-active { background: rgba(137, 129, 241, 0.16); box-shadow: 0 0 0 1px rgba(165, 157, 255, 0.25) inset; }
.card { background: linear-gradient(180deg, rgba(26, 21, 66, 0.75), rgba(14, 11, 39, 0.85)); backdrop-filter: blur(8px); }
.card-note { background: rgba(255, 255, 255, 0.03); }
.card-trial { background: linear-gradient(180deg, rgba(255, 150, 80, 0.08), rgba(14, 11, 39, 0.85)); }
.choice { background: rgba(255, 255, 255, 0.02); }
.card-trial .choice:has(input:checked) { background: rgba(255, 150, 80, 0.06); }
.chip { background: rgba(255, 255, 255, 0.03); }
input[type='password'], input[type='text'], input[type='datetime-local'], textarea { background: #0a0822; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #7d7a99; }
input[type='datetime-local']::-webkit-calendar-picker-indicator { filter: invert(0.8); }
.dropzone { background: rgba(137, 129, 241, 0.05); }
.media-item, .icon-btn { background: rgba(255, 255, 255, 0.03); }
.sidebar-foot { background: rgba(255, 255, 255, 0.04); }
.status-scheduled { color: #c4bfff; }
.login-card { background: linear-gradient(180deg, rgba(26, 21, 66, 0.85), rgba(14, 11, 39, 0.95)); }
h1 .hl, .hl { padding: 0 10px; border-radius: 10px; background: linear-gradient(135deg, rgba(137, 129, 241, 0.45), rgba(166, 128, 241, 0.25)); box-shadow: 0 0 0 1px rgba(196, 191, 255, 0.35) inset; }
.eyebrow { display: inline-block; padding: 4px 12px; border-radius: 8px; font-size: 12px !important; color: #e9e7ff !important; background: linear-gradient(135deg, rgba(111, 98, 230, 0.55), rgba(141, 95, 224, 0.35)); box-shadow: 0 0 0 1px rgba(196, 191, 255, 0.3) inset; margin-bottom: 10px !important; }

/* ---------- Logo da tela de entrada ---------- */
.logo-lockup { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 6px; }
.logo-mark { filter: drop-shadow(0 0 22px rgba(137, 129, 241, 0.55)); }
.logo-word { font-family: var(--display); font-size: 34px; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.logo-i { position: relative; display: inline-block; }
.logo-dot { position: absolute; left: 50%; top: 0.02em; width: 0.2em; height: 0.2em; border-radius: 50%; background: #5bc3ff; transform: translateX(-50%); box-shadow: 0 0 10px rgba(91, 195, 255, 0.8); }
.login-card { text-align: center; }
.login-card form { text-align: left; }

/* ---------- Tela de entrada dividida ---------- */
.login-page { margin: 0; }
.login-split { display: flex; min-height: 100vh; }
.login-hero {
  position: relative; flex: 1 1 58%; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 56px;
  background: radial-gradient(900px 600px at 20% 10%, rgba(166, 128, 241, 0.45), transparent 60%),
              radial-gradient(700px 500px at 90% 100%, rgba(91, 195, 255, 0.18), transparent 60%),
              linear-gradient(160deg, #2a1a6e 0%, #150d45 45%, #04011c 100%);
  border-radius: 0 40px 40px 0;
}
.hero-glow { position: absolute; width: 520px; height: 520px; right: -140px; top: -140px; border-radius: 50%; border: 1px solid rgba(196, 191, 255, 0.18); box-shadow: 0 0 0 60px rgba(196, 191, 255, 0.04), 0 0 0 140px rgba(196, 191, 255, 0.03); }
.carousel { position: relative; width: 100%; max-width: 560px; color: #fff; }
.slide { display: flex; flex-direction: column; gap: 16px; animation: slide-in 0.5s ease; }
@keyframes slide-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .slide { animation: none; } }
.slide-tag { align-self: flex-start; padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #ece9ff; background: linear-gradient(135deg, rgba(111, 98, 230, 0.6), rgba(141, 95, 224, 0.4)); box-shadow: 0 0 0 1px rgba(196, 191, 255, 0.35) inset; }
.slide-title { font-family: var(--display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; color: #fff; }
.slide-text { font-size: 16px; color: #d6d2f5; max-width: 460px; }
.mock { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: rgba(14, 11, 39, 0.65); border: 1px solid rgba(196, 191, 255, 0.18); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); backdrop-filter: blur(10px); }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.mock-thumb { width: 40px; height: 40px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.mock-thumb-dark { background: #1b1740; color: #fff; }
.mock-time { width: 48px; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.mock-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; color: #fff; }
.mock-pill { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, 0.1); color: #e2dffa; }
.mock-pill-trial { background: rgba(255, 150, 80, 0.18); color: #ffb98a; }
.mock-status { font-size: 12px; font-weight: 600; color: #c4bfff; white-space: nowrap; }
.mock-ok { color: #5ee39a; }
.mock-chips { flex-direction: row; flex-wrap: wrap; }
.mock-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(196, 191, 255, 0.2); font-size: 14px; font-weight: 600; color: #fff; }
.mock-chip-trial { color: #ffb98a; border-color: rgba(255, 150, 80, 0.4); }
.slides { min-height: 480px; display: flex; align-items: center; }
.slide { width: 100%; }
.carousel-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.dots { display: flex; gap: 8px; }
.dot { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.dot::after { content: ''; position: absolute; left: 4px; right: 4px; top: 12px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); transition: background 0.2s; }
.dot.is-active::after { background: linear-gradient(90deg, #a59dff, #5bc3ff); }
.carousel-pause { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(196, 191, 255, 0.35); background: transparent; color: #e2dffa; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

.login-panel { flex: 1 1 42%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #ffffff; color: #04011c; }
.login-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.login-box .logo-lockup { flex-direction: row; justify-content: flex-start; gap: 6px; margin: 0 0 18px -8px; }
.login-box .logo-mark { width: 64px; height: 52px; filter: drop-shadow(0 6px 16px rgba(111, 98, 230, 0.35)); }
.login-box .logo-word { font-size: 30px; color: #04011c; }
.login-box h1 { font-size: 30px; color: #04011c; }
.login-box .muted { color: #5d5a75; }
.login-box label { color: #2a2746; }
.login-box input[type='text'], .login-box input[type='password'] { background: #f7f6fc; border-color: #dcd7f0; color: #04011c; }
.login-box input::placeholder { color: #8e8aa8; }
.login-box input:focus { outline: none; border-color: #6f62e6; box-shadow: 0 0 0 3px rgba(111, 98, 230, 0.18); }
.login-box .flash-err { background: #fdecea; border-color: #f5c2bc; color: #b42318; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 52px; }
.eye-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #5d5a75; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.eye-btn[aria-pressed='true'] { color: #6f62e6; }
.login-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.login-box .check { min-height: 36px; color: #2a2746; }
.login-box .check input { accent-color: #6f62e6; }
.forgot summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #5b4fd9; list-style: none; padding: 8px 0; }
.forgot summary::-webkit-details-marker { display: none; }
.forgot[open] { flex-basis: 100%; }
.forgot p { padding: 10px 12px; border-radius: 10px; background: #f3f1fd; }
.login-foot { text-align: center; margin-top: 6px; }
.login-box .btn-primary { margin-top: 4px; }

@media (max-width: 900px) {
  .login-split { flex-direction: column; }
  .login-hero { flex: none; padding: 32px 24px 28px; border-radius: 0 0 28px 28px; }
  .slide-title { font-size: 26px; }
  .mock { display: none; }
  .slides { min-height: 0; }
  .login-panel { flex: 1; padding: 32px 20px 48px; }
}
.storage { gap: 10px; }
.storage-warn .meter span { background: linear-gradient(90deg, #ffa766, #ff8a80) !important; }

/* ---------- Upload em lote ---------- */
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
input[type='number'], input[type='time'] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control); border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); background: #0a0822; }
input[type='time']::-webkit-calendar-picker-indicator { filter: invert(0.8); }
.bulk-table-wrap { overflow-x: auto; }
.bulk-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.bulk-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.bulk-table td { padding: 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.bulk-table td:first-child { width: 32px; color: var(--muted); font-weight: 700; }
.bulk-file { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.bulk-file .thumb { width: 40px; height: 40px; }
.bulk-file .thumb video { width: 100%; height: 100%; object-fit: cover; }
.bulk-file .progress { width: 80px; flex: none; }
.bulk-caption { width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid var(--control); border-radius: 8px; font: inherit; font-size: 13px; color: var(--ink); background: #0a0822; }
.bulk-when { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* ---------- Horários fixos, lembretes, avisos ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.col-main, .col-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.head-actions { display: flex; gap: 10px; }
.flash-warn { background: rgba(255, 196, 92, 0.1); border-color: rgba(255, 196, 92, 0.3); color: #ffd28a; display: flex; align-items: center; gap: 8px; }
.choice.is-disabled { opacity: 0.55; cursor: default; }
.choice.is-disabled a { pointer-events: auto; }

.week { display: flex; flex-direction: column; }
.week-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line-2); min-height: 56px; }
.week-day { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.week-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); font-size: 13px; }
.slot-chip form { display: inline-flex; }
.slot-time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.icon-btn-sm { width: 26px; height: 26px; border-radius: 50%; border-color: transparent; background: transparent; }
.icon-btn-sm:hover { background: var(--bad-tint); color: var(--bad); }
.chip-day { min-width: 58px; justify-content: center; }
fieldset.plain { border: 0; margin: 0; padding: 0; }
fieldset.plain legend { margin-bottom: 8px; }
.strong { font-weight: 600; }

.switch-btn { gap: 10px; }
.switch { width: 34px; height: 20px; border-radius: 999px; background: var(--control); position: relative; flex: none; transition: background 0.2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch.is-on { background: linear-gradient(135deg, #6f62e6, #8d5fe0); }
.switch.is-on span { transform: translateX(14px); }

.free-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.free-list li { padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); font-size: 14px; font-variant-numeric: tabular-nums; }

.pill-link, .pill-queue { display: inline-flex; align-items: center; gap: 4px; }
.pill-link { background: rgba(91, 195, 255, 0.14); color: #8fd6ff; }
.pill-queue { background: var(--accent-tint); color: var(--accent-ink); }
.pill-link svg { width: 12px; height: 12px; }
.status-reminder { background: rgba(91, 195, 255, 0.16); color: #8fd6ff; }
.status-done { background: var(--ok-tint); color: var(--ok); }

.toggle-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.toggle-row input, .check-row input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; padding: 6px 0; }

.copy-field { display: flex; gap: 8px; align-items: center; }
.copy-field input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.topic-field { margin: 10px 0 4px; }
.topic-field input { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ink-2); }
.steps li::marker { color: var(--accent); font-weight: 700; }
.steps strong { color: var(--ink); }

.reminder-card { align-items: center; }
.reminder-media { width: 100%; max-width: 340px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; background: #000; border: 1px solid var(--line); }
.reminder-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.reminder-actions form { display: inline-flex; }
.btn svg { flex: none; }

select { appearance: none; padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a59dff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select option { background: #15112f; color: var(--ink); }
input[type='time'] { color-scheme: dark; }
input[type='datetime-local'] { color-scheme: dark; }
.page-head .back-link { display: block; margin-bottom: 6px; }
.slot-chip .pill { white-space: nowrap; }
@media (max-width: 640px) {
  .week-row { grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; }
}

/* ---------- Níveis, filtros, tabela de contas, biblioteca ---------- */
.stage { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.stage-subindo { background: rgba(91, 195, 255, 0.14); color: #8fd6ff; }
.stage-viralizando { background: rgba(255, 150, 80, 0.15); color: #ffb27a; }
.stage-importante { background: rgba(255, 210, 90, 0.16); color: #ffd666; }
.sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.sdot-subindo { background: #5bc3ff; }
.sdot-viralizando { background: #ff9650; }
.sdot-importante { background: #ffd23f; box-shadow: 0 0 8px rgba(255, 210, 63, 0.6); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.filter-chip:hover { color: var(--ink); border-color: var(--control); }
.filter-chip.is-active { background: var(--accent-tint); border-color: var(--accent); color: var(--ink); }
.filter-chip.filter-subindo.is-active { background: rgba(91, 195, 255, 0.14); border-color: #5bc3ff; }
.filter-chip.filter-viralizando.is-active { background: rgba(255, 150, 80, 0.14); border-color: #ff9650; }
.filter-chip.filter-importante.is-active { background: rgba(255, 210, 63, 0.12); border-color: #ffd23f; }
.filter-count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 11px; text-align: center; color: var(--ink-2); }

.picker { display: flex; flex-direction: column; gap: 12px; }
.picker-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.picker-tools { display: flex; align-items: center; gap: 4px; }
.chip .sdot { margin-left: 2px; }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--line-2); }
.acc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.acc-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 20px; white-space: nowrap; }
.acc-table td { padding: 10px 20px; border-top: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.acc-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.acc-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.acc-cell { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.acc-cell:hover .acc-name strong { color: var(--accent-ink); }
.api-cell { min-width: 120px; }
.api-cell .small { display: block; margin-bottom: 4px; }
.meter-sm { height: 4px; display: block; }
.text-bad { color: var(--bad); }
.acc-link { text-decoration: none; }
.acc-link:hover { color: var(--accent-ink); }
.post-meta .stage, .post-row .stage { font-size: 11px; padding: 2px 7px; }

.mini-summary { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.mini-stages { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.mini-stage { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }

.acc-title { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-edit input[type='text'] { width: 170px; min-height: 36px; padding: 6px 10px; font-size: 13px; }
.account-edit select { width: auto; min-height: 36px; padding: 6px 34px 6px 10px; font-size: 13px; }

.lib-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .lib-layout { grid-template-columns: 1fr; } }
.lib-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.folders { padding: 8px; gap: 2px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
@media (max-width: 900px) { .folders { position: static; max-height: 260px; } }
.folder { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; }
.folder:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.folder.is-active { background: var(--accent-tint); color: var(--ink); }
.folder-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.folder-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lib-head { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.lib-head-main { display: flex; align-items: center; gap: 12px; }
.lib-head h2 { font-size: 18px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

.dropzone-sm { padding: 22px; gap: 6px; }
.lib-toolbar { border-bottom: 1px solid var(--line-2); }
.lib-toolbar-left, .lib-toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.inline-form { display: inline-flex; align-items: center; gap: 8px; }
.inline-form select { width: auto; min-height: 36px; padding: 6px 34px 6px 10px; font-size: 13px; }
.lib-grid { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.lib-card { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, 0.02); transition: border-color 0.15s; }
.lib-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.lib-select { position: absolute; top: 8px; left: 8px; z-index: 2; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(4, 1, 28, 0.7); cursor: pointer; }
.lib-select input { width: 18px; height: 18px; accent-color: var(--accent); }
.lib-media { position: relative; aspect-ratio: 9 / 16; max-height: 260px; background: #000; }
.lib-media video, .lib-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-kind { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(4, 1, 28, 0.7); color: #fff; }
.lib-kind svg { width: 14px; height: 14px; }
.lib-body { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.lib-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.lib-caption { min-height: 64px !important; font-size: 13px !important; padding: 8px !important; }
.lib-saved { min-height: 16px; font-size: 11px; }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.actions-row .form-error { margin-right: auto; }
@media (max-width: 640px) {
  .lib-grid { grid-template-columns: repeat(2, 1fr); padding: 12px; gap: 10px; }
  .account-edit input[type='text'] { width: 100%; }
}
@media (max-width: 640px) {
  .tabs { width: 100%; overflow-x: auto; }
  .tab { flex: 1; justify-content: center; padding: 8px 10px; }
}

/* ---------- App no celular (tela de início) ---------- */
.appbar, .tabbar { display: none; }
@media (max-width: 760px) {
  .sidebar { display: none; }
  .appbar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
    padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
    background: rgba(4, 1, 28, 0.78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid var(--line-2);
  }
  .appbar .brand { padding: 0; font-size: 19px; }
  .appbar-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #6f62e6, #8d5fe0); }
  .main { padding: 18px 16px calc(env(safe-area-inset-bottom) + 96px); }
  .container { gap: 16px; }
  .page-head h1 { font-size: 28px; }
  .page-head .head-actions { display: none; }
  .page-head .back-link { display: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px);
    background: rgba(8, 5, 32, 0.86); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
    border-top: 1px solid var(--line);
  }
  .tab-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 10.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tab-item svg { width: 22px; height: 22px; }
  .tab-item.is-active { color: var(--accent-ink); }
  .tab-new { justify-self: center; width: 48px; height: 48px; margin-top: -2px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #6f62e6, #8d5fe0); box-shadow: 0 8px 24px rgba(111, 98, 230, 0.45); }
  .tab-new svg { width: 24px; height: 24px; }
  .card { border-radius: 18px; }
  .flash { border-radius: 14px; }
}
/* Aberto pela tela de início: sem toque longo selecionando texto da interface. */
@media (display-mode: standalone) {
  .tabbar, .appbar, .nav { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}
html { -webkit-tap-highlight-color: transparent; }

.more-list { padding: 4px 0; }
.more-list form { margin: 0; }
.more-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 0; border-top: 1px solid var(--line-2); background: transparent; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.more-list > .more-row:first-child, .more-list > form:first-child .more-row { border-top: 0; }
.more-row:hover { background: rgba(255, 255, 255, 0.03); color: var(--ink); }
.more-icon { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--accent-tint); color: var(--accent-ink); }
.more-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.more-arrow { font-size: 22px; color: var(--muted); }
.more-static { cursor: default; }
.more-danger .more-icon { background: var(--bad-tint); color: var(--bad); }

.push-card { gap: 16px; }
.push-hero { display: flex; align-items: center; gap: 14px; }
.push-icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 20px rgba(111, 98, 230, 0.35); flex: none; }
.push-hero h2 { margin-bottom: 2px; }
.push-state { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); }
.push-ok { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; }
.push-devices { display: flex; flex-direction: column; gap: 8px; }
.device-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.device { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); }
.device-icon { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--ok-tint); color: var(--ok); }
.device-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.device form { margin: 0; }
.ntfy-box summary { cursor: pointer; list-style: none; }
.ntfy-box summary::-webkit-details-marker { display: none; }
.ntfy-box[open] summary { margin-bottom: 8px; }
@media (max-width: 900px) {
  .login-hero { padding-top: calc(env(safe-area-inset-top) + 32px); }
  .login-panel { padding-bottom: calc(env(safe-area-inset-bottom) + 48px); }
}
.acc-mobile { display: none; }
.appbar-ghost { background: rgba(255, 255, 255, 0.06) !important; color: var(--ink-2) !important; }
@media (max-width: 760px) {
  .acc-table th:nth-child(n+3), .acc-table td:nth-child(n+3) { display: none; }
  .acc-table th, .acc-table td { padding: 10px 16px; white-space: normal; }
  .acc-table td:nth-child(2) { text-align: right; }
  .acc-table th:nth-child(2) { text-align: right; }
  .acc-name { display: flex; flex-direction: column; }
  .acc-name .muted.small { font-size: 12px; }
  .acc-mobile { display: block; margin-top: 2px; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .card-head .filter-bar { margin: 0 -20px; padding: 0 20px; width: calc(100% + 40px); }
}

/* ---------- Conectar Instagram ---------- */
.connect-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px; }
.connect-text { display: flex; flex-direction: column; gap: 6px; max-width: 620px; }
.connect-text h2 { font-size: 19px; }
.connect-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.btn-ig { min-height: 46px; padding: 0 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); color: var(--ink); font-weight: 700; gap: 10px; }
.btn-ig:hover { background: rgba(255, 255, 255, 0.14); color: var(--ink); }
.btn-ig svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .connect-card { padding: 20px; } .btn-ig { width: 100%; justify-content: center; } }

/* ---------- Páginas públicas ---------- */
.legal-body { min-height: 100vh; }
.legal-top { padding: calc(env(safe-area-inset-top) + 20px) 24px 20px; max-width: 820px; margin: 0 auto; }
.legal { max-width: 820px; margin: 0 auto; padding: 8px 24px 64px; display: flex; flex-direction: column; gap: 14px; line-height: 1.65; color: var(--ink-2); }
.legal h1 { font-size: 34px; color: var(--ink); margin-bottom: 0; }
.legal h2 { font-size: 19px; color: var(--ink); margin-top: 18px; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal strong { color: var(--ink); }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-2); }
