/* SOPHIA AI — cores médicas: verde-hospitalar, teal e branco clínico */
:root {
  --teal-900: #0b3d3a;
  --teal-700: #0e6b5c;
  --teal-600: #12866f;
  --teal-500: #17a184;
  --teal-100: #d8f0e8;
  --teal-50: #eef8f4;
  --mint: #e7f6f0;
  --paper: #f6faf8;
  --white: #ffffff;
  --ink: #17302c;
  --muted: #5d7a73;
  --red: #d64550;
  --red-soft: #fdecee;
  --amber: #e8a13c;
  --border: #d9e8e2;
  --shadow: 0 6px 24px rgba(11, 61, 58, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

h1, h2, h3, .brand { font-family: "Fraunces", Georgia, serif; }

.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 0.95rem; }
.err { color: var(--red); margin-top: 10px; font-weight: 500; }

/* ---------- botões ---------- */
.btn {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: #fff;
  box-shadow: 0 4px 14px rgba(18, 134, 111, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(18, 134, 111, 0.45); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost {
  background: var(--white);
  color: var(--teal-700);
  border: 1.5px solid var(--teal-600);
}
.btn-ghost:hover { background: var(--teal-50); }
.btn-danger { background: var(--red); color: #fff; }
.btn-block { display: block; width: 100%; margin-top: 12px; }
.btn-icon {
  background: none; border: none; font-size: 1.2rem; cursor: pointer;
  padding: 8px; border-radius: 10px;
}
.btn-icon:hover { background: var(--teal-100); }

input[type="text"], input[type="password"], textarea {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
input:focus, textarea:focus { border-color: var(--teal-500); }

/* ---------- login ---------- */
.login-view {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--teal-100), transparent),
    radial-gradient(900px 500px at -10% 110%, #d5eee6, transparent),
    var(--paper);
  padding: 20px;
}
.login-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 44px 36px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid var(--border);
}
.logo-big { font-size: 3rem; }

/* ---------- avatar ciborgue ---------- */
.avatar-ring {
  position: relative;
  border-radius: 50%;
  padding: 4px;
  display: inline-block;
  background: conic-gradient(from 180deg, var(--teal-500), #4fd8ff, var(--teal-700), var(--teal-500));
  box-shadow: 0 0 22px rgba(23, 161, 132, 0.45), 0 0 60px rgba(79, 216, 255, 0.18);
  animation: ringspin 6s linear infinite;
}
@keyframes ringspin {
  0% { box-shadow: 0 0 18px rgba(23, 161, 132, 0.4), 0 0 50px rgba(79, 216, 255, 0.15); }
  50% { box-shadow: 0 0 28px rgba(79, 216, 255, 0.55), 0 0 70px rgba(23, 161, 132, 0.25); }
  100% { box-shadow: 0 0 18px rgba(23, 161, 132, 0.4), 0 0 50px rgba(79, 216, 255, 0.15); }
}
.avatar-img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 3px solid var(--white);
}
.avatar-lg .avatar-img { width: 128px; height: 128px; }
.avatar-md .avatar-img { width: 72px; height: 72px; }
.avatar-scan {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.avatar-scan::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 26%;
  top: -30%;
  background: linear-gradient(180deg, transparent, rgba(79, 216, 255, 0.35), transparent);
  animation: scan 3.2s ease-in-out infinite;
}
@keyframes scan {
  0% { top: -30%; }
  55% { top: 105%; }
  100% { top: 105%; }
}
.login-card .avatar-ring { margin-bottom: 14px; }
.hero-flex { display: flex; align-items: center; gap: 18px; }
.brand { font-size: 2.4rem; color: var(--teal-900); letter-spacing: 0.5px; margin: 6px 0 2px; }
.brand span { color: var(--teal-500); }
.login-sub { color: var(--muted); margin-bottom: 26px; }
.login-card input { margin-bottom: 4px; text-align: center; }
.login-err { color: var(--red); margin-top: 12px; font-weight: 500; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  flex-wrap: wrap;
}
.topbar-brand { font-size: 1.15rem; color: var(--teal-900); }
.topbar-brand strong { font-family: "Fraunces", serif; }
.tabs { display: flex; gap: 6px; }
.tab {
  font-family: "Outfit", sans-serif;
  font-weight: 600; font-size: 0.95rem;
  background: none; border: none; cursor: pointer;
  padding: 9px 16px; border-radius: 999px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.tab:hover { background: var(--teal-50); }
.tab.active { background: var(--teal-700); color: #fff; }
.tab .ti { margin-right: 5px; }

/* ---------- layout ---------- */
.view { max-width: 980px; margin: 0 auto; padding: 26px 18px 80px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

/* ---------- dashboard ---------- */
.hero h2 { font-size: 1.7rem; color: var(--teal-900); }
.hero-sub { color: var(--muted); margin: 6px 0 22px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 14px;
  text-align: center;
}
.stat-icon { font-size: 1.5rem; }
.stat-num { font-family: "Fraunces", serif; font-size: 1.9rem; font-weight: 700; color: var(--teal-700); margin-top: 2px; }
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.board h3 { font-size: 1.05rem; margin-bottom: 14px; color: var(--teal-900); }
.board-list .empty { color: var(--muted); font-size: 0.9rem; }
.board-row { margin-bottom: 12px; }
.board-row-top {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 0.92rem; font-weight: 500; margin-bottom: 4px;
}
.board-row-top .pct { color: var(--muted); font-weight: 600; white-space: nowrap; }
.bar { height: 8px; border-radius: 999px; background: var(--teal-50); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--teal-500); }
.bar-fill.bad { background: var(--red); }
.bar-fill.rank { background: var(--amber); }
.rank-medal { margin-right: 6px; }

/* ---------- gráfico de evolução ---------- */
.chart-card { margin-top: 14px; }
.chart-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.chart-head h3 { color: var(--teal-900); }
.chart-range { display: flex; gap: 6px; }
.range-btn {
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 0.82rem;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--muted); border: 1.5px solid var(--border);
  transition: all 0.15s;
}
.range-btn.active { border-color: var(--teal-600); background: var(--teal-50); color: var(--teal-700); }
.chart-wrap { width: 100%; overflow-x: auto; }
.chart-wrap svg { display: block; width: 100%; height: auto; }
.bar-col { cursor: default; }
.bar-col rect.seg { transition: opacity 0.12s; }
.bar-col:hover rect.seg { opacity: 0.82; }
.bar-col .col-hit:hover ~ .bar-tip,
.bar-col .bar-tip { pointer-events: none; }
.grid-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.axis-line { stroke: var(--border); stroke-width: 1.5; }
.axis-lbl { font: 500 11px "Outfit", sans-serif; fill: var(--muted); }
.day-lbl { font: 600 11px "Outfit", sans-serif; fill: var(--muted); }
.day-lbl.today { fill: var(--teal-700); font-weight: 700; }
.date-lbl { font: 500 9.5px "Outfit", sans-serif; fill: #9db3ac; }
.val-lbl { font: 700 10px "Outfit", sans-serif; fill: var(--teal-800); }
.avg-line { stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 5 4; }
.avg-lbl { font: 600 9.5px "Outfit", sans-serif; fill: var(--amber); }
.today-band { fill: var(--teal-50); }
.chart-empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 0.92rem; }
.chart-legend {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  margin-top: 12px; font-size: 0.85rem; color: var(--muted);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.chart-legend .dot.ok { background: var(--teal-500); }
.chart-legend .dot.bad { background: var(--red); }
.chart-legend .dash { width: 16px; height: 0; border-top: 2px dashed var(--amber); display: inline-block; }

/* ---------- barra de saída (resumo/slides) ---------- */
.out-bar { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- mapa mental ---------- */
.mindmap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mm-center {
  text-align: center;
  background: var(--white);
  border: 2px solid var(--teal-600);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px 26px;
  max-width: 620px;
}
.mm-center h2 {
  font-family: "Fraunces", serif; font-style: italic;
  font-size: 2.2rem; color: var(--teal-800); line-height: 1.05;
}
.mm-center p { color: var(--muted); margin-top: 8px; font-size: 0.96rem; line-height: 1.5; }
.mm-grid {
  width: 100%;
  columns: 3 260px;
  column-gap: 16px;
}
.mm-branch {
  break-inside: avoid;
  display: inline-block; width: 100%;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--bc, var(--teal-500));
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.mm-branch h3 {
  font-family: "Fraunces", serif;
  font-size: 1.15rem; margin-bottom: 8px;
  color: var(--bc, var(--teal-700)); text-transform: uppercase; letter-spacing: 0.3px;
}
.mm-item { margin-bottom: 7px; line-height: 1.45; font-size: 0.94rem; }
.mm-item > .it-txt::before { content: "▸ "; color: var(--bc); font-weight: 700; }
.mm-sub { margin: 3px 0 0 16px; }
.mm-sub li { list-style: none; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.mm-sub li::before { content: "↳ "; color: var(--bc); }

/* ---------- slides ---------- */
.slide-stage { display: flex; justify-content: center; }
.slide-view {
  width: 100%; max-width: 780px;
  aspect-ratio: 16 / 9;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.slide-inner { padding: 30px 34px; display: flex; flex-direction: column; height: 100%; overflow: auto; }
.slide-kicker { font-size: 0.8rem; font-weight: 700; color: var(--teal-500); letter-spacing: 1px; text-transform: uppercase; }
.slide-view h2 { font-family: "Fraunces", serif; color: var(--teal-800); font-size: 1.7rem; margin: 4px 0 14px; line-height: 1.1; }
.slide-bullets { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.slide-bullets .sb { font-size: 1.02rem; line-height: 1.45; }
.slide-bullets .sb::before { content: "●"; color: var(--teal-500); font-size: 0.7em; vertical-align: middle; margin-right: 9px; }
.slide-bullets .sb-sub { margin: 4px 0 0 22px; }
.slide-bullets .sb-sub li { list-style: none; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.slide-bullets .sb-sub li::before { content: "– "; color: var(--teal-500); }
.slide-note {
  margin-top: 14px; padding: 10px 14px; border-radius: 10px;
  background: var(--teal-50); border-left: 4px solid var(--amber);
  font-size: 0.95rem; color: var(--ink);
}
/* capa */
.slide-view.cover { background: linear-gradient(135deg, var(--teal-700), var(--teal-500)); }
.slide-view.cover .slide-inner { justify-content: center; align-items: center; text-align: center; }
.slide-view.cover .slide-kicker { color: rgba(255,255,255,0.85); }
.slide-view.cover h2 { color: #fff; font-size: 2.4rem; }
.slide-view.cover .cover-sub { color: rgba(255,255,255,0.92); font-size: 1.05rem; max-width: 80%; line-height: 1.5; }
.slide-view.cover .cover-logo { font-size: 2.6rem; margin-bottom: 8px; }

.slide-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.slide-count { font-weight: 700; color: var(--teal-700); min-width: 60px; text-align: center; }

@media (max-width: 720px) {
  .mm-grid { columns: 1; }
  .mm-center h2 { font-size: 1.7rem; }
  .slide-inner { padding: 18px 18px; }
  .slide-view h2 { font-size: 1.3rem; }
  .slide-bullets .sb { font-size: 0.92rem; }

  /* topbar só com a marca, centralizada.
     backdrop-filter cria containing block e prendia a barra fixa no topo — removido no mobile */
  .topbar { justify-content: center; padding: 12px; backdrop-filter: none; background: var(--white); }
  .topbar-brand { font-size: 1.2rem; }

  /* abas viram barra fixa embaixo (estilo app) */
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(11, 61, 58, 0.06);
  }
  .tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px; border-radius: 12px;
    font-size: 0.62rem; font-weight: 600; line-height: 1.1;
    color: var(--muted); background: none;
  }
  .tab .ti { margin: 0; font-size: 1.35rem; line-height: 1; }
  .tab .tl { font-size: 0.63rem; }
  .tab.active { background: none; color: var(--teal-700); }
  .tab.active .ti { transform: scale(1.08); }

  /* espaço para o conteúdo não ficar atrás da barra */
  .view { padding-bottom: 84px; }
  .chat-view { height: calc(100dvh - 58px); padding-bottom: 74px; }
}

/* ---------- gerador / quiz ---------- */
.gen-card { max-width: 620px; margin: 0 auto; text-align: center; }
.gen-card h2, .gen-card h3 { color: var(--teal-900); margin-bottom: 6px; }
.gen-card .muted { margin-bottom: 18px; }
.gen-card input { text-align: center; }

.chips { display: flex; gap: 10px; justify-content: center; margin: 16px 0 6px; flex-wrap: wrap; }
.chip {
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--muted);
  border: 1.5px solid var(--border);
  transition: all 0.15s;
}
.chip.active { border-color: var(--teal-600); background: var(--teal-50); color: var(--teal-700); }

.pulse { font-size: 2.6rem; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.progress { height: 10px; border-radius: 999px; background: var(--teal-50); margin-top: 18px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 3%;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-500));
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* curiosidades no carregamento */
.curio-box {
  margin-top: 20px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  min-height: 92px;
  display: flex; flex-direction: column; justify-content: center;
}
.curio-tag { font-size: 0.8rem; font-weight: 700; color: var(--teal-600); }
.curio-text {
  margin-top: 6px; line-height: 1.5; color: var(--ink); font-size: 0.98rem;
  animation: curioIn 0.5s ease;
}
@keyframes curioIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.quiz-top {
  max-width: 720px; margin: 0 auto 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.q-progress { font-weight: 700; color: var(--teal-700); }
.q-tag {
  font-size: 0.82rem; font-weight: 600;
  background: var(--teal-100); color: var(--teal-700);
  padding: 5px 12px; border-radius: 999px;
}
.q-card { max-width: 720px; margin: 0 auto; }
.q-enunciado { font-size: 1.05rem; line-height: 1.6; margin-bottom: 18px; white-space: pre-wrap; }
.q-alts { display: flex; flex-direction: column; gap: 10px; }
.q-alt {
  display: flex; gap: 12px; align-items: flex-start;
  text-align: left;
  font-family: "Outfit", sans-serif; font-size: 0.98rem; line-height: 1.45;
  padding: 13px 15px; border-radius: 12px; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--border);
  transition: all 0.12s;
  width: 100%;
}
.q-alt:hover:not(:disabled) { border-color: var(--teal-500); background: var(--teal-50); }
.q-alt:disabled { cursor: default; }
.q-alt .letter {
  font-weight: 700; color: var(--teal-700);
  background: var(--teal-100);
  min-width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.q-alt.correct { border-color: var(--teal-600); background: var(--teal-100); }
.q-alt.correct .letter { background: var(--teal-600); color: #fff; }
.q-alt.wrong { border-color: var(--red); background: var(--red-soft); }
.q-alt.wrong .letter { background: var(--red); color: #fff; }

.q-feedback { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 16px; }
.q-verdict { font-family: "Fraunces", serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.q-verdict.ok { color: var(--teal-600); }
.q-verdict.bad { color: var(--red); }
#q-explica { line-height: 1.6; white-space: pre-wrap; color: var(--ink); }
.q-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- resultado ---------- */
.result-card { max-width: 720px; margin: 0 auto; text-align: center; }
.res-emoji { font-size: 3rem; }
.result-card h2 { color: var(--teal-900); margin: 8px 0 4px; }
.res-list { margin: 20px 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.res-item {
  display: flex; gap: 10px; align-items: baseline;
  padding: 10px 14px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--border);
  font-size: 0.92rem;
}
.res-item.ok { border-left: 4px solid var(--teal-500); }
.res-item.bad { border-left: 4px solid var(--red); }

/* ---------- chat ---------- */
.chat-view {
  display: flex; flex-direction: column;
  height: calc(100vh - 62px);
  padding-bottom: 14px;
}
.chat-msgs {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 10px 4px 20px;
}
.msg {
  max-width: 82%;
  padding: 13px 16px;
  border-radius: 16px;
  line-height: 1.55;
  font-size: 0.97rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg-ai {
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: var(--shadow);
}
.msg-user {
  background: var(--teal-700);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.msg-ai strong { color: var(--teal-700); }
.msg-ai h4 { font-family: "Outfit", sans-serif; margin: 6px 0 2px; color: var(--teal-900); }
.msg-ai ul { margin: 4px 0 4px 20px; }
.msg-ai code { background: var(--teal-50); padding: 1px 5px; border-radius: 5px; font-size: 0.9em; }
.msg.typing { color: var(--muted); font-style: italic; }

.chat-inputbar {
  display: flex; gap: 8px; align-items: flex-end;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
}
.chat-inputbar textarea { border: none; resize: none; max-height: 130px; padding: 10px 8px; background: transparent; flex: 1; }
.chat-inputbar .btn { padding: 11px 18px; }
.chat-inputbar .btn-icon { font-size: 1.15rem; flex-shrink: 0; }
#chat-mic.recording {
  background: var(--red-soft);
  animation: micpulse 1s ease-in-out infinite;
}
@keyframes micpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* preview de foto anexada */
.img-preview {
  display: flex; align-items: center; gap: 10px;
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: 12px; padding: 8px 10px; margin-bottom: 8px;
}
.img-preview img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.img-remove {
  background: var(--red); color: #fff; border: none;
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 0.7rem;
}
.img-hint { font-size: 0.82rem; color: var(--teal-700); }

/* imagem enviada pela aluna no chat */
.msg-user img.sent-img { max-width: 200px; border-radius: 10px; margin-top: 6px; display: block; }

/* player de áudio da SOPHIA */
.voice-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 6px 12px;
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: 999px; cursor: pointer; font-size: 0.88rem; color: var(--teal-700);
  font-weight: 600;
}
.voice-note:hover { background: var(--teal-100); }
.voice-note.playing .vn-ico { animation: micpulse 0.8s ease-in-out infinite; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: 1fr; }
  .topbar { padding: 10px 12px; }
  .tab { padding: 8px 12px; font-size: 0.88rem; }
  .view { padding: 18px 14px 70px; }
  .msg { max-width: 92%; }
  .q-actions { justify-content: stretch; }
  .q-actions .btn { flex: 1; }
}
