/* Casa do Criador — identidade: noite índigo, luz dourada, papel creme. */
:root {
  --noite: #1f1b3b;
  --noite-2: #2b2652;
  --noite-3: #3a3468;
  --ouro: #d9a54a;
  --ouro-forte: #b9822d;
  --ouro-claro: #f6e3b8;
  --creme: #f7f1e7;
  --papel: #fffdf8;
  --tinta: #26223f;
  --suave: #6b6587;
  --linha: #e6ddcd;
  --antes: #b4553f;
  --depois: #3d6e8e;
  --verde: #4d7b58;
  --alerta: #a8432f;
  --alerta-fundo: #fbebe5;
  --raio: 18px;
  --raio-p: 12px;
  --sombra: 0 1px 2px rgba(31, 27, 59, .06), 0 8px 24px rgba(31, 27, 59, .07);
  --serifa: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--tinta);
  background: var(--creme);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serifa); font-weight: 600; line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
a { color: var(--ouro-forte); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.15em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--noite); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .2s ease; text-align: center; line-height: 1.2;
}
.btn:hover { background: var(--noite-2); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-ouro { background: var(--ouro); color: var(--noite); }
.btn-ouro:hover { background: #e4b663; }
.btn-claro { background: transparent; color: var(--tinta); border-color: var(--linha); }
.btn-claro:hover { background: #fff; }
.btn-perigo { background: transparent; color: var(--alerta); border-color: #e9c3b8; }
.btn-perigo:hover { background: var(--alerta-fundo); }
.btn-p { min-height: 38px; padding: .4em .9em; font-size: .92rem; }
.btn-bloco { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.linha-btns { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.campo { display: block; margin-bottom: 1rem; }
.campo > span, .rotulo { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .3rem; color: var(--tinta); }
.campo small, .dica { display: block; color: var(--suave); font-size: .85rem; margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: .6em .8em; border-radius: var(--raio-p);
  border: 1.5px solid var(--linha); background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--ouro); outline: none; box-shadow: 0 0 0 3px rgba(217, 165, 74, .25); }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

/* Campo de data: rótulo dd/mm/aaaa por cima do input nativo transparente */
.campo-data { position: relative; display: block; min-height: 46px; border-radius: var(--raio-p); border: 1.5px solid var(--linha); background: #fff; }
.campo-data .data-rotulo { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 2.6em 0 .8em; pointer-events: none; font-variant-numeric: tabular-nums; }
.campo-data .data-rotulo.vazio { color: #9a94b0; }
.campo-data::after { content: ""; position: absolute; right: .8em; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6587' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.campo-data input[type=date] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; min-height: 0; }
.campo-data:focus-within { border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(217, 165, 74, .25); }

/* interruptor */
.interruptor { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; user-select: none; min-height: 40px; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor .trilho { width: 46px; height: 26px; border-radius: 99px; background: #d8d1c3; position: relative; flex: none; transition: background .2s; }
.interruptor .trilho::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.interruptor input:checked + .trilho { background: var(--verde); }
.interruptor input:checked + .trilho::after { transform: translateX(20px); }
.interruptor input:focus-visible + .trilho { outline: 3px solid var(--ouro); outline-offset: 2px; }

/* ---------- cartões ---------- */
.cartao { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.1rem; box-shadow: var(--sombra); margin-bottom: 1rem; min-width: 0; }
.cartao > :last-child { margin-bottom: 0; }
.cartao-noite { background: linear-gradient(160deg, var(--noite) 0%, var(--noite-2) 100%); color: #f3eefc; border-color: transparent; position: relative; overflow: hidden; }
.cartao-noite h2, .cartao-noite h3 { color: #fff; }
.cartao-noite p { color: #d9d3ee; }
.cartao-noite::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 227, 184, .45), rgba(217, 165, 74, 0) 70%); pointer-events: none; }
.cartao-alerta { background: var(--alerta-fundo); border-color: #f0c8bb; }
.cartao-aviso { background: #fbf3e2; border-color: #efdcb4; }
.sobre { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--suave); margin-bottom: .35rem; }
.cartao-noite .sobre { color: var(--ouro-claro); }
.etiqueta { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15em .6em; border-radius: 99px; background: #efe7d7; color: var(--tinta); white-space: nowrap; }
.etiqueta.ouro { background: var(--ouro-claro); color: #6b4a12; }
.etiqueta.verde { background: #dfeee2; color: #2f5b39; }
.etiqueta.alerta { background: #f8d9cf; color: #87321f; }
.etiqueta.noite { background: var(--noite-3); color: #fff; }

.grade { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.kpi { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio-p); padding: .8rem .9rem; min-width: 0; }
.kpi b { display: block; font-family: var(--serifa); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: .8rem; color: var(--suave); }
.kpi.antes b { color: var(--antes); }
.kpi.depois b { color: var(--depois); }

.vazio-msg { text-align: center; color: var(--suave); padding: 1.5rem .5rem; }

/* ---------- estrutura do app ---------- */
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem;
  background: rgba(247, 241, 231, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); }
.topo .marca { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--tinta); min-width: 0; }
.topo .marca img { width: 34px; height: 34px; flex: none; }
.topo .marca b { font-family: var(--serifa); font-size: 1.05rem; display: block; line-height: 1.1; white-space: nowrap; }
.topo .marca small { display: block; font-size: .72rem; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo .espaco { flex: 1; }
.topo .sair { background: none; border: 0; color: var(--suave); font-size: .9rem; cursor: pointer; padding: .5rem; min-height: 40px; }

.conteudo { padding: 1rem 1rem 7rem; max-width: 1080px; margin: 0 auto; min-width: 0; }
.titulo-pagina { margin: .4rem 0 1rem; }
.titulo-pagina p { color: var(--suave); margin: 0; }

.nav-baixo { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; background: var(--papel);
  border-top: 1px solid var(--linha); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); }
.nav-baixo a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .35rem .1rem;
  text-decoration: none; color: var(--suave); font-size: .72rem; font-weight: 600; border-radius: 12px; }
.nav-baixo a svg { width: 24px; height: 24px; }
.nav-baixo a.ativo { color: var(--noite); background: #f1e8d6; }

.lateral { display: none; }
.nav-topo { display: none; }
.coluna { min-width: 0; }

.sos-flutuante { position: fixed; z-index: 31; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.05rem; border-radius: 99px; background: var(--antes); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 18px rgba(180, 85, 63, .38); }
.sos-flutuante .pulso { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pulso 2.4s ease-in-out infinite; }
@keyframes pulso { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }

/* ---------- tela de entrada ---------- */
.entrada { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
.entrada-ceu { background: radial-gradient(120% 90% at 80% 0%, #4a3f86 0%, var(--noite) 55%, #15122b 100%); color: #f4effc; padding: 2rem 1.25rem 2.5rem; position: relative; overflow: hidden; }
.entrada-ceu .estrelas { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 32% 68%, #fff, transparent),
  radial-gradient(1.2px 1.2px at 58% 18%, #fff, transparent), radial-gradient(1px 1px at 76% 44%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 88% 80%, #fff, transparent), radial-gradient(1px 1px at 22% 88%, #fff, transparent); }
.entrada-ceu .conteudo-ceu { position: relative; max-width: 520px; margin: 0 auto; }
.entrada-ceu img.selo { width: 64px; height: 64px; }
.entrada-ceu h1 { color: #fff; font-size: 2.1rem; margin-top: .8rem; }
.entrada-ceu .lead { color: #d9d3ee; font-size: 1.05rem; }
.entrada-ceu ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.entrada-ceu li { display: flex; gap: .6rem; align-items: flex-start; color: #e8e3f6; font-size: .95rem; }
.entrada-ceu li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: .45em; border-radius: 50%; background: var(--ouro); box-shadow: 0 0 10px var(--ouro); }
.entrada-form { padding: 1.5rem 1.25rem 2.5rem; }
@media (max-width: 719px) {
  .entrada-ceu { padding: 1.4rem 1.25rem 1.5rem; }
  .entrada-ceu img.selo { width: 48px; height: 48px; }
  .entrada-ceu h1 { font-size: 1.8rem; margin-top: .5rem; }
  .entrada-ceu ul { display: none; }
}
.entrada-form .caixa { max-width: 440px; margin: 0 auto; }
.demo-btns { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.separador { display: flex; align-items: center; gap: .8rem; color: var(--suave); font-size: .85rem; margin: 1.2rem 0; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.msg-erro { background: var(--alerta-fundo); color: #87321f; border-radius: var(--raio-p); padding: .7rem .9rem; margin-bottom: 1rem; font-size: .95rem; }
.msg-ok { background: #e3f0e5; color: #2f5b39; border-radius: var(--raio-p); padding: .7rem .9rem; margin-bottom: 1rem; font-size: .95rem; }
.rodape-entrada { text-align: center; color: var(--suave); font-size: .8rem; margin-top: 1.5rem; }

/* ---------- cliente ---------- */
.saudacao { font-family: var(--serifa); font-size: 1.6rem; margin: .3rem 0 .2rem; }
.sessao-item { display: flex; gap: .9rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--linha); text-decoration: none; color: inherit; }
.sessao-item:first-of-type { border-top: 0; }
.sessao-item .icone { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--noite); color: var(--ouro-claro); }
.sessao-item .icone svg { width: 24px; height: 24px; }
.sessao-item .txt { flex: 1; min-width: 0; }
.sessao-item .txt b { display: block; }
.sessao-item .txt small { color: var(--suave); }
.aviso-seg { display: flex; gap: .8rem; align-items: flex-start; }
.aviso-seg svg { width: 26px; height: 26px; flex: none; color: var(--ouro-forte); margin-top: 2px; }
.aviso-seg p { margin: 0; font-size: .93rem; }

.passos { display: flex; gap: .4rem; margin: .2rem 0 1rem; }
.passos span { flex: 1; height: 5px; border-radius: 9px; background: #e3dac9; }
.passos span.feito { background: var(--ouro); }

/* termômetro 0–10 */
.termometro { text-align: center; padding: .5rem 0 .2rem; }
.termometro .valor { font-family: var(--serifa); font-size: 4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.termometro .valor small { font-size: 1.1rem; color: var(--suave); }
.termometro .legenda-valor { color: var(--suave); min-height: 1.5em; margin-bottom: .6rem; }
.termometro input[type=range] { width: 100%; height: 44px; -webkit-appearance: none; appearance: none; background: transparent; }
.termometro input[type=range]::-webkit-slider-runnable-track { height: 14px; border-radius: 99px; background: linear-gradient(90deg, #6e9e7b, #e2c06a 50%, #c4553e); }
.termometro input[type=range]::-moz-range-track { height: 14px; border-radius: 99px; background: linear-gradient(90deg, #6e9e7b, #e2c06a 50%, #c4553e); }
.termometro input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--noite); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.termometro input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--noite); }
.termometro .extremos { display: flex; justify-content: space-between; font-size: .8rem; color: var(--suave); }
.termometro .ajuste { display: flex; justify-content: center; gap: .8rem; margin-top: .5rem; }
.termometro .ajuste button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--linha); background: #fff; font-size: 1.4rem; cursor: pointer; }

.opcoes { display: grid; gap: .55rem; }
.opcao { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .85rem; border: 1.5px solid var(--linha); border-radius: var(--raio-p); background: #fff; cursor: pointer; }
.opcao input { margin-top: .3rem; accent-color: var(--noite); width: 18px; height: 18px; flex: none; }
.opcao b { display: block; }
.opcao small { color: var(--suave); }
.opcao:has(input:checked) { border-color: var(--ouro); background: #fffaf0; }

/* player noturno */
body.modo-noite { background: #14112a; }
body.modo-noite .topo, body.modo-noite .nav-baixo, body.modo-noite .sos-flutuante { display: none; }
body.modo-noite .conteudo { padding: 0; max-width: none; }
.player { min-height: 100vh; min-height: 100dvh; color: #ece7fa; display: flex; flex-direction: column;
  background: radial-gradient(110% 70% at 50% 35%, #2c2658 0%, #18142f 60%, #0f0c21 100%); }
.player-topo { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; }
.player-topo .secao-atual { flex: 1; min-width: 0; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ouro-claro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-fantasma { background: rgba(255,255,255,.08); color: #ece7fa; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; min-height: 40px; padding: .4rem .9rem; cursor: pointer; font-weight: 600; }
.btn-fantasma:hover { background: rgba(255,255,255,.14); }
.player-centro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 1.25rem; text-align: center; min-height: 0; }
.orbe-caixa { position: relative; width: 210px; height: 210px; display: grid; place-items: center; margin: .5rem auto 1rem; }
.orbe { width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff7df 0%, #f1cf86 28%, #d9a54a 58%, rgba(185, 130, 45, .0) 72%);
  box-shadow: 0 0 60px 18px rgba(217, 165, 74, .35); transform: scale(.85); transition-property: transform, box-shadow; transition-timing-function: ease-in-out; }
.orbe.respira { animation: respira 10s ease-in-out infinite; }
@keyframes respira { 0%, 100% { transform: scale(.78); box-shadow: 0 0 40px 10px rgba(217, 165, 74, .25); } 45% { transform: scale(1.18); box-shadow: 0 0 80px 26px rgba(217, 165, 74, .45); } 55% { transform: scale(1.18); } }
.orbe-anel { position: absolute; inset: 0; }
.orbe-anel circle { fill: none; stroke-width: 3; }
.orbe-anel .fundo { stroke: rgba(255,255,255,.08); }
.orbe-anel .frente { stroke: var(--ouro); stroke-linecap: round; transition: stroke-dashoffset .25s linear; transform: rotate(-90deg); transform-origin: 50% 50%; }
.orbe-texto { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: #3a2a08; font-size: 1.05rem; pointer-events: none; }
.fala { max-width: 640px; min-height: 7.5em; font-family: var(--serifa); font-size: 1.32rem; line-height: 1.55; color: #f5f1ff; }
.fala .sugestao { color: var(--ouro-claro); font-weight: 700; text-shadow: 0 0 18px rgba(217, 165, 74, .45); }
.fala .anterior { display: block; font-size: 1rem; color: #8f88b3; margin-bottom: .6rem; }
.fala .em-pausa { display: block; font-family: var(--sans); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: #a49ccc; }
.player-baixo { padding: .6rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
.barra { height: 6px; border-radius: 9px; background: rgba(255,255,255,.1); overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ouro), var(--ouro-claro)); transition: width .3s linear; }
.tempos { display: flex; justify-content: space-between; font-size: .8rem; color: #a49ccc; margin: .35rem 0 .7rem; font-variant-numeric: tabular-nums; }
.controles { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.controles button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; cursor: pointer; display: grid; place-items: center; }
.controles button svg { width: 24px; height: 24px; }
.controles button.principal { width: 72px; height: 72px; background: var(--ouro); color: var(--noite); border: 0; }
.controles button.principal svg { width: 32px; height: 32px; }
.controles button[disabled] { opacity: .4; }
.player-audio audio { width: 100%; max-width: 520px; margin-top: 1rem; }
.texto-acompanhar { max-width: 640px; margin: 1rem auto 0; text-align: left; background: rgba(255,255,255,.05); border-radius: var(--raio-p); padding: .8rem 1rem; }
.texto-acompanhar summary { cursor: pointer; color: var(--ouro-claro); font-weight: 600; }
.texto-acompanhar .roteiro-texto { max-height: 45vh; overflow: auto; color: #d9d3ee; }

/* SOS */
.sos-tela { text-align: center; }
.sos-fase { font-family: var(--serifa); font-size: 1.8rem; color: #fff; min-height: 1.4em; }
.sos-sub { color: #b9b1dc; min-height: 1.5em; }

/* gráfico */
.grafico { width: 100%; overflow: hidden; }
.grafico svg { display: block; width: 100%; height: auto; }
.grafico .eixo text { font-size: 15px; fill: #8a849f; font-family: var(--sans); }
.grafico .grade-l { stroke: #ece4d6; stroke-width: 1; }
.legenda { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .83rem; color: var(--suave); margin-top: .4rem; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.barras-semana { display: grid; gap: .45rem; }
.barras-semana .l { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 2rem; gap: .5rem; align-items: center; font-size: .82rem; color: var(--suave); }
.barras-semana .b { height: 12px; border-radius: 6px; background: #efe7d7; overflow: hidden; }
.barras-semana .b i { display: block; height: 100%; background: var(--ouro); border-radius: 6px; }
.barras-semana .n { text-align: right; color: var(--tinta); font-weight: 700; font-variant-numeric: tabular-nums; }

.filtros { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .8rem; }
.chip { border: 1.5px solid var(--linha); background: #fff; border-radius: 99px; min-height: 38px; padding: .3rem .85rem; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--tinta); }
.chip.ativo { background: var(--noite); border-color: var(--noite); color: #fff; }
.periodo-livre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; align-items: end; }
.periodo-livre .campo { margin: 0; }

.lista-praticas { list-style: none; margin: 0; padding: 0; }
.lista-praticas li { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-top: 1px solid var(--linha); font-size: .92rem; }
.lista-praticas li:first-child { border-top: 0; }
.lista-praticas .q { flex: 1; min-width: 0; }
.lista-praticas .q small { display: block; color: var(--suave); }
.par { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.par .a { color: var(--antes); }
.par .d { color: var(--depois); }

/* diário */
.aviso-privacidade { position: sticky; top: 62px; z-index: 5; display: flex; gap: .7rem; align-items: flex-start; background: #e9f1ea; border: 1px solid #cfe0d2; color: #24452b;
  border-radius: var(--raio-p); padding: .75rem .9rem; margin-bottom: 1rem; font-size: .92rem; }
.aviso-privacidade svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.nota { border-top: 1px solid var(--linha); padding: .9rem 0; }
.nota:first-child { border-top: 0; padding-top: 0; }
.nota .cab { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; font-size: .82rem; color: var(--suave); margin-bottom: .3rem; }
.nota p { margin: 0 0 .4rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.nota .acoes { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.nota-compartilhada { border-left: 3px solid var(--ouro); padding-left: .8rem; margin-bottom: .9rem; }
.nota-compartilhada small { color: var(--suave); display: block; }
.nota-compartilhada p { margin: .1rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- terapeuta ---------- */
.alerta-linha { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid #f0c8bb; }
.alerta-linha:first-of-type { border-top: 0; }
.alerta-linha .q { flex: 1; min-width: 0; }
.cliente-card { display: grid; gap: .7rem; grid-template-columns: minmax(0, 1fr); }
.cliente-card .cab { flex-wrap: wrap; }
.cliente-card .cab { display: flex; gap: .8rem; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: var(--noite); background: var(--ouro-claro); font-family: var(--serifa); }
.cliente-card .cab .q { flex: 1; min-width: 0; }
.cliente-card .cab b { display: block; font-size: 1.05rem; }
.cliente-card .cab small { color: var(--suave); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.numeros div { background: #faf5ea; border-radius: 10px; padding: .5rem .6rem; min-width: 0; }
.numeros b { display: block; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .98rem; }
.numeros > div > span { display: block; font-size: .75rem; color: var(--suave); }
.mini-grafico svg { display: block; width: 100%; height: 46px; }
.trecho { font-size: .9rem; color: var(--tinta); background: #faf5ea; border-radius: 10px; padding: .5rem .7rem; margin: 0; overflow-wrap: anywhere; }
.trecho small { color: var(--suave); display: block; }

.upload { border: 2px dashed #d8cdb6; border-radius: var(--raio); padding: 1.2rem; text-align: center; background: #fffaf0; }
.upload.arrastando { border-color: var(--ouro); background: #fff3d9; }
.progresso { height: 8px; border-radius: 9px; background: #efe7d7; overflow: hidden; margin-top: .6rem; }
.progresso i { display: block; height: 100%; width: 0; background: var(--ouro); transition: width .2s; }
.audio-atual audio { width: 100%; margin-top: .5rem; }
.checks { display: grid; gap: .35rem; margin-top: .5rem; }
.checks label { display: flex; align-items: center; gap: .6rem; min-height: 40px; }
.checks input { width: 20px; height: 20px; accent-color: var(--noite); }

/* editor */
.editor-barra { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.editor-barra button { border: 1.5px solid var(--linha); background: #fff; border-radius: 10px; min-height: 38px; padding: .3rem .7rem; cursor: pointer; font-size: .88rem; font-weight: 600; }
.editor-barra button b { font-weight: 800; }
.editor-texto { min-height: 420px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.6; }
.parametros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.parametros .campo { margin-bottom: .4rem; }
.parametros .campo > span { font-size: .8rem; }
.resumo-duracao { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; }
.resumo-duracao .total { font-family: var(--serifa); font-size: 2rem; line-height: 1; }
.resumo-duracao small { color: var(--suave); }
.abas { display: flex; gap: .4rem; margin-bottom: .8rem; }
.abas button { flex: 1; }
.previa { font-family: var(--serifa); font-size: 1.02rem; line-height: 1.7; }
.previa-secao { border-top: 1px solid var(--linha); padding: .9rem 0; }
.previa-secao:first-child { border-top: 0; padding-top: 0; }
.previa-secao .cab { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; font-family: var(--sans); margin-bottom: .3rem; }
.previa-secao .cab b { font-size: .98rem; }
.previa-secao .cab span { font-size: .8rem; color: var(--suave); white-space: nowrap; font-variant-numeric: tabular-nums; }
.previa .sugestao { background: linear-gradient(transparent 55%, #f6e3b8 55%); font-weight: 700; }
.marca-pausa { display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: .05em .5em; border-radius: 99px; background: #e9e4f6; color: #4a4180; vertical-align: 1px; white-space: nowrap; }
.marca-pausa.longa { background: var(--noite); color: #fff; }
.tabela-secoes { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tabela-secoes td { padding: .35rem 0; border-top: 1px solid var(--linha); }
.tabela-secoes td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guia { font-size: .95rem; }
.guia ul { padding-left: 1.1rem; margin: 0; }
.guia li { margin-bottom: .45rem; }
.link-convite { display: flex; gap: .5rem; align-items: stretch; }
.link-convite input { flex: 1; min-width: 0; font-size: .85rem; }
details.cartao summary { cursor: pointer; font-weight: 700; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 2rem);
  background: var(--noite); color: #fff; padding: .7rem 1.1rem; border-radius: 99px; box-shadow: var(--sombra); font-size: .93rem; text-align: center; }
.carregando { padding: 3rem 1rem; text-align: center; color: var(--suave); }

/* ---------- telas grandes ---------- */
@media (min-width: 720px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grade-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .entrada { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .entrada-ceu { padding: 4rem 3rem; display: flex; align-items: center; }
  .entrada-form { padding: 4rem 3rem; display: flex; align-items: center; }
  .entrada-form .caixa { width: 100%; }
  .fala { font-size: 1.6rem; }
  .orbe-caixa { width: 250px; height: 250px; }
  .orbe { width: 150px; height: 150px; }
}

@media (min-width: 1024px) {
  /* Daiane: barra lateral fixa; o fundo do grid pinta a coluna até o fim da página */
  .shell-terapeuta { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh;
    background: linear-gradient(90deg, var(--noite) 0, var(--noite) 248px, var(--creme) 248px); }
  .shell-terapeuta .lateral { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--noite); color: #fff; padding: 1.4rem 1rem; }
  .shell-terapeuta .topo { display: none; }
  .shell-terapeuta .nav-baixo { display: none; }
  .shell-terapeuta .conteudo { padding: 2rem 2.2rem 3rem; width: 100%; }
  .lateral .marca { display: flex; gap: .6rem; align-items: center; color: #fff; text-decoration: none; margin-bottom: 1.8rem; padding: 0 .4rem; }
  .lateral .marca img { width: 40px; height: 40px; }
  .lateral .marca b { font-family: var(--serifa); font-size: 1.1rem; display: block; line-height: 1.15; }
  .lateral .marca small { color: #b9b1dc; font-size: .75rem; }
  .lateral nav { display: grid; gap: .25rem; }
  .lateral nav a { display: flex; gap: .7rem; align-items: center; padding: .65rem .8rem; border-radius: 12px; color: #d9d3ee; text-decoration: none; font-weight: 600; font-size: .95rem; }
  .lateral nav a svg { width: 21px; height: 21px; flex: none; }
  .lateral nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .lateral nav a.ativo { background: rgba(217, 165, 74, .18); color: var(--ouro-claro); }
  .lateral .pe { margin-top: auto; font-size: .82rem; color: #b9b1dc; padding: 0 .4rem; }
  .lateral .pe button { background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 99px; padding: .45rem .9rem; cursor: pointer; margin-top: .6rem; }
  .grade-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clientes-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-colunas { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
  .editor-colunas .lado-previa { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
  .abas { display: none; }
  .editor-colunas .painel-aba { display: block !important; }
  .cliente-shell .conteudo { max-width: 920px; padding-bottom: 3rem; }
  .cliente-shell .nav-baixo { display: none; }
  .cliente-shell .topo { padding: .8rem 2rem; }
  .nav-topo { display: flex; gap: .3rem; }
  .nav-topo a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 99px; color: var(--suave); text-decoration: none; font-weight: 600; font-size: .95rem; }
  .nav-topo a svg { width: 19px; height: 19px; }
  .nav-topo a:hover { background: #efe6d5; color: var(--tinta); }
  .nav-topo a.ativo { background: var(--noite); color: #fff; }
  .sos-flutuante { bottom: 24px; right: 24px; }
  .toast { bottom: 32px; }
  .aviso-privacidade { top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .orbe.respira, .sos-flutuante .pulso { animation: none; }
  * { transition-duration: 0s !important; }
}
