/* Webot: só o rosto. Fundo preto de visor, o resto aparece quando precisa. */
:root {
  --bg: #000;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.56);
  --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --coral: #ff6339;
  --menta: #46f9ae;
  --roxo: #be36ff;
  --rosa: #f76abf;
  --mood: 159, 232, 255;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Varela Round", "Nunito", system-ui, sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overscroll-behavior: none;
}
button, input, select { font: inherit; color: inherit; }

/* ---------- rosto ---------- */
#face {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  cursor: pointer;
}
/* luz ambiente bem sutil na cor do humor, como reflexo no visor */
#ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(closest-side at 50% 50%, rgba(var(--mood), 0.11), rgba(var(--mood), 0.03) 55%, transparent 80%);
  transition: background 0.8s ease;
}
body[data-phase="listening"] #ambient {
  background: radial-gradient(closest-side at 50% 50%, rgba(var(--mood), 0.16), rgba(var(--mood), 0.04) 60%, transparent 85%);
}

/* ---------- status ---------- */
#status {
  position: fixed;
  top: calc(var(--safe-t) + 18px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--muted);
  transition: opacity 0.4s ease;
  white-space: nowrap;
}
#status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 0 rgba(var(--mood), 0.6);
}
body[data-phase="idle"] #status .dot { background: rgb(var(--mood)); }
body[data-phase="listening"] #status .dot { background: var(--menta); animation: ping 1.1s ease-out infinite; }
body[data-phase="thinking"] #status .dot { background: var(--roxo); animation: ping 1.4s ease-out infinite; }
body[data-phase="speaking"] #status .dot { background: var(--coral); }
body.ui-quiet:not([data-phase="listening"]) #status { opacity: 0; pointer-events: none; } /* some junto com os botões */
body.botoes.ui-quiet #status { opacity: 1; pointer-events: auto; } /* botões fixados: os dois ficam */
@keyframes ping {
  0% { box-shadow: 0 0 0 0 currentColor; }
  100% { box-shadow: 0 0 0 9px transparent; }
}
body[data-phase="listening"] #status { color: var(--ink); }

#hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--safe-b) + 18vh);
  text-align: center;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
body[data-phase="boot"] #hint { opacity: 1; animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }

/* ---------- legenda ---------- */
#caption {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 104px);
  transform: translateX(-50%);
  width: min(92vw, 860px);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
body.captions #caption.show { opacity: 1; }
#you {
  margin: 0 0 10px;
  min-height: 1.3em;
  font-size: clamp(14px, 1.7vw, 18px);
  color: var(--muted);
  text-wrap: balance;
}
#you:not(:empty)::before { content: "“"; }
#you:not(:empty)::after { content: "”"; }
#say {
  margin: 0;
  font-size: clamp(21px, 3vw, 34px);
  line-height: 1.28;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}
#say .w { opacity: 0.12; transition: opacity 0.18s ease; }
#say .w.on { opacity: 1; }

/* ---------- aviso ---------- */
#toast {
  position: fixed;
  top: calc(var(--safe-t) + 64px);
  left: 50%;
  transform: translate(-50%, -8px);
  max-width: min(90vw, 520px);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(20, 20, 26, 0.92);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- dock ---------- */
#dock {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 22px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
body.ui-quiet #dock { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.dock-btn:hover { background: rgba(255, 255, 255, 0.08); }
.dock-btn:active { transform: scale(0.94); }
.dock-btn:focus-visible { outline: 2px solid var(--menta); outline-offset: 2px; }
.dock-btn svg, #typebox svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dock-btn svg .fill { fill: currentColor; stroke: none; }
.dock-btn.main {
  width: 60px;
  height: 60px;
  background: #fff;
  color: #000;
  box-shadow: 0 0 24px rgba(var(--mood), 0.35);
}
.dock-btn.main:hover { background: #fff; }
.dock-btn.main svg { width: 25px; height: 25px; stroke-width: 2; }
body[data-phase="listening"] .dock-btn.main { background: var(--menta); box-shadow: 0 0 0 6px rgba(70, 249, 174, 0.18), 0 0 28px rgba(70, 249, 174, 0.5); }
body[data-phase="speaking"] .dock-btn.main,
body[data-phase="thinking"] .dock-btn.main { background: rgba(255, 255, 255, 0.85); }

/* ---------- escrever ---------- */
#typebox {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 112px);
  transform: translate(-50%, 10px);
  width: min(92vw, 560px);
  display: flex;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: rgba(22, 22, 28, 0.92);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#typebox.open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#typein { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
#typebox button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: #000;
  display: grid; place-items: center; cursor: pointer;
}
body.typing #caption { bottom: calc(var(--safe-b) + 186px); }

