:root{
  --bg:#050b14;
  --panel:#0c1727;
  --panel2:#0a1321;
  --line:#213954;
  --txt:#eef7ff;
  --muted:#8da4bb;
  --cyan:#43dcff;
  --blue:#4c8dff;
  --green:#45db92;
  --red:#ff6074;
  --amber:#ffd36a;
}

*{
  box-sizing:border-box
}

html,
body{
  margin:0;
  min-height:100%;
  background:
    radial-gradient(
      circle at 50% -15%,
      #173653 0,
      #071321 31%,
      var(--bg) 67%
    );
  color:var(--txt);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif
}

body{
  min-height:100vh
}

.shell{
  width:min(760px,100%);
  margin:auto;
  padding:
    calc(14px + env(safe-area-inset-top))
    12px
    calc(28px + env(safe-area-inset-bottom))
}

.topbar{
  display:flex;
  align-items:center;
  gap:11px;
  padding:6px 2px 16px
}

.topbar h1{
  margin:0;
  font-size:21px;
  letter-spacing:.18em
}

.topbar p{
  margin:2px 0 0;
  color:var(--muted);
  font-size:12px
}

.back{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  text-decoration:none;
  background:#0c1929;
  border:1px solid var(--line);
  color:#ccecff;
  font-size:29px;
  line-height:1
}

.brandmark{
  width:43px;
  height:43px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:950;
  font-size:23px;
  color:#03111c;
  background:
    linear-gradient(
      135deg,
      var(--cyan),
      #9af4ff
    );
  box-shadow:
    0 0 25px
    rgba(67,220,255,.22)
}

.brandmark.big{
  width:62px;
  height:62px;
  border-radius:20px;
  font-size:32px;
  margin:0 auto 12px
}

.aiBadge{
  margin-left:auto;
  font-size:9px;
  letter-spacing:.13em;
  font-weight:900;
  padding:6px 8px;
  border-radius:99px;
  background:#142940;
  border:1px solid #295274;
  color:#78ddff
}

.card{
  background:
    linear-gradient(
      155deg,
      rgba(15,29,48,.98),
      rgba(7,17,30,.98)
    );
  border:
    1px solid
    rgba(103,163,214,.2);
  border-radius:22px;
  padding:17px;
  margin-bottom:13px;
  box-shadow:
    0 17px 46px
    rgba(0,0,0,.34)
}

.disclosure{
  display:grid;
  gap:3px;
  border-color:
    rgba(67,220,255,.3)
}

.disclosure strong{
  color:#89eaff
}

.disclosure span{
  font-size:12px;
  color:#cce6f8
}

.disclosure small{
  font-size:10px;
  color:var(--muted)
}

.eyebrow{
  font-size:10px;
  font-weight:950;
  letter-spacing:.14em;
  color:#72dbff;
  margin-bottom:11px
}

.roles{
  display:grid;
  grid-template-columns:
    1fr 1fr;
  gap:8px
}

.choice{
  min-height:68px;
  text-align:left;
  padding:11px 12px;
  border-radius:15px;
  border:1px solid var(--line);
  background:#091524;
  color:var(--txt);
  display:flex;
  flex-direction:column;
  gap:2px
}

.choice b{
  font-size:14px
}

.choice small{
  font-size:10px;
  color:var(--muted)
}

.choice.active{
  border-color:var(--cyan);
  background:
    linear-gradient(
      145deg,
      rgba(41,125,168,.28),
      #091524
    );
  box-shadow:
    inset 0 0 0 1px
    rgba(67,220,255,.13)
}

.counts{
  display:grid;
  grid-template-columns:
    repeat(4,1fr);
  gap:8px
}

.count{
  height:47px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#091524;
  color:#d9ebfb;
  font-size:17px;
  font-weight:900
}

.count.active{
  background:
    linear-gradient(
      135deg,
      var(--cyan),
      var(--blue)
    );
  color:#04111d;
  border:0
}

.questions{
  margin-top:12px;
  border-top:
    1px solid
    var(--line);
  padding-top:11px
}

.questions summary{
  cursor:pointer;
  color:#9cb4ca;
  font-size:11px
}

.questions ol{
  padding-left:23px;
  color:#bed0df;
  font-size:12px;
  line-height:1.5
}

.questions li{
  margin:7px 0
}

