:root {
  --mre-bg: #030812;
  --mre-panel: rgba(4, 10, 20, .92);
  --mre-gold: #ffd86b;
  --mre-gold-strong: #d99a18;
  --mre-blue: #0b1830;
  --mre-white: #ffffff;
  --mre-muted: #b8c3d6;
  --mre-danger: #ff7391;
  --mre-ok: #7df1b1;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--mre-bg);
  color: var(--mre-white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,216,107,.10), transparent 28%),
    radial-gradient(circle at 16% 36%, rgba(28,87,175,.14), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(255,216,107,.07), transparent 26%),
    #020712;
}

button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }

.mre-page {
  min-height: 100vh;
  width: 100%;
}

.mre-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

.mre-login-card {
  width: min(92vw, 560px);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(2, 8, 18, .92);
  box-shadow: 0 34px 120px rgba(0,0,0,.62);
  padding: 34px 46px 40px;
  text-align: center;
}

.mre-elmo-video {
  width: 140px;
  height: 140px;
  display: block;
  margin: 0 auto 10px;
  object-fit: contain;
  border: 0;
  outline: 0;
  background: transparent;
  filter: drop-shadow(0 0 24px rgba(217,154,24,.28));
}

.mre-academy-logo {
  display: block;
  width: 176px;
  max-width: 58vw;
  margin: 0 auto 28px;
  background: #fff;
  padding: 10px 18px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.mre-eyebrow {
  color: var(--mre-gold);
  font-weight: 900;
  letter-spacing: 6px;
  font-size: 13px;
  margin-bottom: 10px;
}

.mre-login-card h1 {
  margin: 0 0 12px;
  color: var(--mre-gold);
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1.03;
  text-shadow: 0 0 20px rgba(255,216,107,.28);
}

.mre-login-card p {
  margin: 0 0 26px;
  color: #d9e5ff;
  line-height: 1.55;
  font-size: 14px;
}

.mre-field-label {
  display: block;
  text-align: left;
  color: #fff;
  font-weight: 800;
  margin: 14px 0 8px;
}

.mre-input {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.20);
  background: #151c28;
  color: #fff;
  font-size: 15px;
  padding: 0 18px;
  outline: none;
}

.mre-input:focus {
  border-color: rgba(255,216,107,.8);
  box-shadow: 0 0 0 3px rgba(255,216,107,.16);
}