/* ---------- galeria ---------- */
#gallery {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 112px);
  transform: translate(-50%, 10px);
  width: min(94vw, 900px);
  padding: 12px 12px 14px;
  border-radius: 22px;
  background: rgba(16, 16, 22, 0.9);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#gallery.open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.gallery-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 10px; font-size: 14px; }
.gallery-head strong { flex: 1; font-weight: normal; color: var(--muted); }
.gallery-head button {
  border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px;
}
#btn-demo[aria-pressed="true"] { background: var(--menta); color: #000; border-color: transparent; }
#chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 30vh; overflow-y: auto; }
#chips button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease;
}
#chips button:hover { background: rgba(255, 255, 255, 0.08); }
#chips button.on { background: #fff; color: #000; }
body.gallery #caption { opacity: 0 !important; }

/* ---------- ajustes ---------- */
dialog#settings {
  width: min(94vw, 460px);
  max-height: min(88vh, 760px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(14, 14, 19, 0.97);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
dialog#settings::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); }
#settings-form { padding: 20px 22px 18px; display: grid; gap: 14px; }
#settings header { display: flex; align-items: center; justify-content: space-between; }
#settings h2 { margin: 0; font-size: 18px; font-weight: normal; }
#settings .x { border: 0; background: var(--glass); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; color: var(--muted); }
.field small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.field select, .field input[type="password"], .field input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  outline: 0;
}
.field select:focus, .field input:focus { border-color: var(--menta); }
.field select option { background: #15151b; }
input[type="range"] { width: 100%; accent-color: var(--menta); }
.switch { display: flex; align-items: center; gap: 12px; font-size: 14.5px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span {
  width: 40px; height: 24px; flex: none; border-radius: 999px; background: rgba(255, 255, 255, 0.14); position: relative; transition: background 0.2s;
}
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s;
}
.switch input:checked + span { background: var(--menta); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--menta); outline-offset: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions button {
  flex: 1; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); cursor: pointer;
}
.actions button:hover { background: rgba(255, 255, 255, 0.1); }
.diag { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); white-space: pre-line; }

/* ---------- modo tela redonda (aparelho) ---------- */
/* Sem máscara redonda: a tela do aparelho já é redonda de verdade, e no PC a
   máscara cortava o rosto (ele pediu para ocupar o espaço todo). O rosto usa a
   janela inteira; o tamanho continua pelo lado menor da tela. */
body.round #status,
body.round #dock,
body.round #typebox,
body.round #gallery { display: none; }
body.round #hint { bottom: 26vmin; font-size: 4vmin; }
body.round #caption {
  bottom: auto;
  top: calc(50% + 31vmin);
  width: 64vmin;
}
body.round #you { display: none; }
body.round #say { font-size: 4.6vmin; }
body.round #toast { top: 14vmin; max-width: 70vmin; font-size: 3.4vmin; }

@media (prefers-reduced-motion: reduce) {
  #say .w { transition: none; }
  #status .dot { animation: none !important; }
}

