:root {
  --lilas: #cdb8ee;
  --lilas-2: #e7dcf8;
  --lilas-3: #f4effc;
  --rosa: #f1e4f4;
  --gold-soft: #f8edd3;
}
body { background: #fff; }
.screen { min-height: 100vh; min-height: 100dvh; }
.mut { color: var(--muted); }
.big-title { font-size: 34px; line-height: 1.06; margin: 4px 0 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.chip-lilas { background: var(--lilas-3); color: var(--roxo); }
.chip-gold { background: var(--gold); color: var(--ink); }
.chip-white { background: rgba(255,255,255,.75); color: var(--ink); }
.btn-lilas { background: var(--lilas); border-color: var(--lilas); color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(255,255,255,.25); }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 50%; line-height: 0; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.danger { color: #b3261e; }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Carregando ---------- */
.splash { display: grid; place-items: center; background: var(--roxo); }
.splash img { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- Entrar ---------- */
.auth { background: radial-gradient(120% 70% at 50% 0%, #6a2a7c 0%, var(--roxo) 55%, #3a0f46 100%); display: flex; flex-direction: column; }
.auth-top { position: relative; text-align: center; color: #fff; padding: calc(env(safe-area-inset-top) + 36px) 24px 34px; }
.auth-back { position: absolute; left: 16px; top: calc(env(safe-area-inset-top) + 14px); color: #fff; text-decoration: none; font-size: 22px; padding: 6px 10px; opacity: .7; }
.auth-logo { width: 96px; height: auto; display: block; margin: 0 auto 14px; }
.auth h1 { font-size: 40px; line-height: 1.05; margin: 0; }
.auth h1 em { color: var(--gold-2); }
.auth-top p { margin: 8px 0 0; color: #e2d3ea; font-size: 15px; }
.auth-sheet { flex: 1; background: #fff; border-radius: 30px 30px 0 0; padding: 24px 20px calc(30px + env(safe-area-inset-bottom)); width: 100%; max-width: 520px; margin: 0 auto; }
@media (min-width: 560px) { .auth-sheet { border-radius: 30px; flex: none; margin-bottom: 40px; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--lilas-3); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.seg button { font: inherit; font-weight: 800; font-size: 15px; border: 0; background: none; padding: 10px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.seg button.is-on { background: var(--ink); color: #fff; }
.auth-form .btn { margin-top: 6px; }
.auth-form .link { display: block; margin: 10px auto 0; }
.note { font-size: 14px; color: var(--ink-2); background: var(--gold-soft); border-radius: 16px; padding: 12px 14px; margin: 0 0 18px; }
.form-msg { color: #b3261e; font-size: 14px; font-weight: 700; text-align: center; margin: 12px 0 0; }
.form-msg.ok { color: #2f7a4b; }
.demo-box { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--muted); }
.demo-box p { margin: 0 0 12px; }
.demo-btns { display: grid; gap: 10px; }
input, textarea, select { background-color: var(--lilas-3); border-radius: 16px; }

/* ---------- Aguardando / sem acesso ---------- */
.wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: calc(env(safe-area-inset-top) + 30px) 22px 40px; background: radial-gradient(120% 70% at 50% 0%, #6a2a7c 0%, var(--roxo) 55%, #3a0f46 100%); color: #fff; }
.wait h1 { font-size: 34px; margin: 6px 0 0; }
.wait h1 em { color: var(--gold-2); }
.wait > p { color: #e8dcef; max-width: 360px; margin: 0 0 6px; }
.wait > .btn { max-width: 380px; }
.wait .link { color: #d7c6df; }
#wait-renew { width: 100%; max-width: 380px; }
.wait-perks { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 8px; max-width: 380px; text-align: left; color: #f1e8f5; font-size: 14.5px; }
.wait-perks li { position: relative; padding-left: 26px; }
.wait-perks li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold-2); }
@media (min-width: 900px) {
  .wait.wait-pay { display: grid; grid-template-columns: minmax(0, 520px) 400px; grid-auto-rows: min-content; column-gap: 72px; row-gap: 14px;
    align-content: center; justify-content: center; text-align: left; justify-items: start; padding: 48px; }
  .wait.wait-pay > * { grid-column: 1; }
  .wait.wait-pay #wait-renew { grid-column: 2; grid-row: 1 / span 8; align-self: center; max-width: none; }
  .wait.wait-pay .wait-logo { width: 84px; }
  .wait.wait-pay h1 { font-size: 54px; line-height: 1.05; }
  .wait.wait-pay > p { max-width: 480px; font-size: 17px; }
  .wait.wait-pay > .btn { width: 100%; max-width: 380px; }
  .wait.wait-pay .wait-perks { font-size: 15.5px; }
}

.renew { background: #fff; color: var(--ink); border-radius: 28px; padding: 20px; text-align: center; }
.renew .price { font: 600 40px var(--serif); margin: 4px 0 2px; }
.renew .price small { font: 700 16px var(--sans); color: var(--muted); }
.renew .per { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.renew .msg { font-size: 14px; background: var(--lilas-3); border-radius: 16px; padding: 10px 12px; margin: 0 0 14px; }
.renew .qr { width: 200px; height: 200px; margin: 6px auto 10px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); padding: 8px; }
.renew .qr img, .renew .qr svg { width: 100%; height: 100%; display: block; }
.renew .btn { margin-top: 8px; }
.renew .done { background: var(--gold-soft); border-radius: 16px; padding: 12px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.renew .tiny { font-size: 12px; color: var(--muted); margin: 8px 0 0; word-break: break-all; }

/* ---------- App ---------- */
.main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 18px 10px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 8px; flex: 1; }
.brand img { width: 34px; height: auto; }
.brand span { font-size: 22px; }
.demo-tag { font-size: 11px; font-weight: 800; color: var(--roxo); background: var(--lilas-3); padding: 4px 10px; border-radius: 999px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--roxo); color: var(--gold-2); font: 700 16px var(--serif); display: grid; place-items: center; background-size: cover; background-position: center; }
.avatar.photo { border: 2px solid var(--gold); }

.view { max-width: 640px; margin: 0 auto; padding: 0 18px; }
.view-head { padding: 10px 0 2px; }
.view-head h1 { font-size: 34px; line-height: 1.08; margin: 8px 0 0; }
.hint { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.sub-hint { margin-top: 14px; }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-ink); margin: 0 0 10px; font-weight: 800; }

.card { background: #fff; border: 1.5px solid var(--line); border-radius: 26px; padding: 20px 18px; margin-top: 14px; }
.card h2.serif { font-size: 23px; line-height: 1.15; margin: 0 0 4px; }
.card-lilas { background: var(--lilas-3); border-color: var(--lilas-3); }
.card-gold { background: var(--gold-soft); border-color: var(--gold-soft); }
.card-lilas input, .card-lilas textarea, .card-lilas select, .card-gold input, .card-gold textarea, .card-gold select { background-color: #fff; }

/* Início */
.hello-block { padding: 8px 0 0; }
.hello-date { margin: 0; color: var(--muted); font-size: 14px; }
.access { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; margin-top: 10px; }
.access .bar { flex: 1; height: 7px; border-radius: 9px; background: var(--lilas-2); overflow: hidden; }
.access .bar i { display: block; height: 100%; width: 0; background: var(--roxo); border-radius: 9px; transition: width .6s; }
.banner { width: 100%; margin-top: 14px; border: 0; border-radius: 20px; padding: 14px 16px; background: var(--gold-soft); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; text-align: left; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.banner b { margin-left: auto; color: var(--gold-ink); white-space: nowrap; }

.idea-card { position: relative; overflow: hidden; margin-top: 16px; border-radius: 30px; padding: 20px; background: var(--lilas); }
.idea-card h3 { font-size: 22px; line-height: 1.25; margin: 14px 0 16px; max-width: 255px; white-space: pre-wrap; }
.idea-card h3.long { font-size: 18px; max-width: none; padding-right: 34px; }
.idea-card .chip { max-width: calc(100% - 80px); }
.idea-card h3 em { color: var(--roxo); }
.idea-card .btn { background: var(--ink); color: #fff; }
.idea-card .btn.done { background: #fff; color: var(--ink); border-color: #fff; }
.burst { position: absolute; width: 112px; height: 112px; right: -24px; top: -24px; fill: var(--gold); }
.burst text { font: 800 13px var(--sans); fill: var(--ink); }

.alert-card { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; color: #fff; background: var(--roxo); border: 0; border-radius: 24px; padding: 14px 16px; margin-top: 12px; cursor: pointer; }
.alert-card.gold { background: var(--gold); color: var(--ink); }
.alert-card > span:last-child { display: grid; line-height: 1.3; }
.alert-card > span:last-child span { opacity: .8; font-size: 13px; }
.badge-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font: 700 18px var(--serif); }
.alert-card.gold .badge-num { background: var(--ink); color: var(--gold-2); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tile { border: 0; font: inherit; color: var(--ink); text-align: left; border-radius: 26px; padding: 16px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.tile b { font-size: 15px; display: block; }
.tile span { font-size: 12.5px; opacity: .72; }
.tile .ic { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.7); display: grid; place-items: center; }
.tile .ic svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile .num { font: 600 30px/1 var(--serif); display: block; }
.tile.t-ink { background: var(--ink); color: #fff; }
.tile.t-ink .ic { background: rgba(255,255,255,.1); }
.tile.t-ink .ic svg { stroke: var(--gold-2); }
.tile.t-gold { background: var(--gold-soft); }
.tile.t-lilas { background: var(--lilas-3); }
.tile.t-rosa { background: var(--rosa); }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 4px; }
.section-head h2 { font-size: 25px; margin: 0; }
.section-head.small h2 { font-size: 21px; }
.section-head.small { margin-top: 22px; }
.new-post { margin-top: 10px; }

.feed { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 16px; }
.post { border: 1.5px solid var(--line); border-radius: 26px; overflow: hidden; background: #fff; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.post-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); }
.post-who { flex: 1; display: grid; line-height: 1.25; }
.post-who b { font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.post-who b svg { width: 15px; height: 15px; fill: var(--gold); }
.post-who span { font-size: 12px; color: var(--muted); }
.post .kind { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--lilas-3); color: var(--roxo); }
.post-img { display: block; width: 100%; max-height: 560px; object-fit: cover; background: var(--lilas-3); }
.post-body { padding: 12px 16px 4px; white-space: pre-wrap; word-break: break-word; font-size: 15.5px; }
.post-body.big { font-family: var(--serif); font-size: 22px; line-height: 1.35; padding: 18px 18px 8px; }
.post-actions { display: flex; align-items: center; gap: 4px; padding: 6px 8px 8px; }
.act { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; font-weight: 800; font-size: 14px; color: var(--ink-2); padding: 8px 10px; border-radius: 999px; cursor: pointer; }
.act svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.act.liked { color: var(--roxo); }
.act.liked svg { fill: var(--roxo); stroke: var(--roxo); animation: pop .3s; }
@keyframes pop { 50% { transform: scale(1.25); } }
.act-del { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 13px; }
.comments { border-top: 1.5px solid var(--line); padding: 10px 14px 14px; background: #fcfbfd; }
.comments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cmt { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.cmt-body { flex: 1; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 8px 12px; }
.cmt-body b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.cmt-body p { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; }
.cmt-body small { color: var(--muted); font-size: 11px; font-weight: 500; }
.mentora { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 1px 7px; border-radius: 999px; }
.cmt .icon-btn { font-size: 18px; padding: 4px 6px; line-height: 1; }
.cmt-form { display: flex; gap: 8px; margin-top: 12px; }
.cmt-form input { border-radius: 999px; padding: 10px 14px; background: #fff; border-color: var(--line); }
.cmt-form .btn { width: auto; padding: 10px 16px; font-size: 14px; }
.cmt-empty { color: var(--muted); font-size: 13px; margin: 2px 0 0; }

/* Abas internas */
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px -18px 0; padding: 6px 18px 8px; position: sticky; top: calc(env(safe-area-inset-top) + 60px); z-index: 10; background: rgba(255,255,255,.95); }
.pills::-webkit-scrollbar { display: none; }
.pills button { flex: none; font: inherit; font-weight: 800; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.pills button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.chip-btn { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.chip-btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-btn.ghost { font-size: 13px; padding: 6px 12px; }
.chip-btn.ghost.is-on { background: var(--lilas); border-color: var(--lilas); color: var(--ink); }
.chips.alt .chip-btn.is-on { background: var(--lilas); border-color: var(--lilas); color: var(--ink); }
.filter { margin: 18px 0 0; }

.pilar { display: flex; gap: 12px; margin-bottom: 14px; }
.pilar > div { flex: 1; display: grid; gap: 8px; }
.pilar-num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lilas); color: var(--ink); font: italic 600 18px var(--serif); margin-top: 6px; }
.pilar-nome { font-weight: 700; }

.list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.item { background: #fff; border-radius: 22px; padding: 14px; border: 1.5px solid var(--line); display: grid; gap: 8px; }
.item-top { display: flex; align-items: flex-start; gap: 10px; }
.item-text { flex: 1; white-space: pre-wrap; word-break: break-word; }
.item-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.item .icon-btn { font-size: 22px; line-height: 1; padding: 2px 6px; }
.tag { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--lilas-3); color: var(--roxo); }
.tag[data-goal="Autoridade"] { background: var(--gold-soft); color: var(--gold-ink); }
.tag[data-goal="Vender"] { background: var(--ink); color: var(--gold-2); }
.item select { padding: 7px 34px 7px 12px; font-size: 14px; width: auto; border-radius: 999px; }
.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 22px 10px; margin: 0; }
.search { margin-top: 12px; border-radius: 999px; }

.day { background: var(--lilas-3); border-radius: 22px; margin-top: 10px; overflow: hidden; }
.day summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 15px 16px; font-weight: 800; }
.day summary::-webkit-details-marker { display: none; }
.day summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.day[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.day .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--lilas); }
.day.filled .dot { background: var(--gold); border-color: var(--gold); }
.day .today { font-size: 11px; font-weight: 800; background: var(--ink); color: var(--gold-2); padding: 2px 9px; border-radius: 999px; }
.day-body { padding: 0 16px 6px; }
.day-body textarea { background: #fff; }

.notes .item { cursor: pointer; }
.notes .item b { font-size: 15px; }
.notes .item p { margin: 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#note-new { margin-top: 14px; }
.note-bar { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.note-bar .mut { flex: 1; font-size: 13px; }
.note-title { margin-top: 10px; font-size: 22px; font-weight: 600; background: transparent; border: 0; padding: 8px 2px; border-radius: 0; border-bottom: 1.5px solid var(--line); }
.note-title:focus { background: transparent; border-color: var(--gold); }
.note-body { margin-top: 10px; min-height: 55vh; background: var(--lilas-3); border-radius: 22px; padding: 16px; line-height: 1.6; }

/* Vendas */
.res-hero { margin-top: 12px; border-radius: 30px; padding: 20px; background: var(--ink); color: #fff; }
.res-hero .lbl { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.money { font: 600 40px/1.05 var(--serif); letter-spacing: -.02em; margin: 8px 0 4px; }
.money small { font: 700 16px var(--sans); color: #b7afba; margin-right: 4px; }
.sub-line { font-size: 13.5px; color: #c9c1cc; }
.up { display: inline-block; margin-left: 4px; background: rgba(205,184,238,.18); color: var(--lilas); font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.goal { margin-top: 14px; }
.goal .t { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; color: #c9c1cc; margin-bottom: 6px; }
.goal-edit { background: none; border: 0; color: inherit; font: inherit; padding: 2px 0; cursor: pointer; }
.goal-edit b { color: #fff; }
.goal .bar { height: 8px; border-radius: 9px; background: #2e2830; overflow: hidden; }
.goal .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 9px; transition: width .6s; }
.hero-row { display: flex; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.hero-row .money { font-size: 30px; margin: 0; }
.hero-row .sub-line { font-size: 12.5px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.kpis div { border-radius: 22px; padding: 12px 12px; background: var(--lilas-3); }
.kpis b { display: block; font: 600 24px var(--serif); }
.kpis span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.kpis .k2 { background: var(--gold-soft); }
.kpis .k3 { background: var(--lilas); }
.chan { display: grid; gap: 9px; }
.chan .r { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.chan .r .n { width: 118px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan .r .bar { flex: 1; height: 12px; border-radius: 9px; background: var(--lilas-3); overflow: hidden; }
.chan .r .bar i { display: block; height: 100%; border-radius: 9px; background: var(--roxo); }
.chan .r:nth-child(2) .bar i { background: var(--gold); }
.chan .r:nth-child(n+3) .bar i { background: var(--lilas); }
.chan .r .v { width: 26px; text-align: right; }
.chan-empty { font-size: 13px; color: var(--muted); }
.sale { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; border: 1.5px solid var(--line); background: #fff; }
.sale .ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; flex: none; background: var(--lilas-3); }
.sale .who { flex: 1; line-height: 1.3; min-width: 0; }
.sale .who b { font-size: 14px; display: block; }
.sale .who span { font-size: 12px; color: var(--muted); }
.sale .val { font-weight: 800; font-size: 14px; white-space: nowrap; }
.offer .offer-name { font-size: 21px; font-weight: 600; background: transparent !important; border: 0; padding: 8px 0; margin: 6px 0 4px; line-height: 1.25; }
.offer .line { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid rgba(0,0,0,.07); }
.offer .line b { width: 76px; flex: none; font-size: 12px; color: var(--muted); padding-top: 12px; }
.offer .line input, .offer .line textarea { background: rgba(255,255,255,.75); }
.funnel { display: grid; gap: 6px; margin-top: 14px; }
.funnel .st { display: flex; align-items: center; justify-content: space-between; border-radius: 16px; padding: 10px 16px; font-weight: 800; font-size: 14px; color: #fff; margin: 0 auto; transition: width .5s; min-width: 52%; }
.funnel .st b { font: 600 20px var(--serif); }
.stage-sum { display: none; }
.script { margin-top: 14px; background: var(--lilas-3); border-radius: 22px; padding: 14px; }
.script-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.script-head span { font-size: 13px; font-weight: 800; }
.script textarea { background: #fff; }
.copy { font: inherit; font-size: 13px; font-weight: 800; color: var(--ink); background: var(--gold); border: 0; cursor: pointer; padding: 6px 12px; border-radius: 999px; }

.fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 25; height: 54px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--gold); color: var(--ink); font: inherit; font-weight: 800; font-size: 15px; box-shadow: 0 10px 24px rgba(201,161,74,.45); cursor: pointer; white-space: nowrap; }

/* Rotina */
.week-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--muted); }
.week-nav .icon-btn:disabled { opacity: .25; cursor: default; }
.week-strip { display: flex; gap: 6px; margin-top: 4px; }
.week-strip button { flex: 1; text-align: center; font: inherit; font-size: 12px; font-weight: 800; padding: 10px 0; border: 0; border-radius: 16px; background: var(--lilas-3); color: var(--muted); cursor: pointer; }
.week-strip button.done { background: var(--roxo); color: var(--gold-2); }
.week-strip button.today { background: var(--ink); color: #fff; }
.week-strip button.today.done { box-shadow: inset 0 0 0 3px var(--gold); }
.week-strip button.future { opacity: .35; cursor: default; }
.week-strip button.sel { outline: 2.5px solid var(--gold); outline-offset: 2px; }
.past-note { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 12px 14px; border-radius: 18px; background: var(--gold-soft); font-size: 13.5px; font-weight: 700; }
.past-note span { flex: 1; }
.checks label.ro { cursor: default; }
.checks label.ro:not(:has(input:checked)) { opacity: .6; }
.streak-line { margin: 12px 0 0; font-weight: 800; font-size: 14px; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.checks label { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--lilas-3); font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background .2s, color .2s; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { flex: none; width: 26px; height: 26px; border-radius: 9px; border: 2px solid #cfc6d6; display: grid; place-items: center; background: #fff; transition: background .15s, border-color .15s; }
.box svg { width: 14px; height: 14px; stroke: var(--ink); stroke-width: 3; fill: none; opacity: 0; }
.checks label:has(input:checked) { background: var(--ink); color: #fff; }
.checks input:checked + .box { background: var(--gold); border-color: var(--gold); }
.checks input:checked + .box svg { opacity: 1; }
.checks input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 2px; }
.checks .pts { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--gold); opacity: 0; }
.checks input:checked ~ .pts { opacity: 1; }
#uncheck { margin-top: 18px; }
#v-vendas, #v-programar { padding-bottom: 80px; }

/* Programar */
.week-pick { display: flex; gap: 6px; margin-top: 14px; }
.week-pick button { flex: 1; border: 0; font: inherit; text-align: center; border-radius: 18px; padding: 9px 0 10px; background: var(--lilas-3); font-size: 11px; font-weight: 800; color: var(--muted); cursor: pointer; }
.week-pick button b { display: block; font: 600 18px var(--serif); color: var(--ink); margin-top: 2px; }
.week-pick button i { display: block; width: 6px; height: 6px; border-radius: 50%; background: transparent; margin: 5px auto 0; }
.week-pick button.has i { background: var(--gold); }
.week-pick button.on { background: var(--ink); color: #c9c1cc; }
.week-pick button.on b { color: #fff; }
.sched { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.slot { border-radius: 22px; padding: 14px 16px; background: var(--lilas); }
.slot:nth-child(3n+2) { background: var(--gold-soft); }
.slot:nth-child(3n+3) { background: var(--lilas-3); }
.slot .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.slot .meta .chip { background: rgba(255,255,255,.75); }
.slot .meta .t { margin-left: auto; color: var(--muted); }
.slot .meta .live { color: #2f7a4b; }
.slot p { margin: 8px 0 0; font-size: 14.5px; font-weight: 600; white-space: pre-wrap; }
.slot img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 14px; margin-top: 10px; }
.slot .icon-btn { margin-left: 4px; }

/* Alunas */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.stats div { border-radius: 20px; padding: 12px 4px; text-align: center; background: var(--lilas-3); }
.stats b { display: block; font: 600 24px var(--serif); }
.stats span { font-size: 11px; font-weight: 700; color: var(--muted); }
.stats div:first-child { background: var(--ink); color: #fff; }
.stats div:first-child b { color: var(--gold-2); }
.stats div:first-child span { color: #b8b0bb; }
.mem .r { display: flex; align-items: center; gap: 10px; }
.ini { width: 40px; height: 40px; border-radius: 50%; background: var(--lilas-2); color: var(--roxo); display: grid; place-items: center; font: 700 16px var(--serif); flex: none; }
.mem .who { flex: 1; line-height: 1.3; min-width: 0; }
.mem .who b { font-size: 14.5px; display: block; }
.mem .who a { font-size: 12.5px; color: var(--gold-ink); font-weight: 800; text-decoration: none; }
.mem .who span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem .acc { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.mem .acc .bar { flex: 1; height: 6px; background: var(--lilas-3); border-radius: 9px; overflow: hidden; }
.mem .acc .bar i { display: block; height: 100%; background: var(--roxo); border-radius: 9px; }
.mem .btns { display: flex; gap: 8px; }
.mem .btns .btn { padding: 10px 12px; font-size: 13.5px; }
.mem.warn { border-color: var(--gold); background: #fffaf0; }
.mem.off { background: var(--lilas-3); border-color: var(--lilas-3); }
.tag-warn { background: var(--gold-soft); color: #8a6420; }
.tag-off { background: var(--ink); color: #fff; }
.renewal { background: var(--gold); border-radius: 24px; padding: 14px 16px; margin-top: 12px; display: grid; gap: 10px; }
.renewal .r { display: flex; align-items: center; gap: 10px; }
.renewal .ini { background: var(--ink); color: var(--gold-2); }
.renewal .who { flex: 1; line-height: 1.3; }
.renewal .who b { display: block; }
.renewal .who span { font-size: 12.5px; }
.renewal .btns { display: flex; gap: 8px; }
.renewal .btn { padding: 10px; font-size: 13.5px; }
.renewal .btn-outline { border-color: rgba(0,0,0,.2); }

/* Resultados */
.rank { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.rk { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; width: 100%; font: inherit; text-align: left; color: var(--ink); }
.rk .pos { font: italic 600 20px var(--serif); color: var(--gold); width: 20px; text-align: center; }
.rk .who { flex: 1; line-height: 1.3; min-width: 0; }
.rk .who b { font-size: 14px; display: block; }
.rk .who span { font-size: 11.5px; color: var(--muted); }
.rk .val { text-align: right; font-weight: 800; font-size: 13.5px; line-height: 1.3; white-space: nowrap; }
.rk .val span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.rk.top { background: var(--gold-soft); border-color: var(--gold-soft); }
.inactive { margin-top: 12px; border-radius: 24px; padding: 14px 16px; background: var(--lilas-3); }
.inactive h3 { margin: 0 0 8px; font-size: 14.5px; }
.inactive ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.inactive li { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.inactive li a { color: var(--roxo); font-weight: 800; text-decoration: none; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 8px; }
.cal span { aspect-ratio: 1; border-radius: 10px; background: var(--lilas-3); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--muted); }
.cal span.h { background: none; font-size: 10px; aspect-ratio: auto; padding-bottom: 2px; }
.cal span.e { background: none; }
.cal span.p { background: var(--lilas); color: var(--roxo); }
.cal span.v { background: var(--gold); color: var(--ink); }
.cal span.f { background: #fff; border: 1.5px dashed var(--line); }
.legend { display: flex; gap: 12px; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.mix { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mix span { font-size: 12px; font-weight: 800; padding: 6px 11px; border-radius: 999px; background: var(--lilas-3); color: var(--roxo); }

/* Configurações */
.switch-row { display: flex; align-items: center; gap: 12px; }
.switch-row > div { flex: 1; }
.switch { position: relative; width: 56px; height: 32px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch span { position: absolute; inset: 0; background: #d8d2dc; border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(24px); background: var(--gold-2); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
#cfg-renew-fields { margin-top: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pix-preview { display: flex; gap: 12px; align-items: center; background: var(--lilas-3); border-radius: 18px; padding: 12px; margin-bottom: 14px; font-size: 12.5px; color: var(--muted); }
.pix-preview .qr { width: 96px; height: 96px; flex: none; background: #fff; border-radius: 12px; padding: 5px; }
.pix-preview .qr img { width: 100%; height: 100%; display: block; }
.pix-preview b { color: var(--ink); display: block; font-size: 13.5px; }
#cfg-save { margin-top: 16px; }

/* Conta */
.admin-link { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; font: inherit; background: var(--gold-soft); border-radius: 24px; padding: 16px; margin-top: 14px; cursor: pointer; color: var(--ink); font-size: 20px; }
.admin-link span { flex: 1; font-size: 13px; color: var(--muted); }
.admin-link b { display: block; font-size: 15px; color: var(--ink); }
.lara-card { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #cfc8d0; border-radius: 26px; padding: 16px; margin: 14px 0; font-size: 14px; }
.lara-card img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; flex: none; }
.lara-card p { margin: 0; }
.lara-card .serif { color: #fff; font-size: 19px; margin-bottom: 2px; }
.lara-card a { color: var(--gold-2); font-weight: 700; }
.my-access b { font-size: 15px; }

/* Barra flutuante */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; width: calc(100% - 28px); max-width: 460px; height: 66px; border-radius: 999px; background: var(--ink); display: flex; justify-content: space-around; align-items: center; padding: 0 8px; box-shadow: 0 14px 30px rgba(20,17,20,.25); }
.tabbar button { position: relative; width: 50px; height: 50px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: #8e8792; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.is-on { background: var(--lilas); }
.tabbar button.is-on svg { stroke: var(--ink); }
.tabbar .dot-badge { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }

/* Folha de baixo */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(20,17,20,.5); animation: fade .2s; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 32px 32px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .25s ease-out; }
.sheet-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--lilas-3); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: #ddd; margin: 0 auto 14px; }
.sheet h3.serif { font-size: 26px; margin: 0 0 14px; }
.sheet h3.serif em { color: var(--gold); }
.sheet .btn { margin-top: 8px; }
.sheet .fld-l { font-size: 12.5px; font-weight: 800; margin-bottom: 6px; display: block; }
.money-in { font: 600 28px var(--serif) !important; }
.lock-note { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 0; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* Comemoração */
.party { position: fixed; inset: 0; z-index: 80; background: rgba(20,17,20,.55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.party-card { position: relative; width: 100%; max-width: 560px; background: #fff; border-radius: 36px 36px 0 0; padding: 30px 24px calc(34px + env(safe-area-inset-bottom)); text-align: center; animation: up .3s ease-out; }
.medal { width: 112px; height: 112px; margin: -88px auto 6px; display: block; fill: var(--gold); animation: wobble .9s ease-out; }
@keyframes wobble { 0% { transform: scale(.3) rotate(-30deg); } 60% { transform: scale(1.1) rotate(8deg); } 100% { transform: none; } }
.party-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.party-chips span { font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--lilas-3); color: var(--roxo); }
.party-card h3 { font-size: 32px; line-height: 1.1; margin: 4px 0 8px; }
.party-card h3 em { color: var(--gold); }
.party-card p { color: var(--muted); margin: 0 auto 18px; max-width: 320px; }
.confetti, .burst-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 90; }
.confetti i, .burst-layer i { position: absolute; top: -20px; width: 9px; height: 15px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }
.burst-layer i { top: auto; animation: pop-out .9s ease-out forwards; }
@keyframes pop-out { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(540deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .confetti, .burst-layer { display: none; }
}

/* Personagem e figurinhas */
.party-img { width: 190px; height: 190px; object-fit: contain; display: block; margin: -150px auto 4px; animation: wobble .9s ease-out; filter: drop-shadow(0 12px 20px rgba(0,0,0,.18)); }
.idea-st { position: absolute; right: -6px; bottom: 0; width: 120px; height: 120px; object-fit: contain; object-position: bottom; pointer-events: none; }
.idea-card:has(.idea-st:not([hidden])) h3 { max-width: calc(100% - 96px); }
.idea-card:has(.idea-st:not([hidden])) h3.long { padding-right: 0; }
.post-sticker { display: block; width: 140px; height: 140px; object-fit: contain; margin: 4px 0 0 12px; }
.cmt-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; border: 1.5px solid var(--gold); background: #fff; }
.cmt-sticker { display: block; width: 110px; height: 110px; object-fit: contain; margin-top: 4px; }
.cmt-body.only-sticker { background: transparent; border-color: transparent; padding-left: 4px; }
.st-face { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold); padding: 0; overflow: hidden; background: #fff; cursor: pointer; }
.st-face img { width: 100%; height: 100%; object-fit: cover; }
.sticker-tray { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 8px; }
.sticker-tray.inline { margin: 0 0 14px; }
.st-pick { border: 2px solid transparent; background: var(--lilas-3); border-radius: 14px; padding: 4px; cursor: pointer; aspect-ratio: 1; }
.st-pick img { width: 100%; height: 100%; object-fit: contain; }
.st-pick.is-on { border-color: var(--gold); background: var(--gold-soft); }
.slot-st { width: 80px; height: 80px; object-fit: contain; margin-top: 6px; }
.persona-row { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.persona-row b { font-size: 15px; }
.persona-ava { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: #fff; flex: none; }
.st-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-card { background: #fff; border-radius: 18px; padding: 8px; display: grid; gap: 6px; justify-items: center; position: relative; }
.st-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.st-card select { width: 100%; font-size: 11.5px; padding: 6px 24px 6px 8px; border-radius: 10px; background-position: right 8px center; }
.st-card .icon-btn { position: absolute; top: 2px; right: 2px; background: rgba(255,255,255,.9); }
label.btn { cursor: pointer; }

/* Fotos das alunas */
.ini.pic { object-fit: cover; padding: 0; border: 1.5px solid var(--lilas); }
.ini.big { width: 54px; height: 54px; font-size: 22px; background: var(--roxo); color: var(--gold-2); }
.ini-sm { display: grid; place-items: center; background: var(--lilas-2); color: var(--roxo); font: 700 13px var(--serif); border-color: var(--lilas) !important; }
.cmt-ava.aluna { border-color: var(--lilas); }
.my-pic { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--lilas); display: grid; place-items: center; background: var(--lilas-2); color: var(--roxo); font: 700 32px var(--serif); }
.sticker-tray { max-height: 260px; overflow-y: auto; }

/* Lembretes */
.time-add { display: flex; gap: 8px; align-items: center; }
.time-add input { width: auto; flex: 1; background: #fff; }
.chip-btn .x { margin-left: 6px; opacity: .6; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.07); font-size: 14px; cursor: pointer; }
.opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.opt span { color: var(--muted); }
.opt b { display: block; color: var(--ink); }
#broadcast-btn { margin-top: 14px; }
.tpl { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }

/* Tour */
.tour { position: fixed; inset: 0; z-index: 70; }
.tour-hole { position: fixed; border-radius: 22px; box-shadow: 0 0 0 9999px rgba(20,17,20,.62); outline: 3px solid var(--gold); outline-offset: 3px; transition: all .3s ease; pointer-events: none; }
.tour-hole.none { left: 50% !important; top: 40% !important; width: 0 !important; height: 0 !important; outline: none; }
.tour-card { position: fixed; left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 420px; background: #fff; border-radius: 28px; padding: 18px 18px 14px 128px; min-height: 150px; box-shadow: 0 20px 50px rgba(0,0,0,.3); transition: top .3s ease, bottom .3s ease; }
.tour-card.center { top: 50% !important; transform: translate(-50%, -50%); padding: 150px 20px 16px; text-align: center; }
.tour-larinha { position: absolute; left: 4px; bottom: 54px; width: 124px; height: 124px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); animation: tour-pop .4s ease-out; }
.tour-card.center .tour-larinha { left: 50%; top: -40px; bottom: auto; width: 180px; height: 180px; transform: translateX(-50%); }
@keyframes tour-pop { from { transform: scale(.7); opacity: 0; } }
.tour-card.center .tour-larinha { animation: none; }
.tour-who { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.tour-card h3 { font-size: 20px; line-height: 1.2; margin: 2px 0 6px; }
.tour-card.center h3 { font-size: 26px; }
.tour-card h3 em { color: var(--gold); }
.tour-card p#tour-text { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.tour-dots { display: flex; gap: 5px; margin: 12px 0 10px; }
.tour-card.center .tour-dots { justify-content: center; }
.tour-dots i { width: 7px; height: 7px; border-radius: 9px; background: var(--lilas-2); transition: width .2s; }
.tour-dots i.on { width: 20px; background: var(--roxo); }
.tour-btns { display: flex; align-items: center; gap: 8px; margin-left: -110px; }
.tour-card.center .tour-btns { margin-left: 0; }
.tour-btns .link { margin-right: auto; padding: 8px 4px; }
.tour-btns .btn { width: auto; }
#tour-again { margin-top: 14px; }

/* Recado da Lara */
.lara-note { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; padding: 14px; margin: 0 0 14px; }
.lara-note img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-2); flex: none; background: #fff; }
.lara-note b { color: var(--gold-2); font-size: 13px; letter-spacing: .04em; }
.lara-note p { margin: 4px 0 0; color: #fff; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.sheet-larinha { display: block; width: 150px; height: 150px; object-fit: contain; margin: 0 auto; }
.serif.center, .hint.center { text-align: center; }

/* TravessIA */
.ia-card { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 18px 12px 6px; border: 0; border-radius: 28px; background: linear-gradient(135deg, #4b1659, #2d0b37); color: #fff; text-align: left; font: inherit; cursor: pointer; overflow: hidden; }
.ia-card img { width: 92px; height: 92px; object-fit: contain; flex: none; margin: -6px 0 -12px; }
.ia-card b { display: block; font-size: 22px; font-weight: 500; line-height: 1.1; margin: 6px 0 4px; }
.ia-card b em { color: var(--gold-2); }
.ia-card > div > span:last-child { font-size: 13px; color: #d9cde0; line-height: 1.35; display: block; }
.ia-card .chip { font-size: 11px; }
.card-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-ink h2 em { color: var(--gold-2); }
.card-ink .hint { color: #b9b1bd; }
.card-ink .kicker { color: var(--gold-2); }
.card-ink .chip-btn { background: transparent; color: #fff; border-color: #4a434d; }
.card-ink .chip-btn.is-on { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.card-ink .switch span { background: #4a434d; }
.card-ink .switch input:checked + span { background: var(--lilas); }
.card-ink .switch input:checked + span::after { background: #fff; }
.ia-usage { margin-top: 16px; background: #221d24; border-radius: 18px; padding: 12px 14px; font-size: 14px; color: #d9d2dc; }
.ia-usage b { color: #fff; }
.ia-usage small { display: block; color: #9a929e; margin-top: 4px; font-size: 12px; }
#cfg-ia .hint#ia-cfg-msg { margin: 12px 0 0; }
.ia-cfg-btns { display: grid; gap: 10px; margin-top: 8px; }
#ia-method .field textarea { min-height: 64px; }

#v-ia { padding-bottom: 150px; }
body.ia-open .tabbar { display: none; }
body.ia-open .main { padding-bottom: 0; }
.ia-top { display: flex; align-items: center; gap: 10px; padding: 10px 0 12px; background: #fff; border-bottom: 1px solid var(--line); margin: 0 -18px; padding-left: 8px; padding-right: 18px; }
.ia-top .icon-btn { color: var(--ink); }
.ia-ava { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: var(--lilas-3); }
.ia-who b { display: block; font-size: 19px; font-weight: 600; line-height: 1.1; }
.ia-who span { font-size: 12px; color: #2f7a4b; font-weight: 700; }
.ia-lim { margin-left: auto; font-size: 11.5px; font-weight: 800; background: var(--lilas-3); color: var(--roxo); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.ia-hero { text-align: center; padding: 8px 4px 0; }
.ia-hero img { width: 170px; height: 170px; object-fit: contain; }
.ia-hero h2 { font-size: 30px; margin: 0; line-height: 1.1; }
.ia-hero p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.ia-sugs { display: grid; gap: 8px; margin-top: 16px; text-align: left; }
.ia-sugs button { font: inherit; font-size: 14px; font-weight: 600; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px; cursor: pointer; color: var(--ink); }
.ia-sugs button::before { content: "✦ "; color: var(--gold); }
.ia-chat { display: grid; gap: 12px; padding-top: 14px; }
.ia-msg { max-width: 86%; padding: 11px 14px; border-radius: 20px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.ia-msg.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.ia-row { display: flex; gap: 8px; align-items: flex-end; }
.ia-row > img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); flex: none; }
.ia-msg.la { background: var(--lilas-3); border-bottom-left-radius: 6px; }
.ia-msg.la b { color: var(--roxo); }
.ia-msg.la p { margin: 0 0 8px; }
.ia-msg.la p:last-child { margin-bottom: 0; }
.ia-msg.la ol, .ia-msg.la ul { margin: 4px 0 8px; padding-left: 20px; }
.ia-msg.la li { margin-bottom: 5px; }
.ia-msg.err { background: #fdeceb; color: #8a2b22; }
.ia-acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.ia-acts button { font: inherit; font-size: 12px; font-weight: 800; background: #fff; border: 1.5px solid var(--line); padding: 6px 11px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.ia-acts button.g { background: var(--gold); border-color: var(--gold); }
.ia-acts button.done { background: var(--lilas); border-color: var(--lilas); }
.ia-typing { display: inline-flex; gap: 5px; padding: 15px 16px; }
.ia-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--roxo); opacity: .35; animation: ia-dot 1s infinite; }
.ia-typing i:nth-child(2) { animation-delay: .15s; } .ia-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ia-dot { 50% { opacity: 1; transform: translateY(-3px); } }
.ia-note { text-align: center; background: var(--gold-soft); border-radius: 18px; padding: 12px 14px; font-size: 14px; margin: 14px 0 0; }
.ia-input { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(26px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 616px; z-index: 20; display: flex; gap: 8px; align-items: flex-end; background: #fff; border: 1.5px solid var(--line); border-radius: 26px; padding: 6px 6px 6px 16px; box-shadow: 0 10px 26px rgba(20,17,20,.1); }
.ia-input textarea { flex: 1; border: 0; outline: 0; resize: none; font: inherit; font-size: 15px; padding: 9px 0; max-height: 140px; background: transparent; }
.ia-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold); display: grid; place-items: center; cursor: pointer; flex: none; }
.ia-send svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ia-send:disabled { opacity: .45; cursor: default; }
.ia-foot { position: fixed; left: 0; right: 0; bottom: calc(6px + env(safe-area-inset-bottom)); text-align: center; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); margin: 0; z-index: 20; padding: 0 12px; }
.ia-trash { color: var(--muted); }
.ia-top .ia-lim + .ia-trash, .ia-top .ia-trash { margin-left: 0; }
.ia-who { margin-right: auto; }
.ia-lim { margin-left: 0; }
#v-ia::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: calc(96px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 30%); z-index: 15; pointer-events: none; }
#v-ia[hidden]::after { display: none; }
#v-ia[hidden] .ia-input, #v-ia[hidden] .ia-foot { display: none; }

/* ================= Modo escuro ================= */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121014;
  --card: #1c1820;
  --text: #f1ecf3;
  --soft: #241f28;
  --ink: #2a2330;          /* superfícies escuras (barra, botões) */
  --ink-2: #e2dbe6;
  --muted: #a69dac;
  --ph: #71687a;
  --line: #2f2934;
  --gold-ink: #e2c27a;
  --gold-soft: #2a2318;
  --roxo: #c9a6e8;         /* roxo como texto fica claro */
  --roxo-soft: #261d2b;
  --lilas-2: #3a2d47;
  --lilas-3: #241d2a;
  --rosa: #2a1f2c;
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--text); }
:root[data-theme="dark"] .serif em, :root[data-theme="dark"] em.gold { color: var(--gold-2); }

/* superfícies que eram brancas */
:root[data-theme="dark"] :is(.card, .post, .cmt-body, .item, .sale, .rk, .sheet, .party-card, .tour-card, .auth-sheet, .renew, .st-card, .sticker-tray, .ia-sugs button, .ia-acts button, .pills button, .chip-btn, .ia-input, .ia-top) { background: var(--card); }
:root[data-theme="dark"] .comments { background: #18141b; }
:root[data-theme="dark"] .topbar { background: rgba(18,16,20,.9); }
:root[data-theme="dark"] .pills { background: rgba(18,16,20,.95); }
:root[data-theme="dark"] #v-ia::after { background: linear-gradient(to bottom, rgba(18,16,20,0), var(--bg) 30%); }
:root[data-theme="dark"] .mem.warn { background: #2a2318; }
:root[data-theme="dark"] .ia-msg.err { background: #3a1f1f; color: #f4c7c3; }
:root[data-theme="dark"] .cal span.f { background: transparent; }
:root[data-theme="dark"] .day .dot, :root[data-theme="dark"] .box { background: var(--card); border-color: #4a414f; }
:root[data-theme="dark"] .st-card .icon-btn { background: rgba(28,24,32,.9); }
:root[data-theme="dark"] .persona-ava, :root[data-theme="dark"] .st-face, :root[data-theme="dark"] .cmt-ava { background: var(--soft); }
:root[data-theme="dark"] .sheet .grab { background: #3a3340; }
:root[data-theme="dark"] .card-ink { background: #0b090c; border-color: #2f2934; }

/* campos */
:root[data-theme="dark"] :is(input, textarea, select) { color: var(--text); background-color: var(--soft); }
:root[data-theme="dark"] :is(.card-lilas, .card-gold, .day-body, .script, .time-add, .cmt-form, .offer .line) :is(input, textarea, select) { background-color: #2c2631; }
:root[data-theme="dark"] :is(input, textarea, select):focus { background-color: #2c2631; }
:root[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f1ecf3' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
:root[data-theme="dark"] .st-card select { background-position: right 8px center; }
:root[data-theme="dark"] .ia-input textarea { background: transparent; }
:root[data-theme="dark"] .note-title, :root[data-theme="dark"] .offer .offer-name { background: transparent; }

/* textos que eram pretos sobre fundo claro */
:root[data-theme="dark"] :is(.renew, .banner, .tile, .rk, .week-pick button b, .pix-preview b, .admin-link, .admin-link b, .sheet-x, .opt b, .ia-top .icon-btn, .ia-sugs button, .ia-acts button, .btn-outline, .pills button, .chip-btn) { color: var(--text); }
:root[data-theme="dark"] .tile .ic { background: rgba(255,255,255,.08); }
:root[data-theme="dark"] .tile .ic svg { stroke: var(--text); }
:root[data-theme="dark"] .offer .line, :root[data-theme="dark"] .opt { border-color: var(--line); }

/* fundos fortes continuam com texto escuro */
:root[data-theme="dark"] :is(.idea-card, .slot:nth-child(3n+1), .kpis .k3, .renewal, .cal span.p) { color: #131013; }
:root[data-theme="dark"] .idea-card h3 em, :root[data-theme="dark"] .cal span.p { color: #4b1659; }
:root[data-theme="dark"] .slot:nth-child(3n+1) .meta .t { color: #4a414f; }
:root[data-theme="dark"] .kpis .k3 span { color: #4a414f; }
:root[data-theme="dark"] .renewal .btn-outline { color: #131013; border-color: rgba(0,0,0,.25); }
:root[data-theme="dark"] .ia-acts button.g, :root[data-theme="dark"] .ia-acts button.done { color: #131013; }
:root[data-theme="dark"] .ia-acts button.g { background: var(--gold); }
:root[data-theme="dark"] .ia-acts button.done { background: var(--lilas); }

/* roxo como fundo continua roxo escuro */
:root[data-theme="dark"] :is(.splash, .avatar, .alert-card:not(.gold), .ini.big, .week-strip button.done) { background-color: #4b1659; }
:root[data-theme="dark"] .access .bar i, :root[data-theme="dark"] .mem .acc .bar i { background: var(--lilas); }
:root[data-theme="dark"] .auth { background: radial-gradient(120% 70% at 50% 0%, #6a2a7c 0%, #4b1659 55%, #2a0a33 100%); }
:root[data-theme="dark"] .wait { background: radial-gradient(120% 70% at 50% 0%, #6a2a7c 0%, #4b1659 55%, #2a0a33 100%); }

/* barra de baixo e elementos escuros ganham contorno */
:root[data-theme="dark"] .tabbar { background: #221c27; box-shadow: 0 14px 30px rgba(0,0,0,.5), inset 0 0 0 1px #352e3a; }
:root[data-theme="dark"] .tabbar .dot-badge { border-color: #221c27; }
:root[data-theme="dark"] .btn:not(.btn-gold):not(.btn-lilas):not(.btn-outline):not(.btn-ghost) { background: var(--text); border-color: var(--text); color: #131013; }
:root[data-theme="dark"] .idea-card .btn { background: #131013; border-color: #131013; color: #fff; }
:root[data-theme="dark"] .idea-card .btn.done { background: #fff; color: #131013; border-color: #fff; }
:root[data-theme="dark"] .switch span { background: #4a414f; }
:root[data-theme="dark"] .switch input:checked + span { background: var(--lilas); }
:root[data-theme="dark"] .switch input:checked + span::after { background: #fff; }
:root[data-theme="dark"] .toast { background: var(--text); color: #131013; }
:root[data-theme="dark"] .ia-msg.me { background: #3a2d47; }
:root[data-theme="dark"] .checks label:has(input:checked) { background: #3a2d47; }
:root[data-theme="dark"] :is(.pills button.is-on, .chip-btn.is-on, .seg button.is-on, .week-pick button.on, .week-strip button.today) { background: var(--text); border-color: var(--text); color: #131013; }
:root[data-theme="dark"] .week-pick button.on b { color: #131013; }
:root[data-theme="dark"] :is(.chip-btn.ghost.is-on, .chips.alt .chip-btn.is-on) { background: var(--lilas); border-color: var(--lilas); color: #131013; }
:root[data-theme="dark"] .card-ink .chip-btn { background: transparent; color: #fff; border-color: #4a434d; }
:root[data-theme="dark"] .card-ink .chip-btn.is-on { background: var(--gold-2); border-color: var(--gold-2); color: #131013; }
:root[data-theme="dark"] .res-hero, :root[data-theme="dark"] .stats div:first-child, :root[data-theme="dark"] .lara-card, :root[data-theme="dark"] .tile.t-ink { background: #0b090c; box-shadow: inset 0 0 0 1px #2f2934; }
:root[data-theme="dark"] .ia-top { border-color: var(--line); }
.btn.copied, .copy.copied, .ia-acts button.copied { background: #2f7a4b !important; border-color: #2f7a4b !important; color: #fff !important; }
/* com uma janela aberta, o aviso aparece no alto (para não cobrir os botões) */
body:has(#sheet:not([hidden])) .toast { top: calc(16px + env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -16px); }
body:has(#sheet:not([hidden])) .toast.show { transform: translate(-50%, 0); }

/* Diagnóstico da TravessIA */
.ia-privacy { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.diag-box { margin-top: 18px; background: var(--lilas-3); border-radius: 22px; padding: 14px 16px; }
.diag-status { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--roxo); }
.diag-item { padding: 8px 0; border-top: 1px solid var(--line); }
.diag-item b { font-size: 13px; }
.diag-item p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.diag-item.empty p { color: var(--muted); font-style: italic; }
.ia-who { min-width: 0; }
.ia-who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= Tamanhos de celular ================= */
/* títulos e cartões se ajustam à largura (celulares pequenos não ficam apertados) */
.big-title, .view-head h1 { font-size: clamp(27px, 8.6vw, 34px); }
.idea-card h3 { font-size: clamp(18px, 5.7vw, 22px); }
.idea-card h3.long { font-size: clamp(16px, 4.7vw, 18px); }
.money { font-size: clamp(32px, 10vw, 40px); }
.ia-hero h2 { font-size: clamp(24px, 7.4vw, 30px); }
/* área de toque mínima de 44px nos botões pequenos */
.icon-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
.goal-edit { padding: 10px 0; margin: -10px 0; }
.week-strip button { min-height: 44px; }
@media (max-width: 359px) {
  .view { padding: 0 14px; }
  .tabbar { width: calc(100% - 20px); height: 62px; padding: 0 4px; }
  .tabbar button { width: 46px; height: 46px; }
  .tiles { gap: 10px; }
  .tile { padding: 14px; min-height: 120px; }
  .kpis b, .stats b { font-size: 20px; }
  .fab { padding: 0 20px; font-size: 14px; }
}


/* Foto na TravessIA */
.ia-attach { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; cursor: pointer; color: var(--muted); margin-left: -10px; }
.ia-attach svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ia-attach:active { background: var(--lilas-3); }
.ia-input { padding-left: 12px; }
.ia-preview { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 616px; z-index: 21; display: flex; align-items: center; gap: 10px; background: var(--card, #fff); border: 1.5px solid var(--line); border-radius: 18px; padding: 6px 6px 6px 8px; box-shadow: 0 8px 20px rgba(20,17,20,.08); font-size: 13.5px; font-weight: 700; }
.ia-preview img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.ia-preview span { flex: 1; }
.ia-photo { display: block; max-width: 220px; max-height: 260px; border-radius: 14px; margin: 2px 0 8px; object-fit: cover; }
.ia-photo-tag { display: block; font-size: 12.5px; opacity: .8; margin-bottom: 4px; }
#v-ia[hidden] .ia-preview { display: none; }
.ia-top { gap: 6px; }
.ia-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia-lim { padding: 5px 9px; }
.ia-top .icon-btn { min-width: 40px; }

/* ================= Painel do computador (escondido no celular) ================= */
.sidenav, .dash, .ia-agents { display: none; }
:root { --d-card: var(--lilas-3); --d-line: #e9e1f3; --d-hover: #c9a14a; }
:root[data-theme="dark"] { --d-card: #19131c; --d-line: #2b2330; }

/* Estratégia (todas as telas) */
.strat-status { margin: 4px 0 12px; font-size: 13px; font-weight: 800; color: var(--roxo); }
.strat-grid { display: grid; gap: 12px; }
.strat-card { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 22px; padding: 18px; }
.strat-card .strat-ic { font-size: 20px; }
.strat-card b { display: block; font-size: 19px; font-weight: 600; margin: 6px 0 6px; }
.strat-card p { margin: 0; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.strat-card.empty p { color: var(--muted); font-style: italic; }
.strat-empty { display: flex; gap: 14px; align-items: center; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 24px; padding: 18px; }
.strat-empty img { width: 96px; height: 96px; object-fit: contain; flex: none; }
.strat-empty b { display: block; font-size: 20px; margin-bottom: 6px; }
.strat-empty p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.strat-actions { display: grid; gap: 10px; margin-top: 16px; }

/* Tablet em pé (600–899): mesma estrutura do celular, com mais espaço */
@media (min-width: 600px) and (max-width: 899px) {
  .view { max-width: 720px; padding: 0 28px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #members, .rank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .strat-grid { grid-template-columns: 1fr 1fr; }
  .strat-card.wide { grid-column: 1 / -1; }
}

/* Computador e tablet deitado (900+) */
/* Painel do Início (peças usadas no computador e no celular) */
.dash-head { padding: 4px 0 26px; }
.dash-date { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.dash-head h1 { font-size: clamp(36px, 3.1vw, 48px); line-height: 1.05; margin: 6px 0 8px; font-weight: 600; }
.dash-sub { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.dash-side:empty { display: none; }













.dash-label { font: 600 24px "Playfair Display", serif; margin: 40px 0 14px; }
.dash-label-row .dash-label { margin: 0; }
.dash-label em { color: var(--gold-ink); font-style: italic; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.dcard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 168px; padding: 20px; border-radius: 22px; border: 1px solid var(--d-line); background: var(--d-card); color: inherit; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.dcard:hover { border-color: var(--d-hover); transform: translateY(-2px); }
.dcard-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(201,161,74,.14); color: var(--gold-ink); margin-bottom: 10px; }
.dcard-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dcard b { font-size: 21px; font-weight: 600; line-height: 1.15; }
.dcard-d { font-size: 13.5px; color: var(--muted); }
.dcard-s { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 800; color: var(--roxo); }
.dcard.feat { background: #1b1120; border-color: rgba(226,194,122,.22); color: #fff; }
.dcard.feat .dcard-d { color: #b8a9bf; }
.dcard.feat .dcard-s { color: var(--gold-2); }
.dcard.feat .dcard-ic { color: var(--gold-2); }

/* especialidades (grade com filtro) */
.agent-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.agent-filter button { font: 700 13px Manrope, sans-serif; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--d-line); background: transparent; color: var(--ink-2); cursor: pointer; }
.agent-filter button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #131013; }
.agent { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; border-radius: 22px; border: 1px solid var(--d-line); background: var(--d-card); color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 196px; transition: border-color .15s, transform .15s; }
.agent:hover { border-color: var(--d-hover); transform: translateY(-2px); }
.agent-img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: top; background: #2a1830; border: 1.5px solid rgba(201,161,74,.5); }
.agent-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.agent-tags span { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(205,184,238,.22); color: var(--roxo); }
.agent b { font-size: 19px; font-weight: 600; line-height: 1.2; margin-top: 4px; }
.agent-d { font-size: 13.5px; color: var(--muted); line-height: 1.45; }


/* Painel do Início também no celular e no tablet (até 899px) */
@media (max-width: 899px) {
  #v-inicio .dash { display: block; padding-top: 4px; }
  #v-inicio :is(.hello-block, #ia-card, #tiles) { display: none !important; }
  .dash-head { padding: 0 0 16px; }
  .dash-head h1 { font-size: clamp(32px, 9vw, 40px); }


  .dash-side .idea-card { margin-top: 0; }







  .dash-label { font-size: 22px; margin: 28px 0 12px; }
  .agent-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--m-pad, 18px)); padding-right: 18px; }
  .agent-filter::-webkit-scrollbar { display: none; }
  .agent-filter button { flex: none; }
  .dash-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dcard { min-height: 150px; padding: 16px; border-radius: 20px; }
  .dcard b { font-size: 18px; }
  .dcard-d { font-size: 12.5px; }
  .dcard-ic { width: 36px; height: 36px; margin-bottom: 6px; }
  #v-inicio .col-b { margin-top: 30px; }
}

@media (min-width: 900px) {
  :root { --side: 264px; --pad: 48px; --wrap: 1180px; --gutter: max(var(--pad), calc((100vw - var(--side) - var(--wrap)) / 2 + var(--pad))); }
  .tabbar { display: none; }
  .main { padding: 0 0 64px var(--side); }
  body.ia-open .main { padding-bottom: 0; }
  .view { max-width: var(--wrap); padding: 0 var(--pad); }
  .topbar { padding: 16px var(--pad); background: transparent !important; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0 !important; justify-content: flex-end; position: static; }
  .topbar .brand { display: none; }

  /* menu lateral (sempre escuro: é a moldura do produto) */
  .sidenav { display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); z-index: 40; background: #120d14; border-right: 1px solid #241b28; padding: 26px 16px 18px; color: #d9cfdd; }
  .side-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 26px; }
  .side-brand img { width: 40px; }
  .side-brand span { font-size: 25px; color: #fff; letter-spacing: -.01em; }
  .side-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: none; }
  .side-group, .ia-agents .side-group { margin: 18px 12px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #7f7385; }
  .side-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: #b8adbd; font: 600 14.5px Manrope, sans-serif; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
  .side-item:hover { background: rgba(255,255,255,.05); color: #fff; }
  .side-item.is-on { background: rgba(201,161,74,.12); color: #fff; }
  .side-item.is-on::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
  .side-ic { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
  .side-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .side-item.is-on .side-ic { color: var(--gold-2); }
  .side-item .dot-badge { position: absolute; left: 28px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 2px solid #120d14; }
  .side-me { margin-top: 10px; border-top: 1px solid #241b28; border-radius: 0; padding: 16px 12px 4px; }
  .side-me:hover { background: none; }
  .side-me.is-on { background: none; }
  .side-me.is-on::before { display: none; }
  .side-ava { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #4b1659 center / cover; color: var(--gold-2); font: 700 16px "Playfair Display", serif; border: 1.5px solid var(--gold); }
  .side-me .side-t { display: grid; line-height: 1.25; }
  .side-me b { color: #fff; font-size: 14.5px; }
  .side-me small { color: #8d8192; font-size: 12px; font-weight: 600; }

  /* Início = painel; Mural = só o mural */
  #v-inicio { display: block; }
  body[data-page="inicio"] .dash { display: block; }
  body[data-page="inicio"] #v-inicio .col-b { display: none; }
  body[data-page="inicio"] #v-inicio :is(.hello-block, #ia-card, #tiles) { display: none; }
  body[data-page="mural"] #v-inicio .col-a { display: none; }
  body[data-page="mural"] #v-inicio .col-b { max-width: 760px; }
  body[data-page="mural"] #v-inicio .col-b .section-head:first-child { margin-top: 8px; }
  body[data-page="mural"] #v-inicio .col-b .section-head h2 { font-size: 34px; }


  .dash-side .idea-card { margin-top: 0; display: flex; flex-direction: column; justify-content: flex-start; }
  .dash-side .idea-card .btn { margin-top: auto; align-self: flex-start; }
  .agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  /* TravessIA: especialidades ao lado do chat */
  #v-ia { max-width: var(--wrap); display: grid; grid-template-columns: 290px minmax(0, 1fr); column-gap: 32px; align-content: start; padding-bottom: 170px; }
  #v-ia > :not(.ia-agents) { grid-column: 2; }
  .ia-agents { display: block; position: fixed; z-index: 5; left: calc(var(--side) + var(--gutter)); top: 76px; bottom: 24px; width: 290px; overflow-y: auto; scrollbar-width: thin; padding-bottom: 20px; }
  .ia-agents .side-group { margin: 6px 4px 10px; }
  .ia-agents .agent-grid { grid-template-columns: 1fr; gap: 8px; }
  .agent.compact { flex-direction: row; align-items: center; gap: 12px; min-height: 0; padding: 10px 12px; border-radius: 16px; display: grid; grid-template-columns: 42px 1fr; }
  .agent.compact .agent-img { width: 42px; height: 42px; grid-row: 1 / span 2; }
  .agent.compact .agent-tags { display: none; }
  .agent.compact b { font-size: 15.5px; margin: 0; font-family: Manrope, sans-serif; font-weight: 800; }
  .agent.compact .agent-d { font-size: 12.5px; }
  .ia-strat-link { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px; border-radius: 16px; border: 1px solid rgba(226,194,122,.3); background: #1b1120; color: #fff; text-align: left; cursor: pointer; font: inherit; }
  .ia-strat-link svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-2); stroke-width: 1.7; }
  .ia-strat-link b { display: block; font-size: 14.5px; }
  .ia-strat-link small { color: #b8a9bf; font-size: 12.5px; }
  .ia-top { margin: 0; padding: 4px 0 14px; position: static; }
  .ia-input { left: calc(var(--side) + var(--gutter) + 322px); right: var(--gutter); width: auto; max-width: none; transform: none; bottom: 34px; }
  .ia-preview { left: calc(var(--side) + var(--gutter) + 322px); right: var(--gutter); width: auto; max-width: none; transform: none; bottom: 112px; }
  .ia-foot { left: calc(var(--side) + var(--gutter) + 322px); right: var(--gutter); bottom: 10px; }
  #v-ia::after { left: var(--side); }
  .ia-msg { max-width: 78%; font-size: 15.5px; }

  /* outras telas aproveitando a largura */
  #v-rotina { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
  #v-rotina .view-head { grid-column: 1 / -1; }
  #v-rotina .col-b .section-head:first-child { margin-top: 24px; }
  #members, .rank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  #v-config form, #v-config > .card, #v-conta > .card, #v-conta > .admin-link, #v-conta > .lara-card, #v-caderno, #v-vendas { max-width: 900px; }
  .note-body { min-height: 60vh; font-size: 17px; }
  .strat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .strat-card.wide { grid-column: 1 / -1; background: #1b1120; border-color: rgba(226,194,122,.22); color: #fff; }
  .strat-card.wide p { color: #e3d6ea; font-size: 16px; }
  .strat-actions { display: flex; gap: 10px; }
  .strat-actions .btn { width: auto; }

  /* janelas e botões flutuantes centralizados no conteúdo */
  .sheet-wrap { align-items: center; padding: 24px 24px 24px calc(var(--side) + 24px); }
  .sheet { border-radius: 28px; max-height: 88vh; }
  .party { align-items: center; padding-left: var(--side); }
  .party-card { border-radius: 32px; max-width: 480px; }
  .fab, .toast { left: calc(var(--side) + (100vw - var(--side)) / 2); bottom: 32px; }
  .tour-card { left: calc(var(--side) + (100vw - var(--side)) / 2); }
}

/* Tablet deitado / notebook pequeno (900–1199): menu só com ícones */
@media (min-width: 900px) and (max-width: 1199px) {
  :root { --side: 84px; --pad: 36px; }
  .sidenav { padding: 22px 12px 14px; align-items: center; }
  .side-brand { padding: 0 0 20px; }
  .side-brand span, .side-t, .side-me .side-t, .side-group { display: none; }
  .side-list { align-items: center; }
  .side-item { width: 52px; height: 48px; justify-content: center; padding: 0; }
  .side-item.is-on::before { left: -12px; }
  .side-me { width: 60px; padding: 14px 0 0; justify-content: center; }

  .dash-side .idea-card { height: auto; }
  #v-ia { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
  .ia-agents { display: none; }
  .ia-input, .ia-preview, .ia-foot { left: calc(var(--side) + var(--gutter)); }
}
.ia-strat-btn { margin-top: 14px; }
.mem .del-link { display: block; margin: 2px 0 -8px auto; padding: 4px 2px; min-height: 0; font-size: 12.5px; color: #a3473f; }
:root[data-theme="dark"] .mem .del-link { color: #e58a80; }
.ia-agent-tag { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; opacity: .8; }
.ia-agent-tag.la-tag { color: var(--roxo); opacity: 1; letter-spacing: .02em; }
:root[data-theme="dark"] .ia-agent-tag.la-tag { color: var(--gold-2); }
.ia-msg.ia-ask { font-family: var(--serif); font-size: 17px; line-height: 1.35; }
.ia-msg.ia-ask .ia-agent-tag { font-family: var(--sans); }
.ia-sugs.ia-sugs-agents { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ia-sugs.ia-sugs-agents button { width: auto; flex: 0 0 auto; padding: 10px 14px; }
.ia-sugs.ia-sugs-agents button::before { content: none; }
@media (min-width: 600px) and (max-width: 899px) {
  .agent-filter { flex-wrap: wrap; margin-right: 0; }
  .dash-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* Catálogo de agentes */
.dash-agents-wrap { margin-bottom: 24px; }
.dash-label-row { display: block; margin: 0 0 16px; }
.dash-label-row p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.dash .agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dash .agent { min-width: 0; min-height: 176px; padding: clamp(11px, 2vw, 18px); }
.agent-img { border-radius: 15px; object-position: 50% 34%; }
.agent-img[data-photo="computador"] { object-position: 65% 51%; }
.agent-img[data-photo="mentoria"] { object-position: 53% 53%; }
.agent-img[data-photo="palco"] { object-position: 50% 34%; }
.dash .agent-tags { display: none; }
.agent-open { margin-top: auto; padding-top: 5px; color: var(--gold-ink); font-size: 12px; font-weight: 800; }
@media (min-width: 650px) {
  .dash .agent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1300px) {
  .dash .agent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ===== Nova entrada: catálogo de agentes ===== */
:root { --cat-bg: #faf7fd; --cat-line: #ebe2f5; --chip-bg: rgba(205,184,238,.28); --chip-ink: #4b1659; }
:root[data-theme="dark"] { --cat-bg: #1a1420; --cat-line: #2f2934; --chip-bg: #2a2230; --chip-ink: #dcd2e2; }
.dash-head h1 { font-family: "Playfair Display", serif; font-weight: 600; letter-spacing: -.01em; }
.dash-head h1 em { color: var(--gold-ink); font-style: italic; font-weight: 500; }
:root[data-theme="dark"] .dash-head h1 em { color: var(--gold-2); }
.dash-sub { font-weight: 500; color: var(--ink-2); font-size: 15.5px; }
:root[data-theme="dark"] .dash-sub { color: #cfc6d4; }
.dash-agents-wrap { background: var(--cat-bg); border: 1px solid var(--cat-line); border-radius: 22px; padding: 22px 24px 24px; margin: 0 0 22px; }
.dash-label-row { margin: 0 0 14px; }
.dash-agents-wrap .dash-label { font-size: 24px; }
.dash .agent { gap: 8px; min-height: 0; }
.dash .agent-img, .agent-img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; object-position: 50% 0; background: #e2c27a; border: 0; box-shadow: 0 6px 18px rgba(201,161,74,.22); }
.dash .agent-tags { display: flex; margin-top: 4px; }
.agent-tags span { background: var(--chip-bg); color: var(--chip-ink); }
.dash .agent b { font-family: "Playfair Display", serif; font-weight: 600; font-size: 19px; margin-top: 2px; }
.dash .agent-d { font-size: 13.5px; line-height: 1.45; }
.agent-open { font-size: 13px; padding-top: 8px; }
:root[data-theme="dark"] .agent-open { color: var(--gold-2); }
.agent.compact .agent-img { border-radius: 12px; box-shadow: none; }
@media (max-width: 899px) {
  .dash-agents-wrap { padding: 18px 14px; border-radius: 20px; }
  .dash-agents-wrap .dash-label { font-size: 21px; }
  .agent-filter { margin-right: -14px; padding-right: 14px; }
  .dash .agent-grid { gap: 10px; }
  .dash .agent { padding: 13px; border-radius: 17px; gap: 6px; }
  .dash .agent-img { width: 52px; height: 52px; border-radius: 13px; }
  .dash .agent-tags { display: none; }
  .dash .agent b { font-size: 16.5px; }
  .dash .agent-d { font-size: 12.5px; line-height: 1.4; }
  .agent-open { font-size: 12.5px; }
}
@media (min-width: 650px) and (max-width: 899px) { .dash .agent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Conversa aberta pelo agente: voltar e trocar */
.ia-back { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--lilas-3); color: var(--ink); font: 800 13.5px Manrope, sans-serif; cursor: pointer; }
.ia-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .ia-back { background: #241e29; border-color: #3a3140; color: var(--text); }
.ia-ava.is-agent { border-radius: 12px; border: 0; object-position: 50% 0; background: #e2c27a; }
.ia-row img.ia-ag-ava { border-radius: 9px; object-fit: cover; object-position: 50% 0; background: #e2c27a; border: 0; }
.ia-swap { display: block; margin: 8px 0 4px 46px; padding: 4px 0; border: 0; background: none; color: var(--gold-ink); font: 800 13px Manrope, sans-serif; cursor: pointer; }
:root[data-theme="dark"] .ia-swap { color: var(--gold-2); }
