/* Time 7 Muay Thai: app do professor. Tema preto e dourado. */
:root {
  --bg: #0b0b0c;
  --bg2: #131315;
  --card: #18181b;
  --card2: #202024;
  --line: #2a2a2f;
  --txt: #f4f1ea;
  --txt2: #a9a69e;
  --txt3: #75736d;
  --gold: #f2b705;
  --gold2: #ffd24a;
  --gold-dim: rgba(242, 183, 5, .14);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, .14);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, .14);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, .14);
  --orange: #fb923c;
  --orange-dim: rgba(251, 146, 60, .14);
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 68px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--txt); }
/* Fundo do Time 7 (a academia é fã de Naruto): Kurama embaixo à direita e a Folha em cima à esquerda, bem apagadas. */
body { background: transparent; }
body::before, body::after { content: ''; position: fixed; z-index: -1; pointer-events: none; }
body::before {
  right: -16vmin; bottom: -8vmin; width: 96vmin; height: 96vmin;
  background: url('img/fundo-kurama.svg') center / contain no-repeat; opacity: .08;
}
body::after {
  left: -10vmin; top: 14vh; width: 46vmin; height: 46vmin;
  background: url('img/fundo-folha.svg') center / contain no-repeat; opacity: .05; transform: rotate(-8deg);
}
@media print { body::before, body::after { display: none; } }
body { font: 15px/1.45 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; min-height: 100dvh; overscroll-behavior-y: contain; }
a { color: var(--gold); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
.display { font-family: 'Bebas Neue', 'Inter', sans-serif; letter-spacing: .04em; font-weight: 400; }
.muted { color: var(--txt2); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.gold { color: var(--gold); }
.red { color: var(--red); }
.green { color: var(--green); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hide { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; }

/* ------------------------------- layout ------------------------------- */
#app { max-width: 640px; margin: 0 auto; min-height: 100dvh; position: relative; }
.topo {
  position: sticky; top: 0; z-index: 20; padding: calc(10px + var(--safe-t)) 16px 10px;
  background: linear-gradient(var(--bg) 70%, rgba(11, 11, 12, .85)); backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 12px; min-height: 60px;
}
.topo .logo { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; flex: none; }
.topo h1 { font-size: 19px; line-height: 1.15; }
.topo .sub { font-size: 12px; color: var(--txt2); }
.topo .voltar { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; flex: none; cursor: pointer; }
.conteudo { padding: 4px 16px calc(var(--nav-h) + 28px + var(--safe-b)); }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(16, 16, 18, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + var(--safe-b));
}
.nav-in { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--txt3); padding: 6px 0; font-weight: 600; }
.nav a svg { width: 23px; height: 23px; }
.nav a.ativo { color: var(--gold); }
.nav a.qr { margin-top: -26px; }
.nav a.qr .bola {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--gold2), var(--gold) 60%, #b98800);
  color: #111; box-shadow: 0 6px 22px rgba(242, 183, 5, .35), 0 0 0 5px var(--bg);
}
.nav a.qr .bola svg { width: 28px; height: 28px; }

/* ------------------------------- cards ------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.pad0 { padding: 0; overflow: hidden; }
.card h3 { font-size: 15px; }
.card-titulo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-titulo h3 { font-size: 15px; }
.secao { margin: 22px 2px 10px; display: flex; align-items: center; justify-content: space-between; }
.secao h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--txt2); font-weight: 700; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: relative; overflow: hidden; cursor: pointer; }
.kpi .rot { font-size: 12px; color: var(--txt2); font-weight: 600; }
.kpi .val { font-size: clamp(17px, 5.2vw, 24px); font-weight: 800; margin-top: 4px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .det { font-size: 12px; color: var(--txt3); margin-top: 2px; }
.kpi.destaque { background: linear-gradient(140deg, #2a2108, #18181b 70%); border-color: rgba(242, 183, 5, .35); }
.kpi.destaque .val { color: var(--gold2); }
.kpi.alerta .val { color: var(--red); }

.hero {
  border-radius: 20px; padding: 18px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(242, 183, 5, .18), rgba(242, 183, 5, .02) 60%), var(--card);
  border: 1px solid rgba(242, 183, 5, .25);
}
.hero h2 { font-size: 22px; }
.hero .marca { position: absolute; right: -18px; top: -18px; width: 120px; opacity: .12; border-radius: 50%; }

.acoes-rapidas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.acao-r { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--txt); cursor: pointer; text-align: center; }
.acao-r svg { width: 22px; height: 22px; color: var(--gold); }

/* ------------------------------- listas ------------------------------- */
.lista { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.item:last-child { border-bottom: 0; }
.item:active { background: var(--card2); }
.item .tit { font-weight: 600; }
.item .sub { font-size: 12.5px; color: var(--txt2); }
.item .dir { text-align: right; flex: none; }
.item .val { font-weight: 700; }
.vazio { padding: 28px 16px; text-align: center; color: var(--txt2); }
.vazio svg { width: 40px; height: 40px; color: var(--txt3); display: block; margin: 0 auto 8px; }

.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; position: relative; background: var(--card2); color: var(--txt); }
.avatar .faixa { position: absolute; left: 4px; right: 4px; bottom: -3px; height: 6px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .4); }
.avatar.g { width: 64px; height: 64px; font-size: 22px; }
.avatar.g .faixa { height: 8px; bottom: -4px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.b-ok { background: var(--green-dim); color: var(--green); }
.b-red { background: var(--red-dim); color: var(--red); }
.b-gold { background: var(--gold-dim); color: var(--gold); }
.b-blue { background: var(--blue-dim); color: var(--blue); }
.b-orange { background: var(--orange-dim); color: var(--orange); }
.b-cinza { background: #26262b; color: var(--txt2); }

.faixa-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--txt2); }
.faixa-chip i { width: 26px; height: 8px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .15); display: inline-block; }