/* ---------- estilo cyberpunk ---------- */
#scan { display: none; }
body.cyber #scan {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* scanlines finas + barra de varredura descendo + vinheta */
  background:
    linear-gradient(to bottom, transparent 0%, rgba(94, 231, 255, 0.045) 48%, rgba(94, 231, 255, 0.09) 50%, rgba(94, 231, 255, 0.045) 52%, transparent 100%) 0 -30vh / 100% 30vh no-repeat,
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px),
    radial-gradient(closest-side at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.55) 100%);
  mix-blend-mode: screen;
  animation: varredura 7s linear infinite;
}
@keyframes varredura {
  0% { background-position: 0 -30vh, 0 0, 0 0; }
  100% { background-position: 0 130vh, 0 0, 0 0; }
}
/* o Pixel neon já tem scanlines no rosto; esta camada deixava o círculo marcado */
body.pixel #scan { display: none; }
body.cyber:not(.round) #status {
  left: calc(env(safe-area-inset-left, 0px) + 18px);
  transform: none;
}
body.cyber #hint { display: none; }
body.cyber #status {
  font-family: "Share Tech Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  border-radius: 4px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: rgba(94, 231, 255, 0.06);
  border-color: rgba(94, 231, 255, 0.25);
}
body.cyber #dock { border-color: rgba(94, 231, 255, 0.18); }
body.cyber .dock-btn.main { box-shadow: 0 0 0 1px rgba(94, 231, 255, 0.4), 0 0 26px rgba(var(--mood), 0.45); }
body.cyber #gallery, body.cyber dialog#settings { border-color: rgba(94, 231, 255, 0.2); }
body.cyber #chips button, body.cyber .gallery-head button { font-family: "Share Tech Mono", ui-monospace, monospace; letter-spacing: 0.06em; }
body.cyber #you { font-family: "Share Tech Mono", ui-monospace, monospace; letter-spacing: 0.04em; color: rgba(94, 231, 255, 0.75); }
@media (prefers-reduced-motion: reduce) { body.cyber #scan { animation: none; } }

/* no modo redondo os controles somem; este botão fica no canto (fora do círculo) */
#btn-round-settings { display: none; }
body.round #btn-round-settings {
  display: grid; place-items: center;
  position: fixed; top: 14px; right: 14px; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--muted);
  cursor: pointer; transition: opacity 0.4s ease;
}
body.round.ui-quiet #btn-round-settings { opacity: 0; }

/* Ajuste "Mostrar os botões na tela": a barra fica sempre visível (até no modo
   redondo e quando a tela "descansa") */
body.botoes #dock,
body.botoes.ui-quiet #dock { display: flex; opacity: 1; transform: translateX(-50%); pointer-events: auto; }
body.round.botoes #typebox { display: flex; }
body.round.botoes #gallery { display: block; }
body.round.botoes #btn-round-settings { display: none; } /* já tem Ajustes na barra */

/* nome e tecla de cada botão num balãozinho, só com o mouse em cima */
.dock-btn { position: relative; }
.dock-btn::after {
  content: attr(data-rotulo);
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 4px);
  padding: 5px 9px; border-radius: 8px;
  background: rgba(14, 14, 19, 0.95); border: 1px solid var(--line); color: var(--ink);
  font: 12px/1.2 "Share Tech Mono", ui-monospace, monospace; letter-spacing: 0.03em;
  white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.dock-btn:hover::after,
.dock-btn:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
/* o balão só aparece se o mouse PARAR no botão, e nunca por cima da barra de
   escrever ou da galeria abertas (cobria o texto) */
.dock-btn:hover::after { transition-delay: 0.45s; }
body.typing .dock-btn::after, body.gallery .dock-btn::after { display: none; }
@media (hover: none) { .dock-btn::after { display: none; } } /* no toque não tem "passar em cima" */

/* escuta pausada (reunião): orelha riscada em coral */
#btn-escuta .risco { display: none; }
#btn-escuta[aria-pressed="true"] { color: var(--coral); background: rgba(255, 99, 57, 0.12); }
#btn-escuta[aria-pressed="true"] .risco { display: inline; }
#btn-escuta[aria-pressed="true"]::after { content: "Ligar escuta · M"; }
#btn-round-settings svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* aparelho (quiosque): sem cursor do mouse */
body.kiosk, body.kiosk #face { cursor: none; }

