/* Hera Creator Hub — identidade: roxo #5c019b, rosa #fb4fa5, ciano #5de9f3, dourado #f4af55/#ecbb58 */
:root {
  --purple: #5c019b; --purple-600: #4a017d; --purple-100: #f1e6f8;
  --pink: #fb4fa5; --pink-600: #e03a8f; --cyan: #5de9f3; --cyan-ink: #0b7c86;
  --gold: #f4af55; --gold-2: #ecbb58; --gold-ink: #8a5a12;
  --bg: #f7f6f9; --surface: #ffffff; --surface-2: #f2f0f5; --border: #e4e0ea;
  --text: #1d1726; --muted: #6c6477; --good: #1f9d55; --warn: #d97706; --bad: #d64545;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(20,10,40,.06), 0 4px 16px rgba(20,10,40,.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120d18; --surface: #1b1523; --surface-2: #241c2f; --border: #342a41;
    --text: #f3eff7; --muted: #a79db5; --purple-100: #2c1840; --cyan-ink: #5de9f3; --gold-ink: #f4af55;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--purple); text-decoration: none; }
@media (prefers-color-scheme: dark) { a { color: #c79bf0; } }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.1rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
img { max-width: 100%; }

/* ---------- streamer (mobile-first) ---------- */
.app { max-width: 520px; margin: 0 auto; padding: 0 16px 96px; }
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { font-weight: 800; letter-spacing: .02em; color: var(--purple); font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
@media (prefers-color-scheme: dark) { .brand { color: #c79bf0; } }
.brand-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--purple); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 1.05rem; }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; background: var(--pink); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.top-actions { display: flex; gap: 8px; }
.freshness { font-size: .8rem; color: var(--muted); margin: 0 0 12px; display: flex; gap: 6px; align-items: center; }
.freshness .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.freshness.stale .dot { background: var(--warn); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-hero { background: linear-gradient(135deg, var(--purple) 0%, #7a1bc0 100%); color: #fff; border: 0; }
.card-hero .muted, .card-hero small { color: rgba(255,255,255,.78); }
.big { font-size: 2rem; font-weight: 800; letter-spacing: -.01em; }
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 10px 12px; }
.card:not(.card-hero) .stat { background: var(--surface-2); }
.stat b { display: block; font-size: 1.1rem; }
.stat span { font-size: .78rem; color: inherit; opacity: .85; }
.bar { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.card-hero .bar { background: rgba(255,255,255,.2); }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--pink); }
.bar.cyan > i { background: var(--cyan); }
.bar.gold > i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.bar-label { display: flex; justify-content: space-between; font-size: .85rem; margin: 10px 0 4px; }
.status { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; padding: 4px 10px; border-radius: 999px; }
.status.ok { background: rgba(31,157,85,.14); color: var(--good); }
.status.go { background: rgba(217,119,6,.14); color: var(--warn); }
.card-hero .status.ok { background: rgba(255,255,255,.18); color: #b6f5cf; }
.card-hero .status.go { background: rgba(255,255,255,.18); color: #ffd79a; }
.missions { list-style: none; margin: 0; padding: 0; }
.missions li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); }
.missions li:first-child { border-top: 0; padding-top: 2px; }
.missions .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--purple-100); display: grid; place-items: center; flex: none; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--purple-100); color: var(--purple); }
@media (prefers-color-scheme: dark) { .pill { color: #d9b8f5; } }
.pill.gold { background: rgba(244,175,85,.18); color: var(--gold-ink); }
.pill.cyan { background: rgba(93,233,243,.18); color: var(--cyan-ink); }
.pill.pink { background: rgba(251,79,165,.14); color: var(--pink-600); }
.pill.gray { background: var(--surface-2); color: var(--muted); }
.tier-badge { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #3b2503; display: grid; place-items: center; font-weight: 800; flex: none; text-align: center; line-height: 1; }
.tier-badge small { display: block; font-size: .6rem; color: #3b2503; font-weight: 700; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-top: 1px solid var(--border); }
.list > li:first-child { border-top: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tip { border-left: 4px solid var(--cyan); }
.nav-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.nav-bottom a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; color: var(--muted); padding: 4px 0; }
.nav-bottom a .i { font-size: 1.2rem; }
.nav-bottom a.on { color: var(--purple); font-weight: 700; }
@media (prefers-color-scheme: dark) { .nav-bottom a.on { color: #d9b8f5; } }
@media (min-width: 560px) { .nav-bottom { max-width: 520px; margin: 0 auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 16px 16px 0 0; } }

/* ---------- botões e formulários ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; cursor: pointer; font-family: inherit; text-decoration: none; }
.btn-primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-600); }
.btn-purple { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn-wa { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.btn-sm { padding: 6px 10px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
textarea { min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.errorlist { color: var(--bad); list-style: none; padding: 0; margin: 4px 0; font-size: .85rem; }
.messages { list-style: none; padding: 0; margin: 0 0 12px; }
.messages li { padding: 10px 14px; border-radius: 12px; background: var(--purple-100); margin-bottom: 8px; }
.messages li.error { background: rgba(214,69,69,.12); color: var(--bad); }
.messages li.success { background: rgba(31,157,85,.12); color: var(--good); }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }
.search-box { position: relative; }
.search-box input { padding-left: 38px; font-size: 1rem; }
.search-box::before { content: "🔎"; position: absolute; left: 12px; top: 11px; font-size: .95rem; }
details summary { cursor: pointer; font-weight: 600; }
.bars-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 8px; }
.bars-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; font-size: .72rem; color: var(--muted); }
.bars-chart .col i { width: 100%; max-width: 36px; background: var(--purple); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bars-chart .col.cur i { background: var(--pink); }
.bars-chart .col.best i { background: linear-gradient(180deg, var(--gold), var(--gold-2)); }

/* ---------- gestão (desktop) ---------- */
.g-layout { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.g-side { background: var(--purple); color: #fff; padding: 16px; }
.g-side .brand { color: #fff; margin-bottom: 16px; }
.g-side .brand-dot { background: var(--pink); }
.g-side nav a { display: block; color: rgba(255,255,255,.85); padding: 9px 12px; border-radius: 10px; font-weight: 500; }
.g-side nav a.on, .g-side nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.g-side .who { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 16px; }
.g-main { padding: 20px 16px 40px; min-width: 0; }
@media (min-width: 900px) { .g-layout { grid-template-columns: 232px 1fr; } .g-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } .g-main { padding: 28px 32px 48px; } }
@media (max-width: 899px) { .g-side nav { display: flex; overflow-x: auto; gap: 4px; } .g-side nav a { white-space: nowrap; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.kpi b { display: block; font-size: 1.5rem; }
.kpi span { color: var(--muted); font-size: .85rem; }
.up { color: var(--good); } .down { color: var(--bad); }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th, table.t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.t th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
table.t tr:hover td { background: var(--surface-2); }
.prio-1 { border-left: 4px solid var(--bad); } .prio-2 { border-left: 4px solid var(--warn); } .prio-3 { border-left: 4px solid var(--cyan); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--purple); border-color: var(--pink); }
.cols { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1100px) { .cols { grid-template-columns: 2fr 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters > * { width: auto; min-width: 140px; }
pre.msg { white-space: pre-wrap; font-family: inherit; background: var(--surface-2); padding: 12px; border-radius: 12px; margin: 8px 0; font-size: .92rem; }
.ob-grid td.on { background: rgba(31,157,85,.14); text-align: center; }
.ob-grid td.off { text-align: center; color: var(--muted); }
.ob-grid td.auto { background: rgba(93,233,243,.18); text-align: center; }
.login-wrap { max-width: 420px; margin: 8vh auto; padding: 0 16px; }

/* atalhos do Início */
.help-btn { width: auto; padding: 0 12px; font-size: .9rem; font-weight: 600; gap: 4px; display: inline-flex; align-items: center; }
.shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.shortcut { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; color: var(--text); min-width: 0; }
.shortcut .ico { font-size: 1.4rem; }
.shortcut b { font-size: .92rem; line-height: 1.2; }
.shortcut small { font-size: .72rem; color: var(--muted); line-height: 1.25; }
.shortcut:hover, .shortcut:focus-visible { border-color: var(--pink); }

/* ---------- Início em cards ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1rem; }
.avatar.on { outline: 3px solid var(--pink); outline-offset: 2px; }
.hello { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; }
.hello h1 { margin: 0; font-size: 1.35rem; }
.tile { position: relative; display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 34px 14px 14px; color: var(--text); box-shadow: var(--shadow); min-width: 0; }
.tile::after { content: "›"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--muted); line-height: 1; }
.tile:hover, .tile:focus-visible { border-color: var(--pink); }
.tile .label { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tile .value { font-size: 1.15rem; font-weight: 800; margin-top: 4px; line-height: 1.25; }
.tile .sub { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.tile .bar { margin-top: 8px; height: 8px; }
.tile.hero { background: linear-gradient(135deg, var(--purple) 0%, #7a1bc0 100%); color: #fff; border: 0; }
.tile.hero .label, .tile.hero .sub, .tile.hero::after { color: rgba(255,255,255,.8); }
.tile.hero .value { font-size: 2rem; }
.tile.hero .bar { background: rgba(255,255,255,.2); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.stack { display: grid; gap: 10px; margin-bottom: 10px; }
.tile.compact { padding: 12px 30px 12px 12px; }
.tile.compact::after { right: 10px; }
.tile .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: 0; }
.tip-line { font-size: .85rem; color: var(--muted); padding: 4px 2px 12px; }
.tile .label .status { text-transform: none; letter-spacing: 0; font-size: .8rem; padding: 2px 8px; }

/* ---------- Desempenho compacto ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; margin: 2px 0 12px; gap: 4px; }
.seg a { text-align: center; padding: 8px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.perf-hero { padding: 14px 16px; }
.perf-hero .big { font-size: 1.8rem; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kv > div { background: rgba(255,255,255,.12); border-radius: 10px; padding: 8px 6px; text-align: center; min-width: 0; }
.kv b { display: block; font-size: .98rem; }
.kv span { display: block; font-size: .68rem; opacity: .85; line-height: 1.2; }
.perf-note { margin: 8px 0 0; font-size: .8rem; opacity: .85; }
.compact-card { padding: 12px 14px; }
.weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.weeks li { display: grid; grid-template-columns: 78px 1fr; gap: 2px 10px; align-items: center; font-size: .85rem; }
.weeks .wk { color: var(--muted); font-size: .78rem; }
.weeks .wbar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.weeks .wbar i { display: block; height: 100%; background: var(--purple); border-radius: 4px; }
.weeks .wv { grid-column: 2; font-size: .8rem; }
.months li { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; font-size: .9rem; }
.bars-chart { height: 96px; }

/* ---------- Meu progresso (tela inicial do criador) ---------- */
.pill.seal { background: rgba(255,255,255,.2); color: #fff; }
.weeks li.weak .wbar i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.weeks .wnote { color: var(--gold-ink); }
.months .wbar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; min-width: 24px; }
.months .wbar i { display: block; height: 100%; background: var(--purple); border-radius: 4px; }
.months li.best .wbar i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.more-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
a.tier-badge { text-decoration: none; }

.bars-chart .track { height: 76px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bars-chart .track i { width: 100%; max-width: 36px; }

/* ---------- Campanhas, Academy, Dúvidas compactas ---------- */
.seg .count { margin-left: 4px; }
.hint { font-size: .8rem; color: var(--muted); margin: -4px 2px 10px; }
.tile .label .pill { text-transform: none; letter-spacing: 0; }
details.course summary { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; }
details.course summary::-webkit-details-marker { display: none; }
details.course .course-title { font-weight: 700; }
details.course .course-bar { grid-column: 1 / -1; height: 6px; }
details.ask summary { font-weight: 700; color: var(--purple); }
@media (prefers-color-scheme: dark) { details.ask summary { color: #d9b8f5; } }
.tiles.cats .tile { padding-top: 12px; padding-bottom: 12px; }

/* ---------- Meu plano (passo 3.6) ---------- */
[x-cloak] { display: none !important; }
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daypick label { margin: 0; }
.daypick input { position: absolute; opacity: 0; pointer-events: none; }
.daypick span { display: block; text-align: center; padding: 10px 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .85rem; cursor: pointer; }
.daypick input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; }
.daypick input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 1px; }

/* ---------- Resumo do mês no Meu progresso ---------- */
.month-summary { border-left: 4px solid var(--gold); }
.summary-list { margin: 0; padding-left: 18px; }
.summary-list li { margin: 4px 0; }

/* ---------- Fila do dia: cada item é um card (layout de 19/11) ----------
   cabeçalho (@, etiquetas, ações em ícone) · motivo · mensagem em largura total · rodapé com os botões principais */
table.t.queue, table.t.queue tbody, table.t.queue tr, table.t.queue tr > td { display: block; }
table.t.queue tr > td { border-bottom: 0; padding: 6px 2px; }
table.t.queue tr:hover > td { background: none; }
table.t.queue tr.qcard { background: var(--surface); border: 1px solid var(--border); border-left-width: 4px;
  border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 0 0 12px; }
table.t.queue tr.qcard.prio-1 { border-left-color: var(--bad); }
table.t.queue tr.qcard.prio-2 { border-left-color: var(--warn); }
table.t.queue tr.qcard.prio-3 { border-left-color: var(--cyan); }
table.t.queue tr.qcard > td { padding: 0; }
.qhead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qname { font-weight: 700; color: var(--purple); font-size: 15px; margin-right: 2px; }
@media (prefers-color-scheme: dark) { .qname { color: #d9b8f5; } }
.qtag { font-size: 12px; line-height: 1.4; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.qtag.red { background: #fcebeb; color: #791f1f; }
.qtag.green { background: #e6f6ec; color: #1b6b3a; }
.qtag.amber { background: #fdf1dc; color: #8a5a12; }
.qicons { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.qicon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
.qicon:hover { background: var(--surface-2); }
.qicon svg, .qfoot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
details.qmore { position: relative; }
details.qmore > summary { list-style: none; }
details.qmore > summary::-webkit-details-marker { display: none; }
.qpop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 260px; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; box-shadow: var(--shadow); }
.qpop textarea { min-height: 60px; }
.qreason { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
pre.qmsg { white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.6; background: var(--surface-2);
  border-radius: 8px; padding: 10px 12px; margin: 10px 0 12px; width: 100%; box-sizing: border-box; color: var(--text); }
.qedit { margin: 10px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.qedit[hidden], .qedit-why[hidden] { display: none; }
.qedit textarea { width: 100%; box-sizing: border-box; font-size: 14px; line-height: 1.6; }
.qedit-why { display: flex; gap: 6px; flex-wrap: wrap; }
.qedit-why select, .qedit-why input { flex: 1; min-width: 180px; }
.qwarn { margin: 0; color: #8a5a12; }
@media (prefers-color-scheme: dark) { .qwarn { color: #f0c27a; } }
.qfoot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.qmain { display: inline-flex; gap: 8px; align-items: center; }
.qfoot .btn { font-size: 14px; padding: 8px 16px; }
.qfoot .qsent { background: var(--surface); border: 1px solid var(--border); }
.qfoot .qwa { font-weight: 700; }
@media (max-width: 600px) {
  .qicons { margin-left: 0; }
  .qfoot, .qmain { flex-direction: column; align-items: stretch; width: 100%; }
  .qfoot .btn, .qfoot details.qmore, .qfoot details.qmore > summary { width: 100%; }
  .qpop { left: 0; right: auto; width: 100%; box-sizing: border-box; }
}

/* =====================================================================
   Tema Hera Agency — igual ao rascunho do Canva (Aline, nov/2026)
   Fica no fim do arquivo e só troca aparência: fundo de ondas, menu
   claro, cartões translúcidos, cores e fontes da marca.
   Para voltar ao tema anterior, basta apagar este bloco.
   ===================================================================== */
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat.7e86d602448c.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans.c81b225432d8.woff") format("woff"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Anton"; src: url("../fonts/Anton.02fc47cbd4f4.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Anonymous Pro"; src: url("../fonts/AnonymousPro.cb8c3c60636f.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --purple: #8f6519; --purple-600: #74510f; --purple-100: #f6ead0;
  --pink: #ef4f9b; --pink-600: #b03a74; --cyan: #2bc4c4; --cyan-ink: #1b6466;
  --gold: #e3b23c; --gold-2: #e9d3a1; --gold-ink: #8f6519;
  --teal: #17736e; --teal-600: #115c58; --brown: #553a2d; --sand: #e9d3a1; --cream: #fffaf1; --num: #b8862b;
  --bg: #e9ecfb; --surface: rgba(255,255,255,.72); --surface-2: #fffaf1; --border: rgba(138,112,98,.14);
  --text: #553a2d; --muted: #8a7062; --good: #17736e; --warn: #c06a1b; --bad: #c4405a;
  --radius: 22px; --radius-sm: 14px; --shadow: none;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Montserrat", "DM Sans", sans-serif;
  --font-fun: "Anton", "Montserrat", sans-serif;
  --font-mono: "Anonymous Pro", ui-monospace, monospace;
  color-scheme: light;
}
/* o Canva é claro: por enquanto o tema escuro do celular não muda o visual */
@media (prefers-color-scheme: dark) {
  :root { --bg: #e9ecfb; --surface: rgba(255,255,255,.72); --surface-2: #fffaf1; --border: rgba(138,112,98,.14);
    --text: #553a2d; --muted: #8a7062; --purple-100: #f6ead0; --cyan-ink: #1b6466; --gold-ink: #8f6519; color-scheme: light; }
  a, .brand, .g-side .brand, .pill, .nav-bottom a.on, details.ask summary { color: inherit; }
}

/* fundo de ondas do Canva (static/img/ondas.jpg) */
html { background: #e9ecfb url("../img/ondas.025a80b40dfc.jpg") center / cover fixed no-repeat; min-height: 100%; }
body { background: transparent; color: var(--text); font-family: var(--font); }
a { color: var(--purple); }
h1, h2, h3, .kpi b, .tile .value, .big { font-family: var(--font-title); color: var(--brown); }
h1 { font-weight: 500; font-size: 2.6rem; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-weight: 500; font-size: 1.35rem; }
h3 { font-weight: 600; }

/* cartões brancos translúcidos */
.card, .kpi, .tile, .shortcut { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: none; }
.card { padding: 22px 24px; }
.kpis { gap: 14px; margin: 14px 0 18px; }
.kpi { padding: 20px 22px; }
.kpi b { font-size: 2.3rem; font-weight: 600; color: var(--brown); line-height: 1.1; }
.kpi span { font-size: .8rem; }
.kpi:last-child b { color: var(--num); }
.card-hero, .tile.hero { background: var(--surface); color: var(--text); border: 0; }
.card-hero .muted, .card-hero small, .tile.hero .label, .tile.hero .sub { color: var(--muted); }
.card-hero b, .card-hero h2, .card-hero h3 { color: var(--brown); }
.tile.hero .value, .card-hero .big { color: var(--num); }
.tile.hero::after, .tile::after { color: var(--num); }
.card-hero .stat, .card:not(.card-hero) .stat, .kv > div { background: var(--cream); }
.pill.seal { background: #fde0c2; color: #b8641b; }

/* marca */
.brand { font-family: var(--font-title); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: #9a6b3f; display: flex; align-items: center; gap: 8px; }
.brand-logo { display: block; width: auto; height: 34px; }
.brand-dot { display: none; }

/* botões pequenos e arredondados: branco, verde-água (WhatsApp) e dourado (Enviei / principal) */
.btn { border-radius: 999px; border: 1px solid rgba(138,112,98,.25); background: #fff; color: var(--brown); font-family: var(--font); font-weight: 600; }
.btn-sm { padding: 5px 12px; font-size: .78rem; }
.btn-primary { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-600); }
.btn-purple { background: #c9a03d; border-color: #c9a03d; color: #fff; }
.btn-purple:hover { background: var(--purple); }
.btn-wa { background: #2bb3a8; border-color: #2bb3a8; color: #fff; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], select, textarea { border-radius: 14px; background: rgba(255,255,255,.9); border-color: rgba(138,112,98,.2); }
input:focus, select:focus, textarea:focus { outline-color: var(--purple); }

/* etiquetas do Canva */
.pill { background: #e6d9fb; color: #6b45b8; font-weight: 600; }
.pill.gold { background: #fde0c2; color: #b8641b; }
.pill.cyan { background: #cdeff0; color: #1b6466; }
.pill.pink { background: #fbd3e6; color: #b03a74; }
.pill.gray { background: #efe8e1; color: #5e4a3e; }
.status.ok { background: #cdeff0; color: #1b6466; }
.status.go { background: #fde0c2; color: #b8641b; }

/* barras finas nas cores das ondas */
.bar, .weeks .wbar, .months .wbar { background: #efe6dc; height: 8px; }
.bar > i { background: #9b5cf0; }
.bar.cyan > i { background: #2bc4c4; }
.bar.gold > i, .months li.best .wbar i, .bars-chart .col.best i { background: #e3b23c; }
.weeks li.weak .wbar i { background: #f28c28; }
.weeks .wbar i, .months .wbar i, .bars-chart .col i { background: #9b5cf0; }
.bars-chart .col.cur i { background: #ef4f9b; }
.card-hero .bar, .tile.hero .bar { background: #efe6dc; }
.card-hero .bar > i, .tile.hero .bar > i { background: #e3b23c; }
.tier-bars .bar:nth-of-type(10n+2) > i { background: #9b5cf0; }
.tier-bars .bar:nth-of-type(10n+4) > i { background: #f28c28; }
.tier-bars .bar:nth-of-type(10n+6) > i { background: #e3b23c; }
.tier-bars .bar:nth-of-type(10n+8) > i { background: #2bc4c4; }
.tier-bars .bar:nth-of-type(10n+10) > i { background: #ef4f9b; }
.bar-label { font-size: .85rem; margin: 14px 0 6px; }

/* tabelas comuns */
table.t th { background: transparent; color: var(--muted); border-bottom: 1px solid var(--border); }
table.t td { border-bottom: 1px solid var(--border); }
table.t tr:hover td { background: rgba(255,250,241,.7); }
.tabs a.on { color: var(--brown); border-color: var(--purple); }
pre.msg { background: var(--cream); border-radius: 14px; }
.messages li { background: rgba(255,255,255,.8); border-radius: 16px; }
.freshness { font-size: .75rem; }
.freshness .dot { background: var(--teal); }

/* fila do dia em cartõezinhos creme, como no Canva */
table.queue, table.queue tbody { display: block; }
table.queue tr { display: block; background: var(--cream); border-radius: 18px; padding: 14px 16px; margin: 0 0 12px; border: 0; }
table.queue tr:hover td { background: transparent; }
table.queue td { display: block; border: 0; padding: 0; }
table.queue td + td { margin-top: 6px; }
table.queue td:last-child { white-space: normal !important; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: flex-start; }
table.queue td:last-child > span { display: contents; }
table.queue tr.q-block { background: transparent; padding: 6px 2px 4px; margin: 0; }
table.queue tr.q-block b { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--num); }
table.queue .q-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
table.queue .q-head a { color: var(--brown); }
table.queue .q-tag { font-size: .72rem; }
table.queue .prio-1 .q-tag, table.queue tr.prio-1 .q-tag { background: #fbd3e6; color: #b03a74; }
table.queue tr.prio-2 .q-tag { background: #fde0c2; color: #b8641b; }
table.queue tr.prio-3 .q-tag { background: #e6d9fb; color: #6b45b8; }
.prio-1, .prio-2, .prio-3 { border-left: 0; }

/* ---------- gestão: menu claro e translúcido ---------- */
.g-side { background: rgba(255,255,255,.6); color: var(--brown); }
.g-side .brand { color: #9a6b3f; flex-direction: column; gap: 10px; margin: 10px 0 30px; text-align: center; letter-spacing: .32em; font-size: .78rem; }
.g-side .brand-logo { height: 58px; }
.g-side nav a { color: var(--brown); font-family: var(--font); font-weight: 500; font-size: .92rem; padding: 7px 14px; border-radius: 12px; }
.g-side nav a:hover { background: rgba(233,211,161,.4); color: var(--brown); }
.g-side nav a.on { background: #e9d3a1; color: var(--brown); font-weight: 600; }
.g-side .who { color: var(--muted); font-size: .78rem; margin-top: 24px; }
@media (min-width: 900px) {
  .g-layout { grid-template-columns: 236px 1fr; }
  .g-side { margin: 18px 0 18px 18px; height: calc(100vh - 36px); top: 18px; border-radius: 28px; padding: 22px 18px; }
  .g-main { padding: 26px 32px 48px 26px; }
}

/* ---------- app do criador ---------- */
.topbar { background: transparent; }
.icon-btn { border-radius: 50%; background: var(--surface); border: 0; }
.avatar { background: linear-gradient(135deg, #e9c46a, #b8862b); font-family: var(--font-title); }
.avatar.on { outline-color: var(--pink); }
.nav-bottom { background: rgba(255,255,255,.82); border-top: 0; }
.nav-bottom a.on { color: var(--purple); }
@media (min-width: 560px) { .nav-bottom { border: 0; border-radius: 24px 24px 0 0; } }
.hello h1 { text-transform: none; font-size: 1.5rem; font-weight: 600; }
.seg { background: rgba(255,255,255,.55); border-radius: 999px; }
.seg a { border-radius: 999px; }
.seg a.on { background: #fff; color: var(--brown); box-shadow: none; }
.tip { border-left-color: var(--sand); }

/* ---------- caixinha divertida (incentivos e campanhas internas) ----------
   Uso: <section class="fun-box"><div class="fun-box-bar"><span>Título</span><i>✕ ☐ —</i></div><div class="fun-box-body">...</div></section> */
.fun-box { background: #fff; border: 4px solid #2b2220; border-radius: 18px; box-shadow: 6px 6px 0 #2b2220; margin-bottom: 16px; overflow: hidden; color: #2b2220; }
.fun-box-bar { background: #f7a8d0; border-bottom: 4px solid #2b2220; display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; font-family: var(--font-fun); font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; }
.fun-box-bar i { font-style: normal; font-family: var(--font-mono); font-weight: 700; letter-spacing: .2em; }
.fun-box-body { padding: 14px 16px; font-family: var(--font-mono); font-size: 1rem; }
.fun-box-body .fun-big { font-family: var(--font-fun); font-size: 2.2rem; line-height: 1; color: #ef4f9b; }
table.queue tr.q-block td { display: block; text-align: left; }
.kpi b { font-size: clamp(1.4rem, 2vw, 2.3rem); white-space: nowrap; }

/* ficha do criador: abas em pílula, selo de Tier dourado, cartões internos creme */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: rgba(255,255,255,.72); border: 0; border-radius: 999px; padding: 5px; margin: 6px 0 18px; max-width: 100%; }
.tabs a { padding: 7px 16px; border-radius: 999px; border: 0; color: var(--brown); font-size: .85rem; font-weight: 500; }
.tabs a.on { background: var(--brown); color: #fff; }
.tier-badge { background: linear-gradient(135deg, #e9c46a, #b8862b); color: #fff; border-radius: 18px; font-family: var(--font-title); }
.tier-badge small { color: rgba(255,255,255,.85); }
.card .kpi { background: var(--cream); }
.card .kpi b { font-size: 1.7rem; }
.card h2 small { color: var(--muted); font-family: var(--font); font-size: .8rem; font-weight: 400; }
.card .list > li { border-top-color: var(--border); }
.card label { color: var(--brown); font-weight: 600; font-size: .82rem; }
.chips .btn-purple { background: var(--brown); border-color: var(--brown); }
.card .kpi:last-child b { color: var(--brown); }

/* fila do dia no layout novo da Mari (cards .qcard, 19/11) com o visual do Canva */
table.t.queue tr.qcard { background: var(--cream); border: 0; border-radius: 18px; padding: 14px 18px; }
table.t.queue tr.qcard > td { display: block !important; margin-top: 0; white-space: normal !important; padding: 0; }
.qcard .qname { color: var(--brown); font-family: var(--font-title); font-weight: 600; }
.qcard .qtag { background: #efe8e1; color: #5e4a3e; }
.qcard .qtag.red { background: #fbd3e6; color: #b03a74; }
.qcard .qtag.green { background: #cdeff0; color: #1b6466; }
.qcard .qtag.amber { background: #fde0c2; color: #b8641b; }
.qcard.prio-1 .qtag:nth-of-type(1) { box-shadow: inset 0 0 0 1px rgba(176,58,116,.25); }
.qcard .qicon { background: #fff; border: 1px solid rgba(138,112,98,.2); border-radius: 50%; color: var(--brown); }
.qcard .qicon:hover { background: #f6ead0; }
.qcard pre.qmsg { background: rgba(255,255,255,.8); border-radius: 14px; color: var(--text); }
.qcard .qreason { color: var(--muted); }
.qcard .qfoot .qsent { background: #c9a03d; border-color: #c9a03d; color: #fff; }
.qcard .qfoot .qsent:hover { background: var(--purple); }

/* ---------- telas Criadores, Onboarding, Graduação e Campanhas (Canva, 29/11) ---------- */
.page-head { align-items: flex-start; gap: 16px; }
.page-head h1 { margin-bottom: 2px; }
.page-sub { margin: 0 0 16px; color: var(--muted); font-size: .85rem; }
.card h2 small { display: block; margin-top: 4px; }

/* filtros num cartão claro, campos em pílula */
.filters.card { padding: 14px 16px; gap: 8px; align-items: center; }
.filters.card input, .filters.card select { border-radius: 999px; padding: 7px 14px; font-size: .85rem; min-width: 120px; }
.filters.card input[type=search] { flex: 1 1 220px; }

/* tabelas dentro de cartão branco, linhas com respiro */
.list-card { padding: 8px 10px; }
.list-card table.t th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; padding: 12px 10px; }
.list-card table.t td { padding: 12px 10px; vertical-align: middle; }
.list-card table.t td a b { color: var(--brown); font-family: var(--font-title); font-weight: 600; }
.list-card table.t tr:last-child td { border-bottom: 0; }
.list-card table.t td.num { color: var(--brown); font-weight: 600; }
.grad-table tr.prio-1 td:first-child { box-shadow: inset 4px 0 0 #ef4f9b; border-radius: 0; }

/* Onboarding: trilha dos novatos em cartõezinhos creme */
.trail { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trail-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(140px, 1.3fr) minmax(120px, .9fr) minmax(160px, 1.6fr) auto; gap: 16px; align-items: center; background: var(--cream); border-radius: 18px; padding: 14px 18px; }
.trail-who b { color: var(--brown); font-family: var(--font-title); font-weight: 600; }
.trail-who small { display: block; color: var(--muted); }
.trail-day small { color: var(--muted); display: block; margin-bottom: 6px; }
.trail-day .bar > i { background: #9b5cf0; }
.trail-nums small, .trail-next small { color: var(--text); line-height: 1.45; }
.trail-tag { text-align: right; }
.trail-tag .pill { min-width: 92px; text-align: center; }
@media (max-width: 1100px) { .trail-row { grid-template-columns: 1fr 1fr; } .trail-tag { text-align: left; } }
.ob-grid td.on { background: rgba(23,115,110,.12); }
.ob-grid td.auto { background: #cdeff0; }
.ob-grid td .btn-sm { background: transparent; border: 0; padding: 2px 6px; }

/* Campanhas: caixinha divertida em destaque + colunas como no Canva */
.camp-top { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.camp-col { display: flex; flex-direction: column; gap: 18px; }
.camp-col .card { margin: 0; }
@media (max-width: 1000px) { .camp-top { grid-template-columns: 1fr; } }
.camp-hero { margin: 0; }
.camp-hero .fun-box-bar { justify-content: flex-start; }
.camp-hero .fun-box-body { text-align: center; padding: 22px 22px 18px; }
.fun-hey { font-family: var(--font-fun); font-size: 2.6rem; line-height: .95; text-transform: uppercase; margin: 4px 0 12px; color: #2b2220; }
.fun-title { font-family: var(--font-fun); font-size: 2rem; line-height: 1; text-transform: uppercase; margin: 10px 0 8px; color: #2b2220; }
.fun-sub { margin: 4px 0; }
.fun-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0 12px; }
.fun-actions .btn { font-family: var(--font); }
.fun-actions .btn-purple { background: #17736e; border-color: #17736e; }
.fun-scroll { height: 14px; border: 3px solid #2b2220; border-radius: 999px; background: #fff; overflow: hidden; }
.fun-scroll i { display: block; height: 100%; background: #e2554a; border-radius: 999px; }
.kpis.mini { grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; }
.kpis.mini .kpi { background: var(--cream); text-align: center; padding: 16px 10px; }
.kpis.mini .kpi b { font-size: 1.3rem; color: var(--num); white-space: normal; }
.cream-list > li { background: var(--cream); border-radius: 14px; padding: 10px 14px; margin: 0 0 8px; border: 0 !important; }
.follow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.follow-grid .card { margin: 0; }
.follow-grid .list > li { background: var(--cream); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; border: 0; }
.filters.card .btn { padding: 7px 22px; font-size: .85rem; min-width: 0; }

/* app do criador (celular): título das páginas no tamanho do "Oi, ..." da tela inicial; o título grande em
   maiúsculas do Canva fica para a gestão (ajuste de 30/11, "MINHAS BATALHAS" quebrava em 375px) */
.app h1, .login-wrap h1 { text-transform: none; font-size: 1.5rem; font-weight: 600; letter-spacing: 0; }

/* Gestão com fundo liso e cartões brancos sólidos (pedido de 01/12/2026). Só nas telas da gestão
   (<html class="gestao">, em templates/gestao/base.html); o app do criador continua com as ondas. */
html.gestao { --surface: #fff; background: #f4f1ec; }
html.gestao .card, html.gestao .kpi, html.gestao .tile, html.gestao .shortcut, html.gestao .g-side { background: #fff; backdrop-filter: none; }
html.gestao .card { border: 1px solid #ece4da; }
html.gestao .card .kpi { background: var(--cream); }
/* celular: o menu vira uma faixa que rola de lado, sem alargar a página (antes empurrava tudo para ~2.300 px) */
@media (max-width: 899px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); }
  .g-side { min-width: 0; }
  .g-side .brand { margin: 0 0 10px; }
  .g-side .brand-logo { height: 40px; }
  .g-side .who { margin-top: 10px; }
}
.cols > * { min-width: 0; }  /* as colunas encolhem; tabela larga rola dentro do próprio quadro */
html.gestao .card select, html.gestao .card input, html.gestao .card textarea { max-width: 100%; }

/* Ficha do criador: cabeçalho e alertas com a cor pela gravidade (01/12/2026) */
.creator-head { flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
h1.creator-handle { font-size: 23px; font-weight: 500; text-transform: none; letter-spacing: 0; margin: 0; line-height: 1.2; word-break: break-all; }
.tier-badge.sm { width: 40px; height: 40px; border-radius: 12px; font-size: .95rem; }
.tier-badge.sm small { font-size: .48rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; line-height: 1.3; }
.chip.red { background: #c4405a; color: #fff; }
.chip.yellow { background: #fde7b0; color: #7a4e00; }
.chip.gray { background: #efe8e1; color: #5e4a3e; font-weight: 500; }
.head-notes { margin: 0 0 12px; }
.empty-line { padding: 12px 18px; }

/* Ficha, etapa 3 (01/12/2026): botões do cabeçalho, tags, janelas e o campo único da linha do tempo */
.head-actions { gap: 6px; flex-wrap: wrap; align-items: center; }
.btn-ghost { background: transparent; border-color: #e3d8cc; color: var(--brown); font-weight: 500; }
.btn-ghost:hover { background: var(--cream); }
.chip.tag { background: #ece4fb; color: #5b3fa3; font-weight: 500; }
.chip-btn { border: 1px solid #c4405a; background: #fff; color: #c4405a; border-radius: 999px; font: 600 .76rem var(--font); padding: 3px 10px; cursor: pointer; }
dialog.sheet { border: 0; padding: 0; border-radius: 22px; width: min(540px, calc(100vw - 32px)); max-width: none; max-height: 86vh;
  background: #fff; color: var(--text); box-shadow: 0 24px 70px rgba(60, 35, 20, .28); }
dialog.sheet::backdrop { background: rgba(50, 30, 20, .38); }
dialog.sheet .sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 20px 6px; }
dialog.sheet .sheet-head h2 { margin: 0; font-size: 1.2rem; }
dialog.sheet .sheet-body { padding: 4px 20px 22px; overflow-y: auto; max-height: calc(86vh - 64px); }
@media (max-width: 640px) {  /* celular: abre de baixo para cima */
  dialog.sheet { width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 88vh; }
  dialog.sheet[open] { animation: sheet-up .22s ease-out; }
  dialog.sheet .sheet-body { max-height: calc(88vh - 64px); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }
.register { background: var(--cream); border-radius: 16px; padding: 12px 14px; margin: 8px 0 12px; }
.register .seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.register .seg label { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 5px 11px; border-radius: 999px; background: #fff;
  border: 1px solid #e3d8cc; font: 500 .8rem var(--font); color: var(--brown); cursor: pointer; }
.register .seg label:has(input:checked) { background: #553a2d; border-color: #553a2d; color: #fff; }
.register .seg input { position: absolute; opacity: 0; pointer-events: none; }
.register .reg-fields { gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.register .reg-fields > div { flex: 1; min-width: 150px; }
.register textarea { min-height: 64px; background: #fff; }
.register .reg-foot { justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.register .remind { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .8rem; font-weight: 500; }
.register .remind input { width: auto; padding: 4px 8px; }
.tl-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.tl-filters .btn.on { background: #553a2d; color: #fff; border-color: #553a2d; }
.tl-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 2px 7px;
  border-radius: 6px; background: #efe8e1; color: #5e4a3e; vertical-align: 1px; }
.tl-tag.k-nota, .tl-tag.k-escreveu { background: #e6d9fb; color: #5b3fa3; }
.tl-tag.k-visita { background: #cdeff0; color: #1b6466; }
.tl-tag.k-motivo { background: #fde0c2; color: #8f4f12; }
.tl-tag.k-restricao { background: #fbd3dc; color: #a8324b; }
.tl-tag.k-lembrete { background: #fde7b0; color: #7a4e00; }
.tl-reminders > li { background: #fff8e6; border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; border: 0; }
[x-cloak] { display: none !important; }
.onb-top .bar { margin-bottom: 4px; }

/* ---------- app do criador: ajustes da avaliação da Mariana (02/12/2026) ---------- */
/* 14. topo fixo, sólido, com o logo sempre visível ao rolar (ocupa a largura toda da coluna do app) */
.app > .topbar { background: #fffaf1; margin: 0 -16px; padding: 10px 16px; box-shadow: 0 1px 0 rgba(85,58,45,.08), 0 4px 12px rgba(85,58,45,.06); }
/* 15. menu de baixo bem mais sólido */
.nav-bottom { background: rgba(255,250,241,.97); box-shadow: 0 -4px 14px rgba(85,58,45,.08); }
/* 1. pedido de batalha: as duas datas lado a lado, menores, sem passar da largura */
.grid-2.dates { gap: 8px; }
.grid-2.dates > div { min-width: 0; }
.grid-2.dates label { font-size: .82rem; }
.grid-2.dates input[type=date] { min-width: 0; padding: 8px 8px; font-size: .9rem; }
/* 13. aulas de idiomas: dois botões pequenos acima das aulas */
.lang-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
/* segunda rodada (02/12/2026): topo com as pontas de baixo arredondadas, como o menu de baixo, que também arredonda no celular */
.app > .topbar { border-radius: 0 0 24px 24px; margin-bottom: 8px; }
.nav-bottom { border-radius: 24px 24px 0 0; }
/* resumo do mês como botão (5-A) e calculadora curta (4-A) */
.summary-btn { margin-bottom: 10px; text-align: left; justify-content: flex-start; }
.calc-result { margin: 0; font-size: 1.15rem; }
.calc-more { margin-top: 6px; }
.calc-more summary { cursor: pointer; color: var(--muted); list-style: none; }
.calc-more summary::-webkit-details-marker { display: none; }
.calc-more summary::after { content: " ›"; }
.calc-more[open] summary::after { content: " ⌄"; }
/* calendário das campanhas (02/12/2026, item 10; web/campaign_calendar.py) */
.camp-cal .cal-head { align-items: center; margin-bottom: 6px; }
.camp-cal .cal-head b { text-transform: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-wd { text-align: center; font-size: .68rem; font-weight: 600; color: var(--muted); padding: 2px 0 4px; }
.cal-day { min-height: 44px; border-radius: 10px; background: rgba(255,255,255,.7); padding: 3px 2px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cal-day.out { background: transparent; }
.cal-day .n { font-size: .78rem; line-height: 1; }
.cal-day.today { outline: 2px solid var(--purple); }
.cal-day.today .n { font-weight: 700; }
.cal-day .dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.cal-day .dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.cal-day .dots small { font-size: .6rem; color: var(--muted); }
.cal-legend { margin-top: 10px; }
.cal-chip { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; margin-top: 4px; }
/* 1:1 marcado pelo app (02/12/2026, item 9): horas livres em botões pequenos */
.meet-times { display: flex; flex-wrap: wrap; gap: 6px; }
.meet-times form { margin: 0; }
.meet-times .btn { min-width: 64px; }