.mre-main-btn {
  width: 100%;
  height: 58px;
  border: 0;
  margin-top: 24px;
  border-radius: 16px;
  color: #070b13;
  font-weight: 900;
  font-size: 15px;
  background: linear-gradient(90deg, #ffe9a6, #d99817);
  box-shadow: 0 18px 46px rgba(217,154,24,.25);
}

.mre-msg {
  display: none;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
}
.mre-msg.info { display: block; background: rgba(255,216,107,.13); color: #ffedb7; border: 1px solid rgba(255,216,107,.28); }
.mre-msg.ok { display: block; background: rgba(35,180,110,.16); color: var(--mre-ok); border: 1px solid rgba(35,180,110,.34); }
.mre-msg.err { display: block; background: rgba(190,38,70,.18); color: var(--mre-danger); border: 1px solid rgba(190,38,70,.34); }

/* Diagnóstico PPT Canvas */
.mre-diagnostic-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px clamp(12px, 2vw, 26px) 22px;
  overflow: hidden;
}

.mre-diagnostic-header {
  width: min(96vw, 1560px);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.mre-diagnostic-title { min-width: 0; }
.mre-diagnostic-title h1 {
  margin: 3px 0 4px;
  color: var(--mre-gold);
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.05;
}
.mre-diagnostic-title p {
  margin: 0;
  color: #d9e5ff;
  font-size: 13px;
}

.mre-header-logo {
  width: 126px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.mre-stage-shell {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2000px;
  position: relative;
}

.mre-stage-bg-grid {
  position: absolute;
  inset: -20%;
  opacity: .18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: rotateX(70deg) translateY(280px) scale(1.4);
  transform-origin: center bottom;
}

.mre-slide-wrap {
  position: relative;
  width: min(96vw, calc((100vh - 150px) * 1.775));
  max-width: 1560px;
  aspect-ratio: 1600 / 901;
  border-radius: 24px;
  overflow: hidden;
  background: #161616;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    0 42px 130px rgba(0,0,0,.66),
    0 0 0 1px rgba(255,216,107,.08),
    inset 0 0 100px rgba(0,0,0,.22);
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.mre-slide-wrap.dock-in {
  animation: mreDockIn .88s cubic-bezier(.16,.92,.18,1) both;
}

.mre-slide-wrap.dock-out {
  animation: mreDockOut .48s cubic-bezier(.65,0,.35,1) both;
}

@keyframes mreDockIn {
  0% { opacity: 0; transform: translateZ(-620px) rotateY(-22deg) scale(.70); filter: blur(8px) saturate(.6); }
  62% { opacity: 1; transform: translateZ(52px) rotateY(2deg) scale(1.022); filter: blur(0) saturate(1); }
  100% { opacity: 1; transform: translateZ(0) rotateY(0) scale(1); filter: blur(0) saturate(1); }
}

@keyframes mreDockOut {
  0% { opacity: 1; transform: translateZ(0) rotateY(0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateZ(-520px) rotateY(18deg) scale(.74); filter: blur(7px); }
}

.mre-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
}

.mre-hotspot {
  position: absolute;
  z-index: 3;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(255, 216, 107, 0);
  outline: none;
  cursor: pointer;
}

.mre-hotspot:hover {
  background: rgba(255,216,107,.10);
  box-shadow: 0 0 0 2px rgba(255,216,107,.22) inset;
}

.mre-hotspot.selected::after {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  transform: translateY(-52%);
  text-align: center;
  color: #ffdc57;
  font-weight: 1000;
  font-size: clamp(15px, 1.65vw, 26px);
  line-height: 1;
  text-shadow:
    0 0 8px rgba(255, 204, 41, .95),
    0 0 18px rgba(255, 204, 41, .55),
    1px 1px 0 #000;
}

.mre-hotspot.matrix.selected::after,
.mre-hotspot.single.selected::after,
.mre-hotspot.multi.selected::after {
  content: "✓";
}

.mre-text-hotspot {
  position: absolute;
  z-index: 4;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(255,216,107,.72);
  color: #fff;
  font-size: clamp(11px, 1.1vw, 18px);
  padding: 0 4px 2px;
  outline: none;
}

.mre-text-hotspot:focus {
  background: rgba(255,216,107,.08);
}

.mre-nav {
  width: min(96vw, 1560px);
  margin: 13px auto 0;
  display: grid;
  grid-template-columns: 150px 1fr 190px 190px;
  gap: 12px;
  align-items: center;
}

.mre-nav button {
  height: 48px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 900;
}

.mre-nav button.primary {
  border: 0;
  color: #070b13;
  background: linear-gradient(90deg, #ffe9a6, #d99817);
}

.mre-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow: hidden;
}
.mre-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffe9a6, #d99817);
  box-shadow: 0 0 18px rgba(255,216,107,.35);
}

.mre-mini-msg {
  width: min(96vw, 1560px);
  min-height: 20px;
  margin: 8px auto 0;
  text-align: center;
  color: #ffedb7;
  font-size: 13px;
}

.mre-completed {
  width: min(92vw, 720px);
  margin: auto;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(2,8,18,.94);
  box-shadow: 0 34px 120px rgba(0,0,0,.62);
  padding: 46px;
  text-align: center;
}

.mre-completed h1 { color: var(--mre-gold); margin-top: 0; }

@media (max-width: 900px) {
  .mre-login-card { padding: 28px 24px 32px; }
  .mre-diagnostic-page { padding: 12px 10px 16px; }
  .mre-diagnostic-header { min-height: 58px; }
  .mre-header-logo { width: 96px; }
  .mre-slide-wrap { width: 98vw; border-radius: 16px; }
  .mre-nav { grid-template-columns: 1fr 1fr; }
  .mre-progress { grid-column: 1 / -1; order: -1; }
  .mre-nav button.primary { grid-column: span 1; }
}

/* PATCH 2026-07-06: alinhamento fino dos checks em cima do box + logos transparentes */
html, body {
  overflow-x: hidden;
  overflow-y: auto;
}

.mre-diagnostic-page {
  overflow: visible !important;
  padding-top: 12px;
}

.mre-diagnostic-header {
  align-items: flex-start;
  min-height: 78px;
  position: relative;
  z-index: 10;
}

.mre-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.mre-header-elmo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 216, 107, .38));
}