/* aviso fixo de crédito esgotado */
#alerta {
  position: fixed; top: calc(var(--safe-t) + 16px); right: 16px; z-index: 5;
  max-width: min(86vw, 380px); padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 60, 90, 0.14); border: 1px solid rgba(255, 80, 110, 0.55);
  color: #ffd6de; font-size: 13.5px; line-height: 1.4;
  box-shadow: 0 0 24px rgba(255, 60, 90, 0.25);
}
#alerta[hidden] { display: none; }
body.round #alerta { top: 12vmin; right: 50%; transform: translateX(50%); max-width: 66vmin; text-align: center; }

/* chip do próximo timer/lembrete, ao lado do status */
#agenda-chip { margin-left: 10px; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(255, 79, 154, 0.55); color: #ffd1e4; font-variant-numeric: tabular-nums; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }

.cidade-linha { display: flex; gap: 8px; }
.cidade-linha input { flex: 1; min-width: 0; }
.cidade-linha button { white-space: nowrap; }

/* aviso de reunião com link para entrar */
#aviso-link { position: fixed; top: calc(var(--safe-t, 0px) + 54px); left: 50%; transform: translateX(-50%); z-index: 40; padding: 10px 18px; border-radius: 999px; background: rgba(12, 10, 20, 0.92); border: 1px solid #ff4f9a; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 0 18px rgba(255, 79, 154, 0.45); max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#aviso-link:hover { background: #ff4f9a; color: #0b0b12; }

/* modo reunião: faixa fixa no topo (pedir clique, gravando, gerando a ata) */
#reuniao-faixa { position: fixed; top: calc(var(--safe-t, 0px) + 10px); left: 50%; transform: translateX(-50%); z-index: 45; max-width: calc(100vw - 32px); padding: 9px 16px; border-radius: 999px; border: 1px solid #ff3b5c; background: rgba(30, 6, 12, 0.92); color: #fff; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#reuniao-faixa[data-estado="gravando"] { animation: reuniao-pulso 2s ease-in-out infinite; }
#reuniao-faixa[data-estado="pedindo"] { border-color: #ff4f9a; background: rgba(12, 10, 20, 0.95); }
#reuniao-faixa[data-estado="gerando"] { border-color: #6ff0ff; cursor: default; }
@keyframes reuniao-pulso { 50% { box-shadow: 0 0 18px rgba(255, 59, 92, 0.6); } }

/* posição da barra de botões (Ajustes > Posição dos botões) */
body[data-dock="top"] #dock { bottom: auto; top: calc(var(--safe-t, 0px) + 58px); }
body[data-dock="top"].ui-quiet #dock { transform: translate(-50%, -12px); }
body[data-dock="top"] .dock-btn::after { bottom: auto; top: calc(100% + 12px); }
body[data-dock="left"] #dock, body[data-dock="right"] #dock { flex-direction: column; left: calc(var(--safe-l, 0px) + 18px); right: auto; top: 50%; bottom: auto; transform: translateY(-50%); }
body[data-dock="right"] #dock { left: auto; right: calc(var(--safe-r, 0px) + 18px); }
body[data-dock="left"].ui-quiet #dock { transform: translate(-12px, -50%); }
body[data-dock="right"].ui-quiet #dock { transform: translate(12px, -50%); }
body.botoes[data-dock="left"] #dock, body.botoes[data-dock="right"] #dock,
body.botoes.ui-quiet[data-dock="left"] #dock, body.botoes.ui-quiet[data-dock="right"] #dock { transform: translateY(-50%); }
body.botoes[data-dock="top"] #dock, body.botoes.ui-quiet[data-dock="top"] #dock { transform: translateX(-50%); }
body[data-dock="left"] .dock-btn::after { bottom: auto; top: 50%; left: calc(100% + 12px); transform: translate(4px, -50%); }
body[data-dock="right"] .dock-btn::after { bottom: auto; top: 50%; left: auto; right: calc(100% + 12px); transform: translate(-4px, -50%); }
body[data-dock="left"] .dock-btn:hover::after, body[data-dock="right"] .dock-btn:hover::after,
body[data-dock="left"] .dock-btn:focus-visible::after, body[data-dock="right"] .dock-btn:focus-visible::after { transform: translate(0, -50%); }