.statusLine{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#c6d7e7
}

.statusLine strong{
  margin-left:auto;
  font-size:19px;
  font-variant-numeric:
    tabular-nums
}

.dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--green);
  box-shadow:
    0 0 11px
    var(--green)
}

.dot.live{
  background:var(--red);
  box-shadow:
    0 0 14px
    var(--red);
  animation:
    pulse 1.1s infinite
}

@keyframes pulse{
  50%{
    transform:scale(1.55);
    opacity:.65
  }
}

.waveWrap{
  height:150px;
  margin:14px 0;
  position:relative;
  overflow:hidden;
  border-radius:18px;
  background:#06101c;
  border:
    1px solid
    rgba(71,130,180,.2)
}

#wave{
  width:100%;
  height:100%;
  display:block
}

.centerMic{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-size:22px;
  color:
    rgba(103,223,255,.22);
  pointer-events:none
}

.captions{
  display:grid;
  gap:8px
}

.captionBox{
  border-radius:15px;
  padding:11px 12px;
  background:#07111d;
  border:
    1px solid
    #1b3047;
  min-height:72px
}

.captionBox span{
  display:block;
  font-size:9px;
  letter-spacing:.13em;
  font-weight:950;
  margin-bottom:5px
}

.captionBox.gina span{
  color:#65dcff
}

.captionBox.person span{
  color:#8fe4b7
}

.captionBox p{
  margin:0;
  color:#dbe9f5;
  font-size:13px;
  line-height:1.45;
  max-height:100px;
  overflow:auto
}

.error{
  min-height:17px;
  color:#ff8c9b;
  font-size:11px;
  margin:9px 2px 0
}

.actions{
  display:grid;
  grid-template-columns:
    1.15fr 1fr;
  gap:9px;
  margin-top:9px
}

.actions button,
.unlock,
.shareGrid button,
.new,
.pinCard button{
  height:49px;
  border-radius:15px;
  border:0;
  font:inherit;
  font-weight:900;
  cursor:pointer
}

.actions button:disabled{
  opacity:.35;
  cursor:not-allowed
}

.start{
  background:
    linear-gradient(
      135deg,
      var(--cyan),
      var(--blue)
    );
  color:#03111b
}

.stop{
  background:#35141c;
  color:#ff98a6;
  border:
    1px solid #6b2837!important
}

.unlock{
  width:100%;
  margin-top:8px;
  background:#2e250e;
  color:#ffdc7b;
  border:
    1px solid #6c561a
}

.hint{
  display:block;
  text-align:center;
  color:#71899f;
  font-size:9px;
  line-height:1.45;
  margin-top:9px
}

.resultTop{
  display:flex;
  align-items:center;
  justify-content:space-between
}

.result h2{
  margin:0 0 12px;
  font-size:19px
}

.ready{
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
  color:#75e8a9;
  border:
    1px solid #296647;
  background:#0e2f21;
  padding:6px 8px;
  border-radius:99px
}

textarea{
  width:100%;
  min-height:330px;
  resize:vertical;
  background:#06101c;
  border:
    1px solid
    var(--line);
  border-radius:15px;
  color:#edf7ff;
  padding:14px;
  outline:0;
  font:
    13px/1.58
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace
}

.shareGrid{
  display:grid;
  grid-template-columns:
    .8fr 1fr 1fr;
  gap:8px;
  margin-top:9px
}

.shareGrid button{
  background:#15263b;
  color:white;
  border:
    1px solid #29445f
}

.shareGrid .share{
  background:
    linear-gradient(
      135deg,
      var(--cyan),
      var(--blue)
    );
  color:#03111b;
  border:0
}

.shareGrid .wa{
  background:#103621;
  color:#83e7b0;
  border-color:#255e3d
}

.result details{
  margin-top:11px;
  border-top:
    1px solid
    var(--line);
  padding-top:11px
}

.result summary{
  cursor:pointer;
  color:#91a9bf;
  font-size:11px
}

pre{
  white-space:pre-wrap;
  max-height:260px;
  overflow:auto;
  color:#b2c4d4;
  font:
    11px/1.5
    ui-monospace,
    monospace
}

.new{
  width:100%;
  margin-top:10px;
  background:transparent;
  border:
    1px solid
    var(--line);
  color:#d9eafb
}