.mre-header-logo {
  width: 128px;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain;
}

.mre-academy-logo {
  width: 176px;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain;
}

.mre-exit-btn {
  height: 40px;
  min-width: 72px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 216, 107, .28);
  background: rgba(255, 255, 255, .06);
  color: #ffe8a6;
  font-weight: 900;
}

.mre-exit-btn:hover {
  background: rgba(255, 216, 107, .12);
}

.mre-stage-shell {
  align-items: flex-start;
  padding-top: 6px;
}

.mre-slide-wrap {
  width: min(97vw, 1480px) !important;
  max-width: 1480px !important;
  aspect-ratio: 1600 / 901;
}

/* O check agora nasce dentro do marcador exato, não no centro do hotspot grande. */
.mre-hotspot.selected::after {
  content: none !important;
}

.mre-hotspot-marker.selected::after {
  content: "✓";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffdc57;
  font-weight: 1000;
  font-size: clamp(16px, 1.45vw, 26px);
  line-height: 1;
  text-shadow:
    0 0 7px rgba(255, 204, 41, .98),
    0 0 14px rgba(255, 204, 41, .65),
    1px 1px 0 #000;
}

.mre-hotspot:hover .mre-hotspot-marker {
  outline: 1px solid rgba(255, 216, 107, .55);
  outline-offset: 2px;
  border-radius: 2px;
}

.mre-hotspot:hover {
  background: rgba(255,216,107,.035) !important;
  box-shadow: none !important;
}

.mre-text-hotspot {
  font-weight: 900;
  font-size: clamp(13px, 1.05vw, 18px) !important;
  line-height: 1.1;
  padding: 0 6px 2px !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid rgba(255,216,107,.88) !important;
  border-radius: 0;
  white-space: nowrap;
}

.mre-text-hotspot::placeholder {
  color: rgba(255,255,255,.52);
}