#btn-fixar[aria-pressed="true"] { color: #ff4f9a; background: rgba(255, 79, 154, 0.14); }

/* ajustes no celular: nada pode alargar o painel (o botão de localização quebra linha) */
dialog#settings { overflow-x: hidden; }
#settings-form { grid-template-columns: minmax(0, 1fr); }
#settings-form > * { min-width: 0; }
.cidade-linha { flex-wrap: wrap; }
.cidade-linha input { flex: 1 1 180px; }
.cidade-linha button { flex: 0 1 auto; }

/* celular: a barra tem 10 botões; encolhe e, se ainda não couber, rola na horizontal */
@media (max-width: 560px) {
  #dock { gap: 2px; padding: 5px; max-width: calc(100vw - 20px); overflow-x: auto; scrollbar-width: none; }
  #dock::-webkit-scrollbar { display: none; }
  .dock-btn { width: 38px; height: 38px; flex: none; }
  .dock-btn svg { width: 19px; height: 19px; }
  .dock-btn.main { width: 44px; height: 44px; }
  body[data-dock="left"] #dock, body[data-dock="right"] #dock { max-height: calc(100vh - 120px); overflow-y: auto; }
}
@media (max-width: 560px) {
  #btn-full { display: none; } /* no celular a tela cheia é do próprio navegador/app */
  #dock { max-width: calc(100vw - 32px); justify-content: space-between; }
}

#pin-estado[data-estado="ok"] { color: var(--menta, #6ff0c0); }
#pin-estado[data-estado="errado"], #pin-estado[data-estado="bloqueado"] { color: #ff6b8a; }

/* "Enviar material": folha que sobe de baixo (estilo WhatsApp) */
#material { position: fixed; left: 50%; bottom: calc(var(--safe-b, 0px) + 96px); transform: translateX(-50%); z-index: 50; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 140px); overflow: auto; padding: 16px; border-radius: 22px; background: rgba(14, 14, 19, 0.97); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7); color: var(--ink); }
.mat-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mat-cab h2 { margin: 0; font-size: 17px; font-weight: normal; }
.mat-x { border: 0; background: var(--glass); color: var(--ink); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.mat-opcoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mat-op { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.mat-op:hover { border-color: #ff4f9a; }
.mat-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 79, 154, 0.12); color: #ff4f9a; }
.mat-svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mat-x { display: grid; place-items: center; }
.mat-x .mat-svg { width: 16px; height: 16px; }
.mat-form { display: grid; gap: 10px; }
.mat-previa img, .mat-previa video { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: #000; }
.mat-nome { font-size: 12px; color: var(--muted, rgba(255,255,255,.6)); margin-top: 4px; }
.mat-texto, .mat-pergunta { width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--ink); font: inherit; resize: vertical; }
.mat-enviar { padding: 12px; border-radius: 14px; border: 0; background: #ff4f9a; color: #0b0b12; font: inherit; font-weight: 600; cursor: pointer; }
.mat-enviar:disabled { opacity: 0.6; cursor: wait; }
#material [hidden], #material[hidden] { display: none !important; }

/* ícones Lucide em texto (chip, avisos, faixa da reunião, PIN) */
.ic { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; margin-right: .4em; }
#agenda-chip, #aviso-link, #reuniao-faixa, #pin-estado, #btn-gps { align-items: center; }
#reuniao-faixa[data-estado="gravando"] .ic { color: #ff4d6d; }
#reuniao-faixa[data-estado="gerando"] .ic, #pin-estado[data-estado="conferindo"] .ic { animation: ic-gira 1s linear infinite; }
@keyframes ic-gira { to { transform: rotate(360deg); } }
.co-ico .ic { margin: 0; width: 18px; height: 18px; }