/* ------------------------------- chips/tabs ------------------------------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--txt2); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--gold); border-color: var(--gold); color: #111; }
.chip .n { opacity: .7; margin-left: 3px; }
.tabs { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.tab { flex: 1; text-align: center; padding: 9px 4px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--txt2); cursor: pointer; border: 0; background: none; }
.tab.on { background: var(--card2); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line); }

.mes-sel { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.mes-sel button { width: 38px; height: 34px; border-radius: 10px; border: 0; background: var(--card2); cursor: pointer; display: grid; place-items: center; }
.mes-sel b { font-weight: 700; }

/* ------------------------------- botões ------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 13px; padding: 12px 16px; font-weight: 700; cursor: pointer; font-size: 14.5px; background: var(--card2); color: var(--txt); border: 1px solid var(--line); text-align: center; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.pri { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #141006; border: 0; box-shadow: 0 4px 16px rgba(242, 183, 5, .22); }
.btn.verde { background: var(--green); color: #04140a; border: 0; }
.btn.zap { background: #25d366; color: #052e16; border: 0; }
.btn.perigo { background: var(--red-dim); color: var(--red); border-color: rgba(239, 68, 68, .35); }
.btn.fantasma { background: transparent; }
.btn.bloco { width: 100%; }
.btn.peq { padding: 8px 12px; font-size: 13px; border-radius: 11px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btns.tres { grid-template-columns: 1fr 1fr 1fr; }
.icone-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; flex: none; }
.icone-btn svg { width: 19px; height: 19px; }

.fab { position: fixed; right: max(16px, calc(50% - 304px)); bottom: calc(var(--nav-h) + 22px + var(--safe-b)); z-index: 25; height: 54px; padding: 0 20px; border-radius: 18px; display: flex; align-items: center; gap: 8px; font-weight: 800; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #141006; box-shadow: 0 8px 26px rgba(242, 183, 5, .35); }
.fab svg { width: 22px; height: 22px; }

/* ------------------------------- forms ------------------------------- */
.campo { display: block; }
.campo > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--txt2); margin: 0 0 6px 2px; }
.campo .ajuda { font-size: 12px; color: var(--txt3); margin: 5px 2px 0; }
.inp, select.inp, textarea.inp { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; outline: none; font-size: 16px; }
.inp:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
textarea.inp { min-height: 110px; resize: vertical; line-height: 1.45; }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a9a69e' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.grade2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form > * + * { margin-top: 14px; }
.form h4 { margin: 22px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.chave { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.chave .t { font-weight: 600; font-size: 14px; }
.chave .d { font-size: 12px; color: var(--txt2); }
.chave input { display: none; }
.chave .sw { width: 44px; height: 26px; border-radius: 13px; background: #3a3a40; position: relative; flex: none; transition: .2s; }
.chave .sw::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; }
.chave input:checked + .sw { background: var(--gold); }
.chave input:checked + .sw::after { left: 21px; }
.opcoes { display: grid; gap: 8px; }
.opcao { border: 1px solid var(--line); background: var(--bg2); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.opcao.on { border-color: var(--gold); background: var(--gold-dim); }
.opcao .preco { margin-left: auto; font-weight: 800; color: var(--gold); }
.dias-sem { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dias-sem label { text-align: center; padding: 9px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.dias-sem input { display: none; }
.dias-sem label:has(input:checked) { background: var(--gold); color: #111; border-color: var(--gold); }

/* ------------------------------- folha/modal ------------------------------- */
.veu { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 50; opacity: 0; transition: opacity .2s; }
.veu.on { opacity: 1; }
.folha {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 640px; margin: 0 auto;
  background: var(--bg2); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0;
  max-height: 92dvh; overflow-y: auto; padding: 8px 16px calc(20px + var(--safe-b));
  transform: translateY(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.folha.on { transform: none; }
.folha .alca { width: 42px; height: 5px; border-radius: 3px; background: #3a3a40; margin: 4px auto 12px; }
.folha .f-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.folha .f-topo h2 { font-size: 18px; }
.menu-acoes { display: grid; gap: 8px; }
.menu-acoes button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-weight: 600; cursor: pointer; text-align: left; }
.menu-acoes button svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.menu-acoes button.perigo, .menu-acoes button.perigo svg { color: var(--red); }

.toast { position: fixed; left: 50%; top: calc(14px + var(--safe-t)); transform: translate(-50%, -140%); z-index: 90; background: #222226; border: 1px solid var(--line); color: var(--txt); padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .25s; display: flex; align-items: center; gap: 10px; }
.toast.on { transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(34, 197, 94, .5); }
.toast.erro { border-color: rgba(239, 68, 68, .6); }
.toast i { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--gold); }
.toast.ok i { background: var(--green); }
.toast.erro i { background: var(--red); }

.carregando { display: grid; place-items: center; padding: 50px 0; }
.giro { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: giro .8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
.esq { background: linear-gradient(90deg, var(--card) 0, var(--card2) 50%, var(--card) 100%); background-size: 200% 100%; animation: esq 1.2s infinite; border-radius: 14px; }
@keyframes esq { to { background-position: -200% 0; } }

/* ------------------------------- login ------------------------------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 30px 22px calc(30px + var(--safe-b));
  background: radial-gradient(circle at 50% 0%, rgba(242, 183, 5, .18), transparent 55%), var(--bg); }
.login .logo-g { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--gold); display: block; margin: 0 auto 16px; box-shadow: 0 0 50px rgba(242, 183, 5, .25); object-fit: cover; }
.login h1 { text-align: center; font-size: 40px; line-height: 1; color: var(--gold); }
.login .slogan { text-align: center; color: var(--txt2); margin: 6px 0 28px; }
.login .card { padding: 20px; }

/* ------------------------------- gráfico ------------------------------- */
.grafico { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.grafico .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.grafico .barras { display: flex; align-items: flex-end; gap: 3px; height: 100%; width: 100%; justify-content: center; }
.grafico .b { width: 42%; max-width: 18px; border-radius: 5px 5px 2px 2px; min-height: 3px; }
.grafico .b.e { background: var(--gold); }
.grafico .b.s { background: #5b5b63; }
.grafico .m { font-size: 11px; color: var(--txt2); text-transform: capitalize; }
.legenda { display: flex; gap: 14px; font-size: 12px; color: var(--txt2); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.barra-h { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; }
.barra-h > i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }

/* ------------------------------- QR / telão ------------------------------- */
.qr-caixa { background: #fff; border-radius: 22px; padding: 14px; display: inline-block; line-height: 0; }
.qr-caixa svg { width: 100%; height: auto; display: block; }
.telao { position: fixed; inset: 0; z-index: 60; background: radial-gradient(circle at 50% 20%, rgba(242, 183, 5, .16), transparent 60%), #050505; display: flex; flex-direction: column; padding: calc(14px + var(--safe-t)) 18px calc(14px + var(--safe-b)); overflow-y: auto; }
.telao .t-topo { display: flex; align-items: center; gap: 12px; }
.telao .t-topo img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold); }
.telao .corpo { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 14px 0; }
.telao .qr-caixa { width: min(78vw, 56vh, 440px); }
.telao .anel { height: 6px; width: min(78vw, 56vh, 440px); background: #222; border-radius: 3px; overflow: hidden; }
.telao .anel i { display: block; height: 100%; background: var(--gold); transition: width 1s linear; }
.telao .instr { font-size: 18px; text-align: center; }
.telao .ultimos { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.telao .ultimos span { background: #18181b; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 14px; }
.telao .ultimos span.novo { border-color: var(--gold); color: var(--gold); animation: pulso 1.2s ease 2; }
@keyframes pulso { 50% { transform: scale(1.08); } }
@media (min-width: 900px) and (orientation: landscape) {
  .telao .corpo { flex-direction: row; gap: 50px; }
  .telao .lado { max-width: 420px; }
}

.scanner { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 1; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .mira { position: absolute; inset: 16%; border: 3px solid var(--gold); border-radius: 22px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.scanner .linha { position: absolute; left: 18%; right: 18%; height: 2px; background: var(--gold); top: 20%; animation: varre 2s ease-in-out infinite alternate; box-shadow: 0 0 12px var(--gold); }
@keyframes varre { to { top: 80%; } }

.resultado { border-radius: 18px; padding: 18px; text-align: center; }
.resultado.ok { background: var(--green-dim); border: 1px solid rgba(34, 197, 94, .4); }
.resultado.alerta { background: var(--orange-dim); border: 1px solid rgba(251, 146, 60, .45); }
.resultado.erro { background: var(--red-dim); border: 1px solid rgba(239, 68, 68, .45); }
.resultado .ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; }
.resultado.ok .ic { background: var(--green); color: #052e16; }
.resultado.alerta .ic { background: var(--orange); color: #2b1203; }
.resultado.erro .ic { background: var(--red); color: #fff; }
.resultado .ic svg { width: 30px; height: 30px; }

/* ------------------------------- carteirinha ------------------------------- */
.carteira { border-radius: 22px; padding: 18px; position: relative; overflow: hidden; background: linear-gradient(150deg, #2b2208, #121212 55%, #0b0b0c); border: 1px solid rgba(242, 183, 5, .4); }
.carteira::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(rgba(242, 183, 5, .25), transparent 70%); }
.carteira .c-topo { display: flex; align-items: center; gap: 10px; }
.carteira .c-topo img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); }
.carteira .nome { font-size: 20px; font-weight: 800; margin-top: 14px; }
.carteira .qr-caixa { width: 190px; margin: 16px auto 0; display: block; }

.preview-msg { background: #0b141a; border-radius: 14px; padding: 12px; }
.preview-msg .bolha { background: #005c4b; color: #e9edef; padding: 9px 11px; border-radius: 10px 10px 2px 10px; white-space: pre-wrap; font-size: 14px; margin-left: 12%; word-break: break-word; }

.aviso { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--gold-dim); border: 1px solid rgba(242, 183, 5, .35); font-size: 13.5px; align-items: flex-start; }
.aviso.red { background: var(--red-dim); border-color: rgba(239, 68, 68, .4); }
.aviso.blue { background: var(--blue-dim); border-color: rgba(96, 165, 250, .4); }
.aviso svg { width: 19px; height: 19px; flex: none; margin-top: 1px; color: var(--gold); }
.aviso.red svg { color: var(--red); }
.aviso.blue svg { color: var(--blue); }

.linha-def { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.linha-def:last-child { border-bottom: 0; }
.linha-def span:first-child { color: var(--txt2); }
.linha-def span:last-child { text-align: right; font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags button { border: 1px dashed var(--line); background: var(--bg2); border-radius: 8px; padding: 4px 8px; font-size: 12px; color: var(--gold); cursor: pointer; font-family: ui-monospace, monospace; }

@media (min-width: 700px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
}

/* Ajustes de largura no celular */
.btns > * { min-width: 0; }
.btn.peq { padding: 9px 8px; gap: 5px; }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; padding: 9px 10px; white-space: nowrap; }
.item .dir .badge { font-size: 11px; padding: 2px 7px; }
.kpi .rot { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cartaz do QR fixo */
.cartaz { background: #0b0b0c; border: 2px solid var(--gold); border-radius: 22px; padding: 22px 18px; text-align: center; }
.cartaz .c-logo { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--gold); }
.cartaz .c-nome { color: var(--gold); font-size: 30px; line-height: 1; margin-top: 8px; }
.cartaz .c-tit { font-size: 38px; line-height: 1; margin: 8px 0 14px; }
.cartaz .c-qr { width: min(72vw, 300px); }
.cartaz .c-passos { text-align: left; display: inline-block; margin: 16px auto 6px; padding-left: 22px; font-size: 16px; line-height: 1.7; }
.cartaz .c-rodape { color: var(--txt2); font-size: 13px; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; }
  body * { visibility: hidden; }
  .cartaz, .cartaz * { visibility: visible; }
  .cartaz { position: absolute; left: 0; top: 0; width: 100%; border: 4px solid #000; background: #fff !important; color: #000 !important; padding: 30px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cartaz .c-nome { color: #000 !important; font-size: 54px; }
  .cartaz .c-tit { font-size: 64px; color: #000 !important; }
  .cartaz .c-qr { width: 120mm; padding: 0; }
  .cartaz .c-passos { font-size: 22px; color: #000; }
  .cartaz .c-rodape { color: #333 !important; font-size: 16px; }
  .nav, .topo, .fab, .toast { display: none !important; }
}