@media (min-width: 1280px) {
  .mre-diagnostic-title h1 {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .mre-header-actions {
    gap: 7px;
  }
  .mre-header-elmo { width: 34px; height: 34px; }
  .mre-header-logo { width: 88px; }
  .mre-exit-btn { min-width: 54px; height: 34px; padding: 0 10px; }
}


/* PATCH 2026-07-06-03: corrigir alinhamento real do ✓ no box, logo original Academy e etapa final sem input */
.mre-hotspot-marker { overflow: visible; }
.mre-hotspot-marker.selected { outline: none !important; }
.mre-slide-wrap { width: min(96vw, calc((100vh - 142px) * 1.775), 1500px) !important; }
.mre-diagnostic-header { min-height: 66px; margin-bottom: 6px; }
.mre-diagnostic-page { padding-bottom: 14px; }
.mre-nav { margin-top: 8px; }
@media (max-height: 780px) {
  .mre-diagnostic-title h1 { font-size: 24px; }
  .mre-diagnostic-title p { font-size: 12px; }
  .mre-stage-shell { padding-top: 0; }
  .mre-slide-wrap { width: min(96vw, calc((100vh - 124px) * 1.775), 1500px) !important; }
  .mre-nav button { height: 42px; }
}

/* PATCH FINAL V3 - alinhamento fino pedido pelo cliente */
.mre-hotspot-marker.selected::after {
  font-size: clamp(14px, 1.25vw, 22px) !important;
  transform: translate(-50%, -50%) !important;
}
.mre-hotspot:hover .mre-hotspot-marker {
  outline: 1px solid rgba(255, 216, 107, .42) !important;
  outline-offset: 1px !important;
}
.mre-academy-logo,
.mre-header-logo {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: 220px !important;
  max-width: 45vw !important;
}
.mre-header-logo { width: 190px !important; }
.mre-text-hotspot {
  overflow: hidden !important;
  text-overflow: clip !important;
  height: auto !important;
  min-height: 18px !important;
}
@media (max-width: 900px) {
  .mre-header-logo { width: 140px !important; }
  .mre-academy-logo { width: 190px !important; }
}

/* PATCH V4 — ajustes pontuais solicitados: sem GIF, sem MP4 no login, checks menores e modo debug */
.mre-elmo-video {
  width: 118px !important;
  height: 118px !important;
  object-fit: contain !important;
  margin-bottom: 14px !important;
  background: transparent !important;
}

.mre-academy-logo,
.mre-header-logo {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
}

.mre-header-logo {
  width: 116px !important;
}

.mre-hotspot-marker.selected::after {
  font-size: clamp(13px, 1.08vw, 20px) !important;
  transform: translate(-50%, -50%) !important;
  text-shadow:
    0 0 6px rgba(255, 204, 41, .95),
    0 0 12px rgba(255, 204, 41, .60),
    1px 1px 0 #000 !important;
}

.mre-hotspot:hover .mre-hotspot-marker {
  outline: 1px solid rgba(255,216,107,.45) !important;
  outline-offset: 1px !important;
}

.mre-text-hotspot {
  font-size: clamp(12px, .92vw, 16px) !important;
  height: auto !important;
  min-height: 20px !important;
}

/* Etapa 11: ajuda a leitura do novo slide com opções do lado da figura */
.mre-slide-wrap[data-current-slide="11"] .mre-hotspot-marker.selected::after {
  font-size: clamp(13px, 1vw, 18px) !important;
}


/* ===== Admin MRE completo ===== */
.mre-admin-page {
  min-height: 100vh;
  padding: 26px;
  background:
    radial-gradient(circle at 15% 10%, rgba(196, 137, 42, .10), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(37, 80, 140, .12), transparent 32%),
    #020812;
}

.mre-admin-shell {
  width: min(1180px, 96vw);
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  padding: 26px;
  background: rgba(2, 8, 18, .92);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.mre-admin-shell.wide {
  width: min(1540px, 98vw);
}

.mre-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.mre-admin-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mre-admin-title h1 {
  margin: 0;
  color: #ffd86b;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.mre-admin-title p {
  margin: 6px 0;
  color: #d8e3f2;
}

.mre-admin-title small {
  color: #aebbd2;
}

.mre-admin-elmo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(218, 157, 38, .35));
}

.mre-admin-actions,
.mre-top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mre-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 16px;
}

.mre-admin-card {
  min-height: 155px;
  border: 1px solid rgba(255,216,107,.28);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  color: #fff;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

.mre-admin-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,216,107,.8);
}

.mre-admin-card b {
  display: block;
  color: #ffd86b;
  font-size: 22px;
  margin-bottom: 10px;
}

.mre-admin-card span {
  color: #d6dfef;
  line-height: 1.5;
}

.mre-admin-note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,216,107,.10);
  border: 1px solid rgba(255,216,107,.25);
  color: #ffedb7;
  line-height: 1.6;
}

.mre-admin-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 16px;
}

.mre-admin-toolbar label {
  color: #fff;
  font-weight: 800;
}

.mre-admin-toolbar select,
.mre-admin-form input,
.mre-admin-form select,
.mre-admin-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: #151d2a;
  color: #fff;
  padding: 10px 12px;
}

.compact {
  min-height: 46px !important;
  height: auto !important;
  padding: 10px 18px !important;
  width: auto !important;
  margin: 0 !important;
}

.mre-hotspot-editor-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

.mre-hotspot-editor-stage {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: #0b1019;
  padding: 14px;
}

.mre-admin-slide-wrap {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
}

.mre-admin-slide-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.mre-admin-hotspot-layer {
  position: absolute;
  inset: 0;
}

.mre-admin-hotspot-handle {
  position: absolute;
  z-index: 8;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 216, 107, .95);
  background: rgba(20, 12, 0, .58);
  color: #ffd23f;
  font-weight: 900;
  font-size: 21px;
  line-height: 22px;
  cursor: grab;
  box-shadow: 0 0 18px rgba(255, 216, 107, .8);
  text-shadow: 0 0 10px rgba(255,216,107,.9);
}

.mre-admin-hotspot-handle.dragging,
.mre-admin-hotspot-handle.active {
  background: rgba(255, 216, 107, .95);
  color: #171006;
  transform: translate(-50%, -50%) scale(1.12);
}