footer{
  text-align:center;
  padding:8px;
  color:#526a80;
  font-size:9px
}

.modal{
  position:fixed;
  z-index:80;
  inset:0;
  background:
    rgba(2,7,13,.86);
  display:grid;
  place-items:center;
  padding:20px;
  backdrop-filter:
    blur(12px)
}

.pinCard{
  width:min(350px,100%);
  background:#0d1929;
  border:
    1px solid #29415e;
  border-radius:23px;
  padding:23px;
  text-align:center;
  box-shadow:
    0 18px 50px
    rgba(0,0,0,.42)
}

.pinCard h2{
  margin:5px 0
}

.pinCard p{
  font-size:12px;
  color:var(--muted)
}

.pinCard input{
  width:100%;
  height:51px;
  border-radius:14px;
  background:#07111e;
  border:
    1px solid #2a405b;
  color:white;
  text-align:center;
  font-size:21px;
  letter-spacing:.16em;
  margin:8px 0 9px;
  outline:none
}

.pinCard button{
  width:100%;
  background:
    linear-gradient(
      135deg,
      var(--cyan),
      var(--blue)
    );
  color:#03111b
}

.pinCard small{
  display:block;
  min-height:16px;
  margin-top:8px;
  color:#ff91a0
}

.toast{
  position:fixed;
  z-index:100;
  left:50%;
  bottom:
    calc(
      22px +
      env(safe-area-inset-bottom)
    );
  transform:
    translate(-50%,18px);
  opacity:0;
  pointer-events:none;
  transition:.2s;
  background:#eaf7ff;
  color:#06111c;
  padding:10px 15px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  white-space:nowrap
}

.toast.show{
  opacity:1;
  transform:
    translate(-50%,0)
}

.hidden{
  display:none!important
}

body::after{
  content:"";
  position:fixed;
  z-index:50;
  inset:0;
  background:
    rgba(0,0,0,.52);
  pointer-events:none;
  opacity:0;
  transition:
    opacity .45s ease
}

body.silence-dim::after{
  opacity:0!important
}

@media(max-width:540px){

  .shell{
    padding-left:9px;
    padding-right:9px
  }

  .card{
    padding:14px;
    border-radius:19px
  }

  .actions{
    grid-template-columns:1fr
  }

  .shareGrid{
    grid-template-columns:
      1fr 1fr
  }

  .shareGrid .wa{
    grid-column:1/3
  }

  .waveWrap{
    height:140px
  }

  textarea{
    min-height:285px
  }
}


/* ==============================================================
   GINA-INTERFACE-UPPERCASE-V1
   TODA A INTERFACE VISUAL EM MAIÚSCULAS.
   O DOCUMENTO GERADO E AS TRANSCRIÇÕES PRESERVAM A REDAÇÃO NORMAL.
   ============================================================== */

body {
  text-transform:
    uppercase;
}


/*
 * Conteúdo policial produzido pela IA:
 * NÃO converter para maiúsculas.
 */
#resultText,
#rawTranscript,
#ginaCaption,
#personCaption,
textarea,
input {
  text-transform:
    none !important;
}


/*
 * Elementos de interface.
 */
button,
.choice,
label,
small,
.badge,
.status,
.timer {
  text-transform:
    uppercase;
}



/* ==============================================================
   GINA-TSBOT-REAL-ICON-V2
   ÍCONE REAL IMPORTADO DO TS BOT
   ============================================================== */

.gina-tsbot-logo {
  display:
    block;

  width:
    56px;

  height:
    56px;

  object-fit:
    contain;

  flex:
    0 0 auto;

  margin:
    0 12px 8px 0;

  border-radius:
    14px;
}

@media (max-width: 640px) {
  .gina-tsbot-logo {
    width:
      50px;

    height:
      50px;

    border-radius:
      12px;
  }
}




/* ==============================================================
   GINA-LIVE-ALWAYS-VISIBLE-V1

   Durante a oitiva a tela visual da GINA permanece
   integralmente visível.

   A lógica de áudio, silêncio, microfone e Wake Lock
   permanece intacta.
   ============================================================== */

body.silence-dim::after {
  opacity:
    0 !important;
}




/* ==============================================================
   GINA-NO-DIM-MODO-VIAGEM-CSS-V1
   ============================================================== */

body.silence-dim::after {
  opacity:
    0 !important;
}