.mre-hotspot-side {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  padding: 16px;
  overflow: hidden;
}

.mre-hotspot-side h2 {
  color: #ffd86b;
  margin-top: 0;
}

#mreHotspotList,
#admHotspotList {
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}

.mre-hotspot-list-item {
  display: block;
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: #fff;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
  text-align: left;
  cursor: pointer;
}

.mre-hotspot-list-item.active {
  border-color: #ffd86b;
  background: rgba(255,216,107,.14);
}

.mre-hotspot-list-item b,
.mre-hotspot-list-item span,
.mre-hotspot-list-item small {
  display: block;
}

.mre-hotspot-list-item b {
  color: #fff;
  font-size: 13px;
}

.mre-hotspot-list-item span,
.mre-hotspot-list-item small {
  color: #aebbd2;
  font-size: 12px;
  margin-top: 3px;
}

.mre-admin-pre {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  background: rgba(0,0,0,.4);
  color: #ffedb7;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
}

.mre-admin-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mre-admin-form {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  padding: 18px;
}

.mre-admin-form h2,
.mre-admin-list h2 {
  color: #ffd86b;
  margin: 0 0 12px;
}

.mre-admin-form label {
  display: block;
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.wide-form {
  max-width: none;
}

.mre-admin-list {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  padding: 18px;
}

.mre-admin-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 11px 0;
}

.mre-admin-row:last-child {
  border-bottom: 0;
}

.mre-admin-row b { color: #fff; }
.mre-admin-row span { color: #d8e3f2; }
.mre-admin-row small { color: #aebbd2; }

@media (max-width: 920px) {
  .mre-admin-head, .mre-admin-title {
    flex-direction: column;
  }
  .mre-admin-grid,
  .mre-hotspot-editor-layout,
  .mre-admin-two,
  .mre-admin-row {
    grid-template-columns: 1fr;
  }
}


/* PATCH HOTSPOT EDITOR TRANSPARENTE — o marcador não tampa mais o quadradinho */
.mre-marker-controls {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid rgba(255,216,107,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.mre-marker-controls label {
  display: block;
  min-width: 120px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.mre-marker-controls select,
.mre-marker-controls input[type="color"] {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: #151d2a;
  color: #fff;
  padding: 8px;
}

.mre-marker-controls input[type="color"] {
  padding: 4px;
  width: 68px;
  min-width: 68px;
}

.mre-admin-hotspot-handle {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  color: var(--mre-admin-marker-color, #ffd84a) !important;
  border: 2px solid var(--mre-admin-marker-color, #ffd84a) !important;
  background: rgba(0,0,0,.08) !important;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.72),
    0 0 16px color-mix(in srgb, var(--mre-admin-marker-color, #ffd84a) 72%, transparent) !important;
  text-shadow:
    0 0 7px color-mix(in srgb, var(--mre-admin-marker-color, #ffd84a) 88%, transparent),
    1px 1px 0 rgba(0,0,0,.85) !important;
  line-height: 26px !important;
  font-size: 23px !important;
  font-weight: 1000 !important;
  opacity: .78;
  backdrop-filter: blur(1px);
}

.mre-admin-hotspot-handle::before,
.mre-admin-hotspot-handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: var(--mre-admin-marker-color, #ffd84a);
  opacity: .85;
}

.mre-admin-hotspot-handle::before { width: 1px; height: 36px; }
.mre-admin-hotspot-handle::after { width: 36px; height: 1px; }

.mre-admin-hotspot-handle.mode-minimal {
  width: 22px !important;
  height: 22px !important;
  font-size: 18px !important;
  line-height: 18px !important;
  border-radius: 5px !important;
  background: transparent !important;
  opacity: .85;
}

.mre-admin-hotspot-handle.mode-minimal::before,
.mre-admin-hotspot-handle.mode-minimal::after {
  display: none;
}

.mre-admin-hotspot-handle.mode-solid {
  background: color-mix(in srgb, var(--mre-admin-marker-color, #ffd84a) 32%, transparent) !important;
  opacity: .92;
}

.mre-admin-hotspot-handle.dragging,
.mre-admin-hotspot-handle.active {
  background: rgba(0,0,0,.04) !important;
  color: var(--mre-admin-marker-color, #ffd84a) !important;
  border-color: var(--mre-admin-marker-color, #ffd84a) !important;
  transform: translate(-50%, -50%) scale(1.08) !important;
  opacity: .95;
}

.mre-admin-hotspot-handle.dragging {
  cursor: grabbing;
}

.mre-hotspot-marker.selected::after {
  content: attr(data-icon) !important;
  color: var(--mre-marker-color, #ffdc57) !important;
}

.mre-hotspot-marker.selected[data-mode="minimal"]::after {
  font-size: clamp(11px, .9vw, 17px) !important;
  text-shadow: 0 0 5px var(--mre-marker-color, #ffdc57), 1px 1px 0 #000 !important;
}

.mre-hotspot-marker.selected[data-mode="solid"]::after {
  background: color-mix(in srgb, var(--mre-marker-color, #ffdc57) 22%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 12px color-mix(in srgb, var(--mre-marker-color, #ffdc57) 70%, transparent);
}

.mre-admin-checkline {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #ffedb7 !important;
  font-weight: 800;
}
.mre-admin-checkline input { width: auto !important; min-height: auto !important; margin: 0 !important; }
.mre-admin-form textarea { min-height: 180px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }


/* PATCH: centro real do hotspot + marcador transparente
   O admin salva markX/markY como centro. O diagnóstico agora desenha usando o mesmo centro.
   Remove sombra/círculo grande que cobria o box do PPT. */
.mre-hotspot-marker {
  transform: translate(-50%, -50%) !important;
  opacity: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
  color: var(--mre-marker-color, #ffd84a) !important;
  font-size: clamp(13px, 1.05vw, 20px) !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  text-shadow:
    0 0 2px rgba(0,0,0,.95),
    0 0 6px color-mix(in srgb, var(--mre-marker-color, #ffd84a) 62%, transparent) !important;
}

.mre-hotspot-marker::before,
.mre-hotspot-marker::after,
.mre-hotspot-marker.selected::before,
.mre-hotspot-marker.selected::after {
  content: none !important;
  display: none !important;
}

.mre-hotspot-marker.selected {
  opacity: 1 !important;
}

/* Mesmo em modo sólido, nada de bolha grande sobre a caixa. */
.mre-hotspot-marker.selected[data-mode="solid"] {
  background: color-mix(in srgb, var(--mre-marker-color, #ffd84a) 10%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--mre-marker-color, #ffd84a) 55%, transparent) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

/* No diagnóstico, o hover não deve criar sombra/retângulo que atrapalhe leitura. */
.mre-hotspot:hover,
.mre-hotspot:hover .mre-hotspot-marker {
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Editor admin: marcador de calibração em formato mira transparente para não tampar o box. */
.mre-admin-hotspot-handle {
  width: 26px !important;
  height: 26px !important;
  background: rgba(0,0,0,.02) !important;
  border: 2px dashed var(--mre-admin-marker-color, #ffd84a) !important;
  border-radius: 50% !important;
  color: var(--mre-admin-marker-color, #ffd84a) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: .88 !important;
  backdrop-filter: none !important;
  line-height: 22px !important;
  font-size: 19px !important;
}

.mre-admin-hotspot-handle::before,
.mre-admin-hotspot-handle::after {
  background: var(--mre-admin-marker-color, #ffd84a) !important;
  opacity: .75 !important;
}

.mre-admin-hotspot-handle::before { width: 1px !important; height: 32px !important; }
.mre-admin-hotspot-handle::after { width: 32px !important; height: 1px !important; }

.mre-admin-hotspot-handle.dragging,
.mre-admin-hotspot-handle.active {
  background: rgba(0,0,0,.02) !important;
  transform: translate(-50%, -50%) scale(1.08) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35) !important;
}

/* Deixa o canvas do editor maior para calibrar com mais precisão. */
.mre-admin-shell.wide {
  width: min(1760px, 99vw) !important;
}

.mre-admin-slide-wrap {
  width: min(1320px, 100%) !important;
}

.mre-hotspot-editor-layout {
  grid-template-columns: minmax(760px, 1fr) 360px !important;
}


/* PATCH: elmo MP4 nas telas de login/admin, mantendo a mesma proporção do elmo estático */
video.mre-elmo-video {
  width: 140px !important;
  height: 140px !important;
  display: block !important;
  margin: 0 auto 10px !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  filter: drop-shadow(0 0 24px rgba(217,154,24,.28)) !important;
  mix-blend-mode: normal !important;
}

@media (max-width: 620px) {
  video.mre-elmo-video {
    width: 118px !important;
    height: 118px !important;
  }
}


/* PATCH: limpar visual do Elmo MP4 no login/admin.
   O MP4 não tem canal alfa real; o mix-blend-mode: screen faz o fundo escuro sumir no fundo escuro da tela.
   O object-fit: cover amplia/corta a área morta do vídeo para ficar mais capacete e menos retângulo. */
video.mre-elmo-video {
  width: 190px !important;
  height: 118px !important;
  display: block !important;
  margin: -4px auto 8px !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: .98 !important;
  mix-blend-mode: screen !important;
  filter:
    brightness(1.18)
    contrast(1.28)
    saturate(1.12)
    drop-shadow(0 0 12px rgba(210, 150, 34, .38)) !important;
}

/* remove qualquer retângulo artificial ao redor do vídeo */
.mre-login-card video.mre-elmo-video,
.mre-login-card .mre-elmo-video {
  background-color: transparent !important;
}

/* Ajuste fino para o Academy não grudar no elmo ampliado */
.mre-login-card .mre-academy-logo {
  margin-top: 0 !important;
}

/* No mobile, mantém proporcional sem ficar gigante */
@media (max-width: 620px) {
  video.mre-elmo-video {
    width: 160px !important;
    height: 100px !important;
    margin-top: -2px !important;
  }
}


/* PATCH: área de marca limpa no login/admin.
   Cor exata do fundo exportado no editor do WebM: #121214 = RGB(18,18,20).
   O vídeo do elmo não tem transparência perfeita visualmente, então estabilizamos ele
   dentro de uma área com a mesma cor do editor e colocamos o Academy em cartão branco. */

.mre-brand-lockup {
  width: 250px !important;
  max-width: 72vw !important;
  margin: -8px auto 24px !important;
  padding: 14px 12px 16px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow:
    0 16px 40px rgba(0,0,0,.34),
    0 0 0 1px rgba(255,255,255,.45) inset !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.mre-elmo-stage {
  width: 170px !important;
  height: 92px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #121214 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 0 22px rgba(255,255,255,.03) !important;
}

video.mre-elmo-video {
  width: 174px !important;
  height: 94px !important;
  margin: 0 !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #121214 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: brightness(1.06) contrast(1.12) saturate(1.05) !important;
}

/* Dentro do cartão branco o Academy não precisa criar outro bloco grande */
.mre-brand-lockup .mre-academy-logo {
  width: 205px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
}

/* Evita que regras antigas do logo/video passem por cima */
.mre-login-card > video.mre-elmo-video,
.mre-login-card > .mre-elmo-video,
.mre-login-card > .mre-academy-logo {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 620px) {
  .mre-brand-lockup {
    width: 220px !important;
    padding: 12px 10px 14px !important;
  }
  .mre-elmo-stage {
    width: 150px !important;
    height: 82px !important;
  }
  video.mre-elmo-video {
    width: 154px !important;
    height: 84px !important;
  }
  .mre-brand-lockup .mre-academy-logo {
    width: 182px !important;
  }
}


/* PATCH: Elmo WebM com FUNDO BRANCO
   Use quando /mre/brand/Elmo-Fabri.webm foi exportado com fundo branco.
   A marca vira um cartão branco único: Elmo + Fabri Academy. */
.mre-brand-lockup {
  width: 250px !important;
  max-width: 72vw !important;
  margin: -8px auto 24px !important;
  padding: 14px 12px 16px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow:
    0 16px 40px rgba(0,0,0,.34),
    0 0 0 1px rgba(255,255,255,.55) inset !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.mre-elmo-stage {
  width: 190px !important;
  height: 96px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

video.mre-elmo-video {
  width: 194px !important;
  height: 98px !important;
  margin: 0 !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

.mre-brand-lockup .mre-academy-logo {
  width: 205px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
}

@media (max-width: 620px) {
  .mre-brand-lockup {
    width: 220px !important;
    padding: 12px 10px 14px !important;
  }
  .mre-elmo-stage {
    width: 168px !important;
    height: 86px !important;
  }
  video.mre-elmo-video {
    width: 172px !important;
    height: 88px !important;
  }
  .mre-brand-lockup .mre-academy-logo {
    width: 182px !important;
  }
}


/* PATCH: ajuste fino do cartão da marca
   Objetivo:
   - aumentar o elmo internamente;
   - reduzir o bloco cinza visível em volta do vídeo;
   - deixar o branco do conjunto mais uniforme;
   - permitir o vídeo "estourar" um pouco o topo/lateral sem quebrar o card. */

.mre-brand-lockup {
  width: 250px !important;
  max-width: 72vw !important;
  margin: -10px auto 24px !important;
  padding: 10px 12px 18px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

/* Palco menor e mais recortado: esconde a sobra de fundo do vídeo */
.mre-elmo-stage {
  width: 214px !important;
  height: 78px !important;
  margin: -2px auto 4px !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  position: relative !important;
}

/* Vídeo maior que o palco: o capacete fica ampliado e a sobra cinza quase some */
.mre-elmo-stage video.mre-elmo-video,
video.mre-elmo-video {
  width: 276px !important;
  height: 120px !important;
  max-width: none !important;
  margin: 0 !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(1.18) !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: brightness(1.10) contrast(1.08) saturate(1.05) !important;
  mix-blend-mode: normal !important;
}

/* Academy mais próximo do elmo e sem moldura duplicada */
.mre-brand-lockup .mre-academy-logo {
  width: 210px !important;
  margin: -2px auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Versão alternativa: se ainda aparecer retângulo cinza, descomente no servidor:
.mre-brand-lockup,
.mre-elmo-stage {
  background: #e9e9e9 !important;
}
*/

@media (max-width: 620px) {
  .mre-brand-lockup {
    width: 222px !important;
    padding: 9px 10px 15px !important;
  }

  .mre-elmo-stage {
    width: 190px !important;
    height: 70px !important;
  }

  .mre-elmo-stage video.mre-elmo-video,
  video.mre-elmo-video {
    width: 244px !important;
    height: 106px !important;
    transform: translate(-50%, -50%) scale(1.16) !important;
  }

  .mre-brand-lockup .mre-academy-logo {
    width: 188px !important;
  }
}


/* PATCH V3: elmo maior, mas SEM cortar o capacete.
   Corrige o patch anterior que usava object-fit: cover + palco baixo. */
.mre-brand-lockup {
  width: 260px !important;
  max-width: 74vw !important;
  margin: -8px auto 24px !important;
  padding: 12px 12px 18px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  overflow: visible !important;
}

/* Palco mais alto para caber o capacete inteiro */
.mre-elmo-stage {
  width: 226px !important;
  height: 122px !important;
  margin: -4px auto 2px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  position: relative !important;
}

/* Contain preserva o capacete inteiro. A escala é menor para não comer topo/lateral. */
.mre-elmo-stage video.mre-elmo-video,
video.mre-elmo-video {
  width: 226px !important;
  height: 122px !important;
  max-width: none !important;
  margin: 0 !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(1.08) !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: brightness(1.08) contrast(1.06) saturate(1.04) !important;
  mix-blend-mode: normal !important;
}

/* Academy ajustado para não ficar colado demais */
.mre-brand-lockup .mre-academy-logo {
  width: 210px !important;
  margin: 0 auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Caso você queira aproximar o branco do fundo do vídeo, altere #ffffff para #eeeeee
   em .mre-brand-lockup, .mre-elmo-stage e video.mre-elmo-video. */

@media (max-width: 620px) {
  .mre-brand-lockup {
    width: 232px !important;
    padding: 10px 10px 15px !important;
  }

  .mre-elmo-stage {
    width: 202px !important;
    height: 110px !important;
  }

  .mre-elmo-stage video.mre-elmo-video,
  video.mre-elmo-video {
    width: 202px !important;
    height: 110px !important;
    transform: translate(-50%, -50%) scale(1.07) !important;
  }

  .mre-brand-lockup .mre-academy-logo {
    width: 188px !important;
  }
}
